@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --navy: #183A5A;
  --navy-deep: #0F2940;
  --navy-soft: #EAF0F5;
  --navy-border: #C7D5E8;
  --gold: #C8A34D;
  --gold-deep: #A88434;
  --gold-soft: #F7F1E2;
  --success: #2F7D61;
  --success-soft: #E6F5EF;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --surface: #F7F8FA;
  --surface-blue: #F2F6F9;
  --border: #E4E8EE;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-blue);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.is-hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 232, 238, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 42px; display: block; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.login-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.header-cta, .primary-button, .gold-button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.header-cta, .primary-button { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(15, 41, 64, .17); }
.header-cta:hover, .primary-button:hover { background: var(--navy-deep); transform: translateY(-1px); }
.gold-button { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(200, 163, 77, .22); }
.gold-button:hover { background: #D7B763; transform: translateY(-1px); }
.header-cta:focus-visible, .primary-button:focus-visible, .gold-button:focus-visible,
.option-button:focus-visible, .back-button:focus-visible, .restart-button:focus-visible,
.login-link:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.page-shell { position: relative; min-height: calc(100vh - 150px); overflow: hidden; padding: 54px 20px 60px; }
.ambient { position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.ambient-one { width: 420px; height: 420px; left: -180px; top: 30px; background: rgba(200, 163, 77, .11); }
.ambient-two { width: 520px; height: 520px; right: -250px; bottom: -180px; background: rgba(24, 58, 90, .08); }
.quiz-shell { position: relative; z-index: 1; width: min(880px, 100%); margin: 0 auto; outline: none; }
.progress-wrap { height: 8px; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--navy-soft); }
.progress-bar { width: 0; height: 100%; background: var(--gold); transition: width .28s ease; }
.quiz-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 26px 90px rgba(15, 23, 42, .11);
}
.progress-wrap:not(.is-hidden) + .quiz-card { border-radius: 0 0 26px 26px; border-top: 0; }
.intro-panel, .question-panel, .result-panel { padding: 50px 54px; }
.intro-panel { text-align: center; }
.eyebrow { margin: 0; color: var(--gold-deep); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; color: var(--navy-deep); letter-spacing: -.025em; }
h1 { max-width: 720px; margin: 12px auto 0; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.06; }
h2 { margin: 10px 0 0; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.15; }
h3 { margin: 0; font-size: 1.1rem; }
.intro-copy { max-width: 680px; margin: 22px auto 0; color: #475569; font-size: 1.13rem; }
.trust-row { max-width: 720px; margin: 30px auto 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; }
.trust-row span { display: flex; align-items: center; gap: 9px; min-height: 52px; border-radius: 14px; background: var(--surface); padding: 13px 15px; color: var(--text); font-size: .9rem; font-weight: 700; }
.trust-row i { display: inline-grid; width: 20px; height: 20px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--success-soft); color: var(--success); font-style: normal; }
.karma-note { max-width: 650px; margin: 0 auto 26px; color: #475569; font-size: .91rem; line-height: 1.6; }
.karma-note strong { color: var(--navy); }
.time-note { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }

.question-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.back-button, .restart-button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #475569; font-weight: 700; padding: 9px 10px; }
.back-button:hover, .restart-button:hover { background: var(--surface); }
.question-help, .result-lead { margin: 10px 0 0; color: var(--muted); font-size: 1.03rem; }
.option-list { display: grid; gap: 12px; margin-top: 28px; }
.option-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  padding: 16px 18px;
  text-align: left;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.option-button:hover { border-color: var(--navy-border); background: var(--surface); transform: translateY(-1px); }
.option-button.is-selected { border-color: var(--navy); background: var(--navy-soft); color: var(--navy-deep); }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.result-box { border: 1px solid; border-radius: 18px; padding: 22px; }
.result-box-reviewed { border-color: #CFE6DC; background: var(--success-soft); }
.result-box-reviewed h3 { color: #215E49; }
.result-box-explore { border-color: #E7D7AD; background: var(--gold-soft); }
.result-box-explore h3 { color: #765F25; }
.result-list { display: grid; gap: 9px; margin-top: 14px; }
.result-item { display: flex; gap: 8px; color: #334155; }
.result-item i { font-style: normal; font-weight: 800; }
.result-empty { margin: 12px 0 0; color: #475569; }
.plan-cta { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 20px; background: var(--navy-deep); padding: 24px; color: var(--white); }
.plan-cta h3 { color: var(--white); font-size: 1.25rem; }
.plan-cta p { margin: 5px 0 0; color: #DCE7EF; }
.plan-cta .gold-button { flex: 0 0 auto; }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.disclaimer { max-width: 760px; margin: 18px auto 0; color: var(--muted); text-align: center; font-size: .76rem; line-height: 1.55; }

.site-footer { border-top: 1px solid var(--border); background: var(--white); }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .84rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--navy); }

body.embed-mode { background: transparent; }
body.embed-mode [data-full-page] { display: none; }
body.embed-mode .page-shell { min-height: 0; padding: 0; overflow: visible; }
body.embed-mode .ambient { display: none; }
body.embed-mode .quiz-shell { width: 100%; }
body.embed-mode .quiz-card { border-radius: 22px; box-shadow: none; }
body.embed-mode .progress-wrap { border-radius: 22px 22px 0 0; }
body.embed-mode .progress-wrap:not(.is-hidden) + .quiz-card { border-radius: 0 0 22px 22px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand img { height: 36px; }
  .login-link { display: none; }
  .header-cta { min-height: 42px; padding: 9px 14px; font-size: .82rem; }
  .page-shell { padding: 28px 12px 38px; }
  .intro-panel, .question-panel, .result-panel { padding: 30px 22px; }
  h1 { font-size: 2.35rem; }
  .intro-copy { font-size: 1rem; }
  .trust-row { grid-template-columns: 1fr; gap: 8px; }
  .trust-row span { min-height: 46px; }
  .result-grid { grid-template-columns: 1fr; }
  .plan-cta { align-items: stretch; flex-direction: column; }
  .gold-button { width: 100%; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions button { width: 100%; }
  .footer-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
