/* ==========================================================================
   Interactive components — shared styles for Sprints 1-4
   Source of truth: docs/seo/sprints/shared/DESIGN-SYSTEM-REFERENCE.md
   ========================================================================== */

/* CSS custom properties — mirrored from homepage but scoped so pages
   without them still render correctly. */
.baq-quiz-section,
.ht-teaser-section,
.bcc-calculator-section,
.arch-quiz-section {
  --ix-primary: #FF6B4A;
  --ix-primary-light: #FF8A6A;
  --ix-primary-dark: #E85A3A;
  --ix-primary-subtle: rgba(255, 107, 74, 0.08);
  --ix-secondary: #00A699;
  --ix-secondary-light: #00BFB0;
  --ix-gradient: linear-gradient(135deg, #FF6B4A 0%, #FFB347 35%, #4ECDC4 65%, #00A699 100%);
  --ix-gradient-subtle: linear-gradient(135deg, rgba(255,107,74,.05), rgba(78,205,196,.05));
  --ix-text: #222222;
  --ix-text-sec: #717171;
  --ix-text-muted: #B0B0B0;
  --ix-bg: #FFFFFF;
  --ix-bg-cream: #FFF9F8;
  --ix-border: #EEEEEE;
  --ix-shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --ix-shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --ix-shadow-glow: 0 8px 30px rgba(255,90,95,.25);
  --ix-radius-md: 12px;
  --ix-radius-lg: 16px;
  --ix-radius-xl: 24px;
  --ix-radius-pill: 999px;
  --ix-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Section wrappers
   ========================================================================== */

.baq-quiz-section {
  padding: 64px 24px;
  background: var(--ix-bg-cream);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .baq-quiz-section { padding: 80px 40px; }
}

.baq-container {
  max-width: 640px;
  margin: 0 auto;
}

.baq-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 12px;
  text-align: center;
}

.baq-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  text-align: center;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .baq-heading { font-size: 36px; }
}

.baq-lede {
  font-size: 16px;
  color: var(--ix-text-sec);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* ==========================================================================
   Quiz container & state host
   ========================================================================== */

.baq-quiz {
  position: relative;
}

/* Hide default until JS hydrates */
.baq-quiz[data-state="idle"] .baq-card-entry { display: block; }
.baq-quiz[data-state="idle"] .baq-card-question,
.baq-quiz[data-state="idle"] .baq-card-result,
.baq-quiz[data-state="idle"] .baq-loading { display: none; }

.baq-quiz[data-state="active"] .baq-card-entry,
.baq-quiz[data-state="active"] .baq-card-result,
.baq-quiz[data-state="active"] .baq-loading { display: none; }
.baq-quiz[data-state="active"] .baq-card-question { display: block; }

.baq-quiz[data-state="loading"] .baq-card-entry,
.baq-quiz[data-state="loading"] .baq-card-question,
.baq-quiz[data-state="loading"] .baq-card-result { display: none; }
.baq-quiz[data-state="loading"] .baq-loading { display: flex; }

.baq-quiz[data-state="result"] .baq-card-entry,
.baq-quiz[data-state="result"] .baq-card-question,
.baq-quiz[data-state="loading"] .baq-loading { display: none; }
.baq-quiz[data-state="result"] .baq-card-result { display: block; }

/* ==========================================================================
   Cards (entry, question, result)
   ========================================================================== */

.baq-card {
  background: var(--ix-bg);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-xl);
  padding: 32px 24px;
  box-shadow: var(--ix-shadow-md);
}

@media (min-width: 768px) {
  .baq-card { padding: 40px; }
}

/* Entry card */

.baq-card-entry {
  text-align: center;
}

.baq-card-entry .baq-entry-h {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.baq-card-entry .baq-entry-p {
  font-size: 15px;
  color: var(--ix-text-sec);
  margin: 0 0 24px;
}

.baq-card-entry .baq-entry-hint {
  font-size: 13px;
  color: var(--ix-text-muted);
  margin-top: 14px;
}

/* Question card */

.baq-card-question {
  display: none;
}

.baq-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.baq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ix-border);
  transition: background 200ms ease, transform 150ms ease;
}

.baq-dot[data-state="active"] {
  background: var(--ix-primary);
  transform: scale(1.2);
}

.baq-dot[data-state="done"] {
  background: var(--ix-secondary);
}

.baq-legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ix-text-muted);
  margin-bottom: 8px;
  display: block;
}

.baq-stem {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.35;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .baq-stem { font-size: 22px; }
}

.baq-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: none;
}

.baq-answers legend { display: none; }

.baq-answer {
  position: relative;
  display: block;
  padding: 18px 22px;
  background: var(--ix-bg);
  border: 2px solid var(--ix-border);
  border-radius: var(--ix-radius-lg);
  font-size: 16px;
  font-weight: 500;
  color: var(--ix-text);
  cursor: pointer;
  min-height: 64px;
  transition: border-color 180ms ease, transform 120ms ease, background 180ms ease;
  line-height: 1.4;
}

.baq-answer:hover {
  border-color: var(--ix-primary);
  transform: translateY(-1px);
}

.baq-answer:focus-within {
  outline: 3px solid var(--ix-primary);
  outline-offset: 3px;
}

.baq-answer input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.baq-answer[data-selected="true"] {
  border-color: var(--ix-primary);
  background: var(--ix-primary-subtle);
}

.baq-answer[data-selected="true"]::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ix-primary);
}

.baq-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ix-text-sec);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 0;
}

.baq-back:hover {
  color: var(--ix-text);
  text-decoration: underline;
}

.baq-back[hidden] { display: none; }

/* Loading state */

.baq-loading {
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 200px;
  color: var(--ix-text-sec);
  font-size: 15px;
}

.baq-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ix-primary);
  animation: baq-pulse 1.2s ease-in-out infinite;
}

.baq-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.baq-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes baq-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Result card
   ========================================================================== */

.baq-card-result {
  display: none;
  border-top: 4px solid transparent;
  border-image: var(--ix-gradient) 1;
}

.baq-result-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 10px;
}

.baq-result-headline {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .baq-result-headline { font-size: 32px; }
}

.baq-result-subhead {
  font-size: 16px;
  color: var(--ix-text-sec);
  margin: 0 0 24px;
  line-height: 1.5;
}

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

.baq-result-reasons li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ix-text);
}

.baq-result-reasons li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none'%3E%3Ccircle cx='11' cy='11' r='11' fill='%2300A699' opacity='0.15'/%3E%3Cpath d='M6.5 11.5L9.5 14.5L15.5 8' stroke='%2300A699' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.baq-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 32px;
  background: var(--ix-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--ix-radius-pill);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  font-family: inherit;
  line-height: 1.2;
}

.baq-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-glow);
  color: #fff;
}

.baq-cta-primary:active {
  transform: scale(0.98);
}

.baq-cta-sublabel {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ix-text-muted);
  margin-top: 10px;
}

.baq-cta-secondary {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ix-text-sec);
  text-decoration: underline;
}

.baq-cta-secondary:hover { color: var(--ix-primary); }

.baq-result-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ix-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.baq-retake {
  font-size: 13px;
  color: var(--ix-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  text-decoration: underline;
}

.baq-retake:hover { color: var(--ix-text); }

/* ==========================================================================
   Staggered reveal animation
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .baq-reveal > * {
    opacity: 0;
    transform: translateY(8px);
    animation: baq-reveal-in 320ms var(--ix-ease) forwards;
  }

  .baq-reveal > *:nth-child(1) { animation-delay: 0ms; }
  .baq-reveal > *:nth-child(2) { animation-delay: 80ms; }
  .baq-reveal > *:nth-child(3) { animation-delay: 160ms; }
  .baq-reveal > *:nth-child(4) { animation-delay: 240ms; }
  .baq-reveal > *:nth-child(5) { animation-delay: 320ms; }
  .baq-reveal > *:nth-child(6) { animation-delay: 400ms; }
  .baq-reveal > *:nth-child(7) { animation-delay: 480ms; }

  @keyframes baq-reveal-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .baq-card-question[data-transition="out"] {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
}

/* ==========================================================================
   Confetti canvas
   ========================================================================== */

.baq-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   NoScript fallback
   ========================================================================== */

.baq-noscript {
  text-align: center;
  padding: 20px;
  background: var(--ix-primary-subtle);
  border-radius: var(--ix-radius-md);
}

.baq-noscript a {
  color: var(--ix-primary-dark);
  font-weight: 600;
}

/* ==========================================================================
   Reduced-motion global opt-out
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .baq-answer,
  .baq-cta-primary,
  .baq-dot,
  .baq-loading-dot,
  .ht-tile,
  .ht-dot,
  .ht-loading-dot,
  .bcc-cta-primary,
  .bcc-share-btn {
    transition: none !important;
    animation: none !important;
  }
  .baq-reveal > *,
  .ht-reveal > *,
  .bcc-reveal > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Sprint 3 — Bad Roommate Cost Calculator
   Target: /bad-roommate-cost/
   ========================================================================== */

.bcc-calculator-section {
  padding: 56px 24px 72px;
  background: linear-gradient(180deg, rgba(255, 249, 248, 0) 0%, var(--ix-bg-cream) 20%, var(--ix-bg-cream) 85%, rgba(255, 249, 248, 0) 100%);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .bcc-calculator-section { padding: 72px 40px 96px; }
}

.bcc-container {
  max-width: 560px;
  margin: 0 auto;
}

.bcc-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 10px;
  text-align: center;
}

.bcc-heading {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .bcc-heading { font-size: 32px; }
}

.bcc-lede {
  font-size: 15px;
  color: var(--ix-text-sec);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.55;
}

/* Form card */

.bcc-form {
  background: var(--ix-bg);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-xl);
  box-shadow: var(--ix-shadow-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .bcc-form { padding: 36px 32px; }
}

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

.bcc-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ix-text);
}

.bcc-help {
  font-size: 12px;
  color: var(--ix-text-muted);
}

.bcc-input-wrap {
  position: relative;
}

.bcc-prefix {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 600;
  color: var(--ix-text-muted);
  pointer-events: none;
}

.bcc-field input[type="number"],
.bcc-field select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ix-text);
  background: var(--ix-bg);
  border: 1.5px solid var(--ix-border);
  border-radius: var(--ix-radius-md);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.bcc-input-wrap input[type="number"] {
  padding-left: 32px;
}

.bcc-field input[type="number"]:focus,
.bcc-field select:focus {
  outline: none;
  border-color: var(--ix-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18);
}

.bcc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%236F6F6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.bcc-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 32px;
  margin-top: 4px;
  background: var(--ix-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: var(--ix-radius-pill);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  line-height: 1.2;
}

.bcc-cta-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-glow);
  color: #fff;
}

.bcc-cta-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.bcc-cta-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bcc-privacy {
  text-align: center;
  font-size: 12px;
  color: var(--ix-text-muted);
  margin-top: 2px;
}

/* Result card */

.bcc-result {
  margin-top: 32px;
}

.bcc-result-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F8 100%);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-xl);
  padding: 32px 20px;
  box-shadow: var(--ix-shadow-lg);
  border-top: 4px solid transparent;
  border-image: var(--ix-gradient) 1;
}

@media (min-width: 768px) {
  .bcc-result-card { padding: 40px 32px; }
}

.bcc-result-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 12px;
  text-align: center;
}

.bcc-result-total {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--ix-primary-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .bcc-result-total { font-size: 84px; }
}

.bcc-result-sub {
  font-size: 17px;
  text-align: center;
  color: var(--ix-text);
  margin: 0 0 28px;
  line-height: 1.5;
}

.bcc-breakdown-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-text-muted);
  margin: 0 0 12px;
  text-align: center;
}

.bcc-breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.bcc-breakdown-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ix-border);
}

.bcc-breakdown-row:last-child {
  border-bottom: none;
}

.bcc-breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ix-primary);
}

.bcc-breakdown-row:nth-child(2) .bcc-breakdown-dot { background: var(--ix-secondary); }
.bcc-breakdown-row:nth-child(3) .bcc-breakdown-dot { background: #FFB347; }
.bcc-breakdown-row:nth-child(4) .bcc-breakdown-dot { background: #4ECDC4; }

.bcc-breakdown-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ix-text);
}

.bcc-breakdown-amount {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ix-text);
}

.bcc-result-insight {
  font-size: 14px;
  color: var(--ix-text-sec);
  font-style: italic;
  text-align: center;
  margin: 0 0 22px;
}

.bcc-cta-sublabel {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ix-text-muted);
  margin-top: 10px;
}

.bcc-share-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.bcc-share-btn {
  padding: 12px 18px;
  background: var(--ix-bg);
  color: var(--ix-text);
  border: 1.5px solid var(--ix-border);
  border-radius: var(--ix-radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.bcc-share-btn:hover {
  border-color: var(--ix-primary);
  background: var(--ix-primary-subtle);
}

.bcc-share-btn:active {
  transform: scale(0.97);
}

.bcc-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ix-secondary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--ix-radius-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--ix-shadow-md);
  z-index: 9998;
}

.bcc-toast[hidden] { display: none; }

.bcc-edit-note {
  font-size: 13px;
  text-align: center;
  color: var(--ix-text-muted);
  margin: 18px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .bcc-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: bcc-reveal-in 460ms var(--ix-ease) forwards;
  }
  @keyframes bcc-reveal-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================================
   Sprint 4 — Roommate Archetype Quiz
   Target: /roommate-archetype-quiz/
   ========================================================================== */

.arch-hero {
  --ix-primary: #FF6B4A;
  --ix-primary-light: #FF8A6A;
  --ix-primary-dark: #E85A3A;
  --ix-primary-subtle: rgba(255, 107, 74, 0.08);
  --ix-secondary: #00A699;
  --ix-gradient: linear-gradient(135deg, #FF6B4A 0%, #FFB347 35%, #4ECDC4 65%, #00A699 100%);
  --ix-text: #222222;
  --ix-text-sec: #717171;
  --ix-text-muted: #B0B0B0;
  --ix-bg: #FFFFFF;
  --ix-bg-cream: #FFF9F8;
  --ix-border: #EEEEEE;
  --ix-shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --ix-shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --ix-shadow-glow: 0 8px 30px rgba(255,90,95,.25);
  --ix-radius-md: 12px;
  --ix-radius-lg: 16px;
  --ix-radius-xl: 24px;
  --ix-radius-pill: 999px;
  --ix-ease: cubic-bezier(0.16, 1, 0.3, 1);

  background: linear-gradient(180deg, #FFF9F8 0%, #FFFFFF 70%);
  padding: 48px 24px 64px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ix-text);
  text-align: center;
}

@media (min-width: 768px) {
  .arch-hero { padding: 72px 40px 88px; }
}

/* Narrow, centered hero column so the h1, lede, and quiz all sit in
   a cohesive focal point regardless of viewport width. */
.arch-hero > .container {
  max-width: 720px;
  margin: 0 auto;
}

.arch-hero .breadcrumb {
  font-size: 13px;
  color: var(--ix-text-sec);
  margin: 0 0 18px;
  text-align: left;
}

.arch-hero .breadcrumb a {
  color: var(--ix-text-sec);
  text-decoration: none;
}

.arch-hero .breadcrumb a:hover { color: var(--ix-primary); }

.arch-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin: 0 0 10px;
}

.arch-hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .arch-hero h1 { font-size: 52px; }
}

.arch-lede {
  font-size: 17px;
  color: var(--ix-text-sec);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 36px;
}

@media (min-width: 768px) {
  .arch-lede { font-size: 19px; }
}

/* Quiz container on the archetype page:
   Reuses .baq-* styles for question/entry/answer cards, with a tighter
   column centered within the hero. */
.arch-hero .arch-quiz {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.arch-hero .baq-card {
  background: var(--ix-bg);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-xl);
  padding: 32px 24px;
  box-shadow: var(--ix-shadow-md);
}

@media (min-width: 768px) {
  .arch-hero .baq-card { padding: 40px; }
}

/* Result card — rich archetype-specific layout */

.arch-card-result {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ix-bg);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius-xl);
  padding: 40px 24px 28px;
  box-shadow: var(--ix-shadow-lg);
  border-top: 6px solid transparent;
  border-image: var(--ix-gradient) 1;
  text-align: center;
}

@media (min-width: 768px) {
  .arch-card-result { padding: 48px 40px 32px; }
}

.arch-result-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .arch-result-emoji { font-size: 112px; }
}

.arch-result-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 10px;
}

.arch-result-name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .arch-result-name { font-size: 42px; }
}

.arch-result-tagline {
  font-size: 16px;
  color: var(--ix-text);
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.4;
}

.arch-result-description {
  font-size: 16px;
  color: var(--ix-text-sec);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}

.arch-section {
  text-align: left;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--ix-bg-cream);
  border-radius: var(--ix-radius-lg);
}

.arch-section-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ix-text-muted);
  margin: 0 0 10px;
}

.arch-traits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-traits li {
  font-size: 15px;
  color: var(--ix-text);
  line-height: 1.5;
  padding: 4px 0 4px 20px;
  position: relative;
}

.arch-traits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ix-primary);
}

.arch-pair-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-pair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ix-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--ix-radius-md);
  border: 1px solid var(--ix-border);
  background: var(--ix-bg);
  transition: border-color 150ms ease, background 150ms ease;
}

.arch-pair:hover {
  border-color: var(--ix-primary);
  background: var(--ix-primary-subtle);
}

.arch-pair-emoji {
  font-size: 22px;
  line-height: 1;
}

.arch-pair-name {
  font-weight: 600;
}

.arch-pair-rough .arch-pair:hover {
  border-color: #C9A659;
  background: rgba(201, 166, 89, 0.08);
}

.arch-signature {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--ix-text);
  text-align: center;
  margin: 28px 0;
  padding: 18px 16px;
  border: none;
  border-left: 3px solid var(--ix-primary);
  background: var(--ix-primary-subtle);
  border-radius: var(--ix-radius-md);
  line-height: 1.5;
}

.arch-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 28px;
  margin-top: 8px;
  background: var(--ix-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: var(--ix-radius-pill);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  line-height: 1.2;
}

.arch-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-glow);
  color: #fff;
}

.arch-cta-primary:active { transform: scale(0.98); }

.arch-cta-sublabel {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ix-text-muted);
  margin-top: 10px;
}

.arch-share-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-share-btn {
  padding: 11px 16px;
  background: var(--ix-bg);
  color: var(--ix-text);
  border: 1.5px solid var(--ix-border);
  border-radius: var(--ix-radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.arch-share-btn:hover {
  border-color: var(--ix-primary);
  background: var(--ix-primary-subtle);
}

.arch-share-btn:active { transform: scale(0.97); }

.arch-secondary-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ix-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.arch-cta-secondary {
  font-size: 14px;
  color: var(--ix-text-sec);
  text-decoration: underline;
}

.arch-cta-secondary:hover { color: var(--ix-primary); }

.arch-retake {
  font-size: 13px;
  color: var(--ix-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  text-decoration: underline;
}

.arch-retake:hover { color: var(--ix-text); }

.arch-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ix-secondary, #00A699);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 9998;
}

.arch-toast[hidden] { display: none; }

/* Reveal animation */

@media (prefers-reduced-motion: no-preference) {
  .arch-reveal > * {
    opacity: 0;
    transform: translateY(10px);
    animation: arch-reveal-in 420ms var(--ix-ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
  }
  .arch-reveal > *:nth-child(1) { animation-delay: 0ms; animation-name: arch-reveal-emoji; animation-duration: 700ms; }
  .arch-reveal > *:nth-child(2) { animation-delay: 160ms; }
  .arch-reveal > *:nth-child(3) { animation-delay: 220ms; }
  .arch-reveal > *:nth-child(4) { animation-delay: 280ms; }
  .arch-reveal > *:nth-child(5) { animation-delay: 340ms; }
  .arch-reveal > *:nth-child(6) { animation-delay: 400ms; }
  .arch-reveal > *:nth-child(7) { animation-delay: 460ms; }
  .arch-reveal > *:nth-child(8) { animation-delay: 520ms; }
  .arch-reveal > *:nth-child(9) { animation-delay: 580ms; }
  .arch-reveal > *:nth-child(10) { animation-delay: 640ms; }
  .arch-reveal > *:nth-child(11) { animation-delay: 700ms; }
  .arch-reveal > *:nth-child(12) { animation-delay: 760ms; }

  @keyframes arch-reveal-in {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes arch-reveal-emoji {
    0%   { opacity: 0; transform: scale(0.3) rotate(-12deg); }
    60%  { opacity: 1; transform: scale(1.2) rotate(6deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }
}

/* Catalog section */

.arch-catalog-section {
  padding: 56px 24px;
  background: #FAFAFA;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
}

@media (min-width: 768px) {
  .arch-catalog-section { padding: 80px 40px; }
}

.arch-catalog-section h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #222;
  text-align: center;
}

@media (min-width: 768px) {
  .arch-catalog-section h2 { font-size: 36px; }
}

.arch-catalog-section .arch-eyebrow {
  text-align: center;
}

.arch-section-lede {
  font-size: 16px;
  color: #717171;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.arch-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .arch-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .arch-catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.arch-catalog-card {
  background: #fff;
  border: 1px solid #EEEEEE;
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.arch-catalog-card:hover {
  border-color: rgba(255, 107, 74, 0.3);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.arch-catalog-card[data-family="warm"]  { border-top: 3px solid #FF6B4A; }
.arch-catalog-card[data-family="mint"]  { border-top: 3px solid #4ECDC4; }
.arch-catalog-card[data-family="amber"] { border-top: 3px solid #FFB347; }
.arch-catalog-card[data-family="teal"]  { border-top: 3px solid #00A699; }

.arch-catalog-card summary {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  list-style: none;
  padding: 4px 0;
  min-height: 68px;
}

.arch-catalog-card summary::-webkit-details-marker { display: none; }

.arch-catalog-card[open] summary {
  padding-bottom: 14px;
  border-bottom: 1px solid #EEEEEE;
  margin-bottom: 14px;
}

.arch-catalog-emoji {
  font-size: 36px;
  line-height: 1;
  flex: 0 0 auto;
}

.arch-catalog-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.arch-catalog-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #B0B0B0;
  font-variant-numeric: tabular-nums;
}

.arch-catalog-name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.arch-catalog-tagline {
  font-size: 13px;
  color: #717171;
  line-height: 1.4;
}

.arch-catalog-description {
  font-size: 14px;
  color: #444;
  line-height: 1.55;
  margin: 0 0 12px;
}

.arch-catalog-traits {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.arch-catalog-traits li {
  font-size: 13px;
  color: #555;
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.5;
}

.arch-catalog-traits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #B0B0B0;
}

.arch-catalog-signature {
  font-size: 13px;
  font-style: italic;
  color: #717171;
  margin: 0;
  padding: 10px 12px;
  background: #FAFAFA;
  border-left: 2px solid rgba(255, 107, 74, 0.3);
  border-radius: 6px;
  line-height: 1.5;
}

/* FAQ */

.arch-faq-section {
  padding: 56px 24px;
  background: #FFFFFF;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
}

@media (min-width: 768px) {
  .arch-faq-section { padding: 72px 40px; }
}

.arch-faq-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
}

@media (min-width: 768px) {
  .arch-faq-section h2 { font-size: 34px; }
}

.arch-faq-section .arch-eyebrow {
  text-align: center;
}

.arch-faq-section .container {
  max-width: 720px;
  margin: 0 auto;
}

.arch-faq-list {
  max-width: 100%;
}

.arch-faq-item {
  border-bottom: 1px solid #EEEEEE;
  padding: 16px 0;
}

.arch-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.arch-faq-item summary::-webkit-details-marker { display: none; }

.arch-faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #B0B0B0;
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.arch-faq-item[open] summary::after {
  content: '\2212';
}

.arch-faq-item p {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 10px 0 8px;
}

/* Final CTA */

.arch-final-cta {
  padding: 72px 24px;
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
  text-align: center;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #222;
}

.arch-final-cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .arch-final-cta h2 { font-size: 36px; }
}

.arch-final-cta > .container > p {
  font-size: 16px;
  color: #555;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.arch-final-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.arch-final-cta .baq-cta-primary {
  --ix-gradient: linear-gradient(135deg, #FF6B4A 0%, #FFB347 35%, #4ECDC4 65%, #00A699 100%);
  --ix-shadow-glow: 0 8px 30px rgba(255,90,95,.25);
  background: var(--ix-gradient);
  color: #fff;
  padding: 18px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.arch-final-cta .baq-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-glow);
}

@media (prefers-reduced-motion: reduce) {
  .arch-cta-primary,
  .arch-share-btn,
  .arch-catalog-card,
  .arch-pair {
    transition: none !important;
    animation: none !important;
  }
  .arch-reveal > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Sprint 2 — Homepage Teaser Quiz (tile-based)
   Target: /
   ========================================================================== */

.ht-teaser-section {
  padding: 64px 24px 96px;
  background: linear-gradient(180deg, rgba(255, 249, 248, 0) 0%, var(--ix-bg-cream) 28%, var(--ix-bg-cream) 72%, rgba(255, 249, 248, 0) 100%);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .ht-teaser-section {
    padding: 88px 40px 120px;
  }
}

.ht-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px;
  background: var(--ix-bg);
  border: 1px solid rgba(255, 107, 74, 0.15);
  border-radius: var(--ix-radius-xl);
  box-shadow: 0 20px 60px rgba(255, 107, 74, 0.08);
}

@media (min-width: 768px) {
  .ht-container {
    padding: 56px 48px;
  }
}

.ht-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 12px;
  text-align: center;
}

.ht-heading {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  text-align: center;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .ht-heading { font-size: 32px; }
}

.ht-lede {
  font-size: 15px;
  color: var(--ix-text-sec);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.55;
}

.ht-quiz {
  position: relative;
}

/* Question card */

.ht-question {
  border: none;
  padding: 0;
  margin: 0;
  min-inline-size: auto;
}

.ht-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ht-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ix-border);
  transition: background 200ms ease, transform 150ms ease;
}

.ht-dot[data-state="active"] {
  background: var(--ix-primary);
  transform: scale(1.4);
}

.ht-dot[data-state="done"] {
  background: var(--ix-secondary);
}

.ht-legend {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ix-text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.ht-stem {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--ix-text);
  margin: 0 0 28px;
  padding: 0;
}

@media (min-width: 768px) {
  .ht-stem { font-size: 26px; }
}

.ht-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .ht-tiles { gap: 16px; }
}

@media (max-width: 359px) {
  .ht-tiles { grid-template-columns: 1fr; }
}

.ht-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px;
  aspect-ratio: 1.05 / 1;
  background: var(--ix-bg);
  border: 2px solid var(--ix-border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .ht-tile { padding: 26px 18px; }
}

.ht-tile:hover {
  border-color: var(--ix-primary);
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-md);
}

.ht-tile:focus-within {
  outline: 3px solid var(--ix-primary);
  outline-offset: 3px;
}

.ht-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ht-tile[data-selected="true"] {
  border-color: var(--ix-primary);
  background: var(--ix-primary-subtle);
}

.ht-tile[data-selected="true"]::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ix-primary);
}

.ht-tile-emoji {
  font-size: 40px;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  .ht-tile-emoji { font-size: 44px; }
}

.ht-tile-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ix-text);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .ht-tile-label { font-size: 16px; }
}

.ht-tile-desc {
  font-size: 12px;
  color: var(--ix-text-sec);
  line-height: 1.35;
  padding: 0 4px;
}

@media (min-width: 768px) {
  .ht-tile-desc { font-size: 13px; }
}

/* Loading state */

.ht-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 200px;
  color: var(--ix-text-sec);
  font-size: 15px;
}

.ht-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ix-primary);
  animation: ht-pulse 1.2s ease-in-out infinite;
}

.ht-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.ht-loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes ht-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Result card */

.ht-card-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px 12px;
}

.ht-result-emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
}

.ht-result-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ix-primary);
  margin-bottom: 8px;
}

.ht-result-headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 10px;
  color: var(--ix-text);
}

@media (min-width: 768px) {
  .ht-result-headline { font-size: 30px; }
}

.ht-result-description {
  font-size: 16px;
  color: var(--ix-text-sec);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 440px;
}

.ht-result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  padding: 16px 28px;
  background: var(--ix-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--ix-radius-pill);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  line-height: 1.2;
  font-family: inherit;
}

.ht-result-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--ix-shadow-glow);
  color: #fff;
}

.ht-result-cta:active {
  transform: scale(0.98);
}

.ht-result-sublabel {
  font-size: 13px;
  color: var(--ix-text-muted);
  margin-top: 10px;
}

.ht-secondary-links {
  margin-top: 16px;
}

.ht-cta-secondary {
  font-size: 14px;
  color: var(--ix-text-sec);
  text-decoration: underline;
}

.ht-cta-secondary:hover { color: var(--ix-primary); }

.ht-result-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--ix-border);
  width: 100%;
  display: flex;
  justify-content: center;
}

.ht-retake {
  font-size: 13px;
  color: var(--ix-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
  text-decoration: underline;
}

.ht-retake:hover { color: var(--ix-text); }

/* Staggered reveal for result */

@media (prefers-reduced-motion: no-preference) {
  .ht-reveal > * {
    opacity: 0;
    transform: translateY(8px);
    animation: ht-reveal-in 380ms var(--ix-ease) forwards;
  }

  .ht-reveal > *:nth-child(1) { animation-delay: 0ms;   animation-name: ht-reveal-emoji; }
  .ht-reveal > *:nth-child(2) { animation-delay: 180ms; }
  .ht-reveal > *:nth-child(3) { animation-delay: 260ms; }
  .ht-reveal > *:nth-child(4) { animation-delay: 340ms; }
  .ht-reveal > *:nth-child(5) { animation-delay: 420ms; }
  .ht-reveal > *:nth-child(6) { animation-delay: 500ms; }
  .ht-reveal > *:nth-child(7) { animation-delay: 580ms; }

  @keyframes ht-reveal-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes ht-reveal-emoji {
    0%   { opacity: 0; transform: scale(0.4) rotate(-10deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }
}

.ht-noscript {
  text-align: center;
  padding: 18px;
  background: var(--ix-primary-subtle);
  border-radius: var(--ix-radius-md);
  font-size: 15px;
}

.ht-noscript a {
  color: var(--ix-primary-dark);
  font-weight: 600;
}
