:root {
  --bg-dark: #0e1114;
  --bg-panel: #161b21;
  --bg-light: #f4f5f7;
  --surface: #ffffff;
  --text-light: #f3f5f7;
  --text-muted-dark: #9aa4b2;
  --text-dark: #111827;
  --text-muted-light: #4b5563;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --border-dark: #262e38;
  --border-light: #e2e6ec;
  --radius: 14px;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  background: #080a0c;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--text-muted-dark);
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 17, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-light);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--amber);
  color: #111;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 11px;
  color: var(--text-muted-dark);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-amber {
  background: var(--amber);
  color: #111315;
  padding: 14px 22px;
  font-size: 15px;
}

.btn-amber:hover {
  background: var(--amber-hover);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  padding: 12px 18px;
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 18% 15%, rgba(245, 158, 11, 0.12), transparent 42%),
    linear-gradient(180deg, #0e1114 0%, #14191f 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 50px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.accent {
  color: var(--amber);
}

.hero-sub {
  font-size: 17px;
  color: #c2cad4;
  margin-bottom: 24px;
  max-width: 540px;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 30px;
}

.trust-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: #dce2e9;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 800;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
  max-width: 480px;
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted-dark);
}

/* Estimator Card */
.estimator-card {
  background: var(--surface);
  color: var(--text-dark);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.card-header h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted-light);
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.field-group {
  margin-bottom: 18px;
}

.field-group > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-btn {
  background: #f9fafb;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}

.choice-btn strong {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
}

.choice-btn span {
  display: block;
  font-size: 11px;
  color: var(--text-muted-light);
  margin-top: 2px;
}

.choice-btn.active {
  background: #fffbeb;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.slider-wrap {
  margin-top: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.slider-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

#sqftSlider {
  width: 100%;
  accent-color: var(--amber-hover);
}

/* Swatches */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.swatch-btn.active {
  border-color: var(--amber);
  background: #fffbeb;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swatch-domino {
  background: radial-gradient(circle at 30% 30%, #f3f4f6 12%, #374151 14%, #9ca3af 38%, #111827 65%, #e5e7eb 85%);
}

.swatch-tuxedo {
  background: radial-gradient(circle at 35% 35%, #e5e7eb 10%, #111827 25%, #374151 55%, #030712 80%);
}

.swatch-creekbed {
  background: radial-gradient(circle at 30% 30%, #d1d5db 15%, #6b7280 35%, #4b5563 65%, #9ca3af 90%);
}

.swatch-tan {
  background: radial-gradient(circle at 30% 30%, #f5e6d3 14%, #a67c52 38%, #6b4f35 68%, #d6b892 88%);
}

.price-box {
  background: #111519;
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.price-range {
  font-size: 30px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
  margin: 4px 0;
}

.price-box small {
  font-size: 12px;
  color: #cbd5e1;
}

.micro-note {
  font-size: 11.5px;
  color: var(--text-muted-light);
  text-align: center;
  margin-top: 10px;
}

/* Lead Form */
.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f4f6;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--amber-hover);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.price-mini {
  font-size: 13.5px;
  margin-bottom: 14px;
  color: #1f2937;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
}

/* Success & Demo Panel */
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 24px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

#successPanel h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.success-copy {
  font-size: 14px;
  color: #374151;
  margin-bottom: 16px;
}

.demo-box {
  background: #0f1419;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.demo-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}

.demo-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.demo-tab {
  flex: 1;
  background: #1f2730;
  color: #9ca3af;
  border: none;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.demo-tab.active {
  background: var(--amber);
  color: #111;
}

.demo-pre {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  white-space: pre-wrap;
  line-height: 1.5;
  color: #d1d5db;
  max-height: 220px;
  overflow-y: auto;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 38px;
}

.eyebrow-dark {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber-hover);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted-light);
}

/* Before / After Visualizer */
.visualizer-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  user-select: none;
  background: #14181d;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: filter 0.25s ease;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-tag {
  position: absolute;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(14, 17, 20, 0.82);
  color: #fff;
}

.ba-tag-left {
  left: 14px;
}

.ba-tag-right {
  right: 14px;
  color: var(--amber);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: #111;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.visualizer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}

.swatch-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  border: 1.5px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pill-btn.active {
  background: #111827;
  color: var(--amber);
  border-color: #111827;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px;
}

.step-num {
  display: inline-block;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-muted-dark);
}

/* FAQ */
.faq-wrap {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
}

.faq-list details p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted-light);
}

/* Footer */
.site-footer {
  background: #080a0c;
  border-top: 1px solid var(--border-dark);
  padding: 36px 0;
  color: var(--text-muted-dark);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-inner strong {
  color: #fff;
  letter-spacing: 0.05em;
}

.disclaimer {
  font-size: 12px;
  color: #6b7280;
  max-width: 820px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cond-grid,
  .swatch-row,
  .form-row,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .topbar-right {
    display: none;
  }
}
