/* ModelKeep website — one stylesheet, no external requests, no web fonts.
   Tokens mirror the app's DesignSystem (docs/design-system/tokens.md, Direction A "Keep").
   When the app's tokens change, update the TOKENS block below (light, dark, increased contrast).
   Type scale follows the iOS text styles the app uses (body 17, subheadline 15, footnote 13,
   title3 20, title2 22, title 28, largeTitle 34) with a fluid web display size on top. */

/* ===== TOKENS ===== */
:root {
  color-scheme: light dark;
  --canvas: #F3F5F7;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --fill: #E9EDF1;
  --hairline: #DDE2E8;
  --text: #0E1620;
  --text2: #4B5662;
  --text3: #5F6A77;
  --accent: #1F4FD8;
  --accent-text: #1F4FD8;
  --on-accent: #FFFFFF;
  --signature: #7FE3D4;
  --signature-stroke: #0E8A7A;
  --fits: #17703A;
  --tight: #8A5000;
  --too-large: #C0271D;
  --measured: #1D5FD1;
  --vision: #6A3FD6;
  --reasoning: #A3237A;
  --bubble: #1F4FD8;
  --on-bubble: #FFFFFF;
  --code: #EEF1F5;
  /* elevation "card": hairline + soft shadow (light); hairline + deep shadow (dark) */
  --shadow-card: 0 1px 2px rgba(14, 22, 32, .06), 0 8px 24px rgba(14, 22, 32, .06);
  --shadow-float: 0 2px 6px rgba(14, 22, 32, .06), 0 24px 60px -12px rgba(14, 30, 70, .22);
  --glass: rgba(243, 245, 247, .72);
  --note-text: #6B4300;
  --note-line: #D9A441;
  --note-bg: rgba(255, 181, 71, .12);
  /* the ink band (privacy section) is deep navy from the icon's gradient in both schemes */
  --ink-top: #0B1D3A;
  --ink-bottom: #07101E;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* radius (app: tile 16, card 22, hero 30, bubble 22, code 18) */
  --r-small: 10px; --r-tile: 16px; --r-card: 22px; --r-hero: 30px;
  /* spacing (app: 4 8 12 16 20 24 32 48) plus web section rhythm */
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A0E13;
    --surface: #131A21;
    --raised: #1A222B;
    --fill: #1F2831;
    --hairline: #263039;
    --text: #EEF2F6;
    --text2: #A7B2BE;
    --text3: #8794A2;
    --accent: #3366FF;
    --accent-text: #8DB0FF;
    --signature-stroke: #7FE3D4;
    --fits: #4ADE80;
    --tight: #FFB547;
    --too-large: #FF6B5E;
    --measured: #6AA8FF;
    --vision: #B79CFF;
    --reasoning: #FF8FD0;
    --bubble: #1B3A8C;
    --on-bubble: #EEF2F6;
    --code: #0D1218;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-float: 0 30px 80px -20px rgba(0, 0, 0, .7);
    --glass: rgba(10, 14, 19, .72);
    --note-text: #FFD98A;
    --note-line: #8A6A22;
    --note-bg: rgba(255, 181, 71, .08);
    --ink-top: #0E1E36;
    --ink-bottom: #0A0E13;
  }
}
@media (prefers-contrast: more) {
  :root { --text: #000; --text2: #3B4550; --text3: #4B5662; --hairline: #B8C0CA; --accent: #1A47C7; --accent-text: #1A47C7; --signature-stroke: #0A6E61;
          --fits: #0F5A2C; --tight: #6E3F00; --too-large: #9E1A12; --measured: #164CB0; --vision: #5530B8; --reasoning: #861A63; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --text: #FFF; --text2: #C3CCD6; --text3: #A7B2BE; --hairline: #4A5663; --accent-text: #B0C8FF; --signature-stroke: #A8F0E5;
          --fits: #7BEBA3; --tight: #FFCB7A; --too-large: #FF9A90; --measured: #99C3FF; --vision: #CDBBFF; --reasoning: #FFB3DF; }
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 20;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== HEADER (glass control layer, as in the app) ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--canvas); } }
.site-header.is-scrolled, .page-doc .site-header { border-bottom-color: var(--hairline); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 680 1.0625rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.brand .app-icon { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav a { display: inline-block; padding: 8px 10px; border-radius: 999px; color: var(--text2); font-size: .9375rem; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--fill); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 520px) {
  .site-nav .opt { display: none; }
  .site-nav a { padding: 8px 8px; }
}

/* ===== APP ICON (inline SVG) ===== */
.app-icon { border-radius: 22.5%; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 6px 16px -6px rgba(10, 36, 71, .45); }

/* ===== SHARED TEXT ROLES ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .9375rem/1.3 var(--font); color: var(--accent-text); letter-spacing: -.005em; }
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--text3); font-weight: 500; }
.display { font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem); font-weight: 800; line-height: 1.0; letter-spacing: -.045em; }
.title-xl { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem); font-weight: 780; line-height: 1.04; letter-spacing: -.038em; }
.title-l { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 740; line-height: 1.1; letter-spacing: -.03em; }
.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.5; color: var(--text2); letter-spacing: -.016em; max-width: 36rem; }
.body-l { font-size: 1.125rem; line-height: 1.55; color: var(--text2); max-width: 34rem; }
.meta { font-size: .9375rem; color: var(--text3); }
.fine { font-size: .8125rem; line-height: 1.5; color: var(--text3); letter-spacing: 0; }

/* ===== CALL TO ACTION PLACEHOLDER =====
   Replace .store with the real App Store link when the app is live (no badge artwork needed). */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--text); color: var(--canvas); font-weight: 620; font-size: 1rem; letter-spacing: -.01em; text-decoration: none;
}
.store .ico { width: 20px; height: 20px; }
.store small { display: block; font-size: .75rem; font-weight: 500; opacity: .78; letter-spacing: 0; line-height: 1.1; }
.store span { line-height: 1.15; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .ico { width: 1em; height: 1em; stroke-width: 2.2; }

/* ===== HERO ===== */
.hero { position: relative; padding: clamp(32px, 6vw, 88px) 0 0; }
.hero::before { /* faint blue wash from the icon's sky, never a second glow */
  content: ""; position: absolute; inset: -60px 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 80% 10%, rgba(37, 99, 201, .10), transparent 70%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .eyebrow { color: var(--text2); }
.hero-copy .eyebrow .app-icon { width: 28px; height: 28px; border-radius: 7px; }
.hero-copy .lede { margin-top: -4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; font-size: .9375rem; color: var(--text3); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ico { width: 16px; height: 16px; color: var(--signature-stroke); stroke-width: 2.2; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; }
}

/* Scene: recreated UI from the app's components */
.scene { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 540px; }
/* the stage: the icon's blue gradient, with the keep silhouette as a quiet watermark */
.stage {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(18px, 4vw, 44px) clamp(14px, 4vw, 52px) clamp(22px, 4vw, 52px);
  border-radius: clamp(28px, 4vw, 40px);
  background: linear-gradient(165deg, #2563C9 0%, #1A4C9E 38%, #0A2447 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(10, 36, 71, .55);
}
.stage-keep { position: absolute; z-index: -1; left: 50%; bottom: -4%; width: 118%; max-width: none; transform: translateX(-50%); fill: rgba(255,255,255,.07); }
@media (max-width: 520px) {
  .stage { padding: 14px 10px 10px; }
  .stage .mk-device { margin-left: 8px; font-size: .875rem; }
  .mk-hero { padding: 20px 16px 14px; }
  .headroom-labels { font-size: .8125rem; }
  .hero-copy .eyebrow .app-icon { display: none; }
}
.title-xl .br { display: block; }
.stage .mk-device { color: #fff; }
.stage .mk-device .ico { color: rgba(255, 255, 255, .85); }
.stage .mk-device b { color: #fff; }
.stage .mk-hero { box-shadow: 0 2px 6px rgba(3, 12, 30, .18), 0 30px 60px -18px rgba(3, 12, 30, .55); border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .stage { background: linear-gradient(165deg, #1A4686 0%, #102C58 40%, #060E1C 100%); }
  .stage .mk-hero { border-color: var(--hairline); }
}
.caption { margin-top: 16px; font-size: .8125rem; color: var(--text3); letter-spacing: 0; display: flex; gap: 8px; align-items: baseline; }
.caption::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--signature-stroke); transform: translateY(-1px); }

/* ===== APP COMPONENT RECREATIONS (mk-*) — sizes in px to mirror points ===== */
.mk { font-family: var(--font); letter-spacing: -.01em; color: var(--text); }
.mk-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.mk-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-hero);
  box-shadow: var(--shadow-float); padding: 22px 20px 16px;
}
.mk-hero::before { /* the single signature glow, top-right, as in the app */
  content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127, 227, 212, .42), rgba(127, 227, 212, .12) 55%, transparent);
}
.mk-device { display: flex; align-items: center; gap: 8px; margin: 0 0 14px 4px; font-size: .9375rem; color: var(--text2); }
.mk-device .ico { width: 17px; height: 17px; color: var(--text3); }
.mk-device b { color: var(--text); font-weight: 650; }
.mk-purpose { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--text2); }
.mk-purpose .ico { color: var(--signature-stroke); width: 19px; height: 19px; }
.mk-name { font: 800 2.125rem/1.1 var(--font-display); letter-spacing: -.035em; margin: 6px 0 10px; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.chip .ico { width: 15px; height: 15px; stroke-width: 2.1; }
.chip-fits { color: var(--fits); background: color-mix(in srgb, var(--fits) 14%, var(--surface)); }
.chip-tight { color: var(--tight); background: color-mix(in srgb, var(--tight) 14%, var(--surface)); }
.chip-large { color: var(--too-large); background: color-mix(in srgb, var(--too-large) 14%, var(--surface)); }
.chip-storage { color: var(--tight); background: color-mix(in srgb, var(--tight) 14%, var(--surface)); }
.chip-cap { color: var(--text2); background: var(--fill); }
.chip-vision { color: var(--vision); background: color-mix(in srgb, var(--vision) 14%, var(--surface)); }
.chip-measured { color: var(--measured); background: color-mix(in srgb, var(--measured) 14%, var(--surface)); }
.chip-plain { color: var(--text3); background: transparent; padding-left: 0; }
.chip-pro { color: var(--vision); border: 1px solid currentColor; padding: 2px 6px; border-radius: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.mk-sentence { margin: 12px 0 14px; font-size: 1.0625rem; line-height: 1.4; color: var(--text2); }

/* the headroom bar: track = memory models can use; accent = the model; hatched signature = room left */
.headroom { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--fill); }
.headroom .need { background: var(--accent); }
.headroom .room {
  flex: 1;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 2px, transparent 2px 6px),
    color-mix(in srgb, var(--signature) 78%, var(--surface));
}
.mk-hero .headroom .need { width: 51.85%; } /* 2.8 of 5.4 GB */
.headroom-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .875rem; color: var(--text2); letter-spacing: 0; }
.headroom-labels b { color: var(--text); }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.mk-tile { background: var(--fill); border-radius: var(--r-tile); padding: 10px 12px 11px; }
.mk-tile strong { display: block; font: 750 1.25rem/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-tile span { display: block; font-size: .8125rem; color: var(--text2); margin-top: 2px; }
.mk-tile .missing { font-style: italic; color: var(--text3); }
.mk-btn { display: flex; justify-content: center; align-items: center; height: 48px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 620; font-size: 1.0625rem; }
.mk-link { display: block; text-align: center; padding: 12px 0 2px; font-weight: 600; color: var(--accent-text); }

/* pick rows */
.mk-picks { padding: 2px 0; }
.mk-pick { position: relative; padding: 14px 40px 14px 16px; }
.mk-pick + .mk-pick { border-top: 1px solid var(--hairline); }
.mk-pick .p-purpose { display: flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--accent-text); }
.mk-pick .p-purpose.vision { color: var(--vision); }
.mk-pick .p-purpose .ico { width: 16px; height: 16px; }
.mk-pick .p-name { font-weight: 620; margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.mk-pick .p-reason { font-size: .9375rem; color: var(--text2); line-height: 1.38; margin-top: 3px; }
.mk-pick .p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .8125rem; color: var(--text3); }
.mk-pick .chev { position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--text3); stroke-width: 2.4; }

/* ===== CHAPTERS ===== */
.chapter { padding: var(--section) 0 0; }
.chapter-head { display: grid; gap: 18px; max-width: 46rem; }
.chapter-grid { display: grid; gap: 48px; align-items: start; margin-top: 56px; }
@media (min-width: 940px) {
  .chapter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .chapter-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .chapter-grid.flip > :first-child { order: 2; }
}
.points { list-style: none; display: grid; gap: 26px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 14px; }
.points .ico { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.points h3 { font: 650 1.0625rem/1.35 var(--font); letter-spacing: -.015em; }
.points p { color: var(--text2); font-size: 1rem; line-height: 1.5; }

/* fit figure: same scale for every bar so overflow reads at a glance */
.fit-figure { margin: 0; }
.fit-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-hero); }
.fit-row + .fit-row { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.fit-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.fit-top h3 { font: 680 1.125rem/1.25 var(--font-display); letter-spacing: -.02em; }
.fit-top .on { display: block; font: 400 .875rem/1.4 var(--font); color: var(--text3); letter-spacing: 0; margin-top: 2px; }
.scale { position: relative; height: 22px; }
.scale .usable { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--fill); }
.scale .need { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.scale .room { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 2px, transparent 2px 6px), color-mix(in srgb, var(--signature) 78%, var(--surface)); }
.scale .over { position: absolute; top: 0; bottom: 0; border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--too-large) 55%, transparent) 0 3px, transparent 3px 7px); border: 1.5px solid var(--too-large); border-left: 0; }
.scale .limit { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.scale-labels { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .875rem; color: var(--text2); letter-spacing: 0; }
.scale-labels b { color: var(--text); font-variant-numeric: tabular-nums; }
.scale-labels .warn b { color: var(--too-large); }
/* bar geometry, in % of a shared 8 GB axis */
.s-a .usable { width: 67.5%; } .s-a .need { width: 35%; z-index: 1; } .s-a .room { left: 34%; width: 33.5%; } .s-a .limit { left: 67.5%; }
.s-b .usable { width: 67.5%; } .s-b .need { width: 67.5%; border-radius: 999px 0 0 999px; } .s-b .over { left: 67.5%; width: 21.25%; } .s-b .limit { left: 67.5%; }
.s-c .usable { width: 27.5%; } .s-c .need { width: 27.5%; border-radius: 999px 0 0 999px; } .s-c .over { left: 27.5%; width: 7.5%; } .s-c .limit { left: 27.5%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .8125rem; color: var(--text3); letter-spacing: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 10px; border-radius: 999px; }
.legend .k-usable { background: var(--fill); box-shadow: inset 0 0 0 1px var(--hairline); }
.legend .k-need { background: var(--accent); }
.legend .k-room { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 2px, transparent 2px 6px), color-mix(in srgb, var(--signature) 78%, var(--surface)); }
.legend .k-over { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--too-large) 55%, transparent) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1.5px var(--too-large); }
.legend .k-limit { width: 2px; height: 16px; border-radius: 2px; background: var(--text); }

/* verdict vocabulary: a typographic list, not cards */
.verdicts { list-style: none; display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--hairline); }
.verdicts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.verdicts .chip { justify-self: start; }
.verdicts p { color: var(--text2); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 520px) { .verdicts li { grid-template-columns: 1fr; } }

/* evidence + results */
.evidence-scene { margin: 0; width: 100%; max-width: 500px; justify-self: center; }
.evidence-stack { display: grid; gap: 16px; }
.mk-result { padding: 18px 18px 16px; }
.mk-result.independent { border-color: color-mix(in srgb, var(--measured) 55%, var(--hairline)); }
.mk-result .r-head { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.mk-result.independent .r-head { color: var(--measured); }
.mk-result .r-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: end; padding: 12px 0; }
.mk-result .r-line + .r-line { border-top: 1px solid var(--hairline); }
.mk-result .r-name { font-weight: 650; }
.mk-result .r-what { font-size: .8125rem; color: var(--text3); grid-column: 1; letter-spacing: 0; }
.mk-result .r-score { grid-row: span 2; text-align: right; font: 760 1.5rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-result .r-score small { display: block; margin-top: 4px; font: 500 .75rem/1.2 var(--font); color: var(--text3); letter-spacing: 0; }
.mk-result .meter { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--fill); margin-top: 6px; }
.mk-result .meter i { display: block; height: 100%; border-radius: inherit; background: var(--text3); }
.m-634 { width: 63.4%; } .m-774 { width: 77.4%; }
.mk-result .r-src { display: flex; gap: 8px; font-size: .75rem; line-height: 1.45; color: var(--text3); letter-spacing: 0; padding-top: 10px; border-top: 1px solid var(--hairline); }
.mk-result .r-src .ico { width: 14px; height: 14px; margin-top: 1px; }
.evidence-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-progress { padding: 16px 18px; }
.mk-progress .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mk-progress .row b { font-weight: 650; }
.mk-progress .track { height: 6px; border-radius: 999px; background: var(--fill); margin: 10px 0 8px; overflow: hidden; }
.mk-progress .track i { display: block; width: 62%; height: 100%; background: var(--accent); border-radius: inherit; }
.mk-progress .sub { font-size: .8125rem; color: var(--text3); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mk-progress .pause { font-size: .875rem; font-weight: 600; color: var(--accent-text); display: inline-flex; gap: 5px; align-items: center; }
.mk-progress .pause .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* chat */
.chat-scene { position: relative; margin: 0; }
.mk-chat { padding: 18px 16px 14px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 34px; box-shadow: var(--shadow-float); max-width: 460px; margin: 0 auto; }
.mk-chat .c-top { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 2px 0 14px; font-weight: 650; font-size: .9375rem; }
.mk-chat .c-top .chip { font-size: .75rem; padding: 3px 8px 3px 6px; }
.bubble { margin-left: auto; max-width: 82%; width: fit-content; padding: 10px 14px; background: var(--bubble); color: var(--on-bubble); border-radius: 22px 22px 6px 22px; font-size: 1rem; line-height: 1.4; }
.reply { padding: 16px 4px 6px; font-size: 1rem; line-height: 1.5; }
.reply p + p, .reply ol { margin-top: 10px; }
.reply ol { padding-left: 1.3em; }
.reply li + li { margin-top: 4px; }
.caret { display: inline-block; width: 9px; height: 1.05em; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--signature-stroke); }
.reply-meta { display: flex; align-items: center; gap: 8px; padding: 6px 4px 14px; font-size: .8125rem; color: var(--text3); letter-spacing: 0; }
.composer { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--hairline); box-shadow: 0 6px 20px -8px rgba(14,22,32,.25); }
.composer .plus, .composer .send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.composer .plus { background: var(--fill); color: var(--text2); }
.composer .send { background: var(--accent); color: var(--on-accent); }
.composer .plus .ico, .composer .send .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.composer .field { flex: 1; min-width: 0; color: var(--text3); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .meter { flex: none; font-size: .75rem; color: var(--text3); font-variant-numeric: tabular-nums; letter-spacing: 0; display: inline-flex; gap: 4px; align-items: center; }
.composer .meter .ico { width: 14px; height: 14px; }

/* ===== PRIVACY BAND (ink) ===== */
.ink {
  --surface: #131A21; --fill: #1F2831; --hairline: rgba(167, 178, 190, .2);
  --text: #EEF2F6; --text2: #A7B2BE; --text3: #95A2B0; --accent-text: #8DB0FF; --signature-stroke: #7FE3D4;
  --fits: #4ADE80; --too-large: #FF6B5E; --vision: #B79CFF;
  color-scheme: dark;
  margin-top: var(--section);
  padding: var(--section) 0 calc(var(--section) * .75);
  color: var(--text);
  background: linear-gradient(180deg, var(--ink-top), var(--ink-bottom));
  position: relative; overflow: hidden; isolation: isolate;
}
@media (prefers-contrast: more) { .ink { --text: #FFF; --text2: #C3CCD6; --text3: #A7B2BE; --hairline: rgba(167,178,190,.45); } }
.ink .chapter-head { max-width: 50rem; }
.flow { display: grid; gap: 20px; margin-top: 64px; }
@media (min-width: 980px) { .flow { grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1.15fr); gap: 0; align-items: stretch; } }
.keep-box {
  position: relative; padding: 28px clamp(20px, 3vw, 36px) 30px; border-radius: 36px;
  background: rgba(19, 26, 33, .72); border: 1px solid rgba(127, 227, 212, .35);
  box-shadow: 0 0 0 6px rgba(127, 227, 212, .05), 0 30px 80px -30px rgba(0,0,0,.6);
}
.keep-box h3, .exit h3 { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; }
.box-label { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 10px; }
.box-label .ico { width: 15px; height: 15px; }
.keep-box .box-label { color: var(--signature-stroke); }
.keep-sub { margin-top: 8px; color: var(--text2); font-size: .9375rem; }
.stays { list-style: none; display: grid; gap: 0; margin-top: 18px; }
.stays li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--hairline); color: var(--text2); line-height: 1.45; }
.stays li b { color: var(--text); font-weight: 600; }
.stays .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--signature-stroke); }
.keep-box { display: flex; flex-direction: column; }
.keep-art { display: block; width: 64%; max-width: 280px; margin: auto auto -31px; padding-top: 36px; overflow: visible; }
.keep-art .wall { fill: rgba(167, 190, 220, .10); }
.keep-art .tower { fill: rgba(220, 232, 246, .14); }
.keep-art .orb { fill: url(#mk-orb); }
.keep-art .halo { fill: url(#mk-halo); opacity: .6; }
@media (max-width: 979px) { .keep-art { width: 46%; } }
.wire { display: none; }
@media (min-width: 980px) {
  .wire { display: block; position: relative; }
  .wire svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .wire path { fill: none; stroke: rgba(167, 178, 190, .55); stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
}
.exits { display: grid; gap: 16px; align-content: center; }
.exit { padding: 22px 24px; border-radius: 26px; background: rgba(19, 26, 33, .55); border: 1px solid var(--hairline); }
.exit .when { margin-top: 4px; color: var(--text2); font-size: .9375rem; }
.exit dl { display: grid; gap: 10px; margin: 16px 0 0; }
.exit dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.exit dd { margin: 2px 0 0; color: var(--text2); font-size: .9375rem; line-height: 1.5; }
.exit dd b { color: var(--text); font-weight: 600; }
.exit .never { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: .875rem; color: var(--text2); }
.exit .never .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--too-large); }
.plan-split { display: grid; gap: 10px; margin-top: 4px; }
.plan-split p { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; font-size: .9375rem; color: var(--text2); line-height: 1.45; }
.plan-split p b { color: var(--text); }
@media (max-width: 420px) { .plan-split p { grid-template-columns: 1fr; gap: 0; } }
.flow-arrow { display: flex; justify-content: center; color: var(--text3); }
.flow-arrow .ico { width: 22px; height: 22px; }
@media (min-width: 980px) { .flow-arrow { display: none; } }
.ink-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; color: var(--text2); font-size: .9375rem; }

/* ===== PLANS ===== */
.tiers { display: grid; gap: 56px; margin-top: 64px; }
@media (min-width: 860px) {
  .tiers { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 0; }
  .tier { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .tier + .tier { border-left: 1px solid var(--hairline); padding-left: clamp(32px, 5vw, 72px); }
  .tier:first-child { padding-right: clamp(32px, 5vw, 72px); }
}
.tier h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.05; }
.tier .price { margin-top: 10px; color: var(--text2); font-size: 1.0625rem; max-width: 26rem; }
.tier ul { list-style: none; margin-top: 26px; border-top: 1px solid var(--hairline); }
.tier li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); line-height: 1.45; color: var(--text2); }
.tier li b { color: var(--text); font-weight: 620; }
.tier li .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--text3); }
.tier-pro li .ico { color: var(--accent-text); }
.tier-pro h3 .chip-pro { font-size: .75rem; padding: 3px 7px; }
.both { margin-top: 44px; display: flex; gap: 14px; align-items: flex-start; max-width: 52rem; padding-top: 22px; }
.both .ico { width: 22px; height: 22px; color: var(--signature-stroke); margin-top: 2px; }
.both p { color: var(--text2); }
.both b { color: var(--text); }

/* ===== GOOD TO KNOW ===== */
.notes { display: grid; gap: 32px 48px; margin-top: 48px; list-style: none; counter-reset: n; }
@media (min-width: 720px) { .notes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .notes { grid-template-columns: repeat(4, 1fr); } }
.notes li { counter-increment: n; border-top: 2px solid var(--text); padding-top: 16px; }
.notes li::before { content: counter(n, decimal-leading-zero); display: block; font: 600 .8125rem/1 var(--mono); color: var(--text3); margin-bottom: 14px; }
.notes h3 { font: 650 1.0625rem/1.35 var(--font); letter-spacing: -.015em; }
.notes p { margin-top: 6px; font-size: .9375rem; color: var(--text2); line-height: 1.5; }

/* ===== CLOSING ===== */
.closing { text-align: center; padding: var(--section) 0 calc(var(--section) * .8); position: relative; }
.closing .app-icon { width: 112px; height: 112px; margin: 0 auto 34px; border-radius: 26px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 60px -20px rgba(10, 36, 71, .55), 0 0 90px 10px rgba(127, 227, 212, .22); }
.closing .lede { margin: 18px auto 30px; }
.closing .cta-row { justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 48px; font-size: .9375rem; color: var(--text2); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; } }
.site-footer .brand { display: inline-flex; color: var(--text); padding: 0; }
.site-footer .brand:hover { text-decoration: none; }
.foot-brand p { margin-top: 14px; max-width: 22rem; line-height: 1.5; }
.site-footer h2 { font: 600 .8125rem/1.2 var(--font); letter-spacing: 0; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer a { color: var(--text2); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.foot-base a { display: inline; padding: 0; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: .8125rem; color: var(--text3); letter-spacing: 0; }

/* ===== MOTION (signature moment: the scan reveal) ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .mk-hero .headroom .need { transform-origin: left; animation: fill .9s cubic-bezier(.2, .8, .2, 1) .35s both; }
  .mk-hero .headroom .room { animation: fade .5s ease-out 1.15s both; }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .05s; } .hero-copy > :nth-child(3) { animation-delay: .1s; }
  .hero-copy > :nth-child(4) { animation-delay: .15s; } .hero-copy > :nth-child(5) { animation-delay: .2s; }
  .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================================
   DOCUMENT PAGES (privacy, terms, support, licenses, 404)
   Long-form reading: 17–18 px text, ~68 characters per line, calm rhythm.
   ===================================================================== */
.doc { padding: clamp(40px, 7vw, 88px) 0 var(--section); }
.doc-grid { display: grid; gap: 40px; }
@media (min-width: 1080px) { .doc-grid { grid-template-columns: 15rem minmax(0, 42rem); gap: 80px; justify-content: center; } }
.doc-head { max-width: 42rem; padding-bottom: 8px; }
@media (min-width: 1080px) {
  .doc-grid { row-gap: 56px; }
  .doc-head { grid-column: 2; grid-row: 1; }
  .doc-grid > .toc { grid-column: 1; grid-row: 2; }
  .doc-grid > .prose { grid-column: 2; grid-row: 2; }
  .doc-grid.no-toc { grid-template-columns: minmax(0, 42rem); }
  .doc-grid.no-toc > * { grid-column: 1; }
}
.doc-head .eyebrow { margin-bottom: 16px; }
.doc-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 780; line-height: 1.04; letter-spacing: -.038em; }
.doc-head .lede { margin-top: 18px; }
.doc-head .stamp { margin-top: 18px; font-size: .9375rem; color: var(--text3); }
.toc { font-size: .9375rem; }
@media (min-width: 1080px) { .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; } }
.toc h2 { font: 600 .8125rem/1.2 var(--font); color: var(--text3); letter-spacing: 0; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--hairline); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--text3); }
@media (max-width: 1079px) {
  .toc { padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); }
  .toc ol { border-left: 0; columns: 2 12rem; column-gap: 24px; }
  .toc a { padding-left: 0; border-left: 0; }
}
.prose { max-width: 42rem; font-size: 1.0625rem; line-height: 1.68; color: var(--text); }
@media (min-width: 1080px) { .prose { font-size: 1.125rem; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; font-weight: 720; letter-spacing: -.025em; line-height: 1.2; margin-top: 2.6em; scroll-margin-top: 88px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 660; letter-spacing: -.015em; line-height: 1.3; margin-top: 2em; scroll-margin-top: 88px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text3); }
.prose strong { font-weight: 650; }
.prose .summary { padding: 4px 0 4px 22px; border-left: 3px solid var(--signature-stroke); }
.prose .summary li + li { margin-top: .55em; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--fill); padding: .1em .35em; border-radius: 5px; }
.destinations { display: grid; gap: 14px; }
.destination { padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); font-size: 1rem; line-height: 1.55; }
.destination h3 { margin: 0; font-size: 1.0625rem; }
.destination dl { display: grid; gap: 12px; margin: 12px 0 0; }
.destination dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }
.destination dd { margin: 3px 0 0; color: var(--text2); }
.callout { padding: 18px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); }
.prose .lede-p { font-size: 1.1875rem; color: var(--text2); line-height: 1.55; }

/* Owner notes: subtle editorial annotations; */
.todo {
  font-size: .84em; line-height: 1.5; font-weight: 500; color: var(--note-text);
  background: var(--note-bg); border-radius: 4px; padding: .08em .35em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-decoration: underline dotted var(--note-line); text-underline-offset: .25em;
}
.draft-note {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 18px; border-radius: 16px;
  border: 1px dashed var(--note-line); color: var(--note-text); background: var(--note-bg); font-size: .9375rem; line-height: 1.55;
}
.draft-note .ico { width: 18px; height: 18px; margin-top: 3px; grid-row: span 3; }
.draft-note p + p { margin-top: 6px; }
.draft-note .todo { background: none; padding: 0; font-size: 1em; }
.plan { white-space: nowrap; }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 640 1.0625rem/1.4 var(--font); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: 7px 4px 0 0; border-right: 2px solid var(--text3); border-bottom: 2px solid var(--text3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq details > :not(summary) { padding-bottom: 20px; color: var(--text2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
.contact-card .big { font: 720 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -.025em; }
.contact-card .big a { text-decoration: none; }
.contact-card .big a:hover { text-decoration: underline; }

/* licenses */
.license-list { list-style: none; padding: 0 !important; }
.license-list > li { padding: 22px 0; border-top: 1px solid var(--hairline); }
.license-list > li + li { margin-top: 0 !important; }
.license-list h3 { margin-top: 0 !important; }
.license-list p { margin-top: .4em; color: var(--text2); font-size: 1rem; }
.license-list details { margin-top: 10px; }
.license-list summary { cursor: pointer; font-size: .9375rem; font-weight: 600; color: var(--accent-text); }
pre.license { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--code); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; font: .78rem/1.5 var(--mono); max-height: 26rem; overflow: auto; margin: 12px 0 0; color: var(--text); }

/* 404 */
.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 80px 0; }
.lost .app-icon { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 17px; }

@media print {
  .site-header, .skip, .toc, .site-footer .foot-grid { display: none; }
  body { background: #fff; color: #000; }
  .ink { background: none; color: #000; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.prose .sec-num { color: var(--text3); font-variant-numeric: tabular-nums; }
.families h4 { font: 650 1.0625rem/1.35 var(--font); letter-spacing: -.015em; }
.families p.meta { font-size: .875rem; }
.prose > .meta + .families { margin-top: .5em; }
.prose ul.summary { list-style: none; padding-left: 22px; }
@media (max-width: 1079px) { .doc-grid > * { width: 100%; max-width: 42rem; margin-left: auto; margin-right: auto; } }
/* tablet: the stage becomes a wide band with the card centered in it */
@media (min-width: 600px) and (max-width: 939px) {
  .scene { max-width: none; }
  .stage { padding: 40px 32px 44px; }
  .stage .mk-hero, .stage .mk-device { max-width: 440px; margin-left: auto; margin-right: auto; }
  .stage .mk-device { padding-left: 4px; }
}
