/* ========================================
   Mini-Audit Diagnostic — Style Tomigital
   ========================================
   Charte : dark-first, jaune accent, Archivo + Manrope
*/

:root {
  /* Couleurs Tomigital */
  --bg-main: #0A0B10;
  --bg-secondary: #11141E;
  --bg-card: #1A1D2E;
  --accent: #F9D65E;
  --accent-soft: rgba(249, 214, 94, 0.12);
  --accent-border: rgba(249, 214, 94, 0.3);

  --text-main: #FFFFFF;
  --text-secondary: #8F96A3;
  --text-soft: rgba(255, 255, 255, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.18);

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(at 20% 0%, rgba(249, 214, 94, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 100%, rgba(249, 214, 94, 0.025) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-wrap: balance;
}

/* Cache le bloc des cards intro s'il est vide */
.intro-blocks:empty {
  display: none;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== TOPBAR ========== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.progress-wrap {
  flex: 1;
  max-width: 420px;
}

.progress-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.progress-step {
  display: none;
}

.progress-label[data-near-end="true"] {
  color: var(--accent);
}

.progress-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--t-base);
}

/* ========== SCREEN CONTAINER ========== */

.screen-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 100%;
  animation: screen-enter var(--t-base);
}

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

/* ========== INTRO SCREEN ========== */

.intro {
  text-align: center;
  padding: 16px 0;
}

.intro-eyebrow {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
}

.intro h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.intro h1 .accent {
  color: var(--accent);
}

.intro p.subtitle {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 32px;
}

.intro-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
  text-align: left;
}

.intro-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 14px;
}

.intro-block .icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.intro-block h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.intro-block p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.intro .filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin: 32px auto;
  max-width: 540px;
}

.intro .filter-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.intro .filter-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.intro .filter-card p:last-child {
  margin-bottom: 0;
}

.intro .filter-card strong {
  color: var(--text-main);
}

/* ========== QUESTION SCREEN ========== */

.question {
  max-width: 600px;
  margin: 0 auto;
}

.question-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.question h2 {
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  margin-bottom: 28px;
}

.question .question-hint {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  margin-top: -16px;
}

/* Options list */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-main);
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  user-select: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.option:hover {
  border-color: var(--border-medium);
  background: #1F2238;
  transform: translateY(-1px);
}

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option .marker {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-medium);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.option[data-input-type="radio"] .marker {
  border-radius: 50%;
}

.option.selected .marker {
  border-color: var(--accent);
  background: var(--accent);
}

.option.selected .marker::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--bg-main);
  border-radius: inherit;
}

.option[data-input-type="radio"].selected .marker::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.option .label {
  flex: 1;
}

/* Text inputs */
.text-input,
.textarea-input {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--t-fast);
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--accent);
}

.textarea-input {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: var(--text-secondary);
}

/* Capture lead form */
.lead-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

.field .label-required {
  color: var(--accent);
  margin-left: 3px;
}

.field .field-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 6px;
}

.consent input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}

/* Error message */
.error-msg {
  color: #ff8a80;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

.error-msg:empty {
  display: none;
}

/* ========== MILESTONE SCREEN ========== */

.milestone {
  text-align: center;
  padding: 32px 0;
  max-width: 560px;
  margin: 0 auto;
}

.milestone .intro-eyebrow {
  margin-bottom: 24px;
}

.milestone-title {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
  margin-bottom: 24px;
}

.milestone-body {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.milestone-body:last-of-type {
  margin-bottom: 32px;
}

/* ========== ANALYZING SCREEN ========== */

.analyzing {
  text-align: center;
  padding: 24px 0;
  max-width: 620px;
  margin: 0 auto;
}

.analyzing-percent {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 14vw, 96px);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.analyzing-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 32px;
}

.analyzing-bar {
  height: 8px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 36px;
  max-width: 440px;
}

.analyzing-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0%;
  transition: width 80ms linear;
}

.analyzing-steps {
  list-style: none;
  text-align: left;
  margin: 0 auto 36px;
  max-width: 440px;
  padding: 0;
}

.analyzing-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--t-fast);
}

.analyzing-step:last-child {
  border-bottom: none;
}

.analyzing-step.current {
  color: var(--text-soft);
}

.analyzing-step.done {
  color: var(--text-main);
}

.analyzing-step .check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border-medium);
  position: relative;
  transition: all var(--t-fast);
  order: 2;
}

.analyzing-step.done .check {
  background: var(--accent);
  border-color: var(--accent);
}

.analyzing-step.done .check::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0B10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}

.analyzing-step .step-label {
  flex: 1;
  order: 1;
}

.analyzing-footer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

/* ========== RESULT PAGE ========== */

.result {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 80px;
}

.result-header {
  margin-bottom: 40px;
}

.result-header h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.result-header p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.result-eyebrow {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.result-profile {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1F2238 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 36px;
  text-align: center;
}

.result-pattern-name {
  font-size: clamp(28px, 5.5vw, 40px);
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.result-pattern-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.result-reasons-block {
  background: rgba(249, 214, 94, 0.06);
  border: 1px solid var(--accent-border);
}

.result-reasons-block h3 {
  color: var(--accent);
}

.result-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-reasons-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.result-reasons-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.result-pattern-miroir {
  color: var(--text-soft);
  font-size: 18px;
  font-style: italic;
  line-height: 1.45;
  max-width: 540px;
  margin: 0 auto;
}

.result-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 24px;
}

.result-block h3 {
  font-size: 19px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: 'Archivo', sans-serif;
}

.result-block h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 18px 0 10px;
  color: var(--text-main);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
}

.result-block p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.result-block p:last-child {
  margin-bottom: 0;
}

/* Radar */
.result-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.result-axes-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ax {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.ax-label {
  color: var(--text-soft);
  font-weight: 600;
}

.ax-bar {
  display: block;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.ax-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 400ms ease;
}

.ax.vert .ax-bar-fill { background: #6FCF97; }
.ax.orange .ax-bar-fill { background: #F2994A; }
.ax.rouge .ax-bar-fill { background: #EB5757; }

.ax-score {
  text-align: right;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.ax.vert .ax-score { color: #6FCF97; }
.ax.orange .ax-score { color: #F2994A; }
.ax.rouge .ax-score { color: #EB5757; }
.ax.na .ax-score { color: var(--text-secondary); font-size: 12px; }

/* Photographie */
.result-photo-list {
  list-style: none;
  padding: 0;
}

.result-photo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.result-photo-list li:last-child {
  border-bottom: none;
}

.photo-label {
  color: var(--text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.photo-val {
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

/* Signaux qualitatifs */
.result-signals-block {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 16px;
}

.signal-card {
  background: rgba(235, 87, 87, 0.08);
  border: 1px solid rgba(235, 87, 87, 0.3);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.signal-icon {
  font-size: 18px;
}

.signal-card strong {
  color: var(--text-main);
  font-size: 15px;
}

.signal-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Diagnostic */
.result-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.result-list li {
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--accent);
  margin-bottom: 8px;
  padding-left: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.result-list li strong {
  color: var(--text-main);
}

.result-impact {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
}

.result-impact h4 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 8px;
}

.result-secondary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.secondary-miroir {
  color: var(--text-main);
  font-style: italic;
  font-size: 16px;
  margin-bottom: 12px;
}

/* Contradictions internes (miroir doux) */
.result-contradictions-block {
  background: rgba(242, 153, 74, 0.06);
  border: 1px solid rgba(242, 153, 74, 0.3);
}

.result-contradictions-block h3 {
  color: #F2994A;
}

.contradictions-intro {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.contradiction-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(242, 153, 74, 0.5);
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contradiction-card h4 {
  font-size: 15px;
  color: var(--text-main);
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0;
}

.contradiction-card p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

/* Révélation */
.result-revelation-block {
  background: linear-gradient(135deg, rgba(249, 214, 94, 0.12) 0%, rgba(249, 214, 94, 0.06) 100%);
  border: 1px solid var(--accent-border);
}

.revelation-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.result-revelation-block h3 {
  color: var(--accent);
}

/* Potential */
.result-potential-block strong {
  color: var(--accent);
  font-size: 16px;
}

.potential-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 14px;
}

/* Quotes */
.result-quote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.result-quote p {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 15px;
}

.result-quote cite {
  font-style: normal;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quotes-note {
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
}

/* CTA */
.result-cta-block {
  text-align: center;
  padding: 28px 24px;
}

.cta-strong {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.cta-strong h3,
.cta-medium h3 {
  color: var(--accent);
  font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 14px;
}

.cta-light h3,
.cta-nomatch h3 {
  color: var(--text-main);
  font-size: 20px;
  margin-bottom: 14px;
}

.result-cta-block .btn-primary {
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
}

.cta-secondary {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cta-secondary a {
  color: var(--accent);
}

/* Footer */
.result-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
}

.result-footer .return-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-border);
}

.result-debug {
  font-size: 11px;
  opacity: 0.4;
  font-family: monospace;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .ax {
    grid-template-columns: 100px 1fr 60px;
    font-size: 13px;
  }
  .photo-label {
    font-size: 12px;
  }
}

/* ========== REDIRECTION / END SCREEN ========== */

.endcard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
}

.endcard .icon-big {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-block;
}

.endcard h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.endcard p {
  color: var(--text-soft);
  margin-bottom: 14px;
  font-size: 15px;
}

.endcard .return-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-border);
}

.endcard .return-link:hover {
  border-bottom-color: var(--accent);
}

/* ========== FOOTER ========== */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(10, 11, 16, 0) 0%, var(--bg-main) 40%);
  display: flex;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  gap: 12px;
  z-index: 10;
}

.footer-spacer {
  flex: 1;
}

/* ========== BUTTONS ========== */

.btn-primary {
  background: var(--accent);
  color: var(--bg-main);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) {
  background: #FFE07A;
  transform: translateY(-1px);
}

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

.btn-primary.large {
  padding: 18px 36px;
  font-size: 15px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

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

/* ========== RESPONSIVE ========== */

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

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .brand {
    text-align: center;
  }

  .intro-blocks {
    grid-template-columns: 1fr;
  }

  .question h2 {
    font-size: 22px;
  }

  .option {
    padding: 14px;
    font-size: 14px;
  }

  .endcard {
    padding: 28px 20px;
  }

  .footer {
    padding: 14px 16px;
  }

  .btn-primary {
    padding: 12px 18px;
    font-size: 13px;
  }
}
