/* ================================================
   Ekhtaber — اختبر نفسك
   Design System (Editorial + Warm Scholarly)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Color Palette — warm parchment, deep ink, accent amber */
  --bg: #f5efe4;
  --bg-soft: #ede4d3;
  --bg-card: #fbf7ee;
  --ink: #1a1410;
  --ink-soft: #3a2f26;
  --ink-muted: #6b5d4f;
  --accent: #b8390e;          /* deep vermilion */
  --accent-soft: #d45a2e;
  --accent-gold: #c89a3a;
  --line: #d9cdb7;
  --line-soft: #e8ddc6;
  --success: #4a6d3a;
  --shadow: 0 1px 0 rgba(26,20,16,.06), 0 8px 24px -12px rgba(26,20,16,.15);
  --shadow-lg: 0 2px 0 rgba(26,20,16,.08), 0 24px 48px -20px rgba(26,20,16,.25);

  /* Type */
  --font-display: 'Amiri', 'Tajawal', Georgia, serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  direction: rtl;
  text-align: right;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(200,154,58,.08) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(184,57,14,.05) 0, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--ink); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin-bottom: 1rem; color: var(--ink-soft); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ========= NAVIGATION ========= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,228,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink);
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ========= HERO ========= */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  padding: .4rem .8rem;
  background: rgba(184,57,14,.08);
  border-radius: 100px;
  border: 1px solid rgba(184,57,14,.2);
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-top: .3rem;
}

/* Hero visual - illustrated card stack */
.hero-visual {
  position: relative;
  min-height: 420px;
}
.visual-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.visual-card:hover { transform: translateY(-4px) rotate(0) !important; }
.vc-1 {
  top: 10%; right: 0;
  width: 70%;
  transform: rotate(-3deg);
  z-index: 3;
}
.vc-2 {
  top: 35%; left: 5%;
  width: 55%;
  transform: rotate(4deg);
  z-index: 2;
}
.vc-3 {
  top: 55%; right: 10%;
  width: 60%;
  transform: rotate(-2deg);
  z-index: 1;
}
.vc-label {
  font-size: .75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .6rem;
}
.vc-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.vc-progress {
  height: 4px;
  background: var(--line-soft);
  border-radius: 100px;
  overflow: hidden;
}
.vc-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: 65%;
  background: var(--accent);
  border-radius: 100px;
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* ========= SECTIONS ========= */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: .8rem;
}
.section-title {
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Divider ornament */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--accent);
  margin: 2rem 0;
}
.divider::before, .divider::after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
  max-width: 120px;
}

/* ========= TEST CARDS GRID ========= */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.test-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: var(--accent);
  opacity: 0;
  transform: translate(30%, -30%) rotate(45deg);
  transition: opacity .3s ease;
}
.test-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.test-card:hover::before { opacity: .06; }
.test-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(184,57,14,.08);
  padding: .3rem .7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  width: fit-content;
}
.test-card h3 {
  margin-bottom: .8rem;
  font-size: 1.35rem;
}
.test-card p {
  font-size: .95rem;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 1.2rem;
}
.test-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.test-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.test-card .arrow {
  color: var(--accent);
  font-weight: 700;
  transition: transform .3s ease;
}
.test-card:hover .arrow { transform: translateX(-6px); }

/* ========= FEATURE GRID ========= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature {
  text-align: center;
  padding: 1rem;
}
.feature-icon {
  width: 64px; height: 64px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line);
}
.feature h3 { margin-bottom: .6rem; font-size: 1.25rem; }
.feature p { font-size: .95rem; }

/* ========= FAQ ========= */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform .3s ease;
  flex-shrink: 0;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding-top: 1rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* ========= FOOTER ========= */
.footer {
  background: var(--ink);
  color: var(--bg-soft);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 1rem;
}
.footer-about {
  color: var(--line);
  font-size: .95rem;
  line-height: 1.8;
}
.footer h4 {
  color: var(--bg);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .6rem; }
.footer ul a {
  color: var(--line);
  font-size: .95rem;
}
.footer ul a:hover { color: var(--accent-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: .9rem;
}

/* ========= BREADCRUMB ========= */
.breadcrumb {
  padding: 1.2rem 0;
  font-size: .9rem;
  color: var(--ink-muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.breadcrumb li::after {
  content: '/';
  margin-right: .5rem;
  color: var(--line);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ========= TEST ENGINE UI ========= */
.test-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.test-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.test-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.test-progress-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 100px;
  overflow: hidden;
  flex: 1;
  max-width: 400px;
}
.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 100px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
  width: 0;
}
.test-progress-text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.test-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.question-card {
  max-width: 720px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.q-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: .3;
  line-height: 1;
  font-weight: 700;
  margin-bottom: .5rem;
}
.q-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.q-option {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}
.q-option:hover {
  border-color: var(--ink);
  background: var(--bg-card);
  transform: translateX(-4px);
}
.q-option.selected {
  border-color: var(--accent);
  background: rgba(184,57,14,.05);
}
.q-option-marker {
  width: 24px; height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all .2s ease;
}
.q-option.selected .q-option-marker {
  border-color: var(--accent);
  background: var(--accent);
}
.q-option.selected .q-option-marker::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.test-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* Intro screen */
.test-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}
.test-intro .test-tag { margin-bottom: 1.5rem; }
.test-intro h1 { margin-bottom: 1rem; }
.test-intro p { font-size: 1.1rem; margin-bottom: 1rem; }
.test-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.test-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-muted);
  font-size: .95rem;
}

/* ========= RESULT PAGE — REDESIGNED ========= */

/* ━━━ HERO — dominant, high contrast, shareable ━━━ */
.result-hero {
  background:
    radial-gradient(ellipse at top, rgba(184,57,14,.08), transparent 60%),
    linear-gradient(180deg, #1a1410 0%, #241b14 100%);
  color: var(--bg);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 4px solid var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,154,58,.12) 0, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(184,57,14,.15) 0, transparent 40%);
  pointer-events: none;
}
.result-hero .container { position: relative; z-index: 1; }
.result-hero .result-badge {
  display: inline-block;
  background: rgba(245,239,228,.1);
  color: var(--bg);
  padding: .4rem 1.2rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  letter-spacing: .08em;
  border: 1px solid rgba(245,239,228,.2);
  backdrop-filter: blur(4px);
}
.result-hero .result-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.result-hero .identity-hook {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-style: normal;
  font-weight: 400;
  color: var(--accent-gold);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  padding: 0 1rem;
  position: relative;
}
.result-hero .identity-hook::before,
.result-hero .identity-hook::after {
  content: '"';
  color: var(--accent);
  font-size: 2.4em;
  line-height: 0;
  position: relative;
  top: .15em;
  opacity: .7;
}
.result-hero .identity-hook::before { margin-left: .2em; }
.result-hero .identity-hook::after  { margin-right: .2em; }

.result-hero .result-percentage {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 2.2rem;
  background: rgba(245,239,228,.08);
  border: 1px solid rgba(245,239,228,.18);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.result-hero .result-percent-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}
.result-hero .result-percent-label {
  text-align: right;
  font-size: .9rem;
  color: rgba(245,239,228,.7);
}
.result-hero .result-percent-label span {
  color: var(--bg) !important;
  font-weight: 600;
}

/* ━━━ LAYOUT — more breathing room ━━━ */
.result-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

/* ━━━ SECTIONS — hierarchy by size + border + background ━━━ */
.result-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.result-section:hover { border-color: var(--line); }

/* Top section (dimension breakdown) gets visual priority */
.result-main > .result-section:first-child {
  padding: 2.4rem;
  border-top: 3px solid var(--accent);
}

.result-section h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.35rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.result-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 100px;
  flex-shrink: 0;
}

.result-section ul {
  list-style: none;
  padding-right: 0;
}
.result-section ul li {
  padding: .7rem 0;
  padding-right: 1.8rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}
.result-section ul li:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
.result-section ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ━━━ DIMENSION BARS — taller + sharper ━━━ */
.dim-bar { margin-bottom: 1.3rem; }
.dim-bar:last-child { margin-bottom: 0; }
.dim-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: .55rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}
.dim-value {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.dim-track {
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  overflow: hidden;
}
.dim-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  border-radius: 100px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(184,57,14,.3);
}

/* ━━━ SIDEBAR ━━━ */
.result-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.share-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.share-card h3 {
  color: var(--bg);
  margin-bottom: .8rem;
}
.share-card p {
  color: var(--line);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.share-buttons {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s ease;
  font-size: 1rem;
}
.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-tests {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.related-tests h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.related-item {
  display: block;
  padding: .9rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 500;
  transition: all .2s ease;
  border: 1px solid transparent;
  margin-bottom: .4rem;
}
.related-item:hover {
  background: var(--bg);
  border-color: var(--line);
  color: var(--accent);
  transform: translateX(-4px);
}

/* CTA Block */
.cta-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  color: var(--bg);
  margin-bottom: 1rem;
}
.cta-block p {
  color: var(--line);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.cta-block .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

/* Article/Blog */
.article-hero {
  padding: 3rem 0 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: .9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}
.article-body h2 {
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  margin: 2rem 0 .8rem;
}
.article-body p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.article-body ul, .article-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1.2rem;
}
.article-body li { margin-bottom: .5rem; color: var(--ink-soft); }
.article-body blockquote {
  border-right: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { min-height: 360px; margin-top: 1rem; }
  .result-layout { grid-template-columns: 1fr; }
  .result-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--bg-card); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .vc-1, .vc-2, .vc-3 { width: 85%; }
  .vc-1 { right: 5%; }
  .vc-2 { left: 0; }
  .vc-3 { right: 2%; }
  .test-header-inner { flex-wrap: wrap; }
  .test-footer { flex-direction: column-reverse; }
  .test-footer .btn { width: 100%; justify-content: center; }
}

/* ========= SCHEMA-DRIVEN SECTIONS (v2+ archetypes) — REDESIGNED ========= */

/* Legacy .identity-hook (for old archetype banks) — keep minimal */
.identity-hook {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Tags — pill-shaped concrete items */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.tag {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .55rem 1.1rem;
  font-size: .95rem;
  color: var(--ink);
  font-weight: 600;
  transition: all .2s ease;
}
.tag:hover {
  border-color: var(--accent);
  background: rgba(184,57,14,.04);
  transform: translateY(-1px);
}

/* Type chips (MBTI complementary) — bold contrast chips */
.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.type-chip {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  padding: .7rem 1.3rem;
  border-radius: 10px;
  font-size: 1.1rem;
  border: 2px solid var(--ink);
  transition: all .2s ease;
}
.type-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ━━━ CAREER CARDS — elevated, visually distinct ━━━ */
.career-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.career-card {
  background: #fff;
  border: 1px solid var(--line);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  transition: all .2s ease;
  box-shadow: 0 1px 0 rgba(26,20,16,.03);
}
.career-card:hover {
  border-right-width: 6px;
  transform: translateX(-3px);
  box-shadow: var(--shadow);
}
.career-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.career-title-group {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.career-header h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.career-category {
  font-size: .72rem;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.market-signal {
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: .3rem .7rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(184,57,14,.3);
}
.career-subs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-top: .2rem;
}
.sub-chip {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: .85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ━━━ NEXT STEPS — big, actionable, visually dominant ━━━ */
.next-steps-section {
  background: linear-gradient(135deg, #1a1410 0%, #2a1f16 100%);
  border: 1px solid var(--accent);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.next-steps-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(184,57,14,.3), transparent 70%);
  pointer-events: none;
}
.next-steps-section > h2 {
  color: var(--bg);
  border-bottom-color: rgba(245,239,228,.15);
  position: relative;
  z-index: 1;
}
.next-steps-section > h2::before {
  background: var(--accent-gold);
  width: 5px;
  height: 28px;
}
.next-steps {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  position: relative;
  z-index: 1;
}
.next-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: rgba(245,239,228,.06);
  border: 1px solid rgba(245,239,228,.12);
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  cursor: default;
}
.next-step:hover {
  background: rgba(245,239,228,.1);
  border-color: var(--accent-gold);
  transform: translateX(-4px);
}
.next-step-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(184,57,14,.5);
}
.next-step-body { flex: 1; min-width: 0; }
.next-step-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: .1em;
  margin-bottom: .35rem;
  text-transform: none;
}
.next-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--bg);
  font-size: 1.1rem;
  margin-bottom: .3rem;
  line-height: 1.45;
}
.next-step-duration {
  font-size: .82rem;
  color: rgba(245,239,228,.6);
  font-weight: 500;
}

/* Shareable line (in sidebar share card) */
.shareable-line {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent-gold) !important;
  font-size: 1rem !important;
  line-height: 1.6;
  border-right: 3px solid var(--accent);
  padding-right: .9rem;
  text-align: right;
  margin-bottom: 1.5rem !important;
  font-weight: 500;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
