/* Numelis — marketing site. One shared stylesheet, no build step. Dark, like the app. */

:root {
  --bg: #000000;
  --bg-alt: #07080b;
  --surface: #101116;
  --surface-2: #181a21;
  --ink: #f5f5f7;
  --ink-2: #d2d3d9;
  --muted: #9a9ca6;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #6ea8ff;          /* the app's blue theme, lifted for text on black */
  --accent-strong: #3d82f6;
  --accent-soft: rgba(110, 168, 255, 0.12);
  --green: #4fd19a;
  --pink: #ff6fa5;
  --violet: #a48bff;
  --amber: #f5b14c;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 50px -20px rgba(0,0,0,.9);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 50px 100px -30px rgba(0,0,0,1);
  --radius: 28px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* Language switching: English is shown unless JS picks Spanish. */
html[data-lang="es"] [data-l="en"],
html[data-lang="en"] [data-l="es"] { display: none !important; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); font-size: 14px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang {
  display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.lang[hidden] { display: none; }
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 12px/1 var(--font); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #2a2c35; color: var(--ink); }

@media (max-width: 620px) {
  .nav-links .hide-sm { display: none; }
  .brand span { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 10vw, 112px) 0 0; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto; height: 1000px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 30% at 28% 26%, rgba(79, 209, 154, .16), transparent 70%),
    radial-gradient(30% 30% at 72% 22%, rgba(164, 139, 255, .18), transparent 70%),
    radial-gradient(38% 36% at 50% 52%, rgba(61, 130, 246, .22), transparent 70%),
    radial-gradient(28% 26% at 82% 50%, rgba(255, 111, 165, .12), transparent 70%);
  filter: blur(8px);
}
.app-icon {
  width: clamp(96px, 16vw, 136px); height: auto; aspect-ratio: 1; margin: 0 auto 28px;
  filter: drop-shadow(0 30px 50px rgba(61, 130, 246, .35));
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0;
  background: rgba(255,255,255,.06); color: var(--ink-2); border: 1px solid var(--line);
}
.pill svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(44px, 9vw, 96px); margin: 22px 0 0; letter-spacing: -0.045em; }
.hero .lede { font-size: clamp(19px, 2.6vw, 25px); color: var(--muted); max-width: 720px; margin: 20px auto 0; line-height: 1.35; letter-spacing: -0.015em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center; margin-top: 34px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--ink); color: #000; text-align: left; line-height: 1.1;
}
a.store-badge:hover { text-decoration: none; opacity: .9; }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; }
.store-badge small { display: block; font-size: 11px; opacity: .7; font-weight: 500; letter-spacing: .01em; }
.store-badge b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.hero-note { font-size: 14px; color: var(--muted); max-width: 340px; text-align: left; line-height: 1.4; }
.hero-note b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 520px) { .hero-note { text-align: center; } }

.grad {
  background: linear-gradient(100deg, var(--green), #46b5e6 30%, var(--accent) 50%, var(--violet) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Phone trio */
.trio {
  position: relative; margin: clamp(48px, 8vw, 80px) auto 0; max-width: 900px;
  display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: clamp(8px, 3vw, 36px);
  padding: 0 clamp(0px, 2vw, 20px);
}
.trio .phone:nth-child(1) { transform: translateY(-6%) rotate(-2deg); }
.trio .phone:nth-child(3) { transform: translateY(-6%) rotate(2deg); }
.trio-wrap {
  max-height: clamp(380px, 72vw, 700px); overflow: hidden; padding-top: 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

/* ---------- Device frames ---------- */
.phone {
  position: relative; margin: 0;
  padding: 2.4%; border-radius: 15% / 7%;
  background: #1c1d22;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.14), 0 0 0 1px rgba(0,0,0,.6);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 1320 / 2868; object-fit: cover;
  border-radius: 12.8% / 5.9%; background: #000;
}
.tablet {
  margin: 0; padding: 1.6%; border-radius: 4.2% / 5.6%; background: #1c1d22;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.14);
}
.tablet img { width: 100%; height: auto; aspect-ratio: 2752 / 2064; border-radius: 2.8% / 3.7%; background: #000; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 12vw, 140px) 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: -0.005em; margin-bottom: 12px; }
.h2 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.035em; }
.sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin-top: 16px; line-height: 1.45; }
.center .sub { margin-left: auto; margin-right: auto; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Notes showcase ---------- */
.notes-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.notes-split .sub { margin-top: 18px; }
.understands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.understands span {
  font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); font-family: var(--mono); letter-spacing: 0;
}
.sheet {
  background: linear-gradient(180deg, #0d0f15, #07080b); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 40px 120px -40px rgba(61,130,246,.35);
  padding: clamp(20px, 3vw, 32px); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.5; min-width: 0;
}
.sheet-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.ln { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 3px 0; min-height: 1.5em; }
.ln .q { min-width: 0; color: var(--ink-2); }
.ln .a { flex: none; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln .a small { font-size: .72em; font-weight: 600; color: var(--amber); margin-left: 3px; }
.ln .a .ai { color: var(--accent); margin-right: 6px; font-weight: 400; }
.ln.h .q { color: var(--accent); font-weight: 700; }
.ln.gap { min-height: .9em; }
.v { color: var(--accent); } .u { color: var(--amber); } .k { color: var(--violet); } .c { color: var(--muted); }
.a.blue { color: var(--accent); }
.sheet-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; color: var(--muted); font-size: .9em; }
.sheet-total b { color: var(--ink); font-weight: 500; font-size: 1.25em; font-variant-numeric: tabular-nums; }

/* Typing: each line reveals left to right, then its answer appears. Without JS, all is shown. */
.js .sheet .ln .q { clip-path: inset(0 100% 0 0); }
.js .sheet .ln .a { opacity: 0; transform: translateX(-6px); }
.js .sheet.play .ln .q { animation: type calc(var(--n, 20) * 28ms) steps(var(--n, 20), end) forwards; animation-delay: calc(var(--i) * 620ms); }
.js .sheet.play .ln .a { animation: pop .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 620ms + var(--n, 20) * 28ms + 80ms); }
.js .sheet .sheet-total { opacity: 0; }
.js .sheet.play .sheet-total { animation: pop .6s ease forwards; animation-delay: calc(var(--count, 10) * 620ms + .4s); }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .notes-split { grid-template-columns: 1fr; } }

/* ---------- Modes ---------- */
.modes-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.modes-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
}
.modes-tabs a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.modes-tabs svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pro-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px;
  background: linear-gradient(100deg, rgba(164,139,255,.28), rgba(110,168,255,.28)); color: #d6ccff;
}
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 27vw, 290px); gap: clamp(20px, 3vw, 36px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 48px var(--gutter) 32px; margin-top: 8px; scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; scroll-margin-top: 80px; }
.gallery figcaption { margin-top: 20px; font-size: 15px; color: var(--muted); line-height: 1.4; padding: 0 4px; }
.gallery figcaption b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.gallery-wrap { max-width: calc(var(--maxw) + 2 * 40px); margin: 0 auto; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.card.wide { grid-column: span 3; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.45; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; color: #fff; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-blue { background: #3d82f6; } .c-violet { background: #7a63f0; } .c-green { background: #1fa774; } .c-pink { background: #e84a86; }
.c-amber { background: #d9891c; } .c-teal { background: #1497a8; } .c-ink { background: #34363f; } .c-sky { background: #1d8fe0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* ---------- Everywhere ---------- */
.everywhere { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 56px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; overflow: hidden; min-width: 0; }
.tile h3 { font-size: 26px; letter-spacing: -0.025em; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.tile.ipad { grid-column: span 12; display: grid; grid-template-columns: 1fr 1.8fr; gap: 36px; align-items: center; }
.tile.watch { grid-column: span 5; }
.tile.duo { grid-column: span 7; display: flex; flex-direction: column; }
.watch-art { display: flex; justify-content: center; margin: 28px 0 8px; }
.watch-body {
  position: relative; width: 190px; aspect-ratio: 0.84; border-radius: 30%/26%; background: #0b0b0c;
  padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 5px #2a2a2d, inset 0 0 0 6px #444; overflow: hidden;
}
.watch-body::before, .watch-body::after { content: ""; position: absolute; right: -9px; width: 8px; border-radius: 0 4px 4px 0; background: #3a3a3c; }
.watch-body::before { top: 26%; height: 20%; } .watch-body::after { top: 55%; height: 12%; }
.watch-body img { width: 100%; height: 100%; object-fit: cover; border-radius: 22%/19%; background: #000; }
.duo-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.duo-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.duo-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface-2); stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.duo-list b { display: block; color: var(--ink); font-weight: 600; }
.duo-list span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .tile.ipad { grid-template-columns: 1fr; }
  .tile.watch, .tile.duo { grid-column: span 12; }
}
@media (max-width: 520px) { .tile { padding: 24px; } }

/* ---------- Make it yours ---------- */
.yours { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.icons-row { display: flex; gap: clamp(14px, 3vw, 28px); margin-top: 26px; flex-wrap: wrap; }
.icons-row figure { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.icons-row img { width: clamp(64px, 9vw, 88px); height: auto; margin-bottom: 10px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.swatches { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.s-blue { background: #5e9bff; } .s-pink { background: #ff6fb5; } .s-violet { background: #a78bfa; }
.s-mint { background: #4ade9f; } .s-amber { background: #ffb020; } .s-graphite { background: #a1a1aa; }
.swatches i { width: 40px; height: 40px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
@media (max-width: 760px) { .yours { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px auto 0; max-width: 920px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; }
.plan.pro {
  background: linear-gradient(170deg, #161a2a, #0f1018 60%);
  border-color: rgba(110,168,255,.35); box-shadow: 0 40px 100px -40px rgba(61,130,246,.5);
}
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 46px; letter-spacing: -0.04em; font-weight: 700; }
.price span { color: var(--muted); font-size: 16px; }
.plan > p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.4; }
.plan li svg { width: 20px; height: 20px; margin-top: 1px; stroke: var(--green); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan.pro li svg { stroke: var(--accent); }
.plan .includes { color: var(--muted); font-size: 14px; margin-top: 22px; }
.trial {
  margin-top: auto; padding-top: 26px;
}
.trial div { border-radius: 18px; padding: 16px 18px; background: rgba(110,168,255,.08); border: 1px solid rgba(110,168,255,.2); font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.trial b { color: var(--ink); }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.lock {
  width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 28px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1a1c24, #0b0c10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 50px -20px rgba(110,168,255,.6);
}
.lock svg { width: 42px; height: 42px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.pv { border-radius: 22px; padding: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pv h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
.pv p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.45; }
.pv svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
a.more { display: inline-block; margin-top: 36px; font-weight: 500; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 48px auto 0; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details .a { padding: 0 2px 22px; color: var(--ink-2); font-size: 17px; }
details .a p + p, details .a p + ol, details .a ol + p, details .a p + ul { margin-top: 10px; }
details .a ol, details .a ul { margin: 10px 0 0; padding-left: 22px; }
details .a li + li { margin-top: 4px; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 17px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--accent-strong); color: #fff; font-weight: 600; font-size: 16px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- Closing ---------- */
.closing { overflow: hidden; isolation: isolate; }
.closing::before {
  content: ""; position: absolute; inset: 10% 15%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(61,130,246,.22), transparent 70%); filter: blur(20px);
}
.closing .app-icon { margin-bottom: 26px; }

/* ---------- Document pages (support, privacy) ---------- */
.doc-hero { padding: clamp(56px, 9vw, 96px) 0 24px; }
.doc-hero h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.04em; }
.doc-hero .sub { margin-top: 14px; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.doc h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -0.025em; margin: 52px 0 14px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; margin-top: 8px; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.summary-card li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 0; }
.summary-card li svg { width: 20px; height: 20px; margin-top: 3px; stroke: var(--green); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.contact-card {
  margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.contact-card h2 { margin: 0; font-size: 26px; }
.contact-card p { margin-top: 6px; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc.centered { justify-content: center; }
.toc a { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.toc a:hover { text-decoration: none; color: var(--ink); }
.doc .faq { margin-top: 12px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 36px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-2); }
footer .fine { width: 100%; font-size: 12px; line-height: 1.5; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf h1 { font-size: clamp(40px, 8vw, 72px); letter-spacing: -0.04em; margin-top: 8px; }
.nf p { color: var(--muted); margin: 14px auto 28px; max-width: 460px; }
.nf .big { font-size: clamp(64px, 14vw, 120px); font-weight: 200; letter-spacing: -0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
.hero .app-icon { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .sheet .ln .q { clip-path: none; }
  .js .sheet .ln .a, .js .sheet .sheet-total { opacity: 1; transform: none; }
}
