/* THE MAGNETIC ERA · styles (mobile-first, no build step) */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-InstrumentSans.txt) */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.woff") format("woff"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --ink: #211B20;
  --ink-2: #2B2329;
  --wine: #591F32;
  --wine-2: #6B2840;
  --gold: #B79A62;
  --gold-2: #CDB27C;
  --ivory: #F7F2EB;
  --paper: #EEE5D9;
  --sheet: #FFFCF7;
  --line: #DCCFBF;
  --line-dark: rgba(183, 154, 98, .32);
  --text: #211B20;
  --soft: #4E4249;          /* 8.9:1 on ivory */
  --on-dark: #F7F2EB;
  --on-dark-soft: #D6CBC0;  /* ~10:1 on ink, ~6.6:1 on wine */

  --serif: "Instrument Serif", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1180px;
  --sticky-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden; padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section--ivory :focus-visible, .section--paper :focus-visible { outline-color: var(--wine); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ivory); color: var(--ink); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08; letter-spacing: -0.015em;
  max-width: 20ch; text-wrap: balance;
}
.h2--light { color: var(--on-dark); }
.h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; margin-bottom: 12px; }
.section-head { margin-bottom: 40px; }
.lede { font-size: 1.125rem; color: var(--soft); max-width: 56ch; margin-top: 18px; }
.lede--light { color: var(--on-dark-soft); }
.microcopy { font-size: .875rem; color: var(--soft); margin-top: 12px; }
.microcopy--light { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-2); }
.btn--wine { background: var(--wine); color: var(--ivory); }
.btn--wine:hover { background: var(--wine-2); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(247, 242, 235, .4); }
.btn--ghost:hover { border-color: var(--ivory); }
.btn--outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--outline:hover { background: var(--wine); color: var(--ivory); }
.btn--block { width: 100%; }
.btn--sm { min-height: 46px; padding: 10px 18px; font-size: .9375rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--on-dark); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 60px; gap: 16px; }
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; font-weight: 500;
  letter-spacing: .01em; text-decoration: none; color: var(--on-dark);
}
.topbar__buy {
  font-size: .875rem; font-weight: 600; color: var(--gold); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
}
.topbar__buy:hover { color: var(--gold-2); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--on-dark); padding: 28px 0 56px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -380px; top: 40px;
  background: radial-gradient(circle, rgba(89, 31, 50, .75) 0%, rgba(89, 31, 50, 0) 65%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; position: relative; }
.hero__title {
  font-family: var(--serif); font-weight: 400; color: var(--on-dark);
  font-size: clamp(2.6rem, 12.2vw, 5.6rem); line-height: .98; letter-spacing: -0.025em;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: .55em; }
.hero__title span:nth-child(3) { padding-left: 1.1em; font-style: italic; }
.hero__lede { font-size: 1.125rem; line-height: 1.55; margin-top: 22px; max-width: 36ch; color: var(--on-dark-soft); }

.hero__product {
  display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); max-width: 520px;
}
.hero__product p { font-size: .9375rem; color: var(--on-dark-soft); }
.hero__product strong { color: var(--ivory); white-space: nowrap; }
.minicovers { position: relative; flex: 0 0 92px; height: 78px; }
.minicover { position: absolute; width: 52px; height: 69px; top: 5px; object-fit: cover; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.minicover--playbook { left: 0; transform: rotate(-8deg); }
.minicover--journal { left: 40px; transform: rotate(7deg); }
.minicover--guide { left: 20px; top: 0; z-index: 2; }

.hero__actions { display: grid; gap: 10px; margin-top: 22px; }
.hero__actions .btn { width: 100%; }

/* Showcase (real covers, continues the hero band) */
.showcase { background: var(--ink); padding: 8px 0 64px; border-bottom: 1px solid var(--line-dark); }
.showcase__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; padding-top: 14px; }
.showcase__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 22px 40px -16px rgba(0,0,0,.85); }
.showcase__item:nth-child(2) { transform: translateY(-14px); }
.showcase__name { margin-top: 14px; font-family: var(--serif); font-size: .95rem; line-height: 1.25; color: var(--ivory); }
.showcase__meta { font-size: .8125rem; color: var(--on-dark-soft); margin-top: 2px; }

/* Signature thread */
.thread { max-width: 380px; width: 100%; margin: 0 auto; }
.thread__screen {
  background: var(--sheet); color: var(--ink); border-radius: 30px; padding: 22px 16px 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 8px var(--ink-2), 0 0 0 9px rgba(183,154,98,.35);
  display: flex; flex-direction: column; gap: 8px; min-height: 330px;
}
.thread__day { text-align: center; font-size: .75rem; color: #6E6168; margin-bottom: 6px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .96875rem; line-height: 1.4; }
.bubble--them { align-self: flex-start; background: #ECE4DA; border-bottom-left-radius: 6px; }
.bubble--me { align-self: flex-end; background: var(--wine); color: var(--ivory); border-bottom-right-radius: 6px; }
.bubble--draft {
  align-self: flex-end; background: transparent; color: #5F5258; border: 1px dashed #B7A9AE;
  border-bottom-right-radius: 6px; position: relative;
}
.bubble--draft span {
  background: linear-gradient(var(--wine), var(--wine)) no-repeat 0 58% / 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.thread__status { align-self: flex-end; font-size: .75rem; color: #6E6168; margin-top: -2px; }
.thread__cap {
  margin: 22px auto 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4;
  color: var(--on-dark-soft); text-align: center; max-width: 30ch;
}

/* One orchestrated moment: drafts appear, get crossed out, the clear message is sent. */
@media (prefers-reduced-motion: no-preference) {
  .thread .bubble--d1, .thread .bubble--d2, .thread .bubble--me, .thread__status { opacity: 0; animation: pop .45s ease forwards; }
  .thread .bubble--d1 { animation-delay: .5s; }
  .thread .bubble--d2 { animation-delay: 1.7s; }
  .thread .bubble--me { animation-delay: 2.9s; }
  .thread__status { animation-delay: 3.4s; }
  .thread .bubble--d1 span, .thread .bubble--d2 span { background-size: 0% 1.5px; animation: strike .45s ease forwards; }
  .thread .bubble--d1 span { animation-delay: 1.2s; }
  .thread .bubble--d2 span { animation-delay: 2.4s; }
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes strike { to { background-size: 100% 1.5px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--wine { background: var(--wine); color: var(--on-dark); }
.section--dark { background: var(--ink); color: var(--on-dark); }

/* Recognition */
.moments { margin-top: 36px; display: grid; gap: 14px; }
.moment { background: var(--sheet); padding: 20px 20px 22px; border-left: 3px solid var(--wine); }
.moment__time { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--wine); margin-bottom: 6px; }
.moment p:last-child { font-size: 1.125rem; line-height: 1.5; }
.pullnote {
  margin-top: 40px; font-family: var(--serif); font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.32;
  max-width: 32ch; color: var(--ink); text-wrap: pretty;
}

/* Demo */
.demo { background: var(--ivory); color: var(--text); padding: 24px 18px; border-radius: 4px; }
.demo__label { font-size: .875rem; font-weight: 600; color: var(--wine); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.demo__grid { display: grid; gap: 28px; margin-top: 22px; }
.demo__step { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0 0 10px; }
.demo__setup p + .demo__step { margin-top: 24px; }
.demo__why { color: var(--soft); font-size: 1rem; margin-top: 12px; }
.demo__why strong { color: var(--ink); }
.demo__fine { margin-top: 14px; font-size: .875rem; color: var(--soft); font-style: italic; }
.bubble--static { display: block; max-width: 92%; width: fit-content; }
.demo .bubble--me { margin-left: auto; }
.bubble--none { align-self: flex-start; font-style: italic; color: var(--soft); border: 1px dashed var(--line); background: transparent; }
.tabs { display: flex; gap: 6px; padding: 4px; background: var(--paper); border-radius: 999px; margin-bottom: 18px; }
.tab { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--soft); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--ivory); }
.panel { display: flex; flex-direction: column; gap: 14px; min-height: 150px; }
.panel[hidden] { display: none; }
.panel__next { background: var(--sheet); padding: 16px; border-left: 3px solid var(--gold); }
.panel__next strong { color: var(--wine); }

.inline-cta { margin-top: 44px; display: grid; gap: 16px; justify-items: start; }
.inline-cta p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; max-width: 34ch; }
.inline-cta .btn { width: 100%; }
.inline-cta--dark p { color: var(--on-dark); }

/* Flow */
.flow { display: grid; gap: 0; }
.flow__item { display: grid; align-content: start; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.flow__item:last-child { border-bottom: 1px solid var(--line); }
.flow__n {
  grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--wine);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; color: var(--wine);
}
.flow__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.flow__item p { color: var(--soft); margin-top: 4px; max-width: 40ch; }

/* Start where you are */
.paths { margin-top: 56px; }
.paths__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-bottom: 18px; }
.paths__grid { display: grid; gap: 12px; }
.path { background: var(--sheet); padding: 18px 20px; border-top: 2px solid var(--wine); }
.path h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.path p { color: var(--soft); font-size: .9688rem; }

/* Products */
.products { display: grid; gap: 56px; }
.product { display: grid; gap: 22px; }
.product__cover { position: relative; width: 62%; max-width: 300px; aspect-ratio: 3 / 4; box-shadow: 0 24px 44px -18px rgba(33, 27, 32, .55); }
.product__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.product__name { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--wine); margin-bottom: 6px; }
.product__title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.18; margin-bottom: 12px; max-width: 22ch; }
.product__body p { max-width: 52ch; }
.product__when { margin-top: 12px; color: var(--soft); padding-left: 14px; border-left: 2px solid var(--gold); }
.product__meta { margin-top: 12px; font-size: .875rem; color: var(--soft); }

/* Typographic stand-in covers (shown until the real cover image is added) */
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 11% 10%; overflow: hidden; }
.cover__brand { font-family: var(--serif); font-style: italic; font-size: .85rem; }
.cover__title { font-family: var(--serif); font-size: clamp(1.4rem, 6vw, 2.1rem); line-height: 1.02; letter-spacing: -.01em; }
.cover__sub { font-size: .75rem; letter-spacing: .04em; }
.cover--guide { background: var(--wine); color: var(--ivory); border-top: 6px solid var(--gold); }
.cover--guide .cover__brand, .cover--guide .cover__sub { color: var(--gold-2); }
.cover--playbook { background: var(--ink); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--gold); }
.cover--playbook .cover__brand, .cover--playbook .cover__sub { color: var(--gold); }
.cover--journal { background: var(--sheet); color: var(--wine); box-shadow: inset 0 0 0 10px var(--sheet), inset 0 0 0 11px var(--wine); }
.cover--journal .cover__sub { color: var(--soft); }

/* Program */
.days { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; margin-bottom: 30px; }
.days span { height: 26px; background: var(--ink-2); border-top: 2px solid var(--gold); }
.days span:nth-child(7n):not(:last-child) { margin-right: 6px; }
.days span:nth-child(n+8):nth-child(-n+14) { border-top-color: var(--gold-2); background: #33292F; }
.days span:nth-child(n+15) { border-top-color: var(--ivory); background: #3B2F35; }
.weeks { display: grid; gap: 0; }
.week { padding: 24px 0; border-top: 1px solid var(--line-dark); }
.week__range { font-size: .875rem; color: var(--gold); }
.week__title { font-family: var(--serif); font-weight: 450; font-size: 1.8rem; line-height: 1.15; margin: 6px 0 14px; }
.week__list li { position: relative; padding-left: 20px; color: var(--on-dark-soft); }
.week__list li + li { margin-top: 8px; }
.week__list li { padding-left: 0; display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(183,154,98,.16); }
.week__day { font-size: .8125rem; color: var(--gold); padding-top: .2em; }
.program__pace { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); max-width: 62ch; color: var(--on-dark-soft); }

/* Sample pages */
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.page {
  display: block; width: 100%; padding: 0; border: 0; background: var(--sheet); cursor: zoom-in; text-align: left;
  position: relative; box-shadow: 0 16px 30px -16px rgba(33, 27, 32, .45); transition: transform .25s ease;
}
.page:hover { transform: translateY(-3px); }
.page img { position: relative; z-index: 1; width: 100%; aspect-ratio: 7 / 10; object-fit: contain; object-position: top; background: #fff; }
.page__fallback {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 800 / 1035; padding: 14% 12%;
  font-family: var(--serif); font-style: italic; color: var(--wine); font-size: .95rem;
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(180deg, transparent 0 17px, #E7DED2 17px 18px);
  background-origin: content-box; background-clip: content-box;
}
.page__cap { display: block; padding: 10px 12px; font-size: .8125rem; font-weight: 500; line-height: 1.35; background: var(--ivory); border-top: 1px solid var(--line); }
.sample__actions { margin-top: 30px; display: grid; gap: 10px; }
.sample__actions .btn { width: 100%; }

/* Fit */
.fit { display: grid; gap: 30px; }
.fit__cols { display: grid; gap: 30px; }
.fit__list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); }
.fit__list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--wine); }

/* Offer */
.offer { position: relative; overflow: hidden; }
.offer__grid { display: grid; gap: 36px; position: relative; }
.offer__list { margin-top: 26px; }
.offer__list li { padding: 16px 0; border-top: 1px solid var(--line-dark); display: grid; gap: 2px; }
.offer__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.offer__list strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ivory); }
.offer__list span { color: var(--on-dark-soft); }
.offer__box { background: var(--ivory); color: var(--ink); padding: 30px 22px 26px; border-radius: 4px; text-align: center; }
.offer__box .microcopy--light { color: var(--soft); }
.offer__fan { position: relative; height: 150px; width: 240px; margin: 0 auto 20px; }
.ofan { position: absolute; width: 96px; height: 128px; top: 16px; object-fit: cover; box-shadow: 0 14px 24px -10px rgba(33,27,32,.6); }
.ofan--playbook { left: 12px; transform: rotate(-9deg); }
.ofan--journal { right: 12px; transform: rotate(8deg); }
.ofan--guide { left: 66px; top: 0; width: 108px; height: 144px; z-index: 2; }
.cover--mini { inset: auto; width: 80px; height: 104px; top: 12px; padding: 12px 10px; box-shadow: 0 12px 22px -8px rgba(33,27,32,.55); }
.cover--mini .cover__title { font-size: .9rem; }
.offer__fan .cover--playbook .cover__title, .offer__fan .cover--journal .cover__title { display: none; }
.offer__fan .cover--playbook { left: 14px; transform: rotate(-9deg); }
.offer__fan .cover--journal { right: 14px; transform: rotate(8deg); }
.offer__fan .cover--guide { left: 68px; top: 0; z-index: 2; width: 84px; height: 110px; }
.offer__price { font-family: var(--serif); font-size: 5.2rem; line-height: 1; letter-spacing: -.02em; }
.offer__currency { font-size: .45em; vertical-align: top; position: relative; top: .3em; margin-right: 4px; color: var(--wine); }
.offer__terms { margin: 10px 0 22px; color: var(--soft); }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; min-height: 48px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__item p { padding: 0 0 22px; color: var(--soft); max-width: 62ch; }
.faq__cta { margin-top: 34px; }
.faq__cta .btn { width: 100%; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-soft); padding: 52px 0 36px; font-size: .9375rem; }
.wordmark--footer { margin-bottom: 18px; display: block; font-size: 1.4rem; }
.footer__note { max-width: 62ch; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; }
.footer__nav a { display: inline-block; padding: 10px 0; color: var(--ivory); text-underline-offset: 4px; }
.footer__seller, .footer__copy { margin-top: 8px; }
[data-config-missing] { display: none !important; }
body.is-review li[data-config-missing] { display: list-item !important; opacity: .5; }
body.is-review p[data-config-missing] { display: block !important; opacity: .5; }

/* Sticky CTA (mobile only) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(33, 27, 32, .97); border-top: 1px solid var(--line-dark);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--maxw); margin: 0 auto; }
.sticky-cta__text { color: var(--ivory); font-size: .9375rem; line-height: 1.25; }
.sticky-cta__text strong { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); }
.sticky-cta__text span { font-size: .8125rem; color: var(--on-dark-soft); }

/* Dialogs */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(20, 15, 18, .82); }
.notice { background: var(--ivory); color: var(--ink); max-width: min(440px, calc(100vw - 32px)); padding: 26px 22px; border-radius: 4px; }
.notice__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 10px; }
.notice__body { color: var(--soft); margin-bottom: 18px; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #17121A; color: var(--ivory); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); }
.viewer__caption { font-size: .9375rem; color: var(--on-dark-soft); }
.viewer__controls { display: flex; gap: 6px; }
.viewer__btn { min-height: 44px; min-width: 44px; padding: 8px 14px; background: transparent; border: 1px solid rgba(247,242,235,.35); border-radius: 999px; cursor: pointer; font-size: .875rem; }
.viewer__btn:hover { border-color: var(--ivory); }
.viewer__btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.viewer__btn--close { border-color: var(--gold); }
.viewer__stage { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 16px; overscroll-behavior: contain; }
.viewer__stage img { width: auto; max-width: 100%; max-height: calc(100dvh - 110px); background: #fff; cursor: zoom-in; }
.viewer.is-zoomed .viewer__stage { justify-content: flex-start; }
.viewer.is-zoomed .viewer__stage img { max-width: none; max-height: none; width: 1700px; cursor: zoom-out; }

/* Pending assets: image hidden so the stand-in shows; review mode adds a small tag */
.asset.is-missing img { visibility: hidden; }
body.is-review .asset.is-missing::after {
  content: "Image pending"; position: absolute; top: 8px; right: 8px; z-index: 3;
  font: 600 11px/1 var(--sans); padding: 5px 7px; background: #FFF4CC; color: #3A2E00;
}

/* Review mode */
body.is-review .weeks[data-verify]::before { grid-column: 1 / -1; }
.review-bar { background: #FFF4CC; color: #3A2E00; font-size: .875rem; padding: 8px var(--gutter); text-align: center; }
.review-bar a { font-weight: 600; }
body.is-review [data-verify]::before {
  content: "Review: " attr(data-verify); display: block; margin-bottom: 14px; padding: 8px 10px;
  background: #FFF4CC; color: #3A2E00; font: 600 12px/1.4 var(--sans);
}
.review-panel { margin-top: 36px; padding: 28px 0 8px; background: #FFF4CC; color: #3A2E00; }
.review-panel h2 { font-family: var(--sans); font-size: 1rem; margin-bottom: 10px; }
.review-panel ul { padding-left: 20px; font-size: .875rem; }
.review-panel li + li { margin-top: 4px; }
.review-panel code { font-size: .8125rem; word-break: break-all; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gutter: 36px; }
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
  .hero__actions .btn, .inline-cta .btn, .sample__actions .btn, .faq__cta .btn { width: auto; white-space: nowrap; }
  .sample__actions { grid-template-columns: auto auto; justify-content: start; }
  .moments { grid-template-columns: 1fr 1fr; }
  .demo { padding: 34px; }
  .fit__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .paths__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product { grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
  .product__cover { width: 100%; }
  .offer__box { max-width: 440px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 56px; }
  body { font-size: 1.125rem; }
  .hero { padding: 64px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
  .thread { max-width: 380px; margin: 0 0 0 auto; position: relative; z-index: 2; }
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
  .moments { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .demo__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .inline-cta { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .flow__item { grid-template-columns: 1fr; padding: 26px 0 0; border-top: 1px solid var(--wine); }
  .flow__item:last-child { border-bottom: 0; }
  .flow__n { grid-row: auto; margin-bottom: 18px; }
  .product { grid-template-columns: 300px 1fr; gap: 72px; }
  .product--flip { grid-template-columns: 1fr 300px; }
  .product--flip .product__cover { order: 2; }
  .weeks { grid-template-columns: repeat(3, 1fr); gap: 44px; }
  .days { gap: 4px; }
  .pages { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .fit { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .offer__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
  .offer__box { padding: 44px 40px 36px; justify-self: end; width: 100%; }
  .sticky-cta { display: none; }
  .showcase { padding: 0 0 112px; }
  .showcase__row { gap: 48px; max-width: 980px; margin: 0 auto; }
  .showcase__item:nth-child(2) { transform: translateY(-28px); }
  .showcase__row { padding-top: 28px; }
  .showcase__name { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.offer__box .btn { padding-left: 14px; padding-right: 14px; font-size: .96rem; }

/* Hero covers (mobile) and refund line */
.hero__covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.hero__covers img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 16px 30px -14px rgba(0,0,0,.85); }
.hero__covers span { display: block; margin-top: 8px; font-family: var(--serif); font-size: .9rem; line-height: 1.2; color: var(--ivory); }
.hero__covers small { font-family: var(--sans); font-size: .75rem; color: var(--on-dark-soft); }
.assurance { margin-top: 10px; font-size: .9375rem; color: var(--ivory); padding-left: 12px; border-left: 2px solid var(--gold); }
.assurance a { color: var(--gold); }
.assurance--offer { color: var(--ink); text-align: left; margin: -8px 0 18px; border-left-color: var(--wine); }
.assurance--offer a { color: var(--wine); }
@media (max-width: 959px) {
  .hero__product { display: none; }
  .showcase { display: none; }
}
@media (min-width: 960px) {
  .hero__covers { display: none; }
}

/* 24 conversations index */
.convs { display: grid; gap: 28px; }
.convs__group h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--wine); padding-bottom: 10px; border-bottom: 1px solid var(--wine); margin-bottom: 4px; }
.convs__list li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.convs__n { font-family: var(--serif); color: var(--wine); font-size: .9rem; padding-top: .1em; font-variant-numeric: tabular-nums; }
.paths__lede { color: var(--soft); max-width: 56ch; margin: -6px 0 20px; }
.bump { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--soft); text-align: left; }
.bump strong { color: var(--ink); }
@media (min-width: 600px) { .convs { grid-template-columns: 1fr 1fr; gap: 36px 40px; } }
@media (min-width: 960px) { .convs { grid-template-columns: repeat(4, 1fr); gap: 32px; } .convs__list li { font-size: .9375rem; } }
@media (min-width: 960px) {
  .hero { padding-top: 52px; }
  .hero__title { font-size: clamp(3.2rem, 4.9vw, 4.4rem); }
  .hero__grid { grid-template-columns: 1.25fr .75fr; }
}
@media (min-width: 960px) {
  .hero__title span:nth-child(2) { padding-left: .35em; }
  .hero__title span:nth-child(3) { padding-left: .7em; }
}

/* Instrument Serif is narrower than Bodoni: scale display sizes up slightly */
.h2 { font-size: clamp(2.2rem, 7.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.01em; }
.hero__title { font-size: clamp(2.9rem, 13.4vw, 6rem); line-height: .95; letter-spacing: -0.015em; }
@media (min-width: 960px) { .hero__title { font-size: clamp(3.6rem, 5.4vw, 4.9rem); } }
.offer__price { font-size: 6rem; }

/* Compact four-step strip */
.steps { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.steps__intro { color: var(--soft); max-width: 56ch; margin-bottom: 16px; }
.paths { margin-top: 0; }
/* Tighter vertical rhythm */
.section { padding: 60px 0; }
.section-head { margin-bottom: 32px; }
@media (min-width: 960px) { .section { padding: 88px 0; } .section-head { margin-bottom: 44px; } .showcase { padding-bottom: 88px; } }
@media (min-width: 960px) {
  .hero__title { font-size: clamp(3.4rem, 5vw, 4.6rem); }
  .hero__title span { white-space: nowrap; }
}


/* =====================================================================
   v5 revision
   ===================================================================== */

/* Four steps. Cause of the old defect: each <li> was a 34px/1fr grid whose children were
   ::before, <strong> AND an anonymous text node; the text node became a third grid item and
   wrapped into the 34px column, one word per line. Now each step has exactly two children. */
.steps__list { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: start; align-content: start; padding: 16px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--wine); display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; line-height: 1; color: var(--wine); margin-top: 2px; }
.step__body { min-width: 0; }
.step__title { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.step__body p { margin-top: 2px; color: var(--soft); max-width: 52ch; }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .step:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 12px; border-bottom: 0 !important; border-top: 1px solid var(--wine); padding-top: 22px; }
}
.path__title { margin: 0 0 6px; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }

/* Hero: tighter on phones, covers always next to the offer */
.hero { padding: 24px 0 44px; }
.hero__title { font-size: clamp(2.15rem, 10.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 16ch; text-wrap: balance; }
.hero__title span { display: inline; }
.hero__title span:nth-child(2), .hero__title span:nth-child(3) { padding-left: 0; }
.hero__title span:nth-child(3) { font-style: italic; color: var(--gold-2); }
.hero__lede { margin-top: 16px; font-size: 1.0625rem; max-width: 40ch; }
.hero__actions { margin-top: 20px; }
.hero__actions .btn--ghost { min-height: 48px; border-color: rgba(247, 242, 235, .28); font-weight: 500; }
.hero__covers { margin-top: 24px; gap: 10px; max-width: 460px; }
.hero__covers span { font-size: .875rem; }
.showcase { display: none !important; }
@media (min-width: 600px) {
  .hero__title { font-size: clamp(3rem, 7.4vw, 4rem); max-width: 14ch; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 56px; }
  .hero__title { font-size: clamp(3.4rem, 4.8vw, 4.5rem); max-width: 15ch; }
  .hero__title span { white-space: normal; }
  .hero__covers { display: grid !important; margin-top: 28px; max-width: 440px; }
  .thread { margin-top: 24px; }
}

/* Conversations: 6 shown, rest expandable */
.convs__list li[hidden] { display: none; }
.convs__more { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.convs__status { font-size: .875rem; color: var(--soft); }
.convs__list li > span:last-child { min-width: 0; }

/* Paragraph type: sans for reading, serif for titles and details */
.inline-cta p { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.footer { color: var(--on-dark-soft); }
.footer__note, .footer__seller, .footer__copy { color: var(--on-dark-soft); }

/* Rhythm */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
@media (min-width: 960px) { .section { padding: 84px 0; } .section-head { margin-bottom: 40px; } }

/* Sticky CTA: safe areas on all sides, never covers the end of the page */
.sticky-cta {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

/* Viewer: visible close, safe areas, usable scroll and zoom on phones */
.viewer__bar { position: sticky; top: 0; z-index: 2; background: #17121A; padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
.viewer__btn--close { background: var(--ivory); color: var(--ink); border-color: var(--ivory); font-weight: 600; }
.viewer__stage { -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.viewer__stage img { max-height: calc(100dvh - 120px); }
@media (max-width: 959px) {
  .viewer.is-zoomed .viewer__stage img { width: 220%; max-width: none; }
  .viewer__controls { flex-wrap: wrap; }
}

/* Small phones */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .tabs { gap: 2px; }
  .tab { font-size: .875rem; }
  .btn { padding-left: 14px; padding-right: 14px; font-size: .9375rem; }
}

/* v6: program summary + expandable days */
.week__summary { color: var(--on-dark-soft); max-width: 46ch; }
.week__list { margin-top: 14px; }
.week__list[hidden] { display: none; }
.days__more { margin-top: 24px; }

/* Review mode only: admin marker on buy buttons while checkout is not connected */
body.is-review [data-checkout-missing] { position: relative; }
body.is-review [data-checkout-missing]::after {
  content: "Checkout not connected"; position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  white-space: nowrap; width: max-content; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; font: 600 10px/1 var(--sans); letter-spacing: .02em;
  background: #FFF4CC; color: #3A2E00; padding: 4px 6px; border-radius: 3px; pointer-events: none;
}
body.is-review .topbar__buy[data-checkout-missing]::after, body.is-review .sticky-cta [data-checkout-missing]::after { content: none; }

/* Consent banner (Meta Pixel opt-in) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ivory); color: var(--ink); border-top: 2px solid var(--wine);
  padding: 14px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  box-shadow: 0 -12px 30px -18px rgba(0,0,0,.6); }
.consent[hidden] { display: none; }
.consent__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 12px; }
.consent__text, .consent__gpc { font-size: .9375rem; line-height: 1.5; color: var(--soft); max-width: 70ch; }
.consent__text a { color: var(--wine); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.consent__btn:hover { background: var(--wine); border-color: var(--wine); }
.consent__btn[hidden] { display: none; }
body.has-consent-banner { padding-bottom: var(--consent-h) !important; }
body.has-consent-banner .sticky-cta { display: none; }
@media (min-width: 768px) { .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .consent__actions { grid-template-columns: auto auto; } }
.footer__linkbtn { background: none; border: 0; padding: 10px 0; color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.05; }
.legal__meta { margin-top: 8px; font-size: .9375rem; color: var(--soft); }
.legal__section { margin-top: 36px; }
.legal__section h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; color: var(--wine); margin-bottom: 10px; }
.legal__section h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 20px 0 6px; }
.legal__section p, .legal__section li { color: var(--soft); max-width: 68ch; }
.legal__section p + p { margin-top: 12px; }
.legal__section ul, .legal__section ol { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.legal__section a { color: var(--wine); }
.legal__section code { font-size: .9em; background: var(--paper); padding: 1px 5px; border-radius: 3px; }
.legal__status { margin-top: 28px; padding: 14px 16px; border-left: 3px solid var(--wine); background: var(--sheet); }
.legal__status[hidden] { display: none; }
.legal__status p { color: var(--ink); }
.pending { background: #FFF4CC; color: #3A2E00; padding: 0 4px; border-radius: 3px; font-weight: 600; }
@media (min-width: 960px) { .legal { padding: 64px 0 96px; } }
