/* ── Tokens: Cool Mist + Dusty Plum ── */
:root {
  --bg:           #ECEEF5;
  --bg-alt:       #F5F5FA;
  --surface:      #FFFFFF;
  --border:       #D4D1E8;
  --border-soft:  #E5E3F2;

  --fg:           #1C1831;
  --fg-muted:     #5C5773;
  --fg-subtle:    #9490AB;

  --accent:       #8A5F98;
  --accent-dark:  #6E4B7A;
  --accent-light: #F2ECFA;
  --accent-mid:   #B899C7;

  --sage:         #587A6A;
  --sage-light:   #E6F2EC;
  --sage-dark:    #3E5C4D;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --sh-sm: 0 1px 4px rgba(28,24,49,.07), 0 1px 2px rgba(28,24,49,.04);
  --sh-md: 0 4px 18px rgba(28,24,49,.10), 0 2px 6px rgba(28,24,49,.05);
  --sh-lg: 0 20px 64px rgba(28,24,49,.13), 0 8px 20px rgba(28,24,49,.07);

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #13101E;
    --bg-alt:       #1A1628;
    --surface:      #211D30;
    --border:       #2E2944;
    --border-soft:  #251F38;
    --fg:           #EDE9F8;
    --fg-muted:     #9E9AB8;
    --fg-subtle:    #625D7A;
    --accent:       #B085C4;
    --accent-dark:  #C89AD4;
    --accent-light: #2A1F3A;
    --accent-mid:   #7050A8;
    --sage:         #7AB898;
    --sage-light:   #0F2920;
    --sage-dark:    #5A9B7A;
    --sh-sm: 0 1px 4px rgba(0,0,0,.35);
    --sh-md: 0 4px 18px rgba(0,0,0,.45);
    --sh-lg: 0 20px 64px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:           #13101E;
  --bg-alt:       #1A1628;
  --surface:      #211D30;
  --border:       #2E2944;
  --border-soft:  #251F38;
  --fg:           #EDE9F8;
  --fg-muted:     #9E9AB8;
  --fg-subtle:    #625D7A;
  --accent:       #B085C4;
  --accent-dark:  #C89AD4;
  --accent-light: #2A1F3A;
  --accent-mid:   #7050A8;
  --sage:         #7AB898;
  --sage-light:   #0F2920;
  --sage-dark:    #5A9B7A;
  --sh-sm: 0 1px 4px rgba(0,0,0,.35);
  --sh-md: 0 4px 18px rgba(0,0,0,.45);
  --sh-lg: 0 20px 64px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left,  0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ── Scroll reveal ── */
.sr {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.sr.vis { opacity: 1; transform: none; }
.sr.d1 { transition-delay: .08s; }
.sr.d2 { transition-delay: .16s; }
.sr.d3 { transition-delay: .24s; }
.sr.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1; transform: none; transition: none; }
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo em { font-style: italic; color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-cta:active { transform: scale(.98); }

/* ── Hero ── */
.hero {
  padding-block: 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left,  0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 72px;
  align-items: center;
}
.hero-inner > * { min-width: 0; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 7.5vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--fg);
  margin-bottom: 22px;
}
.hero-h1 em { font-style: italic; color: var(--accent); }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 46ch;
  line-height: 1.65;
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 22px rgba(138,95,152,.32);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 30px rgba(138,95,152,.42);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(.98); }

/* Ebook cover */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-cover {
  display: block;
  width: min(100%, 234px);
  height: auto;
  border-radius: 3px 14px 14px 3px;
  box-shadow: 5px 0 0 rgba(0,0,0,.18), var(--sh-lg),
              inset -1px 0 0 rgba(255,255,255,.07);
}

/* ── Trust strip ── */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding-block: 15px;
}
.trust-row {
  max-width: 1160px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left,  0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-muted);
}
.trust-ic { width: 15px; height: 15px; color: var(--sage); flex-shrink: 0; }
.trust-dot { color: var(--border); font-size: 18px; line-height: 1; }

/* ── Editorial ── */
.s-editorial { padding-block: 108px; background: var(--bg-alt); }
.editorial-q {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 50px);
  font-weight: 300;
  font-style: italic;
  color: var(--fg);
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 820px;
  margin-bottom: 40px;
}
.editorial-body { font-size: 17px; color: var(--fg-muted); max-width: 60ch; line-height: 1.78; }
.editorial-body p { margin-bottom: 16px; }
.editorial-body p:last-child { margin-bottom: 0; }

/* ── Tests ── */
.s-tests { padding-block: 108px; background: var(--bg); }
.s-head { margin-bottom: 52px; }
.s-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.12;
  margin-bottom: 14px;
  text-wrap: balance;
}
.s-lead { font-size: 16.5px; color: var(--fg-muted); max-width: 55ch; line-height: 1.65; }

.tests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.test-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  min-width: 0;
  transition: box-shadow .25s, transform .25s;
}
.test-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.test-card:nth-child(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 32px;
  align-items: start;
  background: linear-gradient(130deg, var(--accent-light) 0%, var(--surface) 55%);
}
.test-card:nth-child(2) { background: linear-gradient(130deg, var(--sage-light) 0%, var(--surface) 60%); }
.test-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  color: var(--accent-mid);
  opacity: .35;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.test-card:nth-child(1) .test-num { font-size: 80px; }
.test-body { min-width: 0; }
.test-h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 10px;
  text-wrap: balance;
}
.test-card:nth-child(1) .test-h3 { font-size: 25px; }
.test-p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.65; }

/* ── After tests ── */
.s-after { padding-block: 108px; background: var(--bg-alt); }
.after-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.after-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.18;
  margin-bottom: 18px;
}
.after-lead { font-size: 16px; color: var(--fg-muted); line-height: 1.72; }
.after-items { display: flex; flex-direction: column; gap: 13px; }
.after-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--fg);
  line-height: 1.55;
}
.after-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }

/* ── For whom ── */
.s-forwhom { padding-block: 108px; background: var(--bg); }
.forwhom-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 72px; align-items: start; }
.forwhom-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.18;
  margin-bottom: 36px;
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--fg); line-height: 1.6; }
.chk { width: 20px; height: 20px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.chk svg { width: 10px; height: 10px; color: var(--sage); }
.forwhom-note {
  padding: 15px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.forwhom-note strong { color: var(--fg); font-weight: 500; }
.forwhom-img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--accent-light); position: sticky; top: 88px; }
.forwhom-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04); }

/* ── Author ── */
.s-author { padding-block: 108px; background: var(--bg-alt); }
.author-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 72px; align-items: center; }
.author-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: var(--fg);
  line-height: 1.18;
  margin-bottom: 28px;
}
.author-h2 em { font-style: italic; color: var(--accent); }
.author-body { font-size: 16px; color: var(--fg-muted); line-height: 1.78; }
.author-body p { margin-bottom: 18px; }
.author-body p:last-child { margin-bottom: 0; }
.author-sig { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--fg-muted); }
.author-photo-col { position: relative; display: flex; justify-content: center; }
.author-photo { width: min(300px, 100%); aspect-ratio: 15 / 19; border-radius: 50% 50% var(--r-xl) var(--r-xl); overflow: hidden; background: var(--accent-light); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.05); }
.author-badge { position: absolute; bottom: -14px; right: 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r); padding: 11px 16px; box-shadow: var(--sh-sm); }
.author-badge-name { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.author-badge-sub { font-size: 11px; color: var(--fg-subtle); }

/* ── Testimonials ── */
.s-testi { padding-block: 108px; background: var(--bg); }
.testi-h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 46px); font-weight: 300; color: var(--fg); line-height: 1.18; margin-bottom: 48px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testi-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 28px; min-width: 0; display: flex; flex-direction: column; }
.testi-marks { font-family: var(--font-display); font-size: 44px; color: var(--accent-mid); opacity: .35; line-height: .8; margin-bottom: 14px; }
.testi-q { font-size: 15px; font-style: italic; color: var(--fg); line-height: 1.72; flex: 1; margin-bottom: 20px; }
.testi-attr { font-size: 12.5px; font-weight: 500; color: var(--fg-subtle); border-top: 1px solid var(--border-soft); padding-top: 14px; }
.testi-disclaimer { margin-top: 32px; text-align: center; font-size: 12px; color: var(--fg-subtle); font-style: italic; }

/* ── CTA section ── */
.s-cta {
  padding-block: 108px;
  background: linear-gradient(140deg, #231940 0%, #1C1831 50%, #12101E 100%);
  position: relative;
  overflow: hidden;
}
.s-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -15%;
  width: 55%; height: 160%;
  background: radial-gradient(ellipse, rgba(138,95,152,.14) 0%, transparent 68%);
  pointer-events: none;
}
.cta-inner { max-width: 580px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); text-align: center; position: relative; }
.cta-h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); font-weight: 300; color: rgba(255,255,255,.95); line-height: 1.12; margin-bottom: 14px; }
.cta-h2 em { font-style: italic; color: var(--accent-mid); }
.cta-sub { font-size: 16px; color: rgba(255,255,255,.48); line-height: 1.65; max-width: 42ch; margin: 0 auto 48px; }
.offer-box { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-xl); padding: 36px; margin-bottom: 24px; backdrop-filter: blur(10px); }
.offer-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.offer-li { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.70); }
.offer-chk { width: 18px; height: 18px; border-radius: 50%; background: rgba(90,133,116,.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.offer-chk svg { width: 10px; height: 10px; color: #7AB898; }
.offer-price { font-family: var(--font-display); font-size: 60px; font-weight: 400; color: #fff; line-height: 1; margin-bottom: 4px; }
.offer-label { font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 24px; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 600;
  padding: 18px 32px; border-radius: var(--r-pill); border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 30px rgba(138,95,152,.40); text-decoration: none;
}
.btn-cta:hover { background: #9B70AC; box-shadow: 0 8px 38px rgba(138,95,152,.50); transform: translateY(-1px); }
.btn-cta:active { transform: scale(.98); }
.guarantee { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.65; margin-top: 18px; }
.guarantee strong { color: rgba(255,255,255,.60); }

/* ── Footer ── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding-block: 36px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-logo { font-family: var(--font-display); font-size: 17px; color: var(--fg-muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--fg-subtle); transition: color .15s; }
.footer-link:hover { color: var(--fg-muted); }
.footer-disc { width: 100%; font-size: 11.5px; color: var(--fg-subtle); line-height: 1.65; border-top: 1px solid var(--border-soft); padding-top: 16px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { justify-content: center; }
  .tests-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-card:nth-child(1) { grid-column: 1/-1; }
  .after-inner,
  .forwhom-inner,
  .author-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .forwhom-img { display: none; }
  .author-photo-col { justify-content: center; }
  .testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero { padding-block: 52px; }
  .wrap,
  .hero-inner,
  .trust-row,
  .nav-inner,
  .footer-inner,
  .cta-inner {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .s-editorial,.s-tests,.s-after,.s-forwhom,.s-author,.s-testi,.s-cta { padding-block: 72px; }
  .tests-grid { grid-template-columns: minmax(0, 1fr); }
  .test-card:nth-child(1) { display: flex; flex-direction: column; }
  .testi-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-box { padding: 24px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 12px; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .hero-h1 { font-size: clamp(44px, 13vw, 50px); }
  .btn-primary { padding: 14px 22px; }
  .test-card,
  .testi-card { padding: 24px 20px; }
  .offer-box { padding: 22px 16px; }
  .btn-cta { padding: 16px 18px; }
}
