/*
 * Public homepage (layouts/home). Everything is scoped under .home-page because
 * the app layout's `stylesheet_link_tag :app` also picks up this file.
 */

.home-page {
  --paper: #fffaf2;
  --paper-2: #f6eddf;
  --ink: #1d1b18;
  --ink-2: #57514a;
  --line: #e6dccb;
  --accent: #d0391e;       /* tomato: white text on it is 4.9:1 */
  --accent-ink: #a82a13;   /* accent for text on paper */
  --accent-soft: #fde3d9;
  --radius: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  *, *::before, *::after { box-sizing: border-box; }
  h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  .wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 640px) { .wrap { padding: 0 28px; } }

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
    &:focus { top: 12px; }
  }

  /* ── Buttons ───────────────────────────────────────── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font: 700 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn--primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 0 var(--accent-ink), 0 8px 20px -8px rgb(208 57 30 / .55);
    &:hover { background: var(--accent-ink); }
  }
  .btn--ghost {
    color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
    &:hover { background: var(--ink); color: var(--paper); }
  }
  .btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
  .btn--onaccent { background: var(--paper); color: var(--accent-ink); box-shadow: 0 2px 0 rgb(0 0 0 / .18); }
  .btn--onaccent:hover { background: #fff; }
  .btn--onaccent-ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
  .btn--onaccent-ghost:hover { background: #fff; color: var(--accent-ink); }

  /* ── Nav ───────────────────────────────────────────── */
  .site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 250 242 / .88);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
  }
  .site-nav__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
  .wordmark {
    display: inline-flex; align-items: center; gap: 8px;
    font: 800 1.375rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink);
  }
  .wordmark__mark { width: 30px; height: 30px; color: var(--accent); transform: rotate(-6deg); }
  .wordmark--small { font-size: 1.25rem; }
  .site-nav__links { display: none; gap: 28px; margin-left: 24px; }
  .site-nav__links a, .site-nav__signin {
    font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--ink-2);
    &:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
  }
  .site-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
  @media (min-width: 820px) { .site-nav__links { display: flex; } }
  @media (max-width: 379px) { .site-nav__signin { display: none; } }

  /* ── Hero ──────────────────────────────────────────── */
  .hero { padding: 20px 0 56px; }
  .hero__grid { display: grid; gap: 32px; align-items: center; }
  @media (min-width: 960px) {
    .hero { padding: 48px 0 88px; }
    .hero__grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  }
  .eyebrow {
    display: inline-block; font-weight: 700; font-size: .875rem; letter-spacing: .02em;
    color: var(--accent-ink); background: var(--accent-soft);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  }
  .hero__title {
    font: 800 clamp(2.5rem, 9vw, 4.5rem)/0.98 var(--display);
    letter-spacing: -.035em; text-wrap: balance;
  }
  .hero__questions {
    margin-top: 20px; display: flex; flex-direction: column; gap: 2px;
    font-size: clamp(1.0625rem, 2.6vw, 1.25rem); color: var(--ink-2);
  }
  .hero__questions span::before { content: "“"; color: var(--line); font-weight: 800; margin-right: 1px; }
  .hero__questions span::after { content: "”"; color: var(--line); font-weight: 800; }
  .hero__answer {
    margin-top: 10px; font: 800 clamp(1.375rem, 3.6vw, 1.75rem)/1.2 var(--display);
    letter-spacing: -.02em; color: var(--accent-ink);
  }
  .hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
  @media (max-width: 419px) { .hero__ctas .btn { flex: 1 1 100%; } }

  /* Photo frame. Keep the 4:3 ratio: chip --x/--y percentages depend on it. */
  .hero-photo {
    position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
    background: #f4e6d0;
    box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgb(80 50 20 / .45);
    transform: rotate(.6deg);
  }
  @media (max-width: 959px) { .hero-photo { margin: 0 -4px; transform: none; } }
  .hero-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .viewfinder { position: absolute; inset: 14px; pointer-events: none; }
  .viewfinder i { position: absolute; width: 26px; height: 26px; border: 3px solid rgb(255 255 255 / .9); }
  .viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
  .viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
  .viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
  .viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
  .viewfinder--small { inset: 10px; }
  .viewfinder--small i { width: 16px; height: 16px; border-width: 2px; }

  .chips { position: absolute; inset: 0; }
  .chip {
    position: absolute; left: var(--x); top: var(--y); max-width: 46%;
    display: flex; flex-direction: column; gap: 1px;
    padding: 6px 10px 7px 22px; border-radius: 10px;
    background: rgb(255 255 255 / .96); color: var(--ink);
    box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 22px -10px rgb(0 0 0 / .4);
    line-height: 1.2;
    animation: chip-in .5s cubic-bezier(.2, 1.4, .4, 1) both;
    animation-delay: calc(.35s + var(--d) * .14s);
  }
  .chip::before {
    content: ""; position: absolute; left: 9px; top: 11px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .chip__name { font-weight: 700; font-size: .8125rem; }
  .chip__where { font-size: .75rem; color: var(--ink-2); }
  .chip--alert { background: var(--ink); color: #fff; }
  .chip--alert .chip__where { color: #ffc9b8; font-weight: 700; }
  .chip--alert::before { background: #ffb199; box-shadow: 0 0 0 3px rgb(255 177 153 / .25); }
  @media (max-width: 479px) {
    .chip { padding: 4px 8px 5px 18px; border-radius: 8px; max-width: 52%; }
    .chip::before { left: 7px; top: 9px; width: 6px; height: 6px; }
    .chip__name { font-size: .6875rem; }
    .chip__where { font-size: .625rem; }
    .chip--extra { display: none; }
  }
  @media (min-width: 960px) {
    .chip__name { font-size: .875rem; }
    .chip__where { font-size: .8125rem; }
  }
  @keyframes chip-in {
    from { opacity: 0; transform: translateY(8px) scale(.9); }
    to { opacity: 1; transform: none; }
  }

  /* ── Section basics ────────────────────────────────── */
  .section-title {
    font: 800 clamp(1.875rem, 5.5vw, 2.75rem)/1.05 var(--display);
    letter-spacing: -.03em; text-wrap: balance;
  }
  .section-lede { margin-top: 10px; color: var(--ink-2); max-width: 36rem; }

  /* ── How it works ──────────────────────────────────── */
  .steps { padding: 56px 0 64px; border-top: 1px solid var(--line); }
  .steps__list { margin-top: 36px; display: grid; gap: 36px; counter-reset: none; }
  @media (min-width: 860px) {
    .steps { padding: 88px 0; }
    .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  }
  .step { position: relative; padding-left: 64px; }
  @media (min-width: 860px) { .step { padding-left: 0; padding-top: 72px; } }
  .step p { color: var(--ink-2); margin-top: 6px; max-width: 30ch; }
  .step__num {
    position: absolute; left: 0; top: -4px;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    font: 800 1.5rem/1 var(--display); color: var(--accent-ink);
    background: var(--accent-soft); border: 2px solid var(--accent);
  }
  @media (min-width: 860px) { .step__num { top: 0; width: 56px; height: 56px; font-size: 1.75rem; } }
  /* dashed connector between steps */
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 23px; top: 52px; bottom: -32px;
    border-left: 2px dashed var(--line);
  }
  @media (min-width: 860px) {
    .step:not(:last-child)::after {
      left: 72px; right: -24px; top: 28px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line);
    }
  }
  .step__title { font: 800 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
  .step__demo { margin-top: 16px; }
  .step__demo--shutter {
    width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--ink);
    display: grid; place-items: center;
    span { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); }
  }
  .step__demo--fields {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
    font-size: .875rem; padding: 12px 14px; max-width: 320px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    transform: rotate(-1deg);
    dt { font-weight: 700; color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
    dd { color: var(--ink); }
    dd:first-of-type { font-weight: 700; }
  }
  .step__demo--path {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    span {
      font-weight: 700; font-size: .875rem; padding: 5px 11px; border-radius: 8px;
      background: #fff; border: 1px solid var(--line); color: var(--ink);
    }
    span + span::before { content: "›"; margin-right: 8px; color: var(--ink-2); }
    span:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
    span:last-child::before { color: #bbb; }
  }
  /* override .step p colour for demo row */
  .step p.step__demo--path { color: inherit; }

  /* ── Feature explorer ──────────────────────────────── */
  .explorer { background: var(--paper-2); padding: 56px 0 64px; }
  @media (min-width: 860px) { .explorer { padding: 88px 0; } }
  .explorer__tabs {
    margin: 28px -16px 0; padding: 4px 16px 8px;
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
  }
  @media (min-width: 640px) { .explorer__tabs { margin: 28px 0 0; padding: 4px 0 8px; flex-wrap: wrap; } }
  .explorer__tab {
    flex: 0 0 auto; scroll-snap-align: start;
    min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    font: 700 .9375rem/1 var(--body); color: var(--ink-2);
    background: transparent; border: 2px solid var(--line);
    transition: background-color .15s, color .15s, border-color .15s;
    &:hover { border-color: var(--ink-2); color: var(--ink); }
    &[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  }
  .explorer__panel {
    margin-top: 28px;
    display: grid; gap: 28px; justify-items: center; align-items: center;
    &:focus-visible { outline-offset: 8px; border-radius: 16px; }
  }
  .explorer__panel[hidden] { display: none; }
  @media (min-width: 860px) {
    .explorer__panel { grid-template-columns: 1fr auto; justify-items: start; gap: 64px; margin-top: 40px; }
  }
  .explorer__line {
    font: 700 clamp(1.375rem, 4vw, 2.125rem)/1.2 var(--display); letter-spacing: -.02em;
    max-width: 22ch; text-wrap: balance; justify-self: start;
  }
  .explorer__panel:not([hidden]) .phone { animation: panel-in .35s ease both; }
  @keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* Phone mock */
  .phone {
    width: min(300px, 100%); aspect-ratio: 300 / 540;
    padding: 10px; border-radius: 42px; background: var(--ink);
    box-shadow: 0 40px 70px -40px rgb(60 40 20 / .6);
    transform: rotate(-1.5deg);
  }
  @media (min-width: 860px) { .phone { width: 320px; margin-right: 40px; } }
  .phone__screen {
    height: 100%; border-radius: 33px; overflow: hidden; background: var(--paper);
    display: flex; flex-direction: column; font-size: .8125rem; line-height: 1.35;
  }

  /* Screen pieces */
  .scr-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px 10px; font-weight: 700; font-size: .75rem;
    span:last-child { font-family: var(--display); font-size: .9375rem; }
  }
  .scr-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .scr-camera { position: relative; margin: 0 12px; border-radius: 18px; overflow: hidden; flex: 1; min-height: 0; }
  .scr-camera__subject { width: 100%; height: 100%; display: block; object-fit: cover; }
  .scr-sheet { margin: -26px 8px 8px; position: relative; background: #fff; border-radius: 20px; padding: 14px 14px 12px; box-shadow: 0 -6px 24px -12px rgb(0 0 0 / .35); }
  .scr-ai { font-weight: 700; font-size: .6875rem; color: var(--accent-ink); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
  .scr-label { font-size: .6875rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
  .scr-field { padding: 2px 0 4px; border-bottom: 1px solid var(--line); }
  .scr-field--strong { font-weight: 700; font-size: .9375rem; }
  .scr-button {
    margin-top: 10px; text-align: center; font-weight: 700; padding: 10px; border-radius: 999px;
    background: var(--accent); color: #fff;
  }
  .scr-button--quiet { margin-top: 0; background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
  .scr-crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--ink-2);
    span { background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 7px; font-weight: 700; color: var(--ink); }
    span.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
  }
  .scr-list {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
    li:first-child { border-top: 0; }
    li.is-on { background: var(--accent-soft); font-weight: 700; }
    li b { margin-left: auto; color: var(--accent-ink); }
  }
  .scr-list__add { color: var(--accent-ink); font-weight: 700; }
  .scr-list--plain li { padding: 7px 12px; color: var(--ink-2); }
  .scr-swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
  .scr-thumb {
    width: 40px; height: 40px; border-radius: 10px; flex: none;
    background:
      radial-gradient(circle at 50% 58%, var(--c) 0 34%, transparent 35%),
      linear-gradient(#eae1d2, #ddd2bf);
  }
  .scr-thumb--lg { width: auto; height: auto; aspect-ratio: 1; border-radius: 12px; }
  .scr-result {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px;
    div { display: flex; flex-direction: column; }
    small { color: var(--ink-2); font-size: .75rem; }
  }
  .scr-result--big { padding: 12px; }
  .scr-question { font: 800 1.125rem/1.2 var(--display); letter-spacing: -.01em; margin-top: 4px; }
  .scr-note { margin-top: auto; font-size: .75rem; color: var(--ink-2); text-align: center; }
  .scr-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .scr-rows {
    display: flex; flex-direction: column; gap: 8px;
    li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
    div { display: flex; flex-direction: column; min-width: 0; }
    small { color: var(--ink-2); font-size: .75rem; }
    em { margin-left: auto; font-style: normal; font-weight: 700; font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
    li:last-child em { background: var(--paper-2); color: var(--ink-2); }
  }

  /* ── Smart nudges ──────────────────────────────────── */
  .nudges { padding: 56px 0 64px; overflow: hidden; }
  @media (min-width: 860px) { .nudges { padding: 96px 0; } }
  .nudges__list {
    margin-top: 32px; padding: 8px 16px 20px;
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 16px; scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
  }
  @media (min-width: 900px) {
    .nudges__list {
      max-width: 1160px; margin: 40px auto 0; padding: 8px 28px 20px;
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible;
    }
  }
  .nudge {
    flex: 0 0 min(300px, 84%); scroll-snap-align: start;
    padding: 14px 16px 12px; border-radius: 22px;
    background: rgb(255 255 255 / .9);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -24px rgb(60 40 20 / .5);
  }
  @media (min-width: 900px) {
    .nudge:nth-child(1) { transform: rotate(-1.5deg); }
    .nudge:nth-child(2) { transform: translateY(28px) rotate(1deg); }
    .nudge:nth-child(3) { transform: rotate(-.5deg); }
  }
  .nudge__meta {
    display: flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 700;
    span:not(.nudge__icon) { font-weight: 400; color: var(--ink-2); }
  }
  .nudge__icon {
    width: 22px; height: 22px; border-radius: 6px; background: var(--accent);
    background-image: radial-gradient(circle at 50% 56%, #fff 0 22%, var(--accent) 23% 34%, #fff 35% 44%, transparent 45%);
  }
  .nudge__text { margin-top: 8px; font: 700 1.125rem/1.3 var(--display); letter-spacing: -.01em; }
  .nudge__actions {
    margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap;
    span { font-size: .8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); }
    span:first-child { background: var(--ink); color: #fff; }
  }

  /* ── FAQ ───────────────────────────────────────────── */
  .faq { padding: 56px 0 72px; border-top: 1px solid var(--line); }
  .faq__grid { display: grid; gap: 28px; }
  @media (min-width: 860px) { .faq { padding: 88px 0; } .faq__grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
  .faq__list details { border-bottom: 1px solid var(--line); }
  .faq__list details:first-child { border-top: 1px solid var(--line); }
  .faq__list summary {
    list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
    font: 700 1.1875rem/1.3 var(--display); letter-spacing: -.01em;
    &::-webkit-details-marker { display: none; }
    &::after {
      content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
      width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
      font: 700 1.25rem/1 var(--body); background: var(--paper-2);
      transition: rotate .2s ease;
    }
  }
  .faq__list details[open] summary::after { rotate: 45deg; background: var(--accent-soft); color: var(--accent-ink); }
  .faq__body { padding: 0 0 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
  .faq__body a { color: var(--accent-ink); font-weight: 700; }

  /* ── Pricing ───────────────────────────────────────── */
  .pricing { padding: 56px 0 64px; background: var(--paper-2); }
  @media (min-width: 860px) { .pricing { padding: 88px 0; } }
  .pricing__plans { margin-top: 32px; display: grid; gap: 16px; align-items: start; }
  @media (min-width: 860px) { .pricing__plans { grid-template-columns: 1fr 1.1fr 0.9fr; gap: 20px; align-items: stretch; } }
  .plan {
    position: relative; display: flex; flex-direction: column;
    padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  }
  .plan--featured {
    background: var(--ink); color: #fff; border-color: var(--ink);
    box-shadow: 0 30px 60px -30px rgb(40 25 10 / .55);
  }
  @media (min-width: 860px) { .plan--featured { transform: translateY(-12px); } }
  .plan--soon { background: transparent; border: 2px dashed var(--line); }
  .plan__badge {
    align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    background: var(--accent); color: #fff;
  }
  .plan__badge--soon { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
  .plan__name { font: 800 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
  .plan__price { margin-top: 10px; color: var(--ink-2); font-weight: 600; }
  .plan__price span { font: 800 2.75rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); margin-right: 2px; }
  .plan--featured .plan__price, .plan--featured .plan__yearly { color: #d9d2c7; }
  .plan--featured .plan__price span { color: #fff; }
  .plan__yearly { margin-top: 4px; font-size: .9375rem; font-weight: 600; }
  .plan__for { margin-top: 10px; color: var(--ink-2); }
  .plan__list { margin: 18px 0 22px; display: grid; gap: 8px; }
  .plan__list li { position: relative; padding-left: 26px; }
  .plan__list li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent-soft) no-repeat center / 10px
      url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23a82a13%27 stroke-width=%274%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 13l4 4L19 7%27/%3E%3C/svg%3E");
  }
  .plan__cta { margin-top: auto; width: 100%; }

  /* ── Waitlist (dialog + standalone page) ───────────── */
  .waitlist-dialog {
    width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px);
    margin: auto; padding: 28px 24px 24px; border: 0; border-radius: 28px;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5);
  }
  .waitlist-dialog::backdrop { background: rgb(29 27 24 / .55); backdrop-filter: blur(3px); }
  .waitlist-dialog[open] { animation: dialog-in .25s cubic-bezier(.2, 1.2, .4, 1) both; }
  @keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
  @media (max-width: 519px) {
    .waitlist-dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  }
  .waitlist-dialog__close {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: transparent; color: var(--ink-2); font-size: 1.75rem; line-height: 1; cursor: pointer;
    &:hover { background: var(--paper-2); color: var(--ink); }
  }
  .waitlist__eyebrow {
    display: inline-block; margin-bottom: 12px; padding: 4px 11px; border-radius: 999px;
    font-size: .8125rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft);
  }
  .waitlist__title { font: 800 1.75rem/1.1 var(--display); letter-spacing: -.03em; text-wrap: balance; padding-right: 28px; }
  .waitlist__text { margin-top: 10px; color: var(--ink-2); }
  .waitlist__text strong { color: var(--ink); overflow-wrap: anywhere; }
  .waitlist__form { margin-top: 20px; }
  .waitlist__label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
  .waitlist__row { display: flex; flex-direction: column; gap: 10px; }
  @media (min-width: 520px) { .waitlist__row { flex-direction: row; } }
  .waitlist__input {
    flex: 1; width: 100%; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 1rem var(--body);
    &:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(208 57 30 / .15); }
    &[aria-invalid="true"] { border-color: #b91c1c; }
  }
  .waitlist__error { margin-top: 8px; color: #b91c1c; font-weight: 600; font-size: .9375rem; }
  .waitlist__fine { margin-top: 10px; font-size: .8125rem; color: var(--ink-2); }
  .waitlist__done { margin-top: 20px; }

  .waitlist-page__main { padding-top: 32px; padding-bottom: 64px; }
  .waitlist-page__card {
    max-width: 520px; margin: 0 auto; padding: 28px 24px; border-radius: 28px;
    background: #fff; border: 1px solid var(--line);
  }
  .waitlist-page__back { max-width: 520px; margin: 16px auto 0; font-weight: 600; font-size: .9375rem; }
  .waitlist-page__back a { color: var(--ink-2); text-decoration: none; }
  .waitlist-page__back a:hover { color: var(--ink); text-decoration: underline; }

  /* ── Final CTA ─────────────────────────────────────── */
  .final-cta { background: var(--accent); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
  .final-cta::before {
    content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%;
    border: 40px solid rgb(255 255 255 / .1);
  }
  @media (min-width: 860px) { .final-cta { padding: 96px 0; } }
  .final-cta__inner { position: relative; }
  .final-cta__title {
    font: 800 clamp(2rem, 6.5vw, 3.5rem)/1.02 var(--display); letter-spacing: -.035em; max-width: 16ch; text-wrap: balance;
  }
  .final-cta p { margin-top: 14px; font-size: 1.125rem; color: #ffe3da; }

  /* ── Footer ────────────────────────────────────────── */
  .site-footer { padding: 36px 0 44px; background: var(--paper); }
  .site-footer__inner { display: grid; gap: 14px; }
  @media (min-width: 860px) {
    .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
    .site-footer__legal { grid-column: 1 / -1; }
  }
  .site-footer__tag { color: var(--ink-2); }
  .site-footer__links {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    a { font-weight: 600; font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
    a:hover { color: var(--ink); text-decoration: underline; }
  }
  .site-footer__legal { font-size: .8125rem; color: var(--ink-2); }

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

html:has(body.home-page) { scroll-behavior: smooth; scroll-padding-top: 72px; }
