/* Bare Health site — shared styles.
   Layout: dark espresso header + photo-led sections on warm neutrals; Philosopher (regular) headings like the app dashboard, Mulish body. */
:root {
  --ground: #f9f3ef;
  --surface: #fffdfb;
  --ink: #2a1c18;
  --ink-soft: #6e5b52;
  --line: #ecdfd6;
  --caramel: #9c6652;
  --caramel-ink: #8f5a47;
  --espresso-1: #1e1512;
  --espresso-2: #3a2620;
  --on-dark: #f7ece4;
  --on-dark-soft: #d3bdb0;
  --gold: #e4c0a8;
  --ok: #2f7a4f;
  --ok-bg: #e5f2ea;
  --font-head: "Philosopher", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17100e; --surface: #221815; --ink: #f3e9df; --ink-soft: #bfae9f; --line: #3a2b22;
    --caramel: #d7a58c; --caramel-ink: #e9c4ad; --ok: #7cc79c; --ok-bg: #1d3427; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #17100e; --surface: #221815; --ink: #f3e9df; --ink-soft: #bfae9f; --line: #3a2b22;
  --caramel: #d7a58c; --caramel-ink: #e9c4ad; --ok: #7cc79c; --ok-bg: #1d3427; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--caramel-ink); }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel-ink); }
.lede { color: var(--ink-soft); font-size: 1.12rem; max-width: 62ch; }
.section { padding-block: 92px; }
.section.tight { padding-block: 64px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 780px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: linear-gradient(135deg, #9f6853, #875443); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-light { background: #fffaf3; color: #2a1c15; }
.on-dark .btn-ghost { color: var(--on-dark); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--espresso-1); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
.wordmark { font-family: "Cormorant Garamond", "Philosopher", Georgia, serif; font-weight: 600; font-size: 1.15rem; letter-spacing: .32em; text-transform: uppercase; color: #ecc7ad; white-space: nowrap; }
.brand-full { display: inline-block; }
.brand-full img { width: 230px; height: auto; }
@media (max-width: 520px) { .wordmark { display: none; } .brand img { height: 40px; } }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--on-dark-soft); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: .92rem; color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--on-dark); border-radius: 2px; }
.menu-panel { position: absolute; right: 0; top: 52px; min-width: 250px; background: var(--espresso-1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 8px; display: grid; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
.menu-panel a { padding: 12px 14px; border-radius: 8px; font-size: 1rem; color: var(--on-dark); }
.menu-panel a:hover { background: rgba(255,255,255,.08); }
@media (max-width: 1360px) { .wordmark { display: none; } }
@media (max-width: 1120px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 1120px) and (min-width: 521px) { .wordmark { display: inline; } }
@media (max-width: 420px) { .nav .btn { padding: 0 14px; font-size: .86rem; } }

/* Dark sections */
.on-dark { background: radial-gradient(110% 80% at 85% 0%, #5e4036 0%, transparent 55%), linear-gradient(160deg, var(--espresso-2), var(--espresso-1) 72%); color: var(--on-dark); }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .lede, .on-dark .sub { color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2 { color: #fffaf3; }

/* Home hero: copy + photo stack */
.hero { padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .sub { font-size: 1.15rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--on-dark-soft); }
.ticks li::before { content: "✓"; color: var(--gold); margin-right: 8px; font-weight: 800; }
.stack { position: relative; min-width: 0; padding-bottom: 70px; }
.stack .main { border-radius: 22px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.stack .chip { position: absolute; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 4px solid var(--espresso-1); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); }
.stack .chip.a { left: -6%; bottom: 0; }
.stack .chip.b { right: -4%; bottom: 18px; width: 36%; }
.stack figcaption { position: absolute; top: 16px; left: 16px; background: rgba(31,20,15,.78); color: #fffaf3; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .stack { padding-bottom: 54px; } .stack .chip.a { left: 0; } .stack .chip.b { right: 0; } }

/* Photo hero (sub pages) */
.photo-hero { position: relative; color: #fffaf3; background: var(--espresso-1); overflow: hidden; }
.photo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,15,10,.92) 0%, rgba(25,15,10,.78) 42%, rgba(25,15,10,.15) 80%); }
.photo-hero .wrap { position: relative; z-index: 1; padding-block: 104px 96px; }
.photo-hero .hero-copy { max-width: 620px; }
.photo-hero .eyebrow { color: var(--gold); }
.photo-hero .sub { color: #ead9ca; font-size: 1.15rem; }
.photo-hero .btn-ghost { color: #fffaf3; }
.photo-hero .ticks { color: #e2cfbf; }
@media (max-width: 760px) { .photo-hero::after { background: linear-gradient(180deg, rgba(25,15,10,.55) 0%, rgba(25,15,10,.9) 55%); } .photo-hero .wrap { padding-block: 220px 64px; } }

/* Split media rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > figure { order: 2; }
.split figure { margin: 0; }
.split figure img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split .copy { display: grid; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > figure { order: 0; } }

/* Lists and grids */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.checks b { color: var(--ink); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 40px; }
.item { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); min-width: 0; }
.item p { color: var(--ink-soft); font-size: .98rem; }
.on-dark .item { border-color: rgba(255,255,255,.15); }
.on-dark .item p { color: var(--on-dark-soft); }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800; }
.compare thead th.us { color: var(--caramel-ink); }
.compare td:first-child { font-weight: 700; width: 24%; }
.compare td.them { color: var(--ink-soft); }
.compare td.us { background: color-mix(in srgb, var(--caramel) 8%, transparent); }

/* Quote band */
.band { position: relative; overflow: hidden; color: #fffaf3; background: var(--espresso-1); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,8,.88) 0%, rgba(20,12,8,.55) 60%, rgba(20,12,8,.2)); }
.band .wrap { z-index: 1; }
.band .wrap { position: relative; padding-block: 120px; }
.band blockquote { margin: 0; max-width: 780px; display: grid; gap: 16px; }
.band blockquote p { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
.band cite { font-style: normal; color: #ead9ca; font-size: 1rem; }

/* Photo strip */
.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.strip figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; min-width: 0; }
.strip img { width: 100%; height: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.strip figcaption { position: absolute; left: 12px; bottom: 12px; color: #fffaf3; font-size: .85rem; font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:first-child { grid-column: 1 / -1; } }

/* Doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door { position: relative; display: grid; align-content: end; min-height: 440px; border-radius: 22px; overflow: hidden; color: #fffaf3; text-decoration: none; isolation: isolate; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,12,8,0) 25%, rgba(20,12,8,.88) 78%); }
.door:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .door img { transition: none; } .door:hover img { transform: none; } }
.door-body { padding: 28px; display: grid; gap: 10px; }
.door-k { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.door h3 { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.door p { color: #ead9ca; max-width: 46ch; }
.door .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { min-height: 380px; } }

/* Stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stages li { display: grid; gap: 8px; align-content: start; padding: 26px 24px 0 0; position: relative; min-width: 0; }
.stages li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.stages li::after { content: ""; position: absolute; top: -6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 4px var(--surface); }
.stages li:nth-child(1)::after { width: 10px; height: 10px; top: -4px; }
.stages li:nth-child(2)::after { width: 12px; height: 12px; top: -5px; }
.stages li:nth-child(4)::after { width: 18px; height: 18px; top: -8px; }
.stage-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel-ink); }
.stages li > p:last-child { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stages li { padding: 0 0 28px 30px; }
  .stages li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .stages li::after { left: 0; top: 2px; }
  .stages li:nth-child(1)::after { left: 2px; top: 4px; } .stages li:nth-child(2)::after { left: 1px; top: 3px; } .stages li:nth-child(4)::after { left: -2px; top: 0; }
}

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--caramel); color: var(--caramel-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .steps, .steps.five { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .steps, .steps.five { grid-template-columns: 1fr; } }

/* Callout */
.callout { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.callout p { color: var(--ink-soft); max-width: 66ch; }
.callout b { color: var(--ink); }
.founding { background: linear-gradient(135deg, color-mix(in srgb, var(--caramel) 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--caramel) 35%, var(--line)); }

/* Calculator */
.calc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.calc-in { padding: 30px; display: grid; gap: 22px; align-content: start; background: var(--ground); border-right: 1px solid var(--line); min-width: 0; }
.calc-in label { display: grid; gap: 8px; font-weight: 700; font-size: .95rem; }
.calc-in output { font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-in input[type=range] { width: 100%; accent-color: var(--caramel); min-height: 32px; }
.calc-out { padding: 30px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.calc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.calc-row b { font-size: 1.02rem; }
.calc-row small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .84rem; }
.calc-row .amt { font-family: var(--font-head); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.calc-row.best { border: 2px solid var(--caramel); background: color-mix(in srgb, var(--caramel) 7%, transparent); }
.calc-row .tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--caramel-ink); margin-left: 8px; }
.calc-row.them { opacity: .85; }
.calc-note { color: var(--ink-soft); font-size: .84rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: grid; gap: 18px; grid-template-rows: auto auto auto auto 1fr auto; min-width: 0; position: relative; }
.plan.featured { border: 2px solid var(--caramel); }
.plan .badge { position: absolute; top: -13px; left: 26px; background: #94604d; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; }
.plan .for { color: var(--ink-soft); font-size: .95rem; min-height: 3em; }
.price { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.price .amt { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.price .amt small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price .meta { font-size: .92rem; color: var(--ink-soft); }
.price .meta s { color: var(--ink-soft); }
.price .meta .deal { color: var(--ok); font-weight: 800; }
.fee { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ground); font-size: .92rem; }
.fee b { font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan li.lead::before { content: ""; }
.plan li.lead { font-weight: 800; }
.plan .btn { width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .plan .for { min-height: 0; } }
.price-notes { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: .92rem; color: var(--ink-soft); }
.price-notes b { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .price-notes { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--caramel-ink); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }

/* Form */
.join .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.join-copy { display: grid; gap: 16px; min-width: 0; }
.join-copy b { overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-width: 0; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .92rem; }
.field label span { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--caramel); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.err { color: #b3261e; font-size: .88rem; font-weight: 700; }
:root[data-theme="dark"] .err { color: #ff9b8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #ff9b8f; } }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--ink-soft); font-size: .84rem; max-width: 42ch; }
.done-box { grid-column: 1 / -1; background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 18px 20px; font-weight: 700; }
.done-box span { display: block; font-weight: 500; color: var(--ink); margin-top: 4px; }
.on-dark .join-copy .lede { color: var(--on-dark-soft); }
@media (max-width: 860px) { .join .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(31,20,15,.96); border-top: 1px solid rgba(255,255,255,.1); }
  .mobile-cta .btn { flex: 1; min-height: 46px; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* Footer */
footer { background: var(--espresso-1); color: var(--on-dark-soft); padding-block: 52px; font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--on-dark); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
footer a { color: var(--on-dark-soft); text-decoration: none; }
footer a:hover { color: var(--on-dark); text-decoration: underline; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer li { overflow-wrap: anywhere; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .wrap { grid-template-columns: 1fr; } }

/* Footer contact row */
footer .contact-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
footer .contact-row div { display: grid; gap: 2px; min-width: 0; }
footer .contact-row .k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
footer .contact-row .v { color: var(--on-dark); overflow-wrap: anywhere; }
@media (max-width: 760px) { footer .contact-row { grid-template-columns: 1fr; } }

/* Legal documents */
.doc-hero { padding-block: 64px 48px; }
.doc-hero .meta { color: var(--on-dark-soft); font-size: .95rem; margin-top: 12px; }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; align-items: start; }
.doc nav { position: sticky; top: 92px; font-size: .9rem; display: grid; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.doc nav b { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.doc nav a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.doc nav a:hover { color: var(--caramel-ink); }
.doc article { max-width: 72ch; display: grid; gap: 14px; }
.doc article h2 { font-size: 1.6rem; margin-top: 28px; scroll-margin-top: 90px; }
.doc article h2:first-of-type { margin-top: 0; }
.doc article h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin-top: 8px; }
.doc article p, .doc article li { color: var(--ink); font-size: 1rem; }
.doc article ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; }
.doc .summary p { color: var(--ink-soft); }
.draft-note { background: #fff4dd; color: #5a3d00; border: 1px solid #e7c77a; border-radius: 12px; padding: 12px 16px; font-size: .92rem; font-weight: 600; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 72px; } .doc nav { position: static; } }

/* Product screenshot frame */
.frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -34px rgba(42,28,24,.45); }
.frame-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--ground); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.frame img { width: 100%; }
.frame figcaption { padding: 12px 18px; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* Stage 1: before/after + features overview */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ba-card { border-radius: 20px; padding: 32px 30px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.ba-old { background: var(--surface); border: 1px solid var(--line); }
.ba-new { box-shadow: 0 30px 60px -34px rgba(30,21,18,.7); }
.ba-card h3 { font-size: 1.5rem; }
.ba-new h3 { color: #fffaf3; }
.ba-k { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ba-new .ba-k { color: var(--gold); }
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ba-old .ba-list li { color: var(--ink-soft); }
.ba-new .ba-list li { color: var(--on-dark); }
.ba-list li::before { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.ba-old .ba-list li::before { content: "×"; background: var(--line); color: var(--ink-soft); font-size: 1.05rem; }
.ba-new .ba-list li::before { content: "✓"; background: var(--gold); color: var(--espresso-1); }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: var(--radius); background: var(--ground); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; transition: border-color .15s, transform .15s; }
.feat:hover { border-color: var(--caramel); transform: translateY(-2px); }
.feat svg { width: 30px; height: 30px; stroke: var(--caramel-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 1.18rem; }
.feat p { color: var(--ink-soft); font-size: .93rem; }
.feat .more { font-size: .85rem; font-weight: 800; color: var(--caramel-ink); }
@media (max-width: 980px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .feat { transition: none; } .feat:hover { transform: none; } }

/* Anything marked hidden stays hidden (form fields after a successful send) */
[hidden] { display: none !important; }

/* v20: product screenshots */
.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shot .shot-img { display: block; border: 1px solid #e9ddd2; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(30,21,18,.14); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: .9rem; color: #6b5a50; line-height: 1.45; }
.on-dark .shot figcaption { color: #ead9ca; }
.on-dark .shot .shot-img { border-color: rgba(255,250,243,.25); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.split figure.shot img { aspect-ratio: auto; object-fit: unset; border-radius: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: grid; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.tile .tile-img { height: 260px; overflow: hidden; border: 1px solid #e9ddd2; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(30,21,18,.12); transition: transform .15s, border-color .15s; }
.tile:hover .tile-img { transform: translateY(-2px); border-color: var(--caramel); }
.tile img { display: block; width: 100%; height: auto; }
.tile b { font-size: 1.05rem; }
.tile span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .tiles3 { grid-template-columns: 1fr; } .tile .tile-img { height: 220px; } }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 28px; justify-content: center; align-items: start; }
.phones .shot .shot-img { border-radius: 28px; }
@media (max-width: 860px) { .phones { grid-template-columns: repeat(2, minmax(0, 320px)); } }
@media (max-width: 560px) { .phones { grid-template-columns: minmax(0, 320px); } }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--caramel-ink); text-decoration: underline; cursor: pointer; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
dialog.lb::backdrop { background: rgba(20,12,8,.82); }
dialog.lb .lb-body { position: relative; background: #fff; border-radius: 18px; overflow: auto; max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog.lb img { display: block; width: 100%; height: auto; }
dialog.lb .lb-close { position: sticky; top: 10px; float: right; margin: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e9ddd2; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 1; }
