/* ===== Termato landing — styles ===== */
:root {
  --bg: #1c1c24;
  --bg-2: #21212b;
  --surface: #262631;
  --surface-2: #2d2d3a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #fafafa;
  --muted: #a6a6b3;
  --muted-2: #777787;
  --accent: #f5684d;
  --accent-2: #ff8a5c;
  --accent-hover: #d95c44;
  --accent-soft: rgba(245,104,77,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
em { font-style: normal; color: var(--accent-2); }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1014;
  box-shadow: 0 6px 24px -6px rgba(245,104,77,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(245,104,77,0.7); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); transform: translateY(-2px); }

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(28,28,36,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand-logo { height: 24px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: 16px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
/* install command that locks into the header once the hero box scrolls away */
.nav-install {
  display: flex; align-items: center; gap: 6px;
  background: #15151c; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 5px 5px 5px 12px;
  max-width: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-width .4s ease, opacity .25s ease, padding .4s ease;
}
.nav.cmd-stuck .nav-install { max-width: 400px; opacity: 1; pointer-events: auto; }
.nav-install code {
  font-family: var(--mono); font-size: 12px; color: #cfcfd8;
  white-space: nowrap; overflow-x: auto; min-width: 0;
}
.nav-install code::-webkit-scrollbar { height: 0; }
.nav-install .copy-btn { width: 30px; height: 30px; border-radius: 7px; }

/* ===== hero ===== */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,104,77,0.22), transparent 70%);
  filter: blur(20px);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy, .hero-app { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; line-height: 1.04;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 60%, #ffc28f);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* poke-tomato: a tomato that splats → reveals the wordmark "o". One sits in
   every section heading; splat them all and tomatoes rain across the page. */
.tomato {
  display: inline-block; cursor: pointer;
  -webkit-text-fill-color: initial; /* escape any gradient text clipping */
}
.tomato svg { width: 100%; height: 100%; overflow: visible; }
.tomato .tom-whole,
.tomato .tom-splat,
.tomato .tom-logo { transform-box: fill-box; transform-origin: center; }
.tomato .tom-whole { animation: tom-bob 3.2s ease-in-out infinite; transition: opacity .35s ease; }
.tomato .tom-splat { opacity: 0; transform: scale(0.25); }
.tomato .tom-logo { opacity: 0; }
/* poked: tomato vanishes instantly, the fully-formed "o" appears underneath, and
   the bigger splat (painted on top) is opaque at once, then fades to reveal the "o" */
.tomato.splat .tom-whole,
.tomato.done .tom-whole { opacity: 0; animation: none; }
.tomato.splat .tom-logo,
.tomato.done .tom-logo { opacity: 1; }              /* instant — no reform animation */
.tomato.splat .tom-splat { animation: tom-splat 1.1s ease-out forwards; }
.tomato.done .tom-splat { opacity: 0; }
/* hero one — sits after "Always." */
.always-tom { width: 0.82em; height: 0.88em; margin-left: 0.14em; vertical-align: -0.1em; }
/* section-heading ones */
.sec-tom { width: 0.92em; height: 0.98em; margin-left: 0.22em; vertical-align: -0.16em; }
/* the pokeable tomato in the "Welcome to Termato" note — ~25% larger so it holds
   its own next to the emojis, with a little breathing room before the 🙃 */
.start-note .start-tom { width: 1.15em; height: 1.22em; vertical-align: -0.24em; }
.start-note .face-emoji { margin-left: 0.3em; }
@keyframes tom-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7%) rotate(2deg); } }
@keyframes tom-splat {
  0%   { opacity: 1; transform: scale(1.1); }   /* opaque & oversized: fully hides the "o" */
  25%  { opacity: 1; transform: scale(1.35); }  /* hold opaque a beat */
  100% { opacity: 0; transform: scale(1.45); }  /* then fade out slowly, revealing the "o" */
}

/* ===== tomato rain — the payoff once every tomato is splatted ===== */
.tom-rain { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.rain-tom { position: absolute; top: -10vh; will-change: transform; }
.rain-tom svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes tom-fall   { to { transform: translateY(122vh) rotate(380deg); } }
@keyframes tom-fall-r { to { transform: translateY(122vh) rotate(-380deg); } }

@media (prefers-reduced-motion: reduce) {
  .tomato .tom-whole { animation: none; }
}

.lede { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.install-cap { font-family: var(--mono); font-size: 13px; color: var(--accent-2); margin-bottom: 10px; letter-spacing: .01em; }
.install-cap strong { font-weight: 700; color: var(--text); }
.hero-install { margin: 0 0 26px; max-width: 540px; }
.hero-points { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hp-ic { font-size: 15px; }

/* ===== hero app mockup — laptop + phone ===== */
.hero-app { position: relative; }
.hero-stage { position: relative; padding: 4px 30px 46px 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
@keyframes blink { 50% { opacity: 0; } }

/* --- laptop shell --- */
.laptop { position: relative; }
.laptop-screen {
  background: #08080c; border: 1px solid var(--border-strong);
  border-radius: 14px 14px 5px 5px; padding: 9px;
  box-shadow: 0 44px 90px -34px rgba(0,0,0,0.88), 0 0 0 1px rgba(255,255,255,0.02);
}
.laptop-deck {
  position: relative; height: 15px; margin: 0 -7%;
  background: linear-gradient(#23232d, #14141a);
  border-radius: 0 0 13px 13px;
  box-shadow: 0 20px 32px -16px rgba(0,0,0,0.75);
}
.laptop-deck::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: rgba(255,255,255,0.07); }
.laptop-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 84px; height: 6px; background: #14141a; border-radius: 0 0 7px 7px;
}

/* --- termato app (abstract skeleton, no text) --- */
.tmt { background: #15151c; border-radius: 8px; overflow: hidden; }
.tmt-bar { display: flex; align-items: center; gap: 7px; padding: 11px 13px; background: #1d1d26; border-bottom: 1px solid var(--border); }
.tmt-logo { margin-left: 8px; width: 13px; height: 13px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
/* laptop screen is landscape ~16:10 */
.tmt-body { display: grid; grid-template-columns: 148px 1fr; height: 244px; }

/* skeleton primitives */
.sk-bar { height: 6px; border-radius: 4px; background: var(--surface-2); }
.sk-line { height: 6px; border-radius: 4px; background: var(--surface-2); }
.sk-line.ok { background: rgba(95,221,139,0.5); }
.sk-bar.w35 { width: 35%; } .sk-bar.w40 { width: 40%; } .sk-bar.w45 { width: 45%; } .sk-bar.w50 { width: 50%; } .sk-bar.w55 { width: 55%; } .sk-bar.w60 { width: 60%; } .sk-bar.w65 { width: 65%; }
.sk-line.w40 { width: 40%; } .sk-line.w45 { width: 45%; } .sk-line.w50 { width: 50%; } .sk-line.w55 { width: 55%; } .sk-line.w60 { width: 60%; } .sk-line.w65 { width: 65%; } .sk-line.w75 { width: 75%; } .sk-line.w80 { width: 80%; } .sk-line.w85 { width: 85%; }

/* sidebar — project groups with nested sessions, as bars */
.tmt-side { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; background: #121219; border-right: 1px solid var(--border); }
.sk-proj { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.sk-proj:first-child { margin-top: 0; }
.sk-proj .sk-bar { background: var(--muted-2); opacity: .55; }
.sk-caret { width: 0; height: 0; border-left: 4px solid var(--muted-2); border-top: 3px solid transparent; border-bottom: 3px solid transparent; transform: rotate(90deg); }
.sk-caret.c { transform: none; }
.sk-sess { display: flex; align-items: center; gap: 7px; margin-left: 9px; padding: 5px 7px; border-radius: 6px; }
.sk-ic { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.sk-ic.ai { background: #7fd4ff; }
.sk-sess.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.sk-live { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #5fdd8b; animation: livep 2.2s infinite; }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(95,221,139,.5); } 70% { box-shadow: 0 0 0 5px rgba(95,221,139,0); } 100% { box-shadow: 0 0 0 0 rgba(95,221,139,0); } }

/* main pane — block-based terminal, as skeleton blocks */
.tmt-main { display: flex; flex-direction: column; min-width: 0; }
.sk-tab { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: #181820; border-bottom: 1px solid var(--border); }
.sk-term { display: flex; flex-direction: column; gap: 9px; padding: 13px; width: 100%; }
.sk-blk { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border); border-left: 2px solid rgba(245,104,77,0.55); border-radius: 8px; background: #101017; padding: 10px 11px; }
.sk-blk.ai { border-left-color: #7fd4ff; }
.sk-cmd { display: flex; align-items: center; gap: 8px; padding: 3px 11px; }
.sk-prompt { width: 0; height: 0; border-left: 6px solid var(--accent); border-top: 4px solid transparent; border-bottom: 4px solid transparent; flex-shrink: 0; }
.sk-type { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.22); width: 96px; flex-shrink: 0; }
.sk-type.sm { width: 48px; }
/* cursor: just flashes — both the laptop and the phone share these exact
   keyframes + duration and start at page load, so they blink in sync. */
.b-cursor { display: inline-block; width: 7px; height: 13px; background: var(--accent); flex-shrink: 0; animation: blink 1.1s steps(1) infinite; }
.ph-term .b-cursor { height: 11px; }

/* --- phone overlay — portrait, narrow and tall --- */
.phone {
  position: absolute; right: -10px; bottom: -64px; width: 150px; z-index: 3;
  background: #06060a; border: 6px solid #06060a; border-radius: 30px;
  box-shadow: 0 34px 64px -20px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; background: #06060a; border-radius: 999px; z-index: 4; }
.phone-scr { background: #15151c; border-radius: 24px; overflow: hidden; }
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 16px 12px 10px; background: #1d1d26; border-bottom: 1px solid var(--border); }
.ph-bar .sk-prompt { border-left: 0; border-right: 5px solid var(--accent); }
.ph-term { display: flex; flex-direction: column; gap: 9px; padding: 11px; min-height: 226px; }
.ph-term .sk-blk { padding: 8px 9px; gap: 5px; }
.sk-queue { height: 28px; border-radius: 7px; border: 1px dashed rgba(127,212,255,0.4); }
.ph-tabs { display: flex; border-top: 1px solid var(--border); background: #13131a; padding: 9px 0; }
.pt { flex: 1; display: flex; justify-content: center; }
.pt::before { content: ""; width: 16px; height: 5px; border-radius: 3px; background: var(--muted-2); opacity: .5; }
.pt.active::before { background: var(--accent-2); opacity: 1; }

/* sync indicator bridging the two devices */
.chip-sync {
  position: absolute; z-index: 5; bottom: 6px; right: 96px;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: var(--accent-2);
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
  animation: syncpulse 3s ease-in-out infinite;
}
@keyframes syncpulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 var(--accent-soft), 0 12px 30px -10px rgba(0,0,0,0.6); }
  50% { transform: translateY(-6px); box-shadow: 0 0 0 9px rgba(245,104,77,0), 0 12px 30px -10px rgba(0,0,0,0.6); }
}

/* ===== strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; padding: 24px; }
.strip-item span {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  position: relative; padding-left: 18px;
}
.strip-item span::before { content: "›"; position: absolute; left: 0; color: var(--accent); }

/* ===== section heads ===== */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.light { } /* spacing token */
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow.center { display: block; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 18px; }
.section-head p { font-size: 17px; color: var(--muted); }

section.usps, section.features, section.security, section.performance, section.start { padding: 100px 0; }

/* ===== USP grid ===== */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.usp:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.usp.big { grid-column: span 1; grid-row: span 2; background: linear-gradient(165deg, var(--surface-2), var(--surface)); border-color: rgba(245,104,77,0.25); }
.usp-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(245,104,77,0.25); margin-bottom: 18px;
}
.usp h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.usp.big h3 { font-size: 24px; }
.usp p { color: var(--muted); font-size: 15px; }

/* ===== features ===== */
.features { background: var(--bg-2); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.feat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(245,104,77,0.08), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feat:hover::after { opacity: 1; }
.feat-ic {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 21px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 18px;
}
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ===== security ===== */
.security { position: relative; overflow: hidden; }
.security::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px; background: radial-gradient(closest-side, rgba(245,104,77,0.1), transparent 70%);
  pointer-events: none;
}
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.sec {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.sec:hover { border-color: rgba(245,104,77,0.4); transform: translateY(-4px); }
.sec h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; letter-spacing: -0.01em; }
.sec-no { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; }
.sec p { color: var(--muted); font-size: 14.5px; }

/* ===== performance ===== */
.performance { background: var(--bg-2); }
.exp-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.exp-grid li {
  display: flex; align-items: flex-start; gap: 18px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; transition: transform .2s ease, border-color .2s ease;
}
.exp-grid li:hover { transform: translateY(-4px); border-color: rgba(245,104,77,0.35); }
.exp-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(245,104,77,0.25);
}
.exp-t { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.exp-t strong { display: block; color: var(--text); font-size: 17.5px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }

/* ===== get started ===== */
.start { padding: 110px 0; }
.start-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(245,104,77,0.3); border-radius: 28px;
  padding: 64px 40px; max-width: 860px; margin: 0 auto;
}
.start-glow {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,104,77,0.3), transparent 70%);
}
.start-card h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; position: relative; }
.start-card > p { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 auto 32px; position: relative; }
.install-box {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #15151c; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 14px 14px 14px 20px; max-width: 680px; margin: 0 auto 30px; text-align: left;
}
.install-box code { font-family: var(--mono); font-size: 13.5px; color: #d8d8e0; overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; }
.install-box code::-webkit-scrollbar { height: 0; }
.copy-btn {
  display: grid; place-items: center; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px;
  width: 38px; height: 38px; cursor: pointer; transition: .15s; flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.copy-btn svg { grid-area: 1 / 1; }
.copy-btn .ic-check { opacity: 0; transform: scale(.6); transition: .15s; }
.copy-btn.copied { background: var(--accent); color: #1a1014; border-color: var(--accent); }
.copy-btn.copied .ic-copy { opacity: 0; transform: scale(.6); }
.copy-btn.copied .ic-check { opacity: 1; transform: scale(1); }
.start-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; position: relative; }
.start-note { font-size: 14px; color: var(--muted); max-width: 560px; margin: 0 auto 26px; position: relative; }
.start-note strong { color: var(--text); }
.start-points { list-style: none; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; position: relative; }
.start-points li { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { height: 22px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-base { border-top: 1px solid var(--border); }
.footer-base-inner { display: flex; justify-content: space-between; padding: 22px 24px; flex-wrap: wrap; gap: 10px; }
.footer-base span { font-size: 13px; color: var(--muted-2); }

/* ===== story sections (feature rows) ===== */
.story { padding: 96px 0; position: relative; overflow: hidden; }
.story-alt, .story-secure { background: var(--bg-2); }
/* minmax(0,1fr) (not the default minmax(auto,1fr)) so a non-wrapping line inside
   the art — e.g. the voice demo's white-space:pre command — can't blow the column
   out and resize the panes as it types. */
.story-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items: center; }
/* min-width:0 kills the grid item's auto-minimum so the non-wrapping line can't
   expand the track in EITHER the 2-col or the 1-col (mobile) layout */
.story-inner > * { min-width: 0; }
.story-inner.flip .story-copy { order: 2; }
.story-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 16px; line-height: 1.08; }
.story-copy p { font-size: 17px; color: var(--muted); max-width: 520px; }
.story-copy strong { color: var(--text); }
.story-wide .section-head { text-align: center; margin: 0 auto 8px; }
.story-wide .section-head p { margin-left: auto; margin-right: auto; }

/* shared window primitive */
.win { background: #15151c; border: 1px solid var(--border-strong); border-radius: 11px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(0,0,0,0.7); }
/* "Terminals for Claude Code" story art — centre the terminal in its grid column */
.art-cc { display: flex; justify-content: center; }
/* Claude Code first-load welcome splash */
.cc-welcome { border: 1px solid var(--border-strong); border-radius: 10px; padding: 14px 15px; background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 7px; }
.cc-hello { display: flex; align-items: center; gap: 13px; }
.cc-hello-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* the Claude Buddy sprite is a pixel-art critter on a solid black field;
   mix-blend-mode:lighten melts that black into the dark terminal (and keeps the
   eye/leg gaps reading as gaps), while pixelated rendering stays crisp when scaled */
/* two-frame blink: the eyes-closed sprite overlays the open one and flashes in
   briefly on an interval. Both blend the sprite's black field into the terminal. */
.cc-buddy { position: relative; width: 58px; flex-shrink: 0; display: block; }
.cc-buddy img { width: 100%; height: auto; display: block; image-rendering: pixelated; mix-blend-mode: lighten; }
.cc-buddy .cc-eye-closed { position: absolute; inset: 0; opacity: 0; animation: ccblink 5.4s steps(1, end) infinite; }
@keyframes ccblink { 0%, 92% { opacity: 0; } 93%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cc-buddy .cc-eye-closed { animation: none; } }
.cc-greet { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text); }
.cc-star { color: var(--accent); margin-right: 5px; }
.cc-sub { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cc-dim { color: var(--muted-2); }
.cc-prompt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.cc-chev { font-family: var(--mono); font-size: 13px; color: var(--accent); flex-shrink: 0; }
.cc-ph { font-family: var(--mono); font-size: 12px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar { display: flex; align-items: center; gap: 5px; padding: 9px 11px; background: #1d1d26; border-bottom: 1px solid var(--border); }
.win-bar.sm { padding: 7px 9px; }
.d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.d.r { background: #ff5f57; } .d.y { background: #febc2e; } .d.g { background: #28c840; }
.win-tag { margin-left: 7px; font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sk-line.w70 { width: 70%; }
.sk-line.ai { background: rgba(127,212,255,0.5); }

/* --- story 1: phone --- */
.art-phone { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
/* tall 19.5:9 iPhone proportions, hardware bezel + Dynamic Island */
.iphone { position: relative; width: 196px; z-index: 2; background: #06060a; border: 8px solid #0a0a0e; border-radius: 44px; box-shadow: 0 44px 80px -26px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06); }
.iphone-island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 74px; height: 19px; background: #000; border-radius: 999px; z-index: 3; }
.iphone-scr { position: relative; background: #15151c; border-radius: 36px; overflow: hidden; }
/* iOS status bar — clock + signal/battery, no macOS traffic lights */
.ios-status { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px 6px; }
.ios-time { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.ios-sig i { width: 2.5px; background: var(--text); border-radius: 1px; }
.ios-sig i:nth-child(1) { height: 40%; } .ios-sig i:nth-child(2) { height: 60%; } .ios-sig i:nth-child(3) { height: 80%; } .ios-sig i:nth-child(4) { height: 100%; }
.ios-bat { position: relative; width: 18px; height: 9px; border: 1px solid rgba(250,250,250,0.65); border-radius: 2.5px; }
.ios-bat::before { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 9px; background: var(--text); border-radius: 1px; }
.ios-bat::after { content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 1.5px; height: 4px; background: rgba(250,250,250,0.65); border-radius: 0 1px 1px 0; }
.iphone-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; min-height: 348px; }
.ios-home { display: block; width: 38%; height: 4px; margin: 5px auto 8px; background: rgba(255,255,255,0.45); border-radius: 999px; }
.desk-mini { position: absolute; left: 2%; bottom: 16%; width: 215px; z-index: 1; opacity: .9; }
.desk-mini .win-body { gap: 7px; }
.sync-pill { position: absolute; bottom: -14px; right: -18px; z-index: 4; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--surface); border: 1px solid var(--border-strong); padding: 7px 13px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6); animation: float 5s ease-in-out infinite; }

/* --- story 2: train --- */
.train-scene { position: relative; margin-top: 50px; height: 200px; overflow: hidden; }
.rails { position: absolute; left: 0; right: 0; bottom: 46px; height: 3px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 18px, transparent 18px 30px); }
.rails::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 5px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 7px, transparent 7px 22px); }
.train { position: absolute; bottom: 49px; left: 0; display: flex; align-items: flex-end; gap: 16px; will-change: transform; transform: translateX(60vw); }
.car, .loco { position: relative; flex-shrink: 0; }
.car { width: 168px; padding-bottom: 16px; }
.car .win { box-shadow: 0 14px 30px -16px rgba(0,0,0,0.8); }
.car .win-body { padding: 9px 10px; gap: 6px; }
.car::before { content: ""; position: absolute; left: -16px; bottom: 18px; width: 16px; height: 4px; border-radius: 2px; background: var(--muted-2); }
/* locomotive — steam-engine silhouette, facing left (direction of travel) */
.loco { width: 162px; padding-bottom: 16px; }
.loco-boiler { position: absolute; left: 4px; right: 40px; bottom: 16px; height: 40px; border-radius: 22px 8px 6px 22px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 -7px 10px -6px rgba(0,0,0,0.35), 0 14px 30px -14px rgba(245,104,77,0.7); }
.loco-boiler::after { content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: rgba(0,0,0,0.25); }
.loco-cab { position: absolute; right: 6px; bottom: 16px; width: 46px; height: 60px; border-radius: 10px 9px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--accent-hover)); }
.cab-win { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 26px; height: 19px; border-radius: 4px; background: #15151c; border: 1px solid rgba(255,255,255,0.28); }
.loco-funnel { position: absolute; left: 20px; bottom: 54px; width: 15px; height: 22px; background: var(--accent-hover); border-radius: 4px 4px 0 0; }
.loco-funnel::after { content: ""; position: absolute; top: -6px; left: -4px; width: 23px; height: 11px; border-radius: 50%; background: var(--accent-hover); }
.puff { position: absolute; top: -22px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.22); box-shadow: 7px -9px 0 -1px rgba(255,255,255,0.16), 14px -4px 0 1px rgba(255,255,255,0.12); animation: puff 2.6s ease-out infinite; }
@keyframes puff { 0% { opacity: 0; transform: translate(0,4px) scale(.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(18px,-14px) scale(1.3); } }
.loco-dome { position: absolute; left: 56px; bottom: 54px; width: 16px; height: 13px; border-radius: 8px 8px 0 0; background: var(--accent-hover); }
.loco-light { position: absolute; left: 2px; bottom: 37px; width: 9px; height: 9px; border-radius: 50%; background: #ffe9bb; box-shadow: 0 0 11px 3px rgba(255,220,150,0.65); }
.cowcatch { position: absolute; left: -3px; bottom: 16px; width: 16px; height: 21px; background: var(--accent-hover); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.wheel { position: absolute; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: #2a2a36; border: 3px solid var(--muted-2); }
.wheel::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.18); }
.car .wheel:nth-of-type(1) { left: 22px; } .car .wheel:nth-of-type(2) { right: 22px; }
/* four identical wheels, evenly spaced under the loco. NB: use explicit
   classes, NOT :nth-of-type — the loco has other <span> children (cowcatch,
   dome, funnel, light) so :nth-of-type mis-counts and only one wheel gets
   positioned (the rest collapse to left:auto and overlap into one). */
.loco .wheel.lw1 { left: 16px; }
.loco .wheel.lw2 { left: 54px; }
.loco .wheel.lw3 { left: 92px; }
.loco .wheel.lw4 { left: 130px; }
.patchy { position: absolute; top: 6px; right: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ok-tick { color: #5fdd8b; font-weight: 700; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.sig i { width: 3px; background: var(--accent); border-radius: 1px; animation: sigflick 1.4s steps(1) infinite; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 7px; animation-delay: .2s; } .sig i:nth-child(3) { height: 10px; animation-delay: .4s; } .sig i:nth-child(4) { height: 13px; animation-delay: .6s; }
@keyframes sigflick { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* --- story 3: talk --- */
.art-talk { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.buddy { width: 100%; max-width: 460px; }
.buddy .win { width: 100%; border-radius: 13px; box-sizing: border-box; }
.buddy .win-bar { padding: 11px 14px; }
.buddy .win-tag { font-size: 11px; }
.buddy .win-body { padding: 18px; gap: 16px; min-height: 56px; }
.buddy .sk-cmd { gap: 9px; }

/* --- the spoken phrase + audio meter live OUTSIDE the terminal: you speak (the
   meter pulses + the words appear here), then the transcribed command is typed
   into the terminal below and entered. Sequencing is driven from script.js. --- */
.voice-input {
  display: flex; align-items: center; gap: 14px;
  width: 100%; box-sizing: border-box;
  margin-bottom: 16px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: border-color .35s ease, background .35s ease;
}
.voice-input.listening { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, transparent); }
/* reserve a fixed 2-line box so short vs long phrases don't resize the panel */
.spoken { margin: 0; flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--muted); font-style: italic; display: flex; align-items: center; min-height: 2.8em; max-height: 2.8em; overflow: hidden; }
.voice-input.listening .spoken { color: var(--text); }
.spoken::after { content: ''; }

/* speech-like voice meter, modelled on a real frequency spectrum: bar peaks form
   center-weighted clusters/formants (low at the edges, humps toward the middle)
   and neighbours share a smooth phase ramp so they swell together instead of
   flickering independently. The whole meter collapses to a flat line when idle
   and swells up while .listening is set (toggled in sync with the dictation). */
.wave { display: flex; align-items: center; gap: 3px; height: 40px; width: 120px; flex: none; transform-origin: center; transform: scaleY(.06); opacity: .45; transition: transform .35s ease, opacity .35s ease; }
.voice-input.listening .wave { transform: scaleY(1); opacity: 1; }
.wave i { flex: 1; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; height: 16%; animation: talk .9s ease-in-out infinite; }
@keyframes talk { 0%, 100% { height: calc(var(--peak, 80%) * 0.32); } 50% { height: var(--peak, 80%); } }

/* fixed-height terminal so the stacking command history doesn't resize the
   section; the live prompt is pinned to the bottom and history fills upward */
#voiceBody { min-height: 138px; justify-content: flex-end; }
/* command typed into the terminal; the blinking caret only shows on the live line */
.cmd-text { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: pre; }
.sk-cmd.ran { opacity: .55; }
.sk-cmd.ran .b-cursor { display: none; }
/* --peak: center-weighted with two formant clusters (a low hump left of centre,
   the main hump just right of centre) and quiet edges — neighbours stay close so
   the bars read as grouped energy, not noise.
   animation-delay: a smooth tent (deepest mid-wave) so adjacent bars swell almost
   together; durations sit in a tight band so they don't drift out of sympathy. */
.wave i:nth-child(1)  { --peak: 24%; animation-duration: .50s; animation-delay: -.04s; }
.wave i:nth-child(2)  { --peak: 30%; animation-duration: .54s; animation-delay: -.10s; }
.wave i:nth-child(3)  { --peak: 40%; animation-duration: .50s; animation-delay: -.16s; }
.wave i:nth-child(4)  { --peak: 52%; animation-duration: .58s; animation-delay: -.22s; }
.wave i:nth-child(5)  { --peak: 46%; animation-duration: .52s; animation-delay: -.18s; }
.wave i:nth-child(6)  { --peak: 40%; animation-duration: .48s; animation-delay: -.26s; }
.wave i:nth-child(7)  { --peak: 56%; animation-duration: .60s; animation-delay: -.32s; }
.wave i:nth-child(8)  { --peak: 74%; animation-duration: .56s; animation-delay: -.30s; }
.wave i:nth-child(9)  { --peak: 90%; animation-duration: .50s; animation-delay: -.36s; }
.wave i:nth-child(10) { --peak: 82%; animation-duration: .62s; animation-delay: -.34s; }
.wave i:nth-child(11) { --peak: 94%; animation-duration: .54s; animation-delay: -.40s; }
.wave i:nth-child(12) { --peak: 100%; animation-duration: .58s; animation-delay: -.44s; }
.wave i:nth-child(13) { --peak: 90%; animation-duration: .52s; animation-delay: -.42s; }
.wave i:nth-child(14) { --peak: 96%; animation-duration: .60s; animation-delay: -.46s; }
.wave i:nth-child(15) { --peak: 78%; animation-duration: .56s; animation-delay: -.40s; }
.wave i:nth-child(16) { --peak: 58%; animation-duration: .50s; animation-delay: -.34s; }
.wave i:nth-child(17) { --peak: 46%; animation-duration: .54s; animation-delay: -.30s; }
.wave i:nth-child(18) { --peak: 54%; animation-duration: .48s; animation-delay: -.26s; }
.wave i:nth-child(19) { --peak: 42%; animation-duration: .52s; animation-delay: -.22s; }
.wave i:nth-child(20) { --peak: 34%; animation-duration: .56s; animation-delay: -.18s; }
.wave i:nth-child(21) { --peak: 28%; animation-duration: .50s; animation-delay: -.12s; }
.wave i:nth-child(22) { --peak: 24%; animation-duration: .46s; animation-delay: -.08s; }
.wave i:nth-child(23) { --peak: 20%; animation-duration: .52s; animation-delay: -.04s; }

/* --- story 4: 24/7 — the whole section background goes dusk→night on scroll;
   sun/moon/stars float over it (no contained panel) --- */
.story-night { position: relative; background: linear-gradient(180deg, var(--accent), var(--accent-hover)); }
.art-night { position: relative; min-height: 340px; display: flex; align-items: flex-end; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; left: 30%; top: 42%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #ffe9bb, #ff9d4d 55%, #f5684d); box-shadow: 0 0 44px 12px rgba(255,150,80,0.5); will-change: left, top, opacity; }
.moon { position: absolute; left: 12%; top: 92%; font-size: 38px; line-height: 1; margin: -19px 0 0 -19px; filter: drop-shadow(0 0 14px rgba(255,225,170,0.5)); opacity: 0; will-change: left, top, opacity; }
.stars { position: absolute; inset: 0; opacity: 0; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .85; animation: twinkle 2.6s ease-in-out infinite; }
.star:nth-child(2n) { animation-delay: .7s; } .star:nth-child(3n) { animation-delay: 1.3s; } .star:nth-child(5n) { animation-delay: 1.9s; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.night-win { position: relative; z-index: 3; width: 100%; max-width: 440px; margin: 0 auto 22px; }
.clock { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.run-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- story 5: so many (marquee) --- */
.shout { font-size: clamp(28px, 6vw, 42px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; background: linear-gradient(110deg, var(--accent), var(--accent-2) 55%, #ffc28f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.shout-up { font-size: 1.28em; }
.shout-lc { text-transform: lowercase; font-weight: 800; letter-spacing: -0.02em; }
.marquee { position: relative; margin-top: 44px; display: flex; flex-direction: column; gap: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee-row.rev { animation-direction: reverse; }
/* vary each row's speed slightly so they drift independently */
/* 30% speed variance: slowest row (52s) ÷ fastest (40s) = 1.30 */
.marquee-row:nth-child(1) { animation-duration: 46s; }
.marquee-row:nth-child(2) { animation-duration: 52s; }
.marquee-row:nth-child(3) { animation-duration: 40s; }
.marquee-row:nth-child(4) { animation-duration: 49s; }
.marquee-row:nth-child(5) { animation-duration: 43s; }
/* spacing lives on each card (margin-right), NOT flex gap: flex gap is also
   inserted between the two duplicated halves, so translateX(-50%) would land
   one gap short of a full set and the loop would visibly jump. */
.marquee-row .win { width: 210px; flex-shrink: 0; margin-right: 18px; }
.marquee-row .win-body { gap: 7px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- story 6: secure --- */
/* secure section: phone / laptop / server triangle with data circulating it */
.art-triangle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 240px; }
.tri { width: 100%; max-width: 360px; height: auto; color: var(--accent-2); overflow: visible; }
.tri-edge { fill: none; stroke: rgba(245,104,77,0.32); stroke-width: 1.6; stroke-linejoin: round; }
.tri-dot { fill: var(--accent-2); filter: drop-shadow(0 0 4px rgba(255,138,92,0.85)); }
.tri-dot.rev { fill: #ffd9a0; }
.tri-node-bg { fill: var(--bg-2); stroke: rgba(245,104,77,0.32); stroke-width: 1.5; }
.tri-ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tri-ic * { vector-effect: non-scaling-stroke; }
.tri-hub { filter: drop-shadow(0 0 12px rgba(243,128,32,0.5)); }
.tri-hub-bg { fill: #fdf6ec; stroke: rgba(243,128,32,0.6); stroke-width: 1.6; }
.cf-word { fill: #f38020; font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: 1.6px; }
.tri-tag { fill: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.tri-caption { font-family: var(--mono); font-size: 11px; color: var(--muted-2); text-align: center; }
@media (prefers-reduced-motion: reduce) { .tri-dot { display: none; } }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav.cmd-stuck .nav-install { max-width: min(74vw, 320px); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-app { order: 2; }
  .hero-stage { max-width: 560px; margin: 0 auto; padding-right: 36px; }
  .usp-grid, .feat-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .usp.big { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  /* story sections stack: text first, graphic below */
  .story { padding: 72px 0; }
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-inner.flip .story-copy { order: 0; }
  /* full-width (not margin:auto, which shrink-wraps a grid item to its content
     and lets the typing command resize the panes); the art's own flex centres
     the capped-width buddy inside it */
  .story-art { width: 100%; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 70px; }
  .usp-grid, .feat-grid, .sec-grid, .exp-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .start-card { padding: 44px 22px; }
  .hero-points { gap: 16px; }
  .hero-glow, .start-glow { width: 100%; }
  .chip-sync { display: none; }
  .hero-stage { max-width: 440px; margin: 0 auto; padding: 4px 12px 48px 0; }
  .tmt-body { grid-template-columns: 108px 1fr; height: 188px; }
  .tmt-side { gap: 5px; padding: 10px 8px; }
  .phone { width: 116px; right: -2px; bottom: -42px; }
  .ph-term { min-height: 150px; }
  section.usps, section.features, section.security, section.performance, section.start { padding: 70px 0; }
  /* story graphics shrink to fit narrow screens */
  .story { padding: 60px 0; }
  .story-copy h2 { font-size: clamp(26px, 8vw, 34px); }
  .shout { font-size: clamp(24px, 7vw, 34px); }
  .art-phone { min-height: 340px; }
  .iphone { width: 180px; }
  .desk-mini { width: 168px; left: 0; }
  .sync-pill { right: 0; font-size: 11px; }
  .art-talk { min-height: 0; }
  .buddy { width: 100%; max-width: 100%; }
  .buddy .win-body { padding: 14px; gap: 12px; }
  .voice-input { padding: 12px 13px; gap: 11px; margin-bottom: 13px; }
  .wave { height: 34px; width: 96px; }
  .spoken { font-size: 13px; }
  .cmd-text { font-size: 13px; }
  .marquee-row .win { width: 178px; }
  .night-win { max-width: 100%; }
  .art-triangle { min-height: 0; }
  .tri { max-width: 300px; }
  .train-scene { height: 180px; }
  .car { width: 144px; }
}

/* ===== finale — giant Termato wordmark, a centred band at the very bottom of
   the page (below the footer). Each letter bounces/glows on hover. ===== */
.finale {
  position: relative; overflow: hidden; background: var(--bg);
  padding: clamp(40px, 7vw, 110px) 0 clamp(48px, 8vw, 120px);
  display: grid; place-items: center;
}
.finale::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1200px; max-width: 130%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,104,77,0.16), transparent 72%);
  filter: blur(20px);
}
.finale-logo { position: relative; z-index: 2; width: min(94vw, 1500px); height: auto; overflow: visible; }
/* © + legal links on their own footer bar, separate from the wordmark */
.finale-foot { background: var(--bg-2); border-top: 1px solid var(--border); padding: 20px 0; }
.finale-foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 22px; font-family: var(--mono); font-size: 13px; color: var(--muted-2);
}
.finale-links { display: inline-flex; gap: 22px; }
.finale-links a { color: var(--muted); transition: color .15s; }
.finale-links a:hover { color: var(--accent-2); }
/* each wordmark letter reacts to hover — lift, bounce, tilt & glow */
.finale-logo .ltr {
  transform-box: fill-box; transform-origin: 50% 88%;
  transition: transform .4s cubic-bezier(.22, 1.5, .35, 1), filter .25s ease;
  cursor: pointer;
}
.finale-logo .ltr:hover { filter: brightness(1.12) drop-shadow(0 7px 16px rgba(245,104,77,0.45)); }
.finale-logo .ltr:nth-child(odd):hover { transform: translateY(-11%) scale(1.09) rotate(-3deg); }
.finale-logo .ltr:nth-child(even):hover { transform: translateY(-11%) scale(1.09) rotate(3deg); }
/* hover is driven by a transparent box covering each letter (added in JS), so
   the hollow centre of a letter still triggers it — no glyph-edge glitchiness */
.finale-logo .ltr > path { pointer-events: none; }
.finale-logo .ltr-hit { fill: transparent; pointer-events: all; }
/* the final "o" is a poke-tomato: bobs, then splats to reveal the real "o" */
.fin-tom { cursor: pointer; }
.fin-tom .f-whole, .fin-tom .f-splat { transform-box: fill-box; transform-origin: center; }
.fin-tom .f-whole { animation: tom-bob 3.2s ease-in-out infinite; transition: opacity .35s ease; }
.fin-tom .f-splat { opacity: 0; transform: scale(0.25); }
.fin-tom.splat .f-whole, .fin-tom.done .f-whole { opacity: 0; animation: none; }
.fin-tom.splat .f-splat { animation: tom-splat 1.1s ease-out forwards; }
.fin-tom.done .f-splat { opacity: 0; }
.fin-tom.done { pointer-events: none; }
/* the real "o" hides under the tomato until it's splatted */
.finale-logo.o-hidden .ltr-o { opacity: 0; }
/* animated arrow nudging people to poke the tomato; fades once poked */
.fin-hint { pointer-events: none; transition: opacity .4s ease; }
.fin-hint .fin-hint-bob { transform-box: fill-box; transform-origin: center; animation: fin-hint-bob 1.15s ease-in-out infinite; }
.fin-hint-arrow { fill: none; stroke: #ff8a5c; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 5px rgba(245,104,77,0.5)); }
.finale-logo.poked .fin-hint { opacity: 0; }
@keyframes fin-hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(16%); } }
@media (prefers-reduced-motion: reduce) { .fin-hint .fin-hint-bob { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .finale-logo .ltr { transition: filter .25s ease; }
  .finale-logo .ltr:nth-child(odd):hover,
  .finale-logo .ltr:nth-child(even):hover { transform: none; }
  /* voice demo: show the finished state, no sequencing */
  .voice-input.listening .wave { transform: scaleY(.5); }
  .wave i { animation: none; height: var(--peak, 60%); }
}

/* ===== legal pages (privacy.html, terms.html) ===== */
.legal-top {
  position: sticky; top: 0; z-index: 50; padding: 16px 0;
  background: rgba(28,28,36,0.85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.legal-top .container { display: flex; align-items: center; justify-content: space-between; }
.legal-top .brand-logo { height: 22px; width: auto; }
.legal-top .legal-home { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.legal-top .legal-home:hover { color: var(--accent-2); }
.legal { padding: 56px 0 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-back { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.legal-back:hover { color: var(--accent-2); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-updated { font-family: var(--mono); font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.legal-lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: 21px; font-weight: 700; color: var(--text); margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.72; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent-2); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-note { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 14px; color: var(--muted-2); }
.legal-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.legal-footer .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: var(--accent-2); }
.legal-footer nav { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ===== tomato splat tally — subtle corner count that pops on each splat ===== */
.tom-count {
  position: fixed; right: 14px; bottom: 13px; z-index: 60; pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted-2);
  background: rgba(28,28,36,0.68); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: .5; transition: opacity .3s ease;
}
.tom-count .tc-ico { display: inline-block; width: 13px; height: 15px; background: url("tomato-o.svg") center / contain no-repeat; }
/* number that pops up at the splatted tomato, then floats up and fades */
.tom-float {
  position: fixed; z-index: 61; pointer-events: none; white-space: nowrap;
  font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--accent-2);
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  animation: tom-float 1.2s ease-out forwards;
}
@keyframes tom-float {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  22%  { opacity: 1; transform: translate(-50%, -95%) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -185%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tom-float { animation: tom-float-rm 1.2s ease forwards; }
  @keyframes tom-float-rm { 0% { opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -90%); } 100% { opacity: 0; transform: translate(-50%, -90%); } }
}
.tom-count .tc-n { font-weight: 700; color: var(--muted); }
.tom-count .tc-sep { opacity: .6; margin: 0 -1px; }
.tom-count.pop { animation: tc-pop .55s cubic-bezier(.2, 1.4, .4, 1); }
.tom-count.done { opacity: .85; }
.tom-count.done .tc-n { color: var(--accent-2); }
@keyframes tc-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.28); opacity: 1; color: var(--accent-2); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .tom-count.pop { animation: none; } }
