/* =====================================================
   APP.CSS — Global Styles
   NSC Business Diagnostic | Negocios Sin Caos
   Teal / Orange Fusion Style
   ===================================================== */

@import 'tokens.css';

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--page-bg);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
button   { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Headings ── */
h1, h2, h3, .heading {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ── Section label ── */
.section-label,
#question-section-label,
.question-number,
.res-card-title,
.res-phase-name {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

/* ── Progress Bar ── */
#progress-bar-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: rgba(0,0,0,0.25);
  border-radius: 99px;
  z-index: var(--z-progress);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-bar);
  box-shadow: var(--shadow-glow-orange);
  border-radius: 99px;
  transition: width 0.4s ease;
  position: relative;
}

#progress-bar:not([style*="width: 0"]) {
  box-shadow: var(--shadow-glow-orange);
}

#progress-bar::after {
  content: attr(data-pct);
  position: absolute;
  right: 0; top: 6px;
  transform: translateX(50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#progress-bar[data-pct]:not([data-pct="0%"])::after { opacity: 1; }

/* ── App Shell ── */
#app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  padding-top: calc(2rem + 4px);
}

/* ── Screen Container ── */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-screen), transform var(--transition-screen);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.screen.active {
  display: flex;
  flex-direction: column;
  animation: screenIn var(--transition-screen) forwards;
}

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

/* ── Card ── */
.card {
  background: var(--gradient-card);
  border: 1px solid rgba(88,166,190,0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  width: 100%;
}

.card--strong { border-color: var(--panel-border-strong); }

/* ── Logo Area ── */
.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.logo-icon {
  width: 56px; height: 56px;
  background: var(--gradient-btn);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow-orange);
  font-size: 26px;
}

.logo-wordmark {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── Intro Headline ── */
.headline {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}

.headline .accent {
  color: var(--orange);
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn:active { transform: scale(0.97); transition: transform 0.1s ease; }

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  border: 1px solid #ffc45a;
  font-size: 15px;
  padding: 14px 32px;
  width: 100%;
  box-shadow: var(--shadow-glow-orange);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover { opacity: 0.9; }

.btn-primary .btn-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  margin-left: 0;
}

.btn-primary:hover .btn-arrow {
  opacity: 1;
  transform: translateX(4px);
  margin-left: 4px;
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  font-size: 13px;
  padding: 10px 20px;
  width: auto;
  flex: none;
  align-self: flex-start;
  position: relative;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width var(--transition-fast);
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-secondary:hover::after { width: 100%; background: var(--gold); }

.btn-cta {
  background: var(--gradient-btn);
  color: #fff;
  border: 1px solid #ffc45a;
  font-size: 15px;
  padding: 14px 32px;
  width: 100%;
  box-shadow: var(--shadow-glow-orange);
}

.btn-cta:hover { opacity: 0.9; }

/* ── Form Fields ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.form-group input {
  background: rgba(0,0,0,0.2);
  border: 1.5px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  padding: 12px 16px;
  height: 46px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: var(--text-soft); opacity: 0.7; }
.form-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,167,38,0.15); }

/* ── Question Screen ── */
#question-section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.question-number {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.question-text {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.answer-area {
  margin-bottom: 1.5rem;
  min-height: 100px;
}

/* ── Nav Row ── */
.nav-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.nav-row .btn-secondary { align-self: flex-start; }
.nav-row .btn-primary   { width: 100%; }

/* ── Inline Error ── */
#inline-error {
  display: none;
  background: rgba(255,90,79,0.1);
  border: 1px solid rgba(255,90,79,0.35);
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--danger);
  margin-top: 0.75rem;
}

.input-error { border-color: rgba(255,90,79,0.6) !important; }
.field-error-msg { font-size: 0.75rem; color: var(--danger); margin-top: 0.25rem; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 0.4rem;
}

/* ── Intro: Floating Orbs ── */
@media (prefers-reduced-motion: no-preference) {
  #screen-intro { overflow: hidden; position: relative; }

  .orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
  }

  .orb-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,167,38,0.06) 0%, transparent 70%);
    top: -140px; right: -120px;
    animation: orbFloat1 10s ease-in-out infinite;
  }

  .orb-2 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(7,90,114,0.4) 0%, transparent 70%);
    bottom: -80px; left: -100px;
    animation: orbFloat2 12s ease-in-out infinite;
  }

  .orb-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,167,38,0.05) 0%, transparent 70%);
    top: 40%; left: -60px;
    animation: orbFloat3 8s ease-in-out infinite;
  }

  #screen-intro .card { position: relative; z-index: 1; }

  @keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(-18px,20px) scale(1.04); }
    66%      { transform: translate(12px,-14px) scale(0.97); }
  }
  @keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%     { transform: translate(22px,-16px) scale(1.06); }
    70%     { transform: translate(-10px,18px) scale(0.96); }
  }
  @keyframes orbFloat3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(14px,-22px) scale(1.08); }
  }
}

/* ── Intro card entrance ── */
#screen-intro .card { animation: introCardIn 0.6s ease-out both; }

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

/* ══════════════════════════════════════
   ANSWER COMPONENT STYLES
══════════════════════════════════════ */

/* ── Single Choice ── */
.sc-list { display: flex; flex-direction: column; gap: 0; }

.sc-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.2);
  border: 1.5px solid rgba(88,166,190,0.4);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body); font-size: 14px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.15s;
}

.sc-option:hover {
  background: rgba(255,167,38,0.07);
  border-color: rgba(255,167,38,0.5);
}

.sc-option:hover .sc-indicator { border-color: var(--orange); }

.sc-option.selected {
  background: rgba(255,167,38,0.12);
  border: 1.5px solid var(--orange);
  color: var(--text-main);
}

.sc-indicator {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(88,166,190,0.5); background: transparent; position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.sc-option.selected .sc-indicator { border-color: var(--orange); background: var(--orange); }
.sc-option.selected .sc-indicator::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 6px; height: 6px; border-radius: 50%; background: #fff;
}

.sc-label { flex: 1; line-height: 1.4; }

/* Slide + ripple */
@keyframes scSlideIn { from { transform: translateX(0); } to { transform: translateX(4px); } }
.sc-option.sc-slide,
.ms-option.sc-slide { animation: scSlideIn 0.15s ease-out forwards; }

@keyframes rippleFade {
  0%   { opacity: 0; }
  30%  { opacity: 0.25; }
  100% { opacity: 0; transform: scale(2.2); }
}
.sc-option.ripple-active::after,
.ms-option.ripple-active::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,167,38,0.3) 0%, transparent 70%);
  animation: rippleFade 0.4s ease-out forwards; pointer-events: none;
}

/* ── Multi Select ── */
.ms-list { display: flex; flex-direction: column; gap: 0; }

.ms-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.2);
  border: 1.5px solid rgba(88,166,190,0.4);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body); font-size: 14px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.15s;
}

.ms-option:hover {
  background: rgba(255,167,38,0.07);
  border-color: rgba(255,167,38,0.5);
}

.ms-option:hover .ms-check { border-color: var(--orange); }

.ms-option.selected {
  background: rgba(255,167,38,0.12);
  border: 1.5px solid var(--orange);
  color: var(--text-main);
}

.ms-check {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 3px;
  border: 2px solid rgba(88,166,190,0.5); background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ms-option.selected .ms-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.ms-label { flex: 1; line-height: 1.4; }

/* ── Scale ── */
.scale-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.scale-btns { display: flex; gap: 4px; flex-wrap: nowrap; }

.scale-btn {
  flex: 1 1 0; min-width: 38px; height: 38px;
  padding: 0;
  border-radius: 6px;
  /* border and color set inline per ramp value */
  background: rgba(0,0,0,0.2);
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: all 0.15s;
}

.scale-btn:active { transform: scale(0.92); }

/* Selected state — dark text on colored bg */
.scale-btn.selected {
  color: #07111F !important;
  transform: scale(1.12);
  font-weight: 800;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* Pulse animation */

@keyframes scalePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1.05); }
}
.scale-btn.scale-pulse { animation: scalePulse 0.2s ease-out forwards; }

.scale-selected-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.scale-selected-label.visible { opacity: 1; transform: translateY(0); }

.scale-labels { display: flex; justify-content: space-between; gap: 0.5rem; }
.scale-label-min,
.scale-label-max { font-size: 0.7rem; color: var(--text-soft); line-height: 1.3; max-width: 45%; }
.scale-label-max { text-align: right; }

@media (max-width: 479px) {
  .scale-btn { min-width: 28px; height: 28px; font-size: 11px; }
  .scale-btns { gap: 2px; }
}

/* ── Textarea ── */
.ta-wrap { display: flex; flex-direction: column; gap: 0.5rem; }

.ta-input {
  width: 100%; min-height: 130px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  resize: vertical; outline: none; box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.ta-input::placeholder { color: var(--text-soft); }
.ta-input:focus {
  border-color: var(--orange);
  background: rgba(0,0,0,0.35);
  outline: none;
}

.ta-counter { font-size: 0.75rem; color: var(--text-soft); text-align: right; }
.ta-counter--warn { color: var(--warning); }

/* ── Ranking ── */
.rank-list { display: flex; flex-direction: column; gap: 0.5rem; user-select: none; }

.rank-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: grab;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.rank-card:active { cursor: grabbing; }
.rank-card.dragging { opacity: 0.5; transform: scale(1.02); border-color: var(--orange); box-shadow: var(--shadow-glow-orange); }
.rank-card.drag-over { border-color: var(--gold); background: rgba(255,167,38,0.08); }

.rank-handle { font-size: 1.1rem; color: var(--text-soft); flex-shrink: 0; }
.rank-num { width: 20px; text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--orange); flex-shrink: 0; }
.rank-text { flex: 1; font-size: 0.875rem; line-height: 1.4; }
.rank-ghost { opacity: 0.85; border: 1px solid var(--orange) !important; box-shadow: var(--shadow-glow-orange); }

/* ══════════════════════════════════════
   RESULTS SCREEN
══════════════════════════════════════ */

#screen-results .card {
  padding: 0; overflow: hidden;
  background: transparent; border: none; box-shadow: none;
}

#results-container {
  display: flex; flex-direction: column; gap: 1.25rem;
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: 0 0 2rem;
}

.res-badge-wrap { text-align: center; padding: 2rem 1.5rem 1rem; }

.res-category-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid; border-radius: var(--radius-full);
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem;
}

.res-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.res-headline {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* Score card */
.res-score-card {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  background: var(--gradient-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem; margin: 0 1rem;
}

.res-score-main, .res-score-raw { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.res-score-label {
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-soft);
}

.res-score-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1;
  color: var(--orange);
}

.res-score-raw-num {
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 700;
  color: var(--text-muted); line-height: 1;
}

.res-score-divider { width: 1px; height: 48px; background: var(--panel-border); }

.res-teaser {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.6; text-align: center; padding: 0 1.5rem;
}

/* Interpretation */
.res-interpretation {
  background: var(--gradient-card);
  border: 1px solid var(--panel-border);
  border-left: 3px solid;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin: 0 1rem;
}
.res-interpretation p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* Shared result card */
.res-card {
  background: var(--gradient-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.25rem; margin: 0 1rem;
}

.res-card--danger  { background: rgba(255,90,79,0.06);   border-color: rgba(255,90,79,0.25); }
.res-card--success { background: rgba(114,216,95,0.06);   border-color: rgba(114,216,95,0.25); }
.res-card--accent  { background: rgba(255,167,38,0.06);   border-color: rgba(255,167,38,0.25); }

.res-card-title {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--orange); margin-bottom: 1rem;
}

/* Section bars */
.res-section-bars { display: flex; flex-direction: column; gap: 0.875rem; }

.res-section-row { display: flex; align-items: center; gap: 0.75rem; }

.res-section-name {
  font-size: 0.75rem; color: var(--text-main);
  width: 160px; flex-shrink: 0; line-height: 1.3;
}

.res-bar-track {
  flex: 1; height: 6px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-full); overflow: hidden;
}

.res-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.6s ease; }

.res-section-label {
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  width: 44px; text-align: right; flex-shrink: 0;
}

@media (max-width: 400px) { .res-section-name { width: 110px; font-size: 0.68rem; } }

/* Signals / Strengths */
.res-signals, .res-strengths { display: flex; flex-direction: column; gap: 0.5rem; }

.res-signal-row, .res-strength-row {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.5; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.res-signal-row:last-child, .res-strength-row:last-child { border-bottom: none; }

/* Priority ranking */
.res-ranking { display: flex; flex-direction: column; gap: 0.5rem; }

.res-rank-row {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; color: var(--text-muted);
  padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.res-rank-row:last-child { border-bottom: none; }

.res-rank-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,167,38,0.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Roadmap grid */
.res-roadmap-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin: 0 1rem;
}
@media (max-width: 500px) { .res-roadmap-grid { grid-template-columns: 1fr; } }

.res-phase {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1rem;
}

.res-phase--highlight {
  border-color: var(--orange);
  background: rgba(255,167,38,0.07);
}

.res-phase-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }

.res-phase-num {
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 800;
  color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,167,38,0.15); border-radius: var(--radius-sm); padding: 0.15rem 0.4rem;
}
.res-phase--highlight .res-phase-num { background: var(--orange); color: #fff; }

.res-phase-name {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; color: var(--text-main); line-height: 1.3;
  letter-spacing: 0.02em;
}

.res-phase-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }

.res-phase-list li {
  font-size: 0.75rem; color: var(--text-muted);
  line-height: 1.4; padding-left: 0.875rem; position: relative;
}
.res-phase-list li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-size: 0.65rem; }

/* CTA section */
.res-cta-section {
  text-align: center; padding: 1.5rem 1.5rem 1rem;
  border-top: 1px solid var(--panel-border); margin-top: 0.5rem;
}

.res-cta-headline {
  font-family: var(--font-head); font-size: 1.125rem; font-weight: 800;
  text-transform: uppercase; color: var(--text-main);
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
}

.res-cta-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }

.res-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 400px; width: 100%;
  padding: 14px 32px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  background: var(--gradient-btn); color: #fff;
  border: 1px solid #ffc45a; border-radius: 7px;
  box-shadow: var(--shadow-glow-orange); text-decoration: none;
  transition: opacity var(--transition-fast);
}
.res-cta-btn:hover { opacity: 0.9; }

.res-cta-meta { font-size: 0.7rem; color: var(--text-soft); margin-top: 1rem; opacity: 0.7; }

/* ── Responsive ── */
@media (min-width: 480px) { .card { padding: 28px 32px; } }
@media (min-width: 768px) { #app { padding: 3rem 2rem; } }
