:root {
  --bg: #faf8f9;
  --surface: #ffffff;
  --ink: #121015;
  --muted: #5d5561;
  --line: #e7e0e4;
  --accent: #df123e;
  --accent-dark: #b90d32;
  --accent-soft: #fff0f3;
  --ok: #137a47;
  --ok-bg: #e7f7ee;
  --dark: #0e0d12;
  --dark-card: #18161e;
  --radius: 14px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 700 14.5px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #c8bcc3; background: #f4eff2; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.btn-xs { min-height: 34px; padding: 5px 11px; font-size: 12.5px; }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 56px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  margin: 0 0 24px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 58ch;
}
.hero-sub strong { color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.trust-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Comparison Hero Card */
.hero-card {
  background: var(--dark);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(14, 13, 18, 0.16);
  display: grid;
  gap: 10px;
}
.compare-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a9a0b0;
  padding-bottom: 8px;
  border-bottom: 1px solid #2b2734;
}
.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--dark-card);
  border: 1px solid #292533;
}
.compare-row strong { display: block; font-size: 14.5px; }
.compare-row small { display: block; font-size: 12px; color: #a9a0b0; margin-top: 2px; }
.price-bad {
  font-weight: 800;
  font-size: 15px;
  color: #ff8ea5;
  white-space: nowrap;
}
.compare-winner {
  background: linear-gradient(135deg, #2b1320, #1f131b);
  border-color: var(--accent);
}
.price-good {
  font-weight: 800;
  font-size: 16px;
  color: #63e2a0;
  white-space: nowrap;
}

/* Sections */
.section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 32px;
}
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

/* Demo Builder */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 24px;
  align-items: start;
}
.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.builder-header h3 { margin: 0; font-size: 18px; }
.field-group { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field-group input[type="text"],
.field-group select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.2 var(--font);
}
.field-group input:focus,
.field-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}
.field-hint { font-size: 12px; color: var(--muted); }
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-row input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}
.builder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.copy-status { font-size: 13px; font-weight: 700; color: var(--ok); }

/* Interactive Phone Frame */
.demo-stage { display: grid; gap: 10px; }
.phone-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #ece6ea;
}
.phone-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 700 12.5px/1.2 var(--font);
  cursor: pointer;
}
.phone-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.phone-frame {
  background: #121016;
  color: #fff;
  border-radius: 26px;
  padding: 16px;
  border: 6px solid #24202c;
  box-shadow: 0 26px 64px rgba(14, 13, 18, 0.24);
  min-height: 490px;
}
.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #262230;
}
.phone-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.phone-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--demo-accent);
  color: #fff;
  font-weight: 800;
  flex: none;
}
.phone-brand strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-brand small { display: block; font-size: 11.5px; color: #aba2b3; }
.phone-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex: none;
}

.vip-card {
  background: var(--demo-accent);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
.vip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.92;
}
.vip-reward {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 12px;
}
.stamp-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.stamp-dot {
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.stamp-dot.is-filled {
  background: #111015;
  box-shadow: inset 0 0 0 2px #fff;
}
.vip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.mini-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font: 700 12px/1 var(--font);
  cursor: pointer;
}

.shield-box {
  background: #1b1822;
  border: 1px solid #2e2938;
  border-radius: 14px;
  padding: 14px;
}
.shield-head strong { display: block; font-size: 14.5px; }
.shield-head small { display: block; font-size: 12px; color: #a79eb0; margin-top: 2px; }
.star-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.star-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #352f42;
  background: #121016;
  color: #8f8699;
  font-size: 20px;
  cursor: pointer;
}
.star-btn.is-lit {
  color: #ffd166;
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}
.shield-result {
  font-size: 12.5px;
  line-height: 1.45;
  color: #d7d0de;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}
.shield-result a {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--demo-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Order tab */
.demo-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: #1c1924;
  margin-bottom: 12px;
}
.demo-seg-btn {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aba2b3;
  font: 700 12px/1.2 var(--font);
  cursor: pointer;
}
.demo-seg-btn[aria-pressed="true"] {
  background: var(--demo-accent);
  color: #fff;
}
.demo-menu-list { display: grid; gap: 8px; margin-bottom: 12px; }
.demo-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #1b1822;
  border: 1px solid #2b2636;
}
.demo-menu-item strong { display: block; font-size: 13.5px; }
.demo-menu-item small { display: block; font-size: 11.5px; color: #a79eb0; }
.demo-checkout-box {
  background: #1b1822;
  border: 1px solid #2e2938;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.demo-fee-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #cbc3d4;
}
.save-badge { color: #63e2a0; }
.demo-pay-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--demo-accent);
  color: #fff;
  font: 800 14px/1 var(--font);
  cursor: pointer;
}

/* Inventory tab */
.inv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.inv-head strong { display: block; font-size: 14.5px; }
.inv-head small { display: block; font-size: 11.5px; color: #aba2b3; }
.inv-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(223, 18, 62, 0.2);
  color: #ff8ea5;
  font-size: 11.5px;
  font-weight: 700;
}
.inv-list { display: grid; gap: 8px; margin-bottom: 12px; }
.inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #1b1822;
  border: 1px solid #2b2636;
}
.inv-row strong { display: block; font-size: 13.5px; }
.inv-row small { display: block; font-size: 11.5px; color: #ffbe76; }
.inv-buy { text-align: right; font-size: 12px; color: #aba2b3; }
.inv-buy b { display: block; font-size: 14px; color: #fff; }
.inv-foot-note {
  font-size: 12px;
  color: #a9a0b0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

/* Fullscreen Client Demo Mode */
body.client-demo-mode .site-header,
body.client-demo-mode .hero,
body.client-demo-mode .demo-builder,
body.client-demo-mode .section-head,
body.client-demo-mode .calc-section,
body.client-demo-mode .pricing-section,
body.client-demo-mode .pilot-section,
body.client-demo-mode .site-footer { display: none; }
body.client-demo-mode .demo-section { padding: 20px 0; }
body.client-demo-mode .demo-grid { grid-template-columns: minmax(0, 420px); justify-content: center; }

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}
.calc-inputs { display: grid; gap: 20px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}
.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.calc-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.calc-output {
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 16px;
}
.calc-stat-main span { font-size: 13px; color: #aba2b3; }
.calc-stat-main strong {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #63e2a0;
  margin: 4px 0;
}
.calc-stat-main small { color: #d5cedc; font-size: 13px; }
.calc-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-mini {
  background: var(--dark-card);
  border: 1px solid #2b2734;
  border-radius: 11px;
  padding: 12px;
}
.calc-mini span { display: block; font-size: 11.5px; color: #aba2b3; }
.calc-mini strong { display: block; font-size: 18px; margin-top: 3px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 50px rgba(223, 18, 62, 0.12);
}
.price-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2ecf0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-hot { background: var(--accent-soft); color: var(--accent); }
.price-card h3 { margin: 0; font-size: 20px; }
.price-num strong { font-size: 34px; letter-spacing: -0.03em; }
.price-num span { color: var(--muted); font-size: 14px; margin-left: 4px; }
.price-desc { margin: 0; font-size: 14px; color: var(--muted); }
.price-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 auto;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

/* Pilot Banner */
.pilot-banner {
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 18px;
}
.pilot-banner h2 { margin: 4px 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; }
.pilot-banner p { margin: 0; color: #cbc3d4; max-width: 62ch; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pilot-banner .btn-ghost { background: #1e1b26; color: #fff; border-color: #363044; }
.pilot-banner .btn-ghost:hover { background: #292434; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }

@media (max-width: 920px) {
  .hero-grid, .demo-grid, .calc-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .site-nav { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 32px 0 28px; }
  .section { padding: 36px 0; }
  .field-row { grid-template-columns: 1fr; }
  .pilot-banner { padding: 22px; }
}
