/* Imaginative Engineering: one stylesheet for the whole site.
   The site wears the product's own look (kyra-app src/agent/app/static/css/base.css, default theme):
   deep navy, holo-cyan accent, the assistant's amber, one colour per kind of work
   (tool = blue, job = gold, feed = mint, heartbeat = violet), Rajdhani / Exo 2 / Share Tech Mono. */
:root {
  color-scheme: dark;
  --accent-rgb: 56, 214, 255; --line-rgb: 120, 200, 240; --glow-rgb: 24, 110, 170; --agent-rgb: 255, 180, 68;
  --bg: #0d1a2a; --bg-elev: #122438; --bg-inset: #0a1624;
  --panel: rgba(12, 28, 46, 0.86); --panel-solid: #0f2034;
  --border: rgba(var(--line-rgb), 0.16); --border-strong: rgba(var(--line-rgb), 0.3); --border-accent: rgba(var(--accent-rgb), 0.45);
  --accent: #38d6ff; --accent-bright: #93e9ff; --accent-dim: #1b8fb3; --accent-soft: rgba(var(--accent-rgb), 0.12);
  --text: #e6f5fc; --text-dim: #a9c6d6; --text-faint: #7394a8;
  --ok: #5cf2b0; --warn: #ff7a8a;
  --agent: #ffb444; --agent-bright: #ffd08a;
  --c-tool: #60a5ff; --c-heartbeat: #a88cff; --c-feed: #4ade9f; --c-job: #ffd628;
  --radius-sm: 5px; --radius: 8px; --radius-lg: 10px;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font: "Exo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Share Tech Mono", "Cascadia Code", Consolas, monospace;
  --wrap: 1320px; --gutter: clamp(16px, 4.5vw, 64px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(var(--glow-rgb), 0.32), transparent 70%),
    linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  background-attachment: fixed, scroll, scroll, scroll;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-bright); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: 0.01em; }
h3 { font-size: 1.3rem; letter-spacing: 0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 4px; padding: 0.05rem 0.35rem; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hudlabel { font-family: var(--display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }
.fill { color: var(--agent-bright); font-family: var(--mono); font-size: 0.92em; } /* [placeholders] still to fill in */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- buttons (the app's .btn / .primary) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-inset); color: var(--text); font: 500 0.95rem var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, box-shadow .15s, background .15s;
}
.btn:hover { border-color: var(--accent-dim); color: var(--accent-bright); }
.btn.primary { background: rgba(var(--accent-rgb), 0.16); color: var(--accent-bright); border-color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.18); }
.btn.primary:hover { background: rgba(var(--accent-rgb), 0.26); color: #fff; box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.32); }
.btn.small { padding: 0.45rem 0.95rem; font-size: 0.86rem; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- header: the app's HUD bar ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13, 26, 42, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.24em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.brand small { color: var(--text-faint); font-weight: 600; letter-spacing: 0.2em; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); position: relative; }
.site-nav a:hover { color: var(--accent-bright); }
.site-nav a[aria-current="page"] { color: var(--accent-bright); background: var(--accent-soft); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: -11px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px; background: rgba(13, 26, 42, 0.98); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0.8rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin: 8px 0 0; }
  .brand small { display: none; }
}

/* ---- panels: the app's glass with its cyan corner brackets ---- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px); }
.brackets::before, .brackets::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; }
.brackets::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: var(--radius-lg); }
.brackets::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: var(--radius-lg); }

/* ---- sections ---- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text-dim); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---- hero ---- */
.hero { padding-top: clamp(44px, 6vw, 76px); text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.agent-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 40%, #fff4d8, var(--agent) 55%, #b86a10); box-shadow: 0 0 10px rgba(var(--agent-rgb), 0.8), 0 0 22px rgba(var(--agent-rgb), 0.4); }
.product-name { margin-top: 18px; font-size: clamp(1.7rem, 6.2vw, 4.6rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.35); overflow-wrap: anywhere; }
.hero .tagline { margin: 14px auto 0; max-width: 680px; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text); }
.hero .sub { margin: 10px auto 0; max-width: 640px; color: var(--text-dim); }
.hero .btn-row { justify-content: center; margin-top: 28px; }
.hero .meta { margin-top: 16px; font-family: var(--mono); font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---- the real app window: video or screenshot ---- */
.window { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--bg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.3); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #0b1726; border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--line-rgb), 0.18); }
.window-bar span { margin-left: 10px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-faint); }
.window-screen { aspect-ratio: 16 / 10; background: var(--bg); }
.window-screen > img, .window-screen > video { width: 100%; height: 100%; object-fit: cover; }

.showcase { position: relative; margin-top: clamp(40px, 6vw, 64px); }
.showcase::before { content: ""; position: absolute; inset: 8% 10% -6%; background: radial-gradient(ellipse at 50% 40%, rgba(var(--agent-rgb), 0.16), rgba(var(--glow-rgb), 0.22) 40%, transparent 70%); filter: blur(30px); z-index: -1; }
.chapters { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.chapter { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0.5rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; overflow: hidden;
  font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; }
.chapter:hover { color: var(--accent-bright); }
.chapter[aria-selected="true"] { color: var(--accent-bright); background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.25); }
.chapter .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chapter .n { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0; color: var(--text-faint); }
.showcase-caption { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 14px; font-size: 0.86rem; color: var(--text-faint); }
.showcase-caption b { color: var(--text-dim); font-weight: 500; }

/* ---- tour: tabs + real screenshots ---- */
.tour { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.tour-tabs { display: grid; gap: 4px; }
.tour-tab { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; font: inherit; }
.tour-tab b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.tour-tab span { display: none; font-size: 0.92rem; color: var(--text-dim); margin-top: 4px; }
.tour-tab:hover b { color: var(--accent-bright); }
.tour-tab[aria-selected="true"] { background: var(--panel); border-color: var(--border-accent); }
.tour-tab[aria-selected="true"] b { color: var(--accent-bright); }
.tour-tab[aria-selected="true"] span { display: block; }
.tour-view { position: sticky; top: 84px; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .tour-tab { flex: none; padding: 8px 12px; border-color: var(--border); }
  .tour-tab span { display: none !important; }
  .tour-view { position: static; }
  .tour-note { display: block !important; }
}
.tour-note { display: none; margin-top: 12px; color: var(--text-dim); font-size: 0.95rem; }

/* ---- features: cards like the app's job / tool cards ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; border-left: 3px solid var(--c, var(--accent)); }
.feature .ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--border-strong); color: var(--c, var(--accent)); background: var(--bg-inset); }
.feature .tag { font-family: var(--mono); font-size: 0.76rem; color: var(--c, var(--accent)); letter-spacing: 0.04em; }
.feature p { color: var(--text-dim); }
.oaa { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; gap: 2px; justify-self: start; font-family: var(--display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.oaa span { padding: 3px 12px; border-radius: 999px; color: var(--text-faint); }
.oaa span.on { background: var(--accent-soft); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.4); }

/* ---- two-column bands ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.wide-left { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-dim); }
.ticks li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ticks b { color: var(--text); font-weight: 600; }

.models { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-inset); font-size: 0.9rem; color: var(--text-dim); }
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--c-tool); }
.chip.local .d { background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* ---- phones ---- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); }
.phone { width: clamp(120px, 30%, 230px); border-radius: 28px; padding: 7px; background: #07111d; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.phone img { border-radius: 22px; aspect-ratio: 390 / 844; object-fit: cover; width: 100%; }
.phone.mid { transform: translateY(-24px); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price { display: grid; gap: 14px; align-content: start; }
.price .amount { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--text); }
.price .amount small { font-size: 1rem; color: var(--text-faint); font-weight: 600; letter-spacing: 0.1em; margin-left: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; color: var(--text-faint); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: var(--text-dim); }
.table-scroll { overflow-x: auto; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--border-accent); }
.faq details p { padding: 0 18px 16px; color: var(--text-dim); }

/* ---- the company band ---- */
.company { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .company { grid-template-columns: 1fr; } }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.services li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.services li .n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); width: 22px; }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---- previous work (company page) ---- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: start; }
.work-card { padding: 0; overflow: hidden; }
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-bottom: 1px solid var(--border); background: var(--bg-inset); }
.work-card div { padding: 14px 16px 16px; display: grid; gap: 4px; }
.work-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---- products list (company page, ready for product two) ---- */
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.product-card { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start; text-decoration: none; color: inherit; transition: border-color .15s; }
.product-card:hover { border-color: var(--border-accent); }
.product-card .agent-dot { margin-top: 8px; }
.product-card h3 { letter-spacing: 0.14em; text-transform: uppercase; overflow-wrap: anywhere; }
.product-card p { color: var(--text-dim); }
.product-card.soon { border-style: dashed; background: transparent; }
.product-card.soon .agent-dot { background: none; border: 1px dashed var(--text-faint); box-shadow: none; }
.status { font-family: var(--mono); font-size: 0.78rem; color: var(--ok); }
.soon .status { color: var(--text-faint); }

/* ---- CTA band ---- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---- forms (checkout, contact) ---- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg-inset); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.65rem 0.8rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-inset); color: var(--text); }
.agree input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.note { font-size: 0.88rem; color: var(--text-faint); }
.note.warn { color: var(--agent-bright); }
.mock { display: inline-block; font-family: var(--mono); font-size: 0.74rem; color: var(--agent-bright); border: 1px dashed rgba(var(--agent-rgb), 0.5); border-radius: 4px; padding: 1px 6px; }

/* ---- small pages ---- */
.page-head { padding-top: clamp(40px, 6vw, 72px); display: grid; gap: 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-faint); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent-bright); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.dl { display: grid; gap: 10px; align-content: start; }
.dl.mine { border-color: var(--border-accent); }
.dl .mine-tag { display: none; }
.dl.mine .mine-tag { display: inline; }

/* ---- legal pages (tools/legal_pages.py) ---- */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
.legal-nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-dim); text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-bright); }
@media (max-width: 820px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }
.prose { max-width: 760px; color: var(--text-dim); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); margin-bottom: 18px; }
.prose h2 { font-size: 1.5rem; color: var(--text); margin: 36px 0 12px; }
.prose h3 { font-size: 1.15rem; color: var(--text); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-scroll { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--agent); padding: 8px 14px; background: rgba(var(--agent-rgb), 0.06); color: var(--text); }

/* ---- footer ---- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--border); background: rgba(10, 22, 36, 0.6); padding: 44px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); }

/* ---- entrance motion ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- v3.1: the Sylvie landing ---- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 120px); align-items: center; text-align: left; padding-top: clamp(24px, 4vw, 56px); }
.hero-split .product-name { font-size: clamp(2.6rem, 7vw, 5.4rem); margin-top: 14px; letter-spacing: 0.14em; }
.hero-split .tagline, .hero-split .sub { margin-left: 0; }
.hero-split .btn-row { justify-content: flex-start; }
.neural { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto 0; }
@media (max-width: 900px) { .neural { margin-inline: auto; } }
/* Recorded on pure black and blended on as light, so it has no edge: black is the page's own background. */
.neural video, .neural img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.neural::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-rgb), 0.35), transparent 70%); filter: blur(34px); }
.neural .live { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(10, 22, 36, 0.8); font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); white-space: nowrap; max-width: 94%; }
.neural .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; text-align: center; } .hero-split .btn-row { justify-content: center; } .neural { max-width: 420px; order: -1; } .hero-split .product-name { font-size: clamp(2.2rem, 11vw, 4rem); } }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.mode { display: grid; gap: 8px; align-content: start; }
.mode .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-inset); color: var(--c, var(--accent)); box-shadow: 0 0 16px color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }
.mode h3 { font-size: 1.15rem; }
.mode p { color: var(--text-dim); font-size: 0.95rem; }
.mode .when { font-family: var(--mono); font-size: 0.76rem; color: var(--c, var(--accent)); letter-spacing: 0.04em; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } }
.big-stat { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--text); }
.big-stat small { font-size: 0.9rem; color: var(--text-faint); letter-spacing: 0.12em; margin-left: 8px; font-weight: 600; }

.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; fill: var(--text-dim); text-transform: uppercase; }
.diagram .mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0; fill: var(--text-faint); text-transform: none; }
.diagram .line { stroke: rgba(var(--accent-rgb), 0.45); stroke-width: 1.5; stroke-dasharray: 4 6; }
.diagram .node { fill: var(--bg-inset); stroke: var(--border-strong); }
.diagram .hub { fill: var(--panel-solid); stroke: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 1.6rem; color: var(--accent); }
.step p { color: var(--text-dim); }

.menu { position: relative; display: inline-block; }
.menu-list { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 5; padding: 6px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--modal-bg, rgba(10, 26, 44, 0.98)); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.menu-list.open { display: grid; }
.menu-list a { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-dim); text-decoration: none; font-size: 0.95rem; }
.menu-list a:hover { background: var(--accent-soft); color: var(--accent-bright); }
.subnav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.subnav .links { display: flex; gap: 2px; flex-wrap: wrap; }
.subnav .links a { padding: 6px 10px; border-radius: var(--radius-sm); font-family: var(--display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
.subnav .links a:hover { color: var(--accent-bright); }
.caption { margin-top: 12px; font-size: 0.88rem; color: var(--text-faint); }
.caption b { color: var(--text-dim); font-weight: 500; }

/* ---- the hero with the neural view across the full width ---- */
.hero-stack { padding-top: clamp(32px, 5vw, 64px); }
.hero-stack .product-name { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: 0.16em; }
.neural-wide { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.neural-wide video { width: 100%; max-width: 940px; height: auto; display: block; margin-inline: auto; mix-blend-mode: screen; }
.neural-wide::before { content: ""; position: absolute; left: 25%; right: 25%; top: 15%; bottom: 15%; border-radius: 50%; background: radial-gradient(ellipse, rgba(var(--glow-rgb), 0.35), transparent 70%); filter: blur(40px); }
.neural-wide .live { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(10, 22, 36, 0.8); font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); white-space: nowrap; max-width: 94%; }
.neural-wide .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---- v5: the company home page ---- */
.home { padding-top: clamp(28px, 5vw, 64px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.home-copy { display: grid; gap: clamp(36px, 5vw, 64px); }
.home-block { display: grid; gap: 14px; }
.home-block h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.home-block .btn-row { margin-top: 6px; }
.home-orb { display: grid; gap: 8px; }
.home-orb .neural-wide { margin-top: -4%; }
.orb-notes { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: start; margin-top: -4%; }
.supported ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.supported li { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.supported li .i { color: var(--accent); fill: currentColor; stroke: none; width: 20px; height: 20px; }
.soon { display: grid; gap: 10px; padding: 16px 18px; border: 1px dashed rgba(var(--agent-rgb), 0.45); border-radius: var(--radius); background: rgba(var(--agent-rgb), 0.05); }
.soon-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.home-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 16px 18px; transition: border-color .15s; }
.link-card:hover { border-color: var(--border-accent); }
.link-card .i { width: 26px; height: 26px; color: var(--accent); }
.link-card div { display: grid; gap: 2px; }
.link-card b { font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; }
.link-card span { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-orb { order: -1; }
  .orb-notes { grid-template-columns: 1fr; margin-top: 0; }
  .home-links { grid-template-columns: 1fr; }
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.footer-row nav a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-row nav a:hover { color: var(--accent-bright); }
.site-footer .legal { margin-top: 22px; }

/* ---- v5.1: the company name top centre, then the two columns ---- */
.home-head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px); }
.home-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.home-grid { align-items: center; }
.home-orb .neural-wide { margin-top: -6%; }
.supported.row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: -6%; }
.supported.row ul { display: flex; gap: 10px 22px; margin: 0; }
.home-orb .soon { margin-top: 14px; }
@media (max-width: 900px) { .home-orb .neural-wide, .supported.row { margin-top: 0; } }

/* ---- v5.2: company name as the heading; columns aligned to the top; coming soon as a line ---- */
.company-name { font-size: clamp(1.9rem, 4.6vw, 3.6rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.home-head { max-width: 760px; }
.home-grid { align-items: start; }
.home-copy, .home-orb { padding-top: 0; }
.home-orb { gap: 18px; }
.home-orb .neural-wide { margin-top: -10%; margin-bottom: -6%; }
.supported.row { margin-top: 0; }
.soon-big { display: inline-flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.8rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--agent); text-shadow: 0 0 22px rgba(var(--agent-rgb), 0.35); }
.blink { width: 16px; height: 16px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 12px rgba(var(--agent-rgb), 0.9), 0 0 28px rgba(var(--agent-rgb), 0.5); animation: blink 1.4s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0.15; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }
@media (max-width: 900px) { .home-orb .neural-wide { margin: 0; } }
/* the header spans the window: brand in the corner, nav on the far right, like any product site */
.site-header .wrap { width: 100%; max-width: none; padding: 0 clamp(16px, 2vw, 28px); }
.site-header .brand { font-size: 1rem; }
.site-header .brand small { font-size: 0.78rem; }
.home-grid { align-items: center; }
.home-orb .neural-wide { margin-top: -6%; margin-bottom: -8%; }
.home-copy { padding-bottom: 6%; }

/* ---- v6: the compact Sylvie page: rows of columns, little scrolling ---- */
.compact .section { padding-block: clamp(28px, 4vw, 48px); }
.compact .section-head { margin-bottom: 20px; }
.compact .section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.compact .lead { font-size: 1.02rem; }
.phero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-top: clamp(24px, 4vw, 48px); }
.phero .product-name { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 10px; }
.phero .tagline, .phero .sub { margin-left: 0; }
.phero .showcase { margin-top: 0; }
.phero .showcase .chapters { justify-content: flex-start; }
@media (max-width: 900px) { .phero { grid-template-columns: 1fr; } }
.modes.five { grid-template-columns: repeat(5, 1fr); }
.modes.five .mode { padding: 16px; gap: 6px; }
.modes.five .mode .ico { width: 32px; height: 32px; }
.modes.five .mode h3 { font-size: 1rem; }
.modes.five .mode p { font-size: 0.88rem; }
@media (max-width: 1100px) { .modes.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .modes.five { grid-template-columns: 1fr 1fr; } }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.tour-grid figure { margin: 0; display: grid; gap: 10px; }
.tour-grid figcaption { display: grid; gap: 4px; }
.tour-grid figcaption b { font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.86rem; color: var(--accent); }
.tour-grid figcaption span { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 800px) { .tour-grid { grid-template-columns: 1fr; } }
.faq.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; }
.faq.cols details { align-self: start; }
@media (max-width: 800px) { .faq.cols { grid-template-columns: 1fr; } }
.steps.inline { grid-template-columns: repeat(3, 1fr); }
.steps.inline .step { padding: 14px 16px; gap: 6px; }
.steps.inline .step::before { font-size: 1.1rem; }
.steps.inline .step h3 { font-size: 1rem; }
.steps.inline .step p { font-size: 0.92rem; }
@media (max-width: 800px) { .steps.inline { grid-template-columns: 1fr; } }
.compact .price .amount { font-size: 2.6rem; }

.home-head { max-width: 1000px; }
.home-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); white-space: nowrap; }
.home-head .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
@media (max-width: 600px) { .home-head h1 { white-space: normal; } }

/* ---- v6.1: home tightened: less top space, smaller orb, smaller coming soon, supported-on under the text ---- */
.home { padding-top: clamp(16px, 2.5vw, 32px); }
.home-head { margin-bottom: clamp(12px, 2vw, 24px); }
.home-grid { gap: clamp(24px, 4vw, 56px); }
.home-orb { justify-items: center; }
.home-orb .neural-wide { max-width: 520px; width: 100%; margin-top: -8%; margin-bottom: -5%; }
.home-orb .neural-wide video { max-width: 100%; }
.home-copy { padding-bottom: 0; }
.home-copy .supported.row { margin-top: 18px; }
.soon-big { font-size: clamp(1.1rem, 1.9vw, 1.5rem); gap: 12px; }
.blink { width: 11px; height: 11px; }
.home-links { margin-top: clamp(28px, 4vw, 48px); }

/* ---- v7: the home heading's arrow, the coming-soon notification, the slide deck, pop-ups ---- */
.home-head h1 .arrow { color: var(--accent); margin: 0 0.15em; font-weight: 500; }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--panel); box-shadow: var(--shadow-2, 0 14px 40px rgba(0, 0, 0, 0.4)); max-width: 420px; margin-top: 6px; }
.toast-dot { position: relative; width: 14px; height: 14px; flex: none; }
.toast-dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--agent); box-shadow: 0 0 10px rgba(var(--agent-rgb), 0.8); }
.toast-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(var(--agent-rgb), 0.6); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.toast div { display: grid; gap: 2px; }
.toast b { font-family: var(--display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.86rem; color: var(--agent-bright); }
.toast span { color: var(--text-dim); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .toast-dot::after { animation: none; } }
.soon-big, .blink { display: none; }

.deck { position: relative; overflow: hidden; }
.deck-track { display: flex; transition: transform .6s var(--ease); }
.slide { flex: 0 0 100%; min-width: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: 2px; }
.slide figcaption { display: grid; gap: 8px; }
.slide figcaption b { font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; color: var(--accent); }
.slide figcaption span { color: var(--text-dim); }
.slide[aria-hidden="true"] { visibility: hidden; }
@media (max-width: 900px) { .slide { grid-template-columns: 1fr; } }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }

button.window, button.phone { padding: 0; border: 1px solid var(--border-strong); cursor: zoom-in; text-align: left; font: inherit; color: inherit; display: block; width: 100%; }
button.phone { padding: 7px; border-radius: 28px; width: auto; }
button.window:hover, button.phone:hover { border-color: var(--accent-dim); }
.phones.small { justify-content: flex-start; margin-top: 6px; }
.phones.small .phone { width: clamp(90px, 22%, 130px); }
.phones.small .phone.mid { transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(10, 22, 36, 0.92); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox img { max-width: min(1440px, 100%); max-height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }

table.notices td:first-child { white-space: normal; }
table.notices td, table.notices th { padding: 8px 12px; font-size: 0.9rem; }
.prose .table-scroll { max-height: none; }

.lightbox[hidden] { display: none; }

/* ---- v8: the screens tour: a list of screens beside a stage ---- */
.tour2 { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.tour-list { display: grid; align-content: start; gap: 6px; }
.tour-item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px 14px 14px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; font: inherit; overflow: hidden; transition: background .2s, border-color .2s; }
.tour-item:hover { background: rgba(var(--accent-rgb), 0.07); }
.tour-item[aria-selected="true"] { background: var(--panel); border-color: var(--border-strong); }
.tour-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-inset); color: var(--c, var(--accent)); }
.tour-ico .i { width: 18px; height: 18px; }
.tour-item[aria-selected="true"] .tour-ico { border-color: var(--c, var(--accent)); box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); }
.tour-text { display: grid; gap: 1px; min-width: 0; }
.tour-text b { font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.9rem; color: var(--text); }
.tour-text span { font-size: 0.86rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-item[aria-selected="true"] .tour-text b { color: var(--accent-bright); }
.tour-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(var(--line-rgb), 0.1); opacity: 0; }
.tour-item[aria-selected="true"] .tour-bar { opacity: 1; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.tour-item[aria-selected="true"] .tour-bar i { animation: tour-fill var(--dur, 7s) linear forwards; }
.tour2.paused .tour-bar i { animation-play-state: paused; }
@keyframes tour-fill { from { width: 0; } to { width: 100%; } }
.tour-stage { position: relative; display: grid; }
.tour-pane { grid-area: 1 / 1; margin: 0; display: grid; gap: 12px; align-content: start; animation: pane-in .55s var(--ease) both; }
.tour-pane[hidden] { display: none; }
@keyframes pane-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.tour-pane figcaption { color: var(--text-dim); font-size: 0.98rem; padding: 0 2px; }
.tour-count { position: absolute; top: -26px; right: 2px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); }
@media (max-width: 900px) {
  .tour2 { grid-template-columns: 1fr; }
  .tour-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .tour-item { flex: none; grid-template-columns: 30px 1fr; padding: 8px 12px 10px; }
  .tour-text span { display: none; }
  .tour-ico { width: 30px; height: 30px; }
  .tour-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-pane { animation: none; } .tour-item[aria-selected="true"] .tour-bar i { animation: none; width: 100%; } }
.deck, .deck-nav { display: none; }

/* pop-ups always fit the window they open in */
.lightbox { padding: clamp(16px, 4vw, 48px); }
.lightbox img { width: auto; height: auto; max-width: calc(100vw - 2 * clamp(16px, 4vw, 48px)); max-height: calc(100vh - 2 * clamp(16px, 4vw, 48px)); object-fit: contain; }
.lightbox video { width: auto; height: auto; max-width: calc(100vw - 2 * clamp(16px, 4vw, 48px)); max-height: calc(100vh - 2 * clamp(16px, 4vw, 48px)); border-radius: var(--radius-lg); }
.lightbox [hidden] { display: none; }
.neural-wide video, .window-screen video { max-width: 100%; max-height: 100%; }
.phones .phone { width: clamp(110px, 28%, 190px); }

/* ---- no stray scrollbars: lists scroll silently, tables wrap instead of scrolling ---- */
.tour-list::-webkit-scrollbar, .site-nav::-webkit-scrollbar { display: none; }
.table-scroll { overflow: visible; }
table { table-layout: auto; }
td, th { overflow-wrap: anywhere; }
td:first-child { white-space: normal; }
.prose table td:first-child { font-weight: 500; }
table.notices { font-size: 0.88rem; }
table.notices th:nth-child(2), table.notices td:nth-child(2), table.notices th:nth-child(3), table.notices td:nth-child(3) { white-space: nowrap; }
@media (max-width: 640px) { table.notices th:nth-child(2), table.notices td:nth-child(2) { display: none; } }
html, body { overflow-x: clip; }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.prose .stamp, .prose .stamp strong { color: var(--text-faint); font-family: var(--mono); font-size: 0.86rem; font-weight: 400; }
.prose h2 { font-size: 1.15rem; margin: 28px 0 8px; letter-spacing: 0.02em; }
.prose p, .prose li { font-size: 0.98rem; line-height: 1.6; }
.prose li { margin-bottom: 4px; }
.prose table { font-size: 0.9rem; }
.prose th, .prose td { padding: 8px 10px; vertical-align: top; }

/* the stage sits about as tall as the list beside it */
.tour-pane .window { max-width: 780px; }
.tour-stage { max-width: 780px; }

/* the orb starts level with "Our first product", nothing clipped */
.home-grid { align-items: start; }
.home-orb .neural-wide { margin-top: 0; margin-bottom: -4%; }
.home-copy { padding-bottom: 0; }

.home-links { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 900px) { .home-links { grid-template-columns: 1fr; } }

/* the product page's hero: text column starts level with the top of the recording */
.phero { align-items: start; }
.phero .showcase .chapters { margin-bottom: 10px; }
.phero > div:first-child { padding-top: 0; }
.phero .eyebrow { margin-top: 0; }

/* room between the product page's rows */
.compact .section { padding-block: clamp(40px, 5.5vw, 72px); }
.compact .section + .section { border-top: 1px solid var(--border); margin-top: 0; }
.compact .section[style*="padding-top:0"] { padding-top: clamp(40px, 5.5vw, 72px) !important; }
.compact .section-head { margin-bottom: 24px; }

.phero .showcase .chapters { justify-content: flex-start; }
.phero .eyebrow { line-height: 1; }
.tour-item[aria-selected="true"] .tour-text b { color: var(--c, var(--accent-bright)); }

/* the tour: heading and list in the left column, the stage beside them starting level with the heading */
.tour2 { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); align-items: start; }
.tour-side { display: grid; gap: 18px; align-content: start; }
.tour-side .section-head { margin: 0; }
.tour-side .section-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.tour-pane .window, .tour-stage { max-width: none; }
.tour-count { top: auto; bottom: -26px; }
@media (max-width: 900px) { .tour-side { gap: 12px; } }
.phero .eyebrow { margin-top: 4px; }

/* the orb sits level with "Our first product": the black margin above the sphere is pulled up */
.home-orb .neural-wide { margin-top: -9%; }

.toast { max-width: none; width: max-content; padding: 10px 18px 10px 14px; }
.toast b { font-size: 0.95rem; }

/* coming soon: a slim, wide notification under the orb */
.toast { width: 100%; max-width: 520px; padding: 8px 14px; gap: 10px; border-radius: var(--radius); justify-self: center; }
.toast b { font-size: 0.8rem; letter-spacing: 0.2em; }
.toast-dot { width: 10px; height: 10px; }
.toast-dot::after { inset: -3px; }

/* the orb column fills the row: orb at the top, notification at the bottom, level with "Supported on" */
.home-grid { align-items: stretch; }
.home-orb { grid-template-rows: 1fr auto; align-content: space-between; }
.home-orb .toast { align-self: end; margin-bottom: 6px; }

.home-orb .neural-wide { margin-top: -5%; }

/* Supported on sits at the bottom of the left column, level with the coming-soon notification */
.home-copy { display: flex; flex-direction: column; }
.home-copy .home-block { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.home-copy .home-block > * { margin-top: 0; margin-bottom: 0; }
.home-copy .supported.row { margin-top: auto !important; padding-bottom: 6px; padding-top: 18px; }
.home-copy .btn-row { margin-top: 6px; }

/* product hero: room around the buttons, the same Supported on row as the home page, then three facts */
.phero .sub { margin-bottom: 4px; }
.phero .hero-actions { margin-top: 22px; gap: 12px; }
.phero .supported.row { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-facts span { font-size: 0.86rem; color: var(--text-dim); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-inset); }
.phero .tagline { margin-top: 14px; font-size: 1.15rem; color: var(--text); }
.phero .sub { margin-top: 12px; color: var(--text-dim); }

/* every video opens full size too */
video.expandable { cursor: zoom-in; }
.lightbox video.blend { mix-blend-mode: screen; background: transparent; }
.lightbox { background: rgba(13, 26, 42, 0.96); }
.lightbox video { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox video.blend { box-shadow: none; border: 0; }
.lightbox video { width: min(calc(100vw - 2 * clamp(16px, 4vw, 48px)), calc((100vh - 2 * clamp(16px, 4vw, 48px)) * var(--ar, 1.6))); height: auto; }
.lightbox video { aspect-ratio: var(--ar, 1.6); }

/* smooth media: recordings cross-fade over their own first frame; images fade in once decoded; pop-ups fade */
.showcase .window-screen { background: var(--bg) center / cover no-repeat; }
.showcase video { transition: opacity .25s ease; }
.showcase video.fading { opacity: 0; }
.tour-pane img, .phone img, .work-card img { background: var(--bg-inset); }
.lightbox:not([hidden]) { animation: lb-in .2s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.neural-wide video { background: transparent; }
@media (prefers-reduced-motion: reduce) { .showcase video { transition: none; } .lightbox:not([hidden]) { animation: none; } }

/* phones: the whole company name, smaller; the notices table a touch smaller so names wrap at their slashes */
@media (max-width: 860px) {
  .brand small { display: inline; }
  .site-header .brand { font-size: 0.8rem; letter-spacing: 0.18em; gap: 8px; }
  .site-header .brand small { font-size: 0.66rem; letter-spacing: 0.16em; }
}
@media (max-width: 640px) {
  table.notices td, table.notices th { font-size: 0.78rem; padding: 7px 6px; }
  table.notices td:first-child { overflow-wrap: break-word; word-break: normal; }
}

/* tour progress: one bar, scaled rather than resized, so it moves smoothly */
.tour-bar i { width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.tour-item[aria-selected="true"] .tour-bar i { animation: none; }

/* Supported on: the systems under the title */
.supported.stack { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
.supported.stack ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; }
.supported.stack li { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.supported.stack li .i { color: var(--accent); fill: currentColor; stroke: none; width: 20px; height: 20px; }
.home-copy .supported.stack { margin-top: auto !important; padding-bottom: 6px; }

/* pages fade into each other where the browser supports it; first-screen content doesn't animate in */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.reveal.now { transition: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.draw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.draw-grid figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.draw-grid figcaption { color: var(--text-dim); font-size: 0.95rem; }
.window-screen.tall { aspect-ratio: 1440 / 1000; }
@media (max-width: 800px) { .draw-grid { grid-template-columns: 1fr; } }

/* a product's own tabs, under the main header */
.product-tabs { position: sticky; top: 60px; z-index: 19; background: rgba(13, 26, 42, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.product-tabs .wrap { display: flex; align-items: center; gap: 8px 22px; min-height: 48px; }
.product-tabs-name { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; letter-spacing: 0.2em; font-size: 0.92rem; color: var(--accent); text-decoration: none; }
.product-tabs-name .agent-dot { width: 9px; height: 9px; }
.product-tabs-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.product-tabs-links::-webkit-scrollbar { display: none; }
.product-tabs-links a { position: relative; flex: none; padding: 0.7rem 0.85rem; font-family: var(--display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
.product-tabs-links a:hover { color: var(--accent-bright); }
.product-tabs-links a[aria-current="page"] { color: var(--accent-bright); }
.product-tabs-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); border-radius: 2px; }
@media (max-width: 640px) { .product-tabs-name { display: none; } .product-tabs .wrap { min-height: 44px; } }
html { scroll-padding-top: 120px; }
.more-link { justify-self: start; color: var(--accent-bright); text-decoration: none; font-size: 0.92rem; }
.more-link:hover { text-decoration: underline; }

/* the Legal page: a tab list beside one section at a time */
.legal-nav a[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-bright); }
.legal-sec[hidden] { display: none; }

/* Ideas & guides */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.jump a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.jump a:hover { color: var(--accent-bright); border-color: var(--accent-dim); }
.idea-group { display: grid; gap: 12px; margin-bottom: 28px; }
.idea-head { display: flex; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.idea-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.idea { display: grid; gap: 8px; align-content: start; padding: 18px; }
.idea .ask { color: var(--text); font-weight: 500; }
.idea p:not(.ask) { color: var(--text-dim); font-size: 0.94rem; }
.uses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.uses span { font-family: var(--mono); font-size: 0.74rem; color: var(--text-faint); border: 1px solid var(--border); border-radius: 4px; padding: 1px 7px; }
.concepts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.concept { display: grid; gap: 8px; align-content: start; padding: 18px; }
.concept .n, .guide .n { font-family: var(--mono); color: var(--accent); }
.concept h3 { font-size: 1.05rem; }
.concept p { color: var(--text-dim); font-size: 0.92rem; }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.guide { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.guide div { display: grid; gap: 2px; }
.guide b { font-weight: 600; }
.guide div span { color: var(--text-dim); font-size: 0.92rem; }
.soon-tag { font-family: var(--display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--agent-bright); border: 1px solid rgba(var(--agent-rgb), 0.45); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 1100px) { .concepts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .ideas, .guide-list { grid-template-columns: 1fr; } .concepts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .concepts { grid-template-columns: 1fr; } }

/* ---- footer: copyright line only ---- */
.site-footer { padding: 22px 0; }
.site-footer .legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- not open yet: shown, not clickable; a small note on hover or tap (data-soon) ---- */
.locked { position: relative; cursor: default; }
.locked::after {
  content: attr(data-soon); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400;
  color: var(--agent-bright); background: var(--bg-elev); border: 1px solid rgba(var(--agent-rgb), 0.45);
  border-radius: var(--radius-sm); padding: 4px 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); z-index: 5;
}
.locked:hover::after, .locked:focus::after { opacity: 1; transform: translate(-50%, 0); }
.locked:focus { outline: none; }
/* the Buy button: muted, with its note to the right */
.btn.locked { color: var(--text-faint); background: rgba(var(--accent-rgb), 0.05); border-color: var(--border); box-shadow: none; }
.btn.locked:hover { transform: none; color: var(--text-faint); background: rgba(var(--accent-rgb), 0.05); border-color: var(--border); box-shadow: none; }
.btn.locked::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(-4px, -50%); }
.btn.locked:hover::after, .btn.locked:focus::after { transform: translate(0, -50%); }
.link-card.locked:hover { border-color: var(--border); }
.link-card.locked .i { opacity: 0.6; }
.site-nav .locked { font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); padding: 0.45rem 0.8rem; }
.site-nav .locked::after { bottom: auto; top: calc(100% + 6px); transform: translate(-50%, -4px); }
.site-nav .locked:hover::after, .site-nav .locked:focus::after { transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .site-nav .locked { padding: 0.75rem 0.8rem; display: flex; justify-content: space-between; align-items: center; }
  .site-nav .locked::after { position: static; opacity: 1; transform: none; box-shadow: none; }
  .btn.locked::after, .btn.locked:hover::after, .btn.locked:focus::after { opacity: 1; transform: translate(0, -50%); }
  .link-card.locked::after { display: none; }
  .link-card.locked b::after { content: " · Coming soon"; color: var(--agent-bright); font-weight: 500; }
}

/* ---- "What it runs on": keep the system names whole on phones ---- */
.price-grid td:first-child { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { .price-grid td { padding-left: 10px; padding-right: 10px; } }

/* ---- phones: text that differs by screen size ---- */
.on-phone { display: none; }
@media (max-width: 760px) { .on-phone { display: inline; } .on-desktop { display: none; } }

/* ---- phones: "Inside the app" is a column of every screen, not a deck ---- */
@media (max-width: 760px) {
  .tour2 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-list, .tour-count { display: none; }
  .tour-stage { gap: 26px; }
  .tour-pane, .tour-pane[hidden] { grid-area: auto; display: grid; animation: none; }
  .tour-pane figcaption { font-size: 0.95rem; }
}

/* ---- phones: the five ways to reach it, one per row ---- */
@media (max-width: 560px) {
  .modes.five { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .modes.five .mode { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; align-items: start; }
  .modes.five .mode > * { grid-column: 2; }
  .modes.five .mode > .ico { grid-column: 1; grid-row: 1 / span 3; }
}
