/* Idea Launch Map — shared styles (warm palette, Anna-approved readability) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --bg:          #fdfcf9;
  --ink:         #1a1a1a;
  --ink-muted:   #666;
  --accent:      #e85d3e;
  --accent-cool: #3d5a80;
  --surface:     #f5f0ea;
  --border:      #e8e4dc;
  --success:     #4a7c59;
  --warning:     #d89b34;

  --maker:           #6b4e3d;
  --connector:       #c73e1d;
  --trailblazer:     #e85d3e;
  --architect:       #3d5a80;
  --phoenix:         #a83232;
  --freedom_builder: #4a7c59;

  --size-hero:    clamp(48px, 10vw, 120px);
  --size-h1:      clamp(32px, 6vw, 64px);
  --size-h2:      clamp(24px, 4vw, 36px);
  --size-body:    18px;
  --size-body-lg: 20px;
  --size-small:   16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: 24px; font-weight: 500; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide { max-width: 960px; }

/* Hero */
.hero {
  padding: 80px 24px 60px;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--size-hero);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero .subtitle {
  font-size: 22px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body-lg);
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-bottom-color: transparent;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}

/* Kicker */
.kicker {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

/* Scanner */
.scanner-shell {
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 280ms ease;
}
.progress-label {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}

.q-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.q-subtext {
  font-size: var(--size-body);
  color: var(--ink-muted);
  margin-bottom: 32px;
}

textarea, input[type="text"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  min-height: 120px;
  transition: border-color 120ms ease;
}
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.char-count {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Option buttons (single-select) */
.option-list { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  line-height: 1.4;
  padding: 20px 24px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}
.option-btn:hover { border-color: var(--ink); background: var(--surface); }
.option-btn.selected {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(232, 93, 62, 0.12);
}
.option-btn:active { transform: translateY(1px); }

/* Scale group (Q7) */
.scale-row { margin-bottom: 28px; }
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.scale-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body-lg);
  padding: 14px 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.scale-btn:hover { border-color: var(--ink); }
.scale-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

/* Nav */
.q-nav {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

/* Error */
.validation-msg {
  color: var(--accent);
  font-size: 15px;
  margin-top: 12px;
  min-height: 22px;
}

/* ================================================================
   Results page — identity-first layout
   Archetype color flows in via --archetype (set by JS at runtime).
================================================================ */

.results-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.results-shell .kicker {
  color: var(--archetype, var(--accent));
}

/* Hero */
.results-hero {
  padding: 24px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.results-hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--archetype, var(--accent));
  margin: 0 0 16px;
}
.results-hero-oneliner {
  font-size: var(--size-body);
  color: var(--ink);
  max-width: 560px;
  margin: 0 0 20px;
}
.results-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-muted);
  border-left: 3px solid var(--archetype, var(--accent));
  padding: 4px 0 4px 16px;
  margin: 24px 0 0;
}

/* Sections */
.results-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.results-section:last-of-type { border-bottom: none; }
.results-section h2 {
  font-size: var(--size-h2);
  margin: 0 0 20px;
}

/* Launch Map visual */
.launch-map {
  position: relative;
  margin: 24px 0 16px;
}
.lm-track {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 28px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.lm-cells {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  text-align: center;
}
.lm-cell {
  padding: 12px 0;
  opacity: 0.55;
  transition: opacity 180ms ease;
}
.lm-cell.lm-active { opacity: 1; }
.lm-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.lm-cell.lm-active .lm-letter { color: var(--archetype, var(--accent)); }
.lm-dot {
  height: 20px;
  font-size: 28px;
  line-height: 20px;
  color: var(--archetype, var(--accent));
  margin-bottom: 6px;
}
.lm-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lm-cell.lm-active .lm-label { color: var(--ink); }
.lm-position-label {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 8px 0 0;
}
.lm-position-label strong { color: var(--archetype, var(--accent)); }

/* Prediction list */
.prediction-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.prediction-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border);
  font-size: var(--size-body);
  line-height: 1.5;
}
.prediction-list li:last-child { border-bottom: none; }
.prediction-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--archetype, var(--accent));
  font-weight: 700;
}

/* Next step */
.next-step-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  border-bottom: none;
  margin: 40px 0;
}
.next-step-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 8px 0 0;
}

/* Edge list */
.edge-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.edge-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  font-size: var(--size-body);
  line-height: 1.5;
}
.edge-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--archetype, var(--accent));
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Growth areas (collapsible) */
.growth-intro {
  font-size: var(--size-body);
  color: var(--ink-muted);
  margin: 0 0 24px;
}
.growth-area {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}
.growth-area summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.growth-area summary::-webkit-details-marker { display: none; }
.growth-area[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.growth-chev {
  font-size: 20px;
  color: var(--ink-muted);
  transition: transform 200ms ease;
}
.growth-area[open] .growth-chev { transform: rotate(180deg); }
.growth-body {
  padding: 20px 24px 24px;
}
.growth-reframe, .growth-try {
  font-size: var(--size-body);
  line-height: 1.55;
  margin: 0 0 12px;
}
.growth-try { margin-bottom: 0; }
.growth-reframe strong, .growth-try strong {
  color: var(--archetype, var(--accent));
  font-weight: 700;
}

/* Pair section */
.pair-name {
  font-size: var(--size-h2);
  margin: 0 0 12px;
  color: var(--archetype, var(--accent));
}
.pair-why {
  font-size: var(--size-body);
  color: var(--ink-muted);
  max-width: 560px;
}

/* CTA / email section */
.cta-section {
  background: var(--ink);
  color: var(--bg);
  padding: 48px 32px;
  border-radius: 20px;
  border-bottom: none;
  margin: 48px 0 32px;
}
.cta-section .kicker { color: var(--archetype, var(--accent)); }
.cta-section h2 {
  color: var(--bg);
  margin-bottom: 12px;
}
.cta-sub {
  color: rgba(253, 252, 249, 0.72);
  font-size: var(--size-body);
  margin: 0 0 24px;
  max-width: 520px;
}
.email-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.email-form input[type="email"] {
  flex: 1 1 240px;
  font-family: var(--font-body);
  font-size: var(--size-body-lg);
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--archetype, var(--accent));
}
.email-form .btn {
  border-color: var(--archetype, var(--accent));
  background: var(--archetype, var(--accent));
  color: var(--bg);
  flex: 0 0 auto;
}
.email-error {
  color: #ffb4a1;
  font-size: 15px;
  margin: 12px 0 0;
  min-height: 22px;
}

/* Footer */
.results-footer {
  padding: 40px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}
.results-footer a {
  color: var(--ink-muted);
  border-bottom-color: var(--border);
}
.results-footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Empty state */
.results-empty {
  text-align: center;
  padding: 80px 24px;
}
.results-empty .btn { margin-top: 16px; }

/* Tighter mobile */
@media (max-width: 520px) {
  .results-shell { padding: 40px 20px 60px; }
  .lm-letter { font-size: 18px; }
  .lm-label { font-size: 10px; }
  .next-step-text { font-size: 20px; }
  .cta-section { padding: 36px 24px; }
  .email-form { flex-direction: column; }
  .email-form .btn { width: 100%; }
}

/* ================================================================
   Scanner live map panel — compact variant, sits above questions
================================================================ */

.scanner-map {
  padding: 12px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sm-intro {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.scanner-map .launch-map { margin: 4px 0 0; }
.scanner-map .lm-track { top: 20px; }
.scanner-map .lm-cell { padding: 6px 0; opacity: 0.45; }
.scanner-map .lm-cell.lm-active { opacity: 1; }
.scanner-map .lm-cell.lm-ghost { opacity: 0.75; }
.scanner-map .lm-letter {
  font-size: 14px;
  margin-bottom: 4px;
}
.scanner-map .lm-dot {
  font-size: 16px;
  height: 14px;
  line-height: 14px;
  margin-bottom: 2px;
}
.scanner-map .lm-label {
  font-size: 9px;
  letter-spacing: 0.06em;
}
.sm-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 12px 0 0;
  min-height: 20px;
  line-height: 1.4;
}
.sm-label strong { color: var(--archetype, var(--accent)); font-weight: 600; }

@media (max-width: 520px) {
  .scanner-map .lm-letter { font-size: 12px; }
  .scanner-map .lm-label  { font-size: 8px; }
  .sm-label { font-size: 12px; }
}

/* ================================================================
   Thanks page (reuses .results-shell)
================================================================ */

.thanks-shell .thanks-hero { border-bottom: none; padding-bottom: 24px; margin-bottom: 24px; }
.thanks-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.thanks-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--size-body);
  line-height: 1.5;
}
.thanks-list li:last-child { border-bottom: none; }
.thanks-list li strong { color: var(--archetype, var(--accent)); font-weight: 600; }
.thanks-back { text-align: center; border-bottom: none; }
.thanks-back .btn { color: var(--ink); }
