/* ==========================================================================
   Vela Drop — Clean Light-Mode Canon (Stripe / Linear / Resend Quality Bar)
   Pure white (#FFFFFF) canvas, crisp slate hairlines (#E2E8F0), deep slate
   ink (#0F172A), cobalt blue (#2563EB) actions, emerald (#10B981) live signals.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #F1F5F9;
  --ink: #0F172A;
  --ink-secondary: #475569;
  --ink-muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --cobalt: #2563EB;
  --cobalt-hover: #1D4ED8;
  --cobalt-soft: #EFF6FF;
  --cobalt-border: #BFDBFE;

  --emerald: #10B981;
  --emerald-ink: #047857;
  --emerald-soft: #ECFDF5;

  --amber-ink: #B45309;
  --amber-soft: #FFFBEB;

  --font-display: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-card:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -4px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.04);

  --container: min(1140px, calc(100% - 48px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

::selection {
  background: var(--cobalt-soft);
  color: var(--cobalt-hover);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: var(--container); margin-inline: auto; }
.tabular { font-variant-numeric: tabular-nums; }
.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;
}

/* ==========================================================================
   Header & Mobile Drawer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: var(--container);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 140ms ease, background-color 140ms ease;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}

.primary-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-login {
  margin-left: 12px;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  background: var(--cobalt) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
  transition: background-color 140ms ease, transform 120ms ease, box-shadow 140ms ease !important;
}

.nav-login:hover {
  background: var(--cobalt-hover) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.nav-login:active {
  transform: scale(0.96);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
}

.mobile-drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(320px, 88vw);
  border: none;
  border-left: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  padding: 20px 24px 32px;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.14);
}
.mobile-drawer::backdrop { background: rgba(15, 23, 42, 0.36); backdrop-filter: blur(4px); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.drawer-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); cursor: pointer;
}
.drawer-links { display: flex; flex-direction: column; gap: 4px; }
.drawer-links a {
  display: flex; align-items: center; padding: 13px 12px; border-radius: 10px;
  text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.drawer-links a:hover { background: var(--bg-subtle); }
.drawer-links .drawer-cta {
  margin-top: 14px; justify-content: center; border-radius: 999px;
  background: var(--cobalt); color: #FFFFFF;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cobalt);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(37, 99, 235, 0.22);
  transition: background-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}
.btn-primary:hover {
  background: var(--cobalt-hover);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.22), 0 10px 22px rgba(37, 99, 235, 0.26);
}
.btn-primary:active { transform: scale(0.96); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.btn-secondary:hover { background: var(--bg-muted); border-color: #94A3B8; }
.btn-secondary:active { transform: scale(0.96); }

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}
.btn-chip:hover { color: var(--ink); border-color: var(--border-strong); background: var(--bg-subtle); }
.btn-chip:active { transform: scale(0.96); }

/* ==========================================================================
   1. Hero (Faithful to Canon Comp — Stripe/Linear/Resend Craft)
   ========================================================================== */

.hero {
  padding: clamp(56px, 7.5vw, 100px) 0 clamp(64px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 55% at 72% 18%, rgba(37, 99, 235, 0.045), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lede {
  margin: 22px 0 30px;
  max-width: 44ch;
  font-size: clamp(1.06rem, 1.3vw, 1.18rem);
  line-height: 1.56;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.hero-meta {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Hero Right: Crisp Live Proposal Analytics Card */
.hero-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Right-Edge Peeking Character Faces (Eyes-Only) & Live Viewer Counter (5-16)
   ========================================================================== */

.peeker-rail {
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 16px;
  width: 148px;
  z-index: 75;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.peeker-corner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 12px;
  pointer-events: auto;
}

.peeker-top {
  width: 112px;
  margin-top: -6px;
  transform: translateY(-90px);
  opacity: 0;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.14));
  transition: transform 520ms var(--ease-out), opacity 360ms ease;
}

.peeker-corner.is-visible .peeker-top {
  transform: translateY(0);
  opacity: 1;
}

.peeker-count-pill {
  position: relative;
  z-index: 4;
  order: 2;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  font-size: 0.78rem;
  color: var(--ink);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}

.peeker-count-pill.is-bump {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  transform: scale(1.06);
}

.peeker-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.peeker-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 2ch;
  text-align: center;
}

.peeker-word {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.peeker-delta {
  position: absolute;
  left: 16px;
  top: -16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-ink);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .peeker-delta.is-rising {
    animation: delta-rise 780ms var(--ease-out) forwards;
  }
}

@keyframes delta-rise {
  0% { opacity: 0; transform: translateY(6px); }
  25% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.peeker-pause {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--ink-secondary);
  font-size: 0.62rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.peeker-pause:hover { background: var(--ink); color: #FFFFFF; }

/* Side-edge peeking faces stacked vertically along entire right side */
.peeker-side-stack {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 12px 0;
}

.peeker-side {
  width: 108px;
  margin-right: -10px;
  transform: translateX(125px) rotate(-90deg);
  transform-origin: center center;
  opacity: 0;
  filter: drop-shadow(-4px 6px 12px rgba(15, 23, 42, 0.13));
  transition: transform 520ms var(--ease-out), opacity 340ms ease;
}

.peeker-side.is-visible {
  transform: translateX(0) rotate(-90deg);
  opacity: 1;
}

.peeker-face svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Eye pupil tracking + independent blinking */
.peeker-face .eye-pupil {
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
  transition: transform 130ms ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .peeker-face.is-blinking .eye-socket {
    transform-box: fill-box;
    transform-origin: center;
    animation: eye-blink 210ms ease-in-out;
  }
}

@keyframes eye-blink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.08); }
}

.live-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.live-card-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-box {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.kpi-box.is-pulsed {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.kpi-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.kpi-label {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.link-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color 180ms ease;
}

.link-row:last-child { border-bottom: none; }
.link-row.is-highlight { background: var(--emerald-soft); }

.link-slug {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.link-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dot-meter {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.dot-meter i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E2E8F0;
  display: block;
  transition: background-color 180ms ease;
}
.dot-meter i.is-green { background: var(--emerald); }
.dot-meter i.is-blue { background: #3B82F6; }

.link-count {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  min-width: 68px;
  text-align: right;
}

.live-card-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sim-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bot-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.bot-badge.is-pinged {
  color: var(--amber-ink);
  border-color: #FCD34D;
  background: var(--amber-soft);
}

/* ==========================================================================
   Shared Band Rhythm
   ========================================================================== */

.band {
  padding: clamp(64px, 7.5vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}

.band-tinted {
  background: var(--bg-subtle);
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.band-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.band-lede {
  margin: 10px 0 0;
  max-width: 50ch;
  font-size: 1.02rem;
  color: var(--ink-secondary);
}

.text-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ==========================================================================
   2. Three Steps + One-URL MCP Copy Bar
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.mcp-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.mcp-bar-title { margin: 0 0 2px; font-weight: 700; font-size: 0.96rem; color: var(--ink); }
.mcp-bar-sub { margin: 0; font-size: 0.86rem; color: var(--ink-muted); }

.mcp-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.mcp-copy-btn {
  min-height: 34px;
  padding: 6px 14px;
  border: none;
  border-radius: 7px;
  background: var(--cobalt);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, transform 120ms ease;
}
.mcp-copy-btn:hover { background: var(--cobalt-hover); }
.mcp-copy-btn:active { transform: scale(0.96); }

/* ==========================================================================
   3. Interactive Goal Switcher ("Just ask your assistant")
   ========================================================================== */

.goal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.goal-pill {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.goal-pill:hover { color: var(--ink); border-color: #94A3B8; }
.goal-pill:active { transform: scale(0.96); }
.goal-pill[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.goal-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.chat-box {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.chat-box + .chat-box { margin-top: 12px; background: #FFFFFF; }

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.chat-meta.is-assistant { color: var(--cobalt); }
.chat-box p { margin: 0; font-size: 0.98rem; color: var(--ink); }

.outcome-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.tier-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald-ink);
}
.tier-tag.is-pro {
  background: var(--cobalt-soft);
  color: var(--cobalt);
}

.outcome-card h3 {
  margin: 12px 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.outcome-card p { margin: 0; font-size: 0.94rem; color: var(--ink-secondary); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ==========================================================================
   4. Manual Upload + Mini Dashboard
   ========================================================================== */

.upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: start;
}

.dropzone-card {
  background: #FFFFFF;
  border: 1.5px dashed var(--border-strong);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.dropzone-card.is-dragover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.dropzone-title { margin: 0 0 4px; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.dropzone-sub { margin: 0 0 18px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-muted); }

.dropzone-email {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.dropzone-email label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); margin-bottom: 6px;
}
.dropzone-email input {
  width: 100%; min-height: 42px; padding: 9px 13px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #FFFFFF; color: var(--ink); font-size: 0.94rem;
}

.dash-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dash-tabs {
  display: flex; gap: 4px; padding: 10px 18px 0;
  border-bottom: 1px solid var(--border); background: var(--bg-subtle);
}
.dash-tab {
  padding: 9px 14px; border: none; border-bottom: 2px solid transparent;
  background: transparent; color: var(--ink-muted); font-size: 0.86rem; font-weight: 600; cursor: pointer;
}
.dash-tab[aria-selected="true"] { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.dash-body { padding: 20px 22px; }
.opens-chart {margin:0}
.opens-chart figcaption {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.opens-chart figcaption span {font-size:.8125rem;color:var(--ink-muted)}
.opens-chart ul {list-style:none;margin:12px 0 0;padding:0}
.opens-chart li {display:grid;grid-template-columns:minmax(0,7.8rem) minmax(12px,1fr) 2.2ch;gap:clamp(6px,1vw,14px);align-items:center;padding:10px 0;border-top:1px solid var(--border)}
.opens-chart li strong {text-align:end;font-variant-numeric:tabular-nums}
.opens-chart code {font:600 .8125rem var(--font-mono)}
.opens-chart small {display:block;color:var(--ink-muted)}
.opens-track {height:9px;background:var(--bg-subtle);border-radius:999px}
.opens-track i {display:block;width:var(--fill);height:100%;background:var(--cobalt);border-radius:inherit}
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
  color: var(--ink-muted); padding: 0 0 8px; border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .mono-cell { font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem; }

/* ==========================================================================
   5. Pricing (Clean Side-by-Side Free vs Pro)
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pro-inclusions {max-width:70ch;margin-top:28px}
.pro-inclusions h3 {margin:0 0 4px;font-size:1rem}
.pro-inclusions p {margin:0;color:var(--ink-secondary)}
.pricing-grid:has(.plan-choice) {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;isolation:isolate;perspective:720px;
  padding:24px clamp(9px,2.2vw,32px) 20px;
  border-radius:var(--radius-panel);
  background:radial-gradient(ellipse at 50% 82%, #ccd8f1 0, #ecf0f7 58%, transparent 82%);
}
.plan-card.plan-choice {
  position:relative;align-items:center;justify-content:center;gap:6px;
  min-width:0;min-height:clamp(126px,15vw,190px);padding:clamp(10px,2vw,26px) 6px;
  font:inherit;text-align:center;color:var(--ink);cursor:pointer;
  border-color:#aab6cb;
  background:#d0d8e7;
  background:linear-gradient(155deg,rgba(238,242,249,.76),rgba(153,169,197,.61));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.84),0 8px 20px rgba(36,54,91,.11);
  backdrop-filter:blur(14px) saturate(125%);
  transform:translateZ(-27px) rotateY(var(--plan-angle,0deg)) translateY(4px);
}
.plan-choice:first-child {--plan-angle:6deg;margin-inline-end:clamp(-29px,-2.7vw,-13px)}
.plan-choice:last-child {--plan-angle:-6deg;margin-inline-start:clamp(-29px,-2.7vw,-13px)}
.plan-choice .plan-name {font-size:clamp(.8125rem,1.8vw,1.25rem);line-height:1.2}
.plan-choice .plan-price-row {display:grid;gap:0;margin:0}
.plan-choice .plan-price {font-size:clamp(1.65rem,4.5vw,3.25rem);line-height:1.1}
.plan-choice .plan-unit {font-size:clamp(.75rem,1.4vw,.9375rem)}
.plan-suggestion {
  position:absolute;top:0;inset-inline-start:50%;transform:translate(-50%,-50%);
  padding:3px clamp(6px,1vw,12px);border-radius:999px;background:var(--cobalt);color:#fff;
  font-size:clamp(.68rem,1.2vw,.8125rem);font-weight:700;white-space:nowrap;
}
.plan-choice[aria-pressed="true"] {
  z-index:1;border-color:#8399cf;
  background:#fbfcff;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,251,255,.78));
  box-shadow:inset 0 1px 0 #fff,0 13px 25px -12px rgba(26,43,89,.48),0 26px 50px -31px rgba(26,43,89,.38);
  transform:translateY(-6px) translateZ(53px);
}
.plan-choice:focus-visible {border-radius:var(--radius-panel);z-index:2}
.plan-detail {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:12px 24px;margin-top:20px;padding:16px 20px;border:1px solid var(--border);
  border-radius:var(--radius-inset);background:rgba(255,255,255,.85);
}
.plan-detail[hidden] {display:none}
.plan-detail p {margin:0;max-width:56ch;color:var(--ink-secondary)}
.plan-detail a {margin-bottom:3px}
@media (prefers-reduced-motion:no-preference) {
  .plan-card.plan-choice {transition:transform 240ms cubic-bezier(.2,0,0,1),box-shadow 200ms ease-out,border-color 200ms ease-out}
}
@media (max-width:480px) {
  .pricing-grid:has(.plan-choice) {perspective:540px}
  .plan-card.plan-choice,.plan-choice:focus-visible {border-radius:20px}
  .plan-choice[aria-pressed="true"] {transform:translateY(-5px) translateZ(40px)}
  .plan-detail {padding:14px}
}

.plan-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.plan-card.is-pro {
  border-color: var(--cobalt-border);
  box-shadow: var(--shadow-card);
}

.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.plan-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.plan-unit { font-size: 0.92rem; color: var(--ink-muted); }
.plan-sub { margin: 0 0 20px; font-size: 0.9rem; color: var(--ink-secondary); }

.plan-features {
  list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; color: var(--ink-secondary);
}
.plan-features li {
  position: relative;
  padding-left: 26px;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--emerald-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==========================================================================
   6. Short FAQ + Footer
   ========================================================================== */

.faq-wrap { max-width: 760px; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 4px; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: ""; width: 15px; height: 15px; flex-shrink: 0; background-color: var(--ink-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
.faq-list details[open] > summary::before { rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::before { transition: rotate 200ms ease; }
}
.faq-list details::details-content { interpolate-size: allow-keywords; overflow: clip; }
.faq-list details:not([open])::details-content { block-size: 0; }
.faq-list details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details::details-content { transition: block-size 260ms ease-in-out, content-visibility 260ms allow-discrete; }
}
.faq-answer { padding: 0 4px 18px 27px; margin: 0; color: var(--ink-secondary); font-size: 0.94rem; line-height: 1.6; }

.site-footer { padding: 36px 0 48px; background: #FFFFFF; }
.footer-inner {
  width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px; font-size: 0.88rem; color: var(--ink-muted);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer-links a { text-decoration: none; color: var(--ink-secondary); font-weight: 500; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-maker { text-decoration: none; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }

/* ==========================================================================
   Preserved 57 Subpages Reader Shell (?page=...) + Modal + Toast
   ========================================================================== */

.reader-shell { width: min(860px, calc(100% - 40px)); margin: 44px auto 96px; }
.reader-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--ink-secondary);
}
.reader-back:hover { color: var(--cobalt); }
.reader-article {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(28px, 4.5vw, 52px); box-shadow: var(--shadow-sm); overflow-wrap: anywhere;
}
.reader-article h1 { margin: 0 0 20px; font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; }
.reader-article h2 { margin: 36px 0 12px; font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.reader-article p { margin: 14px 0; max-width: 68ch; color: var(--ink-secondary); }
.reader-article a { color: var(--cobalt); font-weight: 600; }
.reader-article pre { display: block; overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--ink); color: #F8FAFC; font-family: var(--font-mono); font-size: 0.85rem; }
.reader-article table { display: block; overflow-x: auto; padding: 14px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); }
.reader-article th, .reader-article td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }

.preview-dialog {
  width: min(960px, 94vw); max-height: 90dvh; border: 1px solid var(--border); border-radius: 16px;
  padding: 0; background: #FFFFFF; color: var(--ink); box-shadow: 0 32px 72px rgba(15, 23, 42, 0.25);
}
.preview-dialog::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); }
.preview-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.preview-dialog iframe { width: 100%; height: 68dvh; border: none; background: #FFFFFF; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); z-index: 150;
  background: var(--ink); color: #FFFFFF; padding: 11px 18px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 220ms var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid, .goal-stage, .upload-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .peeker-side-stack { display: none; }
  .peeker-rail { bottom: auto; width: auto; }
}

@media (max-width: 760px) {
  :root { --container: min(1140px, calc(100% - 32px)); }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .kpi-row { grid-template-columns: 1fr; }
  .peeker-top { width: 84px; }
}
.primary-nav {display:none}
.menu-toggle {display:inline-flex;margin-left:auto}
.edge-guest {position:fixed;top:0;z-index:100;width:clamp(57px, 8vw, 77px);height:auto;overflow:visible;visibility:hidden;pointer-events:none}
.edge-guest .guest-cap,.edge-guest .guest-pony,.edge-guest .guest-glasses,.edge-guest .guest-style,
.edge-guest[data-face]:not([data-face="tousled"]):not([data-face="glasses"]) .guest-hair{display:none}
.edge-guest[data-face="cap"] .guest-cap,.edge-guest[data-face="pony"] .guest-pony,
.edge-guest[data-face="glasses"] .guest-glasses{display:inline}
.edge-guest[data-face="cap"]{--skin:#bf8966;--shirt:#55b585}
.edge-guest[data-face="pony"]{--skin:#eeb393;--shirt:#ad83de}
.edge-guest[data-face="glasses"]{--skin:#96624a;--shirt:#ffc257}
.edge-guest[data-face="glasses"] .guest-hair{fill:#24232d}
.edge-guest[data-face="bob"] .guest-bob,.edge-guest[data-face="curls"] .guest-curls,
.edge-guest[data-face="quiff"] .guest-quiff,.edge-guest[data-face="crop"] .guest-crop,
.edge-guest[data-face="beanie"] .guest-beanie,.edge-guest[data-face="wrap"] .guest-wrap{display:inline}
.edge-guest[data-face="bob"]{--skin:#f6bb99;--shirt:#ec789a}
.edge-guest[data-face="curls"]{--skin:#a96f4c;--shirt:#75cde2}
.edge-guest[data-face="quiff"]{--skin:#d79a78;--shirt:#ee8b4b}
.edge-guest[data-face="crop"]{--skin:#f4cbab;--shirt:#6399ed}
.edge-guest[data-face="beanie"]{--skin:#b87954;--shirt:#9384e6}
.edge-guest[data-face="wrap"]{--skin:#cc9277;--shirt:#55c7b3}
@media(prefers-reduced-motion:reduce){.edge-guest{display:none}}

/* Public site: editorial layout with a typeset reader report. */
:root {
  --bg: #f9f9f6;
  --bg-subtle: #efefea;
  --ink: #16191e;
  --ink-secondary: #393e48;
  --ink-muted: #4d5562;
  --border: #d3d5cf;
  --border-strong: #a4a8a1;
  --cobalt: #2143b7;
  --cobalt-hover: #16318d;
  --cobalt-soft: #eef0f5;
  --shadow-sm: none;
  --shadow-card: none;
  --font-display: Georgia, Cambria, serif;
  --surface-report: #ffffff;
  --surface-report-controls: var(--bg-subtle);
  --surface-setup: #eef1f6;
  --surface-diagram: #ffffff;
  --setup-border: #c4ccd8;
  --setup-ink: var(--ink);
  --setup-muted: var(--ink-secondary);
  --setup-signal: var(--cobalt);
  --page-gutter: clamp(20px, 4vw, 60px);
  --container: min(1140px, calc(100% - 2 * var(--page-gutter)));
  --panel-inset: clamp(22px, 3vw, 40px);
  --section-space: clamp(68px, 8vw, 120px);
  --radius-panel: 30px;
  --radius-inset: 22px;
  --radius-button: 18px;
}
.site-header {background:var(--bg);backdrop-filter:none}
.header-inner {min-height:64px}
.hero {background:none;padding-block:clamp(54px,7vw,100px) var(--section-space)}
.hero-grid {grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:clamp(28px,6vw,88px);align-items:start}
.hero-copy h1 {font-size:clamp(3rem,5.6vw,5.8rem);font-weight:400;letter-spacing:-.055em;line-height:1.01;text-wrap:initial}
.hero-copy h1 em {color:var(--cobalt);font-weight:400}
#hero-verb {display:inline-block}
.hero-lede {max-width:45ch;margin-block:24px 28px}
.hero-meta {font-family:inherit;font-size:.875rem}
.hero .btn-secondary {border:0;background:transparent;padding-inline:5px;box-shadow:none;text-decoration:underline}
.hero-card-wrap {gap:0;border:1px solid var(--border-strong);border-radius:var(--radius-panel);overflow:hidden;background:var(--surface-report);min-width:0}
.hero-card-wrap {--report-inset:clamp(16px,2vw,24px)}
.live-card {background:transparent;padding:var(--report-inset) var(--report-inset) 8px;border-radius:0}
.live-card-head {margin:0;padding:0 0 12px}
.live-card-title {font:400 clamp(1.65rem,3vw,2.4rem)/1.1 var(--font-display)}
.live-pill {background:none;color:var(--ink-muted);border-radius:0;padding:0;margin-top:3px;font-size:.8125rem}
.live-pill::before,.dot-meter {display:none}
.kpi-row {grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;border-bottom:1px solid var(--border)}
.kpi-box {text-align:end;padding:4px 9px;background:none;border:0;border-radius:10px;flex-shrink:0}
.kpi-box+.kpi-box {padding-inline-start:clamp(10px,1.4vw,20px);border-inline-start:1px solid var(--border)}
.kpi-num {font-size:clamp(1.35rem,2.45vw,2.25rem);line-height:1.2}
.kpi-label {display:inline-block;font-size:.8125rem;letter-spacing:0;text-transform:none}
.link-legend {display:flex;justify-content:space-between;gap:8px;padding:9px 0 3px;color:var(--ink-muted);font-size:.8125rem}
.link-list {border:0;border-radius:0;background:none}
.link-row {padding:8px 0;background:none;border-radius:0;margin:0;border-bottom:1px solid var(--border)}
.link-row:last-child {border-bottom:0}
.recipient {display:grid;min-width:0;line-height:1.35}
.recipient strong {font-size:.95rem}
.recipient small {color:var(--ink-muted)}
.link-count {white-space:nowrap}
.live-card-bar {border:0;border-top:1px solid var(--border);border-radius:0;background:var(--surface-report-controls);padding:10px var(--report-inset) 6px;gap:8px;flex-wrap:wrap}
.sim-group {gap:12px;flex-wrap:wrap}
.sim-group .btn-chip {min-height:40px}
.bot-badge {background:none;padding:0}
.sample-note {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px;margin:0;padding:0 var(--report-inset) 6px;background:var(--surface-report-controls);color:var(--ink-muted);font-size:.8125rem}
#sample-event.is-new {color:#176043;font-weight:700}
.sample-note button {min-height:32px;padding:4px 0;border:0;background:transparent;color:var(--cobalt);text-decoration:underline;cursor:pointer}
.band {padding-block:var(--section-space)}
#how {background:var(--surface-setup);color:var(--setup-ink);border-color:var(--setup-border)}
#how .band-head h2 {color:inherit}
#how .text-link {color:var(--setup-signal)}
.band-head {margin-bottom:clamp(32px,4vw,52px)}
.band-head h2 {font-weight:400;line-height:1.03;font-size:clamp(2.25rem,4.5vw,4rem);text-wrap:initial}
.steps-grid {border-block:1px solid var(--border-strong);gap:0}
.step-card {border:0;border-radius:0;background:transparent;padding:30px 28px 32px 0}
.step-card+.step-card {padding-inline-start:28px;border-inline-start:1px solid var(--border)}
.step-num {background:none;color:var(--cobalt);justify-content:flex-start}
.step-card p,.band-lede {font-size:1rem}
.mcp-bar,.goal-stage,.plan-card,.dash-card,.dropzone-card,.preview-dialog {border-radius:var(--radius-panel)}
.chat-box,.outcome-card,.mcp-endpoint {border-radius:var(--radius-inset)}
.plan-card.is-pro {background:var(--bg);border-color:var(--cobalt)}
.mcp-bar,.goal-stage,.outcome-card,.dropzone-card,.plan-card {padding:var(--panel-inset)}
.mcp-bar {margin-top:32px}
.mcp-endpoint {max-width:100%;flex-wrap:wrap}
.mcp-endpoint span {overflow-wrap:anywhere;min-width:0}
.goal-stage {gap:clamp(20px,3vw,36px)}
.chat-box {padding:clamp(18px,2.5vw,28px)}
.chat-box + .chat-box {margin-top:20px}
.chat-meta {flex-wrap:wrap;gap:6px 12px;margin-bottom:12px}
.dropzone-card {padding-block:clamp(36px,6vw,68px)}
.dropzone-sub {margin-bottom:26px;font-family:inherit;font-size:.875rem}
.dash-tabs {flex-wrap:wrap;gap:8px;padding:12px var(--panel-inset) 0}
.dash-body {padding:var(--panel-inset);overflow-x:auto}
.pricing-grid {gap:clamp(20px,3vw,36px)}
.plan-card {gap:32px}
.plan-head {flex-wrap:wrap}
.plan-features li+li {margin-top:12px}
.faq-list summary {padding-block:24px}
.faq-answer {padding-bottom:26px}
.site-footer {padding-block:48px 56px;background:var(--bg)}
.goal-pill {border-radius:var(--radius-button)}
.btn-primary,.btn-secondary,.btn-chip,.menu-toggle,.mcp-copy-btn,.drawer-links .drawer-cta {
  border-radius:var(--radius-button);
  --button-lip: rgba(25, 30, 44, .19);
  --button-depth: 0 3px 0 var(--button-lip), 0 5px 8px rgba(25, 30, 44, .10), inset 0 1px rgba(255, 255, 255, .72);
  box-shadow:var(--button-depth);
  transition:transform 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}
.btn-primary,.mcp-copy-btn,.drawer-links .drawer-cta {--button-lip:#16275f}
.btn-primary:hover,.btn-secondary:hover,.btn-chip:hover,.menu-toggle:hover,.mcp-copy-btn:hover,.drawer-links .drawer-cta:hover {box-shadow:var(--button-depth)}
:is(.btn-primary,.btn-secondary,.btn-chip,.menu-toggle,.mcp-copy-btn,.drawer-links .drawer-cta):active {
  transform:translateY(2px) scale(.96);
  box-shadow:0 1px 0 var(--button-lip), inset 0 1px 3px rgba(25, 30, 44, .16);
}
.hero .btn-secondary:active {box-shadow:none}
@media (prefers-reduced-motion: reduce) {
  :is(.btn-primary,.btn-secondary,.btn-chip,.menu-toggle,.mcp-copy-btn,.drawer-links .drawer-cta) {transition:none}
  :is(.btn-primary,.btn-secondary,.btn-chip,.menu-toggle,.mcp-copy-btn,.drawer-links .drawer-cta):active {transform:none}
}
.trust-row {border-top:1px solid var(--border);padding-top:15px}
.reader-shell {width:min(860px,calc(100% - 2 * var(--page-gutter)));margin-block:48px var(--section-space)}
.reader-article {background:transparent;border:0;border-top:1px solid var(--border-strong);border-radius:0;padding:clamp(32px,6vw,60px) 0 0}
.reader-article p {margin-block:18px;line-height:1.65}
.reader-article h1,.reader-article h2 {font-family:var(--font-display);font-weight:400}
.reader-article h1 {font-size:clamp(2.7rem,6vw,4.5rem)}
.reader-article img,.reader-article video {max-width:100%;height:auto}
@media(max-width:900px){
  .hero-grid {grid-template-columns:1fr}
  .hero-copy h1 {font-size:clamp(2.9rem,8.7vw,4.7rem)}
  .hero-card-wrap {width:min(100%,600px)}
  .step-card+.step-card {padding-inline-start:0;border-inline-start:0;border-top:1px solid var(--border)}
  .steps-grid {grid-template-columns:1fr}
}
@media(max-width:420px){
  .hero-actions {gap:12px}
  .goal-stage {padding:14px}
  .live-card-bar,.sim-group {flex-wrap:wrap;justify-content:flex-start}
  .kpi-label {font-size:.75rem}
}

/* Three steps stay visible. Their diagrams play once as they enter view. */
#how {padding-block:clamp(48px,6vw,80px);scroll-margin-top:64px}
.workflow {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--setup-border);border-radius:var(--radius-panel);background:rgba(255,255,255,.34)}
.workflow-scene {display:grid;grid-template-rows:auto 1fr auto;align-items:start;gap:18px;min-width:0;padding:clamp(18px,2.2vw,30px)}
.workflow-scene+.workflow-scene {border-inline-start:1px solid var(--setup-border)}
.workflow-step {justify-self:start;color:var(--setup-signal);font:600 .875rem/1.3 var(--font-mono);letter-spacing:.04em}
.workflow-scene:nth-child(2) {--scene-delay:170ms}
.workflow-scene:nth-child(3) {--scene-delay:340ms}
.workflow-copy h3 {margin:0;font:400 clamp(1.55rem,3vw,2.15rem)/1.12 var(--font-display)}
.workflow-copy p {margin:10px 0 14px;max-width:35ch;color:var(--setup-muted)}
.workflow-copy a {color:var(--setup-signal);font-weight:700;font-size:.925rem}
.workflow-graphic {min-width:0;min-height:142px;background:rgba(255,255,255,.82);border-radius:var(--radius-inset);padding:15px}
.workflow :focus-visible {outline-color:var(--setup-signal)}
.workflow .mcp-copy-btn {background:var(--setup-signal);color:#fff;--button-lip:#16275f}
.workflow .mcp-copy-btn:hover {background:var(--cobalt-hover)}
.workflow .btn-chip {background:var(--surface-diagram);color:var(--setup-ink);border-color:var(--setup-border)}
.workflow .btn-chip:hover {border-color:var(--setup-muted)}
.workflow-graphic label,.prompt-conversation label {display:block;font-size:.875rem;font-weight:700;margin-bottom:6px}
.workflow-url {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.workflow-url input {flex:1 1 175px;width:100%}
.workflow-url input,.prompt-conversation :is(textarea,input) {
  min-width:0;max-width:100%;border:1px solid #b8afc6;border-radius:10px;padding:10px 12px;
  background:#fff;color:var(--ink);font:inherit;
}
.workflow-url input {flex-basis:190px;padding-inline:8px;font:500 .78rem/1.45 var(--font-mono)}
.workflow-graphic small {display:block;margin-top:10px;color:var(--setup-muted)}
.workflow-branches {display:grid;justify-items:center;gap:20px;text-align:center;font-size:.9rem;font-weight:700}
.workflow-page,.workflow-links span {position:relative;background:var(--surface-setup);border:1px solid var(--setup-border);border-radius:8px;padding:6px 10px}
.workflow-page {color:var(--setup-signal)}
.workflow-page::after {content:"";position:absolute;width:1px;height:11px;top:100%;left:50%;background:var(--setup-signal)}
.workflow-links {display:flex;justify-content:center;gap:8px;position:relative}
.workflow-links::before {content:"";position:absolute;inset:-9px 24% 100%;border:1px solid var(--setup-signal);border-bottom:0;border-radius:6px 6px 0 0}
.workflow-results {font-size:.875rem}
.workflow-results > span {color:var(--setup-muted);font-weight:700}
.workflow-results div {display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--setup-border)}
.workflow-results div:first-of-type span {color:var(--setup-signal)}
.workflow-results div:last-child {border:0;padding-bottom:0}
@media (prefers-reduced-motion: no-preference) {
  .workflow-scene.in-view .workflow-url input {animation:workflow-connect .7s var(--ease-out)}
  .workflow-scene.in-view .workflow-links span,.workflow-scene.in-view .workflow-results div {animation:workflow-reveal .48s var(--ease-out) var(--scene-delay,0ms) both}
  .workflow-scene.in-view .workflow-links span:nth-child(2),.workflow-scene.in-view .workflow-results div:nth-of-type(2) {animation-delay:calc(var(--scene-delay,0ms) + 130ms)}
  @keyframes workflow-connect {35% {box-shadow:0 0 0 3px var(--setup-signal);border-color:var(--setup-signal)}}
  @keyframes workflow-reveal {from {opacity:.35;transform:translateY(-8px)} to {opacity:1;transform:translateY(0)}}
}
@media(max-width:800px) {
  .workflow {grid-template-columns:1fr}
  .workflow-scene {--scene-delay:0ms !important}
  .workflow-scene+.workflow-scene {border-inline-start:0;border-block-start:1px solid var(--setup-border)}
  .workflow-graphic {min-height:0}
}

/* The prompt is an editable draft and the reply is explicitly an example. */
#benefits .goal-stage {max-width:980px;grid-template-columns:minmax(170px,.6fr) minmax(0,1.8fr);align-items:start;background:white}
#benefits .goal-pills {display:grid;gap:6px;margin:0}
#benefits .goal-pill {width:100%;min-height:44px;border-radius:13px;text-align:start;background:transparent;border-color:transparent}
#benefits .goal-pill:hover,#benefits .goal-pill[aria-pressed="true"] {background:var(--cobalt-soft);color:var(--cobalt);border-color:var(--border)}
.prompt-conversation {min-width:0}
.prompt-conversation .chat-box {display:grid;gap:8px;background:var(--bg-subtle);border:0}
.prompt-conversation .chat-box + .chat-box {background:var(--bg);margin-top:12px;border:1px solid var(--border)}
.prompt-conversation label {margin:0}
.prompt-conversation label span,.prompt-conversation .prompt-note {color:var(--ink-secondary);font-weight:400}
.prompt-conversation :is(textarea,input) {width:100%}
.prompt-conversation textarea {resize:vertical;line-height:1.45}
.prompt-conversation .btn-chip {justify-self:start;margin-top:4px;min-height:40px}
.prompt-conversation .chat-meta {margin:0;color:var(--cobalt)}
.prompt-conversation .prompt-note {font-size:.875rem}
@media (max-width:680px) {
  #benefits .goal-stage {grid-template-columns:1fr}
  #benefits .goal-pills {display:flex;flex-wrap:wrap}
  #benefits .goal-pill {width:auto}
}

/* Version two reader report. The document edge is the visitor's contact point. */
.visit-stage {position:relative;overflow:hidden;min-height:132px;margin:8px 0;padding:3px 0 12px;isolation:isolate}
.visit-stage::after {
  content:"";position:absolute;inset-inline:0;bottom:15px;height:1px;
  background:var(--border);z-index:-1;
}
.visit-document {
  position:relative;isolation:isolate;width:min(62%,252px);min-height:111px;
  padding:0 12px 12px;color:#172652;
}
.visit-document::before {
  content:"";position:absolute;inset:25px 0 4px;z-index:-1;
  background:#dce6fb;border:1px solid #9eb1da;border-radius:15px 15px 11px 11px;
}
.document-sheet {
  position:relative;display:grid;align-content:start;gap:8px;min-height:89px;padding:13px 12px 18px;
  border:1px solid #b6c3db;border-radius:9px;background:#fff;
}
.visit-document .live-card-title {font-size:clamp(1.25rem,2.6vw,1.9rem);line-height:1.04;color:inherit;overflow-wrap:anywhere}
.document-fold {position:absolute;right:0;top:0;width:11px;height:11px;border-radius:0 8px 0 3px;background:#dce5f6}
.document-lines {height:7px;width:44%;border-block:1px solid #a5b3d5}
.folder-pocket {
  position:absolute;inset:74px 0 4px;border:1px solid #8099c9;border-radius:6px 13px 11px 11px;
  background:#b5c8ee;box-shadow:inset 0 1px rgba(255,255,255,.65);
  transition:background-color 180ms ease,border-color 180ms ease;
}
.folder-pocket::before {
  content:"";position:absolute;bottom:100%;left:-1px;width:31%;height:8px;
  border:1px solid #8099c9;border-bottom:0;border-radius:5px 9px 0 0;background:inherit;
}
.visit-document.is-touched .folder-pocket {border-color:#377f64;background:#b9e0ca}
.visit-guest {position:absolute;bottom:calc(16px + var(--visitor-lane, 0) * 8px);z-index:calc(4 - var(--visitor-lane, 0));width:66px;height:77px;visibility:hidden;pointer-events:none}
.visit-guest.is-visible {visibility:visible}
.visit-guest .edge-guest {position:static;display:block;width:66px;height:77px;visibility:inherit;overflow:visible;transform-origin:45% 55%}
.visitor-arm {transform-box:fill-box;transform-origin:79% 10%}
.visit-guest .visitor-legs path {transform-box:fill-box;transform-origin:top center}
@media(prefers-reduced-motion:no-preference) {
  .visit-guest.is-walking .edge-guest {animation:visitor-bob .28s ease-in-out infinite alternate}
  .visit-guest.is-walking .visitor-legs path {animation:visitor-stride .28s ease-in-out infinite alternate}
  .visit-guest.is-walking .visitor-legs path+path {animation-direction:alternate-reverse}
  .visit-guest.is-walking .visitor-arm {animation:visitor-swing .28s ease-in-out infinite alternate}
  @keyframes visitor-stride {from {transform:rotate(-27deg) translateY(1px)} to {transform:rotate(24deg) translateY(-2px)}}
  @keyframes visitor-swing {from {transform:rotate(16deg)} to {transform:rotate(-15deg)}}
  @keyframes visitor-bob {from {translate:0 0} to {translate:0 -2px}}
}
@media (max-width:480px) {
  .visit-document .live-card-title {font-size:clamp(1rem,5vw,1.32rem)}
  .document-sheet {padding-inline:9px}
}
.live-card:has(.visit-stage) .live-card-head {border-top:1px solid var(--border);border-bottom:0;padding:5px 0 0}
.visit-total {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:5px 8px;border-radius:8px}
.visit-total.is-pulsed {background:var(--emerald-soft);color:var(--emerald-ink)}
.visit-total .kpi-label {font-weight:700}
.visit-total .kpi-num {font-size:1.55rem}

/* Translucent chrome over deliberately visible blue and green light wells. */
:root {
  --glass-light:rgba(255,255,255,.77);
  --glass-strong:rgba(255,255,255,.89);
  --glass-edge:rgba(133,152,183,.42);
}
body {background:radial-gradient(ellipse at 85% 12%,#d7e5f8 0,transparent 29rem),var(--bg)}
.site-header {background:var(--glass-strong);backdrop-filter:blur(16px) saturate(145%)}
.hero-card-wrap,.goal-stage,.dropzone-card,.dash-card {background:var(--glass-light);border-color:var(--glass-edge)}
#benefits .goal-stage {background:var(--glass-light)}
.hero-card-wrap {backdrop-filter:blur(12px) saturate(125%)}
.live-card-bar,.sample-note {background:rgba(226,233,244,.52)}
.menu-toggle,.drawer-close {background:rgba(255,255,255,.68)}
.mobile-drawer {
  margin:12px 12px 12px auto;height:auto;max-height:calc(100dvh - 24px);
  width:min(388px,calc(100vw - 24px));border:1px solid var(--glass-edge);
  border-radius:var(--radius-panel);padding:24px;background:var(--glass-strong);
  backdrop-filter:blur(20px) saturate(145%);overflow:auto;
}
.mobile-drawer::backdrop {background:rgba(27,48,84,.27);backdrop-filter:blur(3px)}
.drawer-links a {min-height:44px;border-radius:var(--radius-button)}
.drawer-links a[aria-current="page"] {background:#e1ebfa;color:#1e3a9a;font-weight:700}
.drawer-links .drawer-cta {background:var(--cobalt);color:white}
.drawer-resources {display:flex;flex-wrap:wrap;gap:8px 18px;border-top:1px solid var(--border);margin-top:22px;padding-top:16px}
.drawer-resources a {font-size:.875rem;color:var(--ink-secondary)}
.drawer-resources a[aria-current="page"] {color:var(--cobalt);font-weight:700}
@media (prefers-reduced-motion:no-preference) {
  .visit-guest.is-walking .edge-guest,.visit-guest.is-walking .visitor-legs path,.visit-guest.is-walking .visitor-arm {animation-duration:.36s}
}

/* The archive uses the same shell, with specialized layouts for its indexes. */
.reader-shell {width:min(1060px,calc(100% - 2 * var(--page-gutter)))}
.reader-back {font:600 .9rem/1.5 var(--font-body);margin:0 0 16px}
.reader-article {
  padding:clamp(20px,4.2vw,54px);border:1px solid var(--glass-edge);border-radius:var(--radius-panel);
  background:var(--glass-light);box-shadow:0 16px 45px -36px #2c477c;
}
.reader-article .reader-intro {border:0;padding:0 0 clamp(24px,4vw,48px);margin:0}
.reader-article .reader-intro > :only-child > p:first-child:not(:only-child) {
  color:var(--cobalt);font-weight:700;font-size:.875rem;margin:0 0 10px;
}
.reader-article .reader-intro h1 {max-width:18ch;margin:0 0 18px}
.reader-article .reader-intro p {font-size:clamp(1rem,1.7vw,1.15rem)}
.reader-article > section + section {border-top:1px solid var(--border);padding:clamp(24px,4vw,42px) 0}
.reader-article > section + section > :first-child > h2:first-child {margin-top:0}
.reader-article :is(h2,h3,[id]) {scroll-margin-top:86px}
.reader-article h2 {font-size:clamp(1.65rem,3vw,2.45rem)}
.reader-article h3 {line-height:1.25}
.reader-article img {border-radius:var(--radius-inset)}
.reader-article :is(img,video)[hidden] {display:none}
.reader-article :is(pre,table) {border-radius:var(--radius-inset);max-width:100%;overflow:auto}
.reader-article :is(ol,ul) {padding-inline-start:1.4em}
.reader-article li+li {margin-top:.4em}
.reader-article details {padding:12px 0;border-top:1px solid var(--border)}
.reader-article summary {cursor:pointer;font-weight:700}
.reader-article article {max-width:73ch}
.reader-article article nav {padding:18px;border-radius:var(--radius-inset);background:var(--glass-strong);border:1px solid var(--glass-edge);margin-bottom:28px}
.reader-article[data-reader="blog"] > section:nth-of-type(2) > div > div {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;
}
.reader-article[data-reader="blog"] > section:nth-of-type(2) a:has(h2) {
  display:flex;flex-direction:column;background:var(--glass-strong);border:1px solid var(--glass-edge);
  border-radius:var(--radius-inset);overflow:hidden;color:var(--ink);text-decoration:none;
}
.reader-article[data-reader="blog"] a:has(h2):hover h2 {color:var(--cobalt);text-decoration:underline}
.reader-article[data-reader="blog"] a > img {width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:0}
.reader-article[data-reader="blog"] a:has(h2) > div {padding:18px}
.reader-article[data-reader="blog"] a h2 {font-size:1.65rem;margin:8px 0 10px}
.reader-article[data-reader="blog"] a p {margin:0;font-size:.9rem;font-weight:400}
.reader-article[data-reader="help"] > section:nth-of-type(3) > div > div:nth-child(2) {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,214px),1fr));gap:14px;
}
.reader-article[data-reader="help"] > section:nth-of-type(3) > div > div:nth-child(2) > div,
.reader-client {padding:18px;border:1px solid var(--glass-edge);border-radius:var(--radius-inset);background:var(--glass-strong)}
.reader-client {margin-top:12px}
.reader-client h3,.reader-article[data-reader="help"] h3 {margin:0 0 8px}
#search,.reader-endpoint {max-width:550px;padding:16px;margin:20px 0;border:1px solid var(--glass-edge);border-radius:var(--radius-inset);background:var(--glass-strong)}
#search label,.reader-endpoint label {display:block;margin:0 0 8px;font-weight:700}
#help-query {width:100%;font:inherit;padding:10px 12px;border:1px solid var(--border-strong);border-radius:12px}
#help-matches:not(:empty) {display:grid;gap:8px;padding-top:12px}
.reader-intro #search + div {display:flex;flex-wrap:wrap;gap:7px 14px;align-items:baseline}
.reader-intro #search + div a {font-size:.875rem}
@media(max-width:480px) {
  .reader-shell {width:calc(100% - 28px)}
  .reader-article {padding:18px;border-radius:22px}
  .reader-article article nav {padding:12px}
}

/* Keep content and controls within the available display area. */
body {padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
.site-header {padding-top:env(safe-area-inset-top,0px)}
.mobile-drawer {
  margin-top:calc(env(safe-area-inset-top,0px) + 12px);
  margin-right:calc(env(safe-area-inset-right,0px) + 12px);
  width:min(388px,calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - 24px));
  max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);
}
.plan-choice .plan-price-row {justify-items:center}
.hero-actions {min-width:0}
.hero-actions a {max-width:100%;white-space:normal;text-align:center}
.dash-card,.dash-body,.reader-article article {min-width:0}
.reader-article :is(figure,fieldset) {min-width:0;margin-inline:0}
.reader-article :is(video,iframe) {max-width:100%}
.reader-article [id],main section[id] {scroll-margin-top:calc(72px + env(safe-area-inset-top,0px))}
@media (max-width:370px), (horizontal-viewport-segments:2) {
  .pricing-grid:has(.plan-choice) {perspective:560px;padding-inline:5px}
  .plan-choice:first-child {margin-inline-end:-7px}
  .plan-choice:last-child {margin-inline-start:-7px}
  .plan-card.plan-choice {border-radius:18px;padding-inline:8px}
  .plan-choice[aria-pressed="true"] {transform:translateY(-4px) translateZ(24px)}
  .plan-choice .plan-name {font-size:.8rem}
}
@media (max-height:480px) and (orientation:landscape) {
  .header-inner {min-height:54px}
  .hero {padding-block:36px 56px}
  .mobile-drawer {padding:16px}
  .drawer-head {padding-bottom:8px;margin-bottom:8px}
  .drawer-links a {padding-block:8px}
}
@media (horizontal-viewport-segments:2) {
  body {width:env(viewport-segment-width 0 0,100%)}
  .hero-grid,.workflow,.upload-grid,#benefits .goal-stage {grid-template-columns:minmax(0,1fr)}
  .hero-copy h1 {font-size:clamp(2.65rem,7vw,4.1rem)}
  .workflow-scene {--scene-delay:0ms !important}
  .workflow-scene+.workflow-scene {border-inline-start:0;border-block-start:1px solid var(--setup-border)}
  #benefits .goal-pills {display:flex;flex-wrap:wrap}
  #benefits .goal-pill {width:auto}
  .mobile-drawer {
    margin-right:calc(100vw - env(viewport-segment-right 0 0,100vw) + 12px);
    width:min(388px,calc(env(viewport-segment-width 0 0,100vw) - 24px));
  }
  .toast {left:calc(env(viewport-segment-width 0 0,100vw) / 2)}
}

.hero-mobile-lede {display:none}
@media (max-width:700px), (horizontal-viewport-segments:2) {
  .hero {padding-block:clamp(20px,5vw,38px) 52px}
  .hero-grid {gap:18px}
  .hero-copy {text-align:center}
  .hero-copy h1 {font-size:clamp(1.875rem,8.25vw,3.25rem);line-height:1.04;letter-spacing:-.04em}
  .hero-copy h1 em {white-space:nowrap}
  .hero-desktop-lede,.hero-meta {display:none}
  .hero-mobile-lede {display:inline}
  .hero-lede {max-width:32ch;margin:12px auto 14px;font-size:1rem;line-height:1.45}
  .hero-actions {justify-content:center;gap:8px 12px}
  .hero-actions .btn-primary {min-height:44px;padding:8px 14px;font-size:.875rem}
  .hero-actions .btn-secondary {min-height:44px;padding:8px 0;font-size:.875rem}
}
