/* ============================================================
   BOOST MON CV — Design System v2
   Light premium theme · Glassmorphism · Micro-animations
   ============================================================ */

/* ===== 1. TOKENS ===== */
@property --score {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --bg: #eef2fc;
  --surface: #ffffff;
  --surface-2: #f5f8ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #94a3b8;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.15);
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-dim: rgba(34, 197, 94, 0.1);
  --accent-glow: rgba(34, 197, 94, 0.22);
  --red: #dc2626;
  --red-dim: rgba(220, 38, 38, 0.1);
  --amber: #d97706;
  --amber-dim: rgba(217, 119, 6, 0.1);
  --blue: #2563eb;
  --blue-dim: rgba(37, 99, 235, 0.1);
  --shadow: 0 24px 64px rgba(99, 115, 164, 0.14);
  --shadow-sm: 0 4px 20px rgba(99, 115, 164, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.25s;
}

/* ===== 2. RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100vw;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
}

h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }

/* ===== 3. AMBIENT BACKGROUND ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(99, 160, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 105%, rgba(34, 197, 94, 0.07) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
}

/* Grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

/* ===== 4. TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 242, 252, 0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--t) var(--ease);
}

.brand:hover { opacity: 0.8; }

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 18px var(--accent-glow);
  flex-shrink: 0;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.brand {
  grid-column: 1;
  justify-self: start;
}

.top-banner {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 640px);
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px rgba(99, 115, 164, 0.08);
}

.top-banner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.top-banner p.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.top-banner p.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 5. LAYOUT ===== */
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== 6. HERO ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 52px 0 44px;
}

.hero-copy {
  max-width: 580px;
  animation: fadeUp 0.75s var(--ease) both;
}

.eyebrow, .card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before, .card-kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

h1 em {
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 em.kw-ats {
  background-image: linear-gradient(95deg, #4338ca 0%, #818cf8 100%);
}

h1 em.kw-rec {
  background-image: linear-gradient(95deg, #0369a1 0%, #38bdf8 100%);
}

h1 em.kw-drh {
  background-image: linear-gradient(95deg, #15803d 0%, #4ade80 100%);
}

.hero-text {
  max-width: 500px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
}

/* Glow halo behind the form */
.hero-form-wrap {
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.75s var(--ease) 0.15s both;
}

.hero-form-wrap::before {
  content: "";
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ===== 7. ANALYZER FORM ===== */
.analyzer {
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
}

/* Top accent stripe */
.analyzer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, #34d399 65%, transparent 100%);
  opacity: 0.65;
}

.field-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.field-label-badge::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease);
}

input, select {
  min-height: 50px;
  padding: 0 16px;
}

textarea {
  min-height: 200px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.55;
}

input::placeholder { color: var(--muted); opacity: 0.6; }

input:focus, select:focus, textarea:focus, .dropzone:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: rgba(34, 197, 94, 0.04);
}

/* Dropzone */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 28px 20px;
  border: 1.5px dashed rgba(15, 23, 42, 0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease);
}

.dropzone:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.03);
}

.dropzone strong { color: var(--ink); font-size: 0.95rem; }

.dropzone small {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
  max-width: 280px;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: unset;
  border: none;
  background: none;
}

.is-dragover {
  border-color: var(--accent) !important;
  background: rgba(34, 197, 94, 0.07) !important;
}

.drop-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.25rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: transform 0.3s var(--ease-spring);
}

.dropzone:hover .drop-icon { transform: translateY(-4px); }

.dropzone small, .file-name { display: block; }

.file-name {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 24px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--t) var(--ease-spring),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease),
    opacity var(--t) var(--ease);
}

.primary-button {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 22px rgba(34, 197, 94, 0.32);
  letter-spacing: 0.015em;
  font-size: 0.95rem;
}

/* Shine sweep */
.primary-button::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left 0.6s var(--ease);
}

.primary-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.48);
}

.primary-button:not(:disabled):hover::after { left: 140%; }

.primary-button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}

.primary-button:disabled {
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.07);
  color: var(--muted);
  box-shadow: none;
}

.primary-button.is-loading {
  animation: loadingPulse 1.6s var(--ease) infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 1; }
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
}

.ghost-button:hover { background: rgba(15, 23, 42, 0.05); }

/* ===== 8. RESULTS SHELL ===== */
.results-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  padding-top: 28px;
}

.instant-verdict {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.instant-verdict[hidden] {
  display: none;
}

.instant-verdict::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #38bdf8);
  z-index: 2;
}

.instant-verdict::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(34, 197, 94, 0.07) 0%, transparent 52%);
  pointer-events: none;
}

.instant-verdict-copy,
.chance-grid,
.chance-card {
  position: relative;
  z-index: 1;
}

.instant-verdict-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px 28px 28px;
  border-right: 1px solid var(--line);
}

.instant-verdict-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-2);
}

.instant-verdict-label.tone-bad {
  background: var(--red-dim);
  color: var(--red);
}
.instant-verdict-label.tone-warn {
  background: var(--amber-dim);
  color: var(--amber);
}
.instant-verdict-label.tone-good {
  background: var(--accent-dim);
  color: var(--accent-2);
}

.instant-verdict h2 {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.chance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 20px 20px 20px 22px;
  align-items: center;
}

.chance-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.chance-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.chance-card-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.chance-card-value {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color var(--t) var(--ease);
}

.chance-card.tone-good .chance-card-value { color: var(--accent-2); }
.chance-card.tone-warn .chance-card-value { color: var(--amber); }
.chance-card.tone-bad .chance-card-value { color: var(--red); }

.chance-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.chance-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--muted);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chance-card.tone-good .chance-bar-fill { background: var(--accent); }
.chance-card.tone-warn .chance-bar-fill { background: var(--amber); }
.chance-card.tone-bad .chance-bar-fill { background: var(--red); }

/* ===== 9. SCORE PANEL ===== */
.score-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.score-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.score-ring {
  position: relative;
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  border-radius: 50%;
  margin: 4px 0 8px;
  background:
    radial-gradient(circle at center, var(--surface) 56%, transparent 57%),
    conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(99, 115, 164, 0.13) 0);
}

.score-ring.glow {
  filter: drop-shadow(0 0 16px var(--accent-glow));
}

/* Rotating decorative ring */
.score-ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(34, 197, 94, 0) 0deg,
    rgba(34, 197, 94, 0.2) 60deg,
    rgba(34, 197, 94, 0) 120deg
  );
  animation: rotateBorder 6s linear infinite;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.score-ring.glow::after { opacity: 1; }

@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.score-ring-value {
  display: grid;
  justify-items: center;
  align-content: center;
  position: relative;
  z-index: 1;
}

.score-ring-value span {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.score-ring-value small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.score-panel h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.32;
  color: var(--ink);
}

.score-panel > p {
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.88rem;
  margin: 0;
}

/* ===== 10. DIAGNOSTIC GRID ===== */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diagnostic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 158px;
  position: relative;
  overflow: hidden;
}

.diagnostic-card.revealed {
  animation: cardReveal 0.45s var(--ease) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.diagnostic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.diagnostic-card:hover {
  border-color: rgba(34, 197, 94, 0.28);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 40px rgba(99, 115, 164, 0.16), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.diagnostic-card:hover::before { opacity: 1; }

/* Override eyebrow ::before for card-kicker inside cards */
.card-kicker::before { display: none; }

.card-kicker {
  margin: 0 0 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.diagnostic-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.diagnostic-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.855rem;
  line-height: 1.62;
}

.mini-score {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(34, 197, 94, 0.18);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    transform var(--t) var(--ease-spring);
}

.diagnostic-card:hover .mini-score { transform: scale(1.08); }

/* Tone colors */
.tone-red  { color: var(--red); }
.tone-amber { color: var(--amber); }
.tone-blue  { color: var(--blue); }

.mini-score.tone-red {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.22);
}

.mini-score.tone-amber {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.22);
}

.mini-score.tone-blue {
  background: var(--blue-dim);
  color: var(--blue);
  border-color: rgba(96, 165, 250, 0.22);
}

/* ===== 11. RECOMMENDATIONS ===== */
.recommendations {
  margin-top: 16px;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.recommendations.revealed {
  opacity: 1;
  transform: translateY(0);
}

.recommendations::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.suggestion-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}

.suggestion-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(248, 251, 255, 0.85);
  line-height: 1.62;
  font-size: 0.89rem;
  color: var(--ink-2);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.suggestion-list li.revealed {
  animation: suggestionReveal 0.42s var(--ease) both;
}

@keyframes suggestionReveal {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.suggestion-list li:hover {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
  transform: translateX(3px);
}

.suggestion-list li::before {
  content: attr(data-index);
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ===== 12. REPORT EXPORT ===== */
.report-export {
  margin-top: 16px;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.report-export::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), rgba(34, 197, 94, 0.45), transparent);
}

.report-export-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 22px;
  align-items: center;
  margin-top: 20px;
}

.report-export-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.72;
}

.report-export-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 251, 255, 0.9);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.report-export-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.report-preview {
  position: relative;
}

.report-preview::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(34, 197, 94, 0.06) 42%, transparent 72%);
  pointer-events: none;
}

.report-preview-sheet {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 255, 0.92) 100%);
  box-shadow: 0 24px 48px rgba(99, 115, 164, 0.14);
  transform: rotate(-2deg);
}

.report-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-preview-brand,
.report-preview-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-preview-brand {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  color: #1d4ed8;
}

.report-preview-score {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
}

.report-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-preview-block {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.report-preview-block p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-preview-block strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.report-preview-block.accent-green {
  box-shadow: inset 3px 0 0 var(--accent);
}

.report-preview-block.accent-blue {
  box-shadow: inset 3px 0 0 var(--blue);
}

.report-preview-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.report-preview-lines span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
}

.report-preview-lines span:nth-child(1) { width: 88%; }
.report-preview-lines span:nth-child(2) { width: 100%; }
.report-preview-lines span:nth-child(3) { width: 76%; }
.report-preview-lines span:nth-child(4) { width: 92%; }

/* ===== 13. FOOTER ===== */
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 0;
  padding: 24px 0 36px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ===== 14. GLOBAL KEYFRAMES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 15. RESPONSIVE ===== */
@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .brand,
  .top-banner {
    grid-column: 1;
    justify-self: center;
  }

  .top-banner {
    width: min(100%, 720px);
    border-radius: 22px;
  }

  .hero,
  .results-shell,
  .diagnostic-grid,
  .report-export-card {
    grid-template-columns: 1fr;
  }

  .instant-verdict {
    grid-template-columns: 1fr;
  }

  .instant-verdict-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 24px 22px 26px;
  }

  .chance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 18px 18px 20px;
  }

  .hero { min-height: auto; padding: 36px 0 32px; }

  .hero-copy { max-width: 100%; }

  .score-ring { width: 148px; height: 148px; }

  .score-ring-value span { font-size: 2.9rem; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }

  .top-banner {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    justify-content: center;
  }

  .top-banner-tag {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .top-banner p {
    font-size: 0.82rem;
    text-align: center;
  }

  .instant-verdict {
    padding: 20px 18px;
  }

  .instant-verdict h2 {
    font-size: 1.3rem;
    max-width: none;
  }

  .chance-grid {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .chance-card-value {
    font-size: 2rem;
  }

  h1 { font-size: 2.2rem; }

  .button-row button { width: 100%; }

  .diagnostic-grid { grid-template-columns: 1fr; }

  .recommendations,
  .report-export { padding: 22px 18px; }

  .report-export-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .report-export-actions .primary-button { width: 100%; }

  .report-preview-sheet { transform: none; }
}
