/* Tirrus marketing — design system.
   Monochrome UI (ink on white, white on black) with the brand green reserved for
   moments: the featured plan, the closing card, accents on hover. Geist for
   everything. Two themes, chosen before first paint by the inline script in
   each page's <head>, toggled from the nav, remembered in localStorage. */

:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #ebebeb;
  --ink: #0a0a0a;
  --ink-2: #3d3d3d;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #e8e8e8;
  --line-2: #f1f1f1;
  --dot: rgba(10, 10, 10, .09);
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  /* Mono and lime. --accent-2 is the accent for text and icons (ink here, lime in
     dark: lime text on white is unreadable); --lime is the accent for fills. */
  --accent: #0a0a0a;
  --accent-2: #0a0a0a;
  --accent-soft: rgba(196, 232, 30, .22);
  --lime: #d4f53c;
  --on-lime: #0a0a0a;
  --mint: #d4f53c;
  --deep: #0a0a0a;
  --nav-bg: rgba(255, 255, 255, .78);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, .05);
  --shadow: 0 1px 2px rgba(10, 10, 10, .04), 0 12px 32px -16px rgba(10, 10, 10, .18);
  --shadow-lg: 0 2px 4px rgba(10, 10, 10, .04), 0 30px 80px -30px rgba(10, 10, 10, .28);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --surface-3: #1d1d1d;
  --ink: #f5f5f3;
  --ink-2: #cfcfcf;
  --muted: #8f8f8f;
  --faint: #5d5d5d;
  --line: #222222;
  --line-2: #181818;
  --dot: rgba(255, 255, 255, .09);
  --primary: #f5f5f3;
  --on-primary: #0a0a0a;
  --accent: #d4f53c;
  --accent-2: #d4f53c;
  --accent-soft: rgba(212, 245, 60, .12);
  --deep: #161616;
  --nav-bg: rgba(12, 12, 12, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 30px 80px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 500; font-size: .92rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn.primary {
  background: var(--primary); color: var(--on-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .2);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn.outline { border: 1px solid var(--line); background: var(--surface); }
.btn.outline:hover { background: var(--surface-2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: .86rem; }
.btn.lg { height: 46px; padding: 0 22px; font-size: .98rem; }
.btn.block { width: 100%; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), 100% - 24px);
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.03em; }
.brand svg { width: 26px; height: 26px; color: var(--ink); }
.nav-links { display: flex; gap: 2px; margin-left: 18px; }
.nav-links a {
  padding: 6px 12px; border-radius: 999px; font-size: .9rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  color: var(--muted); transition: color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn.ghost { display: none; }
  .menu-btn { display: grid; }
  .nav.open .mobile-menu {
    display: grid; gap: 2px; padding: 6px 10px 14px; border-top: 1px solid var(--line);
  }
  .mobile-menu a { padding: 11px 8px; border-radius: 10px; font-size: 1.02rem; }
  .mobile-menu a:hover { background: var(--surface-2); }
  .mobile-menu .btn { margin-top: 8px; }
}

/* ── Backgrounds ──────────────────────────────────────────────────────── */
.dot-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: 148px 0 40px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .84rem; color: var(--ink-2); transition: border-color .2s, transform .2s var(--ease);
}
.badge:hover { border-color: var(--faint); transform: translateY(-1px); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge .go { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); }
.badge .go svg { width: 12px; height: 12px; }
.hero h1 {
  margin: 26px auto 0; max-width: 14ch; text-wrap: balance;
  font-size: clamp(2.7rem, 6vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em;
}
.hero h1 .w {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(14px);
  animation: word-in .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
@keyframes word-in { to { opacity: 1; filter: none; transform: none; } }
.hero .lede {
  margin: 24px auto 0; max-width: 780px; font-size: clamp(1.05rem, 1.3vw, 21px); color: var(--muted); text-wrap: balance;
  opacity: 0; animation: fade-up .8s var(--ease) .55s forwards;
}
.hero-cta {
  display: flex; justify-content: center; gap: 10px; margin-top: 30px;
  opacity: 0; animation: fade-up .8s var(--ease) .7s forwards;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Product frame and the coded app inside it */
.frame {
  position: relative; margin: 64px auto 0; width: min(1060px, 100%);
  padding: 10px; border-radius: 26px; border: 1px solid var(--line);
  background: var(--surface-2); box-shadow: var(--shadow-lg);
  opacity: 0; animation: frame-in 1.1s var(--ease) .85s forwards;
}
@keyframes frame-in { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
.frame::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 38%;
  border-radius: 0 0 26px 26px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.app {
  display: grid; grid-template-columns: 230px 1fr; height: 540px; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left;
}
.app-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--bg-soft); }
.app-side .brand { padding: 2px 6px 12px; font-size: .95rem; }
.app-side .brand svg { width: 22px; height: 22px; }
.app-new { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; font-weight: 500; }
.app-new svg { width: 14px; height: 14px; }
.app-label { margin: 14px 8px 4px; font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.app-item { padding: 7px 10px; border-radius: 9px; font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-item.on { background: var(--surface-3); color: var(--ink); }
.app-item .ag { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); vertical-align: -4px; }
.app-item .ag svg { width: 12px; height: 12px; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .76rem; font-weight: 500; color: var(--ink-2); }
.pill svg { width: 12px; height: 12px; }
.pill .live { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 10, 10, .12); }
.app-thread { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 26px 40px; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 72%; padding: 10px 15px; border-radius: 16px; background: var(--surface-2); font-size: .9rem; }
.msg-user .att { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 5px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.msg-user .att svg { width: 13px; height: 13px; }
.msg-ai { display: grid; grid-template-columns: 26px 1fr; gap: 12px; max-width: 86%; font-size: .9rem; color: var(--ink-2); }
.msg-ai .av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg); }
.msg-ai .av svg { width: 16px; height: 16px; }
.msg-ai b { color: var(--ink); font-weight: 600; }
.msg-ai ul { display: grid; gap: 6px; margin: 8px 0; }
.msg-ai li { position: relative; padding-left: 16px; }
.msg-ai li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.searched { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .76rem; color: var(--muted); }
.searched svg { width: 13px; height: 13px; }
.app-composer { margin: 0 32px 22px; padding: 12px 12px 10px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.app-composer .ph { font-size: .9rem; color: var(--faint); padding-bottom: 14px; }
.app-composer .bar { display: flex; align-items: center; gap: 6px; }
.app-composer .send { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.app-composer .send svg { width: 14px; height: 14px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { padding: 112px 0 0; }
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 14px; font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.sec-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.sec-head p { margin-top: 16px; font-size: 1.04rem; color: var(--muted); }

/* Proof row — four plain facts in place of a logo wall we have not earned */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 30px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-size: 1.34rem; font-weight: 600; letter-spacing: -.035em; }
.fact span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* ── Bento ────────────────────────────────────────────────────────────── */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.cell { position: relative; padding: 34px 34px 0; border-color: var(--line); border-style: solid; border-width: 0; overflow: hidden; }
.cell.a { grid-column: span 7; border-right-width: 1px; border-bottom-width: 1px; }
.cell.b { grid-column: span 5; border-bottom-width: 1px; }
.cell.c { grid-column: span 5; border-right-width: 1px; }
.cell.d { grid-column: span 7; }
.cell h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -.025em; }
.cell > p { margin-top: 8px; max-width: 420px; font-size: .95rem; color: var(--muted); }
.cell-art { position: relative; height: 330px; margin-top: 30px; }
.cell-art.fade::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }

.mock { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.agent { width: min(430px, 100%); margin: 0 auto; padding: 18px 18px 6px; }
.agent-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.agent-top .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--deep); color: var(--mint); }
.agent-top .ic svg { width: 22px; height: 22px; }
.agent-top b { display: block; font-size: .95rem; font-weight: 600; }
.agent-top span { font-size: .8rem; color: var(--muted); }
.agent-ins { margin: 14px 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font: .78rem/1.55 var(--mono); color: var(--ink-2); }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.opt-row:last-child { border-bottom: 0; }
.opt-row small { display: block; font-size: .76rem; color: var(--muted); }
.switch { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(14px); }
.sched { font: 500 .76rem var(--mono); color: var(--accent-2); }

.chat { display: grid; gap: 12px; width: min(400px, 100%); margin: 0 auto; }
.chat .q { justify-self: end; max-width: 85%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--primary); color: var(--on-primary); font-size: .86rem; }
.chat .a { padding: 14px; font-size: .86rem; color: var(--ink-2); }
.chat .a p + p { margin-top: 8px; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: .74rem; color: var(--muted); }
.src i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); font: 600 .6rem var(--mono); font-style: normal; color: var(--ink-2); }

.models { width: min(420px, 100%); margin: 0 auto; padding: 8px; }
.model { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; }
.model + .model { margin-top: 2px; }
.model.on { background: var(--surface-2); }
.model .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.model .ic svg { width: 20px; height: 20px; }
.model b { display: block; font-size: .92rem; font-weight: 600; }
.model span { font-size: .8rem; color: var(--muted); }
.model .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }
.model .tick svg { width: 12px; height: 12px; }
.model .tag { font: 500 .7rem var(--mono); color: var(--muted); }
.models-note { display: flex; align-items: center; gap: 8px; margin: 12px 12px 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
.models-note svg { width: 14px; height: 14px; color: var(--accent-2); }

.globe-art { height: 360px; }
.globe { position: absolute; right: -60px; bottom: -150px; width: 520px; height: 520px; }
.chip-rows { position: absolute; left: 0; right: 0; top: 4px; display: grid; gap: 10px; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.chip svg { width: 14px; height: 14px; color: var(--accent-2); }

/* Horizontal and vertical marquees: JS clones each track's children once, CSS
   slides the doubled track by exactly half. */
.marquee { display: flex; overflow: hidden; }
.marquee .track { display: flex; gap: 10px; padding-right: 10px; flex: none; animation: slide-x var(--dur, 40s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
@keyframes slide-x { to { transform: translateX(-50%); } }
.vmarquee { overflow: hidden; }
.vmarquee .track { display: grid; gap: 14px; padding-bottom: 14px; animation: slide-y var(--dur, 50s) linear infinite; }
.vmarquee.rev .track { animation-direction: reverse; }
@keyframes slide-y { to { transform: translateY(-50%); } }
.marquee:hover .track, .vmarquee:hover .track { animation-play-state: paused; }

/* ── Feature grid ─────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { position: relative; padding: 34px 28px; border-color: var(--line); border-style: solid; border-width: 0 0 0 1px; }
.feature:nth-child(4n + 1) { border-left-width: 0; }
.feature:nth-child(-n + 4) { border-bottom-width: 1px; }
.feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--accent-soft), transparent 70%); transition: opacity .3s;
}
.feature:nth-child(-n + 4)::before { background: linear-gradient(to top, var(--accent-soft), transparent 70%); }
.feature:hover::before { opacity: 1; }
.feature .ic { position: relative; color: var(--muted); transition: color .3s; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { position: relative; display: flex; align-items: center; margin-top: 18px; font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; transition: transform .3s var(--ease); }
.feature h3::before {
  content: ""; position: absolute; left: -28px; width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: var(--line); transition: height .3s var(--ease), background-color .3s;
}
.feature p { position: relative; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.feature:hover .ic { color: var(--accent-2); }
.feature:hover h3 { transform: translateX(6px); }
.feature:hover h3::before { height: 26px; background: var(--lime); }

/* ── Use cases (vertical marquee columns) ─────────────────────────────── */
.cases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 680px;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.case { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.case .who { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case .tag { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.case p { margin-top: 12px; font-size: .96rem; line-height: 1.55; color: var(--ink); }
.case .uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.case .use { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); font-size: .74rem; color: var(--ink-2); }
.case .use svg { width: 12px; height: 12px; color: var(--accent-2); }

/* ── Closing card ─────────────────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 112px; padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: var(--r-lg); background: var(--deep); color: #fff; text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(8, 16, 15, .55), rgba(8, 16, 15, .1) 70%); pointer-events: none; }
.cta h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.06; letter-spacing: -.045em; }
.cta p { max-width: 460px; margin: 16px auto 0; color: rgba(255, 255, 255, .7); }
.cta .row { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.cta .btn.primary { background: #fff; color: #0a0a0a; }
.cta .btn.ghost { color: rgba(255, 255, 255, .8); }
.cta .btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; margin-top: 112px; padding-top: 56px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer .brand svg { width: 24px; height: 24px; }
.footer .copy { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.footer h4 { margin-bottom: 14px; font-size: .82rem; font-weight: 500; color: var(--ink); }
.footer li + li { margin-top: 9px; }
.footer li a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.footer li a:hover { color: var(--ink); }
.wordmark {
  margin: 48px 0 -0.2em; text-align: center; user-select: none; pointer-events: none;
  font-size: clamp(5rem, 21vw, 18rem); font-weight: 700; line-height: .9; letter-spacing: -.07em;
  background: linear-gradient(to bottom, var(--surface-3), transparent 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Page heads (pricing, blog, contact) ──────────────────────────────── */
.page-head { position: relative; isolation: isolate; padding: 150px 0 0; text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
.page-head p { max-width: 560px; margin: 18px auto 0; font-size: 1.05rem; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.billing { display: inline-flex; align-items: center; gap: 2px; margin-top: 32px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.billing button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.billing .save { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: .72rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan.featured { position: relative; background: var(--deep); border-color: var(--deep); color: #fff; box-shadow: var(--shadow-lg); }
.plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.plan h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -.02em; }
.plan .pop { padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 500 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan .for { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.plan.featured .for { color: rgba(255, 255, 255, .62); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 26px; height: 52px; overflow: hidden; }
.price .amt { font-size: 2.9rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; transition: opacity .25s, transform .35s var(--ease), filter .25s; }
.price .amt.swap { opacity: 0; transform: translateY(14px); filter: blur(4px); }
.price .per { font-size: .9rem; color: var(--muted); }
.plan.featured .price .per { color: rgba(255, 255, 255, .62); }
.plan .note { min-height: 1.5em; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.plan.featured .note { color: rgba(255, 255, 255, .55); }
.plan .btn { margin-top: 24px; }
.plan.featured .btn.primary { background: var(--lime); color: var(--on-lime); }
.plan .incl { margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 500; }
.plan.featured .incl { border-color: rgba(255, 255, 255, .12); }
.plan li { position: relative; padding-left: 26px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.plan li + li { margin-top: 10px; }
.plan.featured li { color: rgba(255, 255, 255, .82); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan.featured li::before { background-color: rgba(212, 245, 60, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d4f53c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8'/%3E%3C/svg%3E"); }

.compare-wrap { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: 15px 22px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-weight: 600; font-size: .92rem; background: var(--bg-soft); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare .group td { padding-top: 22px; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.compare .y { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); }
.compare .y svg { width: 12px; height: 12px; }
.compare .n { color: var(--faint); }
.compare .t { font-size: .84rem; color: var(--ink-2); }
.compare .feat { background: var(--accent-soft); }

/* ── Blog ─────────────────────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 56px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card.wide { grid-column: span 2; flex-direction: row; }
.post-card.wide .cover { flex: 1.2; aspect-ratio: auto; min-height: 320px; }
.post-card.wide .post-body { flex: 1; justify-content: center; padding: 40px; }
.post-card.wide h3 { font-size: 1.7rem; }
.post-body { display: flex; flex-direction: column; padding: 24px 26px 28px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.post-meta .av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: var(--bg); }
.post-meta .av svg { width: 14px; height: 14px; }
.post-card h3 { margin-top: 14px; font-size: 1.24rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.post-card p { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.cover svg.mk { position: absolute; left: 50%; top: 50%; width: 30%; max-width: 150px; transform: translate(-50%, -50%); color: #fff; opacity: .95; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.cover.v1 { background: radial-gradient(120% 120% at 20% 10%, #44520b, #0a0a0a 62%); }
.cover.v2 { background: radial-gradient(120% 120% at 80% 0%, #3a3a3a, #0b0b0b 65%); }
.cover.v3 { background: radial-gradient(120% 120% at 50% 100%, #e2fa6e, #b9dc1c 75%); }
.cover.v3 svg.mk { color: #0a0a0a; }
.cover.v3::before { background-image: radial-gradient(rgba(10, 10, 10, .16) 1px, transparent 1.4px); }
.cover.v3 .label { background: rgba(10, 10, 10, .1); color: rgba(10, 10, 10, .78); }
.cover .label { position: absolute; left: 18px; bottom: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.article { width: min(720px, 100% - 32px); margin: 0 auto; padding: 128px 0 0; }
.article-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted); }
.article-top a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.article-top a:hover { color: var(--ink); }
.article-top a svg { width: 15px; height: 15px; }
.article .cover { margin-top: 26px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.article h1 { margin-top: 40px; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.prose { margin-top: 26px; font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: 1.38rem; font-weight: 600; line-height: 1.25; letter-spacing: -.03em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-2); color: var(--ink); font-size: 1.12rem; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font: .88em var(--mono); color: var(--ink); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.split-form { padding: clamp(28px, 4vw, 48px); }
.split-aside { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 48px); border-left: 1px solid var(--line); background: var(--bg-soft); }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label { font-size: .86rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-soft); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent-2); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .err { display: none; font-size: .8rem; color: #b42318; }
.field.bad .err { display: block; }
.field.bad input, .field.bad textarea { border-color: #d92d20; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.topics { display: grid; gap: 12px; margin-top: 28px; }
.topic { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.topic .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); }
.topic .ic svg { width: 19px; height: 19px; }
.topic b { display: block; font-size: .94rem; font-weight: 600; }
.topic span { font-size: .86rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .cell.a, .cell.b, .cell.c, .cell.d { grid-column: span 12; border-right-width: 0; border-bottom-width: 1px; }
  .cell.d { border-bottom-width: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-width: 0 0 1px 0 !important; }
  .feature:nth-child(odd) { border-right-width: 1px !important; }
  .feature:nth-last-child(-n + 2) { border-bottom-width: 0 !important; }
  .feature h3::before { display: none; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases .vmarquee:nth-child(3) { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding-top: 124px; }
  .hero-cta, .cta .row { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; }
  .frame { margin-top: 48px; padding: 6px; border-radius: 18px; }
  .app { height: 470px; border-radius: 13px; }
  .app-thread { padding: 18px; }
  .app-composer { margin: 0 12px 12px; }
  .cell { padding: 26px 22px 0; }
  .cell-art { height: 300px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right-width: 0 !important; border-bottom-width: 1px !important; }
  .feature:last-child { border-bottom-width: 0 !important; }
  .cases { grid-template-columns: 1fr; height: 560px; }
  .cases .vmarquee:nth-child(2) { display: none; }
  .posts { grid-template-columns: 1fr; }
  .post-card.wide { grid-column: span 1; flex-direction: column; }
  .post-card.wide .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card.wide .post-body { padding: 24px 26px 28px; }
  .post-card.wide h3 { font-size: 1.3rem; }
  .split { grid-template-columns: 1fr; }
  .split-aside { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero h1 .w, .hero .lede, .hero-cta, .frame { opacity: 1; filter: none; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee .track, .vmarquee .track { animation: none; }
}

/* The pricing page closes on the black Gateway Flow field instead of green. */
.cta.black { background: #000; }
.cta.black::after { background: radial-gradient(55% 60% at 50% 50%, rgba(0, 0, 0, .78), rgba(0, 0, 0, .25) 60%, transparent 85%); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 2px; cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink); }
.faq-x { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); transition: background-color .2s; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; border-radius: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-x { background: var(--lime); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: var(--on-lime); }
.faq-item[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { margin: -6px 0 0; padding: 0 44px 24px 2px; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { min-height: calc(100vh - 220px); padding-bottom: 96px; }
.notfound .code { display: inline-block; margin-bottom: 18px; padding: 3px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 500 .78rem var(--mono); letter-spacing: .08em; }
.notfound .hero-cta { margin-top: 32px; }

/* ---- Large screens --------------------------------------------------------
   Type is in rem and containers in px, so past ~1440px the page stopped
   growing and read as zoomed out. Step the root size up and widen the
   containers, as the template's 1280px layout does. */
@media (min-width: 1440px) {
  :root { --wrap: 1280px; }
  .frame { width: min(1280px, 100%); }
  .app { height: 620px; grid-template-columns: 260px 1fr; }
}
@media (min-width: 1600px) { html { font-size: 17px; } }
@media (min-width: 1900px) { html { font-size: 18px; } }

/* Subtitles break evenly instead of leaving one word on the last line. */
.sec-head p, .page-head p { text-wrap: balance; }
