/* PhoneLab website. Colours and type follow the app's theme (core/ui Color.kt, Tones.kt, Type.kt). */
:root {
  --cobalt: #2B50E0;
  --cobalt-deep: #1E3AB8;
  --cobalt-soft: #6E93FF;
  --sky-top: #6E93FF;
  --sky-bottom: #2B50E0;
  --wash: #D5E1FF;
  --ground: #F1F5FD;
  --card: #FFFFFF;
  --card-2: #E9EEF9;
  --ink: #131A2B;
  --muted: #5A6172;
  --line: #DCE4F4;
  --good: #1F8A4C;
  --good-wash: #E2F4E8;
  --fair: #F5A623;
  --fair-ink: #7A4A00;
  --fair-wash: #FFEBC4;
  --poor: #D5363C;
  --flame: #FF7A3D;
  --flame-core: #FFC94A;
  --shadow: 0 1px 2px rgba(19, 26, 43, .06), 0 12px 32px -12px rgba(30, 58, 184, .22);
  --radius: 24px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

/* Light is the default. Dark is used only when the visitor picks it (site.js keeps the choice). */
:root[data-theme="dark"] {
  --cobalt: #9DB1FF;
  --cobalt-deep: #C5D0FF;
  --cobalt-soft: #6E86E8;
  --sky-top: #1B2757;
  --sky-bottom: #0F1838;
  --wash: #1B2757;
  --ground: #0C111B;
  --card: #151C2B;
  --card-2: #1C2436;
  --ink: #E8EAF2;
  --muted: #A3ABBE;
  --line: #263049;
  --good: #6FD39A;
  --good-wash: #12301F;
  --fair: #FFCB69;
  --fair-ink: #FFCB69;
  --fair-wash: #3A2A0B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Scroll progress: a rocket climbing the right edge ---------- */
.progress { position: fixed; right: 10px; top: 80px; bottom: 24px; width: 4px; border-radius: 4px; background: color-mix(in srgb, var(--cobalt) 14%, transparent); z-index: 40; pointer-events: none; }
.progress i { position: absolute; left: 0; right: 0; top: 0; height: var(--p, 0%); border-radius: 4px; background: linear-gradient(var(--cobalt-soft), var(--cobalt)); }
.progress svg { position: absolute; left: 50%; top: var(--p, 0%); width: 22px; height: 30px; transform: translate(-50%, -14px); }
@media (max-width: 720px) { .progress { display: none; } }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
/* Over the blue sky at the top of a page the bar is see-through and its text white. */
.nav.sky:not(.scrolled) { background: transparent; backdrop-filter: none; }
.nav.sky:not(.scrolled) .brand, .nav.sky:not(.scrolled) ul a { color: #fff; }
.nav.sky:not(.scrolled) ul a:hover, .nav.sky:not(.scrolled) ul a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.nav.sky:not(.scrolled) .theme-btn, .nav.sky:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); color: #fff; }
@media (max-width: 900px) { .nav.sky:not(.scrolled) ul a { color: var(--muted); } }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .2s, color .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); background: var(--card-2); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .nav ul { display: none; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: var(--shadow); }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 12px 14px; }
  .menu-btn { display: grid; place-items: center; }
  .nav .play.small { display: none; }
}

/* ---------- Buttons ---------- */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 14px; border-radius: 16px;
  background: #0E1220; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 24px -10px rgba(14, 18, 32, .6);
  transition: transform .2s, box-shadow .2s;
}
.play:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(14, 18, 32, .7); }
.play svg { width: 26px; height: 26px; flex: none; }
.play span { display: grid; line-height: 1.1; }
.play small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.play b { font: 600 18px var(--display); }
.play.small { padding: 7px 14px 7px 10px; border-radius: 12px; }
.play.small svg { width: 20px; height: 20px; }
.play.small b { font-size: 15px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 16px;
  color: inherit; text-decoration: none; font-weight: 600;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  transition: background .2s;
}
.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border-radius: 0 0 48px 48px;
  margin-top: -68px; padding-top: 124px;
}
.hero canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); font-size: 14px; font-weight: 500; }
.pill b { background: #fff; color: #2B50E0; border-radius: 999px; padding: 2px 8px; font-size: 11px; letter-spacing: .06em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 20px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #FFE08A, #FFB36B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 19px; max-width: 34em; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; opacity: .92; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; flex: none; }

.hero-stage { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; aspect-ratio: 1080 / 2400;
  border-radius: 42px; padding: 9px; background: #0E1220;
  box-shadow: 0 40px 80px -30px rgba(5, 10, 40, .65), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05070d; }
.hero-stage .phone.front { left: 50%; bottom: -40px; transform: translateX(-30%) rotate(2deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-stage .phone.back { left: 50%; bottom: 10px; width: 250px; transform: translateX(-108%) rotate(-7deg); opacity: .96; animation: float 8s ease-in-out -2s infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.25; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; color: var(--muted); font-size: 12px; }
.chip .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--good-wash); color: var(--good); flex: none; }
.chip .dot.blue { background: var(--wash); color: var(--cobalt); }
.chip .dot.amber { background: var(--fair-wash); color: var(--fair-ink); }
.chip svg { width: 18px; height: 18px; }
.chip.c1 { top: 70px; right: 0; animation-delay: -1s; }
.chip.c2 { top: 300px; left: -10px; animation-delay: -3s; }
.chip.c3 { bottom: 120px; right: -6px; animation-delay: -4.5s; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 24px; text-align: left; }
  .hero-stage { height: 520px; }
  .hero-stage .phone.front { width: 240px; }
  .hero-stage .phone.back { width: 210px; }
}
@media (max-width: 520px) {
  .hero-stage { height: 460px; }
  .hero-stage .phone.front { width: 210px; transform: translateX(-35%) rotate(2deg); }
  .hero-stage .phone.back { width: 180px; transform: translateX(-100%) rotate(-7deg); }
  .chip.c1 { right: -4px; top: 30px; }
  .chip.c2 { left: -4px; top: 210px; }
  .chip.c3 { display: none; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -44px auto 0; position: relative; z-index: 5; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font: 600 40px/1 var(--mono); color: var(--cobalt); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 32px; } }

/* ---------- Sections ---------- */
section { padding: 112px 0 0; }
.eyebrow { display: inline-block; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 14px; }
.head { max-width: 760px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s;
}
.cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line)); }
.cat .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--wash); color: var(--cobalt); margin-bottom: 18px; }
.cat .ico svg { width: 24px; height: 24px; }
.cat h3 { font-size: 21px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat h3 small { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0; }
.cat p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cats { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 600 18px var(--mono); color: #fff; background: linear-gradient(180deg, #6E93FF, #2B50E0); margin-bottom: 18px; }
.step h3 { font-size: 22px; }
.step p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Launch strip (interactive rocket) ---------- */
.launch {
  position: relative; overflow: hidden; margin-top: 16px; border-radius: 32px;
  background: linear-gradient(180deg, #6E93FF, #2B50E0); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 340px;
}
.launch canvas { width: 100%; height: 340px; display: block; }
.launch .copy { padding: 40px; }
.launch h3 { font-size: clamp(26px, 3vw, 36px); }
.launch p { margin-top: 12px; opacity: .9; }
.launch button {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font: 600 17px var(--display); color: #2B50E0; background: #fff; border: 0;
  padding: 10px 22px 10px 10px; border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 12px 30px -10px rgba(5, 10, 40, .6);
  transition: transform .2s;
}
.launch button:hover { transform: scale(1.03); }
.launch button i { width: 40px; height: 40px; border-radius: 50%; background: #2B50E0; display: grid; place-items: center; }
.launch button svg { width: 16px; height: 16px; margin-left: 2px; }
@media (max-width: 760px) { .launch { grid-template-columns: 1fr; } .launch .copy { padding: 28px 24px 0; } .launch canvas { height: 280px; } }

/* ---------- Screens gallery ---------- */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 36px; margin: 0 -16px; scrollbar-width: thin; }
.gallery figure { flex: 0 0 230px; margin: 0; scroll-snap-align: center; }
.gallery .phone { position: relative; width: 100%; border-radius: 34px; padding: 7px; transition: transform .35s; }
.gallery .phone img { border-radius: 28px; }
.gallery .phone::after { top: 14px; width: 9px; height: 9px; margin-left: -4.5px; }
.gallery figure:hover .phone { transform: translateY(-8px) rotate(-1deg); }
.gallery figcaption { margin-top: 16px; text-align: center; }
.gallery figcaption b { display: block; font: 600 16px var(--display); }
.gallery figcaption span { color: var(--muted); font-size: 14px; }
.gallery-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -24px; }
.gallery-nav button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.gallery-nav svg { width: 18px; height: 18px; }

/* ---------- Split feature (report, tools) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 3.8vw, 46px); }
.split p.sub { margin-top: 16px; color: var(--muted); font-size: 18px; }
.list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; }
.list li > svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 9px; background: var(--good-wash); color: var(--good); }
.list b { display: block; font-weight: 600; }
.list span { color: var(--muted); font-size: 15.5px; }
.visual { position: relative; display: grid; place-items: center; min-height: 520px; border-radius: 36px; background: radial-gradient(120% 90% at 50% 10%, var(--wash), transparent 70%); }
.visual .phone { position: relative; width: 270px; }
.visual .phone.second { position: absolute; width: 220px; right: 4%; bottom: 6%; transform: rotate(6deg); }
.visual .phone.third { position: absolute; width: 220px; left: 4%; bottom: 10%; transform: rotate(-6deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } .visual { min-height: 460px; } .visual .phone { width: 230px; } .visual .phone.second, .visual .phone.third { width: 170px; } }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.tool { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.tool i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--wash); color: var(--cobalt); flex: none; font-style: normal; }
.tool svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 36px; padding: 56px;
  background: #0E1530; color: #E8EAF2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.band::before { content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(110, 147, 255, .35), transparent); }
.band h2 { font-size: clamp(30px, 3.8vw, 46px); position: relative; }
.band p { margin-top: 16px; opacity: .85; position: relative; }
.band .facts { position: relative; display: grid; gap: 12px; }
.band .fact { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.band .fact svg { width: 22px; height: 22px; color: #9DB1FF; flex: none; }
.band a { color: #9DB1FF; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 600 18px var(--display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--body); color: var(--cobalt); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: hidden; margin-top: 112px; border-radius: 40px; color: #fff; text-align: center; padding: 80px 24px 0; background: linear-gradient(180deg, #6E93FF, #2B50E0); }
.closing h2 { font-size: clamp(34px, 5vw, 60px); }
.closing p { margin: 16px auto 0; max-width: 34em; opacity: .9; font-size: 18px; }
.closing .cta { justify-content: center; }
.closing canvas { display: block; width: 100%; height: 260px; margin-top: 12px; }

/* ---------- Footer ---------- */
footer { margin-top: 80px; padding: 48px 0 40px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 30em; }
footer h4 { font-size: 15px; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
footer ul a:hover { color: var(--ink); }
.legal-line { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, terms, contact) ---------- */
.doc-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); border-radius: 0 0 40px 40px; margin-top: -68px; padding: 140px 0 64px; }
.doc-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(36px, 5.4vw, 60px); }
.doc-hero p { margin-top: 14px; opacity: .9; font-size: 18px; max-width: 40em; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 56px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; font-size: 14.5px; }
.toc b { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 10px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--ink); background: var(--card-2); border-left-color: var(--cobalt); }
.prose { min-width: 0; max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 8px; }
.summary h2 { margin: 0 0 12px; font-size: 22px; }
.summary ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.summary li { display: flex; gap: 12px; align-items: flex-start; }
.summary li svg { width: 22px; height: 22px; flex: none; color: var(--good); margin-top: 2px; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.note { margin: 18px 0; padding: 16px 18px; border-radius: 16px; background: var(--wash); color: var(--ink); font-size: 15.5px; }
.updated { font: 500 14px var(--mono); color: var(--muted); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; display: none; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 56px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 26px; }
.contact-card p { margin-top: 10px; color: var(--muted); }
.mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 20px; border-radius: 16px; background: var(--cobalt); color: #fff; text-decoration: none; font: 600 18px var(--display); }
:root[data-theme="dark"] .mail, .mail { color: #fff; }
.mail svg { width: 20px; height: 20px; }
.copy-btn { margin-left: 8px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: 500 15px var(--body); cursor: pointer; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input, .form select, .form textarea { font: 400 16px var(--body); color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.form button { justify-self: start; padding: 14px 22px; border-radius: 16px; border: 0; background: var(--cobalt); color: #fff; font: 600 17px var(--display); cursor: pointer; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .mail, :root[data-theme="dark"] .form button { background: #2B50E0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .chip { animation: none !important; }
}

/* Theme switch */
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }

/* In the phone menu the theme switch is a row below Privacy, instead of a button in the bar. */
.menu-theme { display: none; }
.menu-theme button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 12px 12px;
  background: none; color: var(--muted); font: 500 15px var(--body); cursor: pointer; text-align: left;
}
.menu-theme button:hover { color: var(--ink); background: var(--card-2); }
.menu-theme .switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); flex: none; transition: background .2s; }
.menu-theme .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
:root[data-theme="dark"] .menu-theme .switch { background: #2B50E0; border-color: #2B50E0; }
:root[data-theme="dark"] .menu-theme .switch::after { transform: translateX(18px); background: #fff; }
@media (max-width: 900px) {
  .menu-theme { display: block; }
  .nav .theme-btn { display: none; }
  .menu-btn { margin-left: auto; }
}

/* Shown inside the app (?app=1): the app's own bar replaces the site's header, and there is no footer. */
.in-app .nav, .in-app footer, .in-app .progress, .in-app .skip { display: none; }
.in-app .doc-hero { margin-top: 0; padding: 32px 0 36px; border-radius: 0 0 32px 32px; }
.in-app .doc-hero h1 { font-size: clamp(30px, 8vw, 44px); }
.in-app .doc { padding-top: 28px; padding-bottom: 40px; }
.in-app .contact-grid { padding-top: 24px; }
.in-app .hero-panel { margin-top: 0; padding-top: 48px; }
