/* AquaKeeper website
   Layout: one column of full-width bands over a fixed "deep water" backdrop; content capped at 1120px.
   Colour: the app's own palette (core/designsystem/theme/Color.kt). Type: Poppins for display and UI,
   Nunito Sans for running text. Single dark theme by design: the app is dark, the water is dark. */
:root {
  color-scheme: dark;
  --ocean-deep: #051a24;
  --ocean: #071a26;
  --ocean-mid: #0b2c3b;
  --ocean-light: #113b4c;
  --aqua: #38e1c6;
  --cyan: #57d9ff;
  --water: #4da3ff;
  --text: #eaf6f4;
  --text-soft: #c9dcdf;
  --muted: #93aeb4;
  --faint: #5e7b85;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --good: #3fe0a0;
  --warn: #ffc24d;
  --bad: #ff6b6b;
  --on-neon: #03251f;
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1120px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ocean-deep);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Backdrop ----------------------------------------------------------------- */
.sea { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--ocean-mid) 0%, var(--ocean) 45%, var(--ocean-deep) 100%); }
.sea__glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: 0.26; mix-blend-mode: screen; }
.sea__glow--a { background: radial-gradient(circle, rgba(56, 225, 198, 0.9), transparent 62%); top: -22vmax; left: -18vmax; animation: drift 40s ease-in-out infinite alternate; }
.sea__glow--b { background: radial-gradient(circle, rgba(87, 217, 255, 0.85), transparent 62%); bottom: -28vmax; right: -22vmax; animation: drift 52s ease-in-out infinite alternate-reverse; }
.sea__rays { position: absolute; inset: -20% -10%; background: repeating-linear-gradient(115deg, transparent 0 90px, rgba(87, 217, 255, 0.04) 90px 120px, transparent 120px 230px); transform: skewX(-8deg); animation: rays 26s linear infinite; }
.bubble { position: absolute; bottom: -40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.03) 60%); opacity: 0; animation: rise linear infinite; }
@keyframes drift { to { transform: translate3d(12vmax, 9vmax, 0); } }
@keyframes rays { to { transform: skewX(-8deg) translateX(230px); } }
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 8% { opacity: 0.75; } 100% { transform: translate3d(var(--sway, 20px), -115vh, 0); opacity: 0; } }

/* Navigation --------------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ocean-deep); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(5, 26, 36, 0.6); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; list-style: none; padding: 0; align-items: center; }
.nav__links a { text-decoration: none; color: var(--muted); font-family: var(--display); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); cursor: pointer; place-items: center; }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text); }
@media (max-width: 820px) {
  .nav__toggle { display: grid; }
  .nav__links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ocean); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); z-index: 1; box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45); }
  .nav__links li a { display: block; padding: 0.8rem 0.25rem; }
  .nav--open .nav__links { display: flex; }
}

/* Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.3rem; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--neon { background: linear-gradient(135deg, var(--aqua), var(--cyan)); color: var(--on-neon); box-shadow: 0 10px 30px rgba(56, 225, 198, 0.25); }
.btn--neon:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(56, 225, 198, 0.38); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--glass); }
.btn--ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn--small { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn--soon { border-color: var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.04); cursor: default; }
.btn--soon .soon { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px; background: rgba(56, 225, 198, 0.16); color: var(--aqua); }

/* Hero --------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--aqua); font-weight: 600; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; margin-top: 1rem; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--aqua), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34rem; margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__fine { margin-top: 1.1rem; color: var(--faint); font-size: 0.9rem; }
.stage { position: relative; display: grid; place-items: center; min-height: 660px; }
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 300 / 640; border-radius: 44px; background: #0a1116; padding: 10px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1); transform: perspective(1400px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); transition: transform 0.5s ease; }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ocean); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__cam { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 3px #111; }
.chip { position: absolute; display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.9rem; border-radius: 14px; background: rgba(11, 44, 59, 0.78); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--display); font-size: 0.85rem; font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip b { font-weight: 600; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip--1 { top: 9%; left: -4%; }
.chip--2 { top: 46%; right: -10%; animation-delay: -2s; }
.chip--3 { bottom: 11%; left: -2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .stage { min-height: auto; padding-block: 2rem 1rem; }
  .chip--1 { left: 0; } .chip--2 { right: 0; } .chip--3 { left: 0; }
}

/* Stats -------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: rgba(7, 26, 38, 0.8); padding: 1.3rem 1rem; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--aqua); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* Sections ----------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; margin-top: 0.75rem; }
.section__head p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--fit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; min-width: 0; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(56, 225, 198, 0.45); background: var(--glass-strong); }
.card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(56, 225, 198, 0.22), rgba(87, 217, 255, 0.14)); color: var(--aqua); margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; font-weight: 600; }
.card p { color: var(--muted); margin-top: 0.55rem; font-size: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.checks { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-soft); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--aqua); margin-top: 0.15rem; }

/* Chart -------------------------------------------------------------------- */
.chart { background: rgba(7, 26, 38, 0.85); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.chart__head h3 { font-size: 1.05rem; font-weight: 600; }
.chart__head span { color: var(--muted); font-size: 0.85rem; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--display); }
.chart .axis { fill: var(--faint); font-size: 11px; }
.chart .band { fill: rgba(63, 224, 160, 0.12); }
.chart .band-edge { stroke: rgba(63, 224, 160, 0.5); stroke-dasharray: 4 4; }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.07); }
.chart .line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#areaFill); }
.chart .pt { fill: var(--ocean); stroke: var(--cyan); stroke-width: 3; }
.chart .pt--bad { stroke: var(--bad); }
.chart .pt--last { fill: var(--cyan); }
.chart .note { fill: var(--muted); font-size: 11px; }
.chart .note--bad { fill: var(--bad); font-weight: 600; }
.chart .change { stroke: var(--warn); stroke-dasharray: 3 5; }
@keyframes dash { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: view()) {
  .chart .line { stroke-dasharray: 900; animation: dash linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
}
.chart__legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; color: var(--muted); font-size: 0.85rem; }
.chart__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.4rem; vertical-align: -1px; }

/* Notification mock ---------------------------------------------------------- */
.notif { background: rgba(7, 26, 38, 0.9); border: 1px solid var(--line-strong); border-radius: 22px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); max-width: 420px; }
.notif__app { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 0.8rem; color: var(--muted); }
.notif__app img { width: 20px; height: 20px; border-radius: 6px; }
.notif__app time { margin-left: auto; }
.notif b { display: block; font-family: var(--display); font-weight: 600; margin-top: 0.6rem; }
.notif p { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.notif__actions { margin-top: 0.9rem; display: flex; gap: 1.2rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--aqua); }

/* Species ------------------------------------------------------------------ */
.species { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.tag { display: inline-flex; align-self: flex-start; padding: 0.25rem 0.65rem; border-radius: 999px; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(56, 225, 198, 0.15); color: var(--aqua); }
.tag--plant { background: rgba(63, 224, 160, 0.15); color: var(--good); }
.tag--coral { background: rgba(255, 143, 176, 0.18); color: #ff9fbb; }
.tag--invert { background: rgba(255, 194, 77, 0.16); color: var(--warn); }
.species h3 { font-size: 1.15rem; font-weight: 600; }
.species .sci { display: block; color: var(--muted); font-style: italic; font-size: 0.9rem; font-weight: 400; margin-top: 0.15rem; }
.species dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; font-size: 0.95rem; }
.species dt { color: var(--muted); }
.species dd { margin: 0; font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Guides ------------------------------------------------------------------- */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shelf { grid-template-columns: 1fr; } }
.shelf h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--aqua); font-weight: 600; margin-bottom: 0.8rem; }
.shelf ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.shelf li { padding: 0.55rem 0.8rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 0.95rem; }
.doctor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 700px) { .doctor { grid-template-columns: 1fr; } }
.doctor .card { display: flex; gap: 1.1rem; align-items: flex-start; }
.doctor .card__icon { margin: 0; flex: none; }

/* Screens ------------------------------------------------------------------ */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .screens { grid-template-columns: 1fr; } }
.screen { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.screen__frame { border-radius: 28px; padding: 8px; background: #0a1116; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.screen__frame img { border-radius: 22px; width: 100%; height: auto; aspect-ratio: 1440 / 3120; object-fit: cover; object-position: top; background: var(--ocean); }
.screen figcaption { font-family: var(--display); font-weight: 500; color: var(--text-soft); font-size: 0.95rem; }
.screen figcaption span { display: block; color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.9rem; }

/* FAQ ---------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(45deg); transition: transform 0.25s; flex: none; margin-right: 4px; }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--muted); padding-bottom: 1.2rem; max-width: 62ch; }
.faq-list { max-width: 52rem; }

/* CTA ---------------------------------------------------------------------- */
.cta { position: relative; border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: linear-gradient(135deg, rgba(56, 225, 198, 0.16), rgba(87, 217, 255, 0.08)); border: 1px solid rgba(56, 225, 198, 0.35); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: -40% -20%; background: radial-gradient(circle at 50% 120%, rgba(56, 225, 198, 0.25), transparent 55%); pointer-events: none; }
.cta > * { position: relative; }
.cta img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 1.2rem; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta p { color: var(--muted); margin-top: 0.8rem; max-width: 36rem; margin-inline: auto; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 1.6rem; }
.cta__note { font-size: 0.9rem; color: var(--faint); margin-top: 1rem; }

/* Footer ------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.9rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; }
.footer__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; }
.footer__links a { text-decoration: none; color: var(--text-soft); font-family: var(--display); font-size: 0.9rem; }
.footer__links a:hover { color: var(--aqua); }
.footer__soon { font-family: var(--display); font-size: 0.9rem; color: var(--faint); }
.footer small { display: block; width: 100%; color: var(--faint); font-size: 0.8rem; margin-top: 0.5rem; }
.contact { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.contact code { font-family: var(--display); font-size: 0.9rem; color: var(--text); background: var(--glass); border: 1px solid var(--line); padding: 0.25rem 0.6rem; border-radius: 8px; }

/* Long-form document (privacy policy) ---------------------------------------- */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); font-size: 0.9rem; }
.toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--aqua); font-weight: 600; margin-bottom: 0.8rem; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.toc a { text-decoration: none; color: var(--muted); display: block; padding: 0.3rem 0.6rem; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--aqua); }
.doc { max-width: 72ch; }
.doc header { margin-bottom: 2rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-top: 0.75rem; }
.doc .updated { color: var(--muted); margin-top: 0.75rem; }
.doc h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.8rem; margin-bottom: 0.9rem; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.6rem; margin-bottom: 0.5rem; }
.doc p, .doc li { color: var(--text-soft); }
.doc p + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.2rem; margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.doc a { color: var(--cyan); }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.8rem; }
.doc th, .doc td { text-align: left; padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 0.85rem; }
.doc td { color: var(--text-soft); }
.table-wrap { overflow-x: auto; }
.summary { background: var(--glass); border: 1px solid rgba(56, 225, 198, 0.35); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; margin-top: 2rem; }
.summary h2 { margin: 0 0 0.8rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.summary h2 svg { width: 22px; height: 22px; color: var(--aqua); }
.summary ul { margin: 0; }

/* Motion: scroll-driven, so every section is visible at rest and eases in only where the browser supports it. */
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sea__glow, .sea__rays, .chip, .bubble { animation: none; }
  .bubble { display: none; }
  .reveal, .chart .line { animation: none; }
  .phone { transition: none; }
  .card, .btn { transition: none; }
}
