/* ====== Design Tokens ====== */
:root {
  --green-500: #00875a;
  --green-600: #006e4a;
  --green-100: #e6f4ee;
  --peach-50: #fce6d2;
  --peach-100: #fbe5cd;
  --gray-50: #eef1f4;
  --gray-100: #f0f2f7;
  --gray-200: #e3e7ec;
  --gray-300: #c9d0d9;
  --gray-500: #6b7382;
  --gray-700: #4a5160;
  --navy-900: #1f2a44;
  --navy-800: #2a3552;
  --pink-500: #c5418f;
  --white: #ffffff;
  --black: #000000;
  --scale-1: #f8b5b0;
  --scale-2: #ffcaa1;
  --scale-3: #d8dce0;
  --scale-4: #b3e0bc;
  --scale-5: #6fcf97;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1180px;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5 {
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }

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

.eyebrow {
  color: var(--gray-500);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.text-accent { color: var(--green-500); }
.text-center { text-align: center; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-600); }
.btn-outline {
  background: transparent;
  color: var(--green-500);
  border-color: var(--green-500);
}
.btn-outline:hover { background: var(--green-100); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ====== Header ====== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.25rem;
}
.brand-name .brand-suffix {
  color: var(--gray-500);
  font-weight: 600;
}
.brand-name sup {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--gray-500);
  margin-left: 1px;
}
.brand-tagline {
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
}
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy-900);
}
.lang-trigger svg { width: 18px; height: 18px; }
.menu-toggle {
  display: none;
  color: var(--green-500);
  padding: 6px;
}
.menu-toggle svg { width: 28px; height: 28px; }
.nav-desktop { display: flex; gap: 28px; align-items: center; }
.nav-desktop a {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.nav-desktop a:hover { color: var(--green-500); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100;
  display: none;
  flex-direction: column;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-drawer-close { color: var(--green-500); padding: 6px; }
.mobile-drawer-close svg { width: 28px; height: 28px; }
.mobile-drawer-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  overflow-y: auto;
}
.mobile-drawer-list li a {
  display: block;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.05rem;
}
.mobile-drawer-list li a:hover,
.mobile-drawer-list li.active a {
  background: var(--gray-50);
}

/* Language modal */
.lang-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
}
.lang-modal.open { display: flex; }
.lang-modal-inner {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  margin-top: 5vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lang-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.lang-modal-close { color: var(--green-500); padding: 6px; }
.lang-modal-close svg { width: 28px; height: 28px; }
.lang-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
}
.lang-list li {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
}
.lang-list li:hover { background: var(--gray-50); }
.lang-list li.active { background: var(--gray-50); }

/* ====== Hero (peach) ====== */
.hero {
  background: var(--peach-50);
  padding: 64px 0 80px;
}
.hero h1 { color: var(--navy-900); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--navy-900);
  max-width: 600px;
}
.hero .gender-prompt {
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 1.15rem;
}
.gender-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .gender-btn { padding: 16px 24px; font-size: 1.1rem; min-width: 0; }
}
.gender-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
  min-width: 220px;
  justify-content: center;
}
.gender-btn.male { background: var(--green-500); }
.gender-btn.male:hover { background: var(--green-600); }
.gender-btn.female { background: var(--pink-500); }
.gender-btn.female:hover { background: #a93578; }
.gender-icon { font-size: 1.4rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-illustration {
  display: flex;
  justify-content: center;
}
.phone-mock {
  background: var(--navy-900);
  border-radius: 32px;
  padding: 10px;
  width: 280px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.phone-mock-screen {
  background: var(--white);
  border-radius: 24px;
  padding: 16px 14px 20px;
  position: relative;
}

/* ====== Sections ====== */
section { padding: 72px 0; }
.section-light { background: var(--gray-50); }
.section-white { background: var(--white); }

/* Stats area */
.stats-block {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
}
.stat-label {
  color: var(--gray-500);
  margin-top: 6px;
}

/* Steps */
.steps-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.1rem;
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--gray-500); margin: 0; }

/* Feature list with icons */
.feature-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--green-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-body h3 { margin-bottom: 6px; }
.feature-body p { color: var(--gray-500); margin: 0; }

/* About 4-feature grid */
.feature-grid-center {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
  text-align: center;
}
@media (min-width: 700px) {
  .feature-grid-center { grid-template-columns: repeat(2, 1fr); }
}
.feature-grid-center .feature-icon {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
}
.feature-grid-center .feature-icon svg { width: 34px; height: 34px; }
.feature-grid-center h3 { margin-bottom: 12px; color: var(--navy-900); }
.feature-grid-center p { color: var(--gray-500); }

/* Pricing */
.pricing-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 6px;
  margin: 0 auto;
  position: relative;
}
.pricing-toggle button {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle button.active {
  background: var(--navy-900);
  color: var(--white);
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  max-width: 560px;
  margin: 32px auto 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pricing-card h2 { font-size: 2rem; margin-bottom: 4px; }
.pricing-card .price { color: var(--gray-500); font-weight: 600; margin-bottom: 24px; }
.pricing-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-card ul li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.pricing-card ul li::before {
  content: "✓";
  color: var(--green-500);
  font-weight: 800;
  font-size: 1rem;
}
.pricing-divider { border: 0; border-top: 1px solid var(--gray-200); margin: 48px 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 24px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.1rem;
  gap: 16px;
}
.faq-q .chev {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--navy-900);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray-700);
}
.faq-item.open .faq-a {
  max-height: 800px;
  padding: 0 0 24px;
}

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy-900);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-stack textarea { min-height: 160px; resize: vertical; }
.form-stack input:focus,
.form-stack textarea:focus { border-color: var(--green-500); }
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}
.form-checkbox input { accent-color: var(--green-500); width: 18px; height: 18px; }
.link-accent { color: var(--green-500); font-weight: 700; }
.link-accent:hover { text-decoration: underline; }

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.contact-row svg { width: 24px; height: 24px; color: var(--green-500); margin-top: 4px; }
.contact-row strong { color: var(--navy-900); display: block; margin-bottom: 4px; }

/* Footer */
.site-footer {
  background: var(--gray-50);
  padding: 48px 0 32px;
}
.footer-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.footer-divider { border: 0; border-top: 1px solid var(--gray-200); margin: 0 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  max-width: 720px;
}
.footer-grid a {
  color: var(--navy-800);
  font-weight: 500;
}
.footer-grid a:hover { color: var(--green-500); }
.footer-disclaimer {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-top: 32px;
  line-height: 1.7;
}
.footer-disclaimer .more-toggle { color: var(--navy-900); font-weight: 600; text-decoration: underline; cursor: pointer; }
.footer-extra { display: none; }
.footer-disclaimer.open .footer-extra { display: inline; }
.copyright {
  border-top: 1px solid var(--gray-200);
  margin-top: 32px;
  padding-top: 20px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ====== Test ====== */
.test-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0 8px;
}
.test-progress-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--green-500);
  width: 0%;
  transition: width 0.4s ease;
}
.test-back {
  background: none;
  color: var(--navy-900);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.test-back svg { width: 22px; height: 22px; }

.scale-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: end;
  margin: 24px auto 16px;
  max-width: 460px;
}
.scale-legend > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scale-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid;
}
.sc-1 { border-color: var(--scale-1); background: rgba(248, 181, 176, 0.55); }
.sc-2 { border-color: var(--scale-2); background: rgba(255, 202, 161, 0.45); }
.sc-3 { border-color: var(--scale-3); background: rgba(216, 220, 224, 0.45); }
.sc-4 { border-color: var(--scale-4); background: rgba(179, 224, 188, 0.45); }
.sc-5 { border-color: var(--scale-5); background: rgba(111, 207, 151, 0.45); }
.scale-label {
  text-align: center;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.85rem;
}

.test-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  text-align: center;
}
.test-card .statement {
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 18px;
}
.scale-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.scale-options label { display: flex; justify-content: center; cursor: pointer; }
.scale-options input { display: none; }
.scale-options .scale-circle { transition: transform 0.15s ease; }
.scale-options input:checked + .scale-circle { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.18); }

.test-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 18px 0 32px;
}
.test-footer .hint {
  color: var(--gray-500);
  font-size: 0.95rem;
  text-align: center;
}

/* Result page */
.result-banner {
  background: var(--peach-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 24px 0;
}
.live-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy-900);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 12px;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.score-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.score-row { display: grid; grid-template-columns: 36px 1fr 120px 52px; gap: 12px; align-items: center; }
@media (max-width: 560px) {
  .score-row { grid-template-columns: 32px 1fr 80px 48px; gap: 8px; }
  .score-name { font-size: 0.95rem; }
}
.score-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gray-50);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.score-name { font-weight: 700; color: var(--navy-900); }
.score-bar {
  background: var(--gray-200);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.score-bar-fill { height: 100%; border-radius: 999px; }
.score-pct { font-weight: 700; color: var(--navy-900); text-align: right; font-size: 0.95rem; }

.type-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-top: 24px;
  border: 1px solid var(--gray-200);
}
.type-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #c8c1ed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.type-eyebrow { color: var(--gray-500); font-weight: 700; margin-bottom: 4px; }
.type-card h2 { margin-bottom: 16px; }
.type-text { color: var(--gray-700); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--green-500);
  padding: 8px;
}
.modal-close svg { width: 24px; height: 24px; }

/* ====== Page Hero (slim) ====== */
.page-hero {
  background: var(--peach-50);
  padding: 64px 0 72px;
}
.page-hero h1 { color: var(--navy-900); margin-bottom: 16px; }
.page-hero p { color: var(--navy-900); max-width: 680px; }

.section-grayhero {
  background: var(--gray-50);
  padding: 64px 0;
}

/* Promise card with illustration */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 800px) {
  .promise-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* CTA banner */
.cta-banner {
  background: var(--peach-50);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 32px;
  text-align: center;
}
.cta-banner h3 { font-size: 1.4rem; margin-bottom: 12px; }
.cta-banner .price-text { color: var(--navy-900); margin-bottom: 16px; }

/* Utility */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
