:root {
  --ink: #16132e;
  --ink-soft: #4a4766;
  --cream: #fbf7f1;
  --paper: #ffffff;
  --line: #e9e3d8;
  --accent: #ff6b3d;
  --accent-dark: #e4531f;
  --mint: #2bb673;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(22, 19, 46, 0.25);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Inter", sans-serif; line-height: 1.08; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.logo img { width: 36px; height: 36px; }
.logo small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; font-family: "Inter", sans-serif; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--accent-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 0.95rem; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; font-size: 0.75rem; }

/* Quiz card */
.quiz {
  background: var(--paper); border-radius: 28px; padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 99px; transition: width .35s ease; }
.step { display: none; animation: fade .35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 1.6rem; margin-bottom: 18px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.option .ico { font-size: 1.8rem; line-height: 1; }
.option:hover, .option.selected { border-color: var(--accent); background: #fff5f1; }
.options.list { grid-template-columns: 1fr; }
.options.list .option { flex-direction: row; justify-content: flex-start; padding: 15px 18px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { font-size: 0.75rem; color: var(--ink-soft); margin: 6px 0 16px; }
.quiz .btn { width: 100%; }
.back { background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; margin-top: 14px; }
.back:hover { color: var(--ink); }
.done { text-align: center; padding: 20px 0; }
.done .big { font-size: 3.4rem; margin-bottom: 10px; }
.done p { color: var(--ink-soft); }
.error { color: #c62828; font-size: 0.85rem; margin-bottom: 10px; display: none; }

/* Sections */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .tag { color: var(--accent-dark); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 10px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.strip { background: var(--ink); color: #fff; padding: 26px 0; }
.strip .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.strip span { display: flex; align-items: center; gap: 10px; }
.strip b { color: var(--accent); font-size: 1.3rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card .num {
  width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; font-family: "Bricolage Grotesque", sans-serif;
}
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

.white { background: #fff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--cream); }
.feature .ico { font-size: 2rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

.credit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.credit h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.credit p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #fff; border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.meter { background: var(--ink); color: #fff; border-radius: 28px; padding: 40px; }
.meter h3 { font-size: 1.3rem; margin-bottom: 20px; }
.bar { margin-bottom: 16px; }
.bar div { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.bar i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ffb547); }
.meter small { color: #b9b6d3; display: block; margin-top: 10px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

.cta { background: var(--accent); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.cta p { font-size: 1.15rem; opacity: .92; margin-bottom: 28px; }
.cta .btn { background: var(--ink); }
.cta .btn:hover { background: #000; }

/* About */
.page-hero { padding: 80px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); max-width: 820px; margin: 0 auto 18px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--ink-soft); font-size: 1.2rem; max-width: 620px; margin: 0 auto; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.story p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 14px; }
.cat-art { background: var(--ink); border-radius: 32px; padding: 48px; display: grid; place-items: center; aspect-ratio: 1 / 1; }
.cat-art img { width: 70%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Footer */
.footer { background: var(--ink); color: #c9c6e0; padding: 60px 0 30px; margin-top: 90px; }
.footer .top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer .logo { color: #fff; }
.footer .logo small { color: #9d9abb; }
.footer nav { display: flex; gap: 24px; font-weight: 600; }
.footer nav a:hover { color: #fff; }
.footer .fine { border-top: 1px solid #2d2a4a; padding-top: 22px; font-size: 0.8rem; color: #8e8bab; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .credit, .story { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps, .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 36px 0 60px; }
  .quiz { padding: 24px 18px; }
  .features, .field-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta { padding: 48px 22px; border-radius: 24px; }
  .logo small { display: none; }
}

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 70px 20px 0; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.footer .legal-links { display: flex; gap: 18px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; }
.footer .legal-links a:hover { color: #fff; }
