/* Grasp download site. No build step, no fonts or scripts from other hosts.
   A plain page (white, near-black in the dark theme) with pill buttons in the text colour and
   soft blue "sky" panels behind the pictures. Every colour is a variable, defined once per theme. */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --text: #0A0A0B;
  --text-2: #66666B;
  --line: #E7E7EA;
  --card: #F3F3F4;
  --quiet: #EEEEF0;
  --quiet-hover: #E2E2E6;
  --ink: #0A0A0B;
  --ink-hover: #2C2C30;
  --on-ink: #FFFFFF;
  --frame: #FFFFFF;
  /* The app's own colours (design/tokens.css), for the drawings of its window. */
  --w-bg: radial-gradient(60% 70% at 0% 0%, #C7D9FF 0%, rgba(199, 217, 255, 0) 70%), radial-gradient(55% 70% at 100% 10%, #E4D8FF 0%, rgba(228, 216, 255, 0) 70%), radial-gradient(50% 60% at 90% 100%, #FFE1CC 0%, rgba(255, 225, 204, 0) 70%), #EEF1F6;
  --w-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.48) 100%);
  --w-glass-line: rgba(255, 255, 255, 0.70);
  --w-content: #FFFFFF;
  --w-doc: #E5E5EA;
  --w-card: rgba(255, 255, 255, 0.88);
  --w-raised: rgba(255, 255, 255, 0.92);
  --w-fill: rgba(118, 118, 128, 0.12);
  --w-sep: rgba(60, 60, 67, 0.10);
  --w-text: #1D1D1F;
  --w-text-2: #545458;
  --w-text-3: #6E6E73;
  --w-accent: #0071E3;
  --w-accent-text: #0058B0;
  --w-accent-tint: rgba(0, 113, 227, 0.10);
  --w-mark: #FFF3B0;
  --w-shadow-tab: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  --w-shadow-composer: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-window: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 44px 88px -40px rgba(30, 41, 80, 0.42);
  --focus: #4F6BFF;
  --wire: #7B88E8;
  --pulse: #2533A8;
  --sky-text: #0A0A0B;
  --sky-text-2: #33384F;
  --sky-glass: rgba(255, 255, 255, 0.62);
  --sky:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.94) 52%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(70% 115% at 0% 8%, #6E82FF 0%, rgba(110, 130, 255, 0) 72%),
    radial-gradient(62% 105% at 100% 100%, #78A0FF 0%, rgba(120, 160, 255, 0) 72%),
    radial-gradient(60% 90% at 100% 0%, #A9A7FF 0%, rgba(169, 167, 255, 0) 70%),
    linear-gradient(180deg, #B6C0FF, #D5E4FF);
  --grain: 0.5;
  --shadow-frame: 0 0 0 1px rgba(22, 30, 90, 0.06), 0 32px 64px -32px rgba(36, 48, 130, 0.5);
  --shadow-pill: 0 0 0 1px rgba(22, 30, 90, 0.06), 0 12px 24px -14px rgba(36, 48, 130, 0.5);
  --pad: max(24px, calc((100% - 1136px) / 2));
  --font: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0D;
    --text: #F5F5F7;
    --text-2: #A4A4AB;
    --line: #26262B;
    --card: #17171A;
    --quiet: #1F1F23;
    --quiet-hover: #2B2B31;
    --ink: #F5F5F7;
    --ink-hover: #D9D9DE;
    --on-ink: #0B0B0D;
    --frame: #121216;
    --w-bg: radial-gradient(60% 70% at 0% 0%, #1B2C55 0%, rgba(27, 44, 85, 0) 70%), radial-gradient(55% 70% at 100% 10%, #2C2350 0%, rgba(44, 35, 80, 0) 70%), radial-gradient(50% 60% at 90% 100%, #45291E 0%, rgba(69, 41, 30, 0) 70%), #16171B;
    --w-glass: linear-gradient(180deg, rgba(46, 46, 52, 0.66) 0%, rgba(34, 34, 40, 0.54) 100%);
    --w-glass-line: rgba(255, 255, 255, 0.10);
    --w-content: #1C1C1F;
    --w-doc: #101012;
    --w-card: rgba(56, 56, 62, 0.78);
    --w-raised: rgba(62, 62, 68, 0.92);
    --w-fill: rgba(120, 120, 128, 0.24);
    --w-sep: rgba(255, 255, 255, 0.10);
    --w-text: #F5F5F7;
    --w-text-2: #C2C2C7;
    --w-text-3: #A8A8AD;
    --w-accent-text: #7DB9FF;
    --w-accent-tint: rgba(10, 132, 255, 0.18);
    --w-mark: #FFF0A6;
    --w-shadow-tab: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 2px 6px rgba(0, 0, 0, 0.35);
    --w-shadow-composer: 0 0 0 0.5px rgba(255, 255, 255, 0.10), 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 44px 88px -40px rgba(0, 0, 0, 0.9);
    --focus: #8FA2FF;
    --wire: #7F8CFF;
    --pulse: #DCE1FF;
    --sky-text: #F5F5F7;
    --sky-text-2: #C5CAE6;
    --sky-glass: rgba(18, 18, 22, 0.55);
    --sky:
      linear-gradient(118deg, rgba(150, 170, 255, 0) 30%, rgba(150, 170, 255, 0.26) 52%, rgba(150, 170, 255, 0) 72%),
      radial-gradient(70% 115% at 0% 8%, #3445C8 0%, rgba(52, 69, 200, 0) 72%),
      radial-gradient(62% 105% at 100% 100%, #23479C 0%, rgba(35, 71, 156, 0) 72%),
      radial-gradient(60% 90% at 100% 0%, #4A3FA8 0%, rgba(74, 63, 168, 0) 70%),
      linear-gradient(180deg, #171C4A, #101533);
    --grain: 0.16;
    --shadow-frame: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 32px 64px -32px rgba(0, 0, 0, 0.8);
    --shadow-pill: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 24px -14px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
main { overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, .lead, .sub { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; padding: 8px 12px; background: var(--bg); border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark { fill: currentColor; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ── top bar ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 var(--pad); background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; font-size: 22px; line-height: 1; letter-spacing: -0.035em; }
.brand .mark { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a:not(.button) { color: var(--text-2); transition: color 0.15s ease; }
.top nav a:not(.button):hover { color: var(--text); }

/* ── buttons ─────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 550; font-size: 17px; line-height: 1; white-space: nowrap; transition: background-color 0.15s ease, transform 0.15s ease; }
.button:hover { background: var(--ink-hover); }
.button:active { transform: scale(0.98); }
.button.quiet { background: var(--quiet); color: var(--text); }
.button.quiet:hover { background: var(--quiet-hover); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
/* A system without a file yet: shown, named, not pressable. */
[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"], .button[aria-disabled="true"]:hover { background: var(--quiet); color: var(--text-2); transform: none; padding-right: 10px; }
.soon { display: none; }
[aria-disabled="true"] > .soon { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 13px; font-weight: 600; }

/* ── sections ────────────────────────────────────────────── */
main > section { padding: 72px var(--pad); scroll-margin-top: 68px; }
h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.14; letter-spacing: -0.04em; font-weight: 550; }
h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 550; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.lead, .sub { color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
.flow, .showcase, .promise { text-align: center; }
.sub { max-width: 660px; margin: 16px auto 0; }
.note { margin-top: 20px; font-size: 14px; color: var(--text-2); }

/* The blue panel behind pictures: a streak of light across blue and lilac, with fine specks. */
.sky { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; background: var(--sky); color: var(--sky-text); }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/img/grain.svg"); opacity: var(--grain); pointer-events: none; }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding-top: 72px; padding-bottom: 56px; text-align: center; }
.hero .lead { max-width: 700px; margin: 22px auto 0; }
.downloads { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; scroll-margin-top: 220px; }
.release { margin-top: 22px; font-size: 14px; color: var(--text); }
.more { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.more a:not([aria-disabled]) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.more a[aria-disabled="true"] { display: none; }
.window { margin-top: 64px; container-type: inline-size; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-window); transform-origin: 50% 0; }
/* The window is drawn, not captured. Every size inside is a multiple of --u, one 1136th of the
   figure's width, so the whole drawing grows and shrinks as one picture. */
.win { --u: calc(100cqw / 1136); display: grid; grid-template-columns: calc(212 * var(--u)) minmax(0, 1fr) calc(344 * var(--u)); grid-template-rows: minmax(0, 1fr); gap: calc(10 * var(--u)); height: calc(690 * var(--u)); padding: calc(10 * var(--u)); background: var(--w-bg); color: var(--w-text); font-size: calc(12.5 * var(--u)); line-height: 1.45; text-align: left; white-space: nowrap; }
.win p, .win ul { margin: 0; }
.win .icon { flex: none; width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke-width: 2; }
.w-side, .w-agent { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-radius: calc(16 * var(--u)); background: var(--w-glass); box-shadow: inset 0 0 0 1px var(--w-glass-line); }
.w-side { padding: calc(12 * var(--u)) calc(10 * var(--u)); }
.w-lights { display: flex; gap: calc(7 * var(--u)); padding: calc(2 * var(--u)) calc(4 * var(--u)) calc(12 * var(--u)); }
.w-lights i { width: calc(11 * var(--u)); height: calc(11 * var(--u)); border-radius: 50%; background: #FF5F57; }
.w-lights i:nth-child(2) { background: #FEBC2E; }
.w-lights i:nth-child(3) { background: #28C840; }
.w-brand { display: flex; align-items: center; gap: calc(7 * var(--u)); padding: 0 calc(4 * var(--u)) calc(12 * var(--u)); font-size: calc(15 * var(--u)); font-weight: 650; letter-spacing: -0.02em; }
.w-brand .mark { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.w-search { display: flex; align-items: center; gap: calc(7 * var(--u)); height: calc(30 * var(--u)); padding: 0 calc(9 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--w-fill); color: var(--w-text-3); }
.w-search kbd { margin-left: auto; font: inherit; font-size: calc(11 * var(--u)); }
.w-label { padding: calc(14 * var(--u)) calc(8 * var(--u)) calc(4 * var(--u)); color: var(--w-text-3); font-size: calc(10.5 * var(--u)); font-weight: 600; }
.w-nav li { display: flex; align-items: center; gap: calc(9 * var(--u)); height: calc(27 * var(--u)); padding: 0 calc(8 * var(--u)); border-radius: calc(8 * var(--u)); }
.w-nav li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-nav li.in { padding-left: calc(26 * var(--u)); }
.w-nav li.on { background: var(--w-accent-tint); color: var(--w-accent-text); font-weight: 600; }
.w-status { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(32 * var(--u)); margin-top: auto; padding: 0 calc(10 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--w-card); font-size: calc(12 * var(--u)); }
.w-status i { width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #34C759; }
.w-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.w-tabs { display: flex; align-items: center; gap: calc(4 * var(--u)); height: calc(36 * var(--u)); padding-bottom: calc(6 * var(--u)); color: var(--w-text-2); }
.w-tabs span { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); height: calc(30 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(8 * var(--u)); }
.w-tabs .on { background: var(--w-raised); color: var(--w-text); box-shadow: var(--w-shadow-tab); }
.w-tabs > .icon { margin-left: calc(8 * var(--u)); }
.w-doc { flex: 1; display: flex; flex-direction: column; min-height: 0; border-radius: calc(14 * var(--u)); overflow: hidden; background: var(--w-content); box-shadow: 0 0 0 1px var(--w-sep); }
.w-bar { flex: none; display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(14 * var(--u)); }
.w-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.w-page { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); margin-right: calc(4 * var(--u)); color: var(--w-text-3); }
.w-page em { display: grid; place-items: center; min-width: calc(30 * var(--u)); height: calc(24 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--w-fill); color: var(--w-text); font-style: normal; }
.w-pill { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); height: calc(28 * var(--u)); padding: 0 calc(11 * var(--u)); border-radius: 999px; font-size: calc(12 * var(--u)); font-weight: 600; }
.w-pill.tint { background: var(--w-accent-tint); color: var(--w-accent-text); }
.w-pill.fill { background: var(--w-accent); color: #FFFFFF; }
.w-pill.plain { color: var(--w-text-2); }
.w-pages { flex: 1; display: flex; flex-direction: column; gap: calc(14 * var(--u)); min-height: 0; padding: calc(18 * var(--u)) calc(22 * var(--u)) 0; background: var(--w-doc); overflow: hidden; }
/* Paper stays white in both themes, as it does in the app. */
.w-sheet { position: relative; flex: none; min-height: calc(286 * var(--u)); padding: calc(22 * var(--u)) calc(26 * var(--u)) calc(26 * var(--u)); background: #FFFFFF; color: #1D1D1F; box-shadow: 0 calc(2 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.10); white-space: normal; }
.w-kicker { color: #6E6E73; font-size: calc(9.5 * var(--u)); }
.w-title { margin-top: calc(5 * var(--u)); font-size: calc(21 * var(--u)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.w-cols { display: grid; grid-template-columns: minmax(0, 1fr) calc(168 * var(--u)); gap: calc(18 * var(--u)); margin-top: calc(18 * var(--u)); }
.w-sheet > .w-points { margin-top: calc(18 * var(--u)); }
.w-points li { position: relative; padding-left: calc(12 * var(--u)); font-size: calc(11.5 * var(--u)); line-height: 1.6; }
.w-points li + li { margin-top: calc(9 * var(--u)); }
.w-points li::before { content: ""; position: absolute; left: calc(1 * var(--u)); top: calc(7.2 * var(--u)); width: calc(4 * var(--u)); height: calc(4 * var(--u)); border-radius: 50%; background: #1D1D1F; }
.w-points mark { padding: calc(2 * var(--u)) calc(1 * var(--u)); border-radius: calc(3 * var(--u)); background: var(--w-mark); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.w-tree { width: calc(168 * var(--u)); height: auto; margin-top: calc(-6 * var(--u)); }
.w-tree .edge { fill: none; stroke: #B9BCC6; stroke-width: 1.5; }
.w-tree circle, .w-tree rect { fill: #FFFFFF; stroke: #8A8A8E; stroke-width: 1.25; }
.w-tree .root { fill: #E5F0FC; stroke: #0071E3; }
.w-tree text { fill: #1D1D1F; font-size: 12px; font-weight: 600; text-anchor: middle; }
.w-no { position: absolute; right: calc(14 * var(--u)); bottom: calc(10 * var(--u)); color: #6E6E73; font-size: calc(9.5 * var(--u)); }
.w-agent { gap: calc(12 * var(--u)); padding: calc(12 * var(--u)); font-size: calc(13 * var(--u)); white-space: normal; }
.w-head { display: flex; align-items: center; gap: calc(6 * var(--u)); height: calc(28 * var(--u)); padding: 0 calc(2 * var(--u)); }
.w-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.w-head span { flex: 1; }
.w-head .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); margin-left: calc(4 * var(--u)); color: var(--w-text-2); }
.w-q { align-self: flex-end; max-width: 88%; padding: calc(9 * var(--u)) calc(13 * var(--u)); border-radius: calc(16 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) calc(16 * var(--u)); background: var(--w-accent); color: #FFFFFF; line-height: 1.5; }
.w-q small { display: block; font-size: calc(11 * var(--u)); opacity: 0.82; }
.w-a { padding: 0 calc(2 * var(--u)); line-height: 1.62; }
.w-a p + p { margin-top: calc(8 * var(--u)); }
.win .cite { padding: 0 calc(6 * var(--u)); font-size: calc(11 * var(--u)); line-height: calc(18 * var(--u)); vertical-align: calc(1 * var(--u)); }
.w-srcs { display: flex; gap: calc(6 * var(--u)); padding: 0 calc(2 * var(--u)); }
.w-nudge { padding: calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--w-card); box-shadow: 0 0 0 1px var(--w-sep); font-size: calc(12.5 * var(--u)); }
.w-nudge p + p { display: flex; gap: calc(4 * var(--u)); margin-top: calc(10 * var(--u)); }
.w-composer { margin-top: auto; padding: calc(10 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--w-raised); box-shadow: var(--w-shadow-composer); }
.w-chip { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); height: calc(24 * var(--u)); padding: 0 calc(8 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--w-fill); color: var(--w-text-2); font-size: calc(11.5 * var(--u)); }
.w-ph { padding: calc(10 * var(--u)) calc(4 * var(--u)) calc(12 * var(--u)); color: var(--w-text-3); }
.w-send { display: flex; align-items: center; justify-content: space-between; }
.w-send i { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--w-fill); color: var(--w-text-2); }
.w-send i + i { background: var(--w-accent); color: #FFFFFF; }
/* The window leans back at the top of the page and stands up as the page is scrolled. */
@keyframes settle { from { transform: perspective(1600px) rotateX(18deg) scale(0.94); } to { transform: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .window { animation: settle linear both; animation-timeline: scroll(root block); animation-range: 0px 380px; }
  }
}

/* ── text beside a panel ─────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 72px; }
.split.flip .text { order: 2; }
.eyebrow { font-size: 14px; color: var(--text-2); }
.split h2 { margin-top: 14px; }
.split .body { margin-top: 18px; max-width: 26em; color: var(--text-2); font-size: 18px; }
.pane { display: flex; align-items: flex-end; justify-content: center; min-height: 520px; padding: 64px 48px 0; }
.shot { overflow: hidden; background: var(--frame); }
.shot img { width: 100%; }
.shot.tall { width: min(380px, 100%); max-height: 456px; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-frame); }
/* The captures carry a thin rim of the app window around them; the frames crop it away. */
.shot.tall img { width: 104.4%; max-width: none; margin: -2.6% 0 0 -2.2%; }

/* A drawing of the AI panel: a question, an answer with its page, the button that opens the page. */
.mock { display: grid; gap: 16px; width: min(460px, 100%); padding: 28px 28px 36px; border-radius: 22px 22px 0 0; background: var(--frame); color: var(--text); box-shadow: var(--shadow-frame); font-size: 15px; line-height: 1.6; text-align: left; }
.m-file { color: var(--text-2); font-size: 13px; }
.m-q { justify-self: end; max-width: 88%; padding: 10px 16px; border-radius: 18px 18px 4px 18px; background: var(--w-accent); color: #FFFFFF; }
.cite { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--w-accent-tint); color: var(--w-accent-text); font-size: 13px; font-weight: 600; line-height: 22px; vertical-align: 1px; }
.m-src span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--w-accent-tint); color: var(--w-accent-text); font-weight: 600; font-size: 14px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.m-tags li { padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--text-2); }

/* ── what goes in, what comes out ────────────────────────── */
.diagram { margin-top: 56px; aspect-ratio: 1136 / 520; text-align: left; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.wire { stroke: var(--wire); stroke-width: 1.25; opacity: 0.6; }
.pulse { stroke: var(--pulse); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2.4 97.6; }
@keyframes flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .pulse use { animation: flow 3.6s linear infinite; }
  .pulse use:nth-child(2), .pulse use:nth-child(7) { animation-delay: -0.9s; }
  .pulse use:nth-child(3), .pulse use:nth-child(8) { animation-delay: -1.8s; }
  .pulse use:nth-child(4), .pulse use:nth-child(9) { animation-delay: -2.7s; }
  .pulse use:nth-child(5), .pulse use:nth-child(10) { animation-delay: -0.4s; }
}
.node { position: absolute; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 8px; border-radius: 999px; background: var(--frame); color: var(--text); font-size: 15px; font-weight: 550; white-space: nowrap; box-shadow: var(--shadow-pill); }
.node .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--quiet); }
.outs .ico { background: var(--ink); color: var(--on-ink); }
.ins .node { left: 6%; }
.outs .node { right: 6%; }
.node:nth-child(1) { top: 11.92%; }
.node:nth-child(2) { top: 30.96%; }
.node:nth-child(3) { top: 50%; }
.node:nth-child(4) { top: 69.04%; }
.node:nth-child(5) { top: 88.08%; }
.core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; height: 76px; padding: 0 32px 0 24px; border-radius: 999px; background: var(--frame); color: var(--text); font-size: 28px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; box-shadow: var(--shadow-pill); }
.core .mark { width: 34px; height: 34px; }

/* ── one screen at a time ────────────────────────────────── */
.stage { margin-top: 56px; padding: 40px; text-align: left; }
.pick { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tabs { display: inline-flex; max-width: 100%; gap: 4px; padding: 6px; border-radius: 999px; background: var(--sky-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs label { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; color: var(--sky-text-2); font-size: 15px; font-weight: 550; white-space: nowrap; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.tabs .n { font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.7; }
.panels { margin-top: 16px; }
.panel { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: 8px; padding: 16px; border-radius: 24px; background: var(--frame); color: var(--text); box-shadow: var(--shadow-frame); }
.panel .text { padding: 24px 28px; }
.panel p { margin-top: 12px; color: var(--text-2); }
.panel .shot { aspect-ratio: 4 / 3; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.panel .shot img { height: 100%; object-fit: cover; object-position: top; }
#s-review:checked ~ .panels [data-for="s-review"],
#s-map:checked ~ .panels [data-for="s-map"],
#s-history:checked ~ .panels [data-for="s-history"],
#s-exam:checked ~ .panels [data-for="s-exam"] { display: grid; }
#s-review:checked ~ .tabs [for="s-review"],
#s-map:checked ~ .tabs [for="s-map"],
#s-history:checked ~ .tabs [for="s-history"],
#s-exam:checked ~ .tabs [for="s-exam"] { background: var(--ink); color: var(--on-ink); }
#s-review:focus-visible ~ .tabs [for="s-review"],
#s-map:focus-visible ~ .tabs [for="s-map"],
#s-history:focus-visible ~ .tabs [for="s-history"],
#s-exam:focus-visible ~ .tabs [for="s-exam"] { outline: 2px solid var(--focus); outline-offset: 2px; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .panel { animation: appear 0.28s ease both; } }

/* ── promises ────────────────────────────────────────────── */
.rules { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.rules li { padding: 32px; border-radius: 28px; background: var(--card); }
.rules .n { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rules h3 { margin-top: 10px; font-size: 20px; }
.rules p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ── install ─────────────────────────────────────────────── */
.install h2 { font-size: clamp(24px, 2.6vw, 30px); }
.cols { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols h3 { font-size: 18px; }
.cols p { margin-top: 6px; color: var(--text-2); font-size: 16px; }
.hashes { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.hashes code { font: 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ── last call ───────────────────────────────────────────── */
.cta .sky { padding: 96px 24px; text-align: center; }
.cta .sub { color: var(--sky-text-2); }
.sky .button[aria-disabled="true"] { background: var(--sky-glass); color: var(--sky-text-2); }

footer { margin-top: 24px; padding: 48px var(--pad) 56px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; font-size: 14px; color: var(--text-2); }
footer .brand { margin-bottom: 14px; }
footer .about p:not(.brand) { max-width: 28em; }
footer nav { display: flex; gap: 24px; }
footer nav a:hover { color: var(--text); }
.fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ── narrower windows ────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.flip .text { order: 0; }
  .pane { min-height: 0; padding: 40px 24px 0; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel .text { padding: 16px 12px 12px; }
  /* The picture of lines needs room; below it the same three groups are stacked. */
  .diagram { aspect-ratio: auto; display: grid; justify-items: center; gap: 0; padding: 36px 20px; }
  .wires { display: none; }
  .ins, .outs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .node { position: static; transform: none; }
  .core { position: relative; left: auto; top: auto; transform: none; margin: 28px 0; }
  .core::before, .core::after { content: ""; position: absolute; left: 50%; width: 1px; height: 28px; background: var(--wire); }
  .core::before { bottom: 100%; }
  .core::after { top: 100%; }
}
@media (max-width: 760px) {
  main > section { padding-top: 48px; padding-bottom: 48px; }
  .top { height: 60px; }
  .top nav a:not(.button) { display: none; }
  .hero { padding-top: 48px; }
  .downloads { flex-direction: column; align-items: center; }
  .downloads .button { width: 100%; max-width: 320px; }
  /* A phone shows the right end of the window, the AI panel, at a size that can be read. */
  .window { display: flex; justify-content: flex-end; margin-top: 44px; border-radius: 16px; }
  .win { --u: calc(100cqw / 440); flex: none; width: calc(1136 * var(--u)); }
  .sky { border-radius: 24px; }
  .stage { padding: 16px; }
  .tabs label { height: 36px; padding: 0 14px; font-size: 14px; }
  .tabs .n { display: none; }
  .rules, .cols { grid-template-columns: minmax(0, 1fr); }
  .rules li { padding: 24px; border-radius: 22px; }
  .cta .sky { padding: 64px 20px; }
  footer { grid-template-columns: minmax(0, 1fr); }
  footer nav { flex-wrap: wrap; }
}
