/*
 * One stylesheet, no build step, no framework.
 *
 * The palette is the app's, taken from apps/web/app/globals.css and
 * branding/logo-concepts/ rather than re-picked by eye — a marketing site that
 * is a slightly different green from the product it advertises looks like a
 * phishing page.
 *
 * System fonts on purpose. A webfont is two round trips and a layout shift on
 * a page whose entire job is to be read once, and this audience is often on a
 * rural connection.
 */

:root {
  --green: #1b5e3a;
  --green-deep: #123f27;
  --green-mid: #2f8f5b;
  --lime: #dce159;
  --cream: #f4f1e8;
  --ink: #17211b;
  --muted: #5d6b62;
  --line: #dfe4dd;
  --page: #fbfbf9;

  --shell: min(1080px, 100% - 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    400 17px / 1.65 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-mid);
}

/* --- header ----------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--green);
  text-decoration: none;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.bar nav a {
  color: var(--muted);
  text-decoration: none;
}

.bar nav a:hover {
  color: var(--green);
}

.bar nav .cta {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 600;
  background: #fff;
}

/* On a narrow screen the section links are the first thing to go: they are
   shortcuts to content that is directly below anyway, and "Sign in" is the
   only one anybody arrives looking for. */
@media (max-width: 560px) {
  .bar nav a:not(.cta) {
    display: none;
  }
}

/* --- hero ------------------------------------------------------------- */

.hero {
  width: var(--shell);
  margin: 0 auto;
  padding: 72px 0 56px;
  max-width: 820px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--green);
}

.lede {
  margin: 0 0 32px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--green);
}

.btn:hover {
  background: var(--green-deep);
}

.btn.ghost {
  background: #fff;
  color: var(--green);
  border-color: var(--line);
}

.btn.ghost:hover {
  background: #fff;
  border-color: var(--green-mid);
}

/* --- stat strip ------------------------------------------------------- */

.strip {
  width: var(--shell);
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.strip div {
  background: #fff;
  padding: 22px 24px;
}

.strip strong {
  display: block;
  color: var(--green);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .strip {
    grid-template-columns: 1fr;
  }
}

/* --- content bands ---------------------------------------------------- */

.band {
  width: var(--shell);
  margin: 0 auto;
  padding: 64px 0;
}

.band.alt {
  width: 100%;
  margin-top: 56px;
  background: var(--green);
  color: var(--cream);
  padding: 64px 0 72px;
}

/* An inner wrapper rather than `.band.alt > *`, which is what this was and
   which quietly centred the heading: `h2` carries its own `max-width: 20ch`
   for line length, and a max-width plus auto margins is a centred block. The
   wrapper puts the shell width on one element that has no max-width of its
   own, so everything inside lines up on the same left edge as the bands
   above. */
.band.alt .inner {
  width: var(--shell);
  margin: 0 auto;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--green);
  max-width: 20ch;
}

.band.alt h2 {
  color: var(--cream);
}

.band p {
  margin: 0 0 16px;
  max-width: 68ch;
  color: var(--muted);
}

/* --- screenshots ------------------------------------------------------ */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  /* The captures are full-bleed device frames; a soft shadow is what stops
     three white rectangles reading as one flat block on a near-white page. */
  box-shadow: 0 12px 28px rgb(23 33 27 / 8%);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shots {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* --- feature list ----------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 44px;
  margin: 36px 0 0;
}

.features div {
  padding-top: 18px;
  border-top: 1px solid rgb(244 241 232 / 22%);
}

.features dt {
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.features dd {
  margin: 0;
  color: #b9d3bf;
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* --- closing ---------------------------------------------------------- */

.closing {
  width: var(--shell);
  margin: 0 auto;
  padding: 72px 0 24px;
  max-width: 680px;
  text-align: center;
}

/* biome-ignore lint/style/noDescendingSpecificity: `.band.alt h2` above is the green band; a heading is never in both sections */
.closing h2 {
  max-width: none;
}

.closing p {
  color: var(--muted);
  margin: 0 auto 24px;
}

.closing .actions {
  justify-content: center;
}

.closing .note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- footer ----------------------------------------------------------- */

footer {
  width: var(--shell);
  margin: 56px auto 0;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--green);
}

/* biome-ignore lint/style/noDescendingSpecificity: the header's `.bar nav` rules above target a different element entirely */
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14.5px;
}

/* biome-ignore lint/style/noDescendingSpecificity: as above — header and footer navs never share an element */
footer nav a {
  color: var(--muted);
  text-decoration: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: as above */
footer nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.copyright {
  margin: 0 0 0 auto;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .copyright {
    margin-left: 0;
  }
}
