/* ==========================================================
   AKILI — Landing
   Design tokens, base styles, components, sections
   ========================================================== */

:root {
  /* Light theme (default) */
  --bg: #f7f5f1;
  --bg-grain: #f3f0ea;
  --surface: #ffffff;
  --surface-2: #f1edf7;
  --surface-3: #e9e3f5;
  --border: rgba(20, 14, 40, 0.08);
  --border-strong: rgba(20, 14, 40, 0.14);
  --text: #0e0a1c;
  --text-muted: #5b556d;
  --text-dim: #8a8499;

  --accent: #6d4eff;
  --accent-2: #9b6bff;
  --accent-deep: #4a2fd9;
  --accent-glow: rgba(109, 78, 255, 0.32);
  --accent-soft: rgba(109, 78, 255, 0.10);

  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;

  --orb-tint-1: #b89cff;
  --orb-tint-2: #6d4eff;
  --orb-tint-3: #2a1b6b;

  --shadow-sm: 0 1px 2px rgba(20, 14, 40, 0.06), 0 1px 1px rgba(20, 14, 40, 0.04);
  --shadow-md: 0 8px 28px rgba(46, 28, 110, 0.08), 0 2px 6px rgba(20, 14, 40, 0.04);
  --shadow-lg: 0 30px 80px rgba(46, 28, 110, 0.16), 0 10px 24px rgba(20, 14, 40, 0.06);
  --shadow-glow: 0 0 0 1px rgba(109, 78, 255, 0.18), 0 20px 60px rgba(109, 78, 255, 0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --grid-line: rgba(20, 14, 40, 0.05);
}

[data-theme="dark"] {
  --bg: #07050e;
  --bg-grain: #0a0814;
  --surface: #110c1f;
  --surface-2: #161029;
  --surface-3: #1d1535;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f1ff;
  --text-muted: #a39cb8;
  --text-dim: #6e6786;

  --accent: #8b6dff;
  --accent-2: #b89cff;
  --accent-deep: #6d4eff;
  --accent-glow: rgba(139, 109, 255, 0.45);
  --accent-soft: rgba(139, 109, 255, 0.14);

  --orb-tint-1: #c8b0ff;
  --orb-tint-2: #7c5cff;
  --orb-tint-3: #1a0f4d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(139, 109, 255, 0.3), 0 20px 60px rgba(109, 78, 255, 0.35);

  --grid-line: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Background field — subtle grid + radial accent */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, var(--accent-soft), transparent 65%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 95%);
}

/* Containers */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* ===== Type ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 580; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); max-width: 56ch; line-height: 1.55; }

.grad-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 18px;
  font: 500 14px/1 var(--font-text);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 22px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 16px; z-index: 50;
  margin: 16px auto 0;
  max-width: 1200px;
  padding: 10px 14px 10px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: block;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark--legacy::after {
  content: ""; position: absolute; inset: 2px; border-radius: 8px;
  background: radial-gradient(circle at 70% 70%, transparent 40%, rgba(0,0,0,.25));
}
.brand-mark--legacy {
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 30%, var(--orb-tint-1), var(--orb-tint-2) 55%, var(--orb-tint-3) 100%);
  box-shadow: 0 6px 16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.brand-mark--legacy-after-disabled::after {
  content: ""; position: absolute; inset: 2px; border-radius: 8px;
  background: radial-gradient(circle at 70% 70%, transparent 40%, rgba(0,0,0,.25));
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: transform .3s ease;
}
.theme-toggle:hover { transform: rotate(15deg); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { margin-top: 22px; }
.hero-copy h1 strong { font-weight: 600; }
.hero-lede { margin-top: 22px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px;
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-trust .stack { display: flex; }
.hero-trust .stack span {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  border: 2px solid var(--bg);
  margin-left: -8px;
  box-shadow: var(--shadow-sm);
}
.hero-trust .stack span:first-child { margin-left: 0; }
.hero-trust .stack span:nth-child(2) { background: linear-gradient(135deg, #ff9bd2, #6d4eff); }
.hero-trust .stack span:nth-child(3) { background: linear-gradient(135deg, #6dd2ff, #4a2fd9); }
.hero-trust .stack span:nth-child(4) { background: linear-gradient(135deg, #b89cff, #2a1b6b); }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
  .hero { padding: 56px 0 64px; }
}

/* ===== Logos band ===== */
.logos {
  padding: 28px 0 16px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 18px;
}
.logos-row {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px;
  align-items: center;
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  height: 38px;
  color: var(--text-dim);
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity .25s, color .25s, filter .25s;
}
.logo-item:hover { opacity: 1; filter: grayscale(0); color: var(--accent); }
.logo-item svg { height: 100%; width: auto; }
@media (max-width: 720px) {
  .logos-row { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}

/* ===== Section base ===== */
section.block { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lede { margin: 0 auto; }

/* ===== Features grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature .visual {
  position: relative;
  height: 200px;
  margin: -28px -28px 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.feature h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -0.015em; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.feature .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--text-muted);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.feature.col-7 { grid-column: span 7; }
.feature.col-5 { grid-column: span 5; }
.feature.col-6 { grid-column: span 6; }
.feature.col-4 { grid-column: span 4; }
.feature.col-12 { grid-column: span 12; }
@media (max-width: 920px) {
  .feature.col-7, .feature.col-5, .feature.col-6, .feature.col-4 { grid-column: span 12; }
}

/* ===== How it works ===== */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.flow-step {
  position: relative;
  padding: 32px 24px 28px;
  border-right: 1px solid var(--border);
  transition: background .25s;
}
.flow-step:last-child { border-right: none; }
.flow-step:hover { background: var(--surface-2); }
.flow-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.flow-num::before {
  content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.flow-step h3 { font-size: 19px; margin-bottom: 8px; }
.flow-step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.flow-step .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.flow-rail {
  position: absolute; left: 0; right: 0; top: 70px; height: 2px;
  background: var(--border);
  pointer-events: none;
  z-index: 1;
}
.flow-rail::before {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: railFlow 3.6s linear infinite;
}
@keyframes railFlow { to { left: 100%; } }
@media (max-width: 920px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .flow-rail { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
}

/* ===== Demo (product preview) ===== */
.demo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-wrap::before {
  content: ""; position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 40%, transparent 60%, var(--accent-2) 80%, transparent 100%);
  filter: blur(40px); opacity: .35;
  z-index: -1;
  animation: demoSpin 14s linear infinite;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }

.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo-bar .url {
  flex: 1; height: 26px; border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.demo-body {
  display: grid; grid-template-columns: 240px 1fr; min-height: 460px;
}
.demo-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  background: var(--bg-grain);
}
.demo-side .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 2px;
}
.demo-side .item.active { background: var(--accent-soft); color: var(--accent); }
.demo-side .item .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.demo-side .group-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); padding: 14px 10px 6px;
}

.demo-main { padding: 22px; overflow: hidden; }
.demo-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.metric-card {
  padding: 16px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.metric-card .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.metric-card .value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.metric-card .delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.delta.up { color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }

.score-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 78) * 1%), var(--surface-2) 0);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  position: relative;
}
.score-ring::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--surface);
}
.score-ring span {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -.02em;
}
.score-card { display: flex; align-items: center; }

.demo-chart {
  height: 180px; margin-top: 6px; position: relative;
  border-radius: 12px;
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 90%),
    var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.demo-chart svg { width: 100%; height: 100%; display: block; }

.findings-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.finding {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}
.finding .sev { font-family: var(--font-mono); font-size: 10px; padding: 3px 7px; border-radius: 6px; letter-spacing: .1em; }
.sev.critical { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.sev.high { background: color-mix(in srgb, #f97316 14%, transparent); color: #f97316; }
.sev.med { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.finding .ref { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

@media (max-width: 820px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { display: none; }
}

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4.4vw, 60px);
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 50%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { color: var(--text-muted); margin-top: 10px; font-size: 14px; }
.stat .spark { position: absolute; right: -8px; bottom: -8px; opacity: .2; pointer-events: none; }
@media (max-width: 920px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: none; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 540px) { .stats { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--border); } .stat:last-child { border-bottom: none; } }

/* ===== Testimonials marquee ===== */
.marquee-mask {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee {
  display: flex; gap: 18px;
  width: max-content;
  animation: marqueeMove 40s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }
.testi {
  width: 380px; flex: 0 0 380px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.testi p { font-size: 15px; line-height: 1.55; margin: 0 0 18px; color: var(--text); }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  font-family: var(--font-display); font-weight: 600;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.testi .who strong { font-size: 14px; display: block; }
.testi .who span { font-size: 12px; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.plan-head { margin-bottom: 22px; }
.plan-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.plan-name.accent { color: var(--accent); }
.plan-target { font-size: 14px; color: var(--text); font-weight: 500; }
.price-block { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.price-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}
.price-meta.accent { color: var(--accent); }
.plan li.off { opacity: .42; }
.plan li.off s { text-decoration: line-through; text-decoration-thickness: 1px; }
.plan li.off svg { color: var(--text-muted); opacity: .55; }
.plan li.on svg { color: var(--accent); }
.reco-badge {
  position: absolute; top: -1px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.plan {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.plan.featured {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 40%, var(--surface)));
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}
.plan .tag {
  position: absolute; top: -12px; left: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 5px 10px; border-radius: 6px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 4px; line-height: 1.05; }
.plan .price .per { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; font-style: italic; font-family: var(--font-text); }
.plan .price-note { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; }
.plan li svg { flex: 0 0 18px; margin-top: 2px; color: var(--accent); }
.plan .btn { width: 100%; justify-content: center; }
@media (max-width: 920px) { .pricing { grid-template-columns: 1fr; } .plan.featured { transform: none; } }

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s, background .3s;
}
.faq-item[open] .plus { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq-a { color: var(--text-muted); padding-top: 14px; max-width: 65ch; line-height: 1.6; }

/* ===== CTA + Footer ===== */
.cta-band {
  position: relative;
  padding: 80px 40px;
  margin: 60px 0 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1a0f4d 0%, #4a2fd9 50%, #6d4eff 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #2a1b6b 0%, #6d4eff 60%, #b89cff 100%); }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .65; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.85); margin: 18px auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); }

footer {
  margin-top: 140px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-family: var(--font-text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer-grid a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: 14px; color: var(--text-muted); }
.newsletter {
  display: flex; gap: 8px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
}
.newsletter input {
  flex: 1; border: 0; background: transparent; padding: 6px 10px; font: inherit; color: var(--text); outline: none;
}
.newsletter button {
  border: 0; background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 8px; font: 500 13px var(--font-text);
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom .powered { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity .2s; }
.foot-bottom .powered:hover { opacity: .85; }
.foot-bottom .powered img { height: 28px; width: auto; }
.foot-bottom .powered .aix-white { display: none; }
[data-theme="dark"] .foot-bottom .powered .aix-color { display: none; }
[data-theme="dark"] .foot-bottom .powered .aix-white { display: inline-block; }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Reveal anim ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Tweaks panel — expanded */
.tweaks-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  width: 340px; max-height: 80vh; display: none; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: flex; }
.tweaks-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:10px; border-bottom:1px solid var(--border); margin-bottom:8px; }
.tweaks-panel h5 { margin: 0; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); display:flex; align-items:center; gap:8px; }
.tweaks-count { font-family:var(--font-mono); font-size:10px; color:var(--text-dim); padding:2px 6px; border:1px solid var(--border); border-radius:4px; letter-spacing:.04em; text-transform:none; }
.tweaks-actions { display:flex; gap:4px; }
.tweaks-actions button { width:26px; height:26px; border-radius:6px; background:transparent; border:1px solid var(--border); color:var(--text-muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; }
.tweaks-actions button:hover { background:var(--surface-2); color:var(--text); }
.tweaks-tabs { display:flex; gap:2px; padding:2px; background:var(--surface-2); border-radius:8px; margin-bottom:10px; }
.tweaks-tabs button { flex:1; border:0; background:transparent; padding:6px 4px; font-size:11px; border-radius:6px; color:var(--text-muted); cursor:pointer; font-family:var(--font-text); font-weight:500; }
.tweaks-tabs button.on { background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }
.tweaks-body { flex:1; overflow-y:auto; padding-right:4px; }
.tweaks-body::-webkit-scrollbar { width:6px; }
.tweaks-body::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }
.tw-pane { display:none; }
.tw-pane.on { display:block; }
.tw-row { display:flex; align-items:center; justify-content:space-between; padding:9px 0; border-top:1px solid var(--border); gap:10px; }
.tw-row:first-child { border-top:0; }
.tw-row.col { flex-direction:column; align-items:stretch; gap:6px; }
.tw-row label { font-size:12px; color:var(--text-muted); flex-shrink:0; }
.tw-row input[type="range"] { flex:1; max-width:140px; accent-color:var(--accent); }
.tw-row input[type="text"], .tw-row textarea, .tw-row select { width:100%; padding:7px 9px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; color:var(--text); font-size:12px; font-family:var(--font-text); resize:vertical; }
.tw-row textarea { min-height:54px; line-height:1.4; }
.tw-row .seg { display:inline-flex; padding:2px; background:var(--surface-2); border-radius:7px; }
.tw-row .seg button { border:0; background:transparent; padding:5px 9px; border-radius:5px; font-size:11px; color:var(--text-muted); cursor:pointer; }
.tw-row .seg button.on { background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm); }
.color-pair { display:flex; gap:6px; }
.color-pair input[type="color"] { flex:1; height:32px; border:1px solid var(--border); border-radius:6px; background:transparent; cursor:pointer; padding:2px; }
.presets { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
.preset { display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 4px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; cursor:pointer; font-size:10.5px; color:var(--text-muted); font-family:var(--font-text); }
.preset.on { border-color:var(--accent); color:var(--text); }
.preset span { width:100%; height:18px; border-radius:4px; }

/* Print/scroll polishing */
::selection { background: var(--accent); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
