/* ============================================================
   DIAGNOSTICO DE AUTOMAÇÃO + PROPOSTA — page styles
   Loaded as static <link> stylesheet (bypasses Astro scoping
   so it matches both server-rendered and client-rendered
   elements). All selectors namespaced with .diag-*.
   ============================================================ */

/* ---------- Layout primitives ---------- */
.diag { position: relative; min-height: 100vh; padding: 60px 0 96px; overflow: hidden; }
.diag-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.diag-container--narrow { max-width: 560px; }
.diag-container--quiz   { max-width: 760px; }

/* ---------- Aurora background ---------- */
.diag-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.diag-blob { position: absolute; border-radius: 50%; filter: blur(140px); }
.diag-blob--1 { width: 620px; height: 620px; top: -200px; left: -150px; background: radial-gradient(circle, #8a2bd6, transparent 70%); opacity: 0.32; }
.diag-blob--2 { width: 480px; height: 480px; bottom: -150px; right: -100px; background: radial-gradient(circle, #6a1ab0, transparent 70%); opacity: 0.28; }
html[data-theme="light"] .diag-blob { opacity: 0.16; }

/* ---------- Stage system ---------- */
.diag-stage { display: none; animation: diag-stage-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.diag-stage.is-active { display: block; }
.diag-stage[hidden] { display: none !important; }
@keyframes diag-stage-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.diag-btn-primary, .diag-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  line-height: 1.2;
}
.diag-btn-primary {
  background: linear-gradient(135deg, #b855ff 0%, #8a2bd6 50%, #6a1ab0 100%);
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(138, 43, 214, 0.4);
}
.diag-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(138, 43, 214, 0.55); filter: brightness(1.06); }
html[data-theme="light"] .diag-btn-primary { background: linear-gradient(135deg, #8a2bd6 0%, #6a1ab0 50%, #4a0e80 100%); box-shadow: 0 10px 26px rgba(106, 26, 176, 0.32); }
html[data-theme="light"] .diag-btn-primary:hover { box-shadow: 0 14px 32px rgba(106, 26, 176, 0.45); }

.diag-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.diag-btn-ghost:hover { color: var(--text-primary); border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.05); }
html[data-theme="light"] .diag-btn-ghost:hover { background: rgba(106, 26, 176, 0.04); border-color: var(--rh-purple-deep); }

.diag-btn-block { width: 100%; padding: 16px 26px; font-size: 16px; }

/* ---------- Eyebrow / kicker ---------- */
.diag-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(138, 43, 214, 0.08);
  border: 1px solid rgba(138, 43, 214, 0.22);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rh-purple);
}
html[data-theme="light"] .diag-eyebrow { color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.05); border-color: rgba(106, 26, 176, 0.18); }
.diag-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--rh-purple); box-shadow: 0 0 0 0 rgba(138, 43, 214, 0.7); animation: diag-pulse 2s infinite; }
@keyframes diag-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(138, 43, 214, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(138, 43, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 43, 214, 0); }
}

.diag-grad { background: linear-gradient(135deg, #b855ff 0%, #8a2bd6 50%, #6a1ab0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .diag-grad { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }

/* ============================================================
   STAGE 1 — HERO
   ============================================================ */
.diag-stage--hero { padding: 72px 0 56px; text-align: center; }
.diag-stage--hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.025em; margin: 22px auto 22px; font-weight: 800; max-width: 920px; color: var(--text-primary); }
.diag-lead { font-size: 18px; line-height: 1.55; color: var(--text-secondary); margin: 0 auto 44px; max-width: 720px; }
.diag-lead strong { color: var(--text-primary); font-weight: 600; }

.diag-teaser {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: fit-content;
  padding: 22px 40px;
  margin: 0 auto 28px;
  background: linear-gradient(180deg, rgba(138, 43, 214, 0.08), transparent 70%), var(--bg-card);
  border: 1.5px solid rgba(138, 43, 214, 0.3);
  border-radius: 18px;
  position: relative;
}

/* Hero CTA — visually dominant, the calculator's main entry point. */
.diag-stage--hero .diag-btn-primary {
  padding: 18px 38px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: -0.005em;
  box-shadow: 0 16px 44px rgba(138, 43, 214, 0.55);
  animation: diag-hero-cta-glow 2.6s ease-in-out infinite;
}
.diag-stage--hero .diag-btn-primary svg { width: 18px; height: 18px; }
.diag-stage--hero .diag-btn-primary:hover { box-shadow: 0 20px 52px rgba(138, 43, 214, 0.7); }
html[data-theme="light"] .diag-stage--hero .diag-btn-primary { box-shadow: 0 16px 44px rgba(106, 26, 176, 0.42); }
html[data-theme="light"] .diag-stage--hero .diag-btn-primary:hover { box-shadow: 0 20px 52px rgba(106, 26, 176, 0.6); }

@keyframes diag-hero-cta-glow {
  0%, 100% { box-shadow: 0 16px 44px rgba(138, 43, 214, 0.45); }
  50%      { box-shadow: 0 18px 56px rgba(138, 43, 214, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .diag-stage--hero .diag-btn-primary { animation: none; }
}
html[data-theme="light"] .diag-teaser { background: linear-gradient(180deg, rgba(106, 26, 176, 0.05), transparent 70%), var(--bg-card); border-color: rgba(106, 26, 176, 0.22); }
.diag-teaser-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.diag-teaser-amount {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .diag-teaser-amount { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }
.diag-teaser-foot { font-size: 12.5px; color: var(--text-muted); max-width: 360px; line-height: 1.4; }

.diag-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; list-style: none; margin: 32px 0 0; padding: 0; }
.diag-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.diag-trust li svg { color: var(--rh-purple); flex-shrink: 0; }
html[data-theme="light"] .diag-trust li svg { color: var(--rh-purple-deep); }

/* ============================================================
   PROGRESS BAR (above quiz)
   ============================================================ */
.diag-progress { padding: 0 0 28px; }
.diag-progress-inner { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.diag-progress-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; text-align: center; }
.diag-progress-track { height: 6px; background: var(--border-subtle); border-radius: 999px; overflow: hidden; }
.diag-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, #b855ff, #6a1ab0); border-radius: 999px; transition: width 380ms cubic-bezier(0.22, 1, 0.36, 1); }
html[data-theme="light"] .diag-progress-fill { background: linear-gradient(90deg, #6a1ab0, #4a0e80); }

/* ============================================================
   STAGE 2 — QUIZ
   ============================================================ */
.diag-q { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 22px; padding: 44px 44px 32px; box-shadow: 0 18px 40px rgba(13, 10, 31, 0.18); }
html[data-theme="light"] .diag-q { box-shadow: 0 18px 40px rgba(13, 10, 31, 0.06); }
.diag-q-head { margin-bottom: 28px; }
.diag-q-head h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px; color: var(--text-primary); font-weight: 800; }
.diag-q-head p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.diag-q-body { margin-bottom: 28px; }
.diag-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }

/* Pick list (radio cards) */
.diag-picklist { display: flex; flex-direction: column; gap: 8px; }
.diag-pickitem {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: all 180ms ease;
}
html[data-theme="light"] .diag-pickitem { background: rgba(13, 10, 31, 0.02); }
.diag-pickitem:hover { border-color: rgba(138, 43, 214, 0.4); transform: translateY(-1px); }
.diag-pickitem.is-on { border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.07); box-shadow: 0 4px 14px rgba(138, 43, 214, 0.18); }
html[data-theme="light"] .diag-pickitem.is-on { background: rgba(106, 26, 176, 0.05); border-color: var(--rh-purple-deep); }

.diag-pickitem-radio { width: 20px; height: 20px; border: 2px solid var(--border-default); border-radius: 50%; flex-shrink: 0; position: relative; transition: all 180ms ease; }
.diag-pickitem.is-on .diag-pickitem-radio { border-color: var(--rh-purple); }
.diag-pickitem.is-on .diag-pickitem-radio::after { content: ''; position: absolute; inset: 3px; background: var(--rh-purple); border-radius: 50%; }
html[data-theme="light"] .diag-pickitem.is-on .diag-pickitem-radio { border-color: var(--rh-purple-deep); }
html[data-theme="light"] .diag-pickitem.is-on .diag-pickitem-radio::after { background: var(--rh-purple-deep); }

.diag-pickitem-body { flex: 1; min-width: 0; }
.diag-pickitem-body strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.diag-pickitem-body em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* Volume slider */
.diag-volume { display: flex; flex-direction: column; gap: 22px; padding: 4px 0; }
.diag-volume-display { text-align: center; }
.diag-volume-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.diag-volume-amount {
  display: block;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .diag-volume-amount { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }
.diag-volume-unit { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

.diag-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px;
  background: linear-gradient(90deg, rgba(138, 43, 214, 0.22), rgba(138, 43, 214, 0.06));
  border: 1px solid var(--border-subtle); border-radius: 999px; outline: none; cursor: pointer;
  padding: 0; margin: 0;
}
html[data-theme="light"] .diag-range { background: linear-gradient(90deg, rgba(106, 26, 176, 0.16), rgba(106, 26, 176, 0.04)); }
.diag-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(138, 43, 214, 0.55); cursor: pointer;
  transition: transform 150ms ease;
}
.diag-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.diag-range::-moz-range-thumb {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(138, 43, 214, 0.55); cursor: pointer;
}
html[data-theme="light"] .diag-range::-webkit-slider-thumb { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }
html[data-theme="light"] .diag-range::-moz-range-thumb     { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }

.diag-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.diag-chip {
  padding: 7px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; font-family: inherit; transition: all 150ms ease;
}
.diag-chip:hover { border-color: rgba(138, 43, 214, 0.4); color: var(--text-primary); }
.diag-chip.is-on { background: rgba(138, 43, 214, 0.1); border-color: var(--rh-purple); color: var(--rh-purple); }
html[data-theme="light"] .diag-chip.is-on { background: rgba(106, 26, 176, 0.06); border-color: var(--rh-purple-deep); color: var(--rh-purple-deep); }

/* Segmented control + numeric pair */
.diag-segment { display: flex; gap: 4px; padding: 4px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; margin-bottom: 18px; }
.diag-segbtn {
  flex: 1; padding: 12px 16px;
  background: transparent; border: 0; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
  transition: all 180ms ease;
}
.diag-segbtn:hover { color: var(--text-primary); }
.diag-segbtn.is-on { background: linear-gradient(135deg, #b855ff, #6a1ab0); color: #fff; box-shadow: 0 4px 14px rgba(138, 43, 214, 0.35); }
html[data-theme="light"] .diag-segbtn.is-on { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }

.diag-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diag-numfield { display: flex; flex-direction: column; gap: 8px; }
.diag-numfield-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.diag-numfield input[type="number"] {
  width: 100%; padding: 14px 16px;
  background: var(--bg-card); border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 18px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  -moz-appearance: textfield; appearance: textfield;
  transition: border-color 150ms ease, background 150ms ease;
}
.diag-numfield input[type="number"]:focus { outline: none; border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.04); }
html[data-theme="light"] .diag-numfield input[type="number"]:focus { border-color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.03); }
.diag-numfield input[type="number"]::-webkit-outer-spin-button,
.diag-numfield input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.diag-help { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }

/* Areas multi-pick */
.diag-areas-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.diag-area {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; padding-right: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  text-align: left; cursor: pointer; font-family: inherit; color: inherit;
  transition: all 180ms ease;
}
html[data-theme="light"] .diag-area { background: rgba(13, 10, 31, 0.02); }
.diag-area:hover { border-color: rgba(138, 43, 214, 0.4); transform: translateY(-1px); }
.diag-area.is-on { border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.07); box-shadow: 0 4px 14px rgba(138, 43, 214, 0.18); }
html[data-theme="light"] .diag-area.is-on { background: rgba(106, 26, 176, 0.05); border-color: var(--rh-purple-deep); }
.diag-area-icon {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: rgba(138, 43, 214, 0.12); color: var(--rh-purple);
  border-radius: 10px; flex-shrink: 0;
}
html[data-theme="light"] .diag-area-icon { color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.08); }
.diag-area.is-on .diag-area-icon { background: linear-gradient(135deg, #b855ff, #6a1ab0); color: #fff; }
.diag-area-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.diag-area-body strong { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.diag-area-body em { font-style: normal; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.diag-area-ref { font-size: 11.5px; color: var(--rh-purple); font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.diag-area-ref em { font-style: normal; color: var(--text-muted); font-weight: 500; font-family: inherit; margin-left: 4px; }
html[data-theme="light"] .diag-area-ref { color: var(--rh-purple-deep); }
.diag-area-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-default); border-radius: 50%;
  color: transparent; transition: all 180ms ease;
}
.diag-area.is-on .diag-area-check { background: var(--rh-purple); border-color: var(--rh-purple); color: #fff; }
html[data-theme="light"] .diag-area.is-on .diag-area-check { background: var(--rh-purple-deep); border-color: var(--rh-purple-deep); }

/* ============================================================
   STAGE 3 — DIAGNOSE (loss)
   ============================================================ */
.diag-result-head { text-align: center; margin: 20px auto 36px; max-width: 760px; }
.diag-result-head h2 { font-size: clamp(20px, 2.5vw, 26px); margin: 16px 0 10px; color: var(--text-secondary); font-weight: 600; letter-spacing: -0.005em; }
.diag-loss-amount {
  display: block;
  font-size: clamp(56px, 10vw, 110px);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #b855ff, #8a2bd6 50%, #6a1ab0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 8px 0;
}
html[data-theme="light"] .diag-loss-amount { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }
.diag-loss-cycle { font-size: 16px; color: var(--text-muted); margin: 0 0 20px; }
.diag-loss-year { font-size: 15px; color: var(--text-secondary); margin: 0; padding: 14px 22px; background: rgba(138, 43, 214, 0.06); border: 1px dashed rgba(138, 43, 214, 0.25); border-radius: 12px; display: inline-block; }
html[data-theme="light"] .diag-loss-year { background: rgba(106, 26, 176, 0.04); border-color: rgba(106, 26, 176, 0.2); }
.diag-loss-year strong { color: var(--text-primary); font-weight: 700; font-family: 'JetBrains Mono', monospace; }

.diag-loss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto 36px; max-width: 1080px; }
.diag-loss-card { padding: 22px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }
.diag-loss-card header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-subtle); }
.diag-loss-card-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.diag-loss-card header strong { font-size: 22px; font-weight: 800; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; letter-spacing: -0.015em; }
.diag-loss-card p { font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

.diag-disclaimer {
  display: flex; align-items: flex-start; gap: 8px;
  max-width: 760px; margin: 0 auto 28px;
  padding: 14px 18px;
  background: rgba(138, 43, 214, 0.04);
  border: 1px solid rgba(138, 43, 214, 0.15);
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-secondary);
}
html[data-theme="light"] .diag-disclaimer { background: rgba(106, 26, 176, 0.03); border-color: rgba(106, 26, 176, 0.14); }
.diag-disclaimer svg { color: var(--rh-purple); flex-shrink: 0; margin-top: 2px; }
html[data-theme="light"] .diag-disclaimer svg { color: var(--rh-purple-deep); }

.diag-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============================================================
   STAGE 4 — CAPTURE
   ============================================================ */
.diag-form { display: flex; flex-direction: column; gap: 16px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 22px; padding: 32px; box-shadow: 0 18px 40px rgba(13, 10, 31, 0.18); }
html[data-theme="light"] .diag-form { box-shadow: 0 18px 40px rgba(13, 10, 31, 0.06); }
.diag-field { display: flex; flex-direction: column; gap: 6px; }
.diag-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.diag-field input {
  padding: 14px 16px;
  background: rgba(138, 43, 214, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  color: var(--text-primary); font-family: inherit;
  transition: border-color 150ms ease, background 150ms ease;
}
html[data-theme="light"] .diag-field input { background: rgba(106, 26, 176, 0.025); }
.diag-field input:focus { outline: none; border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.06); }
html[data-theme="light"] .diag-field input:focus { border-color: var(--rh-purple-deep); background: rgba(106, 26, 176, 0.04); }
.diag-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); margin-top: 4px; }
.diag-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--rh-purple); }
.diag-consent a { color: var(--rh-purple); text-decoration: none; font-weight: 600; }
.diag-consent a:hover { text-decoration: underline; }
html[data-theme="light"] .diag-consent a { color: var(--rh-purple-deep); }
.diag-capture-sub { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 14px auto 0; max-width: 480px; }

/* ============================================================
   STAGE 5 — PROPOSAL
   ============================================================ */
.diag-proposal-head { text-align: center; margin-bottom: 40px; }
.diag-proposal-meta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.diag-proposal-date { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.diag-proposal-head h2 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; color: var(--text-primary); font-weight: 800; }
.diag-proposal-summary { font-size: 17px; line-height: 1.55; color: var(--text-secondary); max-width: 680px; margin: 0 auto; }
.diag-proposal-summary strong { color: var(--text-primary); font-weight: 700; }

.diag-areas, .diag-tiers, .diag-roi, .diag-included { margin-bottom: 36px; }
.diag-areas-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }

.diag-areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.diag-area-card { padding: 22px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }
.diag-area-card-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px dashed var(--border-subtle); margin-bottom: 14px; }
.diag-area-card-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: linear-gradient(135deg, #b855ff, #6a1ab0); color: #fff; border-radius: 10px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(138, 43, 214, 0.3); }
html[data-theme="light"] .diag-area-card-icon { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }
.diag-area-card-head strong { display: block; font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.diag-area-card-head em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.diag-area-card-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
.diag-area-card-price > span { font-size: 17px; font-weight: 800; color: var(--rh-purple); font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
html[data-theme="light"] .diag-area-card-price > span { color: var(--rh-purple-deep); }
.diag-area-card-price em { font-style: normal; font-size: 10.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; }
.diag-area-card-meta { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.diag-area-card-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
.diag-area-card-meta dt { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.diag-area-card-meta dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }

.diag-empty { padding: 28px; text-align: center; background: var(--bg-card); border: 1px dashed var(--border-default); border-radius: 14px; color: var(--text-muted); font-size: 14px; }

/* Tiers */
.diag-tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.diag-tier {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit; color: inherit;
  transition: all 200ms ease;
}
.diag-tier:hover { border-color: rgba(138, 43, 214, 0.4); transform: translateY(-2px); }
.diag-tier.is-active { border-color: var(--rh-purple); background: rgba(138, 43, 214, 0.06); box-shadow: 0 8px 22px rgba(138, 43, 214, 0.22); }
html[data-theme="light"] .diag-tier.is-active { background: rgba(106, 26, 176, 0.04); border-color: var(--rh-purple-deep); box-shadow: 0 8px 22px rgba(106, 26, 176, 0.18); }
.diag-tier--featured { border-color: rgba(138, 43, 214, 0.5); }
.diag-tier-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(138, 43, 214, 0.4);
  white-space: nowrap;
}
html[data-theme="light"] .diag-tier-tag { background: linear-gradient(135deg, #6a1ab0, #4a0e80); }
.diag-tier-label { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.diag-tier-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.diag-tier-price {
  margin-top: 6px;
  font-size: 26px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #b855ff, #6a1ab0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .diag-tier-price { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }

.diag-tiers-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(255, 122, 0, 0.06);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-secondary);
}
.diag-tiers-note svg { color: #ff7a00; flex-shrink: 0; margin-top: 2px; }
.diag-tiers-note strong { color: var(--text-primary); font-weight: 700; }
html[data-theme="light"] .diag-tiers-note { background: rgba(255, 122, 0, 0.05); border-color: rgba(255, 122, 0, 0.18); }
html[data-theme="light"] .diag-tiers-note svg { color: #d96400; }

/* ROI block */
.diag-roi { padding: 26px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px; }
.diag-roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.diag-roi-cell { padding: 16px 18px; background: rgba(138, 43, 214, 0.05); border: 1px solid rgba(138, 43, 214, 0.18); border-radius: 12px; }
html[data-theme="light"] .diag-roi-cell { background: rgba(106, 26, 176, 0.04); border-color: rgba(106, 26, 176, 0.16); }
.diag-roi-cell span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.diag-roi-cell strong { display: block; font-size: 22px; font-weight: 800; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; line-height: 1.1; letter-spacing: -0.015em; }
.diag-roi-cell--net { background: linear-gradient(135deg, rgba(138, 43, 214, 0.18), rgba(106, 26, 176, 0.12)); border-color: rgba(138, 43, 214, 0.3); }
.diag-roi-cell--net strong { background: linear-gradient(135deg, #d08cff, #8a2bd6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .diag-roi-cell--net strong { background: linear-gradient(135deg, #6a1ab0, #4a0e80); -webkit-background-clip: text; background-clip: text; }
.diag-roi-payback { margin: 0; padding-top: 16px; border-top: 1px dashed var(--border-subtle); font-size: 14px; color: var(--text-secondary); }
.diag-roi-payback strong { color: var(--rh-purple); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
html[data-theme="light"] .diag-roi-payback strong { color: var(--rh-purple-deep); }
.diag-roi-payback em { font-style: italic; color: var(--text-muted); margin-left: 6px; }

/* Included */
.diag-included { padding: 24px; background: rgba(138, 43, 214, 0.04); border: 1px solid rgba(138, 43, 214, 0.18); border-radius: 18px; }
html[data-theme="light"] .diag-included { background: rgba(106, 26, 176, 0.03); border-color: rgba(106, 26, 176, 0.14); }
.diag-included-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.diag-included-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.diag-included-list li svg { color: var(--rh-purple); flex-shrink: 0; margin-top: 2px; }
html[data-theme="light"] .diag-included-list li svg { color: var(--rh-purple-deep); }
.diag-included-list strong { color: var(--text-primary); font-weight: 700; }

.diag-cta-row--final { gap: 14px; padding-top: 36px; border-top: 1px solid var(--border-subtle); margin-top: 36px; }
.diag-cta-wpp { padding: 14px 28px; font-size: 15px; gap: 12px; }
.diag-cta-wpp-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.diag-cta-wpp-body strong { font-weight: 700; font-size: 15px; color: #fff; }
.diag-cta-wpp-body em { font-style: normal; font-size: 11.5px; font-weight: 500; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }

.diag-form-foot { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 8px 0 0; text-align: center; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .rollin-navbar, .rh4-hd, .rh-mobile-header, .rh-mobile-bottom-nav,
  .nikko-launcher, .helo-bar, .hello-bar, .rollin-footer-v2,
  .diag-stage:not([data-stage="proposal"]),
  .diag-progress, .diag-aurora, .diag-cta-row--final {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  .diag-stage[data-stage="proposal"] { display: block !important; padding: 0 !important; }
  .diag-area-card, .diag-tier, .diag-roi, .diag-included, .diag-form {
    box-shadow: none !important; break-inside: avoid;
  }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .diag-areas-grid { grid-template-columns: 1fr; }
  .diag-loss-grid { grid-template-columns: 1fr; }
  .diag-tiers-grid { grid-template-columns: 1fr; }
  .diag-roi-grid { grid-template-columns: 1fr; }
  .diag-included-list { grid-template-columns: 1fr; }
  .diag-areas-pick { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .diag { padding: 40px 0 72px; }
  .diag-container { padding: 0 18px; }
  .diag-progress-inner { padding: 0 18px; }
  .diag-stage--hero { padding: 48px 0 32px; }
  .diag-q { padding: 28px 22px 24px; border-radius: 18px; }
  .diag-q-foot { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .diag-q-foot .diag-btn-primary, .diag-q-foot .diag-btn-ghost { width: 100%; }
  .diag-pair { grid-template-columns: 1fr; }
  .diag-form { padding: 24px 20px; border-radius: 18px; }
  .diag-cta-row { flex-direction: column-reverse; align-items: stretch; }
  .diag-cta-row .diag-btn-primary, .diag-cta-row .diag-btn-ghost { width: 100%; }
  .diag-teaser { padding: 22px 24px; }
  .diag-area-card-head { grid-template-columns: 38px 1fr; }
  .diag-area-card-price { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; justify-content: flex-start; padding-top: 4px; }
  .diag-area-card-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .diag-area-card-meta dd { padding-left: 0; }
  .diag-segment { flex-direction: column; }
}
