:root {
  --bg:          #F5F1E8;
  --bg-alt:      #F0EBDD;
  --surface:     #FAF6ED;
  --surface-alt: #EDE7DB;
  --border:      #D9CFB8;
  --border-soft: rgba(217,207,184,0.55);
  --text:        #2A2520;
  --headline:    #1F1A15;
  --muted:       #6B6156;
  --subtle:      #9A8F80;
  --accent:      #4A6FBF;
  --accent-soft: #2F4A8C;
  --cta:         #2F4A8C;
  --cta-hover:   #1F3470;
  --success:     #3B7A5A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none; }


.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 900px 500px at 50% -60px, rgba(47,74,140,0.05) 0%, transparent 70%);
}

/* ── LANDING ── */
#landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 120px;
}

nav {
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--headline);
  letter-spacing: 0.02em;
}
.logo em { color: var(--accent-soft); font-style: italic; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-lang:hover { color: var(--accent-soft); border-color: rgba(47,74,140,0.3); }

.nav-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ── HERO ── */
.hero {
  width: 100%;
  max-width: 700px;
  text-align: center;
  padding: 80px 0 56px;
  animation: fadeUp 0.7s ease both;
}

.hero-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 36px;
  position: relative;
}

.star-core {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 10px rgba(47,74,140,0.45), 0 0 24px rgba(47,74,140,0.18);
  position: relative;
  z-index: 2;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 8px rgba(47,74,140,0.35), 0 0 20px rgba(47,74,140,0.12); opacity: 0.85; }
  50%       { box-shadow: 0 0 14px rgba(47,74,140,0.55), 0 0 36px rgba(47,74,140,0.22); opacity: 1; }
}

.halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(47,74,140,0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: halo-fade 4s ease-in-out infinite;
}
.halo-1 { width: 24px; height: 24px; animation-delay: 0s; }
.halo-2 { width: 40px; height: 40px; animation-delay: 0.4s; border-color: rgba(47,74,140,0.08); }
.halo-3 { width: 56px; height: 56px; animation-delay: 0.8s; border-color: rgba(47,74,140,0.05); }

@keyframes halo-fade {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  color: var(--headline);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-headline em { color: var(--accent-soft); font-style: italic; }

.hero-subheadline {
  font-size: 18px;
  color: var(--accent-soft);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
  margin-bottom: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.hero-garance {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent-soft);
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0.9;
}

.microline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 36px;
}
.microline-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.btn-cta {
  padding: 15px 40px;
  background: var(--cta);
  color: #FAF6ED;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 32px rgba(47,74,140,0.22);
  transform: translateY(-1px);
}

.cta-note { font-size: 12px; color: var(--subtle); }

/* ── SECTION DIVIDER ── */
.section-divider {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease 0.12s both;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.divider-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--subtle);
  white-space: nowrap;
}

/* ── FEATURES ── */
.features {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  animation: fadeUp 0.7s ease 0.15s both;
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--headline);
  margin-bottom: 10px;
  line-height: 1.4;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TRUST ROW ── */
.trust-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  animation: fadeUp 0.7s ease 0.25s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.trust-item svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

.founders-note {
  margin-top: 56px;
  font-size: 12px;
  color: var(--subtle);
  text-align: center;
  animation: fadeUp 0.7s ease 0.35s both;
}

/* ── BOTTOM CTA ── */
.cta-bottom {
  text-align: center;
  margin-top: 56px;
  animation: fadeUp 0.7s ease 0.2s both;
}
.cta-bottom .cta-note {
  display: block;
  margin-top: 14px;
}

/* ── FOOTER ── */
.landing-footer {
  width: 100%;
  max-width: 960px;
  margin-top: 80px;
  padding: 64px 0 48px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  animation: fadeUp 0.7s ease 0.4s both;
}

.footer-voice {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--accent-soft);
  line-height: 1.6;
  margin-bottom: 28px;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--muted); }

.footer-copy {
  font-size: 12px;
  color: var(--subtle);
  opacity: 0.7;
}

/* ── ONBOARDING OVERLAY ── */
#onboarding {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 24px 60px;
}
#onboarding.open {
  display: flex;
  animation: overlayIn 0.4s ease both;
}

@keyframes overlayIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ob-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 30%, rgba(47,74,140,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ob-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding-top: 8px;
}

.ob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.ob-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--headline);
}
.ob-logo em { color: var(--accent-soft); font-style: italic; }

.btn-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-back:hover { color: var(--headline); border-color: rgba(47,74,140,0.3); }

.progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 40px;
}
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: var(--border);
  transition: all 0.3s ease;
}
.progress-dot.active { width: 24px; background: var(--accent-soft); }
.progress-dot.done { background: var(--success); }

.ob-screen {
  display: none;
  animation: fadeUp 0.4s ease both;
}
.ob-screen.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.garance-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.garance-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EDE7DB, #D9CFB8);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--accent-soft);
  font-style: italic;
}

.garance-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 16px 16px 16px;
  padding: 16px 18px;
  flex: 1;
}

.garance-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.garance-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--headline);
  line-height: 1.5;
  font-style: italic;
}

.garance-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
  font-style: normal;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.option:hover {
  border-color: rgba(47,74,140,0.30);
  background: var(--surface-alt);
}
.option.selected {
  border-color: var(--accent-soft);
  background: rgba(47,74,140,0.06);
}

.option-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.option.selected .option-icon {
  background: rgba(47,74,140,0.10);
  border-color: rgba(47,74,140,0.25);
}

.option-text { flex: 1; }
.option-label { font-size: 14px; font-weight: 500; color: var(--headline); margin-bottom: 2px; }
.option-desc  { font-size: 12px; color: var(--muted); }

.option-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.option.selected .option-check {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.option.selected .option-check::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FAF6ED;
}
.options.multi .option.selected .option-check { border-radius: 4px; }

.option-group { margin-bottom: 8px; }
.option-group .option { margin-bottom: 0; border-radius: 14px; }
.option-group.expanded .option { border-radius: 14px 14px 0 0; }

.subroles {
  display: none;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 18px 16px;
  background: rgba(47,74,140,0.04);
  border: 1px solid var(--border-soft);
  border-top: none;
  border-radius: 0 0 14px 14px;
  margin-top: -8px;
  animation: fadeUp 0.2s ease both;
}
.subroles.open { display: flex; padding-top: 16px; }
.subrole-chip {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.subrole-chip:hover { border-color: rgba(47,74,140,0.30); color: var(--headline); }
.subrole-chip.selected {
  background: rgba(47,74,140,0.10);
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag-chip {
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tag-chip:hover { border-color: rgba(47,74,140,0.30); color: var(--headline); }
.tag-chip.selected {
  background: rgba(47,74,140,0.08);
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.input-wrap { margin-bottom: 24px; }
.text-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--headline);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input::placeholder { color: var(--subtle); }
.text-input:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(47,74,140,0.10);
}

.btn-next {
  width: 100%;
  padding: 14px;
  background: var(--cta);
  color: #FAF6ED;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  margin-bottom: 10px;
}
.btn-next:hover:not(:disabled) {
  background: var(--cta-hover);
  box-shadow: 0 6px 24px rgba(47,74,140,0.22);
}
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-skip {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--subtle);
  border: none;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: color 0.15s;
  text-align: center;
}
.btn-skip:hover { color: var(--muted); }

.step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
  margin-bottom: 28px;
}

.done-center { text-align: center; }

.done-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(59,122,90,0.10);
  border: 1px solid rgba(59,122,90,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.done-icon svg { width: 28px; height: 28px; color: var(--success); }

.done-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--headline);
  margin-bottom: 10px;
  line-height: 1.3;
}

.done-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.done-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  margin-bottom: 28px;
}

.done-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.done-row:last-child { border-bottom: none; }
.done-row-label { color: var(--subtle); min-width: 90px; }
.done-row-value { color: var(--headline); font-weight: 500; }

.pricing-note {
  background: rgba(47,74,140,0.05);
  border: 1px solid rgba(47,74,140,0.18);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}
.pricing-note strong { color: var(--accent-soft); font-weight: 600; }

.ob-error {
  color: #B1442B;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
}
