/* Jobeazee homepage — approved design v1.
   Extracted verbatim from design/jobeazee-homepage.html (the <style> block).

   This file is HAND-WRITTEN CSS and is NOT part of the Tailwind pipeline:
   scripts/build_css.sh compiles input.css -> app.css only, so a rebuild cannot
   clobber it. All colors, fonts and radii live in the :root block below, which is
   the single place to change them.

   Load ORDER MATTERS on index.html: app.css first (the cookie banner is built from
   Tailwind classes and needs it), then this file. Tailwind's base layer sets
   body { background: slate-50; font-family: Inter }, and the body rule here has the
   same specificity — so it only wins by arriving second. */

  :root {
    /* Converged onto tokens.css, 2026-09-24 (batch 6). Every NAME here is kept — this
       stylesheet is 415 lines and spends them throughout — but each one with a
       canonical twin now POINTS at it rather than holding a second copy of the value.

       🔴 Five values actually move, and they are the five the ledger in tokens.css has
       been recording since the prep step:

           --muted        #5A5A62 -> #5D5A55   (cooler grey to the warm one)
           --line         #E2DDD2 -> #E4DFD4
           --accent-soft  #EFEDFB -> #ECEBFB
           --good         #2F9E62 -> #1F9D55
           --good-soft    #E6F4EC -> #E7F4ED

       The change is deliberately made as ONE batch with chrome.css, because the chrome
       hard-codes home.css's old --line on every page: converting either alone would
       have left the header border disagreeing with the page under it. */
    --bg: var(--paper);
    --surface: var(--card);
    --text: #45454D;          /* home-only: body copy, between --ink and --muted */
    --line-soft: #EEEAE1;     /* home-only */
    --border: #D9D3C6;        /* home-only */
    --accent: var(--indigo);
    --accent-ink: #2E268F;    /* home-only: accent text on a light ground */
    --accent-soft: var(--indigo-soft);
    --accent-on-dark: #C9C4FF;/* home-only */
    --good: var(--green);
    --good-soft: var(--green-soft);
    --good-ink: #1D6B42;      /* home-only: not the same role as --green-ink */
    --warn-soft: var(--amber-soft);
    --warn-ink: #8A5A0B;      /* home-only */
    --marker: #E4F2A6;        /* home-only: the highlighter behind a phrase */

    /* Genuinely this page's own: a marketing page is wider than an app page. */
    --pad-x: 120px;
    --maxw: 1440px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--accent); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  img, svg { display: block; }
  h1, h2, h3, p { margin: 0; }
  .serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 10px 14px; }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 999px; font-weight: 500; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
  .btn-dark { background: var(--ink); color: #fff; padding: 0 20px; font-size: 15px; }
  .btn-dark:hover { background: #2A2A31; color: #fff; }
  .btn-primary { background: var(--accent); color: #fff; height: 56px; padding: 0 28px; font-size: 17px; }
  .btn-primary:hover { background: var(--accent-ink); color: #fff; }
  .btn-outline { border: 1px solid #CFC8B9; color: var(--ink); height: 56px; padding: 0 26px; font-size: 17px; }
  .btn-outline:hover { background: var(--surface); color: var(--ink); }
  .btn-light { background: #fff; color: var(--ink); height: 60px; padding: 0 32px; font-size: 17px; font-weight: 600; }
  .btn-light:hover { background: var(--accent-soft); color: var(--ink); }

  /* Nav */
  .site-header { border-bottom: 1px solid var(--line); }
  .nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
  .brand:hover { color: var(--ink); }
  /* Same treatment as chrome.css: the square sets the ink, the glyph inherits it. */
  .brand-mark { display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: 9px; background: var(--accent); color: var(--surface); }
  .brand-mark svg { width: 100%; height: 100%; display: block; border-radius: inherit; }
  .nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
  .nav-links a:not(.btn) { color: #3C3C44; }
  .nav-links a:not(.btn):hover { color: var(--accent); }

  /* Hero */
  .hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
  .hero-copy { display: flex; flex-direction: column; gap: 32px; }
  .pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; color: #3C3C44; }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
  .hero h1 { font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
  .hero h1 .serif-italic { display: block; color: var(--accent); }
  .lede { max-width: 540px; font-size: 20px; line-height: 1.55; color: var(--text); }
  .cta-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
  /* Small print under the button row. The fast-track first shipped as a <p> with a
     class that had NO RULE in any stylesheet, so it rendered as ordinary grey body
     text and read as prose rather than as something to click. This exists so the
  /* A button and the small print that belongs to IT.

     🔴 The caption used to be a <p> under the whole row, left-aligned, so it sat
     directly beneath 'Build my profile' and read as that button's caption -- saying
     the opposite of what that button does, since building a profile is exactly what
     it asks for. Operator spotted it, 2026-09-23.

     Binding it to its own button in a column is what removes the ambiguity: the eye
     connects the two because they are one object, and they stay together when the
     row wraps or stacks. `align-items: center` on the column centres the caption
     under the button rather than against the row's left edge. */
  .action { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
  /* --muted, not a --faint that does not exist: an undefined custom property falls
     back to the inherited colour, which would silently render this at full strength. */
  .action small { font-size: 13.5px; line-height: 1.2; color: var(--muted); }
  .trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 0; margin: 0; list-style: none; font-size: 15px; color: #4A4A52; }
  .trust li { display: flex; align-items: center; gap: 8px; }

  /* Hero visual */
  /* 🔴 FLOW, not fixed offsets. This was `height: 560px` with both cards
     `position: absolute` at fixed top/left/right. Absolute children are out of flow,
     so the box could not grow and the cards could not move: as the viewport narrowed
     or the browser zoomed, the TEXT reflowed and the CARDS stayed put, so they
     climbed over the nav, the headline and the trust row.

     Measured 2026-09-23 at 1280px wide: the JD card sat over the header at EVERY
     viewport height below 880px -- 1280x800 and 1366x768 included, no zoom needed.
     Zoom made it worse, it did not cause it.

     Now it is a column that grows with its content. The cards still overlap EACH
     OTHER, which is the design, but the overlap is a negative margin INSIDE the box,
     so it can never escape the grid cell it lives in. */
  .hero-visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
  .card { background: var(--surface); border: 1px solid var(--line); }
  .jd-card { position: relative; z-index: 0; width: min(360px, 100%); padding: 24px; border-radius: 18px; box-shadow: 0 1px 2px rgba(21,21,26,.04); }
  .card-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6A6A72; }
  .jd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .jd-head span:last-child { font-size: 12px; color: #6A6A72; }
  .jd-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
  .jd-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
  .jd-body { font-size: 14px; line-height: 1.7; color: #3C3C44; }
  mark { background: var(--marker); color: inherit; padding: 1px 4px; border-radius: 4px; }
  /* Follows the JD card's right edge instead of sitting at a coordinate the card may
     have moved away from. */
  .spark { position: absolute; left: min(228px, 62%); top: 96px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); }
  /* -70px reproduces the old 150px-from-the-top overlap without pinning either card
     to a coordinate: the JD card is about 220px tall, so it was overlapped by ~70. */
  .resume-card { position: relative; z-index: 1; margin-top: -120px; margin-left: auto; width: min(420px, 100%); padding: 28px; border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(21,21,26,.28); }
  .resume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .resume-id { display: flex; flex-direction: column; gap: 4px; }
  .resume-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
  .resume-role { font-size: 14px; color: var(--muted); }
  .score { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
  .score-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .score-label strong { font-size: 18px; line-height: 1; }
  .score-label span { font-size: 10px; color: var(--muted); margin-top: 2px; }
  .lines { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; margin-bottom: 18px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .lines span { height: 8px; border-radius: 4px; background: var(--line-soft); }
  .kw-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 500; }
  .dl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dl { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; font-size: 15px; font-weight: 500; }
  .dl-dark { background: var(--ink); color: #fff; }
  .dl-line { border: 1px solid var(--border); color: var(--ink); }

  /* Section headings */
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
  .h2-sm { font-size: clamp(32px, 3.3vw, 48px); }
  .body-lg { font-size: 18px; line-height: 1.6; color: var(--text); }

  /* How it works */
  .how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .how-inner { display: flex; flex-direction: column; gap: 56px; padding-top: 104px; padding-bottom: 104px; }
  .how-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .how-top > div { display: flex; flex-direction: column; gap: 14px; }
  .how-top p { max-width: 380px; font-size: 17px; line-height: 1.6; color: #4A4A52; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
  .step { display: flex; flex-direction: column; gap: 18px; padding: 36px; border-radius: 20px; background: var(--bg); }
  .step-num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent); }
  .step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
  .step p { font-size: 16px; line-height: 1.6; color: #4A4A52; }

  /* Daily match */
  .match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
  .stack { display: flex; flex-direction: column; gap: 24px; }
  .feature-list { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
  .feature-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
  .icon-tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
  .digest { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(21,21,26,.25); }
  .digest-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); }
  .digest-head strong { display: block; font-size: 16px; font-weight: 600; }
  .digest-head small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
  .badge { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; color: #3C3C44; }
  .job { display: flex; align-items: center; gap: 18px; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); }
  .job:last-child { border-bottom: 0; }
  .job-score { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; font-size: 17px; font-weight: 700; background: var(--good-soft); color: var(--good-ink); }
  .job-score.mid { background: var(--warn-soft); color: var(--warn-ink); }
  .job-info { flex-grow: 1; min-width: 0; }
  .job-info strong { display: block; font-size: 16px; font-weight: 600; }
  .job-info span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
  .job a { font-size: 14px; font-weight: 500; color: var(--accent); }

  /* Tailor */
  .tailor-wrap { padding-bottom: 120px; }
  .tailor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; padding: 72px; border-radius: 28px; }
  .form-mock { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--bg); }
  .form-mock label { display: block; font-size: 13px; font-weight: 600; color: #3C3C44; }
  .form-mock textarea, .form-mock input, .form-mock select { width: 100%; font-family: inherit; font-size: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); opacity: 1; }
  .form-mock textarea { height: 150px; padding: 14px 16px; border-radius: 12px; line-height: 1.6; color: var(--muted); resize: none; }
  .form-mock input, .form-mock select { height: 44px; padding: 0 14px; border-radius: 10px; }
  .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .form-mock button { height: 50px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-family: inherit; font-size: 16px; font-weight: 500; opacity: 1; }
  .tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
  .tags li { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: #3C3C44; }

  /* CTA */
  .cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 72px 80px; border-radius: 28px; background: var(--ink); color: #fff; }
  .cta > div { display: flex; flex-direction: column; gap: 16px; }
  .cta h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
  .cta h2 .serif-italic { color: var(--accent-on-dark); }
  .cta p { font-size: 18px; color: #C8C8D0; }

  /* Footer */
  .site-footer { margin-top: 120px; border-top: 1px solid var(--line); }
  .footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
  .footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
  .footer nav a { color: #4A4A52; }

  /* Tablet */
  @media (max-width: 1024px) {
    :root { --pad-x: 40px; }
    .nav-links a.hide-md { display: none; }
    .hero, .match, .tailor { grid-template-columns: minmax(0, 1fr); }
    .hero { gap: 56px; padding-top: 72px; padding-bottom: 80px; }
    .hero-visual { height: auto; display: flex; flex-direction: column; gap: 16px; }
    .jd-card, .resume-card { position: static; width: 100%; max-width: 520px; }
    /* 🔴 margin-top reset. The desktop overlap is a NEGATIVE margin, and the rule that
       switches these cards to a stacked column never cancelled it -- so on every phone
       the résumé card was being pulled up over the job-description card it is supposed
       to sit below. Introduced when I moved the cards out of absolute positioning;
       found by reading the cascade rather than by looking, because the cards sit below
       the fold on a phone and nobody would have scrolled to them. */
    .resume-card { align-self: flex-end; margin-top: 0; }
    .spark { position: static; align-self: center; width: 48px; height: 48px; transform: rotate(90deg); }
    .how-top { flex-direction: column; align-items: flex-start; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .match { gap: 56px; padding-top: 88px; padding-bottom: 88px; }
    .tailor { gap: 48px; padding: 48px; }
    .tailor .form-mock { order: 2; }
    .cta { flex-direction: column; align-items: flex-start; padding: 56px 48px; }
  }

  /* Phone */
  @media (max-width: 640px) {
    :root { --pad-x: 20px; }
    .nav { padding-top: 18px; padding-bottom: 18px; }
    .nav-links { gap: 18px; }
    .nav-links a.hide-sm { display: none; }
    .hero { padding-top: 48px; padding-bottom: 64px; }
    .lede { font-size: 18px; }
    .cta-row .btn { width: 100%; }
    /* The column has to stretch too, or its button shrinks to the caption's width
       while the other two stay full-width -- the caption stays attached either way,
       but the row would look ragged. */
    .cta-row .action { width: 100%; }
    .resume-card, .jd-card { padding: 20px; }
    .resume-card { align-self: stretch; }
    .how-inner { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
    .step { padding: 28px; }
    .digest-head, .job { padding-left: 18px; padding-right: 18px; }
    .tailor { padding: 24px; border-radius: 20px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .tailor-wrap { padding-bottom: 72px; }
    .cta { padding: 40px 24px; border-radius: 20px; }
    .cta .btn { width: 100%; }
    .site-footer { margin-top: 72px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
  }

/* ─────────────────────────────────────────────────────────────────────────────
   ADAPTATION BLOCK — everything above this line is the design file's <style>
   verbatim, so re-extracting after a design revision stays a mechanical diff
   (home.css lines 14-224 == design/jobeazee-homepage.html lines 29-239).
   Every deviation the app needs lives here instead.
   ───────────────────────────────────────────────────────────────────────────── */

/* Signing out is a POST, so it is a form and a button where the design had a
   plain anchor. The form is a flex ITEM of .nav-links and would otherwise be a
   block, breaking the row's alignment. The button itself needs no rules:
   Tailwind's preflight in app.css already gives buttons inherited font and
   pointer cursor, and .btn/.btn-dark above reinstate the background it zeroes. */
.nav-links form { display: flex; margin: 0; }

/* The digest's three "Tailor" affordances are spans, not anchors — the region is
   role="img", and a real link inside a picture of an email is a link announced in
   a region screen readers were told to treat as one image. `.job a` above is
   therefore inert on this page; it is left in place only to keep the extracted
   region diff-clean against the design file. */
.job-action { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ── ONE-SCREEN LANDING (2026-09-20) ─────────────────────────────────────────
   The landing page is the hero plus the closing CTA band and nothing else; the
   How-it-works, Daily Match and Tailor sections moved to /guide. Operator:
   "my landing page should not be scrolling".

   Locked to one viewport at >=1024px and left to flow naturally below it. On a
   phone the hero and the CTA band cannot share a viewport without shrinking the
   headline past readable, and a landing page nobody can read is a worse outcome
   than one that scrolls.

   DEAD SPACE: the design was drawn on a 1440px canvas. At 1900px, max-width
   1440 centred leaves ~230px of margin per side and --pad-x adds another 120px
   on top — roughly 350px of nothing before any content. Widened, and the hero's
   fixed 96/104px vertical padding is replaced by centring in the space left
   over, so the page fills the screen it is actually on. */

.landing { min-height: 100vh; }

/* 🔴 THE HEIGHT CONDITION IS LOAD-BEARING. Measured 2026-09-23 at 1280px wide,
   sweeping the viewport height:

     height   JD card top   header bottom   result
     620      -32           81              card sitting ON the header
     800       58           81              still over it
     860       78           81              still over it
     880       88           81              first height that clears

   Below ~880px tall this block made the page `height:100vh; overflow:hidden` while
   the hero needed more room than that, and the absolutely-positioned mock cards have
   no way to shrink -- so instead of scrolling, they rode up over the header and
   covered the wordmark, the nav links and the sign-in. 1280x800, 1366x768 and ANY
   zoomed browser are all below the threshold, so this was most desktop visitors.

   The fix is not to move the cards: it is to stop promising a one-screen layout on a
   screen that cannot hold one. Above the threshold the design is unchanged; below it
   the page is ordinary flowing content that scrolls, which is what it did before the
   viewport-filling treatment was added.

   900, not 880, so a browser rounding a zoom level does not land exactly on the edge. */
/* Width-driven, so NOT height-gated: the page is the same width on a short screen as
   on a tall one. Only the viewport-FILLING behaviour below depends on height. */
@media (min-width: 1025px) {
  :root { --maxw: 1680px; --pad-x: 72px; }

  /* THREE actions on ONE line at desktop width.

     The hero is two equal columns with a 56px gap inside a 72px-padded wrap, so a
     1280px viewport leaves the left column 540px. Three buttons at the marketing size
     (17px text, 26-28px side padding) need about 660px, so the third wrapped onto a
     row of its own and read as an afterthought rather than as a third way in.

     They are tightened TOGETHER, not just the new one: three buttons at different
     sizes look like a mistake, and the one that shrank would be the one we most want
     clicked.

     The numbers are measured, not guessed. At 15px/20px/16px the row came to ~544px
     against a 540px column -- it only LOOKED fitted in an earlier screenshot because
     `nowrap` was letting it overflow by those 4px. At 14px/18px/14px it is ~507px,
     which leaves room for the label to grow a little without silently wrapping.

     🔴 STILL `wrap`, NOT `nowrap`. nowrap was the obvious way to guarantee one line
     and it is wrong: this breakpoint starts at 1025px, where the column is only
     ~412px, and three buttons genuinely cannot sit side by side in that. Measured at
     1100px, nowrap pushed 'Paste a job description' underneath the résumé card, where
     it was unreadable and unclickable. Wrapping on a narrow laptop is the correct
     behaviour; overflowing into another element never is. */
  .landing-main .cta-row { gap: 8px; }
  .landing-main .cta-row .btn { font-size: 14px; height: 46px; }
  .landing-main .cta-row .btn-primary { padding: 0 18px; }
  .landing-main .cta-row .btn-outline { padding: 0 14px; }

  /* 🔴 These live in the WIDTH-only block on purpose. They were first written inside
     the height-gated block below, and the moment that block gained its min-height the
     buttons reverted to the marketing size on any screen under 900px tall and wrapped
     again -- on exactly the laptops the height gate exists to serve. Whether three
     buttons fit on a line is a question about WIDTH; it has nothing to do with how
     tall the window is. */
}

/* The landing page fills the screen WITHOUT promising to fit in it.

   This was `height: 100vh; overflow: hidden`. Combined with the absolutely-positioned
   hero cards it meant a page that could neither grow nor scroll: content that did not
   fit was simply hidden, and the cards rode up over the header.

   `min-height` keeps the intent -- on a tall screen the header, hero and CTA band
   still fill the viewport and the hero is centred in what is left -- while a short or
   zoomed screen just scrolls, like any other page. Nothing is clipped at any size.

   I first 'fixed' this by gating the whole block on `min-height: 900px`, which made
   short screens fall back to the ordinary layout. That treated the symptom: the cards
   were still pinned to coordinates, so they would have escaped again the moment
   anything above them grew. */
@media (min-width: 1025px) {
  /* body is the column: header and footer take their height, main takes the rest. */
  .landing { display: flex; flex-direction: column; min-height: 100vh; }
  .landing .site-header,
  .landing .site-footer { flex: 0 0 auto; }
  .landing-main { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.6vh, 28px); }

  /* Centred in whatever is left, rather than padded by a fixed amount. */
  .landing-main .hero { padding-top: clamp(8px, 2.5vh, 32px); padding-bottom: clamp(8px, 2.5vh, 32px); gap: 56px; align-content: center; }
  /* vh, so the rhythm compresses on a short screen rather than holding a fixed
     gap and pushing the CTA band off the bottom. */
  .landing-main .hero-copy { gap: clamp(12px, 2.2vh, 22px); }

  /* The band is the bottom of the screen, so it loses the tall marketing padding. */
  .landing-main .cta { padding: 36px 56px; border-radius: 22px; gap: 32px; }
  .landing-main .cta h2 { font-size: clamp(26px, 2.1vw, 34px); }
  .landing-main .cta p { font-size: 15px; }
  .landing .site-footer { margin-top: 0; }
  .landing .footer { padding-top: 18px; padding-bottom: 18px; }

  /* The `max-height: 100%` crutch is gone: it existed only to stop the mock pushing
     the CTA band off a screen that could not scroll. The page scrolls now. */
}

/* A short laptop (<= ~820px tall) cannot hold the full-size hero. Ease the
   headline down rather than clipping the band off the bottom. */
@media (min-width: 1025px) and (max-height: 820px) {
  .landing-main .hero h1 { font-size: clamp(34px, 3.4vw, 46px); }
  .landing-main .lede { font-size: 17px; }
  .landing-main .cta { padding: 26px 44px; }
}
