/* GoodWiFi website. Colors come from the app's theme (mobile/src/ui/theme.ts) and heat-map
   renderer (mobile/src/report/svg.ts). No build step: edit and ship.
   Strict CSP: no inline styles anywhere, so every look lives in this file. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f8fb;
  --paper-alt: #eef2f8;
  --surface: #ffffff;
  --surface-alt: #e9eef5;
  --ink: #0d1726;
  --muted: #4c5a6e;
  --line: #dde4ee;
  --line-strong: #c9d3e0;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #e8effe;
  --on-accent: #ffffff;
  /* Grades, as the app's heat map paints them */
  --great: #2fbf71;
  --ok: #f2c14e;
  --poor: #e5533d;
  --great-ink: #137a43;
  --ok-ink: #8a5a00;
  --poor-ink: #b42a17;
  --great-soft: #e3f6ec;
  --ok-soft: #fdf1dc;
  --poor-soft: #fde7e3;
  --grid-minor: #e3e8ef;
  --grid-major: #c5cfdb;
  --pin: #2a78d6;
  --glow: .55;
  --shadow-sm: 0 1px 2px rgba(15, 26, 42, .05), 0 2px 6px -2px rgba(15, 26, 42, .06);
  --shadow: 0 1px 2px rgba(15, 26, 42, .05), 0 14px 36px -14px rgba(15, 26, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 42, .04), 0 30px 70px -28px rgba(15, 26, 42, .35), 0 70px 120px -60px rgba(37, 99, 235, .25);
  --header-bg: rgba(246, 248, 251, .78);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #080e1a;
    --paper-alt: #0c1424;
    --surface: #111b2e;
    --surface-alt: #1a2640;
    --ink: #e9f0fb;
    --muted: #a6b3c8;
    --line: #1f2c45;
    --line-strong: #2c3c5c;
    --accent-ink: #8db2ff;
    --accent-soft: #14244a;
    --great-ink: #5fd896;
    --ok-ink: #f5cf72;
    --poor-ink: #ff8a76;
    --great-soft: #0f3527;
    --ok-soft: #362a10;
    --poor-soft: #3a1611;
    --grid-minor: #16213a;
    --grid-major: #273857;
    --pin: #5b9cf0;
    --glow: .35;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .75), 0 60px 120px -60px rgba(37, 99, 235, .35);
    --header-bg: rgba(8, 14, 26, .72);
  }
}
:root[data-theme="dark"] {
  --paper: #080e1a;
  --paper-alt: #0c1424;
  --surface: #111b2e;
  --surface-alt: #1a2640;
  --ink: #e9f0fb;
  --muted: #a6b3c8;
  --line: #1f2c45;
  --line-strong: #2c3c5c;
  --accent-ink: #8db2ff;
  --accent-soft: #14244a;
  --great-ink: #5fd896;
  --ok-ink: #f5cf72;
  --poor-ink: #ff8a76;
  --great-soft: #0f3527;
  --ok-soft: #362a10;
  --poor-soft: #3a1611;
  --grid-minor: #16213a;
  --grid-major: #273857;
  --pin: #5b9cf0;
  --glow: .35;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .75), 0 60px 120px -60px rgba(37, 99, 235, .35);
  --header-bg: rgba(8, 14, 26, .72);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  font-stretch: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 650; }

h1, h2, h3 { font-family: var(--display); font-stretch: 108%; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.7rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; font-stretch: 104%; }
h2 { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.25rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.02; }
h3 { font-size: 1.2rem; font-weight: 680; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 36em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 0;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 760; font-size: 1.18rem; font-stretch: 108%; letter-spacing: -.015em; }
.brand svg, .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .5); }
.site-nav { display: flex; align-items: center; gap: 2px; font-size: .95rem; }
/* Each link is a 44px-tall tap target. */
.site-nav a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 500; transition: color .15s, background-color .15s; }
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-alt) 70%, transparent); }
@media (max-width: 720px) { .site-nav .opt { display: none; } .site-nav a { padding: 0 9px; } }
@media (max-width: 380px) { .brand { font-size: 1.05rem; gap: 8px; } .site-nav { font-size: .9rem; } .site-nav a { padding: 0 7px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 999px; font: 600 1.02rem/1 var(--body); text-decoration: none; border: 1px solid transparent; transition: transform .15s, background-color .15s, box-shadow .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(13, 23, 38, .6); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 28px -12px rgba(37, 99, 235, .7); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-quiet { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn-quiet:hover { border-color: var(--muted); }
/* Apple's official "Download on the App Store" badge; keep it at least 40px tall and unaltered. */
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { display: block; width: auto; height: 54px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.hero::before {
  /* survey grid, fading out toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 78% 30%, rgba(47, 191, 113, calc(var(--glow) * .5)), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(37, 99, 235, calc(var(--glow) * .28)), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero h1 { max-width: 12.5ch; }
.hero .hl { background: linear-gradient(100deg, var(--accent) 0%, #3b82f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: .86rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--great); box-shadow: 0 0 0 4px color-mix(in srgb, var(--great) 22%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-meta { margin-top: 20px; font-size: .92rem; color: var(--muted); }

.hero-art { position: relative; margin: 0; display: grid; justify-items: center; }
.heat-stage {
  /* a soft heat-map tile behind the phone, in the app's grade colors */
  position: absolute; z-index: 0; top: 6%; bottom: 10%; left: 50%; width: min(100%, 460px); transform: translateX(-50%);
  border-radius: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.heat-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 40% at 22% 30%, rgba(47, 191, 113, .55), transparent 70%),
    radial-gradient(40% 35% at 30% 78%, rgba(47, 191, 113, .45), transparent 70%),
    radial-gradient(35% 32% at 82% 26%, rgba(242, 193, 78, .55), transparent 70%),
    radial-gradient(30% 28% at 88% 70%, rgba(229, 83, 61, .45), transparent 70%);
  opacity: calc(var(--glow) + .2);
}
.heat-stage::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .45;
}

/* Device frame around real app screenshots */
.device {
  position: relative; z-index: 1;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(155deg, #2a3446 0%, #0d1522 45%, #1b2537 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--shadow-lg);
}
.device img { width: 100%; height: auto; border-radius: 37px; background: #e9eef5; }
.device-hero { width: clamp(250px, 27vw, 370px); padding-bottom: 0; -webkit-mask-image: linear-gradient(#000 84%, transparent 99%); mask-image: linear-gradient(#000 84%, transparent 99%); }
.device-hero img { aspect-ratio: 760 / 1380; object-fit: cover; object-position: top; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero-legend {
  position: relative; z-index: 2;
  margin-top: -54px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: .84rem;
}
.legend-title { font-weight: 650; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .k-great { background: var(--great); }
.legend .k-ok { background: var(--ok); }
.legend .k-poor { background: var(--poor); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { counter-increment: step; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.step h3 { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.step-num::before { content: counter(step); }
.step-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .9rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.step p { color: var(--muted); }
.shot-card {
  position: relative; height: 300px; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 30px;
  background: var(--surface);
}
.shot-card::before { content: ""; position: absolute; inset: 0; opacity: calc(var(--glow) + .15); }
.tint-blue::before { background: radial-gradient(70% 60% at 50% 100%, rgba(37, 99, 235, .45), transparent 70%), radial-gradient(60% 50% at 0% 0%, rgba(37, 99, 235, .15), transparent 70%); }
.tint-green::before { background: radial-gradient(70% 60% at 50% 100%, rgba(47, 191, 113, .5), transparent 70%), radial-gradient(60% 50% at 100% 0%, rgba(47, 191, 113, .15), transparent 70%); }
.tint-amber::before { background: radial-gradient(70% 60% at 50% 100%, rgba(242, 193, 78, .55), transparent 70%), radial-gradient(60% 50% at 0% 0%, rgba(229, 83, 61, .15), transparent 70%); }
.device-peek { width: 232px; flex: none; border-radius: 38px 38px 0 0; padding-bottom: 0; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 24px 50px -20px rgba(13, 23, 38, .55); }
.device-peek img { aspect-ratio: 760 / 1000; object-fit: cover; object-position: 50% 0; border-radius: 30px 30px 0 0; }

/* ---------- Floor-plan spotlight ---------- */
.spotlight { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .spotlight { grid-template-columns: minmax(0, 10fr) minmax(0, 13fr); } }
.spot-lede { margin: 18px 0 30px; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.spot-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.spot-list strong { color: var(--ink); }
.spot-ico, .f-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.spot-ico svg, .f-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.map-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(10px, 1.6vw, 18px); }
.map-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 6px 4px; font-size: .86rem; color: var(--muted); }

/* The plan drawing */
.plan { width: 100%; height: auto; }
.plan .floor { fill: var(--surface); }
.grid-minor { stroke: var(--grid-minor); stroke-width: 1; }
.grid-major { stroke: var(--grid-major); stroke-width: 1; }
.plan .heat path { fill-opacity: .45; }
.plan .h-good { fill: var(--great); }
.plan .h-fair { fill: var(--ok); }
.plan .h-poor { fill: var(--poor); }
.plan .dots circle { stroke: var(--surface); stroke-width: 1; }
.plan .d-good { fill: var(--great); }
.plan .d-fair { fill: var(--ok); }
.plan .d-poor { fill: var(--poor); }
.plan .walls path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.plan .windows path { fill: none; stroke: var(--surface); stroke-width: 2.5; }
.plan .doors path { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .7; }
.plan .opening { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 8 7; opacity: .55; }
.plan .router circle:first-child { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.plan .router path { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.plan .router .router-dot { fill: #fff; }
.plan .pin { fill: var(--pin); stroke: var(--surface); stroke-width: 1.5; }
.plan .drop { fill: none; stroke: var(--poor); stroke-width: 3; }
.plan .walk { fill: none; stroke: var(--pin); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.plan .phone circle { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.plan .phone .phone-halo { fill: var(--accent); fill-opacity: .18; stroke: none; }
.plan .labels text { font-family: var(--display); font-stretch: 82%; font-weight: 640; font-size: 19px; text-anchor: middle; fill: var(--ink); letter-spacing: .01em; }
.plan .labels .halo { stroke: var(--surface); stroke-width: 5; stroke-linejoin: round; fill: var(--surface); }

/* ---------- Features (bento) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-visual { padding-top: 12px; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature .f-ico { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1rem; }
.tag { display: inline-block; margin-top: auto; font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 11px; }
.feature-art { position: relative; width: calc(100% + 28px); margin: 0 -14px 12px; height: 200px; border-radius: 14px; overflow: hidden; background: var(--paper-alt); border: 1px solid var(--line); }
.art-shot img { width: 100%; height: 100%; object-fit: cover; }
.art-shot.pos-speed img { object-position: 50% 17%; }
.art-shot.pos-mesh img { object-position: 50% 36%; }
.art-chart { background: linear-gradient(180deg, var(--surface), var(--paper-alt)); }
.art-chart svg { position: absolute; left: 0; right: 0; bottom: 0; top: 30px; width: 100%; height: calc(100% - 30px); }
.art-chart .chart-grid { stroke: var(--grid-minor); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.art-chart .chart-line { fill: none; stroke: var(--great); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.art-chart .chart-dot { fill: var(--poor); }
.art-chart .drop-band { fill: var(--poor); fill-opacity: .16; }
.art-label { position: absolute; top: 12px; right: 12px; font-size: .74rem; font-weight: 650; letter-spacing: .02em; color: var(--poor-ink); background: var(--poor-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------- Findings ---------- */
.results { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .results { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; } }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 4px 1fr; gap: 0 14px; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.finding::before { content: ""; grid-row: 1 / span 3; width: 4px; border-radius: 4px; background: var(--g, var(--great)); }
.finding.poor { --g: var(--poor); }
.finding.fair { --g: var(--ok); }
.finding.good { --g: var(--great); }
.finding strong { font-weight: 650; line-height: 1.3; }
.finding .detail { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.finding .fix { font-size: .92rem; margin-top: 4px; }
.note { font-size: .86rem; color: var(--muted); margin-top: 16px; }
.results-extra { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 860px) { .results-extra { grid-template-columns: 1fr 1fr; } }
.verdict-card, .mesh-callout { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.verdict-card { background: var(--surface); }
.verdict-card h3, .mesh-callout h3 { margin-bottom: 10px; }
.aside-text { color: var(--muted); }
.verdict-chips { display: flex; gap: 8px; margin-bottom: 18px; }
.vc { font-size: .82rem; font-weight: 650; padding: 4px 12px; border-radius: 999px; }
.vc-good { background: var(--great-soft); color: var(--great-ink); }
.vc-fair { background: var(--ok-soft); color: var(--ok-ink); }
.vc-poor { background: var(--poor-soft); color: var(--poor-ink); }
.mesh-callout { background: linear-gradient(150deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.mesh-callout .note { margin-top: 12px; }

/* ---------- Privacy (always-dark band) ---------- */
.band-dark {
  --ink: #edf2fb; --muted: #aab7cb; --line: rgba(255, 255, 255, .1); --surface: rgba(255, 255, 255, .04);
  --accent-ink: #9dbdff; --great-ink: #6fe0a2; --great-soft: rgba(47, 191, 113, .16);
  color: var(--ink);
  background:
    radial-gradient(50% 60% at 15% 40%, rgba(37, 99, 235, .28), transparent 70%),
    radial-gradient(40% 50% at 95% 100%, rgba(47, 191, 113, .14), transparent 70%),
    #0a1222;
  position: relative; overflow: hidden;
}
.privacy-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.privacy-art { margin: 0; display: grid; justify-items: center; gap: 22px; }
.device-privacy { width: min(290px, 78vw); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04); }
.privacy-art .caption { max-width: 300px; text-align: center; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.privacy-lede { margin: 18px 0 32px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { position: relative; padding: 20px 20px 20px 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.facts li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--great-soft); box-shadow: inset 0 0 0 1.5px var(--great-ink); }
.facts li::after { content: ""; position: absolute; left: 28px; top: 29px; width: 8px; height: 5px; border-left: 2px solid var(--great-ink); border-bottom: 2px solid var(--great-ink); transform: rotate(-45deg); }
.facts strong { display: block; font-weight: 650; margin-bottom: 4px; line-height: 1.3; }
.facts span { color: var(--muted); font-size: .97rem; }
.more-link { margin-top: 28px; }
.more-link a { font-weight: 600; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px 28px; box-shadow: var(--shadow-sm); }
.plan-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--accent), #3b82f6 45%, var(--great)) border-box;
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .45), var(--shadow);
}
.plan-card h3 { font-size: 1.35rem; }
.plan-for { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.price { margin: 18px 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.price b { font-family: var(--display); font-size: 2.9rem; line-height: 1; color: var(--ink); font-weight: 780; letter-spacing: -.035em; margin-right: 6px; font-stretch: 104%; }
.plans-note { margin-top: 26px; text-align: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .98rem; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--great-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4.5px; border-left: 2px solid var(--great-ink); border-bottom: 2px solid var(--great-ink); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; } .faq-head { position: sticky; top: 100px; } }
.faq-head p:not(.kicker) { margin-top: 16px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; position: relative; font-family: var(--display); font-weight: 650; font-size: 1.08rem; font-stretch: 104%; line-height: 1.35; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--surface-alt); }
.faq summary::after { content: ""; position: absolute; right: 29px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover::before { background: var(--accent-soft); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; max-width: 42rem; }

/* ---------- Closing CTA + footer ---------- */
.closing { padding-top: clamp(64px, 9vw, 112px); }
.closing-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  display: grid; gap: 22px; justify-items: start;
  --ink: #f2f6fd; --muted: #d3def2; --line-strong: rgba(255, 255, 255, .45); --surface: rgba(255, 255, 255, .08); --accent-ink: #ffffff;
  color: var(--ink);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(47, 191, 113, .35), transparent 60%),
    linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 60%, #0f1f4d 100%);
  box-shadow: 0 40px 80px -40px rgba(29, 78, 216, .6);
}
.closing-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.closing-panel h2 { max-width: 16ch; }
.closing-art { position: absolute; z-index: -1; right: clamp(-120px, -4vw, -40px); bottom: -90px; width: min(52%, 560px); opacity: .9; pointer-events: none; }
.closing-art path { fill: none; stroke-linecap: round; stroke-width: 34; }
.closing-art .a1 { stroke: rgba(47, 191, 113, .55); }
.closing-art .a2 { stroke: rgba(250, 214, 120, .55); }
.closing-art .a3 { stroke: rgba(255, 255, 255, .55); }
.closing-art circle { fill: rgba(255, 255, 255, .7); }
@media (max-width: 760px) { .closing-art { width: 70%; bottom: -60px; opacity: .35; } }
.closing-text { color: var(--muted); font-size: 1.12rem; max-width: 40rem; }
.closing-text a { color: #fff; font-weight: 600; }
.closing .cta-row { margin-top: 8px; }
.closing .btn-quiet { background: #fff; color: #0d1726; border-color: #fff; }
.closing .btn-quiet:hover { background: #e8effe; }
.closing-panel :focus-visible { outline-color: #fff; }

.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-brand .brand { font-size: 1.05rem; }
.foot-brand .brand svg { width: 26px; height: 26px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-foot a:not(.brand) { color: var(--muted); display: inline-block; padding: 10px 0; text-decoration: none; }
.site-foot a:not(.brand):hover { color: var(--ink); text-decoration: underline; }
.site-foot p { padding: 10px 0; }

/* ---------- Document pages (privacy, support, 404) ---------- */
.doc { padding: clamp(32px, 6vw, 72px) 0 96px; }
.doc .wrap { max-width: calc(44rem + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin: 48px 0 12px; letter-spacing: -.02em; line-height: 1.15; }
.doc h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.doc h1 + .lede, .not-found .lede { margin: 16px 0 26px; }
.not-found { min-height: 60vh; }

/* ---------- Helpers ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .feature:hover { transform: none; }
}
