/* site.css — public marketing pages. Deliberately separate from the app's style.css:
   the app optimises for density, the site optimises for reading. No external assets
   (fonts, images, CDNs) so the strict CSP holds and pages render offline. */

:root {
  --ink: #101f28;
  --ink-soft: #33505d;
  --muted: #64798a;
  --line: #dde5ea;
  --line-soft: #eaf0f3;
  --bg: #ffffff;
  --tint: #f3f8f7;
  --deep: #08312e;
  --deep-2: #0d4640;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --bright: #2dd4bf;
  --warn: #b45309;
  --warn-bg: #fdf6ec;
  --bad: #b91c1c;
  --good: #15803d;
  --r: 12px;
  --shadow: 0 1px 2px rgba(16, 31, 40, .04), 0 8px 28px rgba(16, 31, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand .loop { width: 24px; height: 24px; flex: none; color: var(--accent); }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px;
  font: inherit; font-size: .85rem; color: var(--ink-soft); background: #fff;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }
.only-mobile { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .12s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.09); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.on-dark { background: var(--bright); color: #06251f; }
.btn.on-dark:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost-dark { background: transparent; color: #d9efeb; border-color: rgba(255, 255, 255, .28); }
.btn.ghost-dark:hover { border-color: var(--bright); color: #fff; }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------- hero */
.hero { background: linear-gradient(168deg, var(--deep) 0%, var(--deep-2) 62%, #12554d 100%); color: #eaf7f4; overflow: hidden; position: relative; }
.hero::after {
  content: ''; position: absolute; inset: auto -10% -55% 55%; height: 420px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, .18), transparent 70%);
  pointer-events: none;
}
.hero-in { padding: 74px 0 78px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--bright); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bright); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--bright); }
.hero p.sub { font-size: 1.1rem; color: #b9dbd5; margin: 0 0 28px; max-width: 34em; }
.hero .fine { margin-top: 18px; font-size: .84rem; color: #8fbdb6; }

/* countdown card in the hero */
.countdown { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 22px 24px; }
.countdown h2 { margin: 0 0 4px; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--bright); font-weight: 700; }
.countdown .big { font-size: 3.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.countdown .until { color: #b9dbd5; font-size: .93rem; margin-bottom: 16px; }
.countdown ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.countdown li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; color: #cfe7e3; }
.countdown li:last-child { border-bottom: none; }
.countdown li b { color: var(--bright); font-weight: 700; flex: none; min-width: 62px; }

/* ------------------------------------------------------------------ sections */
section.band { padding: 76px 0; }
section.band.tinted { background: var(--tint); }
section.band.dark { background: var(--deep); color: #e6f4f1; }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.dark p { color: #b6d6d0; }
.head { max-width: 42em; margin-bottom: 40px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); line-height: 1.18; letter-spacing: -.02em; margin: 8px 0 14px; font-weight: 800; }
h3 { font-size: 1.08rem; margin: 0 0 8px; font-weight: 700; letter-spacing: -.01em; }
.head p, .lede { color: var(--ink-soft); font-size: 1.03rem; margin: 0; }

/* ------------------------------------------------------------------- layout */
.cols { display: grid; gap: 22px; }
.cols.c2 { grid-template-columns: repeat(2, 1fr); }
.cols.c3 { grid-template-columns: repeat(3, 1fr); }
.cols.c4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.card.plain { box-shadow: none; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card .ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; display: block; }
section.band.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .13); box-shadow: none; }
section.band.dark .card .ico { color: var(--bright); }

.stat { text-align: left; }
.stat .n { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.05; }
section.band.dark .stat .n { color: var(--bright); }
.stat .l { font-size: .9rem; color: var(--ink-soft); }
section.band.dark .stat .l { color: #b6d6d0; }

/* numbered steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.step p { margin: 4px 0 0; color: var(--ink-soft); font-size: .94rem; }

/* checklist */
ul.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
ul.ticks li { position: relative; padding: 6px 0 6px 30px; font-size: .96rem; color: var(--ink-soft); }
ul.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
section.band.dark ul.ticks li { color: #cfe7e3; }
section.band.dark ul.ticks li::before { border-color: var(--bright); }

/* ------------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.ref { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.ref th, table.ref td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.ref thead th { background: var(--tint); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; position: sticky; top: 0; }
table.ref tbody tr:last-child td { border-bottom: none; }
table.ref tbody tr:hover { background: #fafcfc; }
table.ref .mono { font-variant-numeric: tabular-nums; font-weight: 700; }
table.ref .mark svg { width: 40px; height: auto; display: block; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill.good { background: #dcf5e6; color: var(--good); }
.pill.warn { background: #fbeddb; color: var(--warn); }
.pill.bad { background: #fbdede; color: var(--bad); }
.pill.neutral { background: #e8eef1; color: var(--ink-soft); }

/* filter row on reference pages */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.filters input, .filters select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.filters input { min-width: 240px; flex: 1 1 240px; max-width: 380px; }
.count { color: var(--muted); font-size: .88rem; align-self: center; }

/* --------------------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 20px; color: var(--ink-soft); font-size: .97rem; max-width: 60em; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }

/* --------------------------------------------------------------------- CTA */
.cta { background: linear-gradient(140deg, var(--deep) 0%, #12554d 100%); color: #eaf7f4; border-radius: 18px; padding: 48px; text-align: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #b9dbd5; max-width: 34em; margin: 0 auto 26px; }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; position: relative; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 14px; border-radius: 99px; }
.plan h3 { font-size: 1.15rem; margin-bottom: 2px; }
.plan .who { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .price small { font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .btn { width: 100%; margin: 18px 0 4px; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--deep); color: #a8ccc6; padding: 56px 0 30px; font-size: .9rem; }
.foot a { color: #cfe7e3; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }

/* Cookie consent. Fixed to the bottom, above everything, and narrow enough on a phone
   that it never covers the whole page. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 14px 18px;
  background: #0f2b2a; color: #e6f3f1; border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.3); font-size: .9rem; }
.consent p { margin: 0; flex: 1 1 260px; line-height: 1.5; }
.consent p a { color: var(--bright, #7fd4c8); }
.consent-btns { display: flex; gap: 8px; flex: 0 0 auto; }

/* Legal documents. Narrower measure than the marketing pages — these are read, not
   scanned — and numbered lists that carry their own numbers, because clauses get cited. */
.legal { max-width: 46em; }
.legal h2 { margin: 34px 0 10px; font-size: 1.25rem; }
.legal h3 { margin: 22px 0 6px; font-size: 1rem; }
.legal p { line-height: 1.65; margin: 0 0 12px; }
.legal .ticks { margin: 8px 0 16px; }
.legal-ol { margin: 8px 0 16px 1.2em; padding: 0; line-height: 1.65; }
.legal-ol li { margin: 0 0 8px; }
.legal-note { font-size: .88rem; color: var(--muted); }
.legal-blank { color: var(--muted); }
.legal-callout { border: 1px solid var(--line); border-left: 4px solid #b91c1c;
  background: #fff6f6; border-radius: 8px; padding: 14px 16px; margin: 14px 0; line-height: 1.6; }
.legal-id { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; margin: 0 0 26px; }
.legal-id dl { display: grid; grid-template-columns: minmax(9em, max-content) 1fr; gap: 6px 18px; margin: 0; }
.legal-id dt { font-weight: 700; font-size: .85rem; color: var(--muted); }
.legal-id dd { margin: 0; }
.legal-id-warn { background: #fff8ec; border: 1px solid #f0d9ae; border-radius: 8px;
  padding: 10px 12px; margin: 0 0 14px; font-size: .9rem; line-height: 1.55; }
@media (max-width: 560px) { .legal-id dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-id dd { margin: 0 0 8px; } }
.foot h4 { color: #fff; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .82rem; color: #86b3ac; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 60px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cols.c3, .cols.c4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; order: 3; }
  .nav-in { gap: 12px; }
  /* Picker + two buttons + toggle do not fit at phone width: the calls to action
     move into the collapsed menu rather than widening the page. */
  .nav-end #nav-signin, .nav-end #nav-cta { display: none; }
  .only-mobile { display: block; color: var(--accent); font-weight: 600; }
  .cols.c2, .cols.c3, .cols.c4 { grid-template-columns: 1fr; }
  section.band { padding: 54px 0; }
  .cta { padding: 34px 22px; }
  .foot-cols { grid-template-columns: 1fr; }
  .countdown .big { font-size: 2.5rem; }
}
@media print { .nav, .cta, .foot { display: none; } }
