/* ============================================================
   VEXA.UZ — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-base:     #05070a;
  --bg-surface:  #0b0e14;
  --bg-raised:   #11161f;
  --bg-overlay:  #19202b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.11);
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #556070;
  --accent:        #8b5cf6;
  --accent-hover:  #a855f7;
  --accent-deep:   #6d28d9;
  --accent-alt:    #3b82f6;
  --accent-soft:   rgba(139, 92, 246, 0.12);
  --accent-border: rgba(139, 92, 246, 0.28);
  --accent-glow:   rgba(139, 92, 246, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light Mode ---------- */
html.light {
  --bg-base:     #f7f8ff;
  --bg-surface:  #eef0ff;
  --bg-raised:   #ffffff;
  --bg-overlay:  #e5e8ff;
  --border-subtle: rgba(99, 76, 231, 0.07);
  --border-strong: rgba(99, 76, 231, 0.14);
  --text-primary:   #0d0c2c;
  --text-secondary: #3d3a72;
  --text-muted:     #8a87bb;
  --accent-soft:   rgba(139, 92, 246, 0.13);
  --accent-border: rgba(139, 92, 246, 0.26);
  --accent-glow:   rgba(139, 92, 246, 0.38);
}

/* ---------- Base ---------- */
body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.06); }
}
.float-anim { animation: float 7s ease-in-out infinite; }
.glow-anim  { animation: pulse-glow 9s ease-in-out infinite; }

/* ---------- Hero Gradient ---------- */
.hero-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .hero-gradient {
  background: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  transition: all 0.35s var(--ease-out);
}
.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -18px var(--accent-glow);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  box-shadow: 0 8px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #fff !important;
  font-weight: 700;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent-hover));
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -8px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-overlay);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  transition: all 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--border-subtle);
  border-color: var(--accent-border);
}

/* ---------- Theme Toggle Icons ---------- */
.theme-icon-light { display: none; }
html.light .theme-icon-dark  { display: none; }
html.light .theme-icon-light { display: block; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
html.light .site-header {
  background: rgba(247, 248, 255, 0.88);
}

/* ============================================================
   LANG DROPDOWN
   ============================================================ */
.lang-dropdown { position: relative; }

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--accent-border);
  background: var(--bg-overlay);
}
.lang-trigger svg { width: 1rem; height: 1rem; color: var(--accent-hover); }

.lang-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 6rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 0.875rem;
  padding: 0.375rem;
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  z-index: 100;
}
.lang-panel.open { display: flex; }

.lang-option {
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  background: none;
  border: none;
  width: 100%;
}
.lang-option:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

/* Light mode lang dropdown */
html.light .lang-trigger {
  background: #ffffff;
  border-color: rgba(99, 76, 231, 0.18);
}
html.light .lang-trigger:hover {
  background: #f0eeff;
  border-color: rgba(99, 76, 231, 0.3);
}
html.light .lang-panel {
  background: #ffffff;
  border-color: rgba(99, 76, 231, 0.14);
  box-shadow: 0 16px 40px rgba(99, 76, 231, 0.12);
}
html.light .lang-option:hover {
  background: rgba(99, 76, 231, 0.07);
  color: var(--text-primary);
}
html.light .lang-option.active {
  background: var(--accent-soft);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
#mobile-menu.open { display: block; }

#mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

#mobile-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 1.25rem 1.5rem 1.75rem;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
}
#mobile-menu.open #mobile-panel { transform: translateY(0); }
html.light #mobile-panel {
  background: var(--bg-raised);
  border-color: rgba(99, 76, 231, 0.14);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
html.light .mobile-nav-link:hover {
  background: rgba(99, 76, 231, 0.07);
}

/* ============================================================
   LIGHT MODE — UTILITY OVERRIDES
   ============================================================ */
html.light .text-white { color: var(--text-primary) !important; }
html.light .hover\:text-white:hover { color: #6d28d9 !important; }

/* Product-card link colours.
   The -400/-500 tints are tuned for the dark card and drop to 1.7–2.5:1 on the
   white light-mode card — effectively unreadable. Each one darkens to its -600/
   -700 sibling here, clearing 4.5:1 while keeping the card's identity colour.
   (Sales was already handled this way; the rest had been missed.) */
html.light .text-\[\#c084fc\]  { color: #7c3aed !important; } /* Sales  5.70:1 */
html.light .text-emerald-400   { color: #047857 !important; } /* Rent   5.48:1 */
html.light .text-blue-400      { color: #2563eb !important; } /* CRM    5.17:1 */
html.light .text-amber-400     { color: #b45309 !important; } /* Rest.  5.02:1 */
html.light .text-cyan-400      { color: #0e7490 !important; } /* Org.   5.36:1 */

html.light .bg-white\/5,
html.light .bg-white\/\[0\.02\] { background-color: rgba(99, 76, 231, 0.055) !important; }
html.light .hover\:bg-white\/5:hover,
html.light .hover\:bg-white\/10:hover { background-color: rgba(99, 76, 231, 0.1) !important; }

html.light .border-white\/5  { border-color: rgba(99, 76, 231, 0.09) !important; }
html.light .border-white\/10 { border-color: rgba(99, 76, 231, 0.15) !important; }
html.light .border-white\/20 { border-color: rgba(99, 76, 231, 0.22) !important; }

html.light .btn-secondary {
  background: #ffffff;
  border-color: rgba(99, 76, 231, 0.2);
  box-shadow: 0 2px 10px rgba(99, 76, 231, 0.09);
}
html.light .btn-secondary:hover {
  background: #f0eeff;
  border-color: rgba(99, 76, 231, 0.32);
}

html.light .feature-card {
  background: #ffffff;
  border-color: rgba(99, 76, 231, 0.1);
  box-shadow: 0 1px 3px rgba(99, 76, 231, 0.06), 0 8px 28px rgba(99, 76, 231, 0.09);
}
html.light .feature-card:hover {
  box-shadow: 0 22px 50px rgba(99, 76, 231, 0.18), 0 0 0 1.5px rgba(139, 92, 246, 0.3);
}

html.light .fixed.inset-0 > div:first-child { background: rgba(139, 92, 246, 0.2) !important; }
html.light .fixed.inset-0 > div:last-child  { background: rgba(59, 130, 246, 0.15) !important; }

html.light #stats .text-4xl {
  background: linear-gradient(135deg, #6d28d9, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================================
   SERVICES — selectable price cards + sticky order bar
   ============================================================ */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--bg-raised);
  border: 2px solid var(--border-strong);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.service-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px var(--accent-glow);
}
.service-card:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}
.service-card.selected {
  border-color: var(--accent-hover);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-raised) 60%);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 22px 40px -20px var(--accent-glow);
}
.service-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: transparent;
  transition: all 0.2s var(--ease-out);
}
.service-card.selected .service-check {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
}
.service-badge {
  position: absolute;
  top: 1.1rem;
  right: 3.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
}
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.service-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1rem;
}
.service-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.service-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}
.service-price-from {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  order: 2;
}
.service-price-value {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .service-card { background: #ffffff; }
html.light .service-card.selected {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 60%);
}

/* Phones: compact row layout so all 5 services fit in one screen */
@media (max-width: 639px) {
  .service-card {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    grid-template-areas:
      "icon name  price"
      "icon desc  price"
      "icon meta  price";
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    align-items: center;
    padding: 0.9rem 1rem 0.9rem 0.9rem;
    border-radius: 1.25rem;
  }
  .service-card:hover { transform: none; }
  .service-icon { grid-area: icon; width: 3rem; height: 3rem; border-radius: 0.85rem; margin: 0; }
  .service-icon svg { width: 1.4rem; height: 1.4rem; }
  .service-name { grid-area: name; font-size: 1rem; margin: 0; padding-right: 0; }
  .service-desc { grid-area: desc; font-size: 0.75rem; line-height: 1.4; margin: 0; }
  .service-meta { grid-area: meta; font-size: 0.7rem; margin: 0.15rem 0 0; }
  .service-price {
    grid-area: price;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding: 0;
    border: 0;
    width: auto;
    padding-left: 0.5rem;
  }
  .service-price-value { font-size: 1.25rem; }
  .service-price-from { order: 0; font-size: 0.65rem; }
  .service-check {
    position: static;
    grid-column: 3;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: center;
    display: none;
  }
  .service-card.selected { background: var(--accent-soft); }
  .service-badge { display: none; }
  .service-name { font-size: 0.95rem; line-height: 1.2; }
  .service-price-value { font-size: 1.15rem; }
  .service-price-from { display: none; }
  .service-price { padding-left: 0.35rem; }
}

/* ============================================================
   ORDER WIZARD (3 steps)
   ============================================================ */
.wz-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 1.75rem;
  padding: 1.25rem;
}
@media (min-width: 640px) { .wz-card { padding: 1.75rem; } }
html.light .wz-card { background: #ffffff; box-shadow: 0 10px 40px -20px rgba(99, 76, 231, 0.25); }

/* Stepper */
.wz-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem;
  margin: 0 auto 1.5rem;
  max-width: 56rem;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 1.5rem;
}
html.light .wz-stepper { background: #ffffff; }
.wz-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.wz-step-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.wz-step-num {
  width: 2rem; height: 2rem;
  border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900;
  background: var(--bg-overlay);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.wz-step-num svg { display: none; }
.wz-step-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.wz-step-label { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.wz-step-title { font-size: 0.85rem; font-weight: 800; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-step.is-current .wz-step-btn {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  color: rgba(255,255,255,0.8);
  box-shadow: 0 10px 24px -10px var(--accent-glow);
}
.wz-step.is-current .wz-step-num { background: #fff; color: var(--accent-deep); border-color: transparent; }
.wz-step.is-current .wz-step-title { color: #fff; }
.wz-step.is-done .wz-step-btn { background: rgba(16, 185, 129, 0.1); }
.wz-step.is-done .wz-step-num { background: #10b981; color: #fff; border-color: transparent; }
.wz-step.is-done .wz-step-num span { display: none; }
.wz-step.is-done .wz-step-num svg { display: block; }
.wz-step.is-done .wz-step-title { color: #34d399; }
html.light .wz-step.is-done .wz-step-title { color: #047857; }
@media (max-width: 639px) {
  .wz-stepper { gap: 0.25rem; padding: 0.35rem; border-radius: 1.1rem; }
  .wz-step-btn { padding: 0.5rem; gap: 0.5rem; justify-content: center; }
  .wz-step-text { display: none; }
  .wz-step.is-current .wz-step-text { display: flex; }
  .wz-step-label { display: none; }
  .wz-step-title { font-size: 0.8rem; }
  .wz-step-num { width: 1.75rem; height: 1.75rem; }
}

/* Head */
.wz-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.wz-badge {
  display: inline-flex; gap: 0.3rem;
  font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover); background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.wz-heading { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.01em; color: var(--text-primary); }
@media (min-width: 640px) { .wz-heading { font-size: 1.7rem; } }
.wz-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.wz-chosen {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.8rem; border-radius: 0.85rem;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399; font-size: 0.75rem; font-weight: 800; cursor: pointer;
  max-width: 100%;
}
html.light .wz-chosen { color: #047857; }
.wz-chosen span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Step 1 grid: 5 cards inside the left column.
   Phones: rows. sm–xl: 2 per row on a 4-col grid (odd last card centred).
   xl+: 3 per row on a 6-col grid, trailing row of 2 centred. */
.wz-types { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) {
  .wz-types { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .wz-types .service-card { grid-column: span 2; }
  .wz-types .service-card:last-child:nth-child(odd) { grid-column: 2 / 4; }
}
@media (min-width: 1280px) {
  .wz-types { grid-template-columns: repeat(6, 1fr); }
  .wz-types .service-card:last-child:nth-child(odd) { grid-column: span 2; }
  .wz-types .service-card:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / 4; }
  .wz-types .service-card:nth-child(3n + 2):last-child { grid-column: 4 / 6; }
  /* A lone card after full rows of three sits centred (four systems since Restaurant Vexa went, 2026-10-13). */
  .wz-types .service-card:nth-child(3n + 1):last-child { grid-column: 3 / 5; }
}
.wz-types .service-card { padding: 1.25rem; border-radius: 1.4rem; }
.wz-types .service-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
.wz-types .service-icon svg { width: 1.5rem; height: 1.5rem; }
.wz-types .service-name { font-size: 1.05rem; }
.wz-types .service-desc { font-size: 0.8rem; }
.wz-types .service-price-value { font-size: 1.5rem; }
.wz-types .service-check { top: 0.85rem; right: 0.85rem; width: 1.5rem; height: 1.5rem; }
.wz-types .service-badge { top: 0.95rem; right: 2.85rem; }
@media (max-width: 639px) {
  .wz-types .service-card { padding: 0.85rem 0.9rem; border-radius: 1.1rem; }
  .wz-types .service-icon { width: 2.75rem; height: 2.75rem; margin: 0; }
}

/* Step 2: option groups */
.wz-group { margin-bottom: 1.5rem; }
.wz-group:last-child { margin-bottom: 0; }
.wz-group-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.wz-group-title { font-size: 0.95rem; font-weight: 900; color: var(--text-primary); }
.wz-group-kind { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.wz-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 640px) { .wz-choices { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); } }
.wz-choice {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  padding: 0.9rem 0.6rem;
  border-radius: 1rem;
  border: 2px solid var(--border-strong);
  background: var(--bg-overlay);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
html.light .wz-choice { background: #f7f8ff; }
.wz-choice:hover { border-color: var(--accent-border); }
.wz-choice.on {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wz-choice-icon {
  width: 2.1rem; height: 2.1rem; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised); border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.wz-choice.on .wz-choice-icon { background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt)); color: #fff; border-color: transparent; }
.wz-choice-icon svg { width: 1.05rem; height: 1.05rem; }
.wz-choice-title { font-size: 0.8rem; font-weight: 800; line-height: 1.2; }
.wz-choice-price { font-size: 0.72rem; font-weight: 800; color: var(--accent-hover); }
.wz-choice-price.free { color: #34d399; }
html.light .wz-choice-price.free { color: #047857; }

/* Step 2 checkboxes + step 3 add-ons: toggle rows */
.wz-rows { display: flex; flex-direction: column; gap: 0.6rem; }
.wz-row {
  display: flex; align-items: center; gap: 0.85rem;
  width: 100%; text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 2px solid var(--border-strong);
  background: var(--bg-overlay);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
html.light .wz-row { background: #f7f8ff; }
.wz-row:hover { border-color: var(--accent-border); }
.wz-row.on { border-color: var(--accent-hover); background: var(--accent-soft); }
.wz-row-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-raised); border: 1px solid var(--border-subtle); color: var(--text-secondary);
}
.wz-row.on .wz-row-icon { background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt)); color: #fff; border-color: transparent; }
.wz-row-icon svg { width: 1.15rem; height: 1.15rem; }
.wz-row-body { min-width: 0; flex: 1; }
.wz-row-title { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.9rem; font-weight: 800; line-height: 1.25; }
.wz-row-rec {
  font-size: 0.55rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.12rem 0.4rem; border-radius: 0.35rem;
  background: rgba(245, 158, 11, 0.15); color: #fbbf24;
}
html.light .wz-row-rec { color: #b45309; }
.wz-row-desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.1rem; }
.wz-row-price { font-size: 0.85rem; font-weight: 900; color: var(--accent-hover); white-space: nowrap; }
.wz-row-price.free { color: #34d399; }
html.light .wz-row-price.free { color: #047857; }
.wz-switch {
  position: relative; width: 2.6rem; height: 1.45rem; border-radius: 999px; flex-shrink: 0;
  background: var(--border-strong); transition: background 0.2s;
}
.wz-switch::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1.05rem; height: 1.05rem;
  border-radius: 999px; background: #fff; transition: transform 0.2s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.wz-row.on .wz-switch { background: var(--accent-hover); }
.wz-row.on .wz-switch::after { transform: translateX(1.15rem); }
.wz-row-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
@media (max-width: 480px) {
  .wz-row-right .wz-row-price { display: none; }
  .wz-row-desc { display: none; }
  .wz-row-title { font-size: 0.85rem; }
  .wz-row-body .wz-row-price { display: block; font-size: 0.75rem; margin-top: 0.1rem; }
}
@media (min-width: 481px) { .wz-row-body .wz-row-price { display: none; } }

/* Step 3 note */
.wz-note-label {
  display: flex; gap: 0.35rem; align-items: baseline;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary); margin: 1.5rem 0 0.5rem;
}
.wz-note-opt { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-muted); }
.wz-note {
  width: 100%; padding: 0.9rem 1rem; border-radius: 1rem;
  border: 1px solid var(--border-strong); background: var(--bg-overlay);
  color: var(--text-primary); font-size: 0.9rem; font-family: inherit;
  resize: vertical; min-height: 5.5rem; outline: none; transition: border-color 0.2s;
}
html.light .wz-note { background: #f7f8ff; }
.wz-note:focus { border-color: var(--accent-hover); box-shadow: 0 0 0 3px var(--accent-soft); }
.wz-note::placeholder { color: var(--text-muted); }
.wz-hint {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 1rem;
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem; color: var(--text-secondary);
}

/* Nav */
.wz-nav {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.wz-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.1rem; border-radius: 0.9rem;
  border: 1px solid var(--border-strong); background: var(--bg-overlay);
  color: var(--text-primary); font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
html.light .wz-back { background: #f0eeff; }
.wz-back:hover { border-color: var(--accent-border); }
.wz-nav-hint { font-size: 0.75rem; color: var(--text-muted); }
.wz-next { margin-left: auto; padding: 0.85rem 1.5rem; border-radius: 0.9rem; font-size: 0.9rem; border: 0; cursor: pointer; }
.wz-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
@media (max-width: 1023px) {
  .wz-nav { display: none; } /* the fixed bottom bar takes over below lg */
}

/* Receipt */
.wz-receipt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.wz-receipt-title { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.wz-reset {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  background: none; border: 0; cursor: pointer; padding: 0.25rem 0.4rem; border-radius: 0.5rem;
}
.wz-reset:hover { color: var(--text-primary); background: var(--bg-overlay); }
.wz-lines { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.wz-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: var(--text-secondary); }
.wz-line.is-base { color: var(--text-primary); font-weight: 800; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border-strong); margin-bottom: 0.25rem; }
.wz-line-name { min-width: 0; }
.wz-line-price { font-weight: 800; white-space: nowrap; color: var(--text-primary); }
.wz-line-price.free { color: #34d399; }
html.light .wz-line-price.free { color: #047857; }
.wz-line-group { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem; }
.wz-empty { font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 1.25rem 0; }
.wz-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-strong);
  font-size: 0.9rem; font-weight: 700; color: var(--text-secondary);
}
.wz-total strong {
  font-size: 1.85rem; font-weight: 900; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wz-fine { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.5rem; }
.wz-trust { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }
.wz-trust > span { display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
@media (max-width: 1023px) {
  .wz-receipt .wz-trust { display: none; }
}

/* Mobile bottom bar (< lg) — shown only while the wizard is on screen */
#wz-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
#wz-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { #wz-bar { display: none; } }
.wz-bar-inner {
  max-width: 40rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.65rem 0.65rem 0.65rem 1.1rem; border-radius: 1.4rem;
  background: rgba(17, 22, 31, 0.94); border: 1px solid var(--accent-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
html.light .wz-bar-inner { background: rgba(255,255,255,0.96); box-shadow: 0 24px 60px -20px rgba(99,76,231,0.35); }
.wz-bar-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.wz-bar-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.wz-bar-info strong { font-size: 1.3rem; font-weight: 900; color: var(--text-primary); }
.wz-bar-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.wz-bar-actions .wz-back { padding: 0.75rem 0.85rem; }
.wz-bar-actions .wz-next { margin-left: 0; padding: 0.8rem 1.15rem; font-size: 0.85rem; }
body.has-wz-bar { padding-bottom: 5.5rem; }
@media (min-width: 1024px) { body.has-wz-bar { padding-bottom: 0; } }

/* Step 3 review */
.wz-review { display: flex; flex-direction: column; gap: 0.5rem; }
.wz-review-item {
  display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1rem; border-radius: 1rem;
  background: var(--bg-overlay); border: 1px solid var(--border-subtle);
  font-size: 0.9rem; color: var(--text-primary);
}
html.light .wz-review-item { background: #f7f8ff; }
.wz-review-k { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.wz-review-v { font-weight: 700; min-width: 0; }
.wz-review-p { font-weight: 900; white-space: nowrap; color: var(--accent-hover); }
.wz-review-item.is-base { border-color: var(--accent-border); background: var(--accent-soft); }
.wz-review-item.is-base .wz-review-p { color: var(--text-primary); }
.wz-review-item.is-muted .wz-review-v { color: var(--text-muted); font-weight: 600; }
.wz-review-edit {
  font-size: 0.75rem; font-weight: 800; color: var(--accent-hover); background: none; border: 1px solid var(--accent-border);
  border-radius: 0.6rem; padding: 0.35rem 0.7rem; cursor: pointer;
}
.wz-review-item.is-total { background: transparent; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; margin-top: 0.25rem; padding-top: 1rem; }
.wz-review-item.is-total .wz-review-v { font-size: 1rem; color: var(--text-secondary); }
.wz-review-item.is-total .wz-review-p {
  font-size: 1.6rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (max-width: 480px) {
  .wz-review-item { grid-template-columns: 1fr auto; }
  .wz-review-k { display: none; }
}

/* Anchor targets sit below the sticky header when navigated to */
#products, #services, #features, #stats, #wz-stepper { scroll-margin-top: 5.5rem; }

/* Choice rows (pick one of N, e.g. support duration) */
.wz-row-choice { cursor: default; flex-wrap: wrap; }
.wz-row-choice:hover { border-color: var(--border-strong); }
.wz-row-choice.on:hover { border-color: var(--accent-hover); }
.wz-row-kind { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-left: 0.15rem; }
.wz-seg { display: inline-flex; gap: 0.35rem; flex-shrink: 0; margin-left: auto; }
.wz-seg-btn {
  display: flex; flex-direction: column; align-items: center; line-height: 1.1;
  padding: 0.45rem 0.8rem; border-radius: 0.75rem;
  border: 2px solid var(--border-strong); background: var(--bg-raised);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.wz-seg-btn:hover { border-color: var(--accent-border); }
.wz-seg-btn.on { border-color: var(--accent-hover); background: linear-gradient(135deg, var(--accent-hover), var(--accent-alt)); color: #fff; }
.wz-seg-title { font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.wz-seg-price { font-size: 0.68rem; font-weight: 800; color: var(--accent-hover); }
.wz-seg-btn.on .wz-seg-price { color: rgba(255,255,255,0.85); }
@media (max-width: 480px) {
  .wz-row-choice .wz-row-body { flex-basis: calc(100% - 3.35rem); }
  .wz-seg { width: 100%; margin-left: 0; margin-top: 0.25rem; }
  .wz-seg-btn { flex: 1; flex-direction: row; justify-content: center; gap: 0.35rem; }
}
