:root {
  --olive: #777748;
  --olive-dark: #555637;
  --olive-soft: #a8ab80;
  --pink: #e49eac;
  --pink-deep: #a9546c;
  --blue: #6c91a2;
  --mauve: #806487;
  --sage: #dfe1ce;
  --cream: #f8f6ef;
  --paper: #fffefb;
  --ink: #303126;
  --muted: #747468;
  --line: rgba(119, 119, 72, .18);
  --white: #fff;
  --radius: 9px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--cream); font-family: "Cairo", sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle at 92% 2%, rgba(228,158,172,.25), transparent 30rem), radial-gradient(circle at 5% 96%, rgba(108,145,162,.18), transparent 28rem), var(--cream); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.app-shell { width: min(970px, calc(100% - 36px)); margin: 18px auto 20px; }
.brand { min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark img { display: block; width: 105px; height: 68px; object-fit: contain; }
.brand-by { color: var(--olive); font-size: 12px; letter-spacing: .02em; }
.screen { display: none; min-height: min(730px, calc(100vh - 123px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 12px 38px rgba(71,72,48,.07); animation: enter .42s cubic-bezier(.2,.7,.2,1) both; }
.screen.is-active { display: flex; }
.intro { position: relative; align-items: center; justify-content: center; flex-direction: column; padding: 62px clamp(24px, 8vw, 88px) 46px; text-align: center; }
.intro::before, .intro::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.intro::before { right: -125px; top: -100px; background: rgba(228,158,172,.22); box-shadow: 0 0 0 38px rgba(228,158,172,.05); }
.intro::after { left: -145px; bottom: -135px; background: rgba(108,145,162,.16); box-shadow: 0 0 0 42px rgba(119,119,72,.04); }
.eyebrow { position: relative; z-index: 1; padding: 7px 14px; border-block: 1px solid rgba(169,84,108,.22); color: var(--pink-deep); font-size: 12px; }
.compass-orb { position: relative; width: 78px; height: 78px; margin: 24px 0 14px; border: 1px solid rgba(119,119,72,.4); border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(228,158,172,.11), 0 0 0 8px rgba(119,119,72,.04); }
.compass-orb::before, .compass-orb::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(119,119,72,.48); transform: translate(-50%,-50%); }
.compass-orb::before { width: 1px; height: 58px; }
.compass-orb::after { width: 58px; height: 1px; }
.compass-orb span { position: absolute; left: 50%; top: 9px; width: 13px; height: 31px; background: var(--pink); clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%); transform: translateX(-50%); transform-origin: 50% 100%; }
.compass-orb i { position: absolute; left: 50%; top: 50%; z-index: 2; width: 10px; height: 10px; border: 2px solid var(--paper); border-radius: 50%; background: var(--olive); transform: translate(-50%,-50%); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 16px; color: var(--ink); font-size: clamp(34px, 5.2vw, 53px); font-weight: 400; line-height: 1.5; }
h1 em { color: var(--olive); font-style: normal; }
.lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: clamp(14px, 2vw, 17px); line-height: 2; }
.intro-notes { display: flex; justify-content: center; flex-wrap: wrap; width: min(610px, 100%); margin-bottom: 26px; padding: 16px 8px; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.intro-notes span { flex: 1; min-width: 110px; padding: 0 18px; border-left: 1px solid var(--line); }
.intro-notes span:last-child { border-left: 0; }
.intro-notes b { color: var(--olive-dark); font-size: 14px; }
.primary-btn { display: inline-flex; justify-content: center; align-items: center; gap: 13px; width: min(430px, 100%); min-height: 52px; padding: 12px 20px; border: 1px solid var(--olive); border-radius: var(--radius); color: var(--white); background: var(--olive); text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.primary-btn:hover { transform: translateY(-2px); background: var(--olive-dark); border-color: var(--olive-dark); }
.primary-btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(119,119,72,.27); outline-offset: 3px; }
.microcopy { margin: 14px 0 0; color: #919184; font-size: 10px; }
.quiz { padding: clamp(25px, 5.5vw, 54px); flex-direction: column; }
.quiz-topline { display: flex; justify-content: space-between; color: var(--olive); font-size: 12px; font-weight: 600; }
.progress { height: 3px; margin-top: 12px; overflow: hidden; background: var(--sage); direction: rtl; }
.progress span { display: block; width: 0; height: 100%; background: var(--olive); transition: width .45s ease; }
.question-wrap { width: min(720px, 100%); margin: auto; padding: 38px 0 28px; }
.question-kicker { margin-bottom: 10px; color: var(--olive); font-size: 12px; font-weight: 600; }
.question-wrap h2 { margin-bottom: 9px; color: var(--ink); font-size: clamp(24px, 4vw, 35px); font-weight: 400; line-height: 1.65; }
.question-helper { margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.answers { display: grid; gap: 10px; }
.answer { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px; width: 100%; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: right; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.answer:hover { transform: translateX(-3px); border-color: rgba(119,119,72,.5); }
.answer.is-selected { border-color: var(--olive); background: rgba(223,225,206,.48); box-shadow: inset 0 0 0 1px var(--olive); }
.answer-letter { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--olive); background: var(--paper); font-weight: 700; }
.answer.is-selected .answer-letter { color: var(--white); background: var(--olive); border-color: var(--olive); }
.answer-text { font-size: 14px; line-height: 1.75; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; width: min(720px, 100%); margin: 0 auto; }
.ghost-btn, .next-btn, .text-btn { border: 0; cursor: pointer; }
.ghost-btn { padding: 13px 8px; color: var(--muted); background: transparent; }
.next-btn { min-width: 150px; padding: 12px 20px; border-radius: var(--radius); color: var(--white); background: var(--olive); font-weight: 700; }
.next-btn:disabled { opacity: .35; cursor: not-allowed; }
.transition { flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.transition p { margin: 24px 0 5px; color: var(--ink); font-size: 26px; }
.transition small { color: var(--muted); }
.pulse-orbit { position: relative; width: 76px; height: 76px; border: 2px solid rgba(119,119,72,.28); border-radius: 50%; animation: breathe 1.7s ease-in-out infinite; }
.pulse-orbit::before, .pulse-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.pulse-orbit::before { inset: 10px; border: 1px solid rgba(228,158,172,.65); }
.pulse-orbit::after { inset: 24px; background: rgba(228,158,172,.22); }
.pulse-orbit span { position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); transform: translateX(-50%); }
.pulse-orbit i { position: absolute; inset: 31px; z-index: 2; border-radius: 50%; background: var(--olive); }
.result { --route-accent: var(--olive); --route-soft: #eef0df; position: relative; padding: clamp(25px, 5vw, 55px); flex-direction: column; background: linear-gradient(180deg, var(--route-soft) 0, var(--paper) 280px); }
.result[data-route="self"] { --route-accent: #6f7848; --route-soft: #eef0da; }
.result[data-route="community"] { --route-accent: #a9546c; --route-soft: #f9e7eb; }
.result[data-route="arts"] { --route-accent: #547f91; --route-soft: #e4f0f3; }
.result[data-route="maryam"] { --route-accent: #785b80; --route-soft: #f0e7f2; }
.result-heading { max-width: 700px; margin: 0 auto 32px; text-align: center; }
.result-label { display: block; margin-bottom: 10px; color: var(--route-accent); font-size: 12px; font-weight: 600; }
.season-chip { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border: 1px solid color-mix(in srgb, var(--route-accent) 30%, transparent); border-radius: 999px; color: var(--route-accent); background: rgba(255,255,255,.65); font-size: 12px; font-weight: 600; }
.result-heading h2 { margin-bottom: 10px; color: var(--ink); font-size: clamp(29px, 5vw, 44px); font-weight: 400; line-height: 1.5; }
.result-heading p { color: var(--muted); line-height: 1.95; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.insight-card { position: relative; min-height: 205px; padding: 25px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--route-accent) 22%, transparent); border-top: 4px solid var(--route-accent); border-radius: var(--radius); background: rgba(255,255,255,.82); }
.card-number { position: absolute; top: 10px; left: 15px; color: rgba(119,119,72,.13); font-family: serif; font-size: 40px; }
.insight-card h3 { margin-bottom: 12px; color: var(--route-accent); font-size: 16px; }
.insight-card p, .insight-card li { color: var(--muted); font-size: 13px; line-height: 1.9; }
.insight-card ul { margin: 0; padding-right: 18px; }
.recommendation { position: relative; padding: clamp(27px, 5vw, 46px); overflow: hidden; border-radius: var(--radius); color: var(--white); background: linear-gradient(135deg, var(--route-accent), color-mix(in srgb, var(--route-accent) 72%, #303126)); }
.recommendation::after { content: ""; position: absolute; width: 260px; height: 260px; left: -105px; bottom: -145px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 72px rgba(255,255,255,.018); }
.recommendation-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 22px; }
.route-overline { margin-bottom: 7px; color: rgba(255,255,255,.72); font-size: 11px; }
.recommendation h3 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 36px); font-weight: 400; }
.recommendation > p:not(.route-overline) { max-width: 700px; color: rgba(255,255,255,.84); line-height: 1.95; }
.route-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 25px; }
.route-points span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.9); font-size: 11px; }
.starting-label { margin: 24px 0 4px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.19); color: rgba(255,255,255,.7) !important; font-size: 11px; }
.recommendation h4 { position: relative; z-index: 1; margin: 0 0 5px; font-size: 18px; font-weight: 600; }
.starting-description { position: relative; z-index: 1; max-width: 660px; margin-bottom: 20px; color: rgba(255,255,255,.8) !important; font-size: 12px; }
.recommendation .primary-btn { position: relative; z-index: 1; width: auto; min-width: 270px; color: var(--white); background: var(--olive); border-color: var(--olive); }
.recommendation .primary-btn:hover { color: var(--white); background: var(--olive-dark); border-color: var(--olive-dark); }
.secondary-link { position: relative; z-index: 1; display: inline-block; margin: 16px 15px 0; color: rgba(255,255,255,.82); font-size: 12px; text-underline-offset: 5px; }
.result-actions { display: flex; justify-content: center; gap: 25px; margin: 25px 0 12px; }
.text-btn { padding: 6px; color: var(--olive); background: transparent; text-decoration: underline; text-underline-offset: 5px; font-size: 12px; }
.disclaimer { max-width: 700px; margin: 0 auto; color: #8c8c80; text-align: center; font-size: 10px; line-height: 1.8; }
footer { display: flex; justify-content: space-between; width: min(970px, calc(100% - 40px)); margin: 0 auto 20px; color: #858577; font-size: 10px; }
footer a { text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 5; transform: translate(-50%, 30px); padding: 9px 16px; border-radius: 999px; color: var(--white); background: var(--olive-dark); opacity: 0; pointer-events: none; transition: .3s ease; font-size: 12px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.08) rotate(4deg); opacity: .72; } }
@media (max-width: 680px) {
  .app-shell { width: calc(100% - 16px); margin-top: 6px; }
  .brand { min-height: 72px; padding-inline: 5px; }
  .brand-mark img { width: 86px; height: 56px; }
  .brand-by { font-size: 10px; }
  .screen { min-height: calc(100svh - 87px); }
  .intro { padding: 38px 19px 30px; }
  .intro::before, .intro::after { width: 190px; height: 190px; }
  .compass-orb { width: 64px; height: 64px; margin: 18px 0 13px; }
  .compass-orb::before { height: 46px; }
  .compass-orb::after { width: 46px; }
  h1 { font-size: clamp(29px, 9vw, 40px); line-height: 1.55; }
  .lead { font-size: 14px; line-height: 1.9; }
  .intro-notes span { min-width: 0; padding: 0 7px; white-space: nowrap; }
  .quiz { padding: 24px 17px; }
  .question-wrap { padding-top: 28px; }
  .answer { grid-template-columns: 31px 1fr; padding: 13px; gap: 10px; }
  .answer-letter { width: 30px; height: 30px; }
  .answer-text { font-size: 13px; }
  .result-grid { grid-template-columns: 1fr; }
  .recommendation .primary-btn { width: 100%; min-width: 0; }
  .secondary-link { display: block; margin-inline: 0; text-align: center; }
  footer { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
