/* ============================================================
   NVC360 AI Automation — Discovery page
   Softened enterprise variant of the NVC360 dark brand.
   ============================================================ */

:root {
  /* Softer enterprise dark — lighter than the product's near-black */
  --bg-primary:        #0D1220;
  --bg-secondary:      #121A2C;
  --bg-elevated:       #17213A;
  --bg-input:          rgba(255,255,255,0.04);
  --bg-input-focus:    rgba(255,255,255,0.06);
  --bg-card:           rgba(255,255,255,0.035);

  --accent-primary:    #0EA5E9;
  --accent-secondary:  #06B6D4;
  --accent-soft:       rgba(14,165,233,0.14);
  --accent-border:     rgba(14,165,233,0.32);
  --accent-amber:      #F59E0B;
  --accent-amber-2:    #FBBF24;
  --accent-green:      #10B981;
  --accent-red:        #EF4444;

  --text-primary:      #F1F5F9;
  --text-secondary:    #CBD5E1;
  --text-muted:        #8FA0BA;
  --text-subtle:       #64748B;

  --border-subtle:     rgba(255,255,255,0.08);
  --border-medium:     rgba(255,255,255,0.14);
  --border-strong:     rgba(255,255,255,0.22);

  --grad-accent:       linear-gradient(135deg,#0EA5E9 0%,#06B6D4 100%);
  --grad-headline:     linear-gradient(135deg,#F1F5F9 0%,#0EA5E9 55%,#06B6D4 100%);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 9999px;

  --shadow-card:   0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px rgba(0,0,0,.35);
  --shadow-focus:  0 0 0 3px rgba(14,165,233,.22);
  --shadow-btn:    0 0 0 1px rgba(14,165,233,.45) inset, 0 8px 24px rgba(14,165,233,.28);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

[data-accent="amber"] {
  --accent-primary: #F59E0B;
  --accent-secondary: #FBBF24;
  --accent-soft: rgba(245,158,11,0.14);
  --accent-border: rgba(245,158,11,0.32);
  --grad-accent: linear-gradient(135deg,#F59E0B 0%,#FBBF24 100%);
  --grad-headline: linear-gradient(135deg,#F1F5F9 0%,#F59E0B 55%,#FBBF24 100%);
  --shadow-focus: 0 0 0 3px rgba(245,158,11,.22);
  --shadow-btn: 0 0 0 1px rgba(245,158,11,.45) inset, 0 8px 24px rgba(245,158,11,.28);
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations'),
       url('fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype');
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: var(--bg-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: 'cv11','ss01','ss03';
}

/* Ambient page gradient — restrained, not the hero map */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14,165,233,0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(6,182,212,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Top nav ─────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--text-primary); text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(14,165,233,.28)); }
.nav-brand-text { font-weight: 700; letter-spacing: -0.01em; font-size: 16px; }
.nav-brand-text small { display: block; font-weight: 500; font-size: 11px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.nav-aux { font-size: 13px; color: var(--text-muted); }
.nav-aux strong { color: var(--text-primary); font-weight: 600; }

/* ─── Containers ──────────────────────────────────────────── */
.page { position: relative; z-index: 1; }
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container-wide { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-primary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 20px;
  max-width: 20ch;
}
.hero h1 .accent {
  background: var(--grad-headline);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .subhead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0 0 16px;
}
.hero .support {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Variant B: with inline stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat .num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.hero-stat .lbl { font-size: 13px; color: var(--text-muted); line-height: 1.4; max-width: 24ch; }

/* Variant C: mini kpi bar */
.kpi-strip {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.kpi-strip .kpi { display: flex; align-items: baseline; gap: 10px; }
.kpi-strip .kpi b { color: var(--text-primary); font-weight: 700; font-size: 16px; }
.kpi-strip .kpi span { color: var(--text-muted); font-size: 13px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-secondary:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 14px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.arrow-r { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow-r { transform: translateX(3px); }

/* ─── Benefit strip ───────────────────────────────────────── */
.benefits {
  padding: 24px 0 12px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.benefit {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color .3s ease, transform .3s ease;
}
.benefit:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.benefit .mark {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  margin-bottom: 14px;
}
.benefit h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.benefit p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }
@media (max-width: 760px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Form shell ──────────────────────────────────────────── */
.form-shell {
  margin: clamp(40px, 6vw, 72px) auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.form-progress {
  padding: 24px clamp(24px, 4vw, 40px) 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.progress-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.progress-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12.5px;
  color: var(--text-subtle);
  letter-spacing: -0.005em;
  min-width: 0;
}
.progress-label .n {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: transparent; color: var(--text-subtle);
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}
.progress-label .t {
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.progress-label.is-done { color: var(--text-secondary); }
.progress-label.is-done .n {
  background: var(--accent-soft); color: var(--accent-primary); border-color: var(--accent-border);
}
.progress-label.is-current { color: var(--text-primary); }
.progress-label.is-current .n {
  background: var(--grad-accent); color: #fff; border-color: transparent;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.progress-bar {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-accent);
  transition: width .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .progress-label .t { display: none; }
  .progress-labels { grid-template-columns: repeat(5, auto); justify-content: space-between; }
}

.form-body { padding: clamp(28px, 5vw, 48px) clamp(24px, 4vw, 40px); }
.step-header { margin-bottom: 32px; }
.step-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 10px; }
.step-title { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 10px; line-height: 1.2; }
.step-intro { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.6; max-width: 62ch; }

/* ─── Fields ──────────────────────────────────────────────── */
.field { margin-bottom: 24px; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.field-label .req { color: var(--accent-primary); margin-left: 4px; font-weight: 700; }
.field-label .opt {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-subtle);
  padding: 2px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}
.field-help { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }

.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 110px; resize: vertical; padding: 12px 14px; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  background: var(--bg-input-focus);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }

.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%238FA0BA' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Field grid (multi-col on wide) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* Checkbox / radio pills */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.choice {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.choice:hover { border-color: var(--border-strong); color: var(--text-primary); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  width: 18px; height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  flex-shrink: 0;
  transition: all .15s ease;
}
.choice[data-shape="radio"] .box { border-radius: 50%; }
.choice .box svg { opacity: 0; transform: scale(0.6); transition: all .15s ease; }
.choice.is-checked {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
}
.choice.is-checked .box {
  background: var(--grad-accent);
  border-color: transparent;
}
.choice.is-checked .box svg { opacity: 1; transform: scale(1); color: #fff; }
.choice.is-disabled { opacity: 0.45; cursor: not-allowed; }

.choice-limit { font-size: 12px; color: var(--text-subtle); margin-top: 8px; }

/* Severity pills (segmented) */
.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
}
.segmented .seg {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.segmented .seg:hover { color: var(--text-primary); }
.segmented .seg.is-checked {
  background: var(--grad-accent);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 520px) { .segmented { grid-template-columns: repeat(2, 1fr); } }

/* Conditional deep-dive block (inline variant) */
.deepdive {
  margin-top: 12px;
  padding: 24px;
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14,165,233,.05), rgba(14,165,233,0));
  position: relative;
}
[data-accent="amber"] .deepdive {
  background: linear-gradient(180deg, rgba(245,158,11,.05), rgba(245,158,11,0));
}
.deepdive-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
}
.deepdive-header .pill {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
}

/* Accordion variant */
.deepdive[data-variant="accordion"] { padding: 0; border-style: solid; }
.deepdive[data-variant="accordion"] > .deepdive-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  color: var(--accent-primary);
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.deepdive[data-variant="accordion"] > .deepdive-content { display: none; padding: 0 24px 24px; }
.deepdive[data-variant="accordion"].is-open > .deepdive-content { display: block; }
.deepdive[data-variant="accordion"] .chev { transition: transform .2s ease; }
.deepdive[data-variant="accordion"].is-open .chev { transform: rotate(180deg); }

/* File upload */
.upload {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.upload .icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.upload-text { font-size: 14px; color: var(--text-secondary); }
.upload-text small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }

/* Nav buttons row */
.form-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}
.form-nav .right { display: flex; gap: 10px; }
.step-meta { font-size: 13px; color: var(--text-muted); }

/* Review screen */
.review-section {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.review-section h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
}
.review-section h3 .edit {
  font-size: 12px; font-weight: 500;
  color: var(--accent-primary);
  cursor: pointer;
  background: none; border: none; padding: 0;
  font-family: inherit;
}
.review-section h3 .edit:hover { text-decoration: underline; }
.review-section .kicker { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.review-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 12px 24px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}
.review-item:first-of-type { border-top: none; padding-top: 0; }
.review-item .k { color: var(--text-muted); }
.review-item .v { color: var(--text-primary); word-break: break-word; }
.review-item .v.empty { color: var(--text-subtle); font-style: italic; }
.review-item .v ul { margin: 0; padding-left: 0; list-style: none; }
.review-item .v li { position: relative; padding-left: 16px; }
.review-item .v li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--accent-primary); border-radius: 50%; }
@media (max-width: 560px) { .review-item { grid-template-columns: 1fr; gap: 4px; } }

/* Thank-you */
.thankyou {
  padding: clamp(48px, 8vw, 80px) clamp(24px, 4vw, 40px);
  text-align: center;
}
.thankyou .checkmark {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(14,165,233,.18);
}
.thankyou h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 24ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.2;
}
.thankyou p { color: var(--text-secondary); max-width: 56ch; margin: 0 auto 32px; font-size: 16px; line-height: 1.65; }
.thankyou .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thankyou .meta {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 40px clamp(20px, 4vw, 40px) 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text-primary); }

/* ─── Error + focus ───────────────────────────────────────── */
.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select,
.field.has-error .segmented,
.field.has-error .choice-grid { border-color: var(--accent-red); }
.field.has-error .segmented { box-shadow: 0 0 0 1px var(--accent-red); }
.error-msg {
  font-size: 12.5px;
  color: var(--accent-red);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}

/* Scroll accessibility */
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-radius: 6px; }

/* ─── Tweaks panel ────────────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(14,165,233,.08);
  padding: 18px;
  z-index: 100;
  font-size: 13px;
  display: none;
  backdrop-filter: blur(20px) saturate(180%);
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 700;
}
.tweak { margin-bottom: 14px; }
.tweak:last-child { margin-bottom: 0; }
.tweak-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.tweak-group { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.tweak-opt:hover { color: var(--text-primary); border-color: var(--border-strong); }
.tweak-opt.is-on {
  background: var(--grad-accent); color: #fff; border-color: transparent;
}
.tweak-toggle {
  width: 40px; height: 22px; border-radius: 22px;
  background: var(--border-medium); position: relative; cursor: pointer;
  transition: background .2s ease;
}
.tweak-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.tweak-toggle.is-on { background: var(--accent-primary); }
.tweak-toggle.is-on::after { transform: translateX(18px); }
.tweak-row { display: flex; align-items: center; justify-content: space-between; }

/* Utility */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.hidden { display: none !important; }

/* Animate step transitions */
.step { animation: stepIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  * { transition: none !important; }
}
