/* ----- TOKENS -------------------------------------------------------- */
:root {
  --bg:        #FAFAF7;
  --bg-quiet:  #F4F4EE;
  --surface:   #FFFFFF;
  --ink:       #0B1020;
  --ink-2:     #1A2540;
  --muted:     #5C6478;
  --muted-2:   #8A91A2;
  --line:      #E5E4DD;
  --line-2:    #ECEBE3;
  --accent:    #1A6FFF;
  --accent-2:  #0D4FCC;

  --state-todo:    #8A91A2;
  --state-progress:#1A6FFF;
  --state-blocked: #C2410C;
  --state-waiting: #B45309;
  --state-done:    #0E8A5F;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-card: 0 1px 0 rgba(11,16,32,.04), 0 20px 40px -22px rgba(11,16,32,.12);
  --shadow-soft: 0 1px 0 rgba(11,16,32,.03), 0 12px 28px -20px rgba(11,16,32,.08);

  --max: 1240px;
  --gap: clamp(16px, 2vw, 28px);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

/* ----- RESET --------------------------------------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; margin: 0; list-style: none; }
em { font-style: italic; }
.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; letter-spacing: -0.01em; }

/* ----- GRAIN --------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----- NAV ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.02em; font-size: 17px;
}
.brand img { border-radius: 7px; }
.nav-links {
  display: flex; gap: 28px; justify-content: center;
  font-size: 14px; color: var(--muted);
}
.nav-links a {
  position: relative; padding: 4px 2px;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { font-size: 13px; padding: 9px 14px; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
}

/* ----- BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  will-change: transform;
  cursor: pointer;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-xl { padding: 18px 28px; font-size: 16px; gap: 14px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--ink);
  color: #FAFAF7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -10px rgba(11,16,32,.55);
}
.btn-primary:hover {
  background: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 28px -12px rgba(11,16,32,.55);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-xl small { color: rgba(250,250,247,.7); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.btn-xl strong { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* ----- LAYOUT -------------------------------------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 4vw, 48px);
}
.section-quiet {
  background: var(--bg-quiet);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.section-quiet > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: lowercase;
}

/* ----- TYPOGRAPHY ---------------------------------------------------- */
.display {
  font-size: clamp(46px, 7.6vw, 96px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: var(--ink);
}
.display em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.ink-soft { color: var(--muted); font-weight: 500; }
.h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.lede-sm {
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}

/* ----- HERO ---------------------------------------------------------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 4vw, 48px) clamp(64px, 8vw, 120px);
  min-height: calc(100dvh - 70px);
  display: flex; align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    radial-gradient(540px 280px at 92% 8%, rgba(26,111,255,.08), transparent 60%),
    radial-gradient(420px 220px at 6% 86%, rgba(11,16,32,.04), transparent 60%);
  pointer-events: none; z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  font-feature-settings: "ss01";
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--state-done);
  box-shadow: 0 0 0 4px rgba(14,138,95,.16);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(14,138,95,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(14,138,95,0); }
}
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 44px;
}
.trust {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust .num {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.trust .num-sub {
  font-size: 13px; color: var(--muted-2); font-weight: 400; margin-left: 2px;
}
.trust .lbl { font-size: 12px; color: var(--muted); }
.trust .sep { height: 28px; width: 1px; background: var(--line); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: auto; padding-top: 32px; }
}

@media (max-width: 640px) {
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lede {
    max-width: 34ch;
  }

  .cta-row {
    width: 100%;
    max-width: 320px;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 36px;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .trust {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
  }

  .trust-item {
    align-items: center;
    text-align: center;
    padding: 0 10px;
  }

  .trust .num {
    font-size: 20px;
  }

  .trust .lbl {
    font-size: 11px;
  }

  .trust .sep {
    display: none;
  }
}

/* ----- HERO SCREENSHOT ------------------------------------------------ */
.hero-device {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1600px;
}
.device-glow {
  position: absolute; inset: -8% -10% -8% -10%;
  background:
    radial-gradient(50% 60% at 70% 25%, rgba(26,111,255,.22), transparent 62%),
    radial-gradient(60% 50% at 30% 80%, rgba(11,16,32,.08), transparent 60%);
  filter: blur(10px);
  z-index: -1;
}
.shot {
  position: relative;
  width: min(380px, 84%);
  aspect-ratio: 919 / 1985;
  transform: rotate(-1.6deg) translateZ(0);
  animation: float 4.2s cubic-bezier(.37, 0, .63, 1) infinite alternate;
  will-change: transform;
}
@keyframes float {
  0% {
    transform: rotate(-1.6deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(-1.12deg) translate3d(0, -10px, 0);
  }
}
.shot-img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(11,16,32,.06),
    0 50px 80px -32px rgba(11,16,32,.35),
    0 28px 50px -22px rgba(11,16,32,.22);
  background: var(--surface);
}

/* floating annotation chips around the screenshot */
.shot-callout {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  box-shadow: 0 14px 28px -16px rgba(11,16,32,.18), 0 1px 0 rgba(11,16,32,.04);
  white-space: nowrap;
  opacity: 0;
  animation: cbIn .9s var(--ease) forwards;
}
.shot-callout-1 { top: 14%; left: -28%; animation-delay: 700ms; }
.shot-callout-2 { top: 46%; right: -22%; animation-delay: 1000ms; }
.shot-callout-3 { bottom: 18%; left: -22%; animation-delay: 1300ms; }
@keyframes cbIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,111,255,.12);
}
.cb-dot.cb-progress {
  background: var(--state-progress);
  animation: pulse2 2s var(--ease) infinite;
}
.cb-dot.cb-done { background: var(--state-done); box-shadow: 0 0 0 4px rgba(14,138,95,.14); }

@media (max-width: 1180px) {
  .shot-callout { display: none; }
}

/* state bullets reused by the parent-child tree */
.bullet {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--state-todo);
  color: #fff;
  flex-shrink: 0;
}
.b-todo { border-color: var(--state-todo); }
.b-progress {
  border-color: var(--state-progress);
  background: radial-gradient(circle, var(--state-progress) 0 40%, transparent 41%);
  animation: prog 1.6s linear infinite;
}
@keyframes prog {
  0%   { box-shadow: 0 0 0 0 rgba(26,111,255,.35); }
  70%  { box-shadow: 0 0 0 6px rgba(26,111,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(26,111,255,0); }
}
.b-done { border-color: var(--state-done); background: var(--state-done); }

/* ----- MARQUEE ------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 36px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee-track span:nth-child(odd) { color: var(--muted-2); font-weight: 400; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- BENTO --------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: var(--gap);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); }
.card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; margin: 8px 0 8px; line-height: 1.15; }
.card-text  { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; max-width: 42ch; }
.card-head  { margin-bottom: 24px; }

.card-a { grid-column: span 2; }
.card-b { grid-column: span 1; }
.card-c { grid-column: span 1; }
.card-d { grid-column: span 2; }
.card-e { grid-column: span 2; }
.card-f { grid-column: span 1; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .card-a, .card-b, .card-c, .card-d, .card-e, .card-f { grid-column: span 1; }
}

@media (max-width: 640px) {
  .card {
    padding: 24px;
  }

  .state-flow {
    justify-content: center;
  }

  .state-rail {
    left: 8%;
    right: 8%;
  }

  .streak-vis {
    justify-content: center;
    flex-wrap: wrap;
  }

  .streak-grid {
    flex: 0 0 auto;
  }
}

/* --- A: state flow --- */
.state-flow {
  position: relative;
  margin-top: auto;
  padding: 36px 0 12px;
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center;
}
.state-rail {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.state-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 1;
}
.state-chip .chip-time { color: var(--muted-2); font-size: 10.5px; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.s-todo .chip-dot     { background: var(--state-todo); }
.s-progress .chip-dot { background: var(--state-progress); animation: pulse2 2s var(--ease) infinite; }
.s-blocked .chip-dot  { background: var(--state-blocked); }
.s-done .chip-dot     { background: var(--state-done); }
@keyframes pulse2 {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,111,255,.4); }
  50%     { box-shadow: 0 0 0 5px rgba(26,111,255,0); }
}
.state-cursor {
  position: absolute;
  width: 2px; height: 60px;
  top: calc(50% - 30px);
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(26,111,255,.18);
  border-radius: 2px;
  transform: translateX(0);
  animation: cursor 9s linear infinite;
}
@keyframes cursor {
  0%   { left: 6%; opacity: 0; }
  4%   { opacity: 1; }
  20%  { left: 22%; }
  40%  { left: 44%; }
  60%  { left: 64%; }
  80%  { left: 84%; }
  96%  { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}

/* --- B: streak --- */
.streak-vis {
  display: flex; align-items: center; gap: 18px; margin-bottom: 18px;
}
.streak-ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) 0 280deg, var(--line-2) 280deg 360deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.streak-ring::before {
  content: ""; position: absolute; inset: 5px;
  background: var(--surface); border-radius: 50%;
}
.streak-num { position: relative; font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.streak-lbl { position: relative; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  flex: 1;
  max-width: 168px;
}
.streak-grid span {
  aspect-ratio: 1; border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.streak-grid span:nth-child(7n+1) { opacity: 0.55; }
.streak-grid span:nth-child(3n)   { opacity: 0.7; }
.streak-grid .miss { background: var(--line); opacity: 1; }

/* --- C: offline --- */
.offline-vis {
  position: relative;
  margin: 8px auto 24px;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.offline-core {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #FAFAF7;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; letter-spacing: -0.03em;
  position: relative; z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 36px -14px rgba(11,16,32,.4);
}
.offline-core small { color: rgba(255,255,255,.6); font-size: 12px; margin-left: 2px; font-weight: 400; }
.ping {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
}
.ping-1 { animation: ping 3.6s var(--ease) infinite; }
.ping-2 { animation: ping 3.6s var(--ease) infinite 1.2s; }
.ping-3 { animation: ping 3.6s var(--ease) infinite 2.4s; }
@keyframes ping {
  0%   { transform: scale(0.55); opacity: 0; }
  20%  { opacity: .55; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* --- D: AI input --- */
.ai-input {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-prompt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  min-height: 48px;
}
.ai-icon { color: var(--accent); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.typewriter { white-space: nowrap; overflow: hidden; }
.caret {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.ai-out {
  display: flex; flex-direction: column; gap: 6px;
}
.ai-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  animation: aiRow .6s var(--ease) forwards;
}
.ai-row:nth-child(1) { animation-delay: 1.4s; }
.ai-row:nth-child(2) { animation-delay: 1.8s; }
.ai-row:nth-child(3) { animation-delay: 2.2s; }
@keyframes aiRow {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--state-done); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-task { flex: 1; font-weight: 500; color: var(--ink); }
.ai-pill {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-mono);
}

/* --- E: time stream --- */
.stream {
  margin-top: auto;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.stream-track {
  display: flex; flex-direction: column; gap: 12px;
}
.stream-row {
  display: grid; grid-template-columns: 90px 1fr 70px;
  align-items: center; gap: 14px;
}
.stream-label { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: lowercase; }
.stream-bar {
  display: flex; gap: 2px; height: 12px;
}
.stream-bar i {
  height: 100%;
  width: 0;
  background: var(--c, var(--ink));
  border-radius: 3px;
  transform-origin: left;
  animation: grow .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes grow {
  to { width: var(--w); }
}
.stream-num { font-size: 12px; color: var(--ink); text-align: right; font-weight: 500; }

/* --- F: recurring --- */
.recur-list { margin: 18px 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); }
.recur-list li { display: flex; gap: 10px; align-items: flex-start; }
.recur-list strong { color: var(--ink); font-weight: 600; }
.recur-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.d-once { background: var(--state-todo); }
.d-any  { background: var(--state-progress); }
.d-rule { background: var(--state-done); }
.cal {
  margin-top: auto;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-row.mono { color: var(--muted-2); font-size: 10px; text-align: center; padding-bottom: 4px; }
.cell {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--line-2);
}
.cell.on { background: var(--accent); opacity: 0.85; }
.cell.on.now {
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink);
}

/* ----- ZIGZAG -------------------------------------------------------- */
.zigzag {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px);
  align-items: center;
}
.zig { padding: 16px 0; }
.zig-art {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 880px) {
  .zigzag { grid-template-columns: 1fr; }
  .order-flip { order: 2; }
}

.tree { font-size: 14px; }
.node {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.node.n-parent { background: var(--surface); border-color: var(--ink-2); font-weight: 600; }
.branch { padding-left: 24px; border-left: 1px dashed var(--line); margin-left: 12px; }
.node .bullet { width: 12px; height: 12px; margin: 0; }
.pill-soft {
  background: var(--bg-quiet); border: 1px solid var(--line); padding: 2px 8px;
  border-radius: 999px; font-size: 11px; color: var(--muted); margin-left: auto;
}
.node.active { border-color: var(--accent); background: rgba(26,111,255,.04); }

.props {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.prop {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
}
.prop-name { font-size: 11px; color: var(--muted); text-transform: lowercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.prop-val { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.prop-val small { font-size: 12px; color: var(--muted); font-weight: 400; }
.prop-trend { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.prop-trend.up   { color: var(--state-done); }
.prop-trend.down { color: var(--state-blocked); }

.filter-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.filter-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.filter-name { font-weight: 600; letter-spacing: -0.015em; }
.filter-rules { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.rule {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  letter-spacing: -0.01em;
}
.rule em { color: var(--accent); font-style: normal; padding: 0 2px; font-weight: 500; }
.rule-op { font-size: 10px; color: var(--muted-2); font-family: var(--font-mono); padding: 0 2px; }

/* ----- PLATFORMS ----------------------------------------------------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .platforms { grid-template-columns: 1fr; } }

.plat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.plat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ink) 20%, var(--line)); }
.plat-live {
  background: linear-gradient(180deg, rgba(26,111,255,.04), transparent 40%), var(--surface);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
.plat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plat-head svg { color: var(--ink); }
.plat-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; flex: 1; }
.plat-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-family: var(--font-mono);
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.plat-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2);
}
.plat-status.status-live {
  background: rgba(14,138,95,.1); color: var(--state-done);
}
.plat-status.status-live .status-dot {
  background: var(--state-done);
  animation: pulse3 2s var(--ease) infinite;
}
@keyframes pulse3 {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,138,95,.45); }
  60%      { box-shadow: 0 0 0 5px rgba(14,138,95,0); }
}
.plat-status.status-soon { background: rgba(180,83,9,.08); color: var(--state-waiting); }
.plat-status.status-soon .status-dot { background: var(--state-waiting); }
.plat-sub { font-size: 13px; color: var(--muted); margin: 0; }

/* ----- PRICING ------------------------------------------------------- */
.pricing {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-pro {
  background: var(--ink);
  color: #FAFAF7;
  border-color: var(--ink);
}
.price-pro .price-cost,
.price-pro .price-sub,
.price-pro .price-tier { color: #FAFAF7; }
.price-pro .price-feats li { color: rgba(250,250,247,.78); }
.price-pro .price-feats strong { color: #FAFAF7; }
.price-pro .tick { background: rgba(255,255,255,.08); color: #FAFAF7; }
.price-pro .tick-on { background: var(--accent); color: #fff; }
.price-pro .btn-primary { background: #fff; color: var(--ink); }
.price-pro .btn-primary:hover { background: var(--bg); }

.price-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; padding: 4px 9px; border-radius: 999px;
  background: var(--accent); color: #fff;
  letter-spacing: 0.1em;
}
.price-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.price-tier { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.price-cost { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price-cost small { font-size: 13px; color: var(--muted); margin-left: 1px; font-weight: 400; }
.price-sub { font-size: 13px; color: var(--muted); margin: -8px 0 0; }
.price-feats { display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: 14.5px; color: var(--muted); }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.price-feats strong { color: var(--ink); font-weight: 600; }
.tick {
  flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-quiet);
  color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tick-on { background: var(--accent); color: #fff; }
.price .btn { margin-top: auto; }

/* ----- CTA BIG -------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: #FAFAF7;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(26,111,255,.35), transparent 60%),
    radial-gradient(50% 60% at 20% 90%, rgba(26,111,255,.18), transparent 60%);
  opacity: .6;
}
.cta-grid {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center;
}
.cta .h2 { color: #FAFAF7; }
.cta .lede-sm { color: rgba(250,250,247,.7); }
.cta .kicker { color: rgba(250,250,247,.5); }
.cta-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-side .btn-primary { background: #fff; color: var(--ink); border: none; }
.cta-side .btn-primary:hover { background: var(--bg); }
.cta-mailing {
  font-size: 13px; color: rgba(250,250,247,.6);
  display: inline-flex; gap: 6px; align-items: center;
  border-bottom: 1px solid rgba(250,250,247,.18);
  padding-bottom: 4px;
}
.cta-mailing:hover { color: #fff; border-color: #fff; }
@media (max-width: 820px) {
  .cta-grid { grid-template-columns: 1fr; }
}

/* ----- FAQ ----------------------------------------------------------- */
.faq {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-row {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-row summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; cursor: pointer;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  list-style: none;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-row[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 4px 22px;
  font-size: 15px; color: var(--muted); line-height: 1.6;
  max-width: 70ch;
}
.faq-body strong { color: var(--ink); font-weight: 600; }

/* ----- FOOTER -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-quiet);
  padding: 56px clamp(20px, 4vw, 48px) 32px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid > div {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.footer-grid a { color: var(--muted); transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--ink); }
.footer-h {
  font-size: 11px; color: var(--ink); text-transform: uppercase;
  letter-spacing: 0.1em; font-family: var(--font-mono); font-weight: 500;
  margin-bottom: 6px;
}
.footer-tag { color: var(--muted); margin: 4px 0 0; font-size: 13.5px; }
.footer-base {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted-2);
}
.small { font-size: 11.5px; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}

/* ----- REVEAL -------------------------------------------------------- */
.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
/* Only hide when JS is active — guarantees content is visible if JS fails. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- REDUCED MOTION ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
