/* ==========================================================================
   DEFT — deftos.ai
   Design system ported 1:1 from DEFTKit/Theme.swift so the site and the app
   speak the same vocabulary. Dark only — the app has no light mode.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — Theme.swift */
  --bg: #0b0b0f;
  --surface: #15151b;
  --surface-elevated: #1c1c24;
  --surface-sunken: #080809;
  --border-subtle: #26262f;
  --border-strong: #3a3a47;

  /* Text */
  --text-primary: #f2f2f5;
  --text-secondary: #9a9aa8;
  --text-tertiary: #6a6a78;
  --text-inverse: #0b0b0f;

  /* Accent — Obsidian's interactive-accent, hsl(254 80% 68%) */
  --accent: #8b6cef;
  --accent-muted: #43327b;
  --accent-on-dark: #b59eff;
  /* Text/icon colour on an --accent fill. */
  --on-accent: #fff;

  /* Status */
  --success: #4ade80;
  --warning: #f5a524;
  --danger: #f87171;

  /* Priority + category palette */
  --p3: #997aff;
  --cat-personal: #a78bfa;
  --cat-work: #6c8cff;
  --cat-family: #4ade80;

  /* Spacing — Spacing enum */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  --sp-3xl: 48px;
  --sp-4xl: 72px;

  /* Radius — Radius enum */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Elevation. Bigger surfaces read as thicker: deeper blur + longer shadow. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 0 0 1px rgba(139, 108, 239, 0.24), 0 12px 40px -8px rgba(139, 108, 239, 0.28);

  --container: 1120px;
  --nav-h: 60px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  /* Leading loosens for body copy, tightens for display type (see .h1/.h2). */
  font: 100%/1.6 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: rgba(139, 108, 239, 0.32);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: var(--sp-lg);
  top: -100px;
  z-index: 200;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top 140ms ease-out;
}
.skip-link:focus {
  top: var(--sp-lg);
}

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

/* --------------------------------------------------------------------------
   3. Typography scale
   Tracking is size-specific: display type gets negative tracking, small caps
   labels get positive. A single letter-spacing value would be wrong somewhere.
   -------------------------------------------------------------------------- */

.h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.033em;
  font-weight: 600;
  margin: 0;
}

.h2 {
  font-size: clamp(1.875rem, 3.9vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 600;
  margin: 0;
}

.h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.014em;
  font-weight: 600;
  margin: 0;
}

.h4 {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.006em;
  font-weight: 600;
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.65vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.004em;
  color: var(--text-secondary);
  margin: 0;
}

.body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em; /* small text wants positive tracking */
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin: 0 0 var(--sp-lg);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.accent-text {
  color: var(--accent-on-dark);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--sp-xl);
}

.section {
  padding-block: clamp(72px, 11vh, 128px);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 7vh, 80px);
}

.section__head {
  max-width: 660px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head .lede {
  margin-top: var(--sp-lg);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-subtle) 18%,
    var(--border-subtle) 82%,
    transparent
  );
}

/* --------------------------------------------------------------------------
   5. Buttons — feedback lives on the press, and it is instant
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: transform 100ms ease-out, background-color 140ms ease-out,
    border-color 140ms ease-out, box-shadow 140ms ease-out, color 140ms ease-out;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background: #9b80f2;
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: #4a4a5a;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}

/* Alternate-platform download. Always in the DOM so it works without JS;
   main.js hides whichever one matches the visitor's own OS. */
.platform-alt {
  margin: var(--sp-lg) 0 0;
  font-size: 0.8125rem;
}

.platform-alt a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: color 140ms ease-out, border-color 140ms ease-out;
}
.platform-alt a::after {
  content: "↓";
  font-size: 0.75em;
  opacity: 0.7;
}
.platform-alt a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}
.platform-alt a[hidden] {
  display: none;
}

.cta-note {
  margin-top: var(--sp-lg);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-sm) var(--sp-md);
}

.cta-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   6. Header — translucent chrome, content scrolls underneath
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background-color 220ms ease-out, box-shadow 220ms ease-out;
}

/* Scroll edge effect: a soft fade where content meets floating chrome,
   not a hard 1px divider. Only materialises once content is underneath. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 24px;
  background: linear-gradient(rgba(11, 11, 15, 0.55), transparent);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

.site-header[data-scrolled="true"] {
  background: rgba(11, 11, 15, 0.82);
}
.site-header[data-scrolled="true"]::after {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__word {
  font-weight: 650;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  margin-left: auto;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: -0.006em;
  transition: color 140ms ease-out;
}
.nav__link:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex: none;
}

.nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  position: relative;
  transition: transform 200ms ease-out, opacity 120ms ease-out;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.nav__toggle span::before {
  top: -5px;
}
.nav__toggle span::after {
  top: 5px;
}
.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile sheet enters and exits along the same path (top), anchored to nav. */
.nav__sheet {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  gap: var(--sp-xs);
  transform-origin: top center;
}

.nav__sheet a {
  padding: var(--sp-md) 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__sheet a:last-of-type {
  border-bottom: 0;
}
.nav__sheet .btn {
  margin-top: var(--sp-md);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vh, 104px));
  padding-bottom: clamp(56px, 8vh, 96px);
  overflow: hidden;
}

/* Static aurora — no looping motion, no full-viewport animation. */
.hero__aurora {
  position: absolute;
  top: -280px;
  left: 50%;
  translate: -50% 0;
  width: min(1200px, 150vw);
  height: 760px;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 50% 42%, rgba(139, 108, 239, 0.20), transparent 72%),
    radial-gradient(34% 30% at 22% 56%, rgba(167, 139, 250, 0.13), transparent 70%),
    radial-gradient(30% 28% at 78% 52%, rgba(74, 222, 128, 0.075), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero .lede {
  margin: var(--sp-xl) auto 0;
  max-width: 620px;
}

.hero .cta-row {
  justify-content: center;
  margin-top: var(--sp-2xl);
}

.hero .cta-note {
  justify-content: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 6px 14px 6px 8px;
  margin-bottom: var(--sp-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: -0.004em;
}

.badge-pill strong {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: rgba(139, 108, 239, 0.16);
  color: var(--accent-on-dark);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__hint {
  margin-top: clamp(40px, 6vh, 64px);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Interactive product demo
   -------------------------------------------------------------------------- */

.demo-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vh, 72px);
  perspective: 1600px;
}

.demo {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  isolation: isolate;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 11px var(--sp-lg);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(21, 21, 27, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.demo__lights {
  display: flex;
  gap: 7px;
  flex: none;
}
.demo__lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.demo__lights i:nth-child(1) {
  background: #ff5f57;
}
.demo__lights i:nth-child(2) {
  background: #febc2e;
}
.demo__lights i:nth-child(3) {
  background: #28c840;
}

.demo__title {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin-inline: auto;
}

.demo__reset {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: color 140ms ease-out, border-color 140ms ease-out, transform 100ms ease-out;
}
.demo__reset:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.demo__reset:active {
  transform: scale(0.95);
}

.demo__body {
  display: grid;
  grid-template-columns: 1fr 268px;
  min-height: 372px;
}

.demo__board {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
}

.demo__capture {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 12px var(--sp-lg);
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.demo__capture:focus-within {
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px rgba(139, 108, 239, 0.13);
}

.demo__capture svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex: none;
}

.demo__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 0.9375rem;
  letter-spacing: -0.006em;
}
.demo__input::placeholder {
  color: var(--text-tertiary);
}

.demo__key {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 2px 7px;
}

.demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.demo__chip {
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: -0.004em;
  transition: transform 100ms ease-out, background-color 140ms ease-out,
    border-color 140ms ease-out, color 140ms ease-out;
}
.demo__chip:hover {
  color: var(--text-primary);
  background: rgba(139, 108, 239, 0.1);
  border-color: var(--accent-muted);
}
.demo__chip:active {
  transform: scale(0.96);
}

.demo__tasks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  min-height: 0;
}

.demo__empty {
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--r-md);
}

.task-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transform-origin: top center;
}

.task-card__top {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}

.task-card__title {
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.008em;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.tag {
  flex: none;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  border: 1px solid currentColor;
  opacity: 0.9;
}
.tag--p1 { color: var(--danger); }
.tag--p2 { color: var(--warning); }
.tag--p3 { color: var(--p3); }
.tag--work { color: var(--cat-work); }
.tag--personal { color: var(--cat-personal); }

.task-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.task-card__status {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-subtle);
}

.task-card__status[data-state="working"] { color: var(--warning); }
.task-card__status[data-state="ready"] { color: var(--success); }

.spinner {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: spin 780ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress {
  height: 3px;
  border-radius: var(--r-full);
  background: var(--surface-elevated);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-muted), var(--accent));
  transition: width 420ms cubic-bezier(0.32, 0.72, 0, 1);
}

.result {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.result__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
}

.result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-md);
  font-size: 0.8125rem;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-elevated);
}
.result__row b {
  font-weight: 550;
  letter-spacing: -0.004em;
}
.result__row span {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex: none;
}

.result__foot {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.result__actions {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}
.result__actions button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  transition: transform 100ms ease-out, background-color 140ms ease-out;
}
.result__actions button:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.result__actions button:active {
  transform: scale(0.96);
}

/* Agent activity rail */
.demo__rail {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  min-width: 0;
}

.demo__rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex: none;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}
.live-dot[data-live="true"] {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.demo__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  overflow: hidden;
}

.log-line {
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
}
.log-line em {
  font-style: normal;
  color: var(--text-tertiary);
  flex: none;
}
.log-line b {
  font-weight: 500;
  color: var(--accent-on-dark);
  flex: none;
}
.log-line[data-kind="ok"] b { color: var(--success); }
.log-line[data-kind="warn"] b { color: var(--warning); }
.log-line span {
  min-width: 0;
  word-break: break-word;
}

.demo__log-empty {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Lean-In sheet — enters from the bottom, exits to the bottom, draggable */
.sheet {
  position: absolute;
  left: var(--sp-lg);
  right: var(--sp-lg);
  bottom: var(--sp-lg);
  z-index: 5;
  padding: var(--sp-lg);
  border-radius: var(--r-lg);
  border: 1px solid rgba(139, 108, 239, 0.28);
  background: rgba(28, 28, 36, 0.86);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 -2px 60px -12px rgba(139, 108, 239, 0.35), var(--shadow-lg);
  transform: translate3d(0, 130%, 0);
  touch-action: none;
  visibility: hidden;
  cursor: grab;
}
.sheet[data-open="true"] {
  visibility: visible;
}
.sheet[data-dragging="true"] {
  cursor: grabbing;
}

.sheet__grab {
  width: 36px;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  margin: 0 auto var(--sp-md);
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.sheet__spark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(139, 108, 239, 0.16);
  color: var(--accent-on-dark);
}
.sheet__spark svg {
  width: 15px;
  height: 15px;
}

.sheet__title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sheet__copy {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-lg);
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.sheet__foot {
  margin-top: var(--sp-md);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* macOS-style notification toast */
.toast {
  position: absolute;
  top: 52px;
  right: var(--sp-lg);
  z-index: 6;
  width: min(300px, calc(100% - 32px));
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: rgba(28, 28, 36, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: var(--sp-md);
  transform: translate3d(0, -140%, 0);
  visibility: hidden;
}
.toast[data-open="true"] {
  visibility: visible;
}

.toast__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--on-accent);
}
.toast__icon svg {
  width: 17px;
  height: 17px;
}

.toast__title {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.006em;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
}
.toast__title em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.6875rem;
}
.toast__body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   9. Logo strip (social proof — PLACEHOLDERS)
   -------------------------------------------------------------------------- */

.logo-strip {
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--sp-2xl);
  background: var(--surface-sunken);
}

.logo-strip__label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-xl);
}

.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
}

.logo-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.42;
  filter: grayscale(1);
  transition: opacity 200ms ease-out, filter 200ms ease-out;
}
.logo-slot:hover {
  opacity: 0.8;
  filter: grayscale(0.4);
}
.logo-slot svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.logo-slot span {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Video
   -------------------------------------------------------------------------- */

.video-frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--sp-lg);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(139, 108, 239, 0.14), transparent 70%),
    var(--surface-sunken);
  text-align: center;
  padding: var(--sp-xl);
}

.video-frame__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent 80%);
}

.video-play {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(242, 242, 245, 0.95);
  color: var(--text-inverse);
  box-shadow: 0 12px 44px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 140ms cubic-bezier(0.32, 0.72, 0, 1), background-color 140ms ease-out;
}
.video-play:hover {
  transform: scale(1.06);
}
.video-play:active {
  transform: scale(0.96);
}
.video-play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.video-caption {
  position: relative;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   11. Problem — before / after
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-xl);
}

.panel {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.panel--accent {
  border-color: rgba(139, 108, 239, 0.28);
  background: linear-gradient(180deg, rgba(139, 108, 239, 0.06), rgba(21, 21, 27, 0.9));
  box-shadow: var(--shadow-glow);
}

.panel__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.panel--accent .panel__label {
  color: var(--accent-on-dark);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--sp-md);
  padding: 10px 0;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-subtle);
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding-top: 2px;
}
.timeline span {
  color: var(--text-secondary);
}
.timeline--after span {
  color: var(--text-primary);
}
.timeline li.is-loss span {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
}

.panel__punch {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.008em;
  color: var(--text-primary);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   12. Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-on-dark);
  letter-spacing: 0.06em;
}

.step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   13. Core principle
   -------------------------------------------------------------------------- */

.principle {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border-subtle);
}

.principle__quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.375rem);
  line-height: 1.22;
  letter-spacing: -0.026em;
  font-weight: 600;
}

.principle__quote em {
  font-style: normal;
  color: var(--text-tertiary);
}

.principle__sub {
  max-width: 640px;
  margin: var(--sp-xl) auto 0;
  text-align: center;
}

.contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--sp-lg);
  max-width: 900px;
  margin: clamp(40px, 6vh, 64px) auto 0;
}

.contrast__side {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contrast__side--accent {
  border-color: rgba(139, 108, 239, 0.3);
  background: linear-gradient(180deg, rgba(139, 108, 239, 0.07), var(--surface) 60%);
  box-shadow: var(--shadow-glow);
}

.contrast__label {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.contrast__side--accent .contrast__label {
  color: var(--accent-on-dark);
}

.contrast__side p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--text-secondary);
}
.contrast__side--accent p {
  color: var(--text-primary);
}
.contrast__side p b {
  font-weight: 600;
  color: var(--accent-on-dark);
}

.contrast__arrow {
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
}
.contrast__arrow svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .contrast {
    grid-template-columns: 1fr;
  }
  .contrast__arrow {
    transform: rotate(90deg);
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vh, 72px);
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pillar {
  background: var(--bg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.pillar__letter {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.pillar:nth-child(2) .pillar__letter { color: var(--cat-personal); }
.pillar:nth-child(3) .pillar__letter { color: var(--warning); }
.pillar:nth-child(4) .pillar__letter { color: var(--success); }

.pillar h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: var(--sp-sm) 0 0;
}

.pillar p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Features
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: var(--sp-lg);
}

.feature {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: border-color 200ms ease-out, background-color 200ms ease-out,
    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.feature:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.feature__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(139, 108, 239, 0.12);
  color: var(--accent-on-dark);
  flex: none;
}
.feature__icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0;
}

.feature p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.feature__tag {
  margin-top: auto;
  padding-top: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   15. Privacy
   -------------------------------------------------------------------------- */

.privacy {
  position: relative;
  overflow: hidden;
}

.privacy__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(45% 60% at 50% 100%, rgba(74, 222, 128, 0.08), transparent 70%);
}

.privacy__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-2xl);
  align-items: start;
}

.privacy__promises {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.promise {
  background: var(--surface);
  padding: var(--sp-lg) var(--sp-xl);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-md);
  align-items: start;
}

.promise__check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(74, 222, 128, 0.14);
  color: var(--success);
  flex: none;
}
.promise__check svg {
  width: 12px;
  height: 12px;
}

.promise h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0 0 4px;
}
.promise p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.scope-card {
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.scope-card__head {
  padding: var(--sp-lg) var(--sp-xl);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.scope-list {
  padding: var(--sp-lg) var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.scope-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--sp-md);
  align-items: start;
  word-break: break-all;
}

.scope-list li[data-allowed="yes"] { color: var(--text-secondary); }
.scope-list li[data-allowed="yes"] i {
  color: var(--success);
  font-style: normal;
}
.scope-list li[data-allowed="no"] {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.55);
}
.scope-list li[data-allowed="no"] i {
  color: var(--danger);
  font-style: normal;
  text-decoration: none;
  display: inline-block;
}

.scope-card__foot {
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   16. Social proof
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-2xl);
}

.stat {
  background: var(--surface);
  padding: var(--sp-xl);
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
}

.stat span {
  display: block;
  margin-top: var(--sp-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
}

.quote {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--warning);
}
.quote__stars svg {
  width: 14px;
  height: 14px;
}

.quote blockquote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--text-primary);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: auto;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.quote__who b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.004em;
}
.quote__who span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   17. Pricing
   -------------------------------------------------------------------------- */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-xs);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-full);
  margin: var(--sp-xl) auto 0;
  position: relative;
}

.billing-toggle button {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 180ms ease-out;
  white-space: nowrap;
}
.billing-toggle button[aria-pressed="true"] {
  color: var(--on-accent);
}

.billing-toggle__thumb {
  position: absolute;
  z-index: 0;
  left: 0;
  top: var(--sp-xs);
  bottom: var(--sp-xs);
  border-radius: var(--r-full);
  background: var(--accent);
  will-change: transform, width;
}

.save-pill {
  margin-left: 6px;
  font-size: 0.6875rem;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: rgba(74, 222, 128, 0.16);
  color: var(--success);
}
/* Sits on the accent thumb — a light scrim reads better than a dark one. */
.billing-toggle button[aria-pressed="true"] .save-pill {
  background: rgba(255, 255, 255, 0.22);
  color: var(--on-accent);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-lg);
  align-items: start;
}

.plan {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  height: 100%;
}

.plan--featured {
  border-color: rgba(139, 108, 239, 0.42);
  background: linear-gradient(180deg, rgba(139, 108, 239, 0.075), var(--surface) 42%);
  box-shadow: var(--shadow-glow);
}

.plan__flag {
  position: absolute;
  top: -1px;
  right: var(--sp-xl);
  transform: translateY(-50%);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan__name {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.008em;
}

.plan__for {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__amount {
  font-size: clamp(2.125rem, 4vw, 2.625rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__period {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.plan__billed {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  min-height: 1.2em;
  margin-top: var(--sp-sm);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-subtle);
  flex: 1;
}

.plan__features li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.plan__features li svg {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  color: var(--accent);
  flex: none;
}
.plan--featured .plan__features li svg { color: var(--accent-on-dark); }
.plan--unlimited .plan__features li svg { color: var(--success); }

.plan__features li strong {
  color: var(--text-primary);
  font-weight: 550;
}

/* Not a checklist row — opt out of the icon grid. */
.plan__features li.plan__inherit {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-style: italic;
  padding-bottom: 2px;
}

.pricing-foot {
  margin-top: var(--sp-2xl);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.pricing-foot a {
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(181, 158, 255, 0.4);
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-xl) 44px var(--sp-xl) 0;
  position: relative;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: color 140ms ease-out;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent-on-dark);
}

.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--text-tertiary);
  border-radius: 2px;
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
.faq summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.faq summary::after {
  transform: translateY(-50%);
}
.faq details[open] summary::before {
  transform: translateY(-50%) rotate(0deg);
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 var(--sp-xl);
  max-width: 68ch;
  padding-right: 44px;
}
.faq__answer p + p {
  margin-top: calc(var(--sp-xl) * -1 + var(--sp-md));
}

.faq__answer code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--surface-elevated);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--accent-on-dark);
}

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.channel {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-md);
  transition: border-color 180ms ease-out, transform 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
a.channel:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.channel__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(139, 108, 239, 0.12);
  color: var(--accent-on-dark);
}
.channel__icon svg {
  width: 16px;
  height: 16px;
}

.channel b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.006em;
}
.channel span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}

.form {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.004em;
  color: var(--text-secondary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236a6a78' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 36px;
}

.field textarea {
  resize: vertical;
  min-height: 118px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px rgba(139, 108, 239, 0.13);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

/* Honeypot. Not `display:none` — some bots skip hidden inputs. Pushed out of
   the viewport instead, and removed from the tab order and the a11y tree at
   the markup level, so no human ever meets it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1em;
}

.form__note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

.form__status {
  font-size: 0.8125rem;
  color: var(--success);
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   20. Final CTA + footer
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.final-cta__glow {
  position: absolute;
  inset: -60% 0 auto 0;
  height: 700px;
  pointer-events: none;
  background: radial-gradient(40% 46% at 50% 62%, rgba(139, 108, 239, 0.16), transparent 72%);
}

.final-cta .container {
  position: relative;
}

.final-cta .lede {
  margin: var(--sp-xl) auto 0;
  max-width: 560px;
}

.final-cta .cta-row {
  justify-content: center;
  margin-top: var(--sp-2xl);
}
.final-cta .cta-note {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  padding-block: var(--sp-4xl) var(--sp-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
}

.footer__about p {
  margin: var(--sp-lg) 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: 34ch;
}

.footer__col h4 {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 var(--sp-lg);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 140ms ease-out;
}
.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__social {
  display: flex;
  gap: var(--sp-sm);
}

.footer__social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  transition: color 160ms ease-out, border-color 160ms ease-out, transform 100ms ease-out;
}
.footer__social a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.footer__social a:active {
  transform: scale(0.94);
}
.footer__social svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   21. Scroll reveal
   -------------------------------------------------------------------------- */

/* Scoped to `.js` so content is never hidden when the script doesn't run.
   See the inline bootstrap in <head>. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 560ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 620ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* --------------------------------------------------------------------------
   22. Prose — legal pages (privacy.html, terms.html)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-top: calc(var(--nav-h) + 40px);
}

.prose__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: var(--sp-md) 0 0;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.3;
  margin: var(--sp-3xl) 0 var(--sp-md);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-subtle);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: var(--sp-xl) 0 var(--sp-sm);
}

.prose p,
.prose li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.prose p {
  margin: 0 0 var(--sp-lg);
}

.prose ul {
  list-style: disc;
  padding-left: 1.25em;
  margin: 0 0 var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prose ul li::marker {
  color: var(--text-tertiary);
}

.prose a {
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(181, 158, 255, 0.42);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--surface-elevated);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  color: var(--accent-on-dark);
}

.prose__callout {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin: 0 0 var(--sp-2xl);
}

.prose__callout p:last-child {
  margin-bottom: 0;
}

.prose__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-xl);
  transition: color 140ms ease-out;
}
.prose__back:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .demo__body {
    grid-template-columns: 1fr;
  }
  .demo__board {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .demo__rail {
    min-height: 156px;
  }
}

@media (max-width: 800px) {
  .nav__links,
  .nav__actions .btn {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__sheet[data-open="true"] {
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: var(--sp-lg);
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .toast {
    top: 48px;
    right: var(--sp-md);
    left: var(--sp-md);
    width: auto;
  }
  .demo__board,
  .demo__rail {
    padding: var(--sp-lg);
  }
  .billing-toggle {
    width: 100%;
    justify-content: stretch;
  }
  .billing-toggle button {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   23. Accessibility preferences
   Reduced motion is not "no feedback" — it is a gentler, non-vestibular
   equivalent: short cross-fades instead of springs, slides and parallax.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 0;
    transform: none;
  }
  .js [data-reveal].is-visible {
    transition: opacity 220ms ease;
  }
  .feature:hover,
  .video-play:hover,
  a.channel:hover {
    transform: none;
  }
  .spinner {
    animation: none;
    border-top-color: currentColor;
    opacity: 0.5;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header[data-scrolled="true"] {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav__sheet,
  .sheet,
  .toast,
  .demo__chrome {
    background: var(--surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-secondary: #c4c4ce;
    --text-tertiary: #9a9aa8;
    --border-subtle: #3a3a47;
    --border-strong: #5a5a6c;
  }
  .sheet,
  .toast,
  .nav__sheet {
    background: var(--surface-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--border-strong);
  }
}

@media print {
  .site-header,
  .demo-wrap,
  .video-frame,
  .nav__sheet {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
