/* ============================================================
   TabHub Landing — design tokens
   Polished editorial layout. Light theme with dark toggle.
   ============================================================ */

:root[data-theme="light"] {
  --bg: oklch(0.985 0.005 85);
  --bg-warm: oklch(0.965 0.012 75);
  --surface: #ffffff;
  --surface-2: oklch(0.975 0.008 80);
  --border: oklch(0.90 0.008 80);
  --border-strong: oklch(0.82 0.010 80);
  --fg: oklch(0.16 0.012 260);
  --fg-2: oklch(0.32 0.010 260);
  --fg-3: oklch(0.48 0.008 260);

  --accent: oklch(0.58 0.18 268);
  --accent-hover: oklch(0.50 0.20 268);
  --accent-soft: oklch(0.58 0.18 268 / 0.10);
  --accent-fg: #ffffff;

  --cyan: oklch(0.72 0.13 210);
  --emerald: oklch(0.68 0.15 155);
  --amber: oklch(0.78 0.14 75);
  --rose: oklch(0.66 0.18 18);
  --peach: oklch(0.78 0.13 45);

  --shadow-xs: 0 1px 2px oklch(0.20 0.012 260 / 0.05);
  --shadow-sm: 0 2px 6px oklch(0.20 0.012 260 / 0.06), 0 1px 2px oklch(0.20 0.012 260 / 0.04);
  --shadow-md: 0 8px 28px oklch(0.20 0.012 260 / 0.10), 0 2px 6px oklch(0.20 0.012 260 / 0.06);
  --shadow-lg: 0 24px 60px oklch(0.20 0.012 260 / 0.16), 0 6px 18px oklch(0.20 0.012 260 / 0.08);

  --hero-grad-1: oklch(0.58 0.18 268 / 0.08);
  --hero-grad-2: oklch(0.72 0.13 210 / 0.06);
  --hero-grad-3: oklch(0.78 0.13 45 / 0.05);
}

:root[data-theme="dark"] {
  --bg: oklch(0.16 0.012 260);
  --bg-warm: oklch(0.20 0.014 260);
  --surface: oklch(0.22 0.014 260);
  --surface-2: oklch(0.26 0.014 260);
  --border: oklch(0.32 0.014 260);
  --border-strong: oklch(0.42 0.014 260);
  --fg: oklch(0.96 0.005 80);
  --fg-2: oklch(0.78 0.008 80);
  --fg-3: oklch(0.62 0.010 80);

  --accent: oklch(0.72 0.16 268);
  --accent-hover: oklch(0.78 0.18 268);
  --accent-soft: oklch(0.72 0.16 268 / 0.18);
  --accent-fg: oklch(0.16 0.012 260);

  --cyan: oklch(0.78 0.13 210);
  --emerald: oklch(0.74 0.15 155);
  --amber: oklch(0.82 0.14 75);
  --rose: oklch(0.74 0.18 18);
  --peach: oklch(0.82 0.13 45);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.35);

  --hero-grad-1: oklch(0.72 0.16 268 / 0.18);
  --hero-grad-2: oklch(0.78 0.13 210 / 0.12);
  --hero-grad-3: oklch(0.82 0.13 45 / 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}
body[data-font="inter"]    { font-family: 'Inter', system-ui, sans-serif; }
body[data-font="manrope"]  { font-family: 'Manrope', system-ui, sans-serif; }
body[data-font="dmsans"]   { font-family: 'DM Sans', system-ui, sans-serif; }
body[data-font="jakarta"]  { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
body[data-font="outfit"]   { font-family: 'Outfit', system-ui, sans-serif; }
body[data-font="grotesk"]  { font-family: 'Space Grotesk', system-ui, sans-serif; }
body[data-font="system"]   { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Font picker */
.font-picker {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
}
.fp-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 500; color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fp-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fp-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
}
.fp-title {
  padding: 8px 10px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.fp-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 9px 12px;
  background: transparent; border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.12s;
}
.fp-opt:hover { background: var(--surface-2); }
.fp-opt span { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.fp-opt em {
  font-family: 'Geist', system-ui, sans-serif !important;
  font-style: normal;
  font-size: 11px; font-weight: 400;
  color: var(--fg-3);
}
.fp-opt.active { background: var(--accent-soft); color: var(--accent); }
.fp-opt.active em { color: var(--accent); opacity: 0.7; }
/* Accent words in headings — no italic, use color highlight */
h1 em, h2 em, .final-cta h2 em {
  font-style: normal;
  font-family: inherit;
  font-weight: inherit;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-cta h2 em {
  background: none;
  -webkit-text-fill-color: initial;
  color: oklch(0.88 0.10 75);
}
em { font-style: normal; font-weight: 500; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--fg);
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 8px;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  padding: 8px 10px; font-size: 13.5px; font-weight: 500;
  color: var(--fg-2); border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--fg); background: var(--surface-2); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--fg-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 4px;
  transition: all 0.15s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--border-strong); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 9px;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -200px 0 0 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, var(--hero-grad-1), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, var(--hero-grad-2), transparent 70%),
    radial-gradient(70% 60% at 50% 90%, var(--hero-grad-3), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; margin-bottom: 28px;
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.pill {
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-size: 1em; line-height: inherit; }
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 620px; margin: 0 auto 36px;
  text-wrap: pretty;
}
.cta-row {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; font-size: 15px; font-weight: 600;
  background: var(--fg); color: var(--bg);
  border-radius: 11px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; font-size: 15px; font-weight: 500;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color 0.15s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cta-row { width: 100%; }
.hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: var(--fg-3);
  margin-bottom: 56px;
  width: 100%;
}
.stars { color: var(--amber); letter-spacing: 0.05em; }

/* ============ HERO PRODUCT PREVIEW ============ */
.hero-preview {
  margin-top: 24px;
  perspective: 2000px;
}
.hero-preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  transform: rotateX(2deg);
  transform-origin: center top;
}
.hp-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.hp-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
}
.hp-bar .dot.r { background: #ff5f57; }
.hp-bar .dot.y { background: #febc2e; }
.hp-bar .dot.g { background: #28c840; }
.hp-bar .url {
  margin-left: 16px; padding: 4px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--fg-3);
  flex: 1; max-width: 360px;
  text-align: center;
}
.hp-body {
  display: grid;
  grid-template-columns: 56px 200px 1fr 220px;
  height: 460px;
}
.hp-rail {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hp-rail .item {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--fg-2);
}
.hp-rail .item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--accent-soft);
}
.hp-side {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  background: var(--surface);
}
.hp-side h4 {
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  color: var(--fg-3); letter-spacing: 0.04em; text-transform: uppercase;
}
.hp-side .row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; margin-bottom: 2px;
  font-size: 13px; color: var(--fg-2);
  border-radius: 7px;
  cursor: pointer;
}
.hp-side .row.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.hp-side .row .ico {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent-soft);
}
.hp-side .row.active .ico { background: var(--accent); }
.hp-main {
  padding: 22px;
  background: var(--bg);
  overflow: hidden;
}
.hp-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.hp-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.badge {
  font-size: 11px; padding: 3px 8px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 500;
}
.hp-collection { margin-bottom: 18px; }
.hp-col-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  margin-bottom: 10px;
}
.hp-col-h .swatch {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
}
.hp-col-h .count {
  margin-left: auto; font-size: 12px; color: var(--fg-3); font-weight: 400;
}
.hp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hp-card {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--fg);
  overflow: hidden;
}
.hp-card .fav {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 10px; font-weight: 600;
}
.hp-card .t {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hp-tabs {
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  padding: 18px 14px;
  overflow: hidden;
}
.hp-tabs h4 {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 14px; font-size: 13px; font-weight: 600;
  color: var(--fg-3); letter-spacing: 0.04em; text-transform: uppercase;
}
.hp-tabs h4 span {
  background: var(--surface); color: var(--fg-2);
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--border);
}
.hp-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; margin-bottom: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  color: var(--fg-2);
}
.hp-tab .fav {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}
.hp-tab .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ PROOF ============ */
.proof {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}
.proof-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: center;
  gap: 36px; flex-wrap: wrap;
}
.proof-text { font-size: 14px; color: var(--fg-3); }
.proof-text strong { color: var(--fg); font-weight: 600; }
.proof-logos {
  display: flex; gap: 32px; flex-wrap: wrap; justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px; color: var(--fg-3);
  letter-spacing: -0.01em;
  opacity: 0.85;
}

/* ============ SECTION COMMON ============ */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-lead {
  font-size: 18px; line-height: 1.5; color: var(--fg-2);
  margin: 0; text-wrap: pretty;
}

/* ============ FEATURE GRID ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card.span-2 { grid-column: span 2; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  margin-bottom: 18px;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em;
}
.feature-card p {
  margin: 0 0 20px; font-size: 14px; line-height: 1.55;
  color: var(--fg-2); text-wrap: pretty;
}
.feature-visual {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.fv-cmd {
  width: 100%; max-width: 480px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
}
.fv-cmd .input {
  padding: 11px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 9px;
  display: flex; align-items: center; gap: 10px;
  color: var(--fg);
}
.fv-cmd .input span { color: var(--accent); font-weight: 700; }
.fv-cmd .res {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 4px;
  font-size: 12px; color: var(--fg-2);
  border-radius: 7px;
}
.fv-cmd .res .ico {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
  background: var(--accent);
}
.fv-cmd .res.sel { background: var(--accent-soft); color: var(--fg); }

.fv-stack {
  position: relative; width: 100%; height: 130px;
}
.fv-stack .card {
  position: absolute; width: 70%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.fv-stack .card .fav {
  width: 16px; height: 16px; border-radius: 4px;
}

.fv-cap {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 11px;
}
.fv-cap-icon {
  width: 36px; height: 36px;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fv-cap .text { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
.fv-cap .text strong { color: var(--fg); font-weight: 600; display: block; }

.fv-sync { display: flex; align-items: flex-end; gap: 14px; }
.fv-device {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.05em;
}
.fv-device .frame {
  width: 90px; height: 60px;
  background: var(--surface); border: 2px solid var(--fg-2);
  border-radius: 7px;
}
.fv-device.phone .frame {
  width: 36px; height: 60px; border-radius: 8px;
}
.fv-sync-line {
  flex: 1; height: 2px;
  background: linear-gradient(to right, var(--border), var(--accent), var(--border));
  margin-bottom: 14px; min-width: 28px;
  border-radius: 1px;
}

.fv-tags {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.fv-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; color: var(--fg-2);
}
.fv-tag .dot { width: 7px; height: 7px; border-radius: 50%; }

.fv-share { width: 100%; }
.fv-share .url-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  color: var(--fg-2);
}
.fv-share .url-row svg { color: var(--accent); }
.fv-share .avatars { display: flex; align-items: center; }
.fv-share .av {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 600;
  border: 2px solid var(--surface);
  margin-left: -6px;
}
.fv-share .av:first-child { margin-left: 0; }

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-family: inherit;
  font-size: 16px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
}
.step p {
  margin: 0; font-size: 14px; line-height: 1.5;
  color: var(--fg-2); text-wrap: pretty;
}

/* ============ PERSONAS ============ */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.persona {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.persona::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.persona[data-tone="violet"]::before { background: var(--accent); }
.persona[data-tone="cyan"]::before { background: var(--cyan); }
.persona[data-tone="amber"]::before { background: var(--amber); }
.persona-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.persona[data-tone="violet"] .persona-tag { color: var(--accent); }
.persona[data-tone="cyan"] .persona-tag { color: var(--cyan); }
.persona[data-tone="amber"] .persona-tag { color: var(--amber); }
.persona h3 {
  margin: 0 0 12px; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2;
  text-wrap: balance;
}
.persona p {
  margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--fg-2);
}
.persona ul {
  margin: 0; padding: 0; list-style: none;
}
.persona ul li {
  position: relative;
  padding-left: 22px; margin-bottom: 7px;
  font-size: 13.5px; color: var(--fg-2);
}
.persona ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* ============ TESTIMONIALS ============ */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tcard {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tcard p {
  margin: 0 0 20px; font-size: 16px; line-height: 1.55;
  color: var(--fg); font-weight: 400;
  text-wrap: pretty;
}
.tcard .author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.tcard .av {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 600;
}
.tcard .who {
  display: flex; flex-direction: column;
  font-size: 12.5px; color: var(--fg-3);
  line-height: 1.4;
}
.tcard .who strong { color: var(--fg); font-size: 14px; font-weight: 600; }

/* ============ PRICING ============ */
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex; flex-direction: column;
}
.price.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-fg);
  border-radius: 999px;
}
.price-name {
  font-size: 14px; font-weight: 600; color: var(--fg-2);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.price-price {
  font-size: 48px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-price .per {
  font-size: 15px; font-weight: 500; color: var(--fg-3);
  letter-spacing: 0;
}
.price-desc {
  font-size: 13.5px; color: var(--fg-2); line-height: 1.5;
  margin-bottom: 22px;
  min-height: 42px;
}
.price-cta {
  display: block; text-align: center;
  padding: 12px 18px; margin-bottom: 24px;
  font-size: 14px; font-weight: 600;
  background: var(--surface-2); color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s;
}
.price.featured .price-cta { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.price-cta:hover { background: var(--bg-warm); }
.price.featured .price-cta:hover { background: var(--accent-hover); }
.price-features {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.price-features li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 13.5px; color: var(--fg);
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: var(--accent); font-weight: 700;
}
.price-features li[data-no="true"] { color: var(--fg-3); }
.price-features li[data-no="true"]::before { content: '—'; color: var(--fg-3); font-weight: 400; }

/* ============ COMPARISON ============ */
.compare {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
}
.compare-head {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fg-3);
}
.compare-head > div { padding: 16px 20px; text-align: center; }
.compare-head > div:first-child { text-align: left; }
.compare-head .us { color: var(--accent); }
.compare-row { border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 16px 20px; text-align: center;
  font-size: 14px;
}
.compare-row > div:first-child {
  text-align: left;
  font-weight: 500; color: var(--fg);
}
.compare-row .check { color: var(--accent); font-size: 17px; font-weight: 700; }
.compare-row .cross { color: var(--fg-3); font-weight: 600; }
.compare-row .us { background: var(--accent-soft); font-weight: 600; }

/* ============ FAQ ============ */
.faq {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  padding: 18px 22px;
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 300; color: var(--fg-3);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .a {
  padding: 0 22px 20px;
  font-size: 14.5px; line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ============ FINAL CTA ============ */
.final-cta {
  padding: 80px 32px;
  margin: 80px 32px;
  background: linear-gradient(135deg, var(--fg) 0%, oklch(0.30 0.02 268) 100%);
  border-radius: 28px;
  text-align: center;
}
:root[data-theme="dark"] .final-cta {
  background: linear-gradient(135deg, var(--accent) 0%, oklch(0.45 0.20 280) 100%);
}
.final-cta-inner { max-width: 720px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 700;
  color: white;
  margin: 0 0 16px;
  text-wrap: balance;
}
.final-cta h2 em { color: oklch(0.85 0.10 75); }
.final-cta p {
  font-size: 17px; color: rgba(255,255,255,0.75);
  margin: 0 0 32px;
}
.final-cta .btn-primary {
  background: white; color: var(--fg);
}
.final-cta .btn-primary:hover { background: oklch(0.95 0.005 80); }

/* ============ FOOTER ============ */
.footer {
  padding: 56px 0 32px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand p {
  margin: 14px 0 0; font-size: 13.5px; line-height: 1.55;
  color: var(--fg-3); max-width: 280px;
}
.footer-col h4 {
  margin: 0 0 14px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.footer-col a {
  display: block; padding: 5px 0;
  font-size: 13.5px; color: var(--fg-2);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--fg-3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.span-2 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(5) { display: none; }
  .hp-body { grid-template-columns: 56px 180px 1fr; }
  .hp-tabs { display: none; }
}
@media (max-width: 1000px) {
  .nav-links .nav-link:nth-child(2),
  .nav-links .nav-link:nth-child(3),
  .nav-links .nav-link:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .nav-links .nav-link, .theme-toggle { display: none; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 64px 0; }
  .feature-grid, .personas, .tcards, .prices, .steps { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }
  .compare-head, .compare-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 12px; }
  .compare-head > div, .compare-row > div { padding: 12px 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hp-body { grid-template-columns: 56px 1fr; height: 380px; }
  .hp-side, .hp-tabs { display: none; }
  .hp-body { grid-template-columns: 1fr; }
  .hp-rail { display: none; }
  .final-cta { margin: 56px 16px; padding: 56px 24px; }
  .proof-logos { gap: 20px; font-size: 17px; }
}
