/* ====== Design Tokens ====== */
:root {
  /* Brand: indigo / violet primary, coral accent */
  --green-500: #5B4FE9;        /* primary (kept var name for compat) */
  --green-600: #4338CA;        /* primary dark */
  --green-100: #EEEBFE;        /* primary tint */
  --indigo-500: #5B4FE9;
  --indigo-600: #4338CA;
  --indigo-50: #EEEBFE;
  --coral-500: #FF7A6E;
  --coral-600: #E8625A;
  --yellow-500: #FFC857;
  --peach-50: #FFF1E5;         /* warm cream surface */
  --peach-100: #FFE3CC;
  --cream-50: #FFF7EE;
  --lavender-50: #F6F3FF;
  --gray-50: #F4F1FB;
  --gray-100: #ECE9F4;
  --gray-200: #E5E0F4;
  --gray-300: #C9C3DD;
  --gray-500: #6B6890;
  --gray-700: #3F3A66;
  --navy-900: #1A1A2E;         /* deep charcoal */
  --navy-800: #272745;
  --pink-500: #EC4899;
  --white: #ffffff;
  --black: #000000;
  --scale-1: #FF8A80;
  --scale-2: #FFC178;
  --scale-3: #DAD6E8;
  --scale-4: #BDB6F0;
  --scale-5: #7C6BF2;
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 6px 24px rgba(67, 56, 202, 0.10);
  --shadow-lg: 0 18px 50px rgba(67, 56, 202, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1180px;
  --grad-brand: linear-gradient(135deg, #7C3AED 0%, #FF7A6E 100%);
}

/* ====== 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, box-shadow 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  background-clip: padding-box;
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #6D28D9 0%, #E8625A 100%); background-clip: padding-box; transform: translateY(-1px); }
.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.3rem;
  letter-spacing: -0.01em;
}
.brand-name .brand-suffix {
  color: var(--indigo-500);
  font-weight: 700;
}
.brand-name sup {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo-500);
  margin-left: 1px;
  vertical-align: top;
  line-height: 0.65;
  display: inline-block;
}
.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);
  order: 4;
}
.lang-trigger svg { width: 18px; height: 18px; }
.menu-toggle {
  display: none;
  color: var(--green-500);
  padding: 6px;
  order: 5;
}
.menu-toggle svg { width: 28px; height: 28px; }
.nav-desktop { display: flex; gap: 28px; align-items: center; order: 1; }
.nav-desktop a {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.nav-desktop a:hover { color: var(--green-500); }
.nav-cta {
  padding: 10px 20px;
  font-size: 0.95rem;
  order: 3;
}
.nav-login {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
  order: 2;
  margin-left: 8px;
}
.nav-login:hover { color: var(--green-500); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-cta { display: none; }
  .nav-login { 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);
}
.mobile-drawer-cta { padding: 16px 20px 24px; }

/* 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; }
@media (max-width: 760px) {
  .lang-modal { background: var(--white); align-items: stretch; }
  .lang-modal-inner {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin-top: 0;
    border-radius: 0;
  }
}
.lang-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.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 ====== */
.hero {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255, 122, 110, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(124, 58, 237, 0.18), transparent 60%),
    var(--cream-50);
  padding: 72px 0 96px;
  position: relative;
  overflow-x: clip;
}
.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.35), transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}
.hero h1 { color: var(--navy-900); }
.hero h1 .text-accent { display: block; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--navy-900);
  max-width: 600px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-cta-row .btn { box-shadow: 0 10px 28px rgba(26, 26, 46, 0.12); }
.hero-disclaimer {
  font-size: 0.9rem;
  color: var(--gray-500, #6B6890);
  margin-top: 14px;
  margin-bottom: 0;
}
.hero-disclaimer a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 899px) {
  .hero-disclaimer { text-align: center; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 899px) {
  .hero h1,
  .hero .lede { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
}
@media (min-width: 900px) {
  .hero { padding: 96px 0 140px; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
/* iPhone-style mock */
.phone-mock {
  background: linear-gradient(160deg, #0F0F1A 0%, #2A2A3F 100%);
  border-radius: 52px;
  padding: 11px;
  width: 320px;
  position: relative;
  box-shadow:
    0 36px 70px rgba(67, 56, 202, 0.30),
    0 10px 24px rgba(26, 26, 46, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-mock::before,
.phone-mock::after {
  content: "";
  position: absolute;
  background: #0F0F1A;
  border-radius: 2px;
  left: -2px;
}
.phone-mock::before { top: 100px; width: 3px; height: 30px; }
.phone-mock::after  { top: 142px; width: 3px; height: 56px; }
.phone-mock .phone-power {
  position: absolute;
  right: -2px;
  top: 132px;
  width: 3px;
  height: 88px;
  background: #0F0F1A;
  border-radius: 2px;
}
.phone-mock-screen {
  background: var(--white);
  border-radius: 42px;
  padding: 56px 22px 22px;
  position: relative;
  overflow: hidden;
}
.phone-mock-screen::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #0F0F1A;
  border-radius: 999px;
  z-index: 2;
}

/* ====== Sections ====== */
section { padding: 72px 0; }
.section-light { background: var(--lavender-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: 2px solid var(--indigo-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--indigo-500);
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.10);
}
.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: 18px;
  background: var(--grad-brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.22);
}
.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 > :nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
}
.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-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}
.pricing-cards-row .pricing-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-cards-row .pricing-card ul { flex: 1; }
@media (min-width: 880px) {
  .pricing-cards-row {
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 1100px;
    margin: 32px auto 0;
  }
  .pricing-cards-row .pricing-card {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 12px 8px;
    max-width: none;
  }
  .pricing-cards-row .pricing-divider-v {
    background: var(--gray-200);
    width: 1px;
    align-self: stretch;
  }
}
@media (max-width: 879px) {
  .pricing-cards-row .pricing-divider-v { display: none; }
}
.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; }

/* Split section: illustration + text side-by-side */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}
.split-section .split-illustration {
  display: flex;
  justify-content: center;
}
.split-section .split-content h2 { margin-bottom: 16px; }
.split-section .split-content p { color: var(--navy-900); }
@media (min-width: 880px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    text-align: left;
  }
  .split-section .split-illustration { justify-content: flex-start; }
  .split-section.split-reverse .split-illustration { order: 2; justify-content: flex-end; }
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list .check-icon {
  color: var(--green-500);
  font-weight: 800;
}

/* 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;
}
.site-credit-bar {
  background: var(--gray-50);
  padding: 0 0 32px;
}
.site-credit-bar .copyright {
  margin-top: 0;
}
.site-credit-bar a {
  color: var(--gray-500);
  text-decoration: none;
}
.site-credit-bar a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .footer-grid { gap: 10px 24px; }
  .footer-grid a { font-size: 0.9rem; }
  .footer-disclaimer { font-size: 0.8rem; line-height: 1.6; }
  .copyright { font-size: 0.78rem; }
}

/* ====== Test layout (minimal chrome) ====== */
.test-shell-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.test-shell-header .header-inner {
  justify-content: center;
}
body.test-page {
  background: var(--white);
}
body.test-page .site-footer,
body.test-page .site-credit-bar { display: none; }

/* Loader shown after the intro and before step 1 */
.test-loader-wrap {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.test-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.test-loader-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.30);
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.test-loader-mark img { width: 60%; height: auto; filter: brightness(0) invert(1); }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.test-loader-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.test-loader-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  border-radius: 999px;
  animation: loader-fill 1.6s ease-out forwards;
}
@keyframes loader-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
.test-loader p {
  margin: 0;
  color: var(--navy-900);
  font-weight: 600;
}

.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(255, 138, 128, 0.45); }
.sc-2 { border-color: var(--scale-2); background: rgba(255, 193, 120, 0.40); }
.sc-3 { border-color: var(--scale-3); background: rgba(218, 214, 232, 0.55); }
.sc-4 { border-color: var(--scale-4); background: rgba(189, 182, 240, 0.45); }
.sc-5 { border-color: var(--scale-5); background: rgba(124, 107, 242, 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(124, 58, 237, 0.22); }

.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: linear-gradient(135deg, var(--cream-50) 0%, var(--lavender-50) 100%);
  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:
    radial-gradient(800px 400px at 80% 0%, rgba(255, 122, 110, 0.18), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(124, 58, 237, 0.14), transparent 60%),
    var(--cream-50);
  padding: 72px 0 80px;
}
.page-hero h1 { color: var(--navy-900); margin-bottom: 16px; }
.page-hero p { color: var(--navy-900); max-width: 680px; }

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.page-hero-text { flex: 1 1 auto; min-width: 0; }
.faq-hero-art {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.faq-hero-art svg { width: 220px; height: auto; max-width: 100%; }
.faq-hero-art .faq-blob {
  transform-origin: 110px 100px;
  animation: faqBlobPulse 6s ease-in-out infinite;
}
.faq-hero-art .faq-ring {
  transform-origin: 110px 100px;
  animation: faqRingSpin 24s linear infinite;
}
.faq-hero-art .faq-bubble { transform-origin: center; }
.faq-hero-art .faq-bubble-1 { animation: faqBubbleFloat 4.5s ease-in-out infinite; }
.faq-hero-art .faq-bubble-2 { animation: faqBubbleFloat 5.2s ease-in-out infinite -1s; }
.faq-hero-art .faq-bubble-3 { animation: faqBubbleFloat 4.8s ease-in-out infinite -2.2s; }
.faq-hero-art .faq-bubble-4 { animation: faqBubbleFloat 5.6s ease-in-out infinite -3s; }

@keyframes faqBlobPulse {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50%      { transform: scale(1.06); opacity: 0.18; }
}
@keyframes faqRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes faqBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-hero-art .faq-blob,
  .faq-hero-art .faq-ring,
  .faq-hero-art .faq-bubble { animation: none; }
}
@media (max-width: 760px) {
  .page-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .page-hero-text { width: 100%; }
  .page-hero p { margin-left: auto; margin-right: auto; }
  .faq-hero-art { align-self: center; }
  .faq-hero-art svg { width: 170px; }
}

.faq-contact-cta {
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cream-50) 0%, var(--lavender-50) 100%);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.faq-contact-cta p {
  margin: 0;
  color: var(--navy-900);
  font-weight: 600;
}
.faq-contact-cta .btn { flex-shrink: 0; }

.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: linear-gradient(135deg, var(--cream-50) 0%, var(--lavender-50) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  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; }
