﻿/* ============================================
   KREW-AI · Editorial landing
   Paper × Ink × Chartreuse
============================================ */

:root {
  --paper: #F2EFE9;
  --paper-2: #EAE6DD;
  --paper-3: #DBD6C9;
  --ink: #0E0E0C;
  --ink-2: #1C1C1A;
  --ink-3: #2B2B27;
  --rule: rgba(14, 14, 12, 0.12);
  --rule-strong: rgba(14, 14, 12, 0.22);
  --muted: rgba(14, 14, 12, 0.58);
  --muted-2: rgba(14, 14, 12, 0.4);
  --accent: #7C5CFF;
  --accent-ink: #F2EFE9;

  /* Always-dark surfaces (modules, pricing, footer) — do NOT flip with theme */
  --dark: #0E0E0C;
  --on-dark: #F2EFE9;
  --on-dark-2: rgba(242, 239, 233, 0.65);
  --on-dark-3: rgba(242, 239, 233, 0.45);
  --rule-dark: rgba(242, 239, 233, 0.10);
  --rule-dark-2: rgba(242, 239, 233, 0.22);

  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --max: 1440px;
  --pad-x: clamp(20px, 4vw, 56px);
}

[data-theme="ink"] {
  --paper: #0E0E0C;
  --paper-2: #161614;
  --paper-3: #22221F;
  --ink: #F2EFE9;
  --ink-2: #DBD6C9;
  --ink-3: #AEAA9F;
  --rule: rgba(242, 239, 233, 0.10);
  --rule-strong: rgba(242, 239, 233, 0.22);
  --muted: rgba(242, 239, 233, 0.58);
  --muted-2: rgba(242, 239, 233, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- MONO META ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- DISPLAY TYPE ---------- */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.italic {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section {
  position: relative;
}

.rule { border-top: 1px solid var(--rule); }
.rule-b { border-bottom: 1px solid var(--rule); }

/* ============================================
   NAV
============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: grid;
  grid-template-columns: 0.7fr auto 1.3fr;
  align-items: center;
  height: 64px;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 18px;
}
.nav-mark .logo {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-mark .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 40%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 10%, transparent); }
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right .btn {
  display: flex;
  align-self: center;
}
.nav-meta {
  color: var(--muted-2);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn:disabled, .btn.disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--rule-strong);
  cursor: not-allowed;
  pointer-events: none;
}

/* Pill CTA inside cards — uppercase mono on solid block */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill-cta:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill-cta.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pill-cta.accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pill-cta.dark-on-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 6px 22px -10px color-mix(in oklab, var(--accent) 60%, transparent);
}
.pill-cta.dark-on-accent:hover {
  background: color-mix(in oklab, var(--accent) 88%, #000);
  border-color: color-mix(in oklab, var(--accent) 88%, #000);
  color: var(--accent-ink);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: stretch;
  height: 38px;
  padding: 0 3px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .tt-track {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 110px;
  height: 100%;
}
.theme-toggle .tt-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.22s cubic-bezier(.4,.2,.2,1);
  z-index: 0;
}
[data-theme="ink"] .theme-toggle .tt-thumb { transform: translateX(100%); }
.theme-toggle .tt-l {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  display: grid;
  place-items: center;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.22s ease;
}
.theme-toggle .tt-paper { color: var(--paper); }
[data-theme="ink"] .theme-toggle .tt-paper { color: var(--ink); }
[data-theme="ink"] .theme-toggle .tt-ink { color: var(--paper); }

/* ============================================
   HERO
============================================ */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(56px, 9vw, 120px);
  flex-wrap: wrap;
}
.hero-meta-left,
.hero-meta-right {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta .label {
  color: var(--muted-2);
  margin-right: 6px;
}
.hero-h {
  font-size: clamp(64px, 13.5vw, 232px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 500;
  position: relative;
}
.hero-h .line { display: block; }
.hero-h .stack {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
}
.hero-h .accent-mark {
  display: inline-block;
  width: clamp(36px, 5vw, 86px);
  height: clamp(36px, 5vw, 86px);
  background: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  margin-bottom: 0.08em;
  position: relative;
  flex-shrink: 0;
}
.hero-h .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 96px);
  align-items: end;
}
.hero-foot p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  max-width: 44ch;
  color: var(--ink-2);
}
.hero-foot p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}
.hero-keys {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-keys .row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
}
.hero-keys .row::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
  display: block;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.hero-cta .btn { height: 48px; padding: 0 22px; font-size: 14px; }
.hero-cta .note { color: var(--muted-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* status strip */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  background: var(--paper);
  overflow: hidden;
}
.strip-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
  will-change: transform;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.strip-item .sq {
  width: 6px; height: 6px; background: var(--ink); display: inline-block;
}
.strip-item .sq.acc { background: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-16.6667%); }
}

/* ============================================
   PROBLEM / MANIFESTO
============================================ */
.problem {
  padding: clamp(80px, 10vw, 140px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}
.section-head .index {
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 18ch;
}
.section-head h2 .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.problem-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}
.problem-grid .col-label { color: var(--muted); padding-top: 4px; }
.problem-card h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.problem-card h3 .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-right: 12px;
  vertical-align: middle;
}
.problem-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}

/* ============================================
   MODULES
============================================ */
.modules {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(80px, 10vw, 140px) 0;
}
.modules .section-head h2 { color: var(--on-dark); }
.modules .section-head .index { color: var(--on-dark-3); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.mcard {
  background: var(--dark);
  padding: 36px 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: background 0.3s ease;
  grid-column: span 4;
}
.mcard:hover { background: #161614; }
.mcard .mtop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.mcard .midx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-3);
}
.mcard .mstatus {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mcard .mstatus .ind {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent);
}
.mcard .mstatus.upcoming .ind { background: var(--on-dark-3); box-shadow: none; }

.mcard .micon {
  width: 56px; height: 56px;
  background: var(--on-dark);
  color: var(--dark);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}
.mcard:hover .micon { background: var(--accent); color: var(--accent-ink); }
.mcard .micon svg { width: 28px; height: 28px; }

.mcard .mname {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.mcard .mname .role {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--on-dark-3);
  letter-spacing: -0.01em;
}
.mcard .mdesc {
  color: var(--on-dark-2);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 16px;
  margin-bottom: auto;
  padding-bottom: 24px;
  max-width: 40ch;
}
.mcard .mtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  justify-content: space-between;
  width: 100%;
}
.mcard .mtag .go {
  color: var(--on-dark-2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.mcard:hover .mtag .go { color: var(--on-dark); transform: translateX(2px); }
.mclink { text-decoration: none; }

/* ---------- COMING SOON treatment ---------- */
.mcard.cs {
  position: relative;
}
.mcard.cs .micon { opacity: 0.55; }
.mcard.cs .mname { color: rgba(242,239,233,0.55); }
.mcard.cs .mname .role { color: rgba(242,239,233,0.32); }
.mcard.cs .mdesc { color: rgba(242,239,233,0.42); }
.mcard.cs:hover { background: var(--dark); }
.mcard.cs:hover .micon { background: var(--on-dark); color: var(--dark); }
.mcard.cs .mtag .go { font-style: normal; }
.mcs-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(242,239,233,0.06);
  border: 1px solid rgba(242,239,233,0.18);
  color: rgba(242,239,233,0.7);
  z-index: 2;
}
/* On coming-soon cards, the badge replaces the inline status indicator entirely */
.mcard.cs .mstatus { display: none; }
.mcard.feature.cs .mcs-badge {
  background: rgba(14,14,12,0.08);
  border-color: rgba(14,14,12,0.2);
  color: rgba(14,14,12,0.7);
}
.mcard.feature.cs .micon { opacity: 0.6; }
.mcard.feature.cs .mname { color: rgba(14,14,12,0.65); }
.mcard.feature.cs .mdesc { color: rgba(14,14,12,0.5); }

.mcard.span6 { grid-column: span 6; }
.mcard.span12 { grid-column: span 12; }

.mcard.feature {
  background: var(--accent);
  color: var(--accent-ink);
}
.mcard.feature .midx,
.mcard.feature .mstatus,
.mcard.feature .mdesc { color: color-mix(in oklab, var(--accent-ink) 72%, transparent); }
.mcard.feature .mstatus .ind { background: var(--accent-ink); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-ink) 25%, transparent); }
.mcard.feature .mname .role { color: color-mix(in oklab, var(--accent-ink) 60%, transparent); }
.mcard.feature .micon { background: var(--accent-ink); color: var(--accent); }
.mcard.feature:hover { background: var(--accent); }
.mcard.feature:hover .micon { background: var(--accent-ink); }
.mcard.feature .mtag {
  color: var(--accent-ink);
  border-top-color: color-mix(in oklab, var(--accent-ink) 18%, transparent);
}

/* ============================================
   DEEP DIVES
============================================ */
.deepdive {
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--rule);
}
.dd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
}
.dd:first-of-type { border-top: none; padding-top: 0; }
.dd-text .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
}
.dd-text .eyebrow .num {
  width: 32px; height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.dd-text h3 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 24px;
}
.dd-text h3 .it {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
}
.dd-text p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
  margin-bottom: 24px;
}
.dd-text ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.dd-text ul li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  align-items: start;
}
.dd-text ul li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  margin-top: 7px;
  display: block;
}
.dd-text ul li.acc::before { background: var(--accent); border: 1px solid var(--ink); }
.dd.reverse { direction: rtl; }
.dd.reverse > * { direction: ltr; }

/* Visual cards for deep dives — stable surfaces (don't flip with theme) */
.dd-visual {
  aspect-ratio: 5/4;
  background: #EAE6DD;
  border: 1px solid rgba(14,14,12,0.12);
  color: #0E0E0C;
  position: relative;
  overflow: hidden;
}

/* KREW visual — pixel agents */
.vis-krew {
  background:
    linear-gradient(#EAE6DD, #EAE6DD),
    radial-gradient(circle at center, #DBD6C9 0%, #EAE6DD 70%);
  display: grid;
  place-items: center;
}
.vis-krew .floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,14,12,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,14,12,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}
.vis-krew .agents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.vis-agent {
  width: 64px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vis-agent .head {
  width: 28px; height: 28px;
  background: #0E0E0C;
  border-radius: 50%;
  margin-bottom: 4px;
  position: relative;
}
.vis-agent .head::after {
  content: "";
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.vis-agent .body {
  width: 44px; height: 38px;
  background: #0E0E0C;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.vis-agent .desk {
  width: 56px; height: 6px;
  background: rgba(14,14,12,0.35);
  margin-top: -2px;
}
.vis-agent.live .head::after { background: var(--accent); }
.vis-agent.idle { opacity: 0.4; }
.vis-agent.idle .head::after { background: rgba(14,14,12,0.4); }

/* STUDIO visual — node graph */
.vis-studio { background: #EAE6DD; padding: 28px; }
.vis-studio svg { width: 100%; height: 100%; }

/* CODER visual — terminal (always-dark) */
.vis-coder {
  background: #0E0E0C;
  color: #F2EFE9;
  border-color: rgba(242,239,233,0.12);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.vis-coder .term-top {
  display: flex; gap: 6px; margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(242,239,233,0.1);
  align-items: center;
}
.vis-coder .term-top .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(242,239,233,0.3); }
.vis-coder .term-top .label {
  margin-left: auto; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,239,233,0.5);
}
.vis-coder .ln { color: rgba(242,239,233,0.85); }
.vis-coder .ln.dim { color: rgba(242,239,233,0.4); }
.vis-coder .ln .acc { color: var(--accent); }
.vis-coder .ln .pr::before { content: "$ "; color: var(--accent); }
.vis-coder .ln.out::before { content: "→ "; color: rgba(242,239,233,0.4); }
.vis-coder .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* MODELS visual — stack */
.vis-models { background: #EAE6DD; padding: 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.vis-models .mrow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #F2EFE9;
  border: 1px solid rgba(14,14,12,0.12);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #0E0E0C;
}
.vis-models .mrow .badge {
  width: 28px; height: 28px;
  background: #0E0E0C;
  color: #F2EFE9;
  display: grid; place-items: center;
  font-size: 10px; letter-spacing: 0.05em;
}
.vis-models .mrow.feat .badge { background: var(--accent); color: var(--accent-ink); }
.vis-models .mrow .name { color: #0E0E0C; font-weight: 500; }
.vis-models .mrow .size { color: rgba(14,14,12,0.55); font-size: 11px; }
.vis-models .mrow .dl {
  width: 16px; height: 16px;
  border: 1px solid rgba(14,14,12,0.25);
  display: grid; place-items: center;
}

/* VAULT visual — globe / network (always-dark) */
.vis-vault {
  background: #0E0E0C;
  color: #F2EFE9;
  border-color: rgba(242,239,233,0.12);
  padding: 0;
  display: grid;
  place-items: center;
}
.vis-vault svg { width: 80%; height: 80%; }

/* GUARD visual — shield/grid */
.vis-guard {
  background: #EAE6DD;
  position: relative;
  display: grid; place-items: center;
}

/* ============================================
   LOCK-IN
============================================ */
.lockin {
  background: var(--paper-2);
  padding: clamp(80px, 10vw, 140px) 0;
}
.lockin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
  margin-top: 32px;
}
.lockin-card {
  padding: 32px 24px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background 0.2s ease;
}
.lockin-card:hover { background: var(--paper); }
.lockin-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}
.lockin-card h4 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.lockin-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   AUDIENCE
============================================ */
.audience {
  padding: clamp(80px, 10vw, 140px) 0;
}
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.aud-card {
  background: var(--paper);
  padding: 32px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aud-card .glyph {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 8px;
}
.aud-card .glyph svg { width: 22px; height: 22px; }
.aud-card h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.aud-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36ch;
}

/* ============================================
   PRICING
============================================ */
.pricing {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(80px, 10vw, 140px) 0;
}
.pricing .section-head h2 { color: var(--on-dark); }
.pricing .section-head .index { color: var(--on-dark-3); }
.pricing .section-head p { color: var(--on-dark-2); font-size: 15px; max-width: 50ch; margin-top: 12px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.pcard {
  background: var(--dark);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: background 0.2s ease;
}
.pcard:hover { background: #161614; }
.pcard.feat { background: #F2EFE9; color: #0E0E0C; }
.pcard.feat:hover { background: #F2EFE9; }
.pcard .ptop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.pcard .ptier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--on-dark-2);
  text-transform: uppercase;
}
.pcard.feat .ptier { color: rgba(14,14,12,0.58); }
.pcard .ppop {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--accent-ink);
}
.pcard .pname {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.pcard .pamount {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pcard .pamount .cur {
  font-size: 22px;
  color: rgba(242,239,233,0.5);
}
.pcard.feat .pamount .cur { color: rgba(14,14,12,0.55); }
.pcard .pamount .per {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(242,239,233,0.5);
  text-transform: uppercase;
  margin-left: 8px;
  font-weight: 400;
}
.pcard.feat .pamount .per { color: rgba(14,14,12,0.55); }
.pcard ul {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pcard ul li {
  padding: 12px 0;
  border-top: 1px solid rgba(242,239,233,0.1);
  font-size: 13px;
  color: rgba(242,239,233,0.85);
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
}
.pcard.feat ul li {
  border-top-color: rgba(14,14,12,0.12);
  color: rgba(14,14,12,0.7);
}
.pcard ul li:last-child { border-bottom: 1px solid rgba(242,239,233,0.1); }
.pcard.feat ul li:last-child { border-bottom-color: rgba(14,14,12,0.12); }
.pcard ul li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  margin-top: 6px;
}
.pcard .pcta {
  margin-top: auto;
  padding-top: 28px;
}
.pcard .pcta button {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule-dark-2);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  border-radius: 999px;
}
.pcard .pcta button:hover { background: rgba(242,239,233,0.08); border-color: var(--on-dark); }
.pcard.feat .pcta button {
  background: #0E0E0C;
  border-color: #0E0E0C;
  color: #F2EFE9;
}
.pcard.feat .pcta button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ============================================
   MESH PLANS
============================================ */
.mesh-plans {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.mesh-plans .section-head h2 { color: var(--on-dark); }
.mesh-plans .section-head .index { color: var(--on-dark-3); }
.mesh-plans .section-head p {
  color: var(--on-dark-2); font-size: 15px;
  max-width: 52ch; margin-top: 12px; line-height: 1.65;
}

.mesh-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  margin-top: clamp(32px, 5vw, 56px);
}
.mesh-pcard {
  background: var(--dark);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
}
.mesh-pcard-feat {
  background: #100F1C;
}
.mesh-pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mesh-ptier {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--on-dark-3);
  text-transform: uppercase;
}
.mesh-ppop {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.mesh-free-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, #22c55e 20%, transparent);
  color: #4ade80;
  border: 1px solid color-mix(in oklab, #22c55e 35%, transparent);
}
.mesh-device-num {
  font-size: 80px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--on-dark);
  margin-bottom: 8px;
}
.mesh-pcard-feat .mesh-device-num { color: var(--accent); }
.mesh-pcard-sub {
  font-size: 13px;
  color: var(--on-dark-3);
  margin-bottom: 28px;
}

/* Free list */
.mesh-free-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.mesh-free-list li {
  font-size: 13.5px;
  color: var(--on-dark-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.mesh-free-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
}

/* Calculator */
.mesh-calc {
  margin-bottom: 20px;
}
.mesh-calc-label {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 12px;
}
.mesh-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--rule-dark-2);
  width: fit-content;
  margin-bottom: 8px;
}
.mesh-step-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--on-dark-2);
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-sans);
}
.mesh-step-btn:hover { background: rgba(242,239,233,0.08); }
.mesh-step-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.mesh-step-val {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  min-width: 52px;
  text-align: center;
  padding: 0 8px;
  border-left: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
  line-height: 40px;
}
.mesh-calc-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-3);
  letter-spacing: 0.06em;
}

/* Hours picker (hourly tab only) */
.mesh-hr-picker {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
}
.mesh-hr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mesh-hr-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  min-width: 38px;
  text-align: right;
}
.mesh-hr-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), rgba(242,239,233,0.15) var(--fill, 0%));
}
.mesh-hr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}
.mesh-hr-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.mesh-hr-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.mesh-hr-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark-2);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Mesh detail link button (in section heading) */
.mesh-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 20px;
  border: 1px solid rgba(242,239,233,0.3);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark);
  letter-spacing: -0.005em;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.mesh-detail-btn:hover {
  background: rgba(242,239,233,0.08);
  border-color: rgba(242,239,233,0.5);
}

/* Duration tabs */
.mesh-dur-tabs {
  display: flex;
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  margin-bottom: 24px;
}
.mesh-tab {
  flex: 1;
  padding: 9px 0;
  background: #100F1C;
  border: none;
  color: var(--on-dark-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mesh-tab:hover { background: rgba(124,92,255,0.12); color: var(--on-dark-2); }
.mesh-tab.active { background: var(--accent); color: var(--accent-ink); }

/* Result display */
.mesh-calc-result {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--rule-dark-2);
  background: rgba(124,92,255,0.06);
}
.mesh-result-price {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.mesh-result-detail {
  font-size: 13px;
  color: var(--on-dark-2);
  margin-bottom: 4px;
}
.mesh-result-perhr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-3);
  letter-spacing: 0.06em;
}
.mesh-result-tip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 8px;
  min-height: 16px;
  letter-spacing: 0.03em;
}

.mesh-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  flex: 1;
  margin-bottom: 28px;
}
.mesh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--dark);
  transition: background 0.15s ease;
}
.mesh-pcard-feat .mesh-row { background: #100F1C; }
.mesh-row:hover { background: #161614; }
.mesh-pcard-feat .mesh-row:hover { background: #17152a; }
.mesh-row.mesh-best {
  background: color-mix(in oklab, var(--accent) 14%, var(--dark));
}
.mesh-pcard-feat .mesh-row.mesh-best {
  background: color-mix(in oklab, var(--accent) 18%, #100F1C);
}
.mesh-dur {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  min-width: 58px;
}
.mesh-price {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  margin-right: auto;
}
.mesh-perhr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-dark-3);
}
.mesh-best-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}

.mesh-cta-btn {
  padding: 14px 0;
  border-radius: 0;
  border: 1px solid var(--rule-dark-2);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}
.mesh-cta-btn:hover { background: rgba(242,239,233,0.06); }
.mesh-cta-feat {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.mesh-cta-feat:hover { background: color-mix(in oklab, var(--accent) 85%, white); }

.mesh-footnote {
  text-align: center;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

/* Mesh ticker */
@keyframes mtick-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mesh-ticker {
  overflow: hidden;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule);
  background: var(--dark);
  padding: 14px 0;
}
.mesh-ticker-inner {
  display: flex;
  width: max-content;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: mtick-scroll 48s linear infinite;
}
.mesh-ticker-inner:hover { animation-play-state: paused; }
.mtick-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 36px;
}
.mtick-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}
.mtick-detail {
  font-size: 12px;
  font-weight: 300;
  color: var(--on-dark-3);
}
.mtick-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rule-dark-2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mesh-plan-grid { grid-template-columns: 1fr; }
  .mesh-device-num { font-size: 60px; }
}

/* ============================================
   WAITLIST
============================================ */
.waitlist {
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 70%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.waitlist-eyebrow {
  margin-bottom: 32px;
  color: var(--muted);
}
.waitlist h2 {
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 auto;
  max-width: 12ch;
}
.waitlist h2 .it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  display: block;
}
.waitlist .lede {
  margin-top: 32px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.waitlist .form {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
}
.waitlist .form input {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: var(--ink);
  font-size: 15px;
}
.waitlist .form input::placeholder { color: var(--muted-2); }
.waitlist .form button {
  height: 44px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}
.waitlist .form button:hover { background: var(--accent); color: var(--accent-ink); }
.waitlist .form.ok { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, var(--paper)); }
.waitlist-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.waitlist-stats .s {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.waitlist-stats .s .v {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
}
.waitlist-stats .s .l {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(56px, 7vw, 96px) 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-top h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-top ul {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-top a {
  font-size: 14px;
  color: var(--on-dark-2);
  transition: color 0.15s ease;
}
.footer-top a:hover { color: var(--accent); }
/* Brand link must inherit its big display size, not the 14px default for footer links */
.footer-brand a {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}
.footer-brand {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand .brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.footer-brand .flogo {
  width: 44px;
  height: 40px;
  color: var(--on-dark);
  flex-shrink: 0;
  transform: translateY(6px); /* nudge to optical-center the icon with the wordmark cap-height */
}
.footer-brand .dot {
  width: 16px; height: 16px;
  background: var(--accent); border-radius: 50%;
  display: inline-block;
}
.footer-brand .tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,239,233,0.4);
  margin-left: 12px;
  align-self: end;
  padding-bottom: 8px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242,239,233,0.4);
}

/* ============================================
   KREW-AI · Product tour overlay
============================================ */
body.tour-open { overflow: hidden; }
#tour-overlay {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  display: none;
}
#tour-overlay.on {
  display: block;
  pointer-events: auto;
}
.tour-spot {
  position: absolute;
  border-radius: 12px;
  pointer-events: none;
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 0 6px color-mix(in oklab, var(--accent) 30%, transparent),
    0 0 0 9999px rgba(14, 14, 12, 0.72);
  transition: top 0.35s cubic-bezier(.4,.2,.2,1),
              left 0.35s cubic-bezier(.4,.2,.2,1),
              width 0.35s cubic-bezier(.4,.2,.2,1),
              height 0.35s cubic-bezier(.4,.2,.2,1);
}
.tour-spot.hide {
  /* no element — full-screen darken */
  top: 50%; left: 50%; width: 0; height: 0;
  box-shadow: 0 0 0 9999px rgba(14,14,12,0.78);
}
.tour-tooltip {
  position: absolute;
  width: 340px;
  background: #F2EFE9;
  color: #0E0E0C;
  padding: 22px 24px 18px;
  border: 1px solid #0E0E0C;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4);
  transition: top 0.35s cubic-bezier(.4,.2,.2,1), left 0.35s cubic-bezier(.4,.2,.2,1);
}
.tour-tooltip.center { width: 420px; max-width: calc(100vw - 40px); }
.tour-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14,14,12,0.5);
  margin-bottom: 12px;
}
.tour-tooltip h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #0E0E0C;
}
.tour-tooltip p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(14,14,12,0.78);
  margin-bottom: 18px;
}
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tour-skip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14,14,12,0.55);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tour-skip:hover { color: #0E0E0C; border-bottom-color: #0E0E0C; }
.tour-nav { display: flex; gap: 6px; }
.tour-prev, .tour-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tour-prev {
  background: transparent;
  color: rgba(14,14,12,0.65);
  border: 1px solid rgba(14,14,12,0.18);
}
.tour-prev:hover { color: #0E0E0C; border-color: #0E0E0C; }
.tour-next {
  background: #0E0E0C;
  color: #F2EFE9;
  border: 1px solid #0E0E0C;
}
.tour-next:hover { background: #7C5CFF; border-color: #7C5CFF; color: #F2EFE9; transform: translateY(-1px); }

/* "Show me around" nav button */
.nav-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  margin-left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav-tour-btn:hover { color: var(--ink); border-color: var(--ink); }
.nav-tour-btn .pulse {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent);
}

@media (max-width: 680px) {
  .tour-tooltip { width: calc(100vw - 32px); left: 16px !important; }
  .nav-tour-btn { display: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(6, 1fr); }
  .mcard, .mcard.span6 { grid-column: span 3; }
  .mcard.span12 { grid-column: span 6; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .lockin-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid .col-label { grid-column: 1 / -1; }
  .hero-foot { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero-h .accent-mark {
    width: 32px; height: 32px;
  }
  .dd { grid-template-columns: 1fr; }
  .dd.reverse { direction: ltr; }
  .modules-grid { grid-template-columns: 1fr; }
  .mcard, .mcard.span6, .mcard.span12 { grid-column: span 1; }
  .price-grid { grid-template-columns: 1fr; }
  .lockin-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 12px; }
  .hero-meta-left, .hero-meta-right { gap: 14px; }
  .strip-item { padding-right: 28px; }
  .waitlist .form { flex-direction: column; border-radius: 16px; padding: 6px; }
  .waitlist .form input { width: 100%; padding: 0 16px; }
  .waitlist .form button { width: 100%; border-radius: 12px; }
  .footer-top { grid-template-columns: 1fr; }
}
