/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263347;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --danger: #ef4444;
  --success: #22c55e;
  --info: #3b82f6;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --wire-pos: #ef4444;
  --wire-neg: #1e293b;
  --wire-ac: #f97316;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header h1 {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

header h1 a { text-decoration: none; }

.subtitle {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.85rem;
}

/* ===== Language selector ===== */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s;
}

.lang-trigger:hover { border-color: var(--accent); }
.lang-trigger .chevron { font-size: 0.65rem; color: var(--text-muted); transition: transform 0.2s; }
.lang-selector.open .lang-trigger { border-color: var(--accent); }
.lang-selector.open .chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}

.lang-selector.open .lang-dropdown { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover { background: var(--bg-card-hover); color: var(--text); }
.lang-option.active { color: var(--accent); background: rgba(245, 158, 11, 0.08); }

@media (max-width: 480px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Main layout ===== */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ===== Card ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Progress bar (questionnaire) ===== */
.progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 16px;
}

.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.progress-step:last-child { flex: 0; }

.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.progress-step.active .progress-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f172a;
}

.progress-step.done .progress-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.progress-step.done .progress-line,
.progress-step.active .progress-line {
  background: var(--accent);
}

.progress-label {
  display: none;
}

@media (min-width: 640px) {
  .progress-label {
    display: block;
    position: absolute;
    top: 44px;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }
  .progress-step.active .progress-label { color: var(--accent); }
  .progress-dot { position: relative; }
}

/* ===== Step container ===== */
.step { display: none; }
.step.active { display: block; }

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ===== Step navigation ===== */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Vehicle type cards ===== */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

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

.vehicle-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.vehicle-card:hover { border-color: var(--accent); background: var(--bg-card-hover); }

.vehicle-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.vehicle-card .vehicle-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.vehicle-card .vehicle-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.vehicle-card .vehicle-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ===== Option toggles ===== */
.option-group {
  margin-bottom: 20px;
}

.option-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.option-toggle {
  display: flex;
  gap: 8px;
}

.option-toggle button {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.option-toggle button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f172a;
}

/* ===== Equipment selection (step 2) ===== */
.category-section {
  margin-bottom: 24px;
}

.category-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.equipment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.equipment-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.equipment-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.equipment-card .eq-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.equipment-card .eq-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.equipment-card .eq-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.equipment-card .eq-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.equipment-card.selected .eq-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f172a;
  font-size: 0.7rem;
}

/* ===== Cable lengths table (step 3) ===== */
.lengths-table {
  width: 100%;
  border-collapse: collapse;
}

.lengths-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.lengths-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 0.9rem;
}

.lengths-table input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}

.lengths-table input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== Usage & autonomy (step 4) ===== */
.usage-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.usage-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.usage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 0.9rem;
}

.usage-table input[type="number"] {
  width: 70px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
}

.autonomy-slider {
  margin-top: 16px;
}

.autonomy-slider label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 6px;
}

.slider-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
}

/* ===== Summary (step 5) ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.summary-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.summary-stat .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.summary-equipment-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.summary-equipment-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.88rem;
}

.summary-equipment-list li .eq-power {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Results page ===== */
.results-section {
  margin-top: 24px;
}

.diagram-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.diagram-container svg {
  width: 100%;
  height: auto;
}

/* ===== Shopping list ===== */
.shopping-section {
  margin-top: 24px;
}

.shopping-section h3 {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shopping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.shopping-table th {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.shopping-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  vertical-align: middle;
}

.shopping-table tr:hover {
  background: var(--bg-card-hover);
}

.shopping-table .ref-cell {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-buy:hover { background: var(--accent-dark); }

/* ===== Choice cards (questionnaire simplified steps) ===== */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.choice-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .choice-grid,
  .choice-grid.cols-3,
  .choice-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.choice-card {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.choice-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.choice-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.choice-card .choice-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0f172a;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.choice-card.recommended {
  border-color: rgba(245, 158, 11, 0.3);
}

.choice-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.choice-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.choice-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Sales page — Sections ===== */
.section-main, .section-alt, .section-cta {
  padding: 48px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-card);
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt .section-inner,
.section-cta .section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.section-main h2, .section-alt h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 48px 24px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--accent); }

.hero .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ===== CTA form (shared) ===== */
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.section-alt .cta-form input[type="email"] {
  background: var(--bg);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.cta-sub {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}

@media (max-width: 520px) {
  .cta-form { flex-direction: column; }
  .cta-form .btn { width: 100%; }
}

/* ===== Problem section ===== */
.problem-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.problem-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 4px;
}

/* ===== What you get ===== */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.what-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.what-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.what-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== How it works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.how-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Price comparison table ===== */
.compare-table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: var(--bg-card);
}

.compare-header .compare-cell {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.compare-cell {
  padding: 14px 16px;
  font-size: 0.9rem;
}

.compare-label {
  font-weight: 600;
}

.compare-yes { color: var(--success); }
.compare-no { color: var(--danger); }

.compare-highlight {
  background: rgba(245, 158, 11, 0.08);
  border: 2px solid var(--accent);
  border-radius: 0;
}

.compare-highlight .compare-cell {
  color: var(--accent);
}

.compare-highlight .compare-label {
  color: var(--text);
}

@media (max-width: 520px) {
  .compare-row { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr; }
  .compare-cell { padding: 10px 8px; font-size: 0.8rem; }
}

/* ===== CTA section ===== */
.section-cta {
  text-align: center;
  padding: 40px 24px;
}

.section-cta-final {
  padding: 64px 24px;
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.04));
}

.section-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-sub-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* ===== Checklist ===== */
.check-list {
  list-style: none;
  max-width: 500px;
}

.check-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== FAQ section ===== */
.faq-list {
  max-width: 660px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

/* ===== Utility ===== */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ===== Notifications / errors ===== */
.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Responsive tables ===== */
@media (max-width: 640px) {
  .lengths-table, .usage-table, .shopping-table {
    font-size: 0.8rem;
  }
  .lengths-table th, .usage-table th, .shopping-table th,
  .lengths-table td, .usage-table td, .shopping-table td {
    padding: 8px 6px;
  }
}

/* ===== Print ===== */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .step-nav, .progress-bar, .btn { display: none; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  .diagram-container { border: 1px solid #ccc; }
}

/* ===== Loading spinner ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Promo banner ===== */
.promo-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.promo-card .promo-badge {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.promo-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.promo-card .promo-prices {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.promo-card .price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.promo-card .price-new {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ===== Diagram legend ===== */
.diagram-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   SALES PAGE — E-commerce light theme (.page-sales)
   Applied via <body class="page-sales">
   Does NOT affect questionnaire/generate pages (they keep the dark theme)
   ========================================================================== */

.page-sales {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #F9FAFB;
  color: #1F2937;
  line-height: 1.6;
}

.page-sales a { color: inherit; }

.s-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- NAV ---------- */
.page-sales .sales-nav {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-sales .nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-sales .logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0F172A;
}

.page-sales .nav-help {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7280;
}

.page-sales .nav-help a {
  color: #2563EB;
  text-decoration: none;
}

.page-sales .nav-help a:hover { text-decoration: underline; }

/* ---------- PRODUCT HERO ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-top: 30px;
  border: 1px solid #E5E7EB;
}

.product-gallery { display: flex; flex-direction: column; }

.product-image-main {
  background: #F3F4F6;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-main .schema-preview {
  width: 100%;
  height: auto;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-thumbs .thumb {
  flex: 1;
  height: 52px;
  background: #F3F4F6;
  border-radius: 6px;
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-thumbs .thumb:hover,
.product-thumbs .thumb.active {
  border-color: #2563EB;
  color: #2563EB;
}

.product-info h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #0F172A;
}

.product-desc {
  color: #6B7280;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-sales .price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 20px;
}

/* ---------- BUY BUTTON ---------- */
.page-sales .buy-btn {
  background: #2563EB;
  color: #fff;
  width: 100%;
  padding: 18px;
  border-radius: 8px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
  transition: background 0.15s;
}

.page-sales .buy-btn:hover { background: #1D4ED8; }
.page-sales .buy-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- CTA FORM (sales) ---------- */
.page-sales .cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.page-sales .cta-form input[type="email"] {
  padding: 14px 16px;
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  color: #1F2937;
  font-size: 1rem;
  font-family: inherit;
}

.page-sales .cta-form input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.page-sales .instant-access {
  font-size: 0.85rem;
  color: #059669;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

.page-sales .error-msg {
  color: #DC2626;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 6px;
}

.product-perks {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  border-top: 1px solid #E5E7EB;
  padding-top: 16px;
}

.product-perks li {
  font-size: 0.85rem;
  color: #6B7280;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-perks li::before {
  content: '✓';
  color: #059669;
  font-weight: 700;
}

/* ---------- MARKETING GRID ---------- */
.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 60px 0;
}

.arg-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.arg-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.arg-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}

.arg-card p {
  font-size: 0.95rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* ---------- HOW IT WORKS ---------- */
.how-section {
  margin-bottom: 60px;
}

.how-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 40px;
}

.how-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-card {
  text-align: center;
  padding: 24px 20px;
  flex: 1;
  max-width: 280px;
}

.how-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563EB;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-card strong {
  display: block;
  font-size: 1rem;
  color: #0F172A;
  margin-bottom: 6px;
}

.how-card p {
  font-size: 0.9rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

.how-arrow {
  font-size: 1.5rem;
  color: #D1D5DB;
  padding-top: 28px;
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- PACK CONTENT (dark section) ---------- */
.pack-content {
  background: #111827;
  color: #F9FAFB;
  padding: 80px 0;
  margin: 0;
}

.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.pack-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.pack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pack-list li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pack-list li::before {
  content: "✔";
  color: #10B981;
  font-weight: bold;
  flex-shrink: 0;
}

/* -- Compare table inside dark section -- */
.pack-compare h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pack-compare .compare-table {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.pack-compare .compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.7fr;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pack-compare .compare-row:last-child { border-bottom: none; }

.pack-compare .compare-header {
  background: rgba(255,255,255,0.05);
}

.pack-compare .compare-header .compare-cell {
  font-size: 0.7rem;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.pack-compare .compare-cell {
  padding: 12px 14px;
  font-size: 0.88rem;
}

.pack-compare .compare-label { font-weight: 600; }
.pack-compare .compare-yes { color: #10B981; }
.pack-compare .compare-no { color: #EF4444; }

.pack-compare .compare-highlight {
  background: rgba(37, 99, 235, 0.15);
  border: 2px solid #2563EB;
  border-radius: 0;
}

.pack-compare .compare-highlight .compare-cell {
  color: #93C5FD;
}

.pack-compare .compare-highlight .compare-label {
  color: #F9FAFB;
}

/* ---------- CTA MID ---------- */
.cta-mid {
  text-align: center;
  padding: 50px 0;
}

.cta-mid .cta-form {
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
  max-width: 700px;
  margin: 0 auto 60px;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 32px;
}

.page-sales .faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.page-sales .faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #0F172A;
}

.page-sales .faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #2563EB;
  flex-shrink: 0;
  margin-left: 16px;
  font-weight: 700;
}

.page-sales .faq-item[open] summary::after { content: '−'; }

.page-sales .faq-item p {
  padding: 0 0 18px;
  color: #6B7280;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- FOOTER CTA ---------- */
.footer-cta {
  text-align: center;
  padding: 60px 20px;
  background: #EEF2FF;
  border-radius: 12px;
  margin-bottom: 60px;
}

.footer-cta h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  line-height: 1.3;
}

.footer-cta-sub {
  color: #6B7280;
  margin-bottom: 24px;
  font-size: 1rem;
}

.footer-cta .cta-form {
  max-width: 380px;
  margin: 0 auto;
}

.cta-guarantee {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-top: 14px;
}

/* ---------- FOOTER ---------- */
.page-sales .sales-footer {
  padding: 40px 20px;
  text-align: center;
  color: #9CA3AF;
  border-top: 1px solid #E5E7EB;
  font-size: 0.8rem;
  line-height: 2;
  background: #fff;
}

.page-sales .sales-footer a {
  color: #9CA3AF;
  text-decoration: none;
}

.page-sales .sales-footer a:hover { color: #2563EB; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 850px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    margin-top: 20px;
  }

  .product-info h1 { font-size: 1.6rem; }

  .marketing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px 0;
  }

  .how-grid { flex-direction: column; align-items: center; gap: 8px; }
  .how-arrow { transform: rotate(90deg); padding: 0; }

  .pack-grid { grid-template-columns: 1fr; gap: 40px; }
  .pack-content { padding: 50px 0; }

  .pack-compare .compare-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.6fr;
  }
  .pack-compare .compare-cell { padding: 10px 8px; font-size: 0.8rem; }

  .faq-section { padding: 0 4px; }
}

@media (max-width: 520px) {
  .product-hero { padding: 20px; gap: 24px; }
  .product-info h1 { font-size: 1.4rem; }
  .page-sales .price-tag { font-size: 1.6rem; }
  .page-sales .nav-help { display: none; }
  .how-section h2, .faq-section h2 { font-size: 1.3rem; }
}
