/* DeepCove site · dark only · one stylesheet for index.html and 404.html */

:root {
  color-scheme: dark;

  --bg: #080b17;
  --bg-raise: #0c1020;
  --ink: #eef2f8;
  --ink-2: #b4bdcf;
  --ink-3: #8994aa;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --teal: #0f7a8a;
  --accent: #4ac2cc;
  --accent-ink: #04161b;

  --card: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.018));
  --card-solid: #0d1222;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --section: 152px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -28px rgb(0 0 0 / 0.7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgb(74 194 204 / 0.3); color: #fff; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip:focus-visible { top: 12px; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75em; height: 1.6em; padding: 0 0.4em; margin-inline: 1px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  background: rgb(255 255 255 / 0.06); color: var(--ink);
  font: 500 0.78em/1 var(--font); letter-spacing: 0; vertical-align: 0.1em;
}
.keys { display: inline-flex; gap: 3px; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--sm { --h: 36px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: -4px; }
.btn--ghost .btn__icon { fill: currentColor; stroke-width: 1.5; }
.btn--primary {
  background: linear-gradient(180deg, #6fd6de, var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 0 0 1px rgb(74 194 204 / 0.6), 0 10px 30px -10px rgb(74 194 204 / 0.55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 0 0 1px rgb(74 194 204 / 0.8), 0 14px 36px -10px rgb(74 194 204 / 0.7); }
.btn--ghost {
  background: rgb(255 255 255 / 0.05); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.09); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.lead { color: var(--ink-2); font-size: 1.1875rem; line-height: 1.55; max-width: 38em; }
.head h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.25rem); letter-spacing: -0.032em; }
.head .lead { margin-top: 20px; }
.head--center { text-align: center; margin-inline: auto; max-width: 760px; }
.head--center .lead { margin-inline: auto; }

.section { position: relative; padding-block: var(--section) 0; }

.tile-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(180deg, rgb(74 194 204 / 0.16), rgb(15 122 138 / 0.12));
  box-shadow: 0 0 0 1px rgb(74 194 204 / 0.22) inset;
  color: var(--accent);
}
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon svg .fill { fill: currentColor; stroke: none; }
.tile-icon--sm { width: 32px; height: 32px; border-radius: 9px; }
.tile-icon--sm svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(8 11 23 / 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgb(8 11 23 / 0.78); }
.nav__bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.brand img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.9375rem; transition: color 0.2s, background-color 0.2s; }
.nav__links a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }
.nav .btn { margin-left: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -64px 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgb(15 122 138 / 0.38), transparent 70%),
    radial-gradient(35% 40% at 18% 20%, rgb(74 194 204 / 0.10), transparent 70%),
    radial-gradient(35% 40% at 82% 24%, rgb(56 90 200 / 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: -64px 0 auto; height: 760px; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(55% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(55% 70% at 50% 0%, #000 20%, transparent 75%);
}
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px var(--line-2) inset;
  color: var(--ink-2); font-size: 0.875rem; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(74 194 204 / 0.18), 0 0 12px rgb(74 194 204 / 0.8); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.042em;
  background: linear-gradient(180deg, #fff 30%, #a9c7d3 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.hero__sub { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 18px; color: var(--ink-3); font-size: 0.875rem; }

.hero__stage { position: relative; margin: 72px auto 0; max-width: 1120px; container-type: inline-size; }
.hero__glow {
  position: absolute; inset: -8% -6% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 46% at 50% 52%, rgb(15 122 138 / 0.7), transparent 78%),
    radial-gradient(30% 22% at 50% 6%, rgb(74 194 204 / 0.4), transparent 70%);
  filter: blur(48px);
}

/* A window shot cropped to the window itself: the source has 88 px of backdrop around a 2280 x 1480 window. */
.window {
  position: relative; aspect-ratio: 2280 / 1480; overflow: hidden;
  border-radius: 1.4cqw;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 50px 120px -30px rgb(0 0 0 / 0.85), 0 30px 80px -40px rgb(15 122 138 / 0.6);
  background: #f4f5f7;
}
.window img { position: absolute; max-width: none; width: 107.7193%; left: -3.8596%; top: -5.9459%; }

.chips { list-style: none; margin: 0; padding: 0; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgb(12 17 33 / 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 20px 40px -16px rgb(0 0 0 / 0.75);
  font-size: 0.875rem; line-height: 1.35; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip__label { display: block; color: var(--ink-3); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; }
.chip__text { display: block; color: var(--ink); font-weight: 500; }
.chip__text strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.chip__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(74 194 204 / 0.16); color: var(--accent); }
.chip__icon svg { width: 18px; height: 18px; fill: currentColor; }
.chip__pulse { position: relative; width: 10px; height: 10px; margin: 0 6px 0 8px; border-radius: 50%; background: var(--accent); }
.chip__pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.4s ease-out infinite; }
.chip--shield { top: 14%; left: -5%; }
.chip--session { top: 44%; right: -6%; animation-delay: -2.5s; }
.chip--park { bottom: -5%; left: 9%; animation-delay: -4.5s; padding: 12px 16px; }
.chip--park .keys { font-size: 1rem; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__copy > :nth-child(5) { animation-delay: 0.22s; }
.hero__stage { animation: rise 1.1s 0.25s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- problem ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.pain, .card {
  position: relative; border-radius: var(--r-lg);
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow);
}
.pain { padding: 28px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pain:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow); }
.pain h3 { margin-top: 22px; font-size: 1.1875rem; letter-spacing: -0.015em; }
.pain p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }
.pain .tile-icon { background: rgb(255 255 255 / 0.05); box-shadow: 0 0 0 1px var(--line-2) inset; color: #d9a1a1; }

.bridge {
  margin: 72px auto 0; max-width: 22em; text-align: center;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.2; text-wrap: balance;
}
.bridge span { display: block; color: var(--ink-3); }

/* ---------- flow / steps ---------- */
.steps { margin-top: 56px; }
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 22px 24px 24px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: rgb(255 255 255 / 0.02); color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.step:hover { background: rgb(255 255 255 / 0.04); color: var(--ink-2); }
.step[aria-selected="true"] { background: rgb(74 194 204 / 0.07); box-shadow: 0 0 0 1px rgb(74 194 204 / 0.35) inset; color: var(--ink-2); }
.step[aria-selected="true"]::after { opacity: 1; }
.step__num { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); }
.step[aria-selected="true"] .step__num { color: var(--accent); }
.step__title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.step__text { font-size: 0.9375rem; line-height: 1.5; }
.steps__stage { position: relative; max-width: 1080px; margin: 32px auto 0; }
.steps__panel img { width: 100%; }
.js .steps__panel { animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: none; } }

/* ---------- film ---------- */
.film__frame { position: relative; margin: 48px 0 0; isolation: isolate; }
.film__glow {
  position: absolute; inset: -6% -4% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgb(15 122 138 / 0.5), transparent 75%);
  filter: blur(50px);
}
.film__video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #05070f;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgb(0 0 0 / 0.9);
}
.film__frame figcaption { margin-top: 18px; text-align: center; color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- features / bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 56px;
  grid-auto-flow: dense;
}
.card { display: flex; flex-direction: column; gap: 24px; padding: 28px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow); }
.card__copy h3 { margin-top: 18px; font-size: 1.25rem; letter-spacing: -0.018em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.card__copy h3 .keys { font-size: 0.9375rem; }
.card__copy p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; max-width: 34em; }
.card__copy p kbd { font-size: 0.8em; }

.media {
  position: relative; flex: 1 0 auto; margin-top: auto; overflow: hidden;
  border-radius: 12px; background: #eef0f3;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset; pointer-events: none; }
.media--shield { aspect-ratio: 1800 / 330; background: var(--bg); }
.media--shield img { object-position: 16% 0; }
.media--capture { aspect-ratio: 1500 / 380; }
.media--capture img { object-position: 20% 50%; }
.media--notes { aspect-ratio: 790 / 1000; }
.media--notes img { width: 103%; object-position: 0 0; }
.media--translate { aspect-ratio: 1500 / 560; }
.media--translate img { object-position: 0 0; }
.media--wrapup { aspect-ratio: 1050 / 1000; }
.media--wrapup img { object-position: 50% 0; }

.f-shield { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.f-shield .media--shield { aspect-ratio: 3 / 1; margin-top: 0; }
.f-translate { grid-column: 1 / span 7; }
.f-lock { grid-column: 8 / span 5; }
.f-capture { grid-column: 1 / span 7; }
.f-notes { grid-column: 8 / span 5; grid-row: span 2; }
.f-viewers { grid-column: 1 / span 7; }
.f-wrapup { grid-column: 1 / span 6; grid-row: span 2; }
.f-resume { grid-column: 7 / span 6; }
.f-export { grid-column: 7 / span 6; }

.md {
  margin-top: auto; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgb(8 11 23 / 0.6); box-shadow: 0 0 0 1px var(--line) inset;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); white-space: nowrap; overflow: hidden;
}
.md b { color: var(--ink-3); font-weight: 400; }
.md i { color: var(--accent); font-style: normal; }
.md__file { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-family: var(--font); font-size: 0.8125rem; }

/* Lock: the whole screen, shown on a small display */
.screen { margin-top: auto; padding-top: 4px; }
.screen__display {
  position: relative; aspect-ratio: 3024 / 1964; overflow: hidden;
  border-radius: 10px; border: 5px solid #05070d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 50px -20px rgb(0 0 0 / 0.8);
}
.screen__display img { width: 100%; height: 100%; object-fit: cover; }
.screen__base { width: 112%; height: 8px; margin: 0 -6%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #3a4255, #1a1f2c); box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset; }

.viewers { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.viewers li {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.03); box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 0.875rem; line-height: 1.45; color: var(--ink-2);
}
.viewers strong { margin-top: 8px; color: var(--ink); font-size: 0.9375rem; font-weight: 600; }

.resume { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.resume li {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px var(--line-2) inset;
  font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.resume span { padding: 3px 9px; border-radius: 999px; background: rgb(74 194 204 / 0.14); color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- privacy ---------- */
.vault {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
  padding: 64px; border-radius: 24px;
  background: linear-gradient(135deg, rgb(15 122 138 / 0.16), rgb(255 255 255 / 0.02) 55%);
  box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow);
}
.vault::before {
  content: ""; position: absolute; z-index: -1; inset: auto auto -40% -15%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgb(74 194 204 / 0.16), transparent); pointer-events: none;
}
.vault h2 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3rem); letter-spacing: -0.032em; }
.vault .lead { margin-top: 20px; }
.ledger { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ledger > div {
  padding: 20px; border-radius: var(--r-md);
  background: rgb(8 11 23 / 0.55); box-shadow: 0 0 0 1px var(--line) inset;
}
.ledger dt { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 0.875rem; font-weight: 500; }
.ledger dd { margin: 14px 0 0; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.ledger dd code { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 22px 48px 22px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px;
  background: var(--ink-3); border-radius: 2px; transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--accent); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- install ---------- */
.install__steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.install__steps li {
  position: relative; padding: 24px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset;
}
.install__n {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(74 194 204 / 0.12); box-shadow: 0 0 0 1px rgb(74 194 204 / 0.3) inset;
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}
.install__steps p { margin-top: 18px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.install__note { margin-top: 24px; text-align: center; color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- final cta ---------- */
.cta { padding-bottom: var(--section); }
.cta__panel {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 88px 32px 96px; border-radius: 28px;
  background: linear-gradient(180deg, rgb(15 122 138 / 0.22), rgb(8 11 23 / 0.2) 70%);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.cta__glow {
  position: absolute; z-index: -1; inset: -40% 10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(74 194 204 / 0.3), transparent);
  filter: blur(20px);
}
.cta__panel::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
}
.cta__icon { width: 96px; height: 96px; filter: drop-shadow(0 18px 40px rgb(15 122 138 / 0.6)); }
.cta h2 { margin-top: 32px; max-width: 14em; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); letter-spacing: -0.035em; }
.cta .lead { margin-top: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 56px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer__brand p { margin-top: 12px; color: var(--ink-3); font-size: 0.9375rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 4px; }
.footer__nav a { color: var(--ink-2); font-size: 0.9375rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--ink); }
.footer__meta { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }

/* ---------- 404 ---------- */
.lost { position: relative; isolation: isolate; min-height: calc(100vh - 64px - 160px); display: grid; place-items: center; padding: 120px 0; text-align: center; }
.lost::before {
  content: ""; position: absolute; z-index: -1; inset: -64px 0 auto; height: 700px; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 0%, rgb(15 122 138 / 0.35), transparent 70%);
}
.lost__code { font-family: var(--mono); color: var(--accent); font-size: 0.9375rem; letter-spacing: 0.08em; }
.lost h1 { margin-top: 20px; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.04em; }
.lost .lead { margin: 20px auto 0; }
.lost .hero__cta { margin-top: 36px; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.bento > .is-in:nth-child(even), .pains > .is-in:nth-child(2), .install__steps > .is-in:nth-child(2) { transition-delay: 0.06s; }
.pains > .is-in:nth-child(3), .install__steps > .is-in:nth-child(3) { transition-delay: 0.12s; }
.install__steps > .is-in:nth-child(4) { transition-delay: 0.18s; }
.js .card.is-in:hover { transform: translateY(-3px); transition-delay: 0s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .chip--shield { left: -2%; }
  .chip--session { right: -2%; }
}
@media (max-width: 1000px) {
  :root { --section: 120px; --gutter: 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-shield, .f-capture, .f-translate, .f-viewers { grid-column: 1 / -1; }
  .f-lock, .f-notes, .f-wrapup, .f-resume, .f-export { grid-column: auto; grid-row: auto; }
  .f-shield { grid-template-columns: 1fr; gap: 24px; }
  .vault { grid-template-columns: 1fr; padding: 48px; gap: 40px; }
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .install__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 64px; }
  .hero__stage { margin-top: 56px; }
  .chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
  .chip { position: static; animation: none; }
  .chip--park { padding: 12px 16px; }
  .steps__list { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: baseline; }
  .step__text { grid-column: 2; }
  .step:not([aria-selected="true"]) .step__text { display: none; }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --section: 96px; --gutter: 16px; }
  body { font-size: 1rem; }
  .lead { font-size: 1.0625rem; }
  .hero { padding-top: 48px; }
  .hero__cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .chip { white-space: normal; }
  .chip--session { display: none; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento > * { grid-column: 1 / -1 !important; }
  .card { padding: 22px; }
  .viewers { grid-template-columns: 1fr; }
  .viewers li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .viewers strong { margin-top: 0; }
  .viewers li > span:last-child { grid-column: 2; }
  .viewers .tile-icon { grid-row: span 2; }
  .vault { padding: 32px 22px; border-radius: 20px; }
  .ledger { grid-template-columns: 1fr; }
  .install__steps { grid-template-columns: 1fr; }
  .install__steps li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
  .install__steps p { margin-top: 0; }
  .cta__panel { padding: 64px 20px 72px; border-radius: 22px; }
  .cta__icon { width: 80px; height: 80px; }
  .cta__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .footer__grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.lost + .footer { padding-block: 32px; }
.lost + .footer .footer__meta { border-top: 0; padding-top: 0; text-align: center; }
