:root {
  --bg: #0b0f1a;
  --surface: #141b2d;
  --surface2: #1c2640;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --hot: #fb7185;
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #0b0f1a;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(167, 139, 250, 0.15), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(52, 211, 153, 0.1), transparent);
}

@media (min-width: 1024px) {
  .bg-glow {
    background:
      radial-gradient(ellipse 70% 55% at 12% -8%, rgba(34, 211, 238, 0.24), transparent),
      radial-gradient(ellipse 55% 45% at 88% 12%, rgba(167, 139, 250, 0.2), transparent),
      radial-gradient(ellipse 45% 35% at 72% 88%, rgba(192, 132, 252, 0.12), transparent),
      radial-gradient(ellipse 40% 28% at 28% 92%, rgba(52, 211, 153, 0.14), transparent);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.plain-toggle {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.lang-switch-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch-btn.active {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
}

.saved-result-banner {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.saved-result-banner p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 10px;
}

.saved-result-banner .btn {
  margin-top: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
  flex: 1 1 auto;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  min-width: 0;
  align-items: flex-start;
}

.yoro-logo {
  display: block;
  height: 36px;
  width: auto;
  aspect-ratio: 2 / 1;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  align-self: flex-start;
}

.logo img { height: 32px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.25)); }

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* Intro */
.logo-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-title {
  font-size: clamp(1.85rem, 6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
  max-width: 22ch;
}

.hero-title-line {
  display: block;
  color: #f8fafc;
}

.hero-title-accent {
  display: block;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero .hook {
  color: var(--accent3);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 16px 0 24px;
}

.hero-deco-logo {
  display: none;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-bottom: 32px;
  max-width: 36rem;
}

.stat {
  flex: 0 1 auto;
  min-width: 5.5rem;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--accent);
  font-weight: 800;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.45);
}

.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}

.btn-share {
  background: linear-gradient(135deg, var(--hot), #f97316);
  color: #fff;
  box-shadow: 0 8px 28px rgba(251, 113, 133, 0.3);
  width: 100%;
  margin-top: 10px;
}

.share-section {
  margin-top: 24px;
}

.btn-share-toggle {
  margin-top: 0;
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
}

.share-options[hidden] {
  display: none !important;
}

.btn-share-option {
  margin-top: 0;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 0.95rem;
}

.btn-share-option:hover {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.08);
}

.share-section .btn-share:first-of-type {
  margin-top: 0;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal[hidden] {
  display: none !important;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(4px);
}

.share-modal-panel {
  position: relative;
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.share-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.share-modal-title {
  font-size: 1.15rem;
  margin: 0 0 8px;
  padding-right: 28px;
}

.share-modal-lead,
.share-modal-privacy {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.share-modal-privacy {
  margin-top: 12px;
  margin-bottom: 0;
  color: #fcd34d;
}

.share-field {
  display: block;
  margin-bottom: 14px;
}

.share-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.share-input,
.share-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.share-input:focus,
.share-textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.share-textarea {
  resize: vertical;
  min-height: 72px;
}

.share-field-error {
  font-size: 0.82rem;
  color: #fb7185;
  margin: -8px 0 12px;
}

.share-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.share-modal-actions .btn {
  margin-top: 0;
  width: auto;
  min-width: 0;
}

body.modal-open {
  overflow: hidden;
}

.feedback-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-title {
  font-weight: 600;
  margin: 0 0 12px;
}

.feedback-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feedback-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.feedback-btn:hover {
  border-color: var(--accent);
}

.feedback-thanks {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--accent3);
}

/* Yoro Valmentaja */
.advisor-cta {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.08));
}

.advisor-cta-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.advisor-cta-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.advisor-cta-text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.advisor-cta .btn-primary {
  width: auto;
}

.advisor-chat {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.advisor-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}

.advisor-chat-title {
  margin: 0;
  font-size: 1.05rem;
}

.advisor-chat-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.advisor-chat-disclaimer {
  margin: 0 18px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.advisor-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.advisor-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.advisor-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.advisor-messages {
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.advisor-msg {
  display: flex;
}

.advisor-msg-bot {
  justify-content: flex-start;
}

.advisor-msg-user {
  justify-content: flex-end;
}

.advisor-msg-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.advisor-msg-bot .advisor-msg-bubble {
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}

.advisor-msg-user .advisor-msg-bubble {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-bottom-right-radius: 4px;
}

.advisor-thinking {
  color: var(--muted);
  font-style: italic;
}

.advisor-error {
  margin: 0 18px 8px;
  font-size: 0.82rem;
  color: #fb7185;
}

.advisor-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: flex-end;
}

.advisor-input {
  flex: 1;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.advisor-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.advisor-send {
  width: auto;
  min-width: 88px;
  margin-top: 0;
  flex-shrink: 0;
}

/* Progress */
.progress-wrap { margin-bottom: 20px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-label strong { color: var(--accent); }

.progress-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}

/* Question card */
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card .hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.options { display: flex; flex-direction: column; gap: 10px; }

.interest-sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 400px) {
  .interest-sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.interest-sector-grid .opt {
  font-size: 0.85rem;
  padding: 12px;
  min-height: 52px;
}

.opt {
  text-align: left;
  padding: 14px 16px;
  background: var(--surface2);
  border: 2px solid transparent;
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.opt:hover { border-color: rgba(34, 211, 238, 0.35); }

.opt:focus-visible,
.btn:focus-visible,
.path-action:focus-visible,
.occ-link:focus-visible,
.plain-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.opt.selected {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
}

.opt.multi.selected {
  border-color: var(--accent2);
  background: rgba(167, 139, 250, 0.12);
}

/* Subject grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.subject-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 0.82rem;
}

.subject-chip .emoji { font-size: 1.2rem; }

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.nav-row .btn { flex: 1; }

/* Results — viral card */
.result-hero {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
  animation: popIn 0.5s ease;
  width: 100%;
  box-sizing: border-box;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.result-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: bounce 0.6s ease 0.2s both;
}

@keyframes bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.result-type {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.result-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.result-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0 auto 16px;
}

.trait-bars { margin: 20px 0; }

.strength-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.strength-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 1.45;
}

.strength-list li::before {
  content: '✦';
  color: var(--accent3);
  margin-right: 8px;
}

.narrative-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.narrative-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.trait {
  margin-bottom: 12px;
}

.trait-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.trait-head span { color: var(--muted); }

.trait-bar {
  height: 8px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.8s ease;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 12px;
}

.path-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.path-card-body {
  flex: 1;
  min-width: 0;
}

.path-card .path-emoji { font-size: 1.75rem; flex-shrink: 0; }

.path-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.path-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

.path-study {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.path-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  transition: background 0.15s, border-color 0.15s;
}

.path-action:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.4);
}

.path-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent3);
  margin-top: 6px;
}

.fit-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 6px 0 8px;
}

.fit-strong {
  color: var(--accent3);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.fit-good {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.fit-try {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-banner {
  font-size: 0.82rem;
  text-align: center;
  color: var(--accent3);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.translation-notice {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  line-height: 1.5;
}

.translation-notice-title {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fbbf24;
}

.translation-notice-intro {
  margin: 0 0 12px;
}

.translation-notice-heading {
  margin: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.translation-notice-list {
  margin: 0 0 4px;
  padding-left: 1.15rem;
}

.translation-notice-list--partial li {
  color: #cbd5e1;
}

.trust-inline {
  font-size: 0.82rem;
  color: var(--accent3);
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(52, 211, 153, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.aspiration-alert {
  font-size: 0.88rem;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.aspiration-alert-title {
  font-weight: 600;
  color: #fcd34d;
  margin: 0 0 8px;
}

.aspiration-alert-body {
  margin: 0 0 10px;
  color: var(--text);
}

.aspiration-alert-link {
  display: inline-block;
  color: #fcd34d;
  font-weight: 500;
  text-decoration: none;
}

.aspiration-alert-link:hover {
  text-decoration: underline;
}

.hero-sentence {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.cta-primary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 0.95rem;
}

.cta-desc {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}

.path-why-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.path-why-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.path-why {
  margin-top: 8px;
  display: none;
}

.path-why.open {
  display: block;
}

.why-list {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.why-list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 0 6px 14px;
  position: relative;
  line-height: 1.4;
}

.why-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.extra-paths {
  display: none;
}

.extra-paths.open {
  display: block;
}

.path-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.path-toggle:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.4);
}

.path-occupations {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: none;
}

.path-occupations.open {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.occupation-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.occupation-filter-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
  font-style: italic;
}

.motivation-list {
  margin-top: 0;
}

.occupation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.occupation-list li {
  font-size: 0.82rem;
  padding: 8px 12px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.occupation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.occupation-name {
  flex: 1 1 140px;
  font-weight: 500;
}

.occupation-links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.occ-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.occ-link:hover {
  background: rgba(34, 211, 238, 0.18);
}

.te24-source {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

.te24-source a {
  color: var(--accent);
}

.occupation-list li::before {
  content: none;
}

.next-step {
  background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(34,211,238,0.08));
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 16px;
  padding: 18px;
  margin-top: 20px;
}

.next-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--accent3);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
}

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

.hidden { display: none !important; }

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: fall 2.5s ease-in forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 639px) {
  .wrap {
    padding: 16px 14px 40px;
  }

  .topbar {
    row-gap: 8px;
  }

  .yoro-logo {
    height: 30px;
  }

  .logo img {
    height: 28px;
  }

  .plain-toggle {
    font-size: 0.65rem;
    padding: 5px 8px;
  }

  .result-hero {
    padding: 24px 16px;
  }

  .result-title {
    font-size: 1.5rem;
  }

  .hero-sentence {
    max-width: none;
    font-size: 0.9rem;
  }
}

@media (min-width: 540px) {
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .wrap {
    max-width: min(100% - 48px, 720px);
    padding: 24px 24px 56px;
  }

  .topbar {
    margin-bottom: 32px;
  }

  .card {
    padding: 24px;
  }

  .options:not(.interest-sector-grid) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

  .interest-sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-row {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .result-tagline {
    max-width: 48ch;
  }

  .share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .btn-share-toggle {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .wrap {
    max-width: min(100% - 64px, 1040px);
    padding: 32px 40px 72px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    column-gap: 40px;
    align-items: start;
  }

  .hero .saved-result-banner {
    grid-column: 1 / -1;
  }

  .hero .hero-deco-logo {
    display: block;
    grid-column: 2;
    grid-row: 2 / span 7;
    width: min(100%, 300px);
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0;
    justify-self: end;
    align-self: center;
    opacity: 0.95;
  }

  .yoro-logo {
    height: 40px;
  }

  .result-hero {
    padding: 36px 48px;
  }

  .hero-sentence {
    max-width: 52ch;
  }

  .result-title {
    font-size: 2rem;
  }

  .hero .pill,
  .hero h1,
  .hero p,
  .hero .hook,
  .hero .stats-row,
  .hero .btn-primary,
  .hero .disclaimer {
    grid-column: 1;
  }

  .path-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .path-list .path-card {
    margin-bottom: 0;
    height: 100%;
  }

  .advisor-suggestions {
    flex-wrap: wrap;
  }
}

@media (min-width: 1280px) {
  .wrap {
    max-width: 1120px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill,
  .btn,
  .opt,
  .result-hero,
  .path-occupations.open {
    transition: none;
    animation: none;
  }
  .confetti { display: none !important; }
}
