/* Milo marketing site. Same tokens as the app (ui-design-system.md §5), warmer spacing. */

:root {
  --bg: #FFFFFF;
  --bg-2: #F7F8FA;
  --bg-3: #F4F5F7;
  --bg-elev: #FFFFFF;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --text: #000000;
  --text-inv: #FFFFFF;
  --accent: #0B5CD7;
  --accent-hover: #0848A8;
  --accent-fg: #FFFFFF;
  --focus: #0B5CD7;
  --navy: #0F172A;
  --navy-2: #172036;
  --navy-line: #26324B;
  --on-navy: #FFFFFF;
  --agent: #7C3AED;
  --ok: #36B37E;
  --warn: #FFAB00;

  --c-flow: #12B07A;
  --c-docs: #1273F2;
  --c-wb: #6D3BEA;
  --c-retro: #F9621F;
  --c-chat: #F0305E;
  --c-forms: #0FB9BB;
  --c-desk: #F7A51B;
  --c-ai: #6D4AFF;

  --lid: #16181D;
  --lid-line: #2C3038;
  --deck: #C9CDD3;
  --deck-notch: #A9AEB6;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", "Fira Code", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --section: 64px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F1A;
    --bg-2: #0F1422;
    --bg-3: #1A2030;
    --bg-elev: #141A2A;
    --line: #1F2A3D;
    --line-2: #2A3650;
    --text: #FFFFFF;
    --text-inv: #000000;
    --accent: #3B82F6;
    --accent-hover: #1D4ED8;
    --focus: #3B82F6;
    --navy: #08101F;
    --navy-2: #0F1A30;
    --navy-line: #1F2A3D;
    --agent: #A78BFA;
    --lid: #0A0C10;
    --lid-line: #2A3650;
    --deck: #3A404B;
    --deck-notch: #2A2F38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F1A;
  --bg-2: #0F1422;
  --bg-3: #1A2030;
  --bg-elev: #141A2A;
  --line: #1F2A3D;
  --line-2: #2A3650;
  --text: #FFFFFF;
  --text-inv: #000000;
  --accent: #3B82F6;
  --accent-hover: #1D4ED8;
  --focus: #3B82F6;
  --navy: #08101F;
  --navy-2: #0F1A30;
  --navy-line: #1F2A3D;
  --agent: #A78BFA;
  --lid: #0A0C10;
  --lid-line: #2A3650;
  --deck: #3A404B;
  --deck-notch: #2A2F38;
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 24px; --section: 88px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --section: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 600; }
code, kbd, .mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.eyebrow[data-c]::before { background: var(--c); }
.h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; line-height: 1.06; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 62ch; }
.sec-head { max-width: 900px; margin-bottom: 48px; }
.sec-head .lead { margin-top: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-3); }
.on-navy .btn-ghost { color: var(--on-navy); border-color: rgba(255,255,255,.28); }
.on-navy .btn-ghost:hover { background: rgba(255,255,255,.08); }
.on-navy .btn-primary { background: #0B5CD7; color: #fff; }
.on-navy .btn-primary:hover { background: #0848A8; }
.btn svg { width: 16px; height: 16px; }
.textlink { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.brand small { font-size: 11px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; }
.nav-links { display: none; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.nav-links a:hover { background: var(--bg-3); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-right .signin, .nav-right .demo { display: none; }
.navlink { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.navlink:hover { background: var(--bg-3); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-sys { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="system"] .i-sys { display: block; }
.menu-btn { display: inline-grid; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-right .signin { display: inline-flex; }
  .nav-right .demo { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}
@media (max-width: 420px) { .nav-right .start { display: none; } }

/* ---------- Product chips (rail glyphs from the app) ---------- */
.chip {
  --c: var(--accent);
  width: 28px; height: 28px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 8px; background: var(--c); color: #fff;
}
.chip svg { width: 18px; height: 18px; }
.chip.ai { background: transparent; }
.chip.ai svg { width: 28px; height: 28px; }
.chip.lg { width: 40px; height: 40px; border-radius: 10px; }
.chip.lg svg { width: 26px; height: 26px; }
.chip.lg.ai svg { width: 40px; height: 40px; }
.chip.sm { width: 20px; height: 20px; border-radius: 5px; }
.chip.sm svg { width: 13px; height: 13px; }
.chip.sm.ai svg { width: 20px; height: 20px; }

/* ---------- Laptop frame ---------- */
.laptop { margin: 0; padding: 0 5.5%; position: relative; }
.laptop-lid {
  position: relative;
  background: var(--lid);
  border: 1px solid var(--lid-line);
  border-bottom: 0;
  border-radius: clamp(8px, 1.6vw, 18px) clamp(8px, 1.6vw, 18px) 0 0;
  padding: 2.4% 2.4% 2.8%;
}
.laptop-lid::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 11%; height: 2.1%; min-height: 5px;
  background: #050608; border-radius: 0 0 6px 6px;
}
.laptop-lid::after {
  content: ""; position: absolute; top: .9%; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: #2A2F3A;
}
.laptop-screen { aspect-ratio: 1440 / 900; overflow: hidden; background: #000; border-radius: 2px; position: relative; }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop-base {
  position: relative; height: clamp(9px, 1.25vw, 18px); margin: 0 -6%;
  background: var(--deck);
  border-radius: 2px 2px clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px);
  border-bottom: 1px solid var(--deck-notch);
}
.laptop-base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 15%; height: 42%; background: var(--deck-notch); border-radius: 0 0 8px 8px;
}
.laptop figcaption, .shot-cap { margin-top: 16px; font-size: 14px; line-height: 1.45; text-align: center; }
.laptop.plain { padding: 0; }

/* where-you-find-it path */
.path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; line-height: 1.2;
}
.path .lbl { font-weight: 600; flex-basis: 100%; margin-bottom: 2px; }
.path kbd, .kbd {
  font: 500 12.5px/1 var(--font);
  padding: 5px 8px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--line-2);
}
.path .sep { opacity: .55; }

/* ---------- Hero ---------- */
.hero {
  --floor: clamp(64px, 16vw, 230px);
  background: linear-gradient(var(--navy) calc(100% - var(--floor)), var(--bg) calc(100% - var(--floor)));
  color: var(--on-navy);
  position: relative;
  padding: 72px 0 0;
  overflow: hidden;
}
.hero::before {
  /* dotted canvas, like a whiteboard behind the work */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 92%);
  mask-image: linear-gradient(#000 40%, transparent 92%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 980px; }
.hero .eyebrow::before { background: #12B07A; }
.hero .h1 em { font-style: normal; text-decoration: underline; text-decoration-color: #0B5CD7; text-decoration-thickness: .06em; text-underline-offset: .14em; }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero-note { font-size: 14px; margin-top: 16px; }
.hero-rail { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 40px; font-size: 13px; }
.hero-rail a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.hero-rail a:hover span:last-child { text-decoration: underline; }
.hero-stage { position: relative; margin-top: 56px; }
.hero-stage .laptop { max-width: 1120px; margin: 0 auto; }
@media (max-width: 760px) { .hero { --floor: 0px; padding-bottom: 40px; } }
.hero-stage .laptop-base { z-index: 2; }

.agent-toast {
  position: absolute; z-index: 3;
  right: 1%; bottom: 14%;
  width: min(340px, 44%);
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .28);
  font-size: 14px; line-height: 1.4;
}
.agent-toast .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.agent-toast .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.agent-toast .meta div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.agent-toast .meta span { display: block; font-size: 11.5px; }
.agent-toast .meta b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
@media (max-width: 760px) {
  .agent-toast { position: static; width: auto; margin: 16px 5.5% 0; box-shadow: none; }
}

/* avatars */
.av {
  --c: #0B5CD7;
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; position: relative;
  background: var(--c); color: #fff; font-size: 13px; font-weight: 600;
}
.av.agent { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 4px var(--agent); }
.av.agent::after {
  content: "AI"; position: absolute; right: -6px; bottom: -6px;
  font-size: 9px; line-height: 1; font-weight: 600; padding: 2px 3px; border-radius: 4px;
  background: var(--agent); color: #fff; border: 1.5px solid var(--bg-elev);
}
.av.sm { width: 24px; height: 24px; font-size: 11px; }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-2); white-space: nowrap;
}
.tag.agent { background: var(--agent); border-color: var(--agent); color: #fff; }
.tag.solid { background: var(--text); color: var(--text-inv); border-color: var(--text); }

/* ---------- Product showcase (rail tabs) ---------- */
.showcase { display: grid; gap: 24px; }
.rail {
  background: var(--navy); border-radius: 12px; padding: 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
@media (min-width: 640px) and (max-width: 999px) { .rail { grid-template-columns: repeat(8, 1fr); } }
.rail::-webkit-scrollbar { display: none; }
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 0; padding: 8px 4px; border-radius: 8px;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  font: 500 11.5px/1.1 var(--font);
  transition: background-color 150ms var(--ease);
}
.rail-item:hover { background: rgba(255,255,255,.07); }
.rail-item[aria-selected="true"] { background: rgba(255,255,255,.14); }
.rail-item[aria-selected="true"] .rail-label { text-decoration: underline; text-underline-offset: 3px; }
.panel { display: grid; gap: 32px; align-items: center; }
.js .panel[hidden] { display: none; }
.panel-copy .h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-copy p { font-size: 17px; }
.ticks { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 15px; height: 15px; border-radius: 4px;
  background: var(--c, var(--accent));
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.32em + 3px); width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.75px 1.75px 0; transform: rotate(45deg);
}
.where { margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); border-radius: 0 8px 8px 0; background: var(--bg-2); }
.panel-more { margin-top: 20px; font-size: 15px; }
@media (min-width: 1000px) {
  .showcase { grid-template-columns: 80px 1fr; gap: 40px; align-items: start; }
  .rail { grid-template-columns: 1fr; position: sticky; top: 84px; }
  .rail-item { min-width: 0; }
  .panel { grid-template-columns: minmax(280px, 340px) 1fr; gap: 32px; }
  .panel .laptop { padding-right: 0; }
}

/* ---------- Agent story ---------- */
.agents-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .agents-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.points { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points .n { font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.points h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.points p { font-size: 15.5px; }
.agent-visual { position: relative; }
.zoom {
  position: relative; width: 300px; max-width: 100%;
  aspect-ratio: 310 / 338; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
}
.zoom img { position: absolute; max-width: none; width: 465%; height: auto; left: -357%; top: -104.3%; }
.zoom-wrap { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 640px) { .zoom-wrap { grid-template-columns: auto 1fr; align-items: center; } }
.zoom-note { font-size: 15px; }
.zoom-note .big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; display: block; margin-bottom: 8px; }

.rollup { margin-top: 32px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.rollup-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rollup-row:last-child { border-bottom: 0; }
.rollup-row .l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rollup-row .l span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rollup-row.d1 .l { padding-left: 24px; }
.rollup-row.d2 .l { padding-left: 48px; }
.rollup-row .sum { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.rollup-head { background: var(--bg-2); font-size: 12.5px; font-weight: 600; }
.kind { width: 10px; height: 10px; border-radius: 2px; flex: none; }

/* ---------- Brainstorm to shipped ---------- */
.flow-steps { list-style: none; display: grid; gap: 16px; counter-reset: step; position: relative; }
.flow-step {
  position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  overflow: hidden; display: flex; flex-direction: column;
}
.flow-step .thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.flow-step .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.crop { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.flow-step .crop img, .crop img {
  position: absolute; max-width: none; height: auto; object-fit: initial;
  width: calc(100% / var(--w)); left: calc(-100% * var(--x) / var(--w)); top: calc(-100% * var(--y) / var(--w));
}
.flow-step .body { padding: 16px; }
.flow-step .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.flow-step .num { font-family: var(--mono); font-size: 12px; margin-left: auto; }
.flow-step h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.flow-step p { font-size: 14.5px; line-height: 1.5; }
@media (min-width: 640px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .flow-steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 2; top: calc(50% - 10px); right: -12px; width: 12px; height: 2px; background: var(--line-2);
  }
  .flow-step { overflow: visible; }
  .flow-step .thumb { border-radius: 12px 12px 0 0; }
}

/* ---------- Replace your stack ---------- */
.stack { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.stack th, .stack td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stack thead th { font-size: 13px; font-weight: 600; background: var(--bg-2); border-top: 1px solid var(--line); }
.stack td.milo { font-weight: 500; }
.stack td.milo .in { display: inline-flex; align-items: center; gap: 10px; }
.stack .strike { text-decoration: line-through; text-decoration-thickness: 1px; }
.stack-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stack-box .stack thead th { border-top: 0; }
.stack-box .stack tr:last-child td { border-bottom: 0; }
.stack-foot { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; font-size: 15px; }
.stack-foot span { display: inline-flex; align-items: center; gap: 8px; }
.stack-foot span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) {
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .stack-box .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 2px 0; }
  .stack td:first-child { font-weight: 600; }
  .stack td:nth-child(2)::before { content: "Instead of: "; }
}

/* ---------- Numbers ---------- */
.numbers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.number { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.number .fig { font-family: var(--mono); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 12px; }
.number .what { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.number p { font-size: 15px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cats .tag { height: 24px; font-size: 12.5px; }
@media (min-width: 900px) { .numbers { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-label { font-size: 13px; color: var(--text); opacity: .62; margin-right: 8px; }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); opacity: .85; }
.quote {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg);
  display: flex; flex-direction: column; gap: 20px; min-height: 220px;
}
.quote .ph { align-self: flex-start; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; flex: 1; }
.quote .by { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.quote .by .av { color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.plan.pick { border: 2px solid var(--accent); padding: 23px; }
.plan.plan-wide { flex-direction: row; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.plan.plan-wide > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.plan.plan-wide .btn { width: auto; margin-top: 0; }
.plan .badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; }
.plan h3 { font-size: 19px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-height: 52px; }
.plan .amt { font-family: var(--mono); font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.plan .amt.talk { font-family: var(--font); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.plan .per { font-size: 14px; line-height: 1.3; }
.plan .billing { font-size: 13px; min-height: 18px; margin-top: -8px; }
.plan .ticks { margin: 0; gap: 8px; }
.plan .ticks li { font-size: 14.5px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan .for { font-size: 14.5px; }
.toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); gap: 2px; }
.toggle button {
  height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--text);
  font: 500 14px/1 var(--font); cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.toggle .save { font-size: 12px; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--ok); color: #000; }
.toggle-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 24px; }
.facts div { background: var(--bg-2); padding: 16px 20px; font-size: 15px; }
.facts b { display: block; font-size: 16px; margin-bottom: 2px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-2); font-weight: 600; position: sticky; top: 0; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .grp td { background: var(--bg-2); font-weight: 600; font-size: 12.5px; text-align: left; }
.compare .yes { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--ok); position: relative; vertical-align: -3px; }
.compare .yes::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.compare .no { opacity: .45; }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--text); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); transition: transform 150ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 0 20px; font-size: 16px; max-width: 70ch; }
.faq .a p + p { margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--on-navy); padding: var(--section) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px);
  background-size: 22px 22px; pointer-events: none;
}
.cta-band .wrap { position: relative; display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band .lead { margin-top: 16px; }
.cta-rail { display: flex; gap: 6px; margin-bottom: 24px; }

/* ---------- Features page ---------- */
.subnav {
  position: sticky; top: 61px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.subnav a:hover, .subnav a.active { background: var(--bg-3); }
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 20px; }
.product { padding: var(--section) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.product:nth-of-type(even) { background: var(--bg-2); }
.product-head { display: grid; gap: 24px; margin-bottom: 40px; }
@media (min-width: 1000px) { .product-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.product-head .title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-head .title span:last-child { font-size: 15px; font-weight: 500; }
.product .proof { border-left: 3px solid var(--c); padding: 4px 0 4px 18px; font-size: 18px; line-height: 1.45; }
.feature-cols { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 760px) { .feature-cols { grid-template-columns: repeat(3, 1fr); } }
.feature-cols h3 { font-size: 16px; margin-bottom: 10px; }
.feature-cols .ticks { margin: 0; }
.gallery { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 900px) { .gallery.two { grid-template-columns: 1fr 1fr; } .gallery.three { grid-template-columns: repeat(3, 1fr); } }
.gallery .laptop figcaption { font-size: 13.5px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg); }
.card h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.card p { font-size: 15px; }
.card .ico { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; flex: none; }
.card .ico svg { width: 16px; height: 16px; }
.card.soon { border-style: dashed; }
.card .tag { margin-left: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field .opt { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field .err { display: none; font-size: 13.5px; margin-top: 6px; padding-left: 10px; border-left: 2px solid #DE350B; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #DE350B; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.thanks { display: none; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 0 12px 12px 0; padding: 24px; background: var(--bg-2); }
.thanks.show { display: block; }
.thanks h2 { font-size: 24px; margin-bottom: 8px; }
.aside-box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg-2); }
.aside-box + .aside-box { margin-top: 16px; }
.aside-box h2 { font-size: 15px; margin-bottom: 10px; letter-spacing: 0; }
.aside-box address { font-style: normal; line-height: 1.6; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email-line code { font-size: 15px; user-select: all; -webkit-user-select: all; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); word-break: break-all; }
.copy-btn { height: 34px; padding: 0 12px; font-size: 13.5px; }
.ph-mark { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--warn); color: #000; font-size: 13px; }

/* ---------- About ---------- */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tools-row .tag { height: 30px; padding: 0 12px; font-size: 14px; }
.tools-row .tag.x { text-decoration: line-through; }
.principles { display: grid; gap: 16px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Legal ---------- */
.draft-banner { background: var(--warn); color: #000; font-size: 14px; font-weight: 500; text-align: center; padding: 8px var(--gutter); }
.legal { display: grid; gap: 48px; padding: 56px 0 var(--section); }
@media (min-width: 1000px) { .legal { grid-template-columns: 240px 1fr; gap: 64px; } }
.toc { font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 84px; } }
.legal-body { max-width: 74ch; font-size: 16px; line-height: 1.65; }
.legal-body h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.legal-body .updated { font-size: 14px; margin-bottom: 32px; }
.legal-body h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -0.01em; scroll-margin-top: 84px; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 12px; }
.legal-body ul { padding-left: 22px; }
.legal-body li + li { margin-top: 6px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-body th { background: var(--bg-2); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-grid .about { grid-column: 1 / -1; max-width: 360px; }
.foot-grid .about p { margin-top: 12px; }
.foot-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid ul a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.foot-grid ul a:hover { text-decoration: underline; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .foot-grid .about { grid-column: auto; } }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* small helpers */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* =====================================================================
   Product UI illustrations (drawn in HTML, same tokens as the app)
   ===================================================================== */
.u { font-family: var(--font); font-size: 12.5px; line-height: 1.35; color: var(--text); text-align: left; letter-spacing: 0; }
.u svg { width: 14px; height: 14px; flex: none; }
.u b { font-weight: 600; }
.u p { margin: 0; }
.u .mono, .u-key { font-family: var(--mono); }
.u-muted { opacity: .62; font-size: 11.5px; }
.u-av {
  --c: #0B5CD7; position: relative; flex: none;
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--c); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0;
}
.u-av.sm { width: 20px; height: 20px; font-size: 9px; }
.u-av.xs { width: 18px; height: 18px; font-size: 8.5px; }
.u-av.agent { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--agent); }
.u-av.agent::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; background: #36B37E; border: 1.5px solid var(--bg); }
.u-av.empty { background: transparent; border: 1px dashed var(--line-2); }
.u-agent { font-style: normal; font-size: 10px; font-weight: 500; padding: 1px 5px; border-radius: 999px; background: var(--agent); color: #fff; margin-left: 4px; }
.u-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; background: #0B5CD7; color: #fff; }
.u-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 500; background: var(--c); color: #fff; }
.u-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 500; background: var(--bg); white-space: nowrap; }
.u-btn.primary { background: #0B5CD7; border-color: #0B5CD7; color: #fff; }
.u-cost { font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg-2); }
.u-run { font-size: 10.5px; display: inline-flex; align-items: center; gap: 4px; }
.u-run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #36B37E; animation: pulse 1.6s ease-out infinite; }
.u-pr { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: #1E7F52; color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(54,179,126,.55); } 100% { box-shadow: 0 0 0 6px rgba(54,179,126,0); } }

/* app window */
.u-win { display: grid; grid-template-columns: 58px 196px 1fr; grid-template-rows: 40px 1fr; background: var(--bg-2); height: 100%; overflow: hidden; }
.u-win.scr { grid-template-rows: 1fr; }
.u-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.u-ws { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; width: 230px; }
.u-wsmark { width: 22px; height: 22px; border-radius: 6px; background: #0B5CD7; color: #fff; font-size: 9px; display: grid; place-items: center; }
.u-chev { transform: rotate(90deg); width: 10px !important; height: 10px !important; opacity: .6; }
.u-search { flex: 0 1 460px; margin: 0 auto 0 60px; height: 26px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; font-size: 12px; }
.u-search > svg { opacity: .6; }
.u-search kbd { font: 10px var(--font); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 4px; }
.u-ask { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--bg-3); }
.u-topr { display: flex; gap: 12px; align-items: center; }
.u-me { width: 22px; height: 22px; border-radius: 50%; background: #7C3AED; color: #fff; font-size: 9px; display: grid; place-items: center; }
.u-rail { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.u-ritem { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-size: 9.5px; width: 50px; padding: 4px 0; border-radius: 8px; }
.u-ritem.on { background: rgba(255,255,255,.14); }
.u-rchip { --c: transparent; width: 24px; height: 24px; border-radius: 7px; background: var(--c); display: grid; place-items: center; color: #fff; }
.u-rchip svg { width: 15px; height: 15px; }
.u-rchip.ai svg, .u-rchip.ai { width: 24px; height: 24px; }
.u-rchip.home svg { width: 16px; height: 16px; }
.u-panel { background: var(--bg); border-right: 1px solid var(--line); padding: 10px 8px; overflow: hidden; }
.u-ph { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; padding: 2px 6px 8px; }
.u-pg { width: 16px !important; height: 16px !important; }
.u-sec { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 6px 4px; opacity: .7; }
.u-prow { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.u-prow span { margin-left: auto; font-size: 11px; opacity: .7; }
.u-prow.on { background: var(--bg-3); font-weight: 500; }
.u-prow.ind { padding-left: 24px; }
.u-prow.on2 { background: var(--bg-3); font-weight: 500; padding-left: 24px; }
.u-live { width: 7px; height: 7px; border-radius: 50%; background: #36B37E; margin-left: auto; animation: pulse 1.6s ease-out infinite; }
.u-main { background: var(--bg); padding: 12px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.u-main.pad { padding: 0; }
.u-mh { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.u-tabs { display: flex; gap: 14px; margin-left: 18px; font-size: 12px; }
.u-tabs .on { text-decoration: underline; text-decoration-color: #12B07A; text-decoration-thickness: 2px; text-underline-offset: 8px; font-weight: 500; }
.u-tools { display: flex; gap: 8px; align-items: center; }
.u-tools .primary { margin-left: auto; }
.u-input { height: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; display: inline-flex; align-items: center; font-size: 11.5px; width: 170px; opacity: .8; }
.u-avs { display: inline-flex; }
.u-avs .u-av { margin-left: -4px; box-shadow: 0 0 0 1.5px var(--bg); }
.u-avs .u-av.agent { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--agent); margin-left: 0; }
.u-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; min-height: 0; }
.u-col { background: var(--bg-3); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.u-colh { display: flex; align-items: center; gap: 6px; }
.u-st { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--c); color: #fff; }
.u-n { font-size: 11px; opacity: .7; }
.u-card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.u-card.sel { border-color: var(--agent); box-shadow: 0 0 0 1px var(--agent); }
.u-card.dim { opacity: .7; }
.u-key { display: flex; align-items: center; gap: 6px; font-size: 10.5px; opacity: .75; }
.u-kind { width: 8px; height: 8px; border-radius: 2px; background: #12B07A; }
.u-title { font-size: 12.5px; line-height: 1.3; }
.u-foot { display: flex; align-items: center; gap: 6px; }
.u-foot .u-av { margin-left: auto; }
.u-prio { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.u-prio i { width: 2.5px; background: #FFAB00; border-radius: 1px; }
.u-prio i:nth-child(1) { height: 4px; } .u-prio i:nth-child(2) { height: 7px; } .u-prio i:nth-child(3) { height: 10px; background: var(--line-2); }
.u-peek { position: absolute; right: 0; top: 40px; bottom: 0; width: 300px; background: var(--bg); border-left: 1px solid var(--line-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: -12px 0 32px rgba(2,6,23,.12); }
.hero-win { position: relative; }
.u-peekh { display: flex; align-items: center; gap: 8px; }
.u-chipst { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: #12B07A; color: #fff; }
.u-status { margin-left: auto; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: #0B5CD7; color: #fff; }
.u-ptitle { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.u-kv { display: grid; grid-template-columns: 76px 1fr; align-items: center; font-size: 12px; min-height: 24px; }
.u-kv > span:first-child { opacity: .65; }
.u-kv > span:last-child { display: flex; align-items: center; gap: 6px; }
.u-usage { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.u-uhead { display: flex; align-items: baseline; justify-content: space-between; }
.u-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.u-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.u-stats div { border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
.u-stats span { display: block; font-size: 10.5px; opacity: .7; }
.u-stats b { font-family: var(--mono); font-size: 12.5px; }
.u-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.u-bar i { display: block; height: 100%; background: #12B07A; }
.u-urow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.u-urow b { margin-left: auto; font-family: var(--mono); }
.u-gh { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.u-ghh { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.u-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.u-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 5px; height: 2px; background: var(--line-2); }
.u-step { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; position: relative; text-align: center; }
.u-step i { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.u-step.done i { background: #12B07A; border-color: #12B07A; }
.u-comment { display: flex; gap: 8px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.u-comment p { margin-top: 2px; }

/* docs */
.d-cover { height: 92px; background: #1273F2; flex: none; }
.d-page { padding: 0 48px 20px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.d-icon { font-size: 40px; line-height: 1; margin-top: -22px; }
.d-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.d-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; opacity: .8; }
.d-meta span { text-decoration: underline; }
.d-p { font-size: 13.5px; line-height: 1.55; max-width: 560px; }
.d-h2 { font-size: 16px; font-weight: 600; margin-top: 4px; }
.d-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.d-table th { text-align: left; font-weight: 500; font-size: 11px; opacity: .75; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.d-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.d-table td:nth-child(2) { display: flex; align-items: center; gap: 6px; }
.d-link { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg-2); white-space: nowrap; }
.d-slash { display: inline-flex; gap: 8px; align-items: center; font-size: 11.5px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; align-self: flex-start; box-shadow: 0 8px 20px rgba(2,6,23,.10); background: var(--bg); }
.d-slash span { font-family: var(--mono); font-weight: 600; }

/* chat */
.c-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.c-feed { padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.c-msg { display: flex; gap: 10px; align-items: flex-start; }
.c-msg .u-av { width: 28px; height: 28px; border-radius: 8px; font-size: 10.5px; }
.c-msg .u-av.agent::after { right: -3px; bottom: -3px; }
.c-who { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.c-msg p { font-size: 13px; line-height: 1.45; }
.c-at { background: #0B5CD7; color: #fff; padding: 0 4px; border-radius: 4px; }
.c-thread { margin-left: 14px; padding-left: 22px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.c-reacts { display: flex; gap: 6px; margin-top: 6px; }
.c-reacts span { font-size: 11px; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px; }
.c-compose { margin: 0 18px 16px; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 12.5px; display: flex; justify-content: space-between; }
.c-compose span { opacity: .55; font-size: 11.5px; }

/* ai */
.a-wrap { padding: 22px 40px; display: flex; flex-direction: column; gap: 14px; }
.a-ctx { display: flex; gap: 6px; }
.a-ctx .u-tag { background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2); }
.a-q { align-self: flex-end; background: #0B5CD7; color: #fff; padding: 9px 14px; border-radius: 12px 12px 2px 12px; font-size: 13px; }
.a-ans { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; }
.a-ans ol { margin: 6px 0 8px; padding-left: 18px; display: grid; gap: 4px; }
.a-mark { width: 28px !important; height: 28px !important; }
.a-acts { display: flex; gap: 8px; margin-top: 10px; }
.a-policy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.a-policy div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.a-policy span { display: block; font-size: 10.5px; opacity: .7; }
.a-policy b { font-size: 12px; }

/* scaled stage: fixed-size UI scaled to its frame by site.js */
.stage { position: relative; overflow: hidden; width: 100%; height: 100%; }
.stage-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.js .stage:not(.ready) .stage-in { opacity: 0; }
.stage.ready .stage-in { transition: opacity 200ms var(--ease); }

/* =====================================================================
   Devices: MacBook Pro + iPhone, drawn in CSS
   ===================================================================== */
.devices { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 9% 0 5.5%; }
.mbp { position: relative; filter: drop-shadow(0 40px 50px rgba(2, 6, 23, .35)); }
.mbp-lid {
  position: relative; background: #0C0D10; border-radius: clamp(10px, 1.7vw, 22px) clamp(10px, 1.7vw, 22px) 0 0;
  padding: 1.5% 1.5% 2.1%; box-shadow: inset 0 0 0 1px #2B2E35, 0 0 0 clamp(1px, .18vw, 2.5px) #A7ACB4;
}
.mbp-notch { position: absolute; z-index: 3; top: 1.5%; left: 50%; transform: translateX(-50%); width: 11.5%; height: 3.1%; min-height: 6px; background: #0C0D10; border-radius: 0 0 clamp(4px, .7vw, 9px) clamp(4px, .7vw, 9px); }
.mbp-notch::after { content: ""; position: absolute; left: 50%; top: 40%; width: 6%; aspect-ratio: 1; min-width: 3px; transform: translateX(-50%); border-radius: 50%; background: #1E2330; }
.mbp-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(3px, .5vw, 7px) clamp(3px, .5vw, 7px) 0 0; background: var(--bg); }
.mbp-base {
  position: relative; height: clamp(8px, 1.35vw, 19px); margin: 0 -7.5%;
  background: linear-gradient(#E4E6EA, #C3C7CE 55%, #8E939B);
  border-radius: 1px 1px 50% 50% / 1px 1px 100% 100%;
}
.mbp-base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 14%; height: 45%; background: #A8ADB5; border-radius: 0 0 10px 10px; }
.iphone {
  position: absolute; z-index: 4; right: 1%; bottom: -3%; width: clamp(92px, 19%, 220px); aspect-ratio: 9 / 19.5;
  background: #0E0F12; border-radius: clamp(18px, 3.6vw, 44px); padding: clamp(4px, 0.6vw, 8px);
  box-shadow: inset 0 0 0 1.5px #3A3D45, 0 0 0 clamp(1px, .2vw, 2.5px) #8E939B, 0 30px 60px -10px rgba(2, 6, 23, .5);
}
.iphone::before { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: 13%; border-radius: 0 2px 2px 0; background: #8E939B; }
.iphone::after { content: ""; position: absolute; left: -3px; top: 20%; width: 3px; height: 22%; border-radius: 2px 0 0 2px; background: linear-gradient(#8E939B 0 38%, transparent 38% 52%, #8E939B 52%); }
.iphone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(14px, 3vw, 37px); background: var(--bg); }
.island { position: absolute; z-index: 3; top: 1.8%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.6%; border-radius: 999px; background: #000; }
.play {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(52px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: #0F172A; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .35), 0 0 0 8px rgba(255, 255, 255, .22);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.play:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 10px 30px rgba(2, 6, 23, .35), 0 0 0 12px rgba(255, 255, 255, .28); }
.play svg { width: 34%; height: 34%; margin-left: 8%; }
.play-note {
  position: absolute; z-index: 5; left: 50%; top: calc(50% + clamp(36px, 4.6vw, 58px)); transform: translateX(-50%);
  font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: #0F172A; color: #fff; white-space: nowrap;
  opacity: 0; transition: opacity 150ms var(--ease); pointer-events: none;
}
.play:hover + .play-note, .play:focus-visible + .play-note, .play-note.show { opacity: 1; }

/* phone UI (390 x 844) */
.ph { width: 100%; height: 100%; background: var(--bg-2); display: flex; flex-direction: column; font-size: 15px; }
.ph-top { padding: 58px 18px 12px; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; }
.ph-top b { font-size: 18px; }
.ph-top .u-wsmark { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
.ph-top svg { width: 20px !important; height: 20px !important; margin-left: auto; }
.ph-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.ph-hi { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ph-sec { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.ph-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-card .u-title { font-size: 15px; }
.ph-card .u-key { font-size: 12px; }
.ph-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.ph-row .u-pill { margin-left: auto; height: 22px; font-size: 12px; }
.ph-row .u-av { width: 26px; height: 26px; font-size: 10px; }
.ph-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 10px 30px; background: var(--bg); border-top: 1px solid var(--line); font-size: 11.5px; text-align: center; }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-tabs .u-rchip { width: 28px; height: 28px; }
.ph-tabs .u-rchip svg { width: 18px; height: 18px; }

/* =====================================================================
   Landing layout v2
   ===================================================================== */
.hero2 { position: relative; background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); overflow: hidden; }
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 17vw, 250px); background: var(--bg); }
.hero2 .wrap { position: relative; z-index: 1; }
.hero2-copy { text-align: center; max-width: 1140px; margin: 0 auto; }
@media (min-width: 900px) { .hero2 h1 .soft { display: block; } }
.hero2 .badge-line { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); margin-bottom: 28px; text-decoration: none; }
.hero2 .badge-line .new { background: #12B07A; color: #000; font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.hero2 h1 { font-size: clamp(38px, 6vw, 74px); letter-spacing: -0.045em; line-height: .98; }
.hero2 h1 .soft { opacity: .62; }
.hero2 .lead { margin: 26px auto 0; font-size: clamp(17px, 1.7vw, 21px); max-width: 660px; }
.hero2-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero2-note { margin-top: 18px; font-size: 14px; opacity: .8; }
.hero2 .devices { margin-top: clamp(48px, 6vw, 80px); }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.hero-chips .chip { width: 24px; height: 24px; border-radius: 7px; }
.hero-chips .chip svg { width: 15px; height: 15px; }
.hero-chips .chip.ai svg { width: 24px; height: 24px; }

.reveal { transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } .u-run::before, .u-live { animation: none; } }

.h2.xl { font-size: clamp(32px, 4.3vw, 54px); letter-spacing: -0.04em; line-height: 1.02; }
.sec-head .soft { opacity: .6; }

/* product switcher */
.switch-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.switch-tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 14.5px/1 var(--font); cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.switch-tabs button:hover { background: var(--bg-3); }
.switch-tabs button[aria-selected="true"] { background: var(--text); color: var(--text-inv); border-color: var(--text); }
.switch-tabs .chip { width: 24px; height: 24px; border-radius: 7px; }
.switch-tabs .chip svg { width: 15px; height: 15px; }
.switch-tabs .chip.ai svg { width: 24px; height: 24px; }
.switch-body { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .switch-body { grid-template-columns: 360px 1fr; gap: 56px; } }
.switch-copy { display: grid; }
.switch-copy > * { grid-area: 1 / 1; }
.switch-screens > * { position: absolute; inset: 0; }
.switch-copy > *, .switch-screens > * { transition: opacity 200ms var(--ease), visibility 0s; }
.js .switch-copy > [hidden], .js .switch-screens > [hidden] { transition: opacity 200ms var(--ease), visibility 0s 200ms; }
.js .switch-copy > [hidden], .js .switch-screens > [hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; }
.switch-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.switch-copy p.line { font-size: 17.5px; line-height: 1.5; }
.switch-copy .ticks { margin: 20px 0; }
.switch-screens { position: absolute; inset: 0; }
.switch-screens-wrap { padding: 0 6%; }
.switch-screens-wrap .mbp { filter: drop-shadow(0 24px 32px rgba(2, 6, 23, .18)); }
.scr-pane { position: relative; width: 100%; height: 100%; }
.crop { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.crop img {
  position: absolute; max-width: none; height: auto;
  width: calc(100% / var(--w)); left: calc(-100% * var(--x) / var(--w)); top: calc(-100% * var(--y) / var(--w));
}
.switch-mbp { padding: 0; }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column;
}
.alt .tile, .dark-band .tile { background: var(--bg); }
.tile-copy { padding: 22px 24px 0; }
.tile-copy h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.tile-copy p { font-size: 15px; line-height: 1.5; }
.tile-art { padding: 20px 24px 24px; margin-top: auto; }
.tile-art.bleed { padding: 20px 0 0 24px; }
.tile .u { background: var(--bg); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
  .row-2 { grid-row: span 2; }
}
@media (min-width: 760px) and (max-width: 1099px) { .span-2 { grid-column: span 3; } .span-4 { grid-column: span 6; } }

.t-story { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.t-split { display: grid; gap: 14px; }
@media (min-width: 560px) { .t-split { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.t-split > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t-ac { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.t-ach { font-weight: 600; font-size: 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.t-acr { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.t-acr i { width: 12px; height: 12px; border: 1.5px solid var(--line-2); border-radius: 3px; flex: none; }
.t-picker { border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 12px 28px rgba(2,6,23,.10); max-width: 300px; }
.t-pkh { font-size: 11px; opacity: .7; padding: 6px 8px; }
.t-pk { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 13px; }
.t-pk:first-of-type { background: var(--bg-3); }
.t-pk > :last-child { margin-left: auto; }
.t-thread { display: flex; flex-direction: column; gap: 12px; }
.t-thread .c-msg p { font-size: 12.5px; }
.t-roll { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.t-rr { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.t-rr:last-child { border-bottom: 0; }
.t-rr b { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 11.5px; white-space: nowrap; }
.t-rr.st { padding-left: 28px; } .t-rr.sub { padding-left: 44px; }
.t-rr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-appr { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.t-aph { display: flex; align-items: center; gap: 8px; }
.t-apb { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
.t-appr .a-acts { margin-top: 0; }
.t-mcp { border-radius: 10px; background: #0B0F1A; color: #fff; overflow: hidden; border: 1px solid #1F2A3D; }
.t-mcph { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 11px; border-bottom: 1px solid #1F2A3D; opacity: .8; }
.t-mcph span { width: 9px; height: 9px; border-radius: 50%; background: #2A3650; }
.t-mcp pre { margin: 0; padding: 12px 14px; font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.t-mcp .m-p { opacity: .55; } .t-mcp .m-ok { color: #fff; background: #1E7F52; border-radius: 3px; padding: 0 3px; }

.t-ft { display: grid; gap: 14px; align-items: center; }
@media (min-width: 900px) { .t-ft { grid-template-columns: 1fr auto 1fr; } }
.t-form { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.t-fh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.t-fbar { width: 4px; height: 18px; border-radius: 2px; background: #0FB9BB; }
.t-form label { font-size: 11.5px; font-weight: 500; margin-top: 4px; }
.t-in { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.t-in.file { border-style: dashed; }
.t-form .u-btn { align-self: flex-start; margin-top: 8px; }
.t-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; }
.t-arrow svg { width: 28px !important; height: 28px !important; padding: 6px; border-radius: 50%; background: var(--text); color: var(--text-inv); }
@media (max-width: 899px) { .t-arrow svg { transform: rotate(90deg); } }
.t-out { display: flex; flex-direction: column; gap: 12px; }
.t-status { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.t-sh { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.t-tl { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 10.5px; position: relative; text-align: center; }
.t-tl::before { content: ""; position: absolute; left: 12%; right: 12%; top: 5px; height: 2px; background: var(--line-2); }
.t-tl span { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.t-tl i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.t-tl .done i { background: #F7A51B; border-color: #F7A51B; }

.shot { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.shot .crop { aspect-ratio: var(--ar, 16 / 10); height: auto; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 12px; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot-bar span { margin-left: 8px; }

/* flow track */
.track { list-style: none; display: grid; gap: 16px; position: relative; }
@media (min-width: 640px) { .track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .track { grid-template-columns: repeat(5, 1fr); gap: 14px; } .track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 96px; height: 2px; background: var(--line-2); } }
.track li { position: relative; }
.track .mini { position: relative; z-index: 1; aspect-ratio: 16 / 11; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.track .meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; }
.track .meta .num { font-family: var(--mono); font-size: 12px; margin-left: auto; }
.track h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.track p { font-size: 14.5px; line-height: 1.5; }
.mn-wb { flex-direction: row !important; flex-wrap: wrap; align-content: center; justify-content: center; background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px) !important; background-size: 14px 14px !important; }
.mn-st { --c: #FDE68A; background: var(--c); color: #000; font-size: 10.5px; line-height: 1.25; padding: 7px; width: 66px; min-height: 40px; transform: rotate(var(--r)); border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.mn-st.small { width: 70px; min-height: 40px; padding: 8px; }
.mn-story { flex-direction: row !important; align-items: center; justify-content: center; gap: 8px !important; }
.mn-story .u-card { flex: 1; min-width: 0; }
.mn-link svg { width: 16px; height: 16px; }
.mn-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mn-row .u-av { width: 34px; height: 34px; font-size: 13px; }
.mn-runs { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.mn-runs span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: #12B07A; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.mn-pr .u-gh { border: 0; padding: 0; }
.mn-retro { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; align-content: center; }
.mn-rc { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 11px; min-width: 0; }
.mn-rn { background: var(--c); color: #000; padding: 6px; border-radius: 2px; font-size: 10.5px; line-height: 1.25; }
.mn-act { flex-basis: 100%; font-size: 11.5px; font-weight: 500; margin-top: 4px; }

/* stack v2 */
.swap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .swap { grid-template-columns: 1fr auto 1fr; gap: 40px; } }
.swap-old { display: flex; flex-wrap: wrap; gap: 8px; }
.swap-old span { font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.swap-mid { display: grid; place-items: center; }
.swap-mid svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--text); color: var(--text-inv); }
@media (max-width: 999px) { .swap-mid svg { transform: rotate(90deg); } }
.swap-new { background: var(--navy); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.swap-new > span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; padding: 10px 4px; border-radius: 10px; text-align: center; }
.swap-new > span:hover { background: rgba(255,255,255,.07); }

.ph-card .u-foot .u-av { margin-left: 0; }
.nav { gap: 20px; }
.hero2-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.u-card .u-tag { align-self: flex-start; }
.sec-head.center { max-width: 920px; }
.ph { font-size: 16px; }
.ph-row { font-size: 15.5px; }
.ph-row .u-key { font-size: 12.5px; }
.tile .u.t-mcp { background: #0B0F1A; color: #fff; }
.row-2 .tile-art { margin-top: auto; margin-bottom: auto; }
.feat-visual { max-width: 1040px; margin: 0 auto; padding: 0 6%; }
@media (min-width: 640px) { .cards.two-up { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) and (max-width: 1099px) { .bento > .span-2:last-child:nth-child(even) { grid-column: span 6; } }
