/* Meds2Take website. Plain CSS, no build step.
   Brand: teal #0D5C6E, coral #FE6A6A, green #37A068, amber #F4B13C, mist #BAD3D6.
   Type: Playfair Display (headlines, as in the wordmark), Inter (everything else). */

:root {
  --teal: #0d5c6e;
  --teal-deep: #08404d;
  --teal-ink: #0b3640;
  --ink: #142a30;
  --muted: #4a6168;
  --line: #d3e2e4;
  --mist: #bad3d6;
  --mist-soft: #e8f1f2;
  --paper: #ffffff;
  --page: #f4f8f8;
  --coral: #fe6a6a;
  --coral-ink: #c2383a;
  --green: #37a068;
  --green-ink: #1f7a4b;
  --amber: #f4b13c;
  --amber-ink: #8a5a00;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 248, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.navlink { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 12px; border-radius: 999px; }
.nav a.navlink:hover { background: var(--mist-soft); }
@media (max-width: 860px) { .nav a.navlink { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--mist); }
.btn-ghost:hover { background: var(--paper); border-color: var(--teal); color: var(--teal); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; color: var(--teal-ink); }
.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 18ch;
}
.h3 { font-family: var(--sans); font-weight: 650; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 24px 0 0; }
.section-intro { color: var(--muted); max-width: 36em; margin: 18px 0 0; font-size: 19px; }

section { padding: 112px 0; }
@media (max-width: 720px) { section { padding: 76px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; }
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 32px; }
}

/* Phone mockup of the dashboard */
.phone {
  position: relative; width: min(360px, 100%);
  background: var(--paper);
  border-radius: 46px; padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 40px 80px -30px rgba(8, 64, 77, .35), 0 12px 24px -12px rgba(8, 64, 77, .18);
}
.screen { border-radius: 34px; background: var(--page); padding: 22px 18px 18px; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; align-items: center; }
.screen-top img { height: 22px; width: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green-ink); background: #e3f3ea; padding: 5px 10px; border-radius: 999px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.screen-date { margin: 16px 0 2px; font-size: 13px; color: var(--muted); }
.screen-name { margin: 0; font: 700 22px/1.2 var(--serif); color: var(--teal-ink); }

.ring-wrap { position: relative; margin: 10px auto 6px; width: 100%; max-width: 270px; aspect-ratio: 1; }
.ring-wrap svg { width: 100%; height: 100%; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font: 700 44px/1 var(--serif); color: var(--teal-ink); font-variant-numeric: lining-nums; }
.ring-center span { font-size: 13px; color: var(--muted); margin-top: 6px; }

.dose-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dose {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.dose .tag { width: 10px; height: 34px; border-radius: 6px; }
.dose b { display: block; font-size: 14px; line-height: 1.25; color: var(--ink); }
.dose small { display: block; font-size: 12px; color: var(--muted); }
.dose .state { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.state.taken { color: var(--green-ink); background: #e3f3ea; }
.state.due { color: var(--amber-ink); background: #fdf1d9; }
.state.later { color: var(--muted); background: var(--mist-soft); }

/* Ring load animation: the one orchestrated moment on the page */
.ring-arc { stroke-dasharray: 100; stroke-dashoffset: 100; animation: arc 1.6s cubic-bezier(.6,.05,.25,1) .3s forwards; }
.ring-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .45s ease-out forwards; }
@keyframes arc { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.count-in { opacity: 0; animation: fade .6s ease-out 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ring-arc { animation: none; stroke-dashoffset: 0; }
  .ring-dot, .count-in { animation: none; opacity: 1; }
}


/* ---------- Promises strip ---------- */
.promises { padding: 0; }
.promises ul {
  list-style: none; margin: 0; padding: 28px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promises li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--muted); }
.promises li strong { display: block; color: var(--ink); font-size: 17px; }
.promises svg { flex: none; width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
@media (max-width: 940px) { .promises ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promises ul { grid-template-columns: 1fr; } }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 56px; }
.tile {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px; overflow: hidden;
  display: flex; flex-direction: column;
}
.tile p { color: var(--muted); margin: 10px 0 0; font-size: 17px; max-width: 30em; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist-soft); color: var(--teal); margin-bottom: 22px; }
.tile .icon svg { width: 24px; height: 24px; }
.t-family, .t-export { grid-column: span 3; }
.t-help { grid-column: span 6; background: var(--mist-soft); border-color: var(--mist); }
.t-help .icon { background: var(--paper); }
.soon { display: inline-block; margin-left: 8px; vertical-align: 2px; font: 600 12px/1 var(--sans); color: var(--coral-ink); background: #ffe6e6; padding: 6px 9px; border-radius: 999px; }
.people { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 600; background: var(--page); }
.person i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .t-family, .t-export, .t-help { grid-column: auto; }
  .tile { padding: 26px; }
}

/* ---------- Scroll story ---------- */
.story { padding-bottom: 40px; }
.story-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.chapter { border-left: 3px solid var(--mist); padding: 4px 0 4px 22px; }
.chapter-time { display: block; font-size: 15px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.chapter h3 { font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--serif); margin: 4px 0 8px; }
.chapter p { margin: 0; color: var(--muted); max-width: 26em; font-size: 19px; }
.story-phone-wrap { display: flex; justify-content: center; }
.dose-list.compact { gap: 6px; }
.dose-list.compact .dose { padding: 7px 10px; border-radius: 12px; }
.dose-list.compact .dose .tag { height: 26px; }
.dose-list.compact .dose b { font-size: 13px; }
.dose-list.compact .dose small { font-size: 11px; }
.state.overdue { color: var(--coral-ink); background: #ffe6e6; }
.dose.is-due { border-color: var(--amber); }
.dose.is-overdue { border-color: var(--coral); }
#story-dots circle { transition: fill .25s ease, stroke .25s ease, r .25s ease; }
.ring-center strong.clock { font-size: 34px; font-variant-numeric: tabular-nums; }

/* Live mode (JS on, motion allowed): the phone stays put while the day plays out */
.story.is-live .story-track { height: 420vh; }
.story.is-live .story-stage { position: sticky; top: 68px; height: calc(100vh - 68px); margin-top: 0; }
.story.is-live .chapters { position: relative; display: block; min-height: 15em; }
.story.is-live .chapter {
  position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease; border-left-color: var(--teal);
}
.story.is-live .chapter.is-active { opacity: 1; transform: none; }
.story-progress { display: none; }
.story.is-live .story-progress { display: flex; gap: 6px; margin-top: 22px; }
.story-progress i { height: 4px; flex: 1; border-radius: 4px; background: var(--mist-soft); overflow: hidden; position: relative; }
.story-progress i b { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .story-stage { grid-template-columns: 1fr; gap: 32px; }
  .story.is-live .story-stage { align-content: start; gap: 12px; padding-top: 16px; }
  .story.is-live .chapters { min-height: 9.5em; }
  .story.is-live .chapter h3 { font-size: 26px; margin: 2px 0 4px; }
  .story.is-live .chapter p { font-size: 16px; }
  .story.is-live .story-progress { margin-top: 0; }
}

/* ---------- 3D scan ---------- */
.scan { background: var(--teal-ink); color: #fff; overflow: hidden; }
.scan .h2 { color: #fff; }
.scan .section-intro { color: rgba(255,255,255,.82); }
.scan-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.scan-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.scan-points li { position: relative; padding-left: 30px; color: rgba(255,255,255,.9); }
.scan-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--mist); }
.scan-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; min-height: 520px; }
.bottle-view { position: relative; height: 520px; }
.bottle-3d { position: absolute; inset: 0; }
.bottle-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.bottle-fallback { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); }
.scan-stage.has-3d .bottle-fallback { display: none; }
.scanline {
  position: absolute; left: 20%; right: 20%; top: 0; height: 3px; border-radius: 3px; opacity: 0; z-index: 1; pointer-events: none;
  background: var(--coral); box-shadow: 0 0 12px 2px rgba(254,106,106,.75), 0 0 40px 10px rgba(25,195,220,.25);
}
.vf { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(186,211,214,.75); }
.vf.tl { left: 12%; top: 10%; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.vf.tr { right: 12%; top: 10%; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.vf.bl { left: 12%; bottom: 10%; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.vf.br { right: 12%; bottom: 10%; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }
.scan-form {
  position: relative; z-index: 1; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--r-md); padding: 22px; margin-left: -24px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.scan-form-title { margin: 0 0 10px; font: 700 20px/1.2 var(--serif); color: var(--teal-ink); }
.sf { border-bottom: 1px solid var(--line); padding: 9px 0; }
.sf span { display: block; font-size: 13px; color: var(--muted); }
.sf b { display: block; font-size: 16px; line-height: 1.35; min-height: 1.35em; }
.sf-check { margin: 12px 0 0; font-size: 14px; color: var(--green-ink); font-weight: 600; }
/* Animated form states, only while the 3D scene runs */
.scan-stage.has-3d .sf b { position: relative; color: transparent; transition: color .3s ease; }
.scan-stage.has-3d .sf b::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 10px; width: 70%; margin-top: -5px; border-radius: 6px;
  background: linear-gradient(90deg, var(--mist-soft), #f6fafa, var(--mist-soft)); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; transition: opacity .2s ease;
}
.scan-stage.has-3d .sf.is-filled b { color: var(--ink); }
.scan-stage.has-3d .sf.is-filled b::after { opacity: 0; animation: none; }
.scan-stage.has-3d .sf.is-filled { animation: flash .6s ease; }
.scan-stage.has-3d .sf-check { opacity: 0; transition: opacity .3s ease; }
.scan-stage.has-3d.is-done .sf-check { opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash { 0% { background: rgba(55,160,104,.18); } 100% { background: transparent; } }
@media (max-width: 1000px) {
  .scan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scan-stage { grid-template-columns: 1fr; min-height: 0; }
  .bottle-view { height: 380px; }
  .scan-form { margin: -40px 8px 0; }
}

/* ---------- Text size demo ---------- */
.sizes { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sizes .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 940px) { .sizes .wrap { grid-template-columns: 1fr; gap: 40px; } }
.seg { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--mist-soft); border-radius: 999px; padding: 4px; margin-top: 32px; }
.seg button {
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: 600 16px/1 var(--sans); color: var(--teal-ink); cursor: pointer; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 2px 8px -2px rgba(8,64,77,.25); }
@media (max-width: 420px) { .seg { display: grid; width: 100%; } .seg button { padding: 0 8px; font-size: 15px; } }

.demo {
  --s: 1;
  background: var(--page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: calc(24px * var(--s));
  transition: padding .25s ease;
}
.demo * { transition: font-size .25s ease, padding .25s ease, min-height .25s ease; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.demo-head h3 { font: 700 calc(22px * var(--s))/1.2 var(--serif); }
.demo-head span { font-size: calc(14px * var(--s)); color: var(--muted); }
.demo-row { margin-top: calc(14px * var(--s)); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: calc(14px * var(--s)); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-row .tag { width: 10px; align-self: stretch; border-radius: 6px; background: var(--coral); }
.demo-row div { flex: 1; min-width: 160px; }
.demo-row b { display: block; font-size: calc(17px * var(--s)); line-height: 1.3; }
.demo-row small { display: block; font-size: calc(14px * var(--s)); color: var(--muted); line-height: 1.4; }
.demo-row .btn { min-height: calc(44px * var(--s)); font-size: calc(15px * var(--s)); padding: 0 calc(16px * var(--s)); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); }
.plan h3 { font: 700 28px/1.2 var(--serif); }
.plan .price { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
.plan .price strong { font: 700 40px/1 var(--serif); color: var(--teal-ink); margin-right: 6px; font-variant-numeric: lining-nums; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 17px; line-height: 1.45; }
.plan li svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plans-note { margin: 22px 0 0; font-size: 15px; color: var(--muted); max-width: 46em; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } .plan { padding: 28px; } }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
@media (max-width: 940px) { .faq .wrap { grid-template-columns: 1fr; gap: 36px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 19px; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 40em; }

/* ---------- Final CTA ---------- */
.cta { padding-bottom: 120px; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--teal); color: #fff; border-radius: 36px;
  padding: clamp(40px, 7vw, 88px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end;
}
.cta-card::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  border: 46px solid rgba(186, 211, 214, .16); pointer-events: none;
}
.cta-card .h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.86); margin: 18px 0 0; max-width: 30em; }
.signup { position: relative; z-index: 1; }
.signup label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.signup-row { display: flex; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px; }
.signup input {
  flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: #fff;
  font: 500 17px/1 var(--sans); padding: 0 16px;
}
.signup input::placeholder { color: rgba(255,255,255,.7); }
.signup input:focus { outline: none; }
.signup-row:focus-within { border-color: #fff; }
.signup .btn { background: #fff; color: var(--teal-ink); }
.signup .btn:hover { background: var(--mist-soft); color: var(--teal-ink); }
.signup .msg { min-height: 1.6em; margin: 12px 0 0; font-size: 15px; }
.signup .fine { font-size: 14px; color: rgba(255,255,255,.75); margin: 6px 0 0; }
.signup .fine a { color: #fff; }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 460px) {
  .signup-row { flex-direction: column; border-radius: 22px; }
  .signup .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 16px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font: 600 15px/1.3 var(--sans); color: var(--ink); margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--teal); text-decoration: underline; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin: 14px 0 0; max-width: 24em; font-size: 15px; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 112px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font: 700 clamp(38px, 5vw, 56px)/1.1 var(--serif); letter-spacing: -0.015em; }
.legal .meta { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.legal .summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 28px; margin: 36px 0 8px; }
.legal .summary h2 { margin-top: 0; }
.legal h2 { font: 700 26px/1.3 var(--serif); margin: 48px 0 12px; color: var(--teal-ink); }
.legal h3 { font: 650 19px/1.4 var(--sans); margin: 28px 0 8px; color: var(--ink); }
.legal p, .legal li { color: #2b4249; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; background: var(--paper); border-radius: var(--r-sm); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--mist-soft); color: var(--teal-ink); font-weight: 600; }
.legal .table-scroll { overflow-x: auto; }
.legal .toc { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.legal .toc a { display: inline-block; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--paper); }
.legal .caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
