/* Ostrae — ostrae.tech
   "Follow the thread": the Ostrae ribbon travels into a browser, and the page scrolls through one tab per product.
   Story layout: html.js + wide screen + motion allowed (see the @media block near the end). Everything else is a stacked page. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.6%;
  ascent-override: 102.9%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --ink: #17263b;
  --muted: #52637b;
  --line: #dce4ef;
  --line-strong: #c6d2e3;
  --primary: #2455bf;
  --btn: #2a5cf0;
  --btn-hover: #2050dc;
  --btn-active: #1b45c2;
  --violet: #6a55e0;
  --accent-soft: #e8eeff;
  --thread-a: #2a5cf0;
  --thread-b: #8b7cf6;
  --quiet-bg: #ffffff;
  --quiet-line: #ccd7e6;
  --focus: #2a5cf0;
  --skel: #d3dcea;
  --skel-soft: #e5ebf4;
  --skel-strong: #b4c2d8;
  --page: #ffffff;
  --dot: #d2dbe9;
  --glow-a: rgba(42, 92, 240, .12);
  --glow-b: rgba(124, 108, 240, .12);
  --shadow: 0 1px 2px rgba(23, 38, 59, .05), 0 10px 28px -14px rgba(23, 38, 59, .18);
  --shadow-lg: 0 1px 2px rgba(23, 38, 59, .04), 0 30px 60px -28px rgba(23, 38, 59, .28);
  /* device + browser */
  --chrome: #e6ebf3;
  --chrome-ink: #3d4d66;
  --tab-hover: rgba(255, 255, 255, .55);
  --bezel: linear-gradient(180deg, #252e40, #141a27);
  --bezel-rim: #384359;
  --stand: linear-gradient(90deg, #b9c3d1, #e8edf4 48%, #c9d2de 60%, #b3bdcc);
  --device-shadow: 0 2px 4px rgba(23, 38, 59, .08), 0 50px 90px -40px rgba(23, 38, 59, .5);
  /* Codae miniature (Codae's own light tokens) */
  --cz-bg: #f3f6fc;
  --cz-surface: #ffffff;
  --cz-soft: #f7f9fe;
  --cz-line: #dbe3f1;
  --cz-line-strong: #c6d2e8;
  --cz-ink: #0f2147;
  --cz-ink-2: #33466a;
  --cz-muted: #56688a;
  --cz-accent: #285bf2;
  --cz-link: #2453d6;
  --cz-tint: #ebf1ff;
  --cz-streak: #e2720f;
  --cz-success: #17734f;
  --cz-tile: #ffffff;
  --cz-tile-line: #dbe3f1;
  --cz-type: #267f99;
  --cz-fn: #795e26;
  --cz-str: #a31515;
  --sans: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --inset: clamp(8px, 1.6vw, 20px);
  --header-h: 76px;
}
:root[data-appearance="dark"] {
  color-scheme: dark;
  --bg: #090f1a;
  --bg-2: #0c1422;
  --surface: #101a2b;
  --surface-2: #152137;
  --ink: #f0f4fc;
  --muted: #a9b8cf;
  --line: #22314a;
  --line-strong: #33476a;
  --primary: #a2baff;
  --btn: #2a5cf0;
  --btn-hover: #3a68f3;
  --btn-active: #2352dc;
  --violet: #c4b5ff;
  --accent-soft: #18264a;
  --thread-a: #7f9dff;
  --thread-b: #b4a6ff;
  --quiet-bg: #101a2b;
  --quiet-line: #33476a;
  --focus: #a2baff;
  --skel: #2c3b58;
  --skel-soft: #1f2c44;
  --skel-strong: #3c4f72;
  --page: #0e1727;
  --dot: #1f2c42;
  --glow-a: rgba(42, 92, 240, .2);
  --glow-b: rgba(124, 108, 240, .18);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, .3), 0 30px 60px -28px rgba(0, 0, 0, .75);
  --chrome: #0b1220;
  --chrome-ink: #b8c5da;
  --tab-hover: rgba(255, 255, 255, .05);
  --bezel: linear-gradient(180deg, #1b2335, #0b101b);
  --bezel-rim: #2f3b55;
  --stand: linear-gradient(90deg, #172033, #2c384f 48%, #222d42 60%, #151d2e);
  --device-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 50px 100px -40px rgba(0, 0, 0, .9);
  --cz-bg: #0a101d;
  --cz-surface: #121a2b;
  --cz-soft: #0f1626;
  --cz-line: #243049;
  --cz-line-strong: #33415f;
  --cz-ink: #edf2fd;
  --cz-ink-2: #c5cfe3;
  --cz-muted: #9daac4;
  --cz-accent: #3563ee;
  --cz-link: #9cb8ff;
  --cz-tint: #17264a;
  --cz-streak: #ffa94d;
  --cz-success: #86dcb8;
  --cz-tile: #eef2fb;
  --cz-tile-line: transparent;
  --cz-type: #4ec9b0;
  --cz-fn: #dcdcaa;
  --cz-str: #ce9178;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 750; }
code, samp, kbd { font-family: var(--mono); }
::selection { background: rgba(42, 92, 240, .2); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 16px; top: 12px; z-index: 50;
  padding: 12px 18px; border-radius: 12px;
  background: var(--btn); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; outline-color: var(--ink); }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(46px, 6.6vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.048em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(31px, 4.3vw, 56px);
  font-weight: 790;
  line-height: 1.04;
  letter-spacing: -.037em;
  text-wrap: balance;
}
h3 {
  font-size: 17.5px;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -.012em;
}
.lead {
  font-size: clamp(17.5px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.lead a, .pane p a, .spec a, .faq-list a {
  color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
}
.kicker a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-transform: none; letter-spacing: .02em; }
.kicker a:hover { text-decoration-color: currentColor; }
.kicker-line { width: 28px; height: 1.5px; background: currentColor; }
.k-num {
  display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding-inline: 6px;
  border: 1px solid currentColor; border-radius: 8px; font-size: 11.5px; letter-spacing: .04em;
}
.k-mark { width: 30px; height: 30px; margin-right: 2px; object-fit: contain; }
.k-mark-mail { object-fit: cover; width: 40px; }
.k-mark-wide { width: 44px; height: 23px; }
.grad {
  background: linear-gradient(100deg, var(--primary) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: .06em;
}
.accent { color: var(--primary); }

/* ---------- Buttons (crisp, family style: solid fill, 12px radius, no glow) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.005em; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn .ico { width: 1em; height: 1em; transition: transform .2s ease; }
.btn-primary {
  background: var(--btn); border-color: var(--btn); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(16, 36, 94, .18);
}
.btn-primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-primary:hover .ico { transform: translate(2px, -2px); }
.btn-primary:active { background: var(--btn-active); border-color: var(--btn-active); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.btn-primary:focus-visible { outline-offset: 2px; }
.btn-quiet { background: var(--quiet-bg); color: var(--ink); border-color: var(--quiet-line); box-shadow: 0 1px 2px rgba(23, 38, 59, .04); }
.btn-quiet:hover { border-color: var(--primary); color: var(--primary); }
.btn-quiet:hover .ico { transform: translateY(2px); }
.btn-quiet[href^="http"]:hover .ico { transform: translate(2px, -2px); }
.btn-quiet:active { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 790; letter-spacing: -.04em; text-decoration: none; color: var(--ink);
  min-height: 44px;
}
.brand img { width: 46px; height: 24px; }
.nav-sections { display: flex; gap: 2px; margin-inline: auto; }
.nav-sections a, .signin {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 10px;
  font-size: 15px; font-weight: 620; color: var(--muted); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-sections a:hover, .signin:hover { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu { position: relative; display: none; }
.menu summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--quiet-line); border-radius: 12px; background: var(--quiet-bg);
  font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--primary); color: var(--primary); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  display: grid; width: min(300px, calc(100vw - 2 * var(--pad)));
  padding: 8px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.menu-panel a {
  display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 11px;
  font-weight: 650; text-decoration: none;
}
.menu-panel a:hover { background: var(--surface-2); color: var(--primary); }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }
.menu-panel .menu-cta { background: var(--btn); color: #fff; justify-content: center; margin-top: 4px; }
.menu-panel .menu-cta:hover { background: var(--btn-hover); color: #fff; }

/* ---------- Intro (hero) ---------- */
.story { position: relative; }
.intro {
  position: relative; display: grid; justify-items: center; text-align: center;
  padding: calc(var(--header-h) + clamp(20px, 5vw, 64px)) var(--pad) clamp(56px, 8vw, 104px);
}
.intro-ribbon { width: 300px; height: auto; margin-bottom: clamp(18px, 3vw, 30px); }
.intro-copy { display: grid; justify-items: center; gap: 24px; max-width: 1080px; }
.intro h1 { margin-top: 2px; }
.h1-a, .h1-b { display: inline-block; }
.hero-lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.hero-lead strong { color: var(--ink); font-weight: 720; }
.intro .actions { justify-content: center; margin-top: 2px; }
.status {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--muted);
}
.status span { white-space: nowrap; }
.status span:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--muted); }
.cue, .thread, .stand, .b-scroll, .sp-slot, .sp-thread, .b-dots, .b-toolbar, .tab-ind { display: none; }
.stop-a { stop-color: var(--thread-a); }
.stop-b { stop-color: var(--thread-b); }

/* ---------- Product browser: stacked page by default ---------- */
.device, .screen { display: contents; }
.browser { position: relative; }

/* Sticky product tabs */
.b-chrome {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-block: 1px solid var(--line);
}
.b-tabrow { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.b-tabs {
  position: relative; display: flex; gap: 4px; padding-block: 8px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.b-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.tab img { width: 22px; height: 22px; object-fit: contain; }
.tab .tab-mail { object-fit: cover; width: 28px; }
.tab .tab-wide { width: 30px; height: 16px; }
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-current="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(23, 38, 59, .05); }

/* ---------- Panes ---------- */
.pane { position: relative; scroll-margin-top: 72px; padding-block: clamp(56px, 7vw, 96px); }
.pane-in { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.pane-head { display: grid; gap: 18px; justify-items: start; max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 52px); }
.pane-head h2 { font-size: clamp(30px, 3.6vw, 50px); margin-top: 4px; }
.pane-head .actions { margin-top: 6px; }
.pane .mock { margin-bottom: clamp(40px, 5vw, 60px); }
.pane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(28px, 3.5vw, 48px); }
.pane-grid > div { display: grid; gap: 12px; align-content: start; }
.pane-grid > div > p:not(.note) { color: var(--muted); }
.pane-grid p, .pane-grid li, .acc-grid p { font-size: 16.5px; }
.pane-block { margin-top: clamp(48px, 6vw, 72px); }
.pane-block > h3 { margin-bottom: 16px; }
.pane-codae .pane-grid > div:nth-child(2) { order: 0; }

/* Start page: the family list */
.pane-start { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.sp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(40px, 5vw, 80px); align-items: start; }
.sp-intro { display: grid; gap: 18px; justify-items: start; }
.sp-intro h2 { font-size: clamp(31px, 3.8vw, 52px); }
.router li:last-child a { border-bottom: 1px solid var(--line); }
.router a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: center;
  column-gap: 18px; padding: 16px 12px 16px 6px;
  border-top: 1px solid var(--line); text-decoration: none; border-radius: 4px;
  transition: background-color .18s ease;
}
.router a > span:not(.r-mark) { grid-column: 2; }
.r-mark {
  grid-column: 1; grid-row: 1 / span 4; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.r-mark img { width: 36px; height: 36px; object-fit: contain; }
.r-mark-mail img { width: 44px; object-fit: cover; }
.r-mark-wide img { width: 42px; height: 22px; }
.router a:hover { background: var(--surface); }
.router a:hover .r-name { color: var(--primary); }
.router a:hover .ico { transform: translateX(4px); color: var(--primary); }
.r-num { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--primary); line-height: 1.3; }
.r-name { font-size: 20px; font-weight: 780; letter-spacing: -.025em; line-height: 1.25; transition: color .18s ease; }
.r-what { font-weight: 560; line-height: 1.45; margin-top: 2px; }
.r-who { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.router .ico { grid-column: 3; grid-row: 1 / span 4; color: var(--muted); transition: transform .2s ease, color .2s ease; }

/* Lists */
.checks, .dashes { display: grid; gap: 10px; }
.checks li, .dashes li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.dashes li { color: var(--muted); }
.dashes li::before {
  content: ""; position: absolute; left: 3px; top: .8em; width: 12px; height: 2px; border-radius: 2px;
  background: var(--line-strong);
}
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding-left: 46px; counter-increment: step; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--primary);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.note {
  padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-strong);
  font-size: 15px; color: var(--muted);
}
.moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; counter-reset: move; }
.moves li {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 0 0; counter-increment: move;
  border-top: 2px solid var(--line);
}
.moves li::before {
  content: "0" counter(move); font-family: var(--mono); font-size: 12px; color: var(--primary); letter-spacing: .06em;
}
.moves li::after {
  content: ""; position: absolute; left: 0; top: -2px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--thread-a), var(--thread-b));
}
.moves b { font-size: 16px; }
.moves span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.honest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 60px); }
.honest-col { padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.honest-col h3 { margin-bottom: 14px; }
.honest-next { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* ---------- Mocks (shared) ---------- */
.mock {
  margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.mock figcaption {
  padding: 12px 18px; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.mock figcaption code { font-size: .95em; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--skel); }
.bar { display: block; height: 7px; border-radius: 4px; background: var(--skel); }
.bar.soft { background: var(--skel-soft); }
.bar.strong { background: var(--skel-strong); height: 10px; }
.w20 { width: 20%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; }
.w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }

/* ---------- Codae editor miniature (mirrors codae.ostrae.tech/app) ---------- */
.cz { container-type: inline-size; background: var(--cz-surface); color: var(--cz-ink); border-color: var(--cz-line); }
.cz-app { font-size: 12.5px; line-height: 1.45; }
.cz .ico { width: 13px; height: 13px; stroke-width: 2; }
.cz-top {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px;
  border-bottom: 1px solid var(--cz-line); background: var(--cz-surface); white-space: nowrap;
}
.cz-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; letter-spacing: -.045em; }
.cz-brand img { width: 24px; height: 24px; }
.cz-nav { display: flex; align-self: stretch; gap: 2px; margin-left: 8px; }
.cz-nav > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; font-weight: 600; color: var(--cz-muted); }
.cz-nav > span.is-on { color: var(--cz-link); box-shadow: inset 0 -2px 0 var(--cz-accent); }
.cz-prog { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; font: 500 11px var(--mono); color: var(--cz-muted); }
.cz-prog i { width: 64px; height: 4px; border-radius: 4px; background: var(--cz-line); }
.cz-pct { color: var(--cz-link); }
.cz-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: var(--cz-soft); border: 1px solid var(--cz-line); font: 600 11px var(--mono); color: var(--cz-ink-2); }
.cz-streak .ico { color: var(--cz-streak); }
.cz-split { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
.cz-lesson { display: flex; flex-direction: column; border-right: 1px solid var(--cz-line); background: var(--cz-surface); }
.cz-head { display: grid; gap: 2px; padding: 14px 18px 12px; border-bottom: 1px solid var(--cz-line); }
.cz-tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 4px; font: 600 11.5px var(--mono); color: var(--cz-link); }
.cz-tag::before { content: ""; width: 15px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.cz-title { font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.cz-meta { font: 600 11px var(--mono); color: var(--cz-muted); }
.cz-chapter { display: flex; align-items: center; gap: 9px; margin-top: 9px; font: 600 10.5px var(--mono); color: var(--cz-muted); white-space: nowrap; }
.cz-chapter > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.cz-chapter b { font-weight: 600; color: var(--cz-ink-2); }
.cz-dots { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.cz-dots i { width: 6px; height: 6px; border-radius: 2px; background: var(--cz-line-strong); }
.cz-dots i.is-cur { width: 16px; background: var(--cz-accent); }
.cz-body { display: grid; gap: 11px; align-content: start; padding: 14px 18px 16px; color: var(--cz-ink-2); }
.cz-obj { padding-left: 10px; border-left: 2px solid var(--cz-line-strong); font-weight: 650; color: var(--cz-ink); }
.cz-task {
  position: relative; display: grid; gap: 6px; padding: 12px 14px 12px 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--cz-accent) 32%, var(--cz-line));
  background: color-mix(in srgb, var(--cz-accent) 5%, var(--cz-surface));
}
.cz-task::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cz-accent); }
.cz-task-t { font: 700 10.5px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--cz-link); }
.cz-reqs { display: grid; gap: 3px; padding-left: 16px; }
.cz-reqs > span { position: relative; }
.cz-reqs > span::before { content: ""; position: absolute; left: -14px; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--cz-accent) 55%, var(--cz-surface)); }
.cz-store { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--cz-link); }
.cz-store::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cz-success); }
.cz-code { display: flex; flex-direction: column; min-width: 0; background: var(--cz-surface); }
.cz-actions { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--cz-line); background: var(--cz-soft); }
.cz-xp { margin-right: auto; padding: 2px 8px; border-radius: 7px; background: var(--cz-tint); font: 600 11px var(--mono); color: var(--cz-link); }
.cz-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 0 13px; border-radius: 999px; font-weight: 650; font-size: 12px; white-space: nowrap; }
.cz-save { background: var(--cz-tint); color: var(--cz-link); border: 1px solid color-mix(in srgb, var(--cz-accent) 22%, var(--cz-line)); }
.cz-run { background: var(--cz-accent); color: #fff; }
.cz-files { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--cz-line); }
.cz-file, .cz-filesbtn { padding: 3px 11px; border-radius: 999px; background: var(--cz-tint); color: var(--cz-link); font: 600 11px var(--mono); }
.cz-filesbtn { margin-left: auto; font-family: var(--sans); font-weight: 650; }
.cz-tools { display: flex; align-items: center; gap: 3px; overflow: hidden; padding: 6px 10px; border-bottom: 1px solid var(--cz-line); font-size: 11.5px; color: var(--cz-muted); white-space: nowrap; }
.cz-fname { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font: 500 11.5px var(--mono); color: var(--cz-ink-2); }
.cz-fname small { font-family: var(--sans); font-size: 10.5px; color: var(--cz-muted); }
.cz-tool { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; }
.cz-tool.is-on { background: var(--cz-tint); color: var(--cz-link); }
.cz-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--cz-line); background: var(--cz-soft); }
.cz-ql { margin-right: 3px; font: 600 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--cz-muted); }
.cz-quick kbd {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px;
  border: 1px solid var(--cz-line-strong); border-radius: 6px; background: var(--cz-surface);
  box-shadow: 0 1px 0 var(--cz-line); font-size: 11px; font-weight: 600; color: var(--cz-ink);
}
.cz-editor { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; flex: 1; min-height: 116px; padding: 10px 0; font: 12.5px/1.8 var(--mono); }
.cz-ln { padding-right: 12px; text-align: right; color: var(--cz-muted); }
.cz-editor code { white-space: nowrap; overflow: hidden; text-overflow: clip; padding-left: 4px; }
.cz-cur { position: relative; background: color-mix(in srgb, var(--cz-accent) 6%, transparent); }
.cz-cur::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1.5px; background: var(--cz-ink); }
.t-type { color: var(--cz-type); }
.t-fn { color: var(--cz-fn); }
.t-str { color: var(--cz-str); }
.cz-status { display: flex; align-items: center; gap: 12px; padding: 5px 12px; border-block: 1px solid var(--cz-line); font: 500 10.5px var(--mono); color: var(--cz-muted); white-space: nowrap; }
.cz-keys { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.cz-status kbd { padding: 1px 5px; border: 1px solid var(--cz-line-strong); border-radius: 4px; background: var(--cz-surface); font-size: 10px; color: var(--cz-ink-2); }
.cz-term { display: grid; background: var(--cz-surface); }
.cz-ttabs { display: flex; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--cz-line); }
.cz-ttabs > span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-weight: 650; font-size: 12px; color: var(--cz-muted); }
.cz-ttabs > span.is-on { color: var(--cz-ink); box-shadow: inset 0 -2px 0 var(--cz-accent); }
.cz-out { display: block; padding: 12px 16px 16px; font-size: 12.5px; color: var(--cz-ink); }
@container (max-width: 760px) {
  .cz-nav > span:not(.is-on) { display: none; }
  .cz-tools .cz-tool:last-child { display: none; }
  .cz-prog i { display: none; }
}
@container (max-width: 560px) {
  .cz-split { grid-template-columns: minmax(0, 1fr); }
  .cz-lesson { border-right: 0; border-bottom: 1px solid var(--cz-line); }
  .cz-prog, .cz-nav { display: none; }
  .cz-pill { margin-left: auto; }
  .cz-pill + .cz-pill { margin-left: 0; }
  .cz-tools .cz-tool:not(.is-on) { display: none; }
  .cz-body .cz-p:first-of-type { display: none; }
}

/* ---------- Codae course cards (mirrors the Codae catalog) ---------- */
.cc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.cc-count { font: 500 13px var(--mono); color: var(--muted); }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 16px; }
.cc {
  --course: #285bf2;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px; padding: 20px;
  border-radius: 20px; border: 1px solid var(--cz-line); background: var(--cz-surface); color: var(--cz-ink);
  box-shadow: 0 1px 2px rgba(15, 33, 71, .05), 0 8px 24px -14px rgba(15, 33, 71, .22);
}
.cc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 120px at 0% 0%, color-mix(in srgb, var(--course) 16%, transparent), transparent 70%);
}
.cc::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--course); }
.cc[data-course="csharp"] { --course: #8e44c9; }
.cc[data-course="html"] { --course: #e4572e; }
.cc[data-course="css"] { --course: #2a7de1; }
.cc[data-course="javascript"] { --course: #d9b400; }
.cc[data-course="python"] { --course: #3776ab; }
.cc[data-course="git"] { --course: #f05033; }
.cc[data-course="design"] { --course: #7c5cff; }
.cc[data-course="gsap"] { --course: #0ac95f; }
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cc-tile {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px;
  background: var(--cz-tile); border: 1px solid var(--cz-tile-line);
  box-shadow: 0 1px 0 #fff inset, 0 10px 22px -16px var(--course);
}
.cc-tile img { width: 28px; height: 28px; }
.cc-tile-wide img { width: 40px; height: auto; }
.cc-kind { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.cc-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--cz-tint); color: var(--cz-link); font: 600 11.5px var(--mono); white-space: nowrap; }
.cc-level { font: 500 11.5px var(--mono); color: var(--cz-muted); }
.cc h4 { font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.cc p { font-size: 14px; line-height: 1.55; color: var(--cz-ink-2); }
.cc .cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 4px; font: 500 12px var(--mono); color: var(--cz-muted); }
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--course); opacity: .85; }
.cc-more { margin-top: 18px; }
.cc-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cc-more .ico { width: 1em; height: 1em; }

/* Ostrae.email inbox skeleton */
.mock-mail { container-type: inline-size; }
.mm-app {
  display: grid; grid-template-columns: 31% 35% minmax(0, 1fr); min-height: 330px;
  font-size: 12.5px; line-height: 1.3;
}
.mm-side { display: grid; align-content: start; gap: 3px; padding: 12px 10px; border-right: 1px solid var(--line); }
.mm-new {
  margin-bottom: 8px; padding: 9px 10px; border-radius: 9px; background: var(--btn); color: #fff; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-folder { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-weight: 560; }
.mm-folder .ico { width: 14px; height: 14px; }
.mm-folder.is-active { background: var(--accent-soft); color: var(--primary); font-weight: 720; }
.mm-list { display: grid; align-content: start; border-right: 1px solid var(--line); }
.mm-search {
  display: flex; align-items: center; gap: 6px; margin: 10px; padding: 7px 9px; border-radius: 8px;
  background: var(--surface-2); color: var(--muted);
}
.mm-search .ico { width: 13px; height: 13px; }
.mm-row { position: relative; display: grid; gap: 7px; padding: 13px 12px 13px 24px; border-top: 1px solid var(--line); }
.mm-row.is-unread::before {
  content: ""; position: absolute; left: 11px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--btn);
}
.mm-row.is-open { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--btn); }
.mm-read { display: grid; align-content: start; gap: 11px; padding: 12px 16px 16px; }
.mm-tools { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mm-tools .ico { width: 15px; height: 15px; }
.mm-reply {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 9px; border-radius: 8px;
  background: var(--accent-soft); color: var(--primary); font-weight: 720; font-size: 11.5px;
}
.mm-reply .ico { width: 13px; height: 13px; }
.mm-from { display: flex; align-items: center; gap: 8px; }
.mm-from .bar { flex: 1; max-width: 45%; }
.avatar { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.mm-mica {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 4px 11px 4px 5px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--violet); font-weight: 720; font-size: 12px;
}
.mm-mica img { width: 20px; height: 20px; }
@container (min-width: 800px) {
  .mm-app { grid-template-columns: 210px minmax(0, .9fr) minmax(0, 1.1fr); min-height: 360px; font-size: 13px; }
  .mm-side { padding: 14px 12px; }
  .mm-row { padding-block: 15px; }
}
@container (max-width: 470px) {
  .mm-app { grid-template-columns: 40% minmax(0, 1fr); }
  .mm-read { display: none; }
  .mm-list { border-right: 0; }
}
@container (max-width: 300px) {
  .mm-app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mm-side { display: none; }
}

/* Layrae canvas */
.mock-canvas { container-type: inline-size; }
.lc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.lc-bps { display: inline-flex; gap: 4px; }
.lc-bps > span { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 8px; color: var(--muted); }
.lc-bps > span.is-on { background: var(--accent-soft); color: var(--primary); }
.lc-bps .ico { width: 16px; height: 16px; }
.lc-right { display: inline-flex; gap: 6px; }
.lc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px;
  border: 1px solid var(--line); font-size: 12.5px; font-weight: 720; white-space: nowrap;
}
.lc-chip .ico { width: 13px; height: 13px; }
.lc-export { background: var(--btn); border-color: var(--btn); color: #fff; }
.lc-stage {
  position: relative; padding: 68px 30px 82px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 16px 16px;
}
.lc-page {
  display: grid; gap: 22px; padding: 14px 18px 24px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--page); box-shadow: var(--shadow);
}
.lc-nav { display: flex; align-items: center; gap: 12px; }
.lc-nav > .bar { flex: none; width: 52px; }
.lc-links { display: flex; gap: 8px; margin-left: auto; }
.lc-links .bar { width: 26px; height: 5px; }
.lc-pill { display: block; width: 48px; height: 18px; border-radius: 6px; background: var(--ink); }
.lc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: center; }
.lc-copy { display: grid; gap: 8px; }
.bar.h-xl { height: 14px; border-radius: 5px; }
.bar.accentbar { height: 5px; background: linear-gradient(90deg, var(--thread-a), var(--thread-b)); }
.lc-btn { display: block; width: 74px; height: 22px; margin-top: 6px; border-radius: 7px; background: var(--btn); }
.lc-img {
  display: grid; place-items: center; min-height: 118px; border-radius: 10px;
  background: var(--accent-soft); color: var(--primary);
}
.lc-img .ico { width: 24px; height: 24px; opacity: .7; }
.lc-anim {
  position: absolute; right: 14px; top: 12px;
  display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); line-height: 1.25;
}
.lc-anim > .ico { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--accent-soft); color: var(--primary); }
.lc-anim b { display: block; font-size: 12.5px; }
.lc-anim small { display: block; font-size: 11px; color: var(--muted); }
.lc-prompt {
  position: absolute; left: 30px; right: 30px; bottom: 18px;
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  font-size: 13px; color: var(--muted);
}
.lc-prompt .ico { color: var(--violet); }
@container (max-width: 420px) {
  .lc-stage { padding: 62px 14px 74px; }
  .lc-prompt { left: 14px; right: 14px; }
  .lc-anim { right: 10px; top: 8px; }
  .lc-hero { grid-template-columns: minmax(0, 1fr); }
  .lc-img { min-height: 64px; }
  .lc-links { display: none; }
  .lc-chip:not(.lc-export) { display: none; }
}

/* Account security panel */
.mock-account { container-type: inline-size; }
.ma-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ma-head img { width: 40px; height: 21px; }
.ma-head b { font-size: 15.5px; }
.ma-head span { margin-left: auto; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ma-rows li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
}
.ma-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--primary); }
.ma-txt b { display: block; font-size: 15px; line-height: 1.3; }
.ma-txt small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ma-act {
  padding: 6px 12px; border-radius: 9px; border: 1px solid var(--quiet-line);
  font-size: 13px; font-weight: 720; white-space: nowrap;
}
.ma-products { display: grid; gap: 10px; padding: 16px 20px 20px; }
.ma-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ma-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-chips > span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; font-weight: 720;
}
.ma-chips img { width: 22px; height: 22px; }
@container (max-width: 360px) {
  .ma-rows li { grid-template-columns: 34px minmax(0, 1fr); padding-inline: 16px; }
  .ma-act { display: none; }
}

/* ---------- Account pane (deep navy band) ---------- */
.band {
  --ink: #f0f4fc;
  --muted: #b9c6dc;
  --line: rgba(162, 186, 255, .18);
  --line-strong: rgba(162, 186, 255, .3);
  --surface: #121c4a;
  --surface-2: #17225a;
  --primary: #a8beff;
  --violet: #c9bbff;
  --accent-soft: rgba(162, 186, 255, .14);
  --thread-a: #86a2ff;
  --thread-b: #bdb0ff;
  --quiet-bg: rgba(255, 255, 255, .05);
  --quiet-line: rgba(255, 255, 255, .26);
  --focus: #a8beff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  margin-inline: var(--inset); border-radius: 32px; color: var(--ink);
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(124, 108, 240, .38), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(42, 92, 240, .3), transparent 70%),
    linear-gradient(160deg, #0b1433 0%, #0f1a48 55%, #1a1c5c 100%);
}
:root[data-appearance="dark"] .band {
  --surface: #0f1a3a;
  --surface-2: #142250;
  border: 1px solid rgba(162, 186, 255, .26);
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(124, 108, 240, .42), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(42, 92, 240, .32), transparent 70%),
    linear-gradient(160deg, #0d1844 0%, #121c52 55%, #1d1d66 100%);
}
.band .btn-quiet { box-shadow: none; }
.band .mock { background: #0e1740; border-color: rgba(162, 186, 255, .2); }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px clamp(32px, 5vw, 72px); align-items: start; }
.acc-side { display: grid; gap: 20px; }
.acc-side > p { color: var(--muted); }
.acc-side .mock { margin-bottom: 4px; }

.points { display: grid; gap: 22px; margin: 10px 0 6px; counter-reset: pt; }
.points li { position: relative; padding-left: 58px; counter-increment: pt; }
.points li::before {
  content: "0" counter(pt); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line-strong); color: var(--primary);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
}
.points h3 { margin: 0 0 4px; padding-top: 8px; }
.points p { color: var(--muted); }

/* ---------- MICA ---------- */
.mica {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 96px); padding-block: clamp(88px, 11vw, 160px) clamp(64px, 8vw, 120px);
}
.mica::before {
  content: ""; position: absolute; left: 0; top: 12%; width: 40%; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-b), transparent);
}
.mica-intro { display: grid; gap: 18px; align-content: start; }
.mica-ghost { width: 96px; height: 96px; filter: drop-shadow(0 14px 22px rgba(106, 85, 224, .3)); margin-bottom: 4px; }
.mica .kicker { color: var(--violet); }
.mica-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; }
.mica-where > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--line); position: relative; }
.mica-where > div::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 32px; height: 2px; background: var(--violet);
}
.mica-where p { font-size: 15.5px; color: var(--muted); }
.principles { display: grid; align-content: start; border-bottom: 1px solid var(--line); }
.principles li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 26px 0;
  border-top: 1px solid var(--line);
}
.p-num {
  font-size: 46px; font-weight: 800; line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(160deg, var(--primary), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.principles h3 { font-size: clamp(19px, 1.8vw, 23px); letter-spacing: -.025em; margin-bottom: 6px; }
.principles p { color: var(--muted); }

/* ---------- Good to know ---------- */
.facts { background: var(--bg-2); border-block: 1px solid var(--line); }
.facts-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 6vw, 96px); padding-block: clamp(64px, 8vw, 112px);
}
.facts-head { display: grid; gap: 16px; align-content: start; }
.spec { border-bottom: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0;
  border-top: 1px solid var(--line);
}
.spec dt { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); padding-top: 3px; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 6vw, 96px); padding-block: clamp(72px, 9vw, 128px);
}
.faq-head { display: grid; gap: 16px; align-content: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 4px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.5vw, 19px); font-weight: 720; letter-spacing: -.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--primary); }
.faq-list summary .ico {
  width: 30px; height: 30px; padding: 6px; border-radius: 9px; border: 1px solid var(--line);
  color: var(--primary); transition: transform .25s ease, background-color .2s ease;
}
.faq-list details[open] summary .ico { transform: rotate(45deg); background: var(--accent-soft); }
.faq-list details p { padding: 0 52px 24px 4px; color: var(--muted); max-width: 66ch; }

/* ---------- Closing ---------- */
.closing { padding-bottom: clamp(56px, 7vw, 96px); }
.closing-inner {
  position: relative; display: grid; justify-items: center; gap: 20px; text-align: center;
  padding-block: clamp(56px, 7vw, 96px);
  border-radius: 32px; border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(50% 70% at 50% 0%, var(--glow-a), transparent 70%),
    radial-gradient(40% 60% at 90% 100%, var(--glow-b), transparent 70%),
    var(--surface);
}
.closing-inner { width: calc(100% - 2 * var(--pad)); max-width: calc(var(--maxw) - 2 * var(--pad)); padding-inline: 0; }
.closing-inner > * { margin-inline: var(--pad); }
.closing-ribbon { width: 180px; height: auto; filter: drop-shadow(0 14px 22px rgba(42, 92, 240, .25)); }
.closing-inner h2 { font-size: clamp(34px, 5vw, 64px); }
.closing-inner p { max-width: 48ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.closing-inner .actions { justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr);
  gap: 32px; padding-block: 56px 36px;
}
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 30ch; }
.f-title {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}
.site-footer nav a img { width: 20px; height: 20px; margin-right: 9px; }
.site-footer nav a {
  display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none;
}
.site-footer nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.appearance select {
  min-height: 44px; min-width: 140px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--quiet-line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 620; cursor: pointer;
}
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  position: relative; padding-block: 20px 40px; color: var(--muted); font-size: 14px;
}
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-t { from { translate: 0 .3em; } }
@keyframes ribbon-in { from { opacity: 0; scale: .9; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes cue { 0% { translate: 0 -12px; } 65%, 100% { translate: 0 36px; } }
@keyframes addr { from { opacity: .15; translate: 0 5px; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Story layout: wide screens, JS on, motion allowed ---------- */
@media (min-width: 1024px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .js { --dev-w: min(1360px, 94vw, calc((95vh - 46px) * 1.72)); }
  .js .story { height: 1100vh; }
  .js .stage { position: sticky; top: 0; height: 100vh; overflow-x: clip; }

  /* Intro, centred on the first screen */
  .js .intro {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    align-content: center; padding: var(--header-h) var(--pad) 10vh;
  }
  .js .intro-ribbon {
    position: relative; z-index: 2; width: min(300px, 31vh); margin-bottom: clamp(12px, 3vh, 30px);
    transform-origin: 50% 50%; will-change: transform;
    animation: ribbon-in 1.1s cubic-bezier(.16, 1, .3, 1) .05s both;
  }
  .js .intro-copy { gap: clamp(14px, 2.6vh, 24px); pointer-events: auto; will-change: transform, opacity; }
  .js .intro h1 { font-size: min(clamp(46px, 6.3vw, 92px), 10.5vh); }
  .js .intro .kicker { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .15s both; }
  .js .h1-a { animation: rise-t .9s cubic-bezier(.16, 1, .3, 1) .2s both; }
  .js .h1-b { animation: rise-t .9s cubic-bezier(.16, 1, .3, 1) .3s both; }
  .js .hero-lead { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .42s both; }
  .js .intro .actions { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .52s both; }
  .js .status { animation: rise .8s cubic-bezier(.16, 1, .3, 1) .62s both; }
  .js .cue {
    position: absolute; left: 50%; bottom: 3vh; translate: -50% 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
    animation: fade-in .8s ease 1.1s both;
  }
  .js .cue i { position: relative; overflow: hidden; width: 1.5px; height: 34px; border-radius: 2px; background: var(--line-strong); }
  .js .cue i::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; translate: 0 -12px;
    background: var(--thread-a); animation: cue 2.4s cubic-bezier(.6, 0, .3, 1) 1.6s infinite;
  }
  .js .is-landed .intro-ribbon { visibility: hidden; }

  /* The thread the ribbon follows into the screen */
  .js .thread { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .js .thread path { fill: none; stroke: url(#thread-grad); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 2; }

  /* Monitor */
  .js .device {
    display: block; position: absolute; z-index: 1; top: 3vh; left: calc(50% - var(--dev-w) / 2);
    width: var(--dev-w); height: 95vh;
    transform-origin: 50% 0; opacity: 0;
  }
  .js .screen {
    display: block; height: calc(100% - 46px); padding: 10px; border-radius: 22px;
    background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-rim), var(--device-shadow);
  }
  .js .stand { display: block; position: relative; height: 46px; }
  .js .stand::before {
    content: ""; position: absolute; left: 50%; top: 0; width: 128px; height: 38px; translate: -50% 0;
    background: var(--stand); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  }
  .js .stand::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 270px; height: 8px; translate: -50% 0;
    border-radius: 3px 3px 7px 7px; background: var(--stand);
  }

  /* Browser */
  .js .browser {
    display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
    height: 100%; border-radius: 13px; overflow: clip; background: var(--bg);
  }
  .js .b-chrome { grid-row: 1; grid-column: 1; position: relative; top: auto; z-index: 3; border: 0; background: var(--chrome); }
  .js .b-tabrow { display: flex; align-items: flex-end; gap: 20px; max-width: none; height: 48px; padding: 0 14px; }
  .js .b-dots { display: inline-flex; gap: 7px; align-self: center; }
  .js .b-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ef6a6a; }
  .js .b-dots i:nth-child(2) { background: #efbf4a; }
  .js .b-dots i:nth-child(3) { background: #48c98a; }
  :root[data-appearance="dark"].js .b-dots i { background: #36435c; }
  .js .b-tabs { align-self: stretch; align-items: flex-end; gap: 2px; padding: 0; overflow: visible; }
  .js .tab {
    width: clamp(150px, 14.5vw, 214px); min-height: 38px; padding: 0 14px; gap: 9px;
    border: 0; border-radius: 10px 10px 0 0; background: transparent; box-shadow: none;
    font-size: 14px; color: var(--chrome-ink);
  }
  .js .tab span { overflow: hidden; text-overflow: ellipsis; }
  .js .tab img { width: 20px; height: 20px; }
  .js .tab .tab-mail { width: 26px; }
  .js .tab .tab-wide { width: 28px; height: 15px; }
  .js .tab:hover { background: var(--tab-hover); color: var(--ink); }
  .js .tab[aria-current="true"] { background: transparent; border: 0; box-shadow: none; color: var(--ink); }
  .js .tab:focus-visible { outline-offset: -3px; }
  .js .tab-ind {
    display: block; position: absolute; left: 0; bottom: 0; z-index: 0; width: 0; height: 38px;
    border-radius: 10px 10px 0 0; background: var(--surface); opacity: 0;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), width .6s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  }
  .js .tab-ind::before, .js .tab-ind::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; }
  .js .tab-ind::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 9.5px, var(--surface) 10px); }
  .js .tab-ind::after { right: -10px; background: radial-gradient(circle at 100% 0, transparent 9.5px, var(--surface) 10px); }
  .js .b-toolbar {
    display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .js .b-nav { display: inline-flex; gap: 14px; color: var(--muted); }
  .js .b-nav .ico { width: 16px; height: 16px; }
  .js .b-addr {
    display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; max-width: 560px; height: 30px;
    margin-inline: auto; translate: -40px 0; border-radius: 9px; background: var(--chrome);
    font: 500 13px var(--mono); color: var(--chrome-ink);
  }
  .js .b-addr .ico { width: 12px; height: 12px; }
  .js .addr-text.swap { display: inline-block; animation: addr .5s cubic-bezier(.16, 1, .3, 1); }

  .js .b-start, .js .b-view { grid-row: 2; grid-column: 1; position: relative; min-height: 0; overflow: clip; pointer-events: none; }
  .js .pane {
    position: absolute; top: 0; left: 0; right: 0; min-height: 100%;
    padding-block: 52px 72px; scroll-margin-top: 0; background-color: var(--bg);
    opacity: 0; translate: 0 34px; pointer-events: none;
    transition: opacity .16s ease, translate .3s ease;
    will-change: transform;
  }
  .js .pane.is-past { translate: 0 -18px; }
  .js .pane.is-active {
    opacity: 1; translate: none; pointer-events: auto;
    transition: opacity .42s ease .14s, translate .75s cubic-bezier(.16, 1, .3, 1) .1s;
  }
  .js .pane-in { max-width: 1140px; padding-inline: clamp(32px, 4vw, 60px); }
  .js .band { margin: 0; border: 0; border-radius: 0; }
  .js .pane-start { padding-block: clamp(28px, 6vh, 64px) 40px; }
  /* Start page: the ribbon sits in the middle, the thread runs from it to each product */
  .js .sp { position: relative; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; text-align: center; }
  .js .sp-intro { justify-items: center; gap: 14px; max-width: 860px; }
  .js .sp-intro h2 { font-size: clamp(32px, 3.3vw, 46px); }
  .js .sp-intro .lead { font-size: 17.5px; max-width: 66ch; }
  .js .sp-slot { display: block; width: 190px; aspect-ratio: 360 / 189; margin-top: 26px; }
  .js .sp-ribbon { width: 100%; opacity: 0; }
  .js .is-landed .sp-ribbon { opacity: 1; }
  .js .sp-thread { display: block; position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .js .sp-thread path { fill: none; stroke: var(--thread-a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 2; }
  .js .sp .router { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 52px; text-align: left; }
  .js .sp .router li:last-child a { border-bottom: 1px solid var(--line); }
  .js .sp .router a {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: 100%;
    padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
    transition: border-color .18s ease, background-color .18s ease;
  }
  .js .sp .router a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
  .js .sp .r-mark { width: 48px; height: 48px; margin-bottom: 12px; box-shadow: none; background: var(--surface-2); }
  .js .sp .r-mark img { width: 32px; height: 32px; }
  .js .sp .r-mark-mail img { width: 40px; }
  .js .sp .r-mark-wide img { width: 38px; height: 20px; }
  .js .sp .r-name { font-size: 19px; }
  .js .sp .r-what { font-size: 15px; }
  .js .sp .r-who { font-size: 13.5px; margin-top: 4px; }
  .js .sp .router .ico { position: absolute; top: 20px; right: 18px; }
  .js .b-scroll {
    display: block; grid-row: 2; grid-column: 1; justify-self: end; align-self: stretch; z-index: 2;
    width: 4px; margin: 10px 6px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  }
  .js .b-scroll.on { opacity: 1; }
  .js .b-scroll i { display: block; width: 100%; height: 40px; border-radius: 4px; background: linear-gradient(var(--thread-a), var(--thread-b)); will-change: transform; }

  /* Reveal inside the window */
  .js .rv { opacity: 0; translate: 0 22px; transition: opacity .6s ease var(--d, 0s), translate .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
  .js .mock.rv { translate: 0 40px; }
  .js .rv.in { opacity: 1; translate: none; }

  /* Layout read by main.js: no transforms while measuring */
  .js .is-measuring :is(.device, .intro-copy, .intro-ribbon, .pane, .rv) { transform: none !important; translate: none !important; scale: none !important; }
}

/* ---------- Responsive (stacked page) ---------- */
@media (max-width: 1023px) {
  .sp { grid-template-columns: minmax(0, 1fr); }
  .pane-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pane-grid > div:last-child { grid-column: 1 / -1; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-side { max-width: 640px; }
}

@media (max-width: 960px) {
  .nav-sections, .signin { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; }
  .mica, .facts-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .honest { grid-template-columns: minmax(0, 1fr); }
  .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .band { border-radius: 24px; }
}

@media (max-width: 700px) {
  .pane-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pane-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 16.5px; }
  .intro-ribbon { width: 200px; }
  .intro-copy { gap: 20px; }
  .pane { padding-block: 48px; scroll-margin-top: 62px; }
  .b-tabrow { padding-inline: 8px; }
  .b-tabs { gap: 2px; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .tab { min-height: 44px; padding: 0 11px 0 9px; gap: 7px; font-size: 14.5px; }
  .tab img { width: 20px; height: 20px; }
  .tab .tab-mail { width: 25px; }
  .tab .tab-wide { width: 26px; height: 14px; }
  .router a { column-gap: 14px; grid-template-columns: 44px minmax(0, 1fr) 20px; padding-inline: 2px; }
  .r-mark { width: 44px; height: 44px; border-radius: 13px; }
  .r-mark img { width: 30px; height: 30px; }
  .r-mark-mail img { width: 38px; }
  .r-mark-wide img { width: 34px; height: 18px; }
  .r-name { font-size: 18px; }
  .mica-where { grid-template-columns: minmax(0, 1fr); }
  .spec > div { grid-template-columns: minmax(0, 1fr); }
  .honest-col { padding: 22px 20px; }
  .faq-list details p { padding-right: 4px; }
  .principles li { grid-template-columns: 44px minmax(0, 1fr); }
  .p-num { font-size: 36px; }
  .points li { padding-left: 0; padding-top: 50px; }
  .points h3 { padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appearance { grid-column: 1 / -1; }
  .actions .btn { flex: 1 1 auto; }
  .cc-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --inset: 0px; }
  .band { border-radius: 0; }
  .status span:nth-last-child(2)::after { content: none; }
  .status span:last-child { flex-basis: 100%; }
}

@media (max-width: 420px) {
  .header-cta { display: none; }
}

@media (forced-colors: active) {
  .grad, .p-num { color: CanvasText; background: none; }
  .tab[aria-current="true"] { outline: 2px solid CanvasText; }
}
