/* ============================================================
   molar.it/v4 — GraspNote-structured marketing (Molar brand)
   Self-contained. Fonts from ../fonts (OFL).
   Porcelain + vermilion — not purple SaaS sludge.
   ============================================================ */

/* Self-hosted OFL fonts — same files as Instant Proof (see ../fonts/README.md) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf9f6;
  --bg-2: #f3f1ec;
  --card: #ffffff;
  --ink: #17150f;
  --ink-2: #565144;
  --ink-3: #5c574b;
  --line: #e7e3d8;
  --line-soft: #efece4;
  --signal: #e04a2f;
  --signal-ink: #bd3a22;
  --signal-soft: #fceeea;
  --jade: #178a5b;
  --jade-soft: #e8f5ee;
  --amber: #b17b14;
  --amber-soft: #faf3e3;
  --code: #14130e;
  --code-ink: #d8d4c8;

  --font-display: "Bricolage Grotesque", "Instrument Sans", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --content: 1120px;
  --pad: clamp(24px, 4.5vw, 36px);
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(23, 21, 15, 0.04), 0 14px 40px -24px rgba(23, 21, 15, 0.22);
  --shadow-soft: 0 1px 2px rgba(23, 21, 15, 0.03);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(224, 74, 47, 0.07), transparent 55%),
    linear-gradient(180deg, #fffefb 0%, var(--bg) 28%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(23, 21, 15, 0.03) 1px, transparent 1px);
  background-size: calc((100vw - min(100vw, var(--content))) / 2 + 1px) 100%;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-2);
  padding: 0.12em 0.38em;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 8px;
}
.skip:focus { transform: none; }

.shell {
  width: min(calc(100% - (var(--pad) * 2)), var(--content));
  margin-inline: auto;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 10px max(var(--pad), calc((100vw - var(--content)) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, #fffefb 90%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark { border-radius: 7px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.brand-ver {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.nav-links {
  display: none;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.menu-btn span[aria-hidden] {
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.mobile-nav {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: calc(100% + 8px);
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--bg-2); color: var(--ink); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--ink);
  color: #fffefb;
  box-shadow: 0 10px 28px -16px rgba(23, 21, 15, 0.55);
}
.btn-primary:hover { background: #000; }
.btn-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--ink-3); }
.btn-ghost {
  color: var(--ink-2);
  padding-inline: 12px;
}
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--signal-ink);
  font-weight: 600;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- type helpers ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section {
  padding: clamp(64px, 10vw, 112px) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2,
.hero-title,
.closing h2,
.feature-copy h3,
.trust-card h3,
.plan-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-weight: 650;
}
.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.section-lede {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 58ch;
}
.section-head.center .section-lede { margin-inline: auto; }

.band {
  position: relative;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 40%, transparent));
  border-block: 1px solid var(--line-soft);
  z-index: -1;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
}
.hero-title {
  margin: 0 auto 20px;
  max-width: 16ch;
  font-size: clamp(2.55rem, 7vw, 4.35rem);
}
.hero-brand {
  display: block;
  color: var(--signal);
  font-size: 0.42em;
  letter-spacing: -0.03em;
  margin-bottom: 0.35em;
}
.hero-lede {
  margin: 0 auto 28px;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-note {
  margin: 0 auto 36px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* GraspNote desk cleanliness — porcelain cards, soft radius, airy gaps */
.hero-desk {
  text-align: left;
  margin: 0 auto 28px;
  display: grid;
  gap: 14px;
  max-width: 100%;
}
.stat-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-meta {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.desk-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: color-mix(in srgb, var(--bg-2) 55%, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.desk-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.desk-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--signal) 22%, var(--line));
}
.desk-type {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.desk-type-run { background: var(--signal-soft); color: var(--signal-ink); }
.desk-type-pr { background: var(--amber-soft); color: var(--amber); }
.desk-type-clone { background: var(--jade-soft); color: var(--jade); }
.desk-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.desk-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.desk-sum {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.desk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.desk-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--ink-2);
}
.desk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}
.desk-badge.is-ready {
  background: var(--jade-soft);
  color: var(--jade);
}
.desk-badge.is-block {
  background: var(--signal-soft);
  color: var(--signal-ink);
}
@media (max-width: 640px) {
  .desk-item {
    grid-template-columns: auto 1fr;
  }
  .desk-badge { grid-column: 2; justify-self: start; }
}

.hero-stage {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: stage-float 7s ease-in-out infinite;
}
@keyframes stage-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage { animation: none; }
}
.demo-chrome {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.demo-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8d2c4;
}
.demo-chrome span:nth-child(1) { background: #e8a598; }
.demo-chrome span:nth-child(2) { background: #e2c98a; }
.demo-chrome span:nth-child(3) { background: #a8c9b4; }
.demo-url {
  justify-self: stretch;
  margin-left: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .demo-body { grid-template-columns: 220px 1fr; min-height: 340px; }
}

.demo-rail {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg-2) 70%, #fff);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .demo-rail { border-bottom: 0; border-right: 1px solid var(--line); align-content: start; }
}
.demo-tab {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.2s var(--ease);
}
.demo-tab:hover { background: rgba(23, 21, 15, 0.04); }
.demo-tab.is-active {
  background: var(--signal-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 25%, transparent);
}
.demo-tab-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.demo-tab.is-active .demo-tab-kicker { color: var(--signal-ink); }
.demo-tab-label { font-weight: 600; letter-spacing: -0.02em; }

.demo-panel {
  padding: 20px;
  position: relative;
  min-height: 280px;
}
.demo-scene {
  display: grid;
  gap: 14px;
  animation: scene-in 0.55s var(--ease);
}
@keyframes scene-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--jade-soft);
  color: var(--jade);
}
.demo-status.is-run {
  background: var(--amber-soft);
  color: var(--amber);
}
.demo-status.is-fail {
  background: var(--signal-soft);
  color: var(--signal-ink);
}
.demo-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.demo-claim {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.demo-steps li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.95rem;
  opacity: 0.45;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.demo-steps li.is-on {
  opacity: 1;
  transform: none;
  border-color: color-mix(in srgb, var(--signal) 28%, var(--line));
  background: #fff;
  color: var(--ink);
}
.demo-steps li.is-done {
  opacity: 0.85;
  background: var(--jade-soft);
  border-color: color-mix(in srgb, var(--jade) 25%, var(--line));
}
.demo-steps .dot {
  width: 10px; height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
}
.demo-steps li.is-on .dot {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.demo-steps li.is-done .dot {
  border-color: var(--jade);
  background: var(--jade);
}

.demo-chat {
  display: grid;
  gap: 10px;
}
.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
}
.bubble-user {
  justify-self: end;
  background: var(--ink);
  color: #fffefb;
  border-bottom-right-radius: 6px;
}
.bubble-agent {
  justify-self: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--ink-2);
}
.bubble-agent strong { color: var(--ink); }
.bubble-agent code {
  background: #fff;
  border: 1px solid var(--line);
}

.demo-pr {
  display: grid;
  gap: 10px;
}
.pr-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}
.pill-run { background: var(--amber-soft); color: var(--amber); }
.pill-fail { background: var(--signal-soft); color: var(--signal-ink); }
.pill-block { background: var(--ink); color: #fff; }
.pill-pass { background: var(--jade-soft); color: var(--jade); }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
}
.feature-card {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3.2vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .feature-card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .feature-card.flip .feature-copy { order: 2; }
  .feature-card.flip .feature-viz { order: 1; }
}
.feature-copy h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}
.feature-copy p {
  margin: 0;
  color: var(--ink-2);
}

.feature-viz {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--r-sm);
  background:
    linear-gradient(160deg, #fff, var(--bg-2));
  border: 1px solid var(--line-soft);
}

.map-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.map-node {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.map-node.is-seed { border-color: var(--signal); color: var(--signal-ink); }
.map-node.is-pass { background: var(--jade-soft); border-color: transparent; color: var(--jade); }
.map-edge {
  width: 22px;
  height: 2px;
  background: var(--line);
}

.guard-viz { display: grid; gap: 8px; }
.guard-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.clone-viz {
  display: grid;
  gap: 8px;
}
.clone-chip {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.clone-chip.is-ok {
  border-style: solid;
  background: var(--jade-soft);
  border-color: transparent;
  color: var(--jade);
}

.trace-viz { display: grid; gap: 14px; align-content: center; }
.trace-bar {
  display: flex;
  gap: 4px;
  height: 28px;
  align-items: end;
}
.trace-bar i {
  display: block;
  width: var(--w);
  height: 60%;
  border-radius: 4px 4px 0 0;
  background: #cfc8b8;
}
.trace-bar i.hot {
  height: 100%;
  background: var(--signal);
}
.trace-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* ---------- accordion ---------- */
.split {
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 48px;
  }
}
@media (min-width: 1100px) {
  .agent-stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
}
.split-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.split-copy .section-lede { margin-bottom: 22px; }

.agent-stage {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.accordion {
  display: grid;
  gap: 8px;
}
.acc-item {
  border-radius: var(--r-sm);
  background: color-mix(in srgb, #fff 70%, transparent);
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.acc-item[open] {
  background: #fff;
  border-color: color-mix(in srgb, var(--signal) 22%, var(--line));
  box-shadow: var(--shadow);
}
.acc-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.acc-item[open] .acc-icon {
  background: var(--signal-soft);
  color: var(--signal-ink);
}
.acc-body {
  padding: 0 16px 18px 62px;
  color: var(--ink-2);
}
.acc-body p { margin: 0; }
.acc-body a { color: var(--signal-ink); font-weight: 600; }

.agent-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 220px;
  background: var(--code);
  color: var(--code-ink);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid #2a2822;
  box-shadow: var(--shadow);
}
.agent-panel-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #2f2c26;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a8a295;
}
.agent-panel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(224, 74, 47, 0.2);
}
.agent-panel-body {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d8d4c8;
}
.agent-panel-body .hi { color: #fffefb; font-weight: 500; }
.agent-panel-body .ok { color: #6dcea0; }
.agent-panel-body .dim { color: #8a8478; }

/* ---------- loop beats ---------- */
.beat-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 800px) {
  .beat-grid { grid-template-columns: repeat(3, 1fr); }
}
.beat-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.beat-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--signal) 20%, var(--line));
}
.beat-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--signal-ink);
}
.beat-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.beat-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- trust ---------- */
.trust-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
.trust-card {
  padding: clamp(28px, 3.4vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}
.trust-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}
.trust-card p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- plans ---------- */
.plan-grid {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-inline: auto;
}
@media (min-width: 760px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
}
.plan-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}
.plan-featured {
  border-color: color-mix(in srgb, var(--signal) 35%, var(--line));
  box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan-card h3 { margin: 0; font-size: 1.6rem; }
.plan-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}
.plan-desc { margin: 0 0 8px; color: var(--ink-2); }
.plan-card ul {
  margin: 0 0 18px;
  padding-left: 1.1em;
  color: var(--ink-2);
  display: grid;
  gap: 6px;
}
.fineprint {
  margin: 28px auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 8px;
  max-width: 780px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}
.faq p {
  margin: 0;
  padding: 16px 20px 20px;
  color: var(--ink-2);
}
.faq a { color: var(--signal-ink); font-weight: 600; }

/* ---------- closing + footer ---------- */
.closing {
  padding: clamp(72px, 12vw, 128px) 0;
  text-align: center;
}
.closing h2 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.closing p {
  margin: 0 auto 28px;
  color: var(--ink-2);
  max-width: 36ch;
  font-size: 1.1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.footer-brand img { border-radius: 5px; }
.footer-muted {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

/* subtle map-node cascade when feature in view */
.feature-card.is-in .map-node {
  animation: node-pop 0.55s var(--ease) both;
}
.feature-card.is-in .map-node:nth-child(1) { animation-delay: 0.05s; }
.feature-card.is-in .map-node:nth-child(3) { animation-delay: 0.15s; }
.feature-card.is-in .map-node:nth-child(5) { animation-delay: 0.25s; }
.feature-card.is-in .map-node:nth-child(7) { animation-delay: 0.35s; }
@keyframes node-pop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.desk-list .desk-item {
  animation: desk-in 0.6s var(--ease) both;
}
.desk-list .desk-item:nth-child(1) { animation-delay: 0.08s; }
.desk-list .desk-item:nth-child(2) { animation-delay: 0.18s; }
.desk-list .desk-item:nth-child(3) { animation-delay: 0.28s; }
@keyframes desk-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-desk:not(.is-in) .desk-item { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .desk-list .desk-item,
  .feature-card.is-in .map-node {
    animation: none !important;
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .nav-actions .btn-ghost { display: none; }
  .hero-title { max-width: none; }
}
