/* ============================================================
   Forge App — styles.css
   Redesigned: 7-screen flow, dark deep-navy theme

   ─── Responsive system ───────────────────────────────────
   Mobile-first. Breakpoints:
     default  — 0-767px      (mobile, unmodified by prompts 1-5)
     768px    — tablet       (2-col where sensible)
     1024px   — desktop      (full desktop layout)
     1440px   — large        (roomier container, max 1200px)

   Content never changes — only layout adapts.
   Desktop-layout blocks live at EOF (prompts 1-5).
   ============================================================ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* Warm ivory + teal palette (Direzione C). */
  --bg:       #FAF9F6;
  --bg-alt:   #F2F0EB;
  --surface:  #FFFFFF;
  --border:   #E2DFD8;
  --divider:  #E8E5DE;
  --btn-border: #C9C5BC;
  --primary:  #0D7C6B;
  --accent:   #0D7C6B;
  --primary-hover: #0A6356;
  --tint:     #E8F5F2;
  --color-bg:               #FAF9F6;
  --color-bg-alt:           #F2F0EB;
  --color-surface:          #FFFFFF;
  --color-border:           #E2DFD8;
  --color-text:             #1A3034;
  --color-text-secondary:   #5E7A7E;
  --color-accent:           #0D7C6B;
  --color-accent-hover:     #0A6356;
  --color-accent-glow:      rgba(13, 124, 107, 0.12);
  --color-accent-secondary: #0D7C6B;
  --success:  #0D7C6B;
  --error:    #1A3034;
  --warning:  #1A3034;
  --text:     #1A3034;
  --text2:    #5E7A7E;
  --text3:    #8FA3A6;
  --radius:   14px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ─── Global header ──────────────────────────────────────── */
.global-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1A3034;
}

.version-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(13, 124, 107, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Screen system ──────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  top: 52px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scroll iOS Safari ≤12 */
  background: var(--bg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 10;
}

.screen.hidden {
  display: none !important;
}

.screen.slide-out-left {
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

.screen.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
}

.screen-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-cta {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: none;
}
.btn-cta:not(:disabled):hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(13, 124, 107, 0.2);
}
.btn-cta:disabled {
  background: var(--divider);
  color: var(--text3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #C9C5BC;
}
.btn-outline:not(:disabled):hover {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--text2);
}

/* ─── Overlay / spinner ──────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
  color: var(--text2);
  font-size: 0.9rem;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ─── Gradient text helper ───────────────────────────────── */
.gradient-text {
  color: var(--primary);
}

/* ─── Field error ────────────────────────────────────────── */
.field-error {
  color: var(--error);
  font-size: 0.82rem;
  margin: 0.4rem 0;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 1 — INTRO
   ═══════════════════════════════════════════════════════════ */
.intro-screen {
  display: block;
  position: relative;
  text-align: center;
  padding-top: 40px;
}
.intro-screen .intro-content { padding-top: 0; }

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.intro-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 6.5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
  color: var(--text);
}
.headline-gradient {
  color: var(--accent);
}

.intro-sub {
  font-family: 'DM Sans', sans-serif;
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 auto 24px;
  max-width: 34rem;
}
.intro-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 12px;
}
.intro-def {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  line-height: 1.5;
  text-align: center;
  margin: 0 auto 12px;
  max-width: 34rem;
}

/* Hero CTA button */
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  background: #0D7C6B;
  border: none;
  border-radius: 10px;
  padding: 16px 36px;
  box-shadow: 0 4px 14px rgba(13, 124, 107, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-hero-cta:hover {
  background: #0A6356;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 124, 107, 0.35);
}
.hero-microcopy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text3);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── LinkedIn Post Mockup ─────────────────────────────── */
.li-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: rgba(13, 124, 107, 0.24);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin: 40px 0 12px;
}
.li-post-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  transform: scale(0.94);
}
.li-post {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: left;
}
/* Bottom fade overlay — fades post into dark background */
.li-post-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, #000000);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  z-index: 2;
}
.li-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 0;
  text-align: left;
}
.li-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.li-avatar svg { display: block; width: 40px; height: 40px; }
.li-meta { flex: 1; min-width: 0; text-align: left; }
.li-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A3034;
  display: flex;
  align-items: center;
  gap: 4px;
}
.li-badge { flex-shrink: 0; }
.li-role { font-family: 'DM Sans', sans-serif; font-size: 11px; color: #666; margin-top: 1px; text-align: left; }
.li-time { font-family: 'DM Sans', sans-serif; font-size: 11px; color: #999; margin-top: 1px; text-align: left; }
.li-follow {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0a66c2;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.li-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1A3034;
  line-height: 1.5;
  padding: 10px 16px 12px;
  text-align: left;
}
.li-link { color: #0a66c2; font-weight: 700; }

/* Carousel */
.li-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.li-carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(0,0,0,0.6);
  color: #1A3034;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.li-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.li-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Slide bar chart rows */
.li-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.li-bar-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  color: #555;
  width: 68px;
  flex-shrink: 0;
  text-align: right;
}
.li-bar-track {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.li-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.li-bar-red { background: linear-gradient(90deg, #f4a0a0, #c0392b); }
.li-bar-green { background: linear-gradient(90deg, #7ee8b0, #1a7a4c); }
.li-bar-pct {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #888;
  width: 36px;
  flex-shrink: 0;
}

/* Country bars (slide 6) */
.li-country { display: flex; align-items: center; gap: 8px; }
.li-co-name { font-family: 'DM Sans', sans-serif; font-size: 10px; color: #555; width: 70px; flex-shrink: 0; text-align: right; }
.li-co-bar { flex: 1; height: 10px; border-radius: 3px; display: flex; overflow: hidden; }

/* Reactions */
.li-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
}
.li-reactions-left { display: flex; align-items: center; gap: 6px; }
.li-reaction-icons { display: flex; }
.li-react-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  margin-right: -4px;
  border: 2px solid #fff;
}
.li-reactions-count { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #666; }
.li-reactions-right { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #666; }
.li-separator { height: 1px; background: #e5e5e5; margin: 4px 16px; }
.li-actions {
  display: flex;
  justify-content: space-around;
  padding: 4px 8px 8px;
}
.li-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  cursor: default;
  padding: 6px 8px;
  border-radius: 4px;
}

/* Old fade element — replaced by overlay inside .li-post-wrap */
.li-post-fade { display: none; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

.tile-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  user-select: none;
}

.tile:hover {
  border-color: var(--tile-accent, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.tile.selected {
  border-color: var(--tile-accent, var(--primary));
  background: rgba(13, 124, 107, 0.10);
}

.tile.selected::after {
  content: '\2713';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tile-accent, var(--primary));
  background: rgba(13, 124, 107, 0.15);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.tile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.tile-desc {
  font-size: 0.75rem;
  color: var(--text2);
  margin-top: 0.25rem;
}

/* Per-subject accent colors via data attribute */
.tile[data-accent="blue"]   { --tile-accent: var(--primary); }
.tile[data-accent="purple"] { --tile-accent: var(--primary); }
.tile[data-accent="green"]  { --tile-accent: #10b981; }
.tile[data-accent="teal"]   { --tile-accent: var(--primary); }
.tile[data-accent="orange"] { --tile-accent: #e8845a; }
.tile[data-accent="yellow"] { --tile-accent: #eab308; }
.tile[data-accent="red"]    { --tile-accent: #ef4444; }
.tile[data-accent="indigo"] { --tile-accent: var(--primary); }

.tile.selected[data-accent="blue"]   { background: rgba(13, 124, 107, 0.10); border-color: var(--primary); }
.tile.selected[data-accent="purple"] { background: rgba(13, 124, 107, 0.10); border-color: var(--primary); }
.tile.selected[data-accent="green"]  { background: rgba(16,185,129,0.08); border-color: #10b981; }
.tile.selected[data-accent="teal"]   { background: rgba(13, 124, 107, 0.10);  border-color: var(--primary); }
.tile.selected[data-accent="orange"] { background: rgba(249,115,22,0.08); border-color: #e8845a; }
.tile.selected[data-accent="yellow"] { background: rgba(234,179,8,0.08);  border-color: #eab308; }
.tile.selected[data-accent="red"]    { background: rgba(239,68,68,0.08);  border-color: #ef4444; }
.tile.selected[data-accent="indigo"] { background: rgba(13, 124, 107, 0.10); border-color: var(--primary); }

.tile:hover[data-accent="purple"] { border-color: var(--primary); }
.tile:hover[data-accent="green"]  { border-color: #10b981; }
.tile:hover[data-accent="teal"]   { border-color: var(--primary); }
.tile:hover[data-accent="orange"] { border-color: #e8845a; }
.tile:hover[data-accent="yellow"] { border-color: #eab308; }
.tile:hover[data-accent="red"]    { border-color: #ef4444; }
.tile:hover[data-accent="indigo"] { border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   SCREEN — QUIZ
   ═══════════════════════════════════════════════════════════ */
.quiz-screen {
  padding-top: 1rem;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.qt-left {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

.qt-center { flex: 1; min-width: 150px; }

.quiz-progress-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.quiz-progress-label {
  font-size: 0.72rem;
  color: var(--text2);
  text-align: center;
}

/* Question stage */
.question-stage {
  position: relative;
  min-height: 300px;
}

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  max-width: 720px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.q-card.slide-out {
  opacity: 0;
  transform: translateX(-80px);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.q-card.slide-in {
  opacity: 0;
  transform: translateX(80px);
}

.q-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.badge-role-v { background: rgba(13, 124, 107, 0.12); color: var(--primary); }
.badge-role-h { background: rgba(13, 124, 107, 0.10); color: var(--accent); }
.badge-easy   { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-medium { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-hard   { background: rgba(239,68,68,0.1); color: var(--error); }
.badge-topic  { background: rgba(156,163,175,0.08); color: var(--text2); font-weight: 500; }

.q-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Options */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.q-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.q-option:hover { border-color: var(--primary); background: rgba(13, 124, 107, 0.06); }

.q-option.flash {
  border-color: var(--primary);
  background: rgba(13, 124, 107, 0.12);
}

.q-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
}

.q-option.flash .q-option-letter {
  background: var(--primary);
  border-color: var(--primary);
  color: #1A3034;
}

.q-option-text {
  font-size: 0.92rem;
  line-height: 1.45;
  padding-top: 2px;
}

/* Selected option (re-visited question) */
.q-option.selected {
  border-color: var(--primary);
  background: rgba(13, 124, 107, 0.12);
}
.q-option.selected .q-option-letter {
  background: var(--primary);
  border-color: var(--primary);
  color: #1A3034;
}

/* Desktop 2x2 grid for options */
@media (min-width: 640px) {
  .q-options { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ─── Energy Bar Timer ──────────────────────────────────── */
.energy-bar-wrapper {
  display: none;
  margin-bottom: 1.5rem;
}

.energy-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.energy-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.15s linear, background 0.4s ease;
}

.energy-bar-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.4s ease;
}

/* ─── Quiz Navigation ───────────────────────────────────── */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 720px;
  margin: 1.5rem auto 0;
  padding: 0;
}

/* ─── Fixed quiz nav footer ───────────────────────────── */
.quiz-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.9rem 1rem max(0.9rem, env(safe-area-inset-bottom, 0.9rem));
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.quiz-footer.hidden { display: none; }
.quiz-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quiz-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0 1.35rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.quiz-back-btn {
  color: #1A3034;
  background: #FFFFFF;
  border: 2px solid #C9C5BC;
  padding: 0 1.5rem;
  font-weight: 600;
}
.quiz-back-btn:hover {
  background: #F2F0EB;
  border-color: #1A3034;
}
.quiz-back-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}
.quiz-next-btn {
  color: #1A3034;
  background: #FFFFFF;
  border: 2px solid #C9C5BC;
  min-width: 150px;
  padding: 0 2rem;
  font-weight: 600;
  opacity: 1;
}
.quiz-next-btn:hover:not(:disabled) {
  background: #F2F0EB;
  border-color: #1A3034;
  transform: translateY(-1px);
}
.quiz-next-btn:disabled {
  background: #FFFFFF;
  color: #1A3034;
  border: 2px solid #C9C5BC;
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.quiz-nav-label { /* "Back" text — hidden on tight widths */ }
@media (max-width: 420px) {
  .quiz-nav-label { display: none; }
  .quiz-nav-btn { padding: 0 1.05rem; }
  .quiz-next-btn { min-width: 130px; }
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 6 — EMAIL
   ═══════════════════════════════════════════════════════════ */
.email-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
  text-align: center;
}

.email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
}

.email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 124, 107, 0.12); }
.email-input::placeholder { color: var(--text2); }

.privacy-note {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SCREEN 7 — RESULTS
   ═══════════════════════════════════════════════════════════ */
.result-screen {
  padding-top: 2rem;
}

/* Score hero */
.result-hero {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.result-score-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-score-denom { font-size: 1.5rem; }
.result-pct { font-size: 0.9rem; color: var(--text2); margin-top: 0.25rem; }

.result-assessed-on {
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 0.5rem;
}
.result-assessed-on strong { color: var(--text); }

.percentile-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.75rem;
}
.percentile-pill.top-25 { background: rgba(16,185,129,0.12); color: var(--success); }
.percentile-pill.top-50 { background: rgba(13, 124, 107, 0.12); color: var(--primary); }
.percentile-pill.bottom { background: rgba(245,158,11,0.12); color: var(--warning); }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 0.2rem;
}

/* Breakdowns */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 1rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.bar-label {
  font-size: 0.8rem;
  min-width: 80px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.bar-val {
  font-size: 0.78rem;
  color: var(--text2);
  min-width: 40px;
  text-align: right;
  white-space: nowrap;
}

/* Answer review */
.answer-review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.answer-review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.answer-review-header:hover { background: rgba(235, 235, 235, 0.1); }

.ar-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text2);
}

.ar-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ar-status.correct { background: var(--success); }
.ar-status.wrong   { background: var(--error); }

.ar-text {
  flex: 1;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-score {
  font-size: 0.75rem;
  color: var(--text2);
  white-space: nowrap;
}

.ar-chevron {
  color: var(--text2);
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.answer-review-item.open .ar-chevron { transform: rotate(180deg); }

.answer-review-body {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}
.answer-review-item.open .answer-review-body { display: block; }

.ar-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ar-opt {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
}
.ar-opt.ar-correct { background: rgba(16,185,129,0.1); color: var(--success); }
.ar-opt.ar-wrong   { background: rgba(239,68,68,0.08); color: var(--error); }
.ar-opt.ar-neutral  { color: var(--text2); opacity: 0.6; }

.ar-explanation {
  background: rgba(16,185,129,0.05);
  border-left: 3px solid var(--success);
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.ar-explanation strong { color: var(--success); margin-right: 0.3rem; }

/* ─── Review Accordion ──────────────────────────────────── */
.review-accordion {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.review-accordion-header:hover {
  background: #1a2235;
}

.review-accordion-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-accordion-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-accordion-icon {
  font-size: 0.7rem;
  color: var(--text2);
  transition: transform 0.2s;
}

.review-accordion-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.review-accordion-subtext {
  font-size: 0.78rem;
  color: var(--text2);
  margin-left: 22px;
}

.review-accordion-summary {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.review-pill-wrong,
.review-pill-correct {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.review-pill-wrong {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
}
.review-pill-correct {
  background: rgba(16,185,129,0.12);
  color: #6ee7b7;
}

.review-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.review-accordion.open .review-accordion-content {
  max-height: 9999px;
}

.review-toggle-row {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 8px;
}

.review-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.review-toggle-btn:hover {
  background: rgba(13, 124, 107, 0.10);
  border-color: var(--primary);
}

.review-empty-msg {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.review-q-number {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--text2);
  padding: 3px 10px;
  border-radius: 999px;
}

.review-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.review-status-badge.wrong {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
}
.review-status-badge.correct {
  background: rgba(16,185,129,0.12);
  color: #6ee7b7;
}

.review-q-text {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--text);
}

.review-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.review-card .option-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 4px;
  font-size: 0.9rem;
}

.option-pill.wrong    { background: rgba(239,68,68,0.15); border: 1px solid #ef4444; color: #fca5a5; }
.option-pill.correct  { background: rgba(16,185,129,0.15); border: 1px solid #10b981; color: #6ee7b7; }
.option-pill.neutral  { background: var(--border); border: 1px solid #E2DFD8; color: var(--text2); }

.option-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.review-explanation-toggle {
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(235, 235, 235, 0.1);
  border-radius: 8px;
  transition: background 0.15s;
}
.review-explanation-toggle:hover {
  background: rgba(235, 235, 235, 0.2);
}

.review-explanation-label {
  font-size: 0.85rem;
  color: var(--text2);
}

.review-explanation-body {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text2);
  border-left: 3px solid var(--success);
  border-radius: 0 6px 6px 0;
  background: rgba(16,185,129,0.05);
}

.review-explanation-toggle.open .review-explanation-body {
  display: block;
}

/* Result actions */
.result-actions {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .screen-inner { padding: 1.5rem 1rem 3rem; }
  .q-card { padding: 1.5rem 1.25rem; }
  .stat-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .q-options { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */

/* Block spacing */
.about-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.about-block + .about-block {
  margin-top: 80px;
}

/* Block 1 — Transition hook */
.about-transition {
  padding: 60px 1.25rem 0;
  text-align: center;
}

.about-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-divider::before,
.about-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

.about-dots {
  padding: 0 1rem;
  color: var(--text2);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
}

.about-scroll-hint {
  font-size: 0.82rem;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.scroll-arrow {
  display: inline-block;
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(3px); }
}

/* Block 2 — Mission statement */
.about-mission {
  text-align: center;
  margin-top: 80px;
}

.about-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-body {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* Block 3 — Vision pill */
.about-vision-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
}

.about-vision-card .about-eyebrow {
  margin-bottom: 0.75rem;
}

.about-vision-text {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Block 4 — Founders */
.about-founders {
  text-align: center;
}

.about-founders-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.founder-avatar {
  filter: drop-shadow(0 0 12px rgba(13, 124, 107, 0.2));
  flex-shrink: 0;
}

.founder-card:last-child .founder-avatar {
  filter: drop-shadow(0 0 12px rgba(13, 124, 107, 0.2));
}

.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.founder-role {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.founder-quote {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
  margin-top: 0.5rem;
}

/* Block 5 — CTA */
.about-cta {
  text-align: center;
}

.about-cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-cta-sub {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.about-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-confirmation {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
  animation: fade-in-out 2s ease forwards;
}

@keyframes fade-in-out {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Block 6 — Footer */
.about-footer {
  text-align: center;
  padding: 60px 1.25rem 40px;
  font-size: 0.78rem;
  color: var(--text2);
}

/* ─── Scroll reveal animations ──────────────────────────── */
.reveal-fade,
.reveal-up,
.reveal-stagger {
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-up,
.reveal-stagger {
  transform: translateY(20px);
}

.reveal-stagger:nth-child(1) { transition-delay: 100ms; }
.reveal-stagger:nth-child(2) { transition-delay: 300ms; }
.reveal-stagger:nth-child(3) { transition-delay: 500ms; }

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

/* ─── About section responsive ──────────────────────────── */
@media (max-width: 768px) {
  .about-block + .about-block {
    margin-top: 48px;
  }

  .about-mission {
    margin-top: 48px;
  }

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

  .founder-card {
    padding: 1.5rem;
  }

  .about-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .about-cta-buttons .btn {
    width: 100%;
  }
}

/* ─── Scrollbar (webkit) ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

/* ═══════════════════════════════════════════════════════════
   RESULT SCREEN — profile hero, stats row, topic breakdown
   ═══════════════════════════════════════════════════════════ */
.result-hero { text-align: center; padding: 32px 0 24px; }
.profile-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: #5b8def; margin-bottom: 8px; }
.profile-desc { color: #9ca3af; font-size: 1rem; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.score-pill { display: inline-block; background: #111827; border: 1px solid #1f2937; border-radius: 999px; padding: 8px 20px; color: #1A3034; font-size: 1rem; margin-bottom: 12px; }
.percentile-badge { display: inline-block; background: rgba(91, 141, 239,0.15); border: 1px solid #5b8def; border-radius: 999px; padding: 4px 14px; color: #5b8def; font-size: 0.85rem; margin-left: 8px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.stat-card { flex: 1 1 calc(50% - 12px); background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-icon { font-size: 1.4rem; }
.stat-value { font-size: 1.3rem; font-weight: 700; color: #1A3034; }
.stat-label { font-size: 0.8rem; color: #9ca3af; text-align: center; }
.topic-breakdown { margin: 32px 0; }
.topic-breakdown-title { color: #1A3034; font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.topic-card { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 16px; margin-bottom: 10px; }
.topic-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.topic-name { color: #1A3034; font-weight: 500; text-transform: capitalize; }
.topic-badge { font-size: 0.75rem; padding: 2px 10px; border-radius: 999px; }
.topic-badge.strongest { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid #10b981; }
.topic-badge.improve { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid #f59e0b; }
.topic-bar-container { background: #1f2937; border-radius: 999px; height: 6px; width: 100%; margin-bottom: 8px; }
.topic-bar { height: 6px; border-radius: 999px; transition: width 0.6s ease; }
.topic-bar.green { background: #10b981; }
.topic-bar.amber { background: #f59e0b; }
.topic-bar.red { background: #ef4444; }
.topic-stats-line { font-size: 0.78rem; color: #9ca3af; }

.result-hero, .stats-row, .topic-breakdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================================
   RIASEC tokens + new screens (intro v2, quiz v2, result v2)
   ============================================================ */
:root {
  --riasec-r: #e8845a;
  --riasec-i: #5b8def;
  --riasec-a: #a78bfa;
  --riasec-s: #4ecdc4;
  --riasec-e: #ef6b6b;
  --riasec-c: #f0c45a;
}

/* ─── Intro v2 additions ───────────────────────────────── */
/* Override the original hero-only flex centering so the new intro
   (hero + how-it-works + mission + founders + footer) stacks vertically. */
#screen-intro .intro-screen {
  display: block;
  min-height: calc(100vh - 52px);
  padding-bottom: 3rem;
  background: var(--bg);
  /* overflow-x: hidden rimosso: creava un scroll container intermedio che
     rubava il ruolo a #screen-intro e rompeva position:sticky sui
     discendenti. La rete antioverflow orizzontale è garantita da .screen,
     body e html (tutti hanno overflow-x:hidden). I componenti con
     contenuto largo (.li-carousel, ecc.) hanno già il proprio
     overflow:hidden. */
}
/* Hero: top-aligned, wide enough for LinkedIn post */
#screen-intro .intro-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 1.5rem 0;
}
@media (min-width: 768px) {
  #screen-intro .intro-content { padding-top: 56px; }
}

.section-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 2.5rem;
}
.how-it-works {
  max-width: 880px;
  margin: 48px auto 4rem;
  padding: 0 1.5rem;
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hiw-card {
  padding: 0.5rem 0.25rem;
  text-align: center;
}
.hiw-emoji {
  font-size: 28px;
  line-height: 1;
  margin: 0 auto 0.7rem;
}
.hiw-card { position: relative; }
.hiw-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #1A3034;
  line-height: 1;
  text-align: center;
  margin: 0 auto 0.7rem;
}
.hiw-connector {
  display: none;
}
@media (max-width: 560px) {
  .hiw-connector {
    display: block;
    width: 2px;
    height: 36px;
    margin: 1.2rem auto 0;
    background-image: linear-gradient(to bottom, #C9C5BC 60%, transparent 60%);
    background-size: 2px 14px;
    background-repeat: repeat-y;
  }
}
.hiw-step {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(13, 124, 107, 0.12);
  border: 1px solid rgba(13, 124, 107, 0.3);
  color: var(--primary);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
}
.hiw-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}
.hiw-body {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 14rem;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .how-it-works { margin: 4.5rem auto; }
  .intro-final-cta { margin: 4rem auto 3rem; }
}

/* ─── Mobile hero: balanced flow with vh-proportional gaps ─── */
@media (max-width: 768px) {
  #screen-intro .intro-content {
    min-height: 88vh;
    min-height: 88dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0 24px 24px;
  }
  /* Reduced from 20vh/15vh so everything fits comfortably in 88dvh while
     leaving the next section's title peeking from the bottom. */
  .intro-eyebrow { margin: 18vh 0 24px; }
  .intro-headline { margin: 0 0 16px; }
  .intro-sub { margin: 0 0 12vh; }
  .btn-hero-cta {
    margin: 0 0 16px;
    width: 100%;
    max-width: 340px;
    padding: 18px 32px;
    font-size: 17px;
    align-self: center;
  }
  .hero-scroll-arrow { margin: 0; }

  .li-post-wrap {
    max-width: 100%;
    transform: scale(0.9);
  }
}

/* ─── Quiz v2 top bar ──────────────────────────────────── */
/* Hide global header when quiz is active */
body.quiz-active .global-header {
  display: none;
}
.quiz-topbar-v2 {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}
.quiz-topbar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.quiz-exit-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.quiz-exit-btn:hover { opacity: 1; }
.quiz-progress-counter {
  font-size: 0.75rem;
  color: var(--text2);
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0.7;
}
.progress-bar-v2 {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-v2-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ─── Question card v2 ─────────────────────────────────── */
.quiz-screen-v2 { padding: 1.2rem 1.2rem 8rem; }
.question-stage-v2 {
  max-width: 680px;
  margin: 0 auto;
  /* Reserve vertical space so the stage doesn't collapse between questions. */
  min-height: 520px;
}
.question-stage-v2.fade-in {
  animation: qFadeIn 0.35s ease-out both;
}
@keyframes qFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.q-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.q-number {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.q-text-v2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1.8rem;
}
.q-subtitle {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text2);
  margin: -1.2rem 0 1.5rem;
  line-height: 1.5;
}
.option-hint {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
}

/* Option buttons */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  min-height: 56px;
  width: 100%;
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid #E2DFD8;
  border-radius: 12px;
  color: #1A3034;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}
.option-btn:hover { border-color: rgba(13, 124, 107, 0.5); }
.option-btn.selected { transform: scale(0.99); }
.option-letter {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.option-text { flex: 1; }

/* Slider */
.slider-poles {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--text2);
}
.slider-pole.left  { text-align: left;  max-width: 48%; }
.slider-pole.right { text-align: right; max-width: 48%; }
.slider-wrap { position: relative; padding: 1rem 0 0.3rem; }
.slider-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  outline: none;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 124, 107, 0.4);
}
.slider-input::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 6px 0;
}
.slider-tick {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.2s ease;
}
.slider-tick.active {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(13, 124, 107, 0.6);
  transform: scale(1.4);
}
.slider-confirm-wrap {
  margin-top: 1.6rem;
  display: flex;
  justify-content: flex-end;
}
.slider-confirm[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Ranking */
.ranking-hint {
  font-size: 0.85rem;
  color: var(--text2);
  margin-bottom: 1rem;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.ranking-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: rgba(235, 235, 235, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.ranking-card.dragging {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  border-color: var(--primary);
  background: rgba(13, 124, 107, 0.10);
  cursor: grabbing;
}
.ranking-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: grab;
  /* touch-action: none so touchmove isn't hijacked by the browser for scroll */
  touch-action: none;
  color: var(--text3, #8FA3A6);
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.ranking-handle:hover,
.ranking-card.dragging .ranking-handle {
  color: var(--primary, #0D7C6B);
  opacity: 1;
}
.ranking-handle:active { cursor: grabbing; }
.ranking-handle .drag-handle {
  display: block;
  pointer-events: none; /* non intercetta clic; drag parte dal wrapper */
}
/* Touch device: handle sempre più evidente (no hover) */
@media (hover: none) {
  .ranking-handle { opacity: 0.85; }
}
.ranking-pos {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #000000;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.ranking-text {
  flex: 1;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.35;
  pointer-events: none;
}
.ranking-placeholder {
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(13, 124, 107, 0.06);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.ranking-confirm-wrap {
  display: flex;
  justify-content: flex-end;
}

/* ─── Result v2 ────────────────────────────────────────── */
.result-screen-v2 {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 3rem;
}

.result-badge-hero {
  text-align: center;
  padding: 2rem 0 1.6rem;
}
.holland-pill {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  color: #0a0f1e;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.badge-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.badge-tagline {
  font-style: italic;
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1rem;
}
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
}
.confidence-msg {
  color: var(--text2);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0.7rem auto 0;
}

/* Radar */
.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}
.radar-wrap canvas {
  max-width: 100%;
  width: 320px !important;
  height: 320px !important;
}
.dim-score-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.dim-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
}
.dim-score-letter { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.dim-score-value { opacity: 0.9; }

/* Profile description */
.profile-description {
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

/* Careers */
.careers-section { margin: 2rem 0; }
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.career-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.career-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.career-desc { color: var(--text2); font-size: 0.85rem; line-height: 1.45; }

@media (max-width: 680px) {
  .career-grid { grid-template-columns: 1fr; }
}

/* ─── Careers explorer (3-level expandable hierarchy) ───── */
.careers-subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 0.95rem;
  margin: -0.75rem 0 1.6rem;
}

.careers-content {
  display: flex;
  flex-direction: column;
  max-width: 780px;
  margin: 0 auto;
}

.career-sector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.career-sector:hover { border-color: rgba(91, 141, 239, 0.35); }
.career-sector.open   { border-color: rgba(91, 141, 239, 0.55); }

.cs-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.cs-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-title {
  flex: 1;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.cs-count-pill {
  background: rgba(91, 141, 239, 0.12);
  color: #7ba4f4;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.cs-caret {
  color: var(--text2);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.career-sector.open .cs-caret {
  transform: rotate(90deg);
  color: #7ba4f4;
}

.cs-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.3s ease;
}
.career-sector.open .cs-body {
  /* Large upper bound; real content is almost always well under this. */
  max-height: 5000px;
  margin-top: 1rem;
}
.cs-body-inner { padding-top: 0.4rem; }

.subsector-group {
  margin-bottom: 1.2rem;
  padding-left: 12px;
  border-left: 2px solid var(--color-accent);
}
.subsector-group:last-child { margin-bottom: 0.2rem; }
.subsector-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

.job-list { display: flex; flex-direction: column; }
.job-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.job-card:last-child { border-bottom: none; padding-bottom: 4px; }
.jc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
}
.jc-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.3;
}
.jc-edu-pill {
  font-size: 11px;
  background: rgba(91, 141, 239, 0.15);
  color: #7ba4f4;
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.jc-desc {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}
.jc-stats {
  display: flex;
  gap: 1.3rem;
  font-size: 13px;
  flex-wrap: wrap;
}
.jc-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
}
.jc-stat.growth-pos { color: #10b981; font-weight: 600; }
.jc-stat.growth-neg { color: #ef4444; font-weight: 600; }
.jc-stat.jc-stat-muted { color: var(--text2); }
.jc-stat-icon { opacity: 0.85; font-size: 0.95em; }

@media (max-width: 620px) {
  .jc-stats { gap: 0.8rem; }
  .jc-stat  { font-size: 12px; }
  .cs-title { font-size: 0.98rem; }
  .cs-icon  { font-size: 1.4rem; }
}

/* Skeleton loader */
.career-sector.skeleton { pointer-events: none; border-color: var(--border); }
.skel-box {
  background: linear-gradient(90deg,
    rgba(235, 235, 235, 0.2) 0%,
    rgba(235, 235, 235, 0.45) 50%,
    rgba(235, 235, 235, 0.2) 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.careers-error {
  text-align: center;
  color: var(--text2);
  padding: 1.4rem 1rem;
  font-size: 0.92rem;
}

/* Dimension breakdown */
.dim-breakdown-section { margin: 2.5rem 0; }
.dim-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  max-width: 780px;
  margin: 0 auto;
}
.dim-breakdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.dbc-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.dbc-bar-wrap {
  background: var(--border);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.dbc-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.dbc-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
@media (max-width: 680px) {
  .dim-breakdown-grid { grid-template-columns: 1fr; }
}

/* Share */
.share-section {
  text-align: center;
  margin: 3rem 0 1rem;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.share-preview {
  color: var(--text2);
  font-style: italic;
  max-width: 520px;
  margin: 0.8rem auto 1.4rem;
  font-size: 0.95rem;
}
.share-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-toast {
  margin-top: 1rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Retake block reuse */
#result-about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.4rem 3rem;
}

/* ─── Screen 3.5 — Analyzing (post-Q19 suspense buffer) ───── */
#screen-analyzing { background: var(--bg); }
#screen-analyzing:not(.hidden) {
  animation: analyzingScreenFade 0.4s ease both;
}
@keyframes analyzingScreenFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Vecchie regole .analyzing-wrap/icon/title/status/progress rimosse
   (era una versione abbandonata prima di .analyzing-phase). Il nuovo
   design (orb + 2 frasi) è definito sopra vicino a #screen-analyzing. */

/* ════════════════════════════════════════════════════════════
   IMMERSIVE PROFILE PAGE (result + public view)
   Per-profile saturated background, driven by inline CSS
   custom properties (--profile-bg, --profile-accent, etc.)
   set on the host <section> at render time by applyProfilePalette.
   ════════════════════════════════════════════════════════════ */

.profile-screen {
  background: var(--bg);
  color: var(--text);
  top: 52px !important;
  scroll-behavior: smooth;
}
.profile-screen .profile-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 6rem;
}

/* Section container — matches the quiz card's rhythm, not the old billboard. */
.profile-section {
  padding: 2rem 0 1.8rem;
  text-align: center;
}

/* Reveal-up animation hook (staggered via IntersectionObserver JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  will-change: opacity, transform;
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 1 — Hero ───────────────────────────────────────────── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 2.5rem;
}
.profile-hero-code {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--profile-accent);
  background: var(--profile-accent-a20);
  border: 1px solid var(--profile-accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.profile-hero-name {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A3034;
  margin: 0 0 0.5rem;
}
.profile-hero-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.profile-hero-tagline {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #1A3034;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── 2 — Signature line ─────────────────────────────────── */
.profile-signature {
  background: var(--profile-bg-shade, transparent);
  padding: 2.5rem 1.2rem;
  margin: 1rem -1.2rem;
  border-top: 1px solid rgba(235, 235, 235, 0.4);
  border-bottom: 1px solid rgba(235, 235, 235, 0.4);
}
.profile-signature-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.8vw, 1.35rem);
  line-height: 1.4;
  color: #1A3034;
  max-width: 540px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ─── 3 — Radar chart ────────────────────────────────────── */
.profile-radar {
  padding-top: 2.2rem;
}
.profile-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 124, 107, 0.7);
  margin: 0 0 1rem;
}
.profile-radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 8px;
}
.profile-radar-wrap svg {
  width: 100%;
  height: auto;
}
/* Progressive draw animation on the data polygon */
.profile-radar-data {
  opacity: 0;
  transform: scale(0.2);
  transform-origin: center;
  transition: opacity 0.5s ease-out, transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.profile-radar-data.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ─── 4 — Description ────────────────────────────────────── */
.profile-description {
  padding: 1rem 0.2rem;
}
.profile-description p {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #999999;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

/* ─── 5 — Career explorer section header ─────────────────── */
.profile-careers {
  padding-top: 2.2rem;
}
.profile-careers-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: rgba(13, 124, 107, 0.65);
  margin: -0.6rem auto 1.2rem;
  max-width: 520px;
  line-height: 1.45;
}

/* ─── 6 — Stats ──────────────────────────────────────────── */
.profile-stats {
  padding: 2.5rem 1rem 2rem;
}
.profile-stat-number {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3rem);
  line-height: 1;
  color: var(--profile-accent);
  letter-spacing: -0.02em;
}
.profile-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(13, 124, 107, 0.78);
  margin-top: 0.6rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── 7 — Final CTAs ─────────────────────────────────────── */
.profile-cta, .profile-public-cta {
  padding: 2rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.profile-cta-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #1A3034;
  margin-bottom: 0.5rem;
}
.btn-profile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0D7C6B;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  min-width: 260px;
}
.btn-profile-primary:hover {
  transform: translateY(-1px);
  background: #0A6356;
}
.btn-profile-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #1A3034;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 2px solid #C9C5BC;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-width: 200px;
}
.btn-profile-secondary:hover {
  background: #F2F0EB;
  border-color: #1A3034;
}

/* ─── Rarity + traits ───────────────────────────────────── */
.profile-rarity {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #999999;
  margin: 0.6rem 0 0;
  text-align: center;
}
.profile-traits {
  padding: 1.4rem 0.4rem 0.4rem;
  text-align: center;
}
.profile-superpower {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1A3034;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 16px;
}
.profile-weakness-block {
  max-width: 520px;
  margin: 0 auto 20px;
  text-align: center;
}
.profile-microlabel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8FA3A6;
  margin-bottom: 4px;
}
.profile-microlabel-accent { color: #0D7C6B; }
.profile-weakness {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #5E7A7E;
  line-height: 1.5;
  margin: 0;
}
.profile-teamrole-block {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 16px 20px;
  background: #F0FAF8;
  border-left: 3px solid #0D7C6B;
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.profile-teamrole-block .profile-microlabel {
  text-align: left;
}
.profile-team-role {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1A3034;
  line-height: 1.55;
  margin: 0;
}

/* ─── You work best with ────────────────────────────────── */
.profile-works-with {
  padding: 1.6rem 0.4rem 0.4rem;
  text-align: center;
}
.works-with-title {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1A3034;
  margin: 0 0 1rem;
}
.works-with-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 0.9rem;
}
@media (max-width: 560px) {
  .works-with-grid { grid-template-columns: 1fr; }
}
.works-with-card {
  background: #FFFFFF;
  border: 1px solid #E2DFD8;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}
.works-with-name {
  color: #1A3034;
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0.35rem;
}
.works-with-reason {
  color: #999999;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
}
.works-with-note {
  color: #666666;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-style: italic;
  margin: 0;
}

/* ─── Public profile CTA (no Explore button) ────────────── */
.profile-public-prompt {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1A3034;
  margin: 0 0 0.2rem;
}

/* ─── Career explorer overrides inside the profile page ────
   The underlying .career-sector / .cs-header / .subsector-group
   classes live in the previous careers-explorer block above and
   are reused as-is; here we just rebind their colors and surface
   tone to the per-profile palette so they sit cleanly on any
   saturated dominant background. */
.profile-screen .careers-section {
  padding: 1rem 0 0.5rem;
  text-align: left;
  margin: 0 auto;
  max-width: 680px;
}
.profile-screen .careers-content {
  display: flex;
  flex-direction: column;
}
.profile-screen .career-sector {
  background: rgba(235, 235, 235, 0.25);
  border: 1px solid rgba(235, 235, 235, 0.6);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.profile-screen .career-sector:hover { border-color: var(--profile-accent-a50); }
.profile-screen .career-sector.open  {
  border-color: var(--profile-accent);
  background: rgba(235, 235, 235, 0.35);
}
.profile-screen .cs-header {
  font-family: 'Inter', sans-serif;
}
.profile-screen .cs-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #1A3034;
}
.profile-screen .cs-count-pill {
  background: var(--profile-accent-a20);
  border: 1px solid var(--profile-accent);
  color: var(--profile-accent);
}
.profile-screen .cs-caret { color: rgba(13, 124, 107, 0.55); }
.profile-screen .career-sector.open .cs-caret { color: var(--profile-accent); }
.profile-screen .subsector-group {
  border-left: 2px solid var(--profile-accent);
  padding-left: 12px;
  margin-bottom: 1rem;
}
.profile-screen .subsector-title {
  color: rgba(13, 124, 107, 0.6);
}
.profile-screen .job-card {
  border-bottom: 1px solid rgba(235, 235, 235, 0.4);
  padding: 10px 0;
}
.profile-screen .job-card:last-child { border-bottom: none; }
.profile-screen .jc-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: #1A3034;
}
.profile-screen .jc-edu-pill {
  background: var(--profile-accent-a20);
  color: var(--profile-accent);
}
.profile-screen .jc-desc {
  color: rgba(13, 124, 107, 0.72);
  font-size: 0.84rem;
}
.profile-screen .jc-stat {
  color: rgba(13, 124, 107, 0.9);
  font-size: 12px;
}
.profile-screen .jc-stat.jc-stat-muted { color: rgba(13, 124, 107, 0.55); }
/* Growth +/- colors kept as-is — semantic green/red work on every bg. */
.profile-screen .careers-error {
  color: rgba(13, 124, 107, 0.7);
}
.profile-screen .skel-box {
  background: linear-gradient(90deg,
    rgba(235, 235, 235, 0.2) 0%,
    rgba(235, 235, 235, 0.45) 50%,
    rgba(235, 235, 235, 0.2) 100%);
  background-size: 200% 100%;
}

/* ─── Floating share CTA ─────────────────────────────────── */
.floating-share-cta {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(8px);
  background: #1A3034;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 50;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating-share-cta.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  display: inline-block !important;
}

/* ════════════════════════════════════════════════════════════
   SHARE BOTTOM SHEET
   ════════════════════════════════════════════════════════════ */

.share-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.share-sheet-overlay.open { opacity: 1; }
.share-sheet-overlay.hidden { display: none; }

.share-sheet {
  background: var(--bg);
  color: #1A3034;
  border-radius: 22px 22px 0 0;
  padding: 0.8rem 1.3rem 1.8rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1.2, 0.5, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.share-sheet-overlay.open .share-sheet {
  transform: translateY(0);
}

.share-sheet-handle {
  width: 42px;
  height: 4px;
  background: rgba(13, 124, 107, 0.2);
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.share-sheet-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1A3034;
  text-align: center;
  margin-bottom: 1rem;
}

.share-format-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(235, 235, 235, 0.3);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.2rem;
}
.share-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(13, 124, 107, 0.65);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-tab.active {
  background: rgba(91, 141, 239, 0.18);
  color: #7ba4f4;
}

.share-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  background: rgba(235, 235, 235, 0.15);
  border: 1px solid rgba(235, 235, 235, 0.4);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.2rem;
}
.share-preview-img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  display: block;
}
.share-preview-img.hidden { display: none; }
.share-preview-loading {
  color: rgba(13, 124, 107, 0.6);
  font-size: 0.9rem;
}
.share-preview-loading.hidden { display: none; }

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.btn-primary-sheet {
  background: #1A3034;
  color: #1A3034;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary-sheet:hover {
  background: #7ba4f4;
  transform: translateY(-1px);
}
.btn-secondary-sheet {
  background: transparent;
  color: #1A3034;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
  border: 1.5px solid rgba(13, 124, 107, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-secondary-sheet:hover {
  background: rgba(235, 235, 235, 0.25);
  border-color: rgba(13, 124, 107, 0.5);
}
.btn-tertiary-sheet {
  background: transparent;
  color: rgba(13, 124, 107, 0.7);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.btn-tertiary-sheet.hidden { display: none; }

/* ── V2 quiz — emoji options + part pill + temp output screen ─────────── */
.option-btn.opt-v2 {
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  min-height: 64px;
}
.option-btn.opt-v2 .option-emoji {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.option-btn.opt-v2 .option-emoji:empty { display: none; }
.option-btn.opt-v2.selected {
  border-color: #0D7C6B;
  border-width: 2px;
  background: #E8F5F2;
}
.option-btn.opt-v2.selected .option-emoji {
  background: #FFFFFF;
  border-color: #0D7C6B;
}

/* ── D3 "Other" text field ────────────────────────────────────────────── */
.zone-other-wrap {
  margin-top: 0.6rem;
}
.zone-other-wrap.hidden { display: none; }
.zone-other-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 16px;
  color: #1A3034;
  background: #FFFFFF;
  border: 1px solid #E2DFD8;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease;
}
.zone-other-input::placeholder { color: #666666; }
.zone-other-input:focus { border-color: var(--primary); }

/* ── Ranking questions (D4, D5) ───────────────────────────────────────── */
.ranking-hint {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
.ranking-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  min-height: 68px;
  background: rgba(235, 235, 235, 0.1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.15s ease;
  touch-action: pan-y;
}
.ranking-card.dragging {
  border-color: var(--primary);
  background: rgba(13, 124, 107, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(13, 124, 107, 0.45);
  transform: scale(1.03);
  cursor: grabbing;
}
.ranking-placeholder {
  border: 1px dashed rgba(235, 235, 235, 0.9);
  border-radius: 12px;
  background: rgba(235, 235, 235, 0.1);
}
.ranking-pos {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(235, 235, 235, 0.4);
  border: 1px solid rgba(235, 235, 235, 0.9);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
/* Regole duplicate rimosse — le definizioni canoniche di .ranking-handle
   sono nel blocco v2 sopra (riga ~2116). SVG inline, hover teal. */
.ranking-emoji {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
.ranking-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.4;
}
/* Next button neutral state — D4/D5 before the user has reordered anything. */
.quiz-next-btn.neutral {
  background: rgba(235, 235, 235, 0.5);
  color: var(--text);
  border: 1px solid rgba(13, 124, 107, 0.18);
}
.quiz-next-btn.neutral:hover:not(:disabled) { transform: none; }

@media (max-width: 420px) {
  .ranking-card { gap: 0.55rem; padding: 0.75rem 0.65rem; min-height: 60px; }
  .ranking-handle { width: 22px; }
  .ranking-emoji { width: 30px; font-size: 1.1rem; }
  .ranking-text { font-size: 0.88rem; }
}

.dim-pill.part-pill {
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(13, 124, 107, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
}

/* ── V2 result page — career chips + confidence pill ─────────────────── */
.profile-career-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.6rem;
}
.profile-career-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1A3034;
  background: rgba(235, 235, 235, 0.6);
  border: 1px solid rgba(13, 124, 107, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.profile-confidence-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A3034;
  background: rgba(235, 235, 235, 0.6);
  border: 1px solid rgba(13, 124, 107, 0.22);
  border-radius: 999px;
}

/* ── Debug profile viewer (/#debug-profiles) ─────────────────────────── */
#screen-debug-profiles {
  padding-top: 0;
}
.debug-picker {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(235, 235, 235, 0.6);
}
.debug-btn {
  padding: 0.45rem 0.8rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(13, 124, 107, 0.78);
  background: rgba(235, 235, 235, 0.3);
  border: 1px solid rgba(235, 235, 235, 0.9);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.debug-btn:hover {
  color: #1A3034;
  border-color: rgba(13, 124, 107, 0.32);
}
.debug-btn.active {
  color: #000000;
  background: #ffffff;
  border-color: #1A3034;
}

/* ── Email gate (between Q3 and Q4) ──────────────────────────────────── */
.email-gate-card {
  text-align: center;
}
.email-gate-dots {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.email-gate-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  animation: egDotPulse 1.4s ease-in-out infinite;
}
.email-gate-dots span:nth-child(2) { animation-delay: 0.18s; }
.email-gate-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes egDotPulse {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.35; }
  40%           { transform: scale(1.15); opacity: 1; }
}
.email-gate-title {
  margin-bottom: 0.85rem;
}
.email-gate-sub {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0 auto 2.2rem;
  max-width: 32rem;
}
.email-gate-field-row {
  max-width: 26rem;
  margin: 0 auto 0.8rem;
}
.email-gate-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #E2DFD8;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.email-gate-input::placeholder { color: #666666; }
.email-gate-input:focus {
  border-color: var(--primary);
  background: var(--bg);
}
.email-gate-input.invalid {
  border-color: var(--error, #ef6b6b);
  background: rgba(239, 107, 107, 0.06);
}
.email-gate-note {
  font-size: 0.78rem;
  color: var(--text2);
  opacity: 0.78;
  line-height: 1.5;
  max-width: 26rem;
  margin: 0 auto 0.8rem;
}
.email-gate-skip {
  display: inline-block;
  margin: 0 auto;
  padding: 0.5rem 0.8rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.email-gate-skip:hover {
  color: var(--text);
}

/* ── Open bonus question (after Q6) ─────────────────────────────────── */
.open-question-card {
  position: relative;
  text-align: center;
  padding-top: 3.2rem; /* room for the inline back button */
}
.open-question-card .q-number {
  color: var(--primary);
}
.open-question-card .q-text-v2 {
  margin-bottom: 0.6rem;
}
.open-question-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text2);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}
.open-question-wrap {
  position: relative;
  margin: 0 auto 1.2rem;
  max-width: 40rem;
  text-align: left;
}
.open-question-input {
  display: block;
  width: 100%;
  min-height: 84px;
  max-height: 150px;
  padding: 0.95rem 1.05rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(235, 235, 235, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  resize: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.open-question-input::placeholder { color: var(--text2); }
.open-question-input:focus {
  border-color: var(--primary);
  background: rgba(13, 124, 107, 0.08);
}
.open-question-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.open-question-counter.hidden {
  opacity: 0;
}
.open-question-submit {
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
}
.open-question-skip-note {
  font-size: 0.78rem;
  color: var(--text2);
  opacity: 0.75;
  margin: 0.9rem 0 0;
}

/* 4-column how-it-works variant */
.hiw-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hiw-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .hiw-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hiw-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
}
@media (max-width: 560px) {
  .hiw-grid-4 { grid-template-columns: 1fr; gap: 2.2rem; }
  .hiw-grid-5 { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ── Landing page — Pain point section ──────────────────────────────── */
.pain-section {
  max-width: 920px;
  margin: 5rem auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg);
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 2.5rem;
}
.pain-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #D6D3CC;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 48, 52, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: #0D7C6B;
  box-shadow: 0 6px 18px rgba(26, 48, 52, 0.08);
}
.pain-accent-line { display: none; }
.pain-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  background: #0D7C6B;
  border: none;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.pain-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  color: #0D7C6B;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.pain-text {
  color: #5E7A7E;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 0.8rem;
}
.pain-note-green {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a7a4c;
  margin: 0 0 0.8rem;
}
.pain-source {
  font-size: 11px;
  color: #8FA3A6;
  line-height: 1.4;
  text-align: center;
  margin: 12px 0 0;
}
.pain-reinforcement {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .pain-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pain-section { margin: 4rem auto; }
  .pain-card { padding: 32px 24px; }
}

/* ── Landing page — final CTA ───────────────────────────────────────── */
.intro-final-cta {
  max-width: 640px;
  margin: 5rem auto 4rem;
  padding: 4rem 1.5rem;
  text-align: center;
  background: transparent;
}
.intro-final-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 1rem;
}
.final-cta-sub {
  color: var(--text2);
  font-size: 1rem;
  margin: 0 0 2rem;
}
.btn-cta-lg {
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
}
.intro-final-cta .btn-cta { margin: 0 auto; }
.final-cta-urgency {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0D7C6B;
  text-align: center;
  margin: 12px 0 0;
}

/* ── Site footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bg);
}
.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.footer-links {
  margin-bottom: 0.8rem;
}
.footer-link {
  color: var(--text2);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-link:hover { color: var(--accent); }
.footer-sep {
  color: var(--text3);
  margin: 0 0.5rem;
  font-size: 0.82rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0.8rem;
}
.footer-social-link {
  color: var(--text3);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.footer-social-link:hover { color: var(--accent); }
.footer-copy {
  color: var(--text3);
  font-size: 0.72rem;
  margin: 0;
}

/* ── Legal pages (privacy, terms) ────────────────────────────────────── */
.legal-screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.legal-back:hover { color: var(--text); border-color: var(--text2); }
.legal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.legal-updated {
  color: var(--text2);
  font-size: 0.82rem;
  margin: 0 0 2rem;
}
.legal-screen h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}
.legal-screen p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.8rem;
}
.legal-screen ul {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 0.8rem;
  padding-left: 1.5rem;
}
.legal-screen li { margin-bottom: 0.3rem; }
.legal-screen strong { color: var(--text); }
.legal-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  font-size: 0.82rem;
  color: #666666;
}

/* ── Team waitlist screen ──────────────────────────────────────────── */
#screen-team {
  background: var(--bg);
}
.team-screen {
  max-width: 620px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.team-back {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(13, 124, 107, 0.78);
  background: rgba(235, 235, 235, 0.4);
  border: 1px solid rgba(235, 235, 235, 0.8);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.team-back:hover {
  color: #1A3034;
  background: rgba(235, 235, 235, 0.7);
}
.team-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(235, 235, 235, 0.7);
  border-radius: 22px;
  padding: 2.2rem 1.8rem 2.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.team-kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A3034;
  background: rgba(235, 235, 235, 0.6);
  border: 1px solid rgba(13, 124, 107, 0.22);
  border-radius: 999px;
}
.team-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  font-weight: 700;
  color: #1A3034;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.team-sub {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(13, 124, 107, 0.82);
  margin: 0 auto 1.8rem;
  max-width: 30rem;
}
.team-state { text-align: left; }
.team-state.hidden { display: none; }
.team-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--profile-accent, #ffffff);
  color: #000000;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 22px var(--profile-accent-a50, rgba(13, 124, 107, 0.28));
}
.team-joined-text {
  font-size: 1rem;
  font-weight: 500;
  color: #1A3034;
  text-align: center;
  margin: 0;
}
.team-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(13, 124, 107, 0.88);
  text-align: left;
}
#team-state-form .email-gate-input {
  margin-bottom: 0.75rem;
}

/* ── Hero scroll arrow (Phase 2) ──────────────────────────────── */
.hero-scroll-arrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  padding: 12px;
  color: #5E7A7E;
  text-decoration: none;
  cursor: pointer;
  animation: heroArrowBounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}
.hero-scroll-arrow svg { width: 24px; height: 24px; stroke: currentColor; }
.hero-scroll-arrow .scroll-label {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 11px;
  color: #8FA3A6;
  letter-spacing: 0.5px;
}
.hero-scroll-arrow.is-hidden { opacity: 0; pointer-events: none; }
@keyframes heroArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ── LinkedIn post section wrapper (moved below "How it works") ── */
.li-post-section {
  max-width: none;
  margin: 0;
  padding: 4rem 1.25rem;
  text-align: center;
  background: transparent;
}
.li-post-section > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.li-post-section .section-headline { margin-bottom: 0.6rem; }
.li-section-sub {
  color: var(--text2);
  font-size: 0.98rem;
  margin-bottom: 1.6rem;
}
.li-post-section .li-post-wrap {
  text-align: left;
  margin: 0 auto;
}

/* ── Language toggle (Phase 3) ────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-toggle .lang-opt {
  background: none;
  border: none;
  padding: 4px 6px;
  color: var(--text3);
  cursor: pointer;
  font: inherit;
  transition: color 0.15s ease;
}
.lang-toggle .lang-opt:hover { color: var(--text2); }
.lang-toggle .lang-opt.active { color: var(--text); }
.lang-toggle .lang-sep { color: var(--text3); user-select: none; }

/* ── Checkpoint (auto-advance, 3s) ────────────────────────────── */
.checkpoint-card {
  text-align: center;
  padding: 0 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: none;
  box-shadow: none;
  background: transparent;
}
.checkpoint-circle {
  position: relative;
  width: 80px;
  height: 80px;
}
.checkpoint-circle svg {
  display: block;
  transform: rotate(-90deg);
}
.checkpoint-circle .cp-ring {
  animation: cp-fill 3s linear forwards;
}
@keyframes cp-fill {
  to { stroke-dashoffset: 0; }
}
.checkpoint-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transition: transform 200ms ease;
}
.checkpoint-icon.cp-pop { transform: scale(1.1); }
.checkpoint-msg-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkpoint-msg {
  font-family: 'DM Sans','Inter',sans-serif;
  font-size: 15px;
  color: #1A3034;
  font-weight: 500;
  text-align: center;
  opacity: 1;
  transition: opacity 200ms ease;
}

/* ─── Post-analyzing email gate ─────────────────────────────────────────── */
.egate-screen {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}
.egate-teaser { position: relative; margin-bottom: 32px; }
.egate-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A3034;
  margin-bottom: 6px;
}
.egate-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5E7A7E;
  margin-bottom: 20px;
}
.egate-blur-preview {
  position: relative;
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.egate-blur-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,249,246,0.1) 0%, rgba(250,249,246,0.85) 100%);
  pointer-events: none;
}
.egate-skel-line {
  height: 12px; width: 80%;
  background: #E2DFD8; border-radius: 6px;
}
.egate-skel-line.short { width: 55%; }
.egate-skel-block { height: 60px; width: 90%; background: #EAE7E0; border-radius: 10px; }
.egate-skel-radar {
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, #D8D3C7 0%, #EAE7E0 70%);
  margin: 4px 0;
}
.egate-skel-cards { display: flex; gap: 10px; width: 90%; }
.egate-skel-cards > div {
  flex: 1; height: 70px; background: #EAE7E0; border-radius: 10px;
}
.egate-form {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 420px; margin: 0 auto; padding: 0 4px;
}
.egate-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #1A3034; font-weight: 600;
  text-align: center;
}
.egate-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #E2DFD8;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  color: #1A3034;
  background: #FFFFFF;
  box-sizing: border-box;
}
.egate-input::placeholder { color: #8FA3A6; }
.egate-input:focus { outline: none; border-color: #0D7C6B; }
.egate-input.invalid { border-color: #D14343; }
.egate-cta {
  width: 100%;
  padding: 14px 16px;
  background: #0D7C6B;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.egate-cta:hover { background: #0B6A5B; }
.egate-note {
  font-size: 11px;
  color: #8FA3A6;
  margin: 4px 0 0;
  text-align: center;
}
.egate-error {
  color: #C0392B;
  font-size: 12px;
  margin: 4px 0 8px;
  text-align: left;
}
.egate-error.hidden { display: none; }

/* ─── In-profile challenges section ─────────────────────────────────────── */
.profile-challenges {
  padding: 32px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.challenges-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1A3034;
  margin: 0 0 6px;
}
.challenges-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #5E7A7E;
  margin: 0 0 20px;
}
.challenges-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.challenge-card {
  background: #FFFFFF;
  border: 1px solid #E2DFD8;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.challenge-badge {
  display: inline-block;
  background: #0D7C6B;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.challenge-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A3034;
  margin: 0 0 8px;
  line-height: 1.35;
}
.challenge-card-meta {
  font-size: 12px;
  color: #5E7A7E;
  display: flex; gap: 6px;
}
.challenges-linkedin-note {
  font-size: 13px;
  color: #5E7A7E;
  line-height: 1.5;
  text-align: center;
  margin: 16px 0;
}
.challenge-email-wrap { margin-top: 12px; text-align: left; }
.challenges-on-list {
  font-size: 14px;
  color: #0D7C6B;
  font-weight: 600;
  padding: 12px;
  background: rgba(13,124,107,0.08);
  border-radius: 10px;
  margin: 0;
  text-align: center;
}
.challenge-email-label {
  display: block;
  font-size: 13px;
  color: #1A3034;
  font-weight: 600;
  margin-bottom: 8px;
}
.challenge-email-row { display: flex; gap: 8px; }
.challenge-email-row .egate-input { flex: 1; }
.challenge-email-row .egate-cta { width: auto; white-space: nowrap; padding: 14px 18px; }

/* ─── We are Forge (profile page) ──────────────────────────────── */
.why-forge-section {
  border-top: 1px solid #E8E5DE;
  padding: 48px 24px;
  background: #FAF9F6;
  text-align: center;
}
.why-forge-section > * { max-width: 480px; margin-left: auto; margin-right: auto; }
.why-forge-title {
  color: #1A3034;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 28px;
}
.wf-founders {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: nowrap;
}
.wf-founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 120px;
  flex-shrink: 0;
}
.wf-founder-name {
  word-break: break-word;
}
.wf-founder-name {
  color: #1A3034;
  font-size: 15px;
  font-weight: 700;
}
.wf-founder-role {
  color: #5E7A7E;
  font-size: 12px;
  margin-top: -6px;
}
.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E8F5F2;
  color: #0D7C6B;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder-avatar-lg { width: 80px; height: 80px; font-size: 20px; }
.wf-manifesto {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.wf-line { margin: 0; line-height: 1.5; }
.wf-line-1 { color: #5E7A7E; font-size: 15px; font-weight: 400; }
.wf-line-2 { color: #1A3034; font-size: 17px; font-weight: 500; }
.wf-line-3 { color: #0D7C6B; font-size: 14px; font-weight: 500; }
@media (max-width: 520px) {
  .wf-founders { gap: 32px; }
}
@media (max-width: 374px) {
  .wf-founders { gap: 24px; }
  .wf-founders .founder-avatar-lg { width: 64px; height: 64px; font-size: 18px; }
  .wf-founder-name { font-size: 13px; }
}

/* ─── Profile page footer links ─────────────────────────────────── */
.profile-footer {
  padding: 24px 24px 48px;
  text-align: center;
  background: #FAF9F6;
}
.profile-footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: #5E7A7E;
  font-size: 13px;
}
.profile-footer-links .footer-link {
  color: #5E7A7E;
  text-decoration: none;
}
.profile-footer-links .footer-link:hover { color: #0D7C6B; }

/* ─── About page ────────────────────────────────────────────────── */
.about-screen {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px;
  background: #FAF9F6;
}
.about-title {
  color: #1A3034;
  font-size: 28px;
  font-weight: 700;
  margin: 24px 0 32px;
}
.about-block {
  color: #5E7A7E;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 32px;
}
.about-founders {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
}
.about-founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.about-founder-name {
  color: #1A3034;
  font-size: 14px;
  font-weight: 600;
}
.about-cta {
  display: block;
  margin: 32px auto 0;
  background: #0D7C6B;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.about-cta:hover { background: #0a6555; }
.about-footer { margin-top: 64px; }

/* Vecchio layout timeline rimosso — il nuovo è in design-system.css
   (sezione "Timeline — step che si illuminano scrollando"). */

/* ─── Hero stat line ─────────────────────────────────────────────────────── */
.hero-stat {
  font-size: 13px;
  color: #5E7A7E;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 480px;
}

/* ─── Hero urgency + free ───────────────────────────────────────────────── */
.hero-urgency {
  font-size: 12px;
  color: #0D7C6B;
  font-weight: 500;
  margin: 12px 0 0;
  text-align: center;
}
.hero-free {
  font-size: 11px;
  color: #8FA3A6;
  font-weight: 400;
  margin: 6px 0 0;
  text-align: center;
}

/* ─── Requires section ──────────────────────────────────────────────────── */
.requires-section {
  max-width: 880px;
  margin: 48px auto 4rem;
  padding: 0 1.5rem;
}
.requires-closer {
  font-style: italic;
  text-align: center;
  color: #1A3034;
  font-size: 15px;
  line-height: 1.5;
  margin: 24px auto 0;
  max-width: 640px;
}

/* ─── Challenge tasks (card bullet list) ────────────────────────────────── */
.challenge-tasks {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E8E5DE;
  padding: 14px 16px 2px;
  padding-top: 14px;
}
.challenge-card .challenge-tasks {
  border-top: 1px solid #E8E5DE;
  margin-top: 14px;
  padding: 14px 0 2px;
}
.challenge-tasks-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #1A3034;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.challenge-tasks-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.challenge-tasks-list li {
  position: relative;
  padding: 0 0 6px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #5E7A7E;
}
.challenge-tasks-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D7C6B;
}

/* ─── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-section {
  max-width: 720px;
  margin: 48px auto 4rem;
  padding: 0 1.5rem;
}
.faq-list {
  margin-top: 24px;
}
.faq-item {
  border-bottom: 1px solid #E8E5DE;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.faq-q-text {
  color: #1A3034;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.faq-toggle {
  color: #0D7C6B;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: #5E7A7E;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.25s ease, padding 0.2s ease;
  padding: 0;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 16px;
}

/* ─── Requires section: 2×2 grid of cards with emoji ─────────────────────── */
.requires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.requires-card {
  background: #FFFFFF;
  border: 1.5px solid #E2DFD8;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: left;
}
.requires-emoji {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 10px;
}
.requires-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1A3034;
  margin-bottom: 6px;
}
.requires-body {
  font-size: 12px;
  color: #5E7A7E;
  line-height: 1.45;
}
@media (max-width: 420px) {
  .requires-grid { grid-template-columns: 1fr; }
}

/* ─── Challenge signup (post-profile commitment) ─────────────────────────── */
.challenge-signup-wrap { margin-top: 20px; }
.challenge-signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}
.challenge-signup-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1A3034;
  margin: 0 0 12px;
}
.challenge-signup-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E2DFD8;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1A3034;
  font-size: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.challenge-signup-input-readonly {
  background: #F2F0EB;
  cursor: default;
}
.challenge-signup-input.invalid { border-color: #c0392b; }
.challenge-signup-cta {
  width: 100%;
  background: #0D7C6B;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.challenge-signup-cta:hover { background: #0a6b5c; }
.challenge-signup-note {
  font-size: 12px;
  color: #8FA3A6;
  line-height: 1.5;
  margin: 10px 0 0;
}
.challenge-signup-confirmed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
  padding: 16px;
  opacity: 0;
  animation: challengeSignupFadeIn 300ms ease forwards;
}
.challenge-signup-confirmed.fade-in { opacity: 1; }
@keyframes challengeSignupFadeIn { from { opacity: 0; } to { opacity: 1; } }
.challenge-signup-check {
  color: #0D7C6B;
  font-size: 24px;
  line-height: 1;
}
.challenge-signup-confirm-text {
  color: #0D7C6B;
  font-size: 15px;
  font-weight: 500;
}

/* Vecchia .vtimeline rimossa — nuova timeline è in design-system.css. */

/* ─── Q4 "Almost there" notice ──────────────────────────────────────────── */
.q-almost-there {
  font-size: 12px;
  color: #8FA3A6;
  text-align: center;
  margin: 0 0 16px;
}

/* ─── Analyzing screen (text-only sequence) ─────────────────────────────── */
#screen-analyzing:not(.hidden) {
  background: #FAF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}
/* === Analyzing fluido — orb pulsante + 2 frasi che respirano === */
.analyzing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  padding: 2rem 1.5rem;
  margin: auto;
}

.analyzing-visual {
  margin-bottom: 2.5rem;
}
.analyzing-orb {
  width: clamp(100px, 20vw, 160px);
  height: clamp(100px, 20vw, 160px);
  display: block;
}
.orb-ring,
.orb-core { transform-origin: center; transform-box: fill-box; }
.orb-ring-1 { animation: orbPulse 3s ease-in-out infinite; }
.orb-ring-2 { animation: orbPulse 3s ease-in-out 0.5s infinite; }
.orb-core   { animation: orbCorePulse 2s ease-in-out infinite; }

@keyframes orbPulse {
  0%, 100% { transform: scale(1);    opacity: 0.3; }
  50%      { transform: scale(1.15); opacity: 0.6; }
}
@keyframes orbCorePulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.analyzing-text-container {
  position: relative;
  min-height: 3em;
  width: 100%;
}
.analyzing-text {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: #1A3034;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.analyzing-text.analyzing-text-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .orb-ring-1,
  .orb-ring-2,
  .orb-core {
    animation: none;
  }
  .analyzing-text {
    transition: opacity 0.3s ease;
    transform: none;
    filter: none;
  }
}

/* ─── Compact stats block (pain section) ────────────────────────────────── */
.stats-block {
  background: #FFFFFF;
  border: 1.5px solid #E2DFD8;
  border-radius: 16px;
  padding: 0;
  max-width: 640px;
  margin: 24px auto 0;
}
.stat-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}
.stat-left {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat-badge {
  background: #0D7C6B;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.stat-number {
  color: #0D7C6B;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}
.stat-right {
  flex: 1;
  text-align: left;
}
.stat-text {
  color: #5E7A7E;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}
.stat-source {
  color: #8FA3A6;
  font-size: 11px;
  margin: 6px 0 0;
  text-align: left;
}
.stat-divider {
  height: 1px;
  background: #E8E5DE;
  margin: 0 20px;
}
@media (max-width: 420px) {
  .stat-row { padding: 16px; gap: 14px; }
  .stat-left { width: 96px; }
  .stat-number { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE FOUNDATION + LANDING DESKTOP LAYOUT
   Mobile-first. Breakpoints: 768 (tablet) / 1024 (desktop) / 1440 (large).
   Applies ONLY to #screen-intro (landing). Internal flow screens (quiz,
   result, legal, etc.) keep their existing 720px .screen-inner cap.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --container-md: 960px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --section-py-md: 80px;
  --section-py-lg: 120px;
}

/* ─── Landing container widening ──────────────────────────────────────── */
/* The landing wraps every section in .screen-inner.intro-screen, which
   inherits the global 720px cap from .screen-inner. Override that so the
   landing can breathe on wide screens. */
@media (min-width: 768px) {
  #screen-intro .screen-inner.intro-screen {
    max-width: var(--container-md);
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1024px) {
  #screen-intro .screen-inner.intro-screen {
    max-width: var(--container-lg);
    padding-left: 48px;
    padding-right: 48px;
  }
}
@media (min-width: 1440px) {
  #screen-intro .screen-inner.intro-screen {
    max-width: var(--container-xl);
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* ─── Hero: stay centered single column, grow on desktop ──────────────── */
@media (min-width: 768px) {
  #screen-intro .intro-content {
    max-width: 800px;
    min-height: 0;
    padding: 96px 0 56px;
  }
  .intro-eyebrow { margin: 0 auto 16px; font-size: 12px; }
  .intro-headline { font-size: clamp(2.5rem, 5vw, 3.75rem); margin: 0 0 20px; }
  .intro-sub { margin: 0 auto 28px; max-width: 40rem; font-size: clamp(1rem, 1.6vw, 1.25rem); }
  .btn-hero-cta { width: auto; max-width: none; margin: 0; padding: 18px 40px; font-size: 17px; }
}
@media (min-width: 1024px) {
  #screen-intro .intro-content {
    max-width: 900px;
    padding: 128px 0 72px;
  }
  .intro-headline { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -1.5px; }
  .intro-sub { font-size: clamp(1.125rem, 1.5vw, 1.375rem); margin-bottom: 36px; }
  .btn-hero-cta { padding: 20px 48px; font-size: 17px; }
}
@media (min-width: 1440px) {
  #screen-intro .intro-content { padding-top: 140px; padding-bottom: 80px; }
  .intro-headline { font-size: clamp(3.5rem, 4.5vw, 4.5rem); }
}

/* ─── Section headlines grow on wider viewports ───────────────────────── */
@media (min-width: 768px) {
  .section-headline { font-size: clamp(1.85rem, 3.8vw, 2.5rem); margin-bottom: 2.75rem; }
}
@media (min-width: 1024px) {
  .section-headline { font-size: clamp(2.25rem, 3vw, 2.75rem); margin-bottom: 3rem; }
}

/* ─── "Come funziona" (.how-it-works): 1 → 2 → 4 columns ──────────────── */
@media (min-width: 768px) {
  .how-it-works { max-width: 960px; margin: 80px auto; padding: 0 32px; }
  .hiw-grid, .hiw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (min-width: 1024px) {
  .how-it-works { max-width: 1100px; margin: 120px auto; padding: 0 48px; }
  .hiw-grid, .hiw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
  }
  .hiw-card { padding: 32px 24px; text-align: left; }
  .hiw-num { text-align: left; margin: 0 0 16px; font-size: 48px; }
  .hiw-title { text-align: left; font-size: 1.15rem; margin-bottom: 10px; }
  .hiw-body { max-width: none; margin: 0; text-align: left; font-size: 0.95rem; }
  .hiw-connector { display: none; }
}
@media (min-width: 1440px) {
  .hiw-num { font-size: 56px; }
}

/* ─── "Cosa richiedono" (.requires-section): 1 → 2 → 4 ────────────────── */
@media (max-width: 767px) {
  .requires-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 768px) {
  .requires-section { max-width: 960px; margin: 80px auto; padding: 0 32px; }
  .requires-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .requires-title { font-size: 1rem; }
  .requires-body { font-size: 0.9rem; line-height: 1.55; }
}
@media (min-width: 1024px) {
  .requires-section { max-width: 1100px; margin: 120px auto; padding: 0 48px; }
  .requires-card { padding: 32px 24px; }
  .requires-emoji { font-size: 32px; margin-bottom: 16px; }
  .requires-title { font-size: 1.0625rem; }
}
@media (min-width: 1280px) {
  .requires-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ─── FAQ: single column, cap 800px, bigger type ──────────────────────── */
@media (min-width: 768px) {
  .faq-section { max-width: 800px; margin: 80px auto; padding: 0 32px; }
  .faq-q-text { font-size: 17px; }
  .faq-a { font-size: 15px; }
}
@media (min-width: 1024px) {
  .faq-section { margin: 120px auto; padding: 0 48px; }
  .faq-q { padding: 20px 0; }
  .faq-q-text { font-size: 18px; }
  .faq-a { font-size: 15px; line-height: 1.65; }
}

/* Vecchie responsive .vtimeline rimosse — nuova timeline usa
   var(--section-padding-y-*) + clamp() in design-system.css. */

/* ─── LinkedIn post mockup: centered, generous padding, don't upscale ─── */
@media (min-width: 768px) {
  .li-post-section { padding: 80px 32px; }
  .li-post-section > * { max-width: 760px; }
  .li-post-wrap { max-width: 550px; transform: none; }
  .li-section-sub { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .li-post-section { padding: 120px 48px; }
}

/* ─── Final CTA: cap 800px, generous padding, bigger button ───────────── */
@media (min-width: 768px) {
  .intro-final-cta { max-width: 800px; margin: 4rem auto; padding: 96px 32px; }
  .intro-final-headline { font-size: clamp(2rem, 4vw, 3rem); }
  .final-cta-sub { font-size: 1.1rem; margin-bottom: 2.4rem; }
}
@media (min-width: 1024px) {
  .intro-final-cta { padding: 140px 48px; margin: 5rem auto; }
  .intro-final-headline { font-size: clamp(2.5rem, 3.5vw, 3rem); }
  .btn-cta-lg { padding: 1.3rem 3rem; font-size: 1.15rem; }
}

/* ─── Footer: stacked on mobile, row on tablet+ ───────────────────────── */
@media (min-width: 768px) {
  .site-footer { padding: 3rem 2rem; }
  .footer-inner {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    text-align: left;
  }
  .footer-brand { margin-bottom: 0; flex-shrink: 0; }
  .footer-links { margin-bottom: 0; }
  .footer-social { margin-bottom: 0; }
  .footer-copy { flex-basis: 100%; text-align: center; margin-top: 0.5rem; }
}

/* ─── Global header: align to container padding on desktop ────────────── */
@media (min-width: 768px) {
  .global-header { padding: 18px 32px; }
  .logo { font-size: 20px; }
}
@media (min-width: 1024px) {
  .global-header { padding: 20px 48px; }
}
@media (min-width: 1440px) {
  .global-header { padding: 20px 64px; }
}

/* ─── Body text scaling (generic) ─────────────────────────────────────── */
@media (min-width: 1024px) {
  body { font-size: 16px; line-height: 1.65; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROMPT 3 — QUIZ + EMAIL GATE DESKTOP
   Focused, centered, roomier. No widening of option lists or ranking.
   Ranking already uses pointer events (mouse + touch unified).
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Quiz topbar: keep sticky, tighten padding on desktop ────────────── */
@media (min-width: 768px) {
  .quiz-topbar-v2 { height: 56px; padding: 0 1.5rem; }
  .quiz-topbar-row { max-width: 720px; gap: 1rem; }
  .quiz-progress-counter { font-size: 0.82rem; }
}
@media (min-width: 1024px) {
  .quiz-topbar-v2 { height: 60px; padding: 0 2rem; }
}

/* ─── Question stage: wider cap on desktop, generous vertical room ────── */
@media (min-width: 768px) {
  .quiz-screen-v2 { padding: 2.5rem 2rem 9rem; }
  .question-stage-v2 { max-width: 680px; }
  .q-card-v2 { padding: 2.5rem 2.4rem; border-radius: 20px; }
  .q-text-v2 { font-size: 1.7rem; margin-bottom: 2rem; }
  .q-subtitle { font-size: 0.95rem; margin: -1.4rem 0 1.6rem; }
}
@media (min-width: 1024px) {
  .quiz-screen-v2 { padding: 4rem 2rem 10rem; }
  .question-stage-v2 { max-width: 720px; }
  .q-card-v2 { padding: 3rem 2.8rem; }
  .q-text-v2 { font-size: 1.85rem; }
  .q-number { font-size: 0.75rem; margin-bottom: 1rem; }
}

/* ─── Option cards: stay single column, bigger padding + gap on desktop ─ */
@media (min-width: 768px) {
  .option-list { gap: 14px; }
  .option-btn {
    padding: 1.15rem 1.3rem;
    min-height: 60px;
    font-size: 1rem;
    border-radius: 14px;
  }
  .option-btn:hover {
    border-color: rgba(13, 124, 107, 0.6);
    box-shadow: 0 4px 14px rgba(13, 124, 107, 0.08);
    transform: translateY(-1px);
  }
  .option-letter { width: 32px; height: 32px; font-size: 0.9rem; }
}
@media (min-width: 1024px) {
  .option-list { gap: 16px; }
  .option-btn { padding: 1.25rem 1.4rem; min-height: 64px; font-size: 1.03rem; }
}

/* ─── Ranking: slightly larger on desktop, grab cursor for mouse ─────── */
@media (min-width: 768px) {
  .ranking-list { gap: 12px; }
  .ranking-card { padding: 1.1rem 1.2rem; border-radius: 14px; }
  .ranking-text { font-size: 1rem; }
  .ranking-pos { width: 36px; height: 36px; font-size: 0.95rem; }
}
@media (min-width: 1024px) {
  .ranking-card { padding: 1.2rem 1.3rem; }
  .ranking-handle { width: 32px; height: 32px; }
  .ranking-handle .drag-handle { width: 18px; height: 18px; }
}

/* ─── Slider (D3): same size but give it room ───────────────────────── */
@media (min-width: 768px) {
  .slider-poles { font-size: 0.95rem; }
}

/* ─── Quiz footer: align to question width on desktop ────────────────── */
@media (min-width: 768px) {
  .quiz-footer { padding: 1rem 2rem max(1rem, env(safe-area-inset-bottom, 1rem)); }
  .quiz-footer-inner { max-width: 720px; gap: 1rem; }
  .quiz-nav-btn { min-height: 56px; font-size: 1.02rem; padding: 0 1.75rem; }
  .quiz-next-btn { min-width: 180px; }
}
@media (min-width: 1024px) {
  .quiz-nav-btn { min-height: 60px; font-size: 1.05rem; padding: 0 2rem; }
  .quiz-next-btn { min-width: 200px; padding: 0 2.4rem; }
}

/* Vecchie regole responsive analyzing-container/axis/reveal rimosse.
   Il nuovo design (orb + 2 frasi) usa clamp() per scaling fluido, non
   richiede override responsive. */

/* ─── Email gate: turn the inner block into a card on desktop ────────── */
@media (min-width: 768px) {
  #screen-email-gate .screen-inner.egate-screen {
    max-width: 520px;
    margin: 64px auto;
    padding: 48px 40px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(26, 48, 52, 0.06);
  }
  .egate-name { font-size: 28px; margin-bottom: 8px; }
  .egate-tagline { font-size: 15px; margin-bottom: 24px; }
  .egate-label { font-size: 15px; }
  .egate-input { padding: 16px 18px; font-size: 16px; }
  .egate-cta { padding: 16px 18px; font-size: 16px; }
  .egate-note { font-size: 12px; }
  .egate-form { gap: 12px; }
}
@media (min-width: 1024px) {
  #screen-email-gate .screen-inner.egate-screen {
    max-width: 540px;
    margin: 96px auto;
    padding: 56px 48px;
    box-shadow: 0 6px 32px rgba(26, 48, 52, 0.08);
  }
  .egate-name { font-size: 32px; }
  .egate-tagline { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROMPT 4 — PROFILE PAGE DESKTOP LAYOUT
   Applies to #screen-result, #screen-public, #screen-debug-profiles
   (all share .profile-screen + .profile-content).
   Uses CSS grid to rearrange sibling .profile-section elements into a
   dashboard-style layout without touching the JS-rendered HTML.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Widen content container on tablet ─────────────────────────────── */
@media (min-width: 768px) {
  .profile-screen .profile-content {
    max-width: 800px;
    padding: 3rem 32px 5rem;
  }
  .profile-hero-name { font-size: clamp(36px, 5vw, 48px); }
  .profile-hero-emoji { font-size: 36px; }
  .profile-superpower { font-size: 19px; max-width: 640px; }
  .profile-weakness { font-size: 16px; }
  .profile-team-role { font-size: 16px; }
}

/* ─── Desktop: grid layout, hero + radar side by side ──────────────── */
@media (min-width: 1024px) {
  .profile-screen .profile-content {
    max-width: 1100px;
    padding: 3rem 48px 6rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 64px;
    row-gap: 48px;
    align-items: start;
  }

  /* Row 1: hero (left) + radar (right), vertically centered together */
  .profile-hero {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    align-self: center;
    text-align: left;
    padding: 2rem 0;
  }
  .profile-hero-name {
    font-size: clamp(48px, 5vw, 64px);
    text-align: left;
    margin-bottom: 0.75rem;
  }
  .profile-hero-emoji {
    font-size: 40px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
  }
  .profile-rarity {
    text-align: left;
    font-size: 14px;
    margin-top: 0.8rem;
  }

  .profile-radar {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 0;
  }
  .profile-radar-wrap {
    max-width: 360px;
    margin: 0 auto;
  }

  /* All other sections span the full row */
  .profile-traits,
  .profile-works-with,
  .profile-cta,
  .profile-public-cta,
  #challenges-section,
  .why-forge-section,
  .profile-footer {
    grid-column: 1 / -1;
  }

  /* ── Traits row: 3 cards (superpower / blind spot / team role) ──── */
  .profile-traits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 2rem 0;
    align-items: stretch;
    text-align: left;
  }
  .profile-superpower,
  .profile-weakness-block,
  .profile-teamrole-block {
    max-width: none;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #E2DFD8;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(26, 48, 52, 0.04);
  }
  .profile-superpower {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
  }
  .profile-weakness-block { border-top: none; }
  .profile-weakness { font-size: 16px; line-height: 1.55; }
  .profile-teamrole-block {
    background: #F0FAF8;
    border-color: #D0ECE5;
    border-left: 3px solid #0D7C6B;
    padding: 32px 28px;
  }
  .profile-teamrole-block .profile-microlabel { text-align: left; }

  /* ── Works-with: 2 cards side by side, title centered ───────────── */
  .profile-works-with { text-align: center; padding: 2rem 0; }
  .works-with-title { font-size: 20px; margin-bottom: 1.5rem; }
  .works-with-grid {
    max-width: 900px;
    gap: 24px;
    margin-bottom: 1.2rem;
  }
  .works-with-card { padding: 24px; }
  .works-with-name { font-size: 17px; }
  .works-with-reason { font-size: 14px; line-height: 1.5; }
  .works-with-note { font-size: 13px; }

  /* ── Primary+secondary CTA: side by side ────────────────────────── */
  .profile-cta, .profile-public-cta {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 2rem 0 3rem;
  }
  .btn-profile-primary, .btn-profile-secondary {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
    min-width: 0;
  }

  /* ── Challenges: wider card, roomier padding, 2-col tasks list ──── */
  #challenges-section.profile-challenges {
    max-width: 1000px;
    padding: 2rem 0;
    margin: 0 auto;
  }
  .challenges-title { font-size: 28px; }
  .challenges-sub { font-size: 16px; margin-bottom: 32px; }
  .challenge-card {
    padding: 48px 56px;
    border-radius: 20px;
  }
  .challenge-card-title { font-size: 22px; margin-bottom: 14px; line-height: 1.3; }
  .challenge-card-meta { font-size: 14px; gap: 8px; }
  .challenge-tasks { padding: 20px 0 2px; margin-top: 20px; }
  .challenge-tasks-heading { font-size: 13px; margin-bottom: 14px; }
  .challenge-tasks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 32px;
  }
  .challenge-tasks-list li { font-size: 14px; padding: 0 0 6px 18px; }
  .challenges-linkedin-note { font-size: 14px; margin: 24px 0; }

  /* ── Why Forge: 2 columns (founders left, manifesto right) ──────── */
  .why-forge-section {
    padding: 96px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 32px;
    align-items: center;
    border-radius: 20px;
  }
  .why-forge-section > * { max-width: none; margin-left: 0; margin-right: 0; }
  .why-forge-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 28px;
    margin: 0 0 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  .wf-founders { justify-content: center; gap: 48px; }
  .wf-founder { width: 140px; }
  .wf-founder-name { font-size: 16px; }
  .wf-founder-role { font-size: 13px; }
  .wf-manifesto {
    text-align: left;
    margin-top: 0;
    gap: 20px;
    max-width: 440px;
  }
  .wf-line-1 { font-size: 16px; }
  .wf-line-2 { font-size: 19px; }
  .wf-line-3 { font-size: 15px; }

  /* ── Footer: unchanged (compact) ────────────────────────────────── */
  .profile-footer { padding: 32px 24px 56px; }
  .profile-footer-links { font-size: 14px; }
}

/* ─── Large desktop: a bit more air ─────────────────────────────────── */
@media (min-width: 1440px) {
  .profile-screen .profile-content {
    max-width: 1200px;
    padding: 4rem 64px 6rem;
    column-gap: 80px;
    row-gap: 64px;
  }
  .profile-hero-name { font-size: clamp(56px, 5vw, 72px); }
  .profile-radar-wrap { max-width: 400px; }
  .challenge-card { padding: 64px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROMPT 5 — CROSS-CUTTING POLISH
   Global image safety, keyboard a11y, hover-on-touch guards, doc header.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Global image responsiveness ───────────────────────────────────── */
/* Covers founder portraits, LinkedIn avatar, any future imagery. SVGs
   with an explicit width="100%" (radar) still honor their own rules. */
img {
  max-width: 100%;
  height: auto;
}

/* ─── Keyboard focus — visible only for keyboard users ─────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Opt-out for elements that already manage their own focus visual */
.option-btn:focus-visible,
.ranking-card:focus-visible,
.faq-q:focus-visible,
.btn-hero-cta:focus-visible,
.btn-cta:focus-visible,
.btn-profile-primary:focus-visible,
.btn-profile-secondary:focus-visible,
.egate-cta:focus-visible,
.quiz-nav-btn:focus-visible {
  outline-offset: 3px;
}

/* ─── Hover guard: only apply hover effects on real hover devices ──── */
/* Without this, tapping a button on touch devices leaves it in a
   "stuck hover" state until another element is tapped. */
@media (hover: none) {
  .btn-hero-cta:hover,
  .btn-cta:hover,
  .btn-profile-primary:hover,
  .btn-profile-secondary:hover,
  .quiz-next-btn:hover:not(:disabled),
  .quiz-back-btn:hover,
  .option-btn:hover,
  .hiw-card:hover,
  .requires-card:hover,
  .pain-card:hover,
  .works-with-card:hover,
  .challenge-card:hover,
  .egate-cta:hover,
  .footer-link:hover,
  .footer-social-link:hover,
  .lang-toggle .lang-opt:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ─── Minimum tap targets on mobile (WCAG 2.5.5) ──────────────────── */
@media (max-width: 767px) {
  .quiz-exit-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .lang-toggle .lang-opt {
    min-height: 36px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─── Horizontal-scroll safety net ────────────────────────────────── */
/* body already has overflow-x: hidden (line 49). Belt and braces for
   the html element — guards against any viewport-unit miscalc. */
html { overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════════════
   GDPR — consent checkboxes, cookie banner, /privacy/my-data page
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Consent checkboxes in the email gate ─────────────────────────── */
.consent-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  text-align: left;
}
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  padding: 4px 0;
}
.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #0D7C6B;
  cursor: pointer;
}
.consent-checkbox .consent-text {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1A3034;
}
.consent-checkbox .consent-text-optional {
  color: #5E7A7E;
}
.consent-checkbox .consent-text a {
  color: #0D7C6B;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Disabled submit styling — mirror the site's CTA disabled state. */
.egate-cta:disabled {
  background: #C9C5BC;
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ─── Cookie banner (thin bottom strip, non-blocking) ─────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom, 12px));
  background: rgba(26, 48, 52, 0.96);
  color: #F2F0EB;
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.cookie-banner.hidden { display: none !important; }
.cookie-banner-text { margin: 0; max-width: 720px; }
.cookie-banner-text a { color: #8EDAC8; text-decoration: underline; }
.cookie-banner-btn {
  flex-shrink: 0;
  background: #FFFFFF;
  color: #1A3034;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.cookie-banner-btn:hover { background: #F2F0EB; }

/* ─── /privacy/my-data page ────────────────────────────────────────── */
.mydata-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  max-width: 640px;
}
.mydata-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A3034;
}
.mydata-input {
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #E2DFD8;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  color: #1A3034;
  background: #FFFFFF;
  box-sizing: border-box;
}
.mydata-input:focus { outline: none; border-color: #0D7C6B; }
.mydata-input.invalid { border-color: #c0392b; }
.mydata-error {
  color: #c0392b;
  font-size: 13px;
  margin: -8px 0 0;
}
.mydata-error.hidden { display: none; }
.mydata-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .mydata-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.mydata-card {
  background: #FFFFFF;
  border: 1px solid #E2DFD8;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mydata-card h3 {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1A3034;
  margin: 0;
}
.mydata-card p {
  color: #5E7A7E;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.mydata-card-danger { border-color: #EADBD8; }
.mydata-btn {
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 44px;
}
.mydata-btn-secondary {
  background: #0D7C6B;
  color: #FFFFFF;
}
.mydata-btn-secondary:hover { background: #0A6356; }
.mydata-btn-danger {
  background: transparent;
  color: #c0392b;
  border: 2px solid #c0392b;
}
.mydata-btn-danger:hover { background: rgba(192,57,43,0.08); }
.mydata-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mydata-result {
  margin: 16px 0 0;
  padding: 12px 16px;
  background: #E8F5F2;
  color: #0D7C6B;
  border-radius: 10px;
  font-size: 14px;
}
.mydata-result.is-error { background: #FBE9E7; color: #c0392b; }
.mydata-result.hidden { display: none; }
.mydata-footnote {
  color: #8FA3A6;
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0 0;
}
.mydata-footnote a { color: #0D7C6B; }

/* Make the cookie banner respect hover guards on touch devices. */
@media (hover: none) {
  .cookie-banner-btn:hover,
  .mydata-btn:hover { background: initial; }
}
