/* PropSync — dark premium landing */

:root {
  --bg: #0B0D12;
  --bg-bottom: #10131A;
  --bg-elev: #12151C;
  --bg-elev-2: #161923;
  --border: #1F2430;
  --border-strong: #2A3040;
  --text: #E8E8EA;
  --text-dim: #B4B4B8;
  --text-muted: #7A7D86;
  --accent: #F59E0B;
  --accent-dim: #B45309;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --green: #10B981;
  --red: #EF4444;
  --blue: #60A5FA;
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100%;
  min-height: -webkit-fill-available;
}

body {
  overflow-x: hidden;
  background: var(--bg);
}

.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-feature-settings: 'zero', 'ss01';
  letter-spacing: 0;
}

.tabular { font-variant-numeric: tabular-nums; }

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

/* ——— Layout ——— */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.logo-mark {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  position: relative;
}
.logo-mark svg { display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-login {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--text); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 140ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #17120A;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.5), 0 10px 30px -8px rgba(245, 158, 11, 0.4);
}
.btn-primary:hover {
  background: #FBBF24;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.6), 0 16px 36px -8px rgba(245, 158, 11, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: #3A3A42;
  background: var(--bg-elev);
}
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ——— Typography ——— */
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.3; }
p { color: var(--text-dim); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--border-strong);
}
.accent { color: var(--accent); }

/* ——— Hero ——— */
.hero {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 560px;
  background: radial-gradient(ellipse at center,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(245, 158, 11, 0.06) 35%,
    transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-behind {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.4), transparent 70%);
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.hero-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* ——— NT8 mirror demo ——— */
.demo {
  margin-top: 72px;
  position: relative;
}
/* ——— PropSync V1 control window (replicates NT8 add-on dialog) ——— */
.demo-frame {
  background: #2A2E33;
  border: 1px solid #1A1D21;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 20px 40px -20px rgba(245, 158, 11, 0.08);
  color: #DCDCDC;
  font-family: 'Segoe UI', 'Geist', -apple-system, sans-serif;
  font-size: 12px;
}
.ps-titlebar {
  display: flex;
  align-items: stretch;
  background: #1F2125;
  border-bottom: 1px solid #111315;
  height: 28px;
}
.ps-tab {
  background: #C0392B;
  color: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ps-spacer { flex: 1; }
.ps-winbtns { display: flex; }
.ps-winbtn {
  width: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #B8B8B8;
  font-size: 11px;
  cursor: default;
  font-family: 'Segoe UI', sans-serif;
}
.ps-winbtn:hover { background: rgba(255,255,255,0.06); }
.ps-winbtn.close:hover { background: #C0392B; color: #fff; }

.ps-body {
  background: #2A2E33;
  padding: 14px 18px 12px;
}

.ps-h1 {
  font-size: 15px;
  font-weight: 600;
  color: #F0F0F0;
  margin-bottom: 10px;
}

.ps-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #232528;
  border: 1px solid #141618;
  border-radius: 2px;
  font-size: 11.5px;
  color: #B8B8B8;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ps-statusbar b { color: #F0F0F0; font-weight: 600; }
.ps-status-sep { width: 1px; height: 12px; background: #3A3D42; }
.ps-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ps-dot-green { background: #3ECC5F; box-shadow: 0 0 5px rgba(62,204,95,0.5); }
.ps-dot-amber { background: #E8A33D; }
.ps-dot-red   { background: #E05146; }
.ps-dot-grey  { background: #6A6E73; }

.ps-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #D0D0D0;
  margin-bottom: 6px;
  padding-left: 2px;
}
.ps-sl-hint {
  color: #6A6E73;
  font-weight: 400;
  font-size: 11px;
  margin-left: 4px;
}

.ps-pos-cell { display: flex; align-items: center; gap: 6px; }
.ps-pos-cell .ps-pos-dim { color: #6A6E73; font-family: 'Geist Mono', monospace; }
.ps-pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(62, 204, 95, 0.1);
  color: #3ECC5F;
  border: 1px solid rgba(62, 204, 95, 0.25);
}
.ps-pos-pill.short {
  background: rgba(224, 81, 70, 0.1);
  color: #E05146;
  border-color: rgba(224, 81, 70, 0.25);
}
.ps-pos-pill .ps-pos-side { letter-spacing: 0.05em; }
.ps-pos-pill .ps-pos-qty { color: inherit; opacity: 0.8; }
.ps-pos-cell .ps-pos-closing {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #E05146;
}
.ps-pos-cell .ps-pos-flat {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #888;
}
.ps-pos-cell .ps-pos-ready {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #3ECC5F;
  opacity: 0.7;
}

.ps-acct-cell {
  font-size: 11px;
  color: #C8C8C8;
}

/* Latency badge */
.ps-lat {
  font-size: 11px;
  color: #6A6E73;
  transition: color 220ms ease;
}
.ps-lat.active {
  color: #3ECC5F;
  animation: psLatFlash 600ms ease-out;
}
@keyframes psLatFlash {
  0%   { color: #E8A33D; }
  100% { color: #3ECC5F; }
}

.ps-total-pnl {
  color: #F0F0F0;
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  transition: color 180ms ease;
}
.ps-total-pnl.up { color: #3ECC5F; }
.ps-total-pnl.down { color: #E05146; }

.ps-table {
  background: #232528;
  border: 1px solid #141618;
  border-radius: 2px;
  overflow-x: auto;
}
.ps-thead, .ps-row {
  display: grid;
  grid-template-columns: 120px minmax(150px, 1.2fr) 90px minmax(110px, 1fr) 90px 60px 70px;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  font-size: 11.5px;
  min-width: 700px;
}
.ps-thead {
  color: #B0B4B8;
  font-weight: 600;
  background: #1E2124;
  border-bottom: 1px solid #141618;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  padding: 8px 14px;
}
.ps-row {
  border-bottom: 1px solid #1A1D21;
  min-height: 38px;
  transition: background 180ms ease, box-shadow 180ms ease;
  position: relative;
}
.ps-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 180ms ease;
}
.ps-row.filled::before { background: #3ECC5F; }
.ps-row.firing::before { background: #E8A33D; }
.ps-row.flatting::before { background: #E05146; }
.ps-row-master::before { background: #3ECC5F; opacity: 0.5; }
.ps-row:last-child { border-bottom: none; }
.ps-row-master {
  background: rgba(62, 204, 95, 0.04);
}
.ps-row.firing {
  background: rgba(232, 163, 61, 0.08);
  animation: psRowFlash 500ms ease;
}
.ps-row.filled {
  background: rgba(62, 204, 95, 0.06);
}
@keyframes psRowFlash {
  0%   { background: rgba(232, 163, 61, 0.25); }
  100% { background: rgba(232, 163, 61, 0.08); }
}
.ps-role { display: flex; align-items: center; gap: 8px; }
.ps-role-tag {
  color: #3ECC5F;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ps-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #D0D0D0;
  font-size: 11.5px;
  cursor: default;
}
.ps-check input { display: none; }
.ps-check span {
  width: 13px; height: 13px;
  background: #1A1D21;
  border: 1px solid #3A3D42;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ps-check input:checked + span::after {
  content: '';
  width: 7px; height: 7px;
  background: #3ECC5F;
  border-radius: 1px;
}

.ps-row.firing .ps-dot-amber { background: #E8A33D; box-shadow: 0 0 8px rgba(232,163,61,0.7); animation: psBlink 500ms ease-in-out 2; }
.ps-row.filled .ps-dot-amber { background: #3ECC5F; box-shadow: 0 0 5px rgba(62,204,95,0.6); }
.ps-row.flatting .ps-dot-amber { background: #E05146; box-shadow: 0 0 5px rgba(224,81,70,0.5); }
@keyframes psBlink {
  50% { opacity: 0.3; }
}

.ps-dim { color: #6A6E73; }
.ps-row .ps-pos, .ps-row .ps-pnl { color: #888; }
.ps-row.filled .ps-pos { color: #F0F0F0; }
.ps-row.filled .ps-pnl { color: #3ECC5F; }
.ps-row.filled .ps-pnl.red { color: #E05146; }

.ps-mult-input {
  width: 44px;
  background: #1A1D21;
  border: 1px solid #141618;
  border-radius: 2px;
  color: #E0E0E0;
  padding: 4px 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-align: center;
}

.ps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 2px 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.ps-add-btn {
  background: transparent;
  border: 1px solid #3A3D42;
  color: #9FC4E8;
  padding: 5px 12px;
  border-radius: 2px;
  font-size: 11.5px;
}
.ps-add-btn:hover { background: rgba(159,196,232,0.08); border-color: #5A6068; }
.ps-toolbar-meta { color: #9AA0A6; font-size: 11.5px; }
.ps-toolbar-meta b { color: #F0F0F0; font-weight: 600; }

.ps-log {
  background: #1A1D21;
  border: 1px solid #141618;
  border-radius: 2px;
  padding: 10px 12px;
  height: 96px;
  overflow: hidden;
  font-family: 'Geist Mono', 'Consolas', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #9AA0A6;
}
#psLogLines > div {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}
#psLogLines > div.in {
  opacity: 1;
  transform: translateY(0);
}
.ps-log .ps-log-time { color: #6A6E73; }
.ps-log .ps-log-master { color: #E8A33D; }
.ps-log .ps-log-ok { color: #3ECC5F; }
.ps-log .ps-log-err { color: #E05146; }

.ps-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.ps-footer-state {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: #9AA0A6;
  letter-spacing: 0.02em;
}
.ps-footer-state.live { color: #3ECC5F; }
.ps-footer-state.closing { color: #E05146; }
.ps-footer-btns { display: flex; gap: 8px; }
.ps-btn {
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  transition: filter 120ms ease, transform 80ms ease;
}
.ps-btn:active { transform: translateY(1px); }
.ps-btn-danger {
  background: #C0392B;
  color: #fff;
}
.ps-btn-danger:hover { filter: brightness(1.1); }
.ps-btn-success {
  background: #27AE60;
  color: #fff;
}
.ps-btn-success:hover { filter: brightness(1.1); }
.ps-btn.pressed {
  filter: brightness(0.85);
  transform: translateY(1px);
}

/* ——— Section headings ——— */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 18px; line-height: 1.55; }

/* ——— Problem cards ——— */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}
.problem-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}
.problem-card p { font-size: 14px; }
.problem-visual {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 36px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background 160ms ease;
}
.feature:hover { background: var(--bg-elev); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* ——— How it works ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  position: relative;
}
.step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15px; }
.step-code {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}
.step-code .c-dim { color: var(--text-muted); }
.step-code .c-key { color: var(--accent); }
.step-code .c-val { color: var(--green); }
.step-code .c-str { color: var(--blue); }

/* ——— Byline/SizeWise band ——— */
.sizewise-band {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.sizewise-band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sizewise-band .text {
  font-size: 15px;
  color: var(--text-dim);
}
.sizewise-band .text strong { color: var(--text); font-weight: 500; }

/* ——— Pricing ——— */
.pricing {
  display: grid;
  place-items: center;
}
.price-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: visible;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right,
    rgba(245, 158, 11, 0.08), transparent 60%);
  pointer-events: none;
}
/* === Badges === */
.badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 99px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
}
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
}

/* === Folded Ribbon (amber, top-right) === */
.ribbon-folded {
  position: absolute;
  top: 0;
  right: 24px;
  width: 72px;
  text-align: center;
  color: #0a0604;
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  filter: drop-shadow(0 6px 12px rgba(245, 158, 11, 0.3));
  z-index: 2;
}

.ribbon-folded .ribbon-main {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  padding: 14px 6px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}

.ribbon-folded .top {
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.85;
  display: block;
  margin-bottom: 4px;
}

.ribbon-folded .big {
  font-size: 18px;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}

.ribbon-folded .sub {
  font-size: 9px;
  letter-spacing: 0.15em;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}

/* === New price layout: $79 big on left, $119 + unit stacked on right === */
.price-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 8px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-main .dollar {
  font-size: 42px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-main .price {
  font-size: 92px;
  font-weight: 700;
  color: var(--text);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.price-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  font-family: 'Geist Mono', monospace;
}

.price-side .was {
  font-size: 22px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.price-side .unit {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  font-feature-settings: 'tnum';
}
.price-amount .dollar {
  font-size: 32px;
  color: var(--text-dim);
  font-weight: 500;
}
.price-amount .num {
  font-size: 80px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.price-amount .unit {
  font-size: 15px;
  color: var(--text-dim);
  margin-left: 4px;
}
.price-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  font-family: 'Geist Mono', monospace;
}
.price-list {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.price-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.price-cta {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
}
.price-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  font-family: 'Geist Mono', monospace;
}

/* ——— FAQ ——— */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 120ms ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .chev {
  width: 18px; height: 18px;
  color: var(--text-muted);
  transition: transform 200ms ease, color 200ms ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  padding: 0 0 24px;
  max-width: 680px;
}

/* ——— Footer ——— */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-cols {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 120ms ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-inner { padding: 0 20px; gap: 40px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .demo { margin-top: 40px; }
  .demo-frame { display: none; }
  .demo-mobile { display: block; }
  .problems, .features, .steps { grid-template-columns: 1fr; }
  .problems { gap: 12px; }
  .problem-card { min-height: 0; padding: 24px; }
  .feature { padding: 28px 24px; min-height: 0; }
  .step-code { font-size: 11px; }
  .nav-links, .nav-login { display: none; }
  .nav-inner { padding: 0 20px; height: 56px; }
  .footer-cols { gap: 32px; }
  .footer-inner { padding: 0 20px; flex-direction: column; }
  .footer-bottom { padding: 24px 20px 0; flex-direction: column; gap: 8px; }
  .price-card { padding: 28px 24px; padding-top: 48px; }
  .price-main .price { font-size: 64px; }
  .price-main .dollar { font-size: 28px; }
  .price-side .was { font-size: 18px; }
  .ribbon-folded { right: 16px; width: 64px; }
  .ribbon-folded .big { font-size: 16px; }
  .ribbon-folded .top, .ribbon-folded .sub { font-size: 8px; }
  .section-head { margin-bottom: 48px; }
  .faq-q { font-size: 15px; padding: 20px 0; }
  .sizewise-band-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ——— Mobile demo schematic (hidden on desktop, shown via media query) ——— */
.demo-mobile {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 20px 40px -20px rgba(0,0,0,0.8);
}

.dm-master {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  transition: box-shadow 240ms ease, border-color 240ms ease;
}
.dm-master.firing {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.dm-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dm-label { color: var(--text); font-weight: 600; }
.dm-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dim);
}
.dm-trade {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.dm-side {
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.dm-side.sell { color: var(--red); background: rgba(239,68,68,0.1); }
.dm-sym { color: var(--text-dim); font-size: 11px; }
.dm-qty { color: var(--text); font-size: 11px; }
.dm-price { color: var(--text); font-weight: 600; }

.dm-wires {
  display: block;
  width: 100%;
  height: 64px;
  margin: -2px 0 -2px;
  overflow: visible;
}
.dm-wire {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 4;
  transition: stroke 180ms ease;
}
.dm-wire.active {
  stroke: var(--accent);
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dmFlow 500ms ease-out forwards;
}
@keyframes dmFlow {
  to { stroke-dashoffset: 0; }
}

.dm-slaves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dm-slave {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.dm-slave.filled {
  border-color: var(--green);
  background: rgba(16,185,129,0.06);
}
.dm-slave-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 700;
}
.dm-slave-name {
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dm-slave-status {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  height: 14px;
  transition: color 220ms ease;
}
.dm-slave.filled .dm-slave-status {
  color: var(--green);
}
.dm-caption {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-family: 'Geist Mono', monospace;
}

/* ——— Checkout Popup ——— */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 250ms ease;
}
.popup-overlay.active .popup {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 150ms ease, color 150ms ease;
  z-index: 1;
}
.popup-close:hover {
  background: var(--bg);
  color: var(--text);
}

.popup-header-compact {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.popup-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup-title-row h3 {
  font-size: 18px;
  margin: 0;
}
.popup-price-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
}
.popup-price-tag s {
  margin-right: 6px;
}
.popup-price-tag strong {
  color: var(--accent);
  font-size: 18px;
}

.popup-form {
  padding: 20px 24px;
}
.popup-field {
  margin-bottom: 16px;
}
.popup-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.popup-field input[type="email"],
.popup-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.popup-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.popup-field input::placeholder {
  color: var(--text-muted);
}

.popup-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.popup-payment-option input {
  display: none;
}
.popup-payment-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  color: var(--text-dim);
  font-size: 13px;
}
.popup-payment-option:hover .popup-payment-box {
  border-color: var(--border-strong);
}
.popup-payment-option input:checked + .popup-payment-box {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
}

/* Card input fields */
.popup-card-fields {
  margin-bottom: 16px;
}
.popup-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.popup-card-fields input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Geist Mono', monospace;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.popup-card-fields input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.popup-card-fields input::placeholder {
  color: var(--text-muted);
}

/* PayPal message */
.popup-paypal-msg {
  margin-bottom: 16px;
}
.popup-paypal-msg p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 6px;
}

.popup-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #17120A;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
  border: none;
}
.popup-submit:hover {
  background: #FBBF24;
}
.popup-submit:active {
  transform: translateY(1px);
}

.popup-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.popup-legal svg {
  color: var(--green);
}
.popup-legal a {
  color: var(--text-muted);
}
.popup-legal a:hover {
  color: var(--text);
}

/* Mobile override - must come after base styles */
@media (max-width: 900px) {
  .demo-mobile { display: block; }
  .popup { max-width: 100%; border-radius: 12px; }
  .popup-header-compact, .popup-form { padding-left: 16px; padding-right: 16px; }
}
