/* Component-specific styles */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 48px 0 120px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 40px;
}
.hero-h1 {
  font-size: clamp(44px, 6vw, 82px);
  margin: 16px 0 22px;
  letter-spacing: -0.035em;
  font-weight: 600;
}
/* Toned down — was a full purple→gold gradient that overwhelmed
   the H1. Now just a flat soft-purple, less shouty. */
.h1-accent {
  color: var(--purple-2);
}
.hero-sub {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--purple-soft), rgba(253,186,115,0.08));
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  max-width: 560px;
  transition: transform .15s ease, border-color .2s ease;
}
.hero-callout:hover {
  border-color: rgba(99,102,241,0.6);
  transform: translateY(-1px);
}
.hero-callout strong { color: var(--purple-2); font-weight: 600; }
.hero-callout svg { color: var(--gold); flex-shrink: 0; }
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  align-items: center;
}
.hero-trust .tdot { color: var(--text-3); opacity: 0.5; }
.hero-trust .dot { display: inline-block; margin-right: 6px; vertical-align: middle; }

/* "What we use" affiliate strip under the hero — Surfshark + Hostinger.
   Subtle but present. The whole business model rides on these clicks. */
.hero-recs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
  align-items: center;
}
.hero-recs-label { color: var(--text-2); }
.hero-recs a {
  color: var(--cyan, #5eead4);
  text-decoration: none;
  font-weight: 600;
}
.hero-recs a:hover { text-decoration: underline; }
.hero-recs .tdot { color: var(--text-3); opacity: 0.5; }
.hero-recs-disc {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ---- Terminal ---- */
.terminal {
  margin-top: 8px;
  background: #05060a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8),
              0 0 0 1px rgba(99,102,241,0.08);
  max-width: 640px;
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0b0b11;
  border-bottom: 1px solid var(--line);
}
.tc-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: none; animation: none; }
.tc-red { background: #ff5f57; }
.tc-amber { background: #febc2e; }
.tc-green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 14px 16px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #d6d6dc;
  min-height: 280px;
  max-height: 280px;
  overflow: hidden;
  position: relative;
}
.terminal-line { white-space: pre-wrap; word-break: break-all; }
.t-cyan { color: var(--cyan); }
/* Terminal "[✓]" markers — gold to match the brand spark, was generic green. */
.t-green { color: var(--gold); }
.t-purple { color: var(--purple-2); }
.t-dim { color: var(--text-3); }
.t-app { color: #e8e8ef; }
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--cyan);
  vertical-align: middle;
  margin-left: 2px;
  transform: translateY(-1px);
}
.terminal-cursor.off { opacity: 0; }

/* ---- Dashboard mock (macOS window) ---- */
.macwin {
  background: #0e0e16;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.9),
              0 0 0 1px rgba(99,102,241,0.12),
              0 0 80px -20px var(--purple-glow);
  position: sticky;
  top: 84px;
}
.macwin-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #13131c;
  border-bottom: 1px solid var(--line);
}
.macwin-url {
  margin: 0 auto;
  color: var(--text-3);
  font-size: 11px;
  background: #0a0a10;
  padding: 3px 14px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.macwin-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 420px;
}
.dash-sidebar {
  background: #0b0b13;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.dash-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text-2);
}
.dash-side-item.active {
  background: var(--purple-soft);
  color: var(--purple-2);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.25);
}
.dash-side-sep { height: 1px; background: var(--line); margin: 12px 4px; }
.dash-side-foot { color: var(--text-3); font-size: 11px; padding: 4px 10px; }
.dash-main { padding: 20px 22px 22px; }
.dash-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-sub { color: var(--text-3); font-size: 11px; margin-top: 2px; }
.dash-cta {
  font-size: 11px;
  color: var(--purple-2);
  border: 1px solid rgba(99,102,241,0.3);
  background: var(--purple-soft);
  padding: 5px 10px;
  border-radius: 6px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dash-tile {
  background: #13131c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  animation: tilein 0.6s forwards ease;
}
@keyframes tilein { to { opacity: 1; transform: translateY(0); } }
.dash-tile-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--purple-soft);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.dash-tile-name { font-size: 13px; font-weight: 600; }
.dash-tile-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--green);
}
.dash-tile-status.updating { color: var(--amber); }
.dash-footline {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #0b0b13;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}

/* ---- Cost calculator ---- */
.cc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
}
.cc-toggles { display: flex; flex-direction: column; gap: 10px; }
.cc-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: all .18s ease;
}
.cc-toggle:hover { border-color: var(--line-2); }
.cc-toggle.on {
  border-color: rgba(99,102,241,0.5);
  background: linear-gradient(180deg, rgba(99,102,241,0.06), transparent);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.15), 0 12px 30px -18px var(--purple-glow);
}
.cc-t-icon {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-2);
}
.cc-toggle.on .cc-t-icon { color: var(--purple-2); border-color: rgba(99,102,241,0.3); background: var(--purple-soft); }
.cc-t-label { font-weight: 600; font-size: 15px; }
.cc-t-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.cc-t-price {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
}
.cc-t-price span { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 2px; }
.cc-t-switch {
  width: 38px; height: 22px;
  border-radius: 999px;
  background: #2a2a36;
  padding: 3px;
  transition: background .18s ease;
}
.cc-t-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #7a7a8a;
  transition: all .18s ease;
}
.cc-toggle.on .cc-t-switch { background: var(--purple); }
.cc-toggle.on .cc-t-thumb { transform: translateX(16px); background: white; }

.cc-result {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.cc-result::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cc-row { position: relative; }
.cc-row-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 8px; }
.cc-row-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-big { font-size: clamp(48px, 6vw, 72px); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.cc-unit { color: var(--text-3); font-size: 0.35em; font-family: var(--font-mono); margin-left: 4px; font-weight: 400; }

.cc-bar { margin: 24px 0 20px; }
.cc-bar-track {
  display: flex;
  gap: 4px;
  height: 48px;
  position: relative;
}
.cc-bar-saas, .cc-bar-sb {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  transition: width .4s cubic-bezier(.2,.9,.3,1);
  white-space: nowrap;
  overflow: hidden;
}
.cc-bar-saas {
  background: linear-gradient(90deg, #3a2222, #5a2a2a);
  color: #fca5a5;
  border: 1px solid rgba(248,113,113,0.3);
}
.cc-bar-sb {
  background: linear-gradient(90deg, var(--purple) 0%, #8b8dfb 100%);
  color: white;
  font-weight: 600;
}
.cc-verdict-top { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; letter-spacing: -0.02em; }
.cc-verdict-sub { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.cc-cta { margin-top: 20px; }

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

/* ---- Live stack builder ---- */
.lsb-tally {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 28px;
  margin-bottom: 36px;
  position: sticky;
  top: 72px;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(26,26,36,0.9);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
}
.lsb-tally-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.lsb-tally-lbl { font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; margin-bottom: 4px; }
.lsb-tally-big { font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lsb-tally-of { font-size: 0.6em; }
.lsb-tally-unit { font-family: var(--font-mono); color: var(--text-3); font-size: 0.42em; margin-left: 6px; font-weight: 400; }
.lsb-tally-sep {
  width: 1px; height: 36px; background: var(--line);
  flex-shrink: 0;
}

.lsb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.lsb-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  transition: all .2s ease;
  overflow: hidden;
}
.lsb-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
}
.lsb-tile.on {
  border-color: rgba(99,102,241,0.55);
  background: linear-gradient(180deg, rgba(99,102,241,0.08), var(--surface) 60%);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), 0 20px 40px -18px var(--purple-glow);
}
.lsb-tile-inner > * + * { margin-top: 6px; }
.appglyph {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.lsb-tile-name { font-weight: 600; font-size: 15px; }
.lsb-tile-role { font-size: 11px; color: var(--text-3); line-height: 1.4; min-height: 30px; }
.lsb-tile-replaces { font-size: 11.5px; color: var(--text-2); padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 10px; }
.lsb-tile-replaces .mono { color: var(--text-3); }
.lsb-tile-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  transition: all .2s ease;
}
.lsb-tile.on .lsb-tile-check {
  background: var(--purple);
  border-color: var(--purple);
}

/* ---- Changelog ---- */
.cl-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.cl-track::-webkit-scrollbar { height: 8px; }
.cl-track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.cl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: all .25s ease;
}
.cl-card:hover, .cl-card.on {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(180deg, rgba(99,102,241,0.06), var(--surface));
  transform: translateY(-2px);
}
.cl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cl-v { font-size: 16px; font-weight: 600; color: var(--text); }
.cl-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.cl-tag-patch { background: rgba(148,163,184,0.15); color: #cbd5e1; }
.cl-tag-minor { background: rgba(34,211,238,0.15); color: var(--cyan); }
.cl-tag-major { background: var(--purple-soft); color: var(--purple-2); }
.cl-when { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.cl-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-items li { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* ---- Proof cards ---- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.proof-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
}
.proof-num {
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--purple-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-unit { color: var(--text-3); font-size: 11px; letter-spacing: 0.1em; margin-top: 4px; text-transform: uppercase; }
.proof-body { color: var(--text-2); margin-top: 20px; font-size: 14.5px; line-height: 1.6; }
.proof-footer { color: var(--purple-2); font-size: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---- Comparison ---- */
.cmp-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.cmp {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
  min-width: 720px;
}
.cmp th, .cmp td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cmp thead th { font-weight: 600; font-size: 13px; background: var(--bg-3); color: var(--text-2); }
.cmp .cmp-accent { color: var(--purple-2); background: rgba(99,102,241,0.06); border-bottom-color: rgba(99,102,241,0.2); }
.cmp .cmp-row-label { font-weight: 600; color: var(--text); }
.cmp .cmp-accent-cell { background: rgba(99,102,241,0.04); color: var(--text); font-weight: 500; }
.cmp tbody tr:last-child td { border-bottom: 0; }

/* ---- Bundles ---- */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.bundle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.bundle-card.rec {
  background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, var(--surface) 40%);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 40px 80px -30px var(--purple-glow);
  transform: scale(1.03);
  z-index: 2;
}
.bundle-badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid rgba(34,211,238,0.4);
  color: var(--cyan);
  border-radius: 999px;
  font-size: 11px;
  display: flex; align-items: center; gap: 6px;
}
.bundle-tier { font-size: 11px; letter-spacing: 0.12em; color: var(--text-3); }
.bundle-box { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.bundle-hw { font-size: 12px; color: var(--text-2); }
.bundle-visual {
  background: #0a0a10;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}
.bundle-hw-shape {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 56px;
  padding: 6px;
  background: linear-gradient(180deg, #1a1a22, #0d0d14);
  border-radius: 6px;
  border: 1px solid var(--line);
  position: relative;
}
.bundle-hw-drive {
  flex: 1;
  background: linear-gradient(180deg, #2a2a36 0%, #16161f 100%);
  border-radius: 2px;
  position: relative;
}
.bundle-hw-drive::after {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.bundle-hw-led {
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.bundle-hw-label { font-size: 10px; color: var(--text-3); }
.bundle-apps { font-size: 12.5px; color: var(--text-2); }
.bundle-price { font-size: 28px; letter-spacing: -0.02em; }
.bundle-price .mono { font-size: 11px; }
.bundle-saves { align-self: flex-start; font-size: 11px; }
.bundle-cta { margin-top: auto; width: 100%; }
@media (max-width: 900px) {
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-card.rec { transform: none; }
}

/* ---- Why self-host ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: border-color .2s ease;
}
.why-card:hover { border-color: var(--line-2); }
.why-num { font-size: 12px; color: var(--purple-2); letter-spacing: 0.1em; margin-bottom: 14px; }
.why-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.why-body { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* ---- Little things ---- */
.little-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.little-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
}
.little-idx { color: var(--cyan); font-size: 12px; margin-bottom: 10px; }
.little-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px; }
.little-body { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ---- Anti-roadmap ---- */
.anti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}
.anti-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
}
.anti-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-soft);
  border: 1px solid rgba(248,113,113,0.3);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ---- Demo ---- */
.demo-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.demo-frame {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0e0e1a, #1a1a2e);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 40px 80px -40px var(--purple-glow);
}
.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.015) 20px 21px);
}
.demo-stripe {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(99,102,241,0.2), transparent 50%);
}
.demo-play { position: relative; z-index: 2; text-align: center; }
.demo-play-btn {
  width: 72px; height: 72px;
  border-radius: 999px;
  background: var(--purple);
  display: grid; place-items: center;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 20px 40px -10px var(--purple-glow), 0 0 80px -10px var(--purple-glow);
}
.demo-play-lbl { color: white; font-size: 12px; letter-spacing: 0.08em; }
.demo-thumb-text {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  z-index: 2;
}
.demo-thumb-title { font-size: 18px; letter-spacing: -0.02em; max-width: 360px; }
.demo-side { display: flex; flex-direction: column; gap: 10px; }
.demo-side-card {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-2);
}
.demo-side-cta { margin-top: auto; }
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } }

/* ---- Migration ---- */
.mig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.mig-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s ease, transform .18s ease;
}
.mig-card:hover { border-color: rgba(99,102,241,0.4); transform: translateX(3px); }
.mig-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--purple-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mig-from { font-size: 14px; }
.mig-from strong { font-weight: 600; }
.mig-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mig-arrow { margin-left: auto; }

/* ---- Pricing ---- */
.price-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.price-left {
  background: linear-gradient(180deg, rgba(99,102,241,0.1) 0%, var(--surface) 60%);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 22px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.price-left::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 60%);
  pointer-events: none;
}
.price-label { font-size: 11px; color: var(--cyan); letter-spacing: 0.14em; }
.price-beta-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.18), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #f0abfc;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.price-beta-badge:hover {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(99, 102, 241, 0.28));
  border-color: rgba(244, 114, 182, 0.65);
  transform: translateY(-1px);
}
.price-big {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.price-strike {
  font-size: 28px;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(244, 114, 182, 0.6);
  opacity: 0.75;
  align-self: flex-end;
  margin-bottom: 20px;
}
/* Small strike (used inside the mobile buy bar) */
.mobile-buy-price .price-strike {
  font-size: 16px;
  margin-bottom: 0;
  margin-right: 4px;
}
.price-main {
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 180px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(180deg, white 0%, var(--purple-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 4px;
}
.price-unit { font-size: 20px; color: var(--text-3); align-self: flex-end; margin-bottom: 16px; }
.price-anchor { color: var(--text-2); margin-top: 4px; font-size: 13px; }
.price-platforms {
  margin-top: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--purple-soft), rgba(253,186,115,0.06));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.price-platforms-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--purple-2);
  flex-shrink: 0;
}
.price-platforms-list {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.price-incl { margin: 28px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.price-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.price-cta { padding: 18px 28px; font-size: 17px; }
.price-fine { font-size: 11px; color: var(--text-3); margin-top: 12px; }

/* "What we use to run it" — affiliate rows below the download CTA.
   Compact one-line treatment that doesn't compete with the main CTA
   for visual weight. Hover state nudges the row right slightly. */
.affiliate-callouts {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.affiliate-callouts-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.affiliate-callouts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.affiliate-row {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 10px 16px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  background: var(--surface);
  transition: transform 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.affiliate-row:hover {
  transform: translateX(2px);
  border-color: var(--cyan, #5eead4);
  color: var(--text);
}
.affiliate-row-name {
  font-weight: 600;
  color: var(--text);
}
.affiliate-row-price {
  color: var(--cyan, #5eead4);
  font-size: 13px;
}
.affiliate-row-note {
  font-size: 12px;
  color: var(--text-3);
}
.affiliate-callouts-disc {
  margin-top: 12px;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-align: center;
}
@media (max-width: 600px) {
  .affiliate-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.price-right {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.price-lbl { font-size: 11px; color: var(--text-3); letter-spacing: 0.14em; margin-bottom: 14px; }
.free-pro { width: 100%; border-collapse: collapse; font-size: 14px; }
.free-pro th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--text-2); font-size: 13px; }
.free-pro td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.free-pro .fp-accent { color: var(--purple-2); }
.free-pro .fp-accent-cell { background: rgba(99,102,241,0.04); }
.fp-note { font-size: 11px; color: var(--text-3); margin-top: 14px; line-height: 1.5; }
@media (max-width: 900px) { .price-hero { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-list { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.faq-chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .2s ease;
  color: var(--text-2);
}
.faq-item.open .faq-chev { background: var(--purple-soft); color: var(--purple-2); border-color: rgba(99,102,241,0.3); }
.faq-a { color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 680px; padding: 0 0 22px; }

/* ---- Footer ---- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.foot-status { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.foot-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-status-link { color: var(--purple-2); margin-left: auto; cursor: pointer; }
.foot-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col > a { color: var(--text-2); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.foot-col > a:hover { color: var(--text); }
.foot-h { font-size: 11px; color: var(--text-3); letter-spacing: 0.14em; margin-bottom: 6px; }
.foot-blurb { color: var(--text-3); font-size: 13px; line-height: 1.6; max-width: 320px; }
.foot-disclaimer {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.65;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  max-width: 920px;
}
.foot-disclaimer a { color: var(--text-2); text-decoration: underline; }
.foot-disclaimer a:hover { color: var(--text); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px;
  color: var(--text-3);
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---- Nav ---- */
.nav-release { font-size: 11px; }
.nav-buy { padding: 9px 16px; font-size: 13px; }
/* "← Home" link on the features page nav. Replaces the old big
   Download button — features page is informational, not conversion-
   funnel. Quiet text-only treatment, doesn't compete with content. */
.nav-back-home {
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.1s ease, color 0.1s ease;
}
.nav-back-home:hover { color: var(--text); background: var(--surface); }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span { display: block; width: 20px; height: 1.5px; background: var(--text); }
.nav-mobile { display: flex; flex-direction: column; padding: 16px 24px 24px; gap: 14px; border-top: 1px solid var(--line); background: var(--bg); }
.nav-mobile a { color: var(--text-2); font-size: 16px; }
.nav-mobile-cta { margin-top: 8px; }
@media (max-width: 900px) {
  .nav-release { display: none; }
  .nav-burger { display: flex; }
  .nav-buy { display: none; }
}

/* ---- Status pill ---- */
.status-pill { position: fixed; bottom: 20px; right: 20px; z-index: 40; }
.status-pill-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(26,26,36,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,0.5);
  transition: transform .15s ease;
}
.status-pill-btn:hover { transform: translateY(-2px); }
.status-pill-pop {
  position: absolute;
  bottom: 48px; right: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
}
.status-pill-pop > .mono { font-size: 10px; letter-spacing: 0.12em; margin-bottom: 4px; }
.status-pill-item { display: flex; justify-content: space-between; font-size: 12px; }

/* ---- Mobile buy bar ---- */
.mobile-buy {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 39;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.mobile-buy.on { transform: translateY(0); }
.mobile-buy-price { font-size: 22px; }
.mobile-buy-sub { font-size: 11px; color: var(--text-3); }
@media (max-width: 900px) {
  .mobile-buy { display: flex; }
  .status-pill { bottom: 80px; }
}

/* ---- Tweaks panel ---- */
.tweaks {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 60;
  width: 280px;
  background: rgba(16,16,22,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  overflow: hidden;
}
.tweaks-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.tweaks-x { padding: 4px; border-radius: 4px; color: var(--text-3); }
.tweaks-x:hover { background: var(--surface); }
.tweaks-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.tweak-group { display: flex; flex-direction: column; gap: 8px; }
.tweak-label { font-size: 10px; color: var(--text-3); letter-spacing: 0.1em; }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 32px; height: 32px; border-radius: 8px;
  border: 2px solid transparent;
  transition: all .15s ease;
}
.tweak-swatch.on { border-color: white; box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px white; }
.tweak-opt {
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.tweak-opt.on { background: var(--purple-soft); border-color: rgba(99,102,241,0.4); color: var(--purple-2); }
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
}
.tweak-chip.on { background: var(--purple); border-color: var(--purple); color: white; }

/* density */
html[data-density="compact"] .section { padding: 80px 0; }
html[data-density="airy"] .section { padding: 160px 0; }

/* aurora off */
html[data-aurora="off"] .aurora { display: none; }

/* ---- Mobile tweaks ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .macwin { position: relative; top: 0; margin-top: 16px; }
  .proof-grid { grid-template-columns: 1fr; }
  .lsb-tally-row { gap: 20px; }
  .lsb-tally-sep { display: none; }
  .lsb-tally { position: static; }
  .tweaks { top: auto; bottom: 92px; right: 12px; width: calc(100% - 24px); max-width: 300px; }
  .section-head h2 { font-size: clamp(30px, 6vw, 44px); }
}

/* ---- Phone tweaks (≤640px) ----
   Aimed at a 360-390px viewport. Targets: shrink the H1 so it doesn't
   force a wide line, hard-wrap long URLs in the install terminal,
   collapse the dashboard mock sidebar so its 168px column doesn't
   crush the app tile grid, and stop the hero callout from running
   wider than the column. */
@media (max-width: 640px) {
  .hero { padding: 32px 0 56px; }
  .hero-h1 {
    font-size: clamp(34px, 9vw, 52px);
    margin: 12px 0 16px;
    letter-spacing: -0.025em;
  }
  .hero-sub {
    font-size: 16px;
    margin: 0 0 20px;
  }
  .hero-callout {
    display: flex;
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    gap: 8px;
  }
  .hero-ctas { gap: 10px; margin-top: 18px; }
  .hero-ctas .btn { width: 100%; padding: 13px 18px; font-size: 14px; }
  .hero-trust { font-size: 11px; gap: 6px; margin-top: 18px; }

  /* Dashboard mock — collapse the sidebar so the 9 app tiles can
     actually fit. Sidebar becomes a horizontal strip on top. */
  .macwin-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dash-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    gap: 6px;
  }
  .dash-sidebar .dash-side-item { flex-shrink: 0; padding: 6px 10px; font-size: 12px; }
  .dash-side-sep, .dash-side-foot { display: none; }
  .dash-main { padding: 14px 14px 16px; }
  .dash-main-head { margin-bottom: 12px; }
  .dash-title { font-size: 18px; }
  .dash-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dash-tile { padding: 10px 8px; }
  .dash-tile-icon { width: 26px; height: 26px; margin-bottom: 6px; }
  .dash-tile-name { font-size: 11px; }
  .dash-tile-status { font-size: 9px; gap: 4px; }
  .dash-footline { padding: 8px 10px; font-size: 10px; flex-wrap: wrap; gap: 4px; }
}

/* Long-URL safety for the install-strip terminal — without this the
   curl|bash line and systemd-unit path overflow horizontally on phones
   even though the body has overflow-x: hidden (causes layout to be too
   wide visually before the clip kicks in). */
.iterm-line, .terminal-line {
  word-break: break-word;
  overflow-wrap: anywhere;
}
