/* Listblock — calm water. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #091219;
  --bg-2: #0e1b24;
  --bg-3: #14262f;
  --line: #243b47;
  --text: #dde8ea;
  --muted: #9bb0b6;
  --accent: #7fdcb8;          /* sea-glass */
  --accent-ink: #06201a;      /* text on accent */
  --warn: #f0b45a;
  --ad-a: #e8765a;
  --ad-b: #f0c24f;
  --ad-c: #4fa3e8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f6f4;
    --bg-2: #e8eeeb;
    --bg-3: #dbe5e1;
    --line: #bccbc6;
    --text: #0e1f2a;
    --muted: #465c65;
    --accent: #0b6b4f;
    --accent-ink: #ffffff;
    --warn: #8a5300;
    --ad-a: #d9583a;
    --ad-b: #e3a916;
    --ad-c: #2f86cf;
  }
}

*, *::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(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1rem; z-index: 10; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 450; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 340; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.35rem); color: var(--text); max-width: 52ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 1rem; }
strong { font-weight: 650; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--bg-3); padding: 0.1em 0.4em; border-radius: 4px; overflow-wrap: anywhere; }
.val { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg-3); border: 1px solid var(--line); padding: 0.1em 0.5em; border-radius: 4px; font-size: 0.95em; overflow-wrap: anywhere; user-select: all; }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- header / footer ---------- */
.site-header { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .ring { stroke: var(--accent); fill: none; stroke-width: 1.6; }
.brand .dot { fill: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 0.98rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; background: var(--bg-2); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 0.5rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0.75rem 1.5rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--bg-3); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-primary:hover { transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 9rem) clamp(3.5rem, 8vw, 7rem); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 1.5rem; }
.ripples { position: absolute; right: -12%; top: 50%; width: min(80vw, 56rem); transform: translateY(-50%); z-index: 0; pointer-events: none; opacity: 0.55; }
.ripples ellipse { fill: none; stroke: var(--line); stroke-width: 1.2; transform-origin: center; }
.ripples ellipse:nth-child(1) { stroke: var(--accent); opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .ripples ellipse { animation: ripple 14s ease-in-out infinite; }
  .ripples ellipse:nth-child(2) { animation-delay: -2s; }
  .ripples ellipse:nth-child(3) { animation-delay: -4s; }
  .ripples ellipse:nth-child(4) { animation-delay: -6s; }
  .ripples ellipse:nth-child(5) { animation-delay: -8s; }
  .ripples ellipse:nth-child(6) { animation-delay: -10s; }
  @keyframes ripple { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
}
.page-head { padding-block: clamp(3rem, 7vw, 6rem) 2rem; position: relative; }
.page-head h1 { font-size: clamp(2.2rem, 1rem + 4.5vw, 3.9rem); max-width: 18ch; }
.wave { display: block; width: 100%; height: 28px; color: var(--line); }
.wave path { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- benefits / steps / trust ---------- */
.benefits { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 52rem) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding: 2rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) {
  .benefit { padding: 2.5rem 2rem 2.5rem 0; border-bottom: 0; }
  .benefit + .benefit { padding-left: 2rem; border-left: 1px solid var(--line); }
}
.benefit h3 { font-size: 1.6rem; }
.benefit p { color: var(--muted); margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 4.5rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-style: italic; font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: 0.9; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

.trust { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: 2rem; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.trust li { display: flex; gap: 0.75rem; align-items: baseline; font-size: 0.98rem; }
.trust li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); transform: translateY(-0.05em); }

.teasers { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .teasers { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.teaser h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.2rem); }
.price { font-family: var(--serif); font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.2rem); line-height: 1.1; margin: 0 0 0.25rem; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }

/* ---------- before / after panel ---------- */
.calm { --p: 0; position: relative; padding-block: 0; }
.calm-intro { padding-block: clamp(3rem, 7vw, 6rem) 2rem; }
.calm-track { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .calm.is-live .calm-track { height: 190vh; }
  .calm.is-live .calm-stick { position: sticky; top: 4vh; }
}
.calm-stick { padding-bottom: 2rem; }
@media (scripting: none) { .calm { --p: 1; } }

.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.browser-bar { display: flex; gap: 0.5rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.browser-bar span { margin-left: 0.75rem; padding: 0.15rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; }
.page { position: relative; aspect-ratio: 16 / 11; min-height: 22rem; background: color-mix(in srgb, var(--bg) 70%, var(--bg-2)); overflow: hidden; }
@media (max-width: 40rem) { .page { aspect-ratio: 4 / 5; } }
.page-wash { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--ad-a) 16%, transparent) 0 18px, color-mix(in srgb, var(--ad-b) 14%, transparent) 18px 36px, color-mix(in srgb, var(--ad-c) 14%, transparent) 36px 54px); opacity: clamp(0, calc(1 - var(--p) * 1.6), 1); }
.article { position: absolute; left: 7%; top: 16%; width: 52%; }
.ln { display: block; height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--text) 28%, transparent); margin: 0 0 11px; }
.ln.h { height: 22px; width: 82%; background: color-mix(in srgb, var(--text) 62%, transparent); margin-bottom: 18px; }
.ln.h2 { height: 22px; width: 54%; background: color-mix(in srgb, var(--text) 62%, transparent); margin-bottom: 22px; }
.ln.w9 { width: 94%; } .ln.w8 { width: 80%; } .ln.w7 { width: 68%; } .ln.w6 { width: 56%; }
.ln.sp { margin-top: 20px; }
.hero-img { display: block; height: 18%; min-height: 56px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); margin: 6px 0 18px; }

/* each ad leaves in turn: --k is when it starts to go (0–0.6) */
.ad { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: clamp(0.62rem, 0.4rem + 1.2vw, 0.95rem); line-height: 1.15; color: #1a1200; border-radius: 4px; padding: 0.3rem; overflow: hidden;
  opacity: clamp(0, calc(1 - (var(--p) - var(--k)) * 4.5), 1);
  transform: scale(clamp(0.85, calc(1 - (var(--p) - var(--k)) * 0.4), 1)); }
.ad small { display: block; font-weight: 500; font-size: 0.68em; opacity: 0.75; }
.ad.a { background: var(--ad-b); } .ad.b { background: var(--ad-a); color: #fff; } .ad.c { background: var(--ad-c); color: #04121f; }
.ad.banner { left: 3%; right: 3%; top: 2%; height: 8%; --k: 0.05; }
.ad.side { right: 4%; top: 15%; width: 30%; height: 34%; --k: 0.15; }
.ad.inline { left: 7%; top: 68%; width: 40%; height: 13%; --k: 0.25; }
.ad.video { right: 4%; bottom: 14%; width: 28%; height: 20%; --k: 0.35; background: #111; color: #fff; }
.ad.pop { left: 22%; top: 28%; width: 46%; height: 34%; --k: 0.45; z-index: 3; box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); background: #fff; color: #111; border: 3px solid var(--ad-a); }
.ad.cookie { left: 0; right: 0; bottom: 0; height: 11%; --k: 0.55; border-radius: 0; background: #2a2a2a; color: #ddd; font-weight: 500; }
.ad.chip { left: 7%; bottom: 13%; width: 26%; height: 7%; --k: 0.3; background: var(--ad-a); color: #fff; }

.calm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.25rem; }
.calm-meta label { font-weight: 600; }
.calm-meta input[type="range"] { flex: 1 1 14rem; min-width: 10rem; accent-color: var(--accent); height: 28px; }
.tally { font-variant-numeric: tabular-nums; color: var(--muted); }
.tally strong { color: var(--accent); font-family: var(--serif); font-size: 1.6rem; font-weight: 450; }
.no-js-note { display: none; }
@media (scripting: none) { .calm-meta input, .calm-meta label { display: none; } }

/* ---------- how it works ---------- */
.diagram { margin-block: 2.5rem; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .v { display: none; }
@media (max-width: 46rem) { .diagram .h { display: none; } .diagram .v { display: block; max-width: 26rem; margin-inline: auto; } }
.dg-box { fill: var(--bg-2); stroke: var(--line); stroke-width: 1.5; }
.dg-box.hl { stroke: var(--accent); stroke-width: 2; }
.dg-t { fill: var(--text); font-family: var(--sans); font-size: 17px; font-weight: 650; }
.dg-s { fill: var(--muted); font-family: var(--sans); font-size: 13.5px; }
.dg-a { stroke: var(--accent); stroke-width: 2; fill: none; }
.dg-ah { fill: var(--accent); }
.dg-dash { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.dg-dah { fill: var(--muted); }
.dg-warn { fill: var(--warn); font-family: var(--sans); font-size: 13px; font-weight: 600; }

.callout { border-left: 3px solid var(--accent); background: var(--bg-2); padding: 1.25rem 1.5rem; border-radius: 0 10px 10px 0; margin: 2rem 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); }
.callout h3, .callout h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.list-plain { padding-left: 1.2rem; max-width: var(--measure); }
.list-plain li { margin-bottom: 0.5rem; }

/* ---------- setup guides ---------- */
.jump { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.guide { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.guide h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem); }
.guide h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; margin: 1.75rem 0 0.5rem; }
.guide ol, .guide ul { max-width: var(--measure); padding-left: 1.25rem; }
.guide li { margin-bottom: 0.5rem; }
.values { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 1.25rem 0; padding: 1.1rem 1.4rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; max-width: var(--measure); }
.values dt { color: var(--muted); }
.values dd { margin: 0; }
.shot { margin: 1.5rem 0; max-width: 24rem; aspect-ratio: 9 / 16; max-height: 18rem; border: 1.5px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; text-align: center; padding: 1rem; }
.shot.wide { aspect-ratio: 16 / 9; max-width: 32rem; }
.tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.6rem; border: 1px solid var(--warn); color: var(--warn); border-radius: 999px; vertical-align: middle; margin-left: 0.5rem; font-family: var(--sans); font-weight: 600; }

/* ---------- pricing ---------- */
.plan { border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 3rem); background: var(--bg-2); max-width: 44rem; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.plan li { padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0.2rem; top: 1.15rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- check ---------- */
.verdict { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); max-width: 34rem; margin: 2rem auto 0; }
.verdict p { margin-inline: auto; }
.verdict h2 { margin-bottom: 0.5rem; }
.verdict svg { width: 120px; height: 120px; margin-bottom: 1rem; }
.verdict .disc { fill: none; stroke-width: 3; }
.verdict[data-state="yes"] .disc, .verdict[data-state="yes"] .mark { stroke: var(--accent); }
.verdict[data-state="no"] .disc, .verdict[data-state="no"] .mark { stroke: var(--warn); }
.verdict[data-state="wait"] .disc, .verdict[data-state="wait"] .mark { stroke: var(--muted); }
.verdict .mark { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.verdict [hidden] { display: none; }

/* ---------- faq / prose ---------- */
.faq details { border-top: 1px solid var(--line); padding: 0; max-width: var(--measure); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-family: var(--sans); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.25rem; }
.faq details p:last-child { margin-bottom: 0; }

.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.prose ul { max-width: var(--measure); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.todo { background: color-mix(in srgb, var(--warn) 18%, transparent); padding: 0.05em 0.4em; border-radius: 4px; font-weight: 600; }

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .ripples, .calm { display: none; }
  a { color: #000; }
}

.calm-meta .tally { margin: 0; }
.verdict[data-state="error"] .disc, .verdict[data-state="error"] .mark { stroke: var(--muted); }
.group-head { padding-top: clamp(3rem, 6vw, 5rem); scroll-margin-top: 1rem; }
