/* The marketing pages (home, features, pricing, switching, FAQ, resources): the landing page design. Header and
   footer are chrome.css. */
    :root {
      --bg: #f7f3ec; --surface: #fffdf9; --line: #e2d9ca; --ink: #23302b; --muted: #5d6b64;
      --accent: #2f6f5e; --accent-ink: #24584b; --on-accent: #ffffff; --tint: #e9efe8;
      --serif: Newsreader, Georgia, serif;
      --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.19 0 0 0 0 0.17 0 0 0 1.4 -.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --grain-opacity: 0.08;  /* paper grain, as in the app (DESIGN.md: Texture) */
      font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-size: 17px; line-height: 1.6;
      color: var(--ink); background: var(--bg);
    }
    @media (prefers-color-scheme: dark) {
      :root { --bg: #141a18; --surface: #1b2320; --line: #2f3a35; --ink: #e8ece9; --muted: #a5b1ab;
              --accent: #82c4ac; --accent-ink: #a9dccb; --on-accent: #0f1714; --tint: #1f2d27;
              --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 1.4 -.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --grain-opacity: 0.04; }
      .shot { filter: brightness(0.92); }
    }
    * { box-sizing: border-box; }
    body { margin: 0; }  /* the page colour is on :root; a body background would cover the grain */
    body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
                   background-image: var(--grain); background-size: 180px; opacity: var(--grain-opacity); }
    a { color: var(--accent); text-underline-offset: 3px; }
    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
    h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
    h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
    p { margin: 0 0 14px; }
    .muted { color: var(--muted); }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* read aloud, not shown */


    .btn { display: inline-block; padding: 13px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid var(--accent);
           transition: transform 90ms ease-out, box-shadow 90ms ease-out; }
    .btn:active { transform: translateY(1px); box-shadow: none; }
    .btn-primary { background: var(--accent); color: var(--on-accent);
                   box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 0 rgb(35 48 43 / 0.16), 0 2px 6px rgb(47 111 94 / 0.16); }
    @media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
    .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
    :is(a, button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

    .hero { padding: 56px 0 28px; max-width: 760px; }
    .hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -0.02em; }
    .hero p { font-size: 20px; color: var(--muted); max-width: 640px; }
    .hero .actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
    .hero .actions a:not(.btn) { font-weight: 700; }

    figure { margin: 0; }
    .shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px;
            box-shadow: 0 1px 2px rgb(35 48 43 / 0.05), 0 18px 40px rgb(35 48 43 / 0.08); }
    figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
    .hero-shot { margin: 10px 0 0; }
    @media (min-width: 1000px) { .hero-shot { margin-right: -60px; } }

    section { padding: 72px 0; border-top: 1px solid var(--line); }
    section.first { border-top: 0; }
    .lede { font-size: 19px; max-width: 620px; }

    .notes { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
    .notes .scribble { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45;
                       border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 22px; color: var(--ink); }

    .included { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 28px; }
    .included div { padding: 18px 0; border-top: 1px solid var(--line); }
    .included h3 { font-size: 22px; margin: 0 0 4px; }
    .included p { margin: 0; color: var(--muted); }
    .not-yet { margin-top: 30px; padding: 16px 20px; background: var(--tint); border-radius: 8px; max-width: 760px; }

    .price { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
    .price > * { min-width: 0; }  /* lets the comparison table scroll inside its column instead of widening the page */
    .amount { font-family: var(--serif); font-size: clamp(64px, 9vw, 104px); line-height: 1; margin: 6px 0 10px; letter-spacing: -0.03em; }
    .amount small { font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; font-size: 18px; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
    .founding { font-weight: 700; color: var(--accent-ink); }
    .price-solo { grid-template-columns: minmax(0, 1fr); }
    .compare-wrap { margin-top: 32px; }
    .compare .sub th { padding-top: 22px; font-weight: 700; color: var(--ink); }
    .compare td { min-width: 112px; }
    .price ul { padding-left: 20px; margin: 16px 0 0; }
    .price li { margin-bottom: 8px; }
    .table-scroll { overflow-x: auto; }
    table.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
    .compare caption { text-align: left; padding-bottom: 10px; color: var(--muted); }
    .compare th, .compare td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
    .compare thead th { font-family: var(--serif); font-weight: 500; font-size: 19px; }
    .compare tbody th { font-weight: 400; color: var(--muted); }
    .compare td:nth-child(2) { font-weight: 700; color: var(--accent); }
    .compare .total th, .compare .total td { font-weight: 700; color: var(--ink); border-bottom: 0; }
    .compare .total td:nth-child(2) { color: var(--accent); }
    .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }

    .privacy { max-width: 700px; }
    .privacy p { font-size: 18px; }

    .faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
    .faq details:last-child { border-bottom: 1px solid var(--line); }
    .faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
    .faq details p { margin: 10px 0 0; color: var(--muted); }

    .waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
    .wl-form { display: grid; gap: 14px; }
    .wl-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
    .wl-form input, .wl-form select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
                                      background: var(--surface); color: var(--ink); font: inherit; }
    .wl-form .hp { position: absolute; left: -9999px; }
    .wl-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }


    @media (max-width: 860px) {
      .notes, .price, .waitlist, .included { grid-template-columns: 1fr; gap: 28px; }
      .included { gap: 0; }
      section { padding: 52px 0; }
      .hero { padding-top: 34px; }
      .compare th, .compare td { padding: 9px 6px; font-size: 14px; }
      .compare thead th { font-size: 16px; }
      table.compare { min-width: 470px; }  /* scrolls sideways rather than breaking names mid-word */
    }

/* Pages other than home: a title band, cards, numbered steps and a closing call to action. */
.page-hero { padding: 56px 0 8px; max-width: 780px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.06; margin: 0 0 16px; letter-spacing: -0.02em; }
.page-hero p { font-size: 20px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; margin: 0 0 6px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card a.more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }
/* Landing routes: three starting points as rows with thin rules, not cards (DESIGN.md: no card rows) */
ul.routes { list-style: none; padding: 0; margin: 24px 0 0; border-bottom: 1px solid var(--line); }
ul.routes li { display: grid; grid-template-columns: 15rem minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
               padding: 18px 0; border-top: 1px solid var(--line); }
ul.routes h3 { font-size: 22px; margin: 0; }
ul.routes p { color: var(--muted); margin: 0; }
ul.routes a.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
ul.routes a.more:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 26px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; max-width: 760px; }
ol.steps li { counter-increment: step; padding-left: 56px; position: relative; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
                      background: var(--tint); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
ol.steps h3 { font-size: 22px; margin: 4px 0 4px; }
ol.steps p { color: var(--muted); margin: 0; }
.cta-band { background: var(--tint); border-radius: 14px; padding: 36px; display: flex; gap: 24px; align-items: center;
            justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--surface); }
.resource-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 20px; }
.resource-list a { display: block; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.resource-list a strong { display: block; color: var(--ink); font-size: 19px; font-family: var(--serif); font-weight: 500; }
.resource-list a span { color: var(--muted); }
.resource-list a:hover strong { color: var(--accent); }
@media (max-width: 860px) {
  .cards, .split, .resource-list, ul.routes li { grid-template-columns: 1fr; gap: 20px; }
  ul.routes li { gap: 6px; }
  .page-hero { padding-top: 34px; }
  .cta-band { padding: 26px; }
}

    .cards.fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

    /* Savings calculator (/new-practice) and founder page (/about) */
    .calc { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 24px; background: var(--surface);
            border: 1px solid var(--line); border-radius: 8px; }
    .calc form { display: grid; gap: 14px; align-content: start; }
    .calc label { display: grid; gap: 4px; font-weight: 700; }
    .calc [hidden] { display: none; }
    .calc input, .calc select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
                                color: var(--ink); background: var(--bg); width: 100%; }
    .calc-verdict { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--accent-ink); }
    .fine { font-size: 14px; color: var(--muted); }
    .day-one { display: grid; gap: 0; margin: 0; }
    .day-one > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
    .day-one dt { font-weight: 700; }
    .day-one dd { margin: 0; }
    .founder { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 820px; }
    .founder-photo { aspect-ratio: 1; display: grid; place-items: center; background: var(--tint); border: 1px solid var(--line);
                     border-radius: 8px; color: var(--muted); }
    @media (max-width: 720px) { .calc, .day-one > div, .founder { grid-template-columns: minmax(0, 1fr); } .day-one > div { gap: 4px; } .founder-photo { max-width: 180px; } }
