/* ============================================
   ORDO — Design System "Pharma Premium"
   ============================================ */

:root {
  /* Couleurs principales */
  --bg:          #FCFBF8;   /* Ivoire crème (fond principal) */
  --bg-alt:      #F5F2EB;   /* Crème légèrement plus chaud */
  --surface:     #FFFFFF;
  --surface-2:   #F9F7F1;

  --sage:        #3E5C4F;   /* Vert sauge profond (brand) */
  --sage-dark:   #2F4A3E;
  --sage-light:  #C8E0D4;   /* Menthe douce */
  --sage-xlight: #E8F1EC;

  --gold:        #B8934A;   /* Doré mat (accent luxe, badges premium) */
  --gold-soft:   #D4B778;

  --ink:         #1F2A24;   /* Charbon (texte principal) */
  --ink-soft:    #394A42;
  --muted:       #6B7A72;   /* Gris sauge secondaire */
  --line:        #E2DDD0;   /* Lignes, séparateurs */
  --line-soft:   #EFEAE0;

  /* Typo */
  --font-serif:  'Fraunces', 'Noto Serif', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Shadows, subtils et teintés sauge */
  --shadow-xs: 0 1px 2px rgba(62, 92, 79, 0.04);
  --shadow-sm: 0 2px 8px rgba(62, 92, 79, 0.06), 0 1px 2px rgba(62, 92, 79, 0.04);
  --shadow-md: 0 8px 24px rgba(62, 92, 79, 0.08), 0 2px 6px rgba(62, 92, 79, 0.05);
  --shadow-lg: 0 24px 48px rgba(62, 92, 79, 0.12), 0 4px 12px rgba(62, 92, 79, 0.06);

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }

/* ============ LAYOUT ============ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

.section {
  padding: 96px 0;
}
.section--cream { background: var(--bg-alt); }
.section--sage { background: var(--sage); color: #F4EEDD; }
.section--sage .section__title,
.section--sage h3 { color: #FAF6E7; }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section__head--left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.section--sage .eyebrow { color: var(--sage-light); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section__title em {
  font-style: italic;
  color: var(--sage);
  font-weight: 400;
}

.section__sub {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.section--sage .section__sub { color: #D9D0B9; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.logo__mark {
  width: 28px;
  height: 28px;
  color: var(--sage);
}
.logo__text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--sage); }
.nav__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 840px) {
  .nav__links { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: all .22s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--sage);
  color: #FAF6E7;
}
.btn--primary:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--sage);
  color: var(--sage);
}
.btn--lg {
  padding: 16px 30px;
  font-size: 15px;
}

/* ============ HERO ============ */
.hero {
  padding: 96px 0 120px;
  background:
    radial-gradient(900px 400px at 85% 20%, rgba(200,224,212,.4), transparent 60%),
    radial-gradient(600px 300px at 15% 80%, rgba(184,147,74,.06), transparent 60%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero__content {
  max-width: 560px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}
.pill__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B9A57;
  box-shadow: 0 0 0 3px rgba(59, 154, 87, 0.2);
}
.hero__title {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  color: var(--sage);
  font-weight: 400;
}
.hero__sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item__num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.trust-item__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual — carte d'ordonnance stylisée */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.prescription-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  transition: transform .5s var(--ease);
}
.prescription-card:hover { transform: rotate(0) translateY(-4px); }

.prescription-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.rx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage);
  color: #FAF6E7;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  flex-shrink: 0;
}
.prescription-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.prescription-card__sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.badge {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
}
.badge--gold {
  background: linear-gradient(135deg, #E5CE94, #B8934A);
  color: #3A2C12;
}

.prescription-card__body {
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prescription-line {
  height: 12px;
  background: var(--surface-2);
  border-radius: 4px;
}
.prescription-line--short { width: 60%; }
.prescription-line--shortest { width: 30%; }

.prescription-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.signature__line {
  display: inline-block;
  width: 80px;
  height: 2px;
  background: var(--sage);
  margin-bottom: 8px;
}
.signature__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.signature__rpps {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.qr-placeholder {
  width: 56px;
  height: 56px;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 6px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  border-radius: 6px;
  opacity: 0.85;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
  .hero__trust { gap: 28px; flex-wrap: wrap; }
}

/* ============ PATHO GRID ============ */
.patho-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .patho-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .patho-grid { grid-template-columns: 1fr; } }

.patho-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  transition: all .3s var(--ease);
  color: var(--ink);
  min-height: 280px;
}
.patho-card:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}
.patho-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--sage-xlight);
  color: var(--sage);
  margin-bottom: 24px;
}
.patho-card__icon--muted { background: var(--surface-2); color: var(--muted); }
.patho-card__icon svg { width: 22px; height: 22px; }
.patho-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.patho-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 24px;
}
.patho-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.patho-card__price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.patho-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
}
.patho-card:hover .patho-card__cta { color: var(--sage-dark); }

.section__subeyebrow {
  display: block;
  text-align: center;
  margin: -40px 0 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.patho-divider {
  text-align: center;
  max-width: 620px;
  margin: 72px auto 36px;
  padding-top: 56px;
  border-top: 1px solid var(--line-soft);
}
.patho-divider h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 16px 0 14px;
  line-height: 1.2;
}
.patho-divider p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

.patho-card--other {
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  border-style: dashed;
}
.patho-card--other:hover { border-color: var(--gold); }
.patho-card__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.patho-card__link:hover { color: var(--gold); }

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.step {
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  position: relative;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: #FAF6E7;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}
.step__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.step__time {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sage-xlight);
  color: var(--sage);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ============ TRUST GRID ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; gap: 36px; } }

.trust-block {
  color: #F4EEDD;
}
.trust-block__icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(250, 246, 231, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(250, 246, 231, 0.15);
}
.trust-block h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #FAF6E7;
}
.trust-block p {
  font-size: 15px;
  line-height: 1.6;
  color: #D9D0B9;
}

/* ============ NOTICE ============ */
.notice {
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--sage-xlight), var(--surface));
  border: 1px solid var(--sage-light);
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}
.notice::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  opacity: 0.2;
}
.notice__content {
  max-width: 640px;
  position: relative;
}
.notice__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.notice__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.notice__text strong { color: var(--ink); }

/* ============ FAQ ============ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}
.faq-item {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  transition: all .2s var(--ease);
}
.faq-item[open] {
  border-color: var(--sage);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 300;
  color: var(--sage);
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: #D9D4C1;
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(217, 212, 193, 0.15);
}
@media (max-width: 800px) { .footer__inner { grid-template-columns: 1fr; gap: 40px; } }

.footer__brand { max-width: 340px; }
.logo--footer { color: #F4EEDD; }
.logo--footer .logo__mark { color: var(--sage-light); }
.footer__tag {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #9FA095;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 560px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

.footer__col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: #F4EEDD;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: #9FA095;
  padding: 4px 0;
}
.footer__col a:hover { color: var(--sage-light); }

.footer__legal {
  padding: 24px 0;
  font-size: 12px;
  color: #9FA095;
  letter-spacing: 0.02em;
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   QUESTIONNAIRE / PAYMENT / CONFIRMATION
   ============================================ */

.body--questionnaire,
.body--payment,
.body--confirmation {
  background: var(--bg);
}

.nav--thin {
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav--thin .nav__inner { height: 64px; }
.nav__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.nav__save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-xlight);
}

.q-main { padding: 0 0 80px; min-height: calc(100vh - 64px); }

.q-progress {
  position: sticky;
  top: 64px;
  background: var(--bg);
  padding: 16px 0 12px;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
}
.q-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.q-progress__pathology { color: var(--sage); }
.q-progress__bar {
  height: 4px;
  background: var(--line-soft);
  border-radius: 100px;
  overflow: hidden;
}
.q-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  transition: width .4s var(--ease);
  border-radius: 100px;
}

.q-container { padding-top: 64px; }

.q-screen[aria-hidden="true"] { display: none; }
.q-screen { animation: qFadeIn .35s var(--ease); }
@keyframes qFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
}
.q-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
}
.q-fineprint {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 16px 20px;
  background: var(--surface-2);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.q-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
@media (max-width: 560px) { .q-summary-grid { grid-template-columns: 1fr; gap: 12px; } }
.q-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.q-summary-item__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.q-summary-item__value {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.q-step-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.q-question {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
  max-width: 580px;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.q-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.q-option:hover {
  border-color: var(--sage);
  background: var(--sage-xlight);
}
.q-option input { accent-color: var(--sage); transform: scale(1.2); }
.q-option input:checked + .q-option__label { color: var(--sage-dark); font-weight: 600; }
.q-option:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-xlight);
  box-shadow: 0 0 0 3px rgba(62, 92, 79, 0.08);
}
.q-option__label {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 500;
  flex: 1;
}
.q-option--consent {
  align-items: flex-start;
  padding: 20px 22px;
}
.q-option--consent .q-option__label { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.q-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 560px) { .q-fields { grid-template-columns: 1fr; } }
.q-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.q-field--single { max-width: 280px; }
.q-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.q-field input {
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease);
  width: 100%;
}
.q-field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(62, 92, 79, 0.1);
}

.q-shake { animation: qShake .4s; }
@keyframes qShake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.q-block {
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
}
.q-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  background: #FFF3E7;
  color: #B8763A;
  border-radius: 50%;
}
.q-block__icon svg { width: 32px; height: 32px; }
.q-block__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.q-block__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}
.q-block__reasons {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.q-block__reasons li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}
.q-block__reasons li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}
.q-block__note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
}

.q-review-list {
  margin: 32px 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.q-review-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
@media (max-width: 560px) { .q-review-row { grid-template-columns: 1fr; gap: 4px; } }
.q-review-row:last-child { border-bottom: none; }
.q-review-row__q { color: var(--muted); line-height: 1.5; }
.q-review-row__a { color: var(--ink); font-weight: 500; line-height: 1.5; }

.q-review-total {
  padding: 24px 28px;
  background: var(--sage-xlight);
  border: 1px solid var(--sage-light);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}
.q-review-total__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.q-review-total__price {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.01em;
}
.q-review-total__note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ============ PAYMENT PAGE ============ */

.pay-main {
  padding: 64px 0 120px;
  min-height: calc(100vh - 64px);
}
.pay-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; gap: 32px; } }

.pay-summary {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.pay-summary__eyebrow { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.pay-summary__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.pay-summary__sub { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pay-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 20px;
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.pay-summary__label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.pay-summary__price {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.01em;
}

.pay-includes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--sage-xlight);
  border-radius: var(--r-md);
}
.pay-includes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pay-includes li::before {
  content: '✓';
  color: var(--sage);
  font-weight: bold;
  flex-shrink: 0;
}

.pay-cta {
  padding: 40px 0;
}
.pay-cta h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.pay-cta__sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.pay-methods {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
  align-items: center;
}
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.pay-method__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--sage);
}

.pay-status {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #FFF8E8;
  border: 1px solid #F3DEB3;
  border-radius: var(--r-sm);
}
.pay-status:empty { display: none; }

.pay-secure {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* ============ CONFIRMATION ============ */
.confirm-main {
  padding: 80px 0 120px;
  min-height: calc(100vh - 64px);
}
.confirm-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--sage);
  color: #FAF6E7;
  margin-bottom: 24px;
  animation: popIn .5s var(--ease);
  box-shadow: 0 12px 32px rgba(62, 92, 79, 0.2);
}
@keyframes popIn {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-check svg { width: 40px; height: 40px; }
.confirm-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.confirm-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  max-width: 560px;
  margin: 48px auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.timeline__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}
.timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -12px;
  width: 2px;
  background: var(--line-soft);
}
.timeline__item--done::after { background: var(--sage); }
.timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.timeline__item--done .timeline__dot {
  background: var(--sage);
  color: #FAF6E7;
}
.timeline__item--current .timeline__dot {
  background: var(--sage-light);
  color: var(--sage-dark);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(62,92,79,.3); }
  50%     { box-shadow: 0 0 0 10px rgba(62,92,79,0); }
}
.timeline__content {
  padding-top: 4px;
}
.timeline__label {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.timeline__text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.confirm-details {
  max-width: 560px;
  margin: 32px auto;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.confirm-details strong { color: var(--ink); }

/* ============ LEGAL PAGES ============ */
.legal-main {
  padding: 56px 0 120px;
}
.legal-back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal-back:hover { color: var(--sage); }
.legal-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 12px 0 24px;
}
.legal-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 48px;
  font-style: italic;
}
.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.legal-section:last-child { border-bottom: none; }
.legal-section--update { font-size: 13px; color: var(--muted); text-align: center; padding-top: 48px; }
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-list {
  margin: 14px 0 16px;
  padding-left: 0;
}
.legal-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.legal-list li strong { color: var(--ink); }
.legal-section a { color: var(--sage); border-bottom: 1px solid currentColor; }
.legal-section a:hover { color: var(--sage-dark); }

