:root, [data-theme="light"] {
  --bg: #F6ECE8;
  --surface: #FBF6F3;
  --surface-2: #F1E2DC;
  --ink: #261C1E;
  --muted: #6B5A5B;
  --line: rgba(38, 28, 30, 0.12);
  --accent: #A8152B;
  --accent-hover: #86101F;
  --on-accent: #FFF8F5;
  --gold: #B88E34;
  --band: #2A1C1F;
  --band-ink: #F6ECE8;
  --shadow: 0 1px 2px rgba(80, 30, 35, .06), 0 12px 32px rgba(80, 30, 35, .08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --text-hero: clamp(2.5rem, 1rem + 4.6vw, 5.25rem);

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
  --bg: #1A1314;
  --surface: #221A1B;
  --surface-2: #2B2122;
  --ink: #F1E6E2;
  --muted: #B7A6A5;
  --line: rgba(241, 230, 226, 0.12);
  --accent: #E0566A;
  --accent-hover: #EB7586;
  --on-accent: #1A1314;
  --gold: #D8B160;
  --band: #2E2022;
  --band-ink: #F6ECE8;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow--light { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--text-base); }
.btn--light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn--light:hover { background: #fff; border-color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.nav { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: var(--text-sm); color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header nav { margin-left: auto; }
.header__actions { display: flex; align-items: center; gap: .75rem; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: transparent; color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, transparent 68%); }
.hero__content { position: relative; padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-hero); line-height: 1.04; letter-spacing: -0.015em; max-width: 11.5ch; }
.hero h1 em { display: block; color: var(--accent); font-style: italic; margin-top: .15em; }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); max-width: 34ch; margin-top: 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .btn--ghost { background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* Story */
.story { padding-block: clamp(5rem, 10vw, 9rem); }
.story__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story__img img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story__img { margin: 0; }
.story h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.18; margin-bottom: 1.5rem; max-width: 22ch; }
.story__text > p { color: var(--muted); max-width: 56ch; }
.pull { margin: 2.25rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--line); }
.pull p { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.4; color: var(--ink); margin: 0; max-width: 32ch; }

/* Product */
.product { background: var(--surface); padding-block: clamp(4.5rem, 9vw, 8rem); border-block: 1px solid var(--line); }
.product__grid { display: grid; grid-template-columns: 6fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.product h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; }
.product__sub { color: var(--muted); margin-top: .75rem; font-size: var(--text-base); }
.inside { list-style: none; counter-reset: i; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.inside li { counter-increment: i; position: relative; padding-left: 2.5rem; color: var(--muted); }
.inside li::before { content: counter(i, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 600 var(--text-xs)/1.6 var(--font-body); color: var(--accent); letter-spacing: .05em; }
.inside strong { color: var(--ink); font-weight: 600; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.price { display: grid; }
.price__amt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.price__note { font-size: var(--text-xs); color: var(--muted); margin-top: .4rem; }
.product__img { margin: 0; }
.product__img img { border-radius: var(--r-lg); box-shadow: var(--shadow); }

.notice { margin-top: 1.25rem; font-size: var(--text-sm); color: var(--ink); background: var(--surface-2); padding: .9rem 1.1rem; border-radius: var(--r-md); }
.notice a { color: var(--accent); font-weight: 600; }
.notice--center { max-width: 640px; margin-inline: auto; text-align: center; margin-top: 2rem; }

/* Steps */
.steps { padding-block: clamp(4rem, 7vw, 6rem); }
.steps__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); margin-bottom: 2.5rem; }
.steps__row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.step { padding: 1.75rem 2rem 0 0; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--line); }
.step__n { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--accent); }
.step h3 { font-size: var(--text-lg); font-weight: 600; margin: .5rem 0 .5rem; }
.step p { color: var(--muted); margin: 0; max-width: 32ch; }

/* Library */
.library { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--surface-2); }
.library__head { margin-bottom: 2.5rem; }
.library h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.library__grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-bottom: .75rem; }
.card p { color: var(--muted); }
.card--feature { grid-row: span 2; background: var(--band); color: var(--band-ink); border-color: transparent; }
.card--feature h3 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
.card--feature p { color: color-mix(in srgb, var(--band-ink) 78%, transparent); max-width: 44ch; }
.card--feature .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.card--feature .btn:hover { background: #fff; }
.badge { display: inline-block; align-self: flex-start; font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: .5rem 0 2rem; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75rem; height: .4rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.card--feature .card__foot { border-top-color: rgba(246, 236, 232, .16); }
.card__price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; font-variant-numeric: lining-nums; }

/* Opt-in */
.optin { background: var(--band); color: var(--band-ink); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.optin__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.optin h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); margin-bottom: 1rem; }
.optin__inner > div > p:not(.eyebrow) { color: color-mix(in srgb, var(--band-ink) 78%, transparent); max-width: 44ch; }
.form { display: grid; gap: 1rem; background: rgba(246, 236, 232, .05); border: 1px solid rgba(246, 236, 232, .14); padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-lg); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field input { min-height: 48px; padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid rgba(246, 236, 232, .25); background: rgba(246, 236, 232, .06); color: var(--band-ink); font: inherit; font-size: var(--text-base); }
.field input::placeholder { color: rgba(246, 236, 232, .6); }
.field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #F08A98; }
.form__msg { margin: 0; font-size: var(--text-sm); min-height: 1.2em; }
.form__msg.is-error { color: #F7A9B4; }
.form__msg.is-ok { color: var(--gold); }
.form__fine { margin: 0; font-size: var(--text-xs); color: rgba(246, 236, 232, .65); }

/* FAQ */
.faq { padding-block: clamp(4.5rem, 9vw, 8rem); }
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 5rem); }
.faq h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; font-weight: 600; font-size: var(--text-base); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.35rem 0; margin: 0; max-width: 62ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem 2rem; align-items: center; }
.footer__tag { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.footer__links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer__links a { font-size: var(--text-sm); color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy { grid-column: 1 / -1; margin: 1rem 0 0; font-size: var(--text-xs); color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .story__grid, .product__grid, .optin__inner, .faq__grid { grid-template-columns: 1fr; }
  .story__img { max-width: 520px; }
  .product__img { order: -1; }
  .library__grid { grid-template-columns: 1fr; }
  .card--feature { grid-row: auto; }
  .steps__row { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; align-items: end; }
  .hero__media { position: relative; height: 46vh; }
  .hero__media::after { background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
  .hero { display: block; }
  .hero__content { padding-block: 1.5rem 3.5rem; }
  .hero__ctas .btn { width: 100%; }
  .brand span { font-size: 1.05rem; }
  .buy .btn { width: 100%; }
}
