:root {
  --bg: #FFF7EF;
  --bg-soft: #FFFAF5;
  --ink: #1A1A2E;
  --ink-soft: #4A4A5E;
  --ink-faint: #8A8AA0;
  --line: #EFE6DC;
  --line-soft: #F6EFE6;
  --accent-pink: #FF6BCB;
  --accent-purple: #7E5BEF;
  --accent-coral: #FF8A65;
  --accent-yellow: #FFD166;
  --accent-mint: #2EC4B6;
  --accent-blue: #4CC9F0;
  --grad-hero: linear-gradient(135deg, #FF6BCB 0%, #7E5BEF 50%, #4CC9F0 100%);
  --grad-soft: linear-gradient(135deg, #FFE5F1 0%, #E8DEFF 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-1: 0 4px 24px -8px rgba(26, 26, 46, 0.08);
  --shadow-2: 0 16px 40px -12px rgba(126, 91, 239, 0.25);
  --maxw: 1120px;
  --maxw-narrow: 720px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); }

a { color: var(--accent-purple); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-pink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); margin-top: -1em; margin-bottom: 2.5em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-purple);
  background: rgba(126, 91, 239, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.5em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-hero);
  color: white;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { transform: translateY(-2px); color: white; }
.btn-ghost {
  background: white;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

/* ======== HEADER ======== */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 239, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); }
.logo:hover { color: var(--accent-purple); }
.logo-mark { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 3px; }
.logo-mark .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-1 { background: #FF6B6B; } .dot-2 { background: #FFA94D; } .dot-3 { background: #FFD43B; }
.dot-4 { background: #51CF66; } .dot-5 { background: #339AF0; } .dot-6 { background: #CC5DE8; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav { display: none; }
}

/* ======== HERO ======== */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-copy h1 { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 32px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 0.95rem; }

.hero-art { position: relative; aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.85; animation: float 6s ease-in-out infinite; }
.orb-1 { width: 55%; height: 55%; top: 5%; left: 10%; background: radial-gradient(circle at 30% 30%, #FF6BCB, #FF8A65); animation-delay: 0s; }
.orb-2 { width: 45%; height: 45%; top: 30%; right: 5%; background: radial-gradient(circle at 30% 30%, #7E5BEF, #4CC9F0); animation-delay: -2s; }
.orb-3 { width: 35%; height: 35%; bottom: 8%; left: 25%; background: radial-gradient(circle at 30% 30%, #FFD166, #FF8A65); animation-delay: -4s; }
.orb-4 { width: 28%; height: 28%; top: 8%; right: 25%; background: radial-gradient(circle at 30% 30%, #2EC4B6, #4CC9F0); animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 880px) {
  .hero { padding: 50px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { display: none; }
}

/* ======== QUIZ GRID ======== */
.quiz-grid-section { padding: 60px 0; }
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.quiz-card {
  display: block;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quiz-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--card-grad, var(--grad-hero));
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}
.quiz-card::after {
  content: "→";
  position: absolute; right: 22px; top: 28px;
  color: var(--ink-faint);
  transition: transform .2s, color .2s;
  z-index: 2;
}
.quiz-card > * { position: relative; z-index: 1; transition: color .25s; }
.quiz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.quiz-card:hover::before { opacity: 1; }
.quiz-card:hover::after { transform: translateX(4px); color: white; }
.quiz-card:hover > *,
.quiz-card:hover h3,
.quiz-card:hover p,
.quiz-card:hover .quiz-card-meta { color: white; }
.quiz-card-emoji { font-size: 2rem; margin-bottom: 12px; line-height: 1; }
.quiz-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.quiz-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.95rem; }
.quiz-card-meta { font-size: 0.82rem; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.02em; }

/* ======== REASSURE ======== */
.reassure { padding: 60px 0; background: var(--grad-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.reassure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.reassure-item h3 { margin-bottom: 10px; }
.reassure-item p { color: var(--ink-soft); margin: 0; }

/* ======== HOW IT WORKS ======== */
.howto { padding: 80px 0; }
.howto h2 { text-align: center; margin-bottom: 40px; }
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { padding: 32px 26px; background: white; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-hero);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* ======== FAQ ======== */
.faq { padding: 60px 0 100px; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px; transition: border-color .15s; }
.faq details[open] { border-color: var(--accent-purple); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; padding-right: 24px; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-weight: 400; font-size: 1.4rem; color: var(--ink-faint); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; transform: rotate(0); color: var(--accent-purple); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ======== QUIZ PAGE ======== */
.quiz-hero { padding: 60px 0 40px; }
.quiz-hero h1 { background: var(--card-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.quiz-shell-section { padding: 0 0 40px; }
.quiz-shell {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
}
.quiz-loading { text-align: center; color: var(--ink-faint); padding: 80px 0; }
.quiz-noscript { padding: 20px; background: #FFF3CD; border-radius: 8px; text-align: center; }

.quiz-progress { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.quiz-progress-bar { height: 100%; background: var(--card-grad, var(--grad-hero)); transition: width .35s ease-out; border-radius: 3px; }
.quiz-q-count { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 10px; font-weight: 500; }
.quiz-question { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.25; margin: 0 0 28px; color: var(--ink); }
.quiz-answers { display: grid; gap: 12px; }
.quiz-answer {
  text-align: left;
  padding: 16px 22px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s, transform .1s;
}
.quiz-answer:hover { border-color: var(--accent-purple); background: white; }
.quiz-answer:active { transform: scale(0.99); }
.quiz-answer:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 2px; }

.quiz-result { text-align: center; padding: 12px 0; }
.quiz-result-eyebrow { color: var(--ink-faint); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.quiz-result-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 18px;
  background: var(--card-grad, var(--grad-hero));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-result-emoji { font-size: 4rem; line-height: 1; margin-bottom: 10px; }
.quiz-result-desc { color: var(--ink-soft); text-align: left; font-size: 1.05rem; }
.quiz-result-desc p { margin: 0 0 1em; }
.quiz-result-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.quiz-body { padding: 40px 0; }
.quiz-faq { padding: 0 0 60px; }
.quiz-faq h2 { margin-bottom: 18px; }
.quiz-faq details { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; }
.quiz-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.quiz-faq summary::-webkit-details-marker { display: none; }
.quiz-faq details[open] summary { color: var(--accent-purple); }

.related { padding: 30px 0 80px; }

/* ======== PROSE ======== */
.prose h2 { margin-top: 2em; padding-top: 0.4em; }
.prose h3 { margin-top: 1.6em; }
.prose p { color: var(--ink-soft); margin: 0 0 1.2em; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent-purple); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--accent-pink); margin: 1.4em 0; padding: 0.4em 1em; background: var(--grad-soft); border-radius: 0 8px 8px 0; }
.prose blockquote p { color: var(--ink); margin: 0; }

/* ======== LIST HERO ======== */
.list-hero { padding: 60px 0 20px; text-align: center; }

/* ======== FOOTER ======== */
.site-footer { background: white; border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 60px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand strong { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.foot-brand p { color: var(--ink-soft); margin: 0 0 10px; font-size: 0.95rem; }
.foot-disclaimer { font-size: 0.85rem !important; color: var(--ink-faint) !important; }
.foot-sister { font-size: 0.9rem; color: var(--ink-soft); margin: 12px 0 0 !important; }
.foot-sister a { color: var(--accent-purple); font-weight: 600; }
.foot-links h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { color: var(--ink-soft); font-size: 0.95rem; }
.foot-links a:hover { color: var(--accent-purple); }
.foot-bottom { padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; color: var(--ink-faint); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ======== UTILITIES ======== */
.page { padding: 60px 0; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .quiz-shell { padding: 22px 18px; }
}
