/* The Perimenopause Playbook. One motif: the eclipsed moon from the cover. */
@font-face { font-family: "Gloock"; src: url("/fonts/gloock-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #FBF6F2;
  --blush: #F2E4EA;
  --sage-soft: #DCEBE7;
  --saffron-soft: #F8E7C4;
  --ink: #2A1420;
  --muted: #5F4A56;
  --mulberry: #8E2F5A;
  --mulberry-dk: #5E1A3B;
  --sage: #2A625D;
  --saffron: #E3A43A;
  --ochre: #7A4E06;
  --on-dark: #FBF6F2;
  --on-dark-2: #EBD9E2;

  --font-display: "Gloock", Georgia, serif;
  --font-text: "Manrope", system-ui, sans-serif;

  --s-display: clamp(3.25rem, 1.2rem + 6.4vw, 6.5rem);
  --s-head: clamp(2.25rem, 1.3rem + 3.4vw, 4rem);
  --s-sub: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --s-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --s-small: 0.9375rem;

  --margin: clamp(1rem, 5vw, 5.5rem);
  --gutter: clamp(1rem, 2.4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--s-body); line-height: 1.55; font-weight: 450; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mulberry); color: var(--paper); }
:target { scroll-margin-top: 5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-wrap: balance; letter-spacing: -0.02em; }
.display { font-size: var(--s-display); line-height: 0.98; letter-spacing: -0.03em; }
.head { font-size: var(--s-head); line-height: 1.02; }
.sub { font-size: var(--s-sub); line-height: 1.1; }
.lead { font-size: var(--s-sub); font-family: var(--font-text); line-height: 1.32; font-weight: 500; letter-spacing: -0.01em; }
.small { font-size: var(--s-small); line-height: 1.5; }
.strong { font-weight: 700; }
p { max-width: 62ch; text-wrap: pretty; }
[hidden] { display: none !important; }

/* links and the one button shape: a pill with a crescent */
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; text-decoration-thickness: .08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link.strong { text-decoration-color: currentColor; }
.link-plain { text-decoration: underline; text-underline-offset: .2em; }
.pill { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: 0 1.6rem 0 1.25rem; border-radius: 999px; background: var(--mulberry); color: var(--paper); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.pill:active { transform: scale(.97); }
.pill-sm { min-height: 2.75rem; padding: 0 1.2rem; font-size: var(--s-small); }
.pill-light { background: var(--saffron); color: var(--ink); }
.crescent { position: relative; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--saffron); flex: none; overflow: hidden; transition: transform 500ms var(--ease-out); }
.crescent::after { content: ""; position: absolute; inset: -12% -12% 12% 22%; border-radius: 50%; background: var(--mulberry); transition: transform 500ms var(--ease-out), background-color var(--t-hover) ease; }
.pill-light .crescent { background: var(--mulberry-dk); }
.pill-light .crescent::after { background: var(--saffron); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .pill:hover { background: var(--mulberry-dk); }
  .pill:hover .crescent::after { background: var(--mulberry-dk); transform: translate(18%, -10%); }
  .pill-light:hover { background: #F0B95A; }
  .pill-light:hover .crescent::after { background: #F0B95A; }
}

/* crescent bullets */
.moons li { position: relative; padding-left: 1.9rem; }
.moons li + li { margin-top: .6rem; }
.moons li::before { content: ""; position: absolute; left: 0; top: .42em; width: .85rem; height: .85rem; border-radius: 50%; background: var(--saffron); }
.moons li::after { content: ""; position: absolute; left: .26rem; top: calc(.42em - .1rem); width: .78rem; height: .78rem; border-radius: 50%; background: var(--bg-here, var(--paper)); }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--margin); }
.mark { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1; text-decoration: none; letter-spacing: -0.02em; }
.top-links { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: var(--s-small); }
.top-links .link { color: var(--ink); background: var(--paper); padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .top-links .link:hover { background: var(--blush); } }

/* HERO: a giant eclipsed moon entering from the right */
.hero { position: relative; min-height: max(44rem, 100svh); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 7rem var(--margin) 4rem; overflow: clip; isolation: isolate; }
.hero-shape { position: absolute; z-index: -1; width: 120vh; height: 120vh; left: calc(84% - 60vh); top: calc(55% - 60vh); }
.hero-shape .moon, .close-shape .moon { position: absolute; inset: 0; border-radius: 50%; background: var(--saffron); }
.hero-shape .eclipse, .close-shape .eclipse { position: absolute; inset: -4% -10% 10% 8%; border-radius: 50%; background: var(--mulberry-dk); }
.hero-copy { grid-column: 1 / span 6; align-self: center; display: grid; gap: 1.75rem; padding-top: 2rem; }
.hero-sub { font-size: var(--s-body); font-weight: 500; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-note { color: var(--muted); max-width: 44ch; }
.hero-kit { position: absolute; z-index: 0; width: min(54vw, 980px); right: calc(var(--margin) * .2); top: 50%; translate: 0 -46%; margin: 0; }
.hero-kit img { width: 100%; }

.lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lines [data-line] { display: block; }

/* DISMISSALS */
.brush { --bg-here: var(--blush); background: var(--blush); padding: var(--section) var(--margin); display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.brush-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.brush-intro h2 { grid-column: 1 / span 6; }
.brush-intro p { grid-column: 8 / span 5; }
.brush-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: stretch; }
.brush-list { grid-column: 1 / span 6; display: grid; gap: .25rem; align-content: start; }
.brush-list button { text-align: left; font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.15; padding: .7rem 1.25rem .8rem; border-radius: var(--radius); color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.brush-list button[aria-selected="true"] { background: var(--paper); color: var(--mulberry-dk); }
.brush-list button:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .brush-list button:hover { color: var(--ink); } }
.say { grid-column: 7 / span 6; position: relative; overflow: hidden; background: var(--mulberry); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 3.25rem); display: grid; align-content: space-between; gap: 2rem; min-height: 26rem; }
.say-label { font-weight: 700; color: var(--saffron-soft); }
.say-quote { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.22; max-width: 40ch; position: relative; z-index: 1; }
.say-src { color: var(--on-dark-2); font-size: var(--s-small); position: relative; z-index: 1; max-width: 40ch; }
.say-moon { position: absolute; width: 22rem; height: 22rem; right: -9rem; bottom: -11rem; border-radius: 50%; background: var(--saffron); }
.say-moon::after { content: ""; position: absolute; inset: -6% -10% 12% 14%; border-radius: 50%; background: var(--mulberry); }
.say-quote.swap { animation: swap 520ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* LIVE CHECK, on a sage field */
.check { --bg-here: var(--sage); background: var(--sage); color: var(--on-dark); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.check-copy { grid-column: 1 / span 5; display: grid; gap: 1.5rem; align-content: start; position: sticky; top: 2rem; align-self: start; }
.result { display: grid; gap: 1rem; padding-top: .5rem; }
.score { display: flex; align-items: baseline; gap: .75rem; }
.score-n { font-family: var(--font-display); font-size: var(--s-display); line-height: .9; color: var(--saffron); display: inline-block; min-width: 1.2ch; font-variant-numeric: tabular-nums; }
.score-n.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: translateY(10px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.score-of { font-weight: 600; color: var(--sage-soft); }
.band { font-size: var(--s-sub); font-family: var(--font-display); line-height: 1.2; max-width: 24ch; }
.pages { display: grid; gap: .75rem; }
.pages .moons li { font-size: var(--s-small); }
.pages .moons b { color: var(--saffron-soft); font-weight: 700; }
.fine { color: var(--sage-soft); }
.ticks { grid-column: 7 / span 6; display: grid; gap: .5rem; align-content: start; }
.ticks label { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(251, 246, 242, .08); cursor: pointer; font-weight: 600; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ticks label:active { transform: scale(.985); }
.ticks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ticks .box { position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(251, 246, 242, .18); overflow: hidden; transition: background-color var(--t-hover) ease; }
.ticks .box::after { content: ""; position: absolute; inset: -10% -14% 14% 26%; border-radius: 50%; background: var(--sage); transform: translate(-60%, 40%); opacity: 0; transition: transform 420ms var(--ease-out), opacity 200ms ease; }
.ticks input:checked + .box { background: var(--saffron); }
.ticks input:checked + .box::after { transform: none; opacity: 1; }
.ticks input:checked ~ span:last-child { color: var(--paper); }
.ticks label:has(input:checked) { background: rgba(251, 246, 242, .16); }
.ticks input:focus-visible + .box { outline: 3px solid var(--saffron); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ticks label:hover { background: rgba(251, 246, 242, .14); } }

/* SHOWCASE: object on a disc */
.inside { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: end; min-height: 100svh; }
.disc-stage { grid-column: 5 / span 5; grid-row: 1; position: relative; aspect-ratio: 1; align-self: center; }
.disc { position: absolute; inset: 0; border-radius: 50%; background: var(--mulberry); transition: background-color 500ms var(--ease-out); }
.obj { position: absolute; left: 50%; top: 47%; width: 92%; translate: -50% -50%; opacity: 0; transform: scale(.96); transition: opacity 300ms ease, transform 600ms var(--ease-out); pointer-events: none; }
.obj.is-on { opacity: 1; transform: none; }
.inside-list { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
.names-title { font-family: var(--font-display); font-size: var(--s-sub); color: var(--muted); line-height: 1.15; margin-bottom: .4rem; }
.names { display: grid; justify-items: start; }
.names button { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.25; color: var(--muted); padding: .1rem 0; transition: color var(--t-hover) ease, transform 300ms var(--ease-out); }
.names button[aria-selected="true"] { color: var(--ink); transform: translateX(.6rem); }
.names button[aria-selected="true"]::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .35em; border-radius: 50%; background: var(--saffron); vertical-align: .08em; }
@media (hover: hover) and (pointer: fine) { .names button:hover { color: var(--ink); } }
.inside-fact { grid-column: 10 / span 3; grid-row: 1; align-self: center; display: grid; gap: 1rem; }
.fact-title { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.15; }
.inside-fact .moons li { font-size: var(--s-small); }
.inside-fact.swap > * { animation: swap 480ms var(--ease-out) both; }
.inside-fact.swap > *:nth-child(2) { animation-delay: 70ms; }

/* PAGES reel: real pages drifting past */
.pagesrow { --bg-here: var(--blush); background: var(--blush); padding: var(--section) 0; display: grid; gap: 3rem; overflow: clip; }
.pagesrow-head { padding: 0 var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.pagesrow-head p { max-width: 36ch; }
.reel { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; }
.reel img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.reel-track { display: flex; gap: clamp(1rem, 2vw, 1.75rem); width: max-content; padding-left: var(--margin); }
.reel figure { width: clamp(15rem, 24vw, 22rem); flex: none; display: grid; gap: .8rem; }
.reel img { border-radius: 10px; background: var(--paper); }
.reel figcaption { font-weight: 700; font-size: var(--s-small); }
@media (prefers-reduced-motion: no-preference) {
  .js .reel-track.is-moving { animation: drift 80s linear infinite; }
  .reel:hover .reel-track, .reel.is-paused .reel-track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-50%); } }

/* PROOF, on the deep mulberry field */
.proof { --bg-here: var(--mulberry-dk); background: var(--mulberry-dk); color: var(--on-dark); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 4rem; }
.proof-num { grid-column: 1 / span 7; display: grid; gap: 1.25rem; }
.big-n { font-family: var(--font-display); font-size: var(--s-display); line-height: .9; color: var(--saffron); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.proof-num .lead { max-width: 40ch; color: var(--on-dark); }
.proof-cols { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.proof-cols h2 { margin-bottom: 1.25rem; }
.proof-cols > div { background: rgba(251, 246, 242, .07); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.75rem); }
.moons.on-dark li { color: var(--on-dark-2); }
.moons.on-dark li::after { background: #66283F; }


/* REAL COMMENTS, answered like a chat */
.voices { --bg-here: var(--mulberry-dk); background: var(--mulberry-dk); color: var(--on-dark); padding: var(--section) 0; display: grid; gap: 3rem; overflow: clip; }
.voices-head { padding: 0 var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.voices-head h2 { grid-column: 1 / span 6; }
.voices-head p { grid-column: 8 / span 5; color: var(--on-dark-2); }
.rail { display: grid; gap: 1.5rem; }
.rail-track { display: flex; gap: clamp(.75rem, 1.6vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding: 0 var(--margin) .5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track:focus-visible { outline-offset: -3px; }
.thread { flex: none; width: clamp(18rem, 30vw, 27rem); scroll-snap-align: start; display: grid; align-content: start; gap: .85rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(251, 246, 242, .07); }
.t-meta { font-size: var(--s-small); color: var(--on-dark-2); }
.bubble { padding: .9rem 1.15rem 1rem; max-width: 92%; font-weight: 500; line-height: 1.45; }
.bubble.her { background: var(--paper); color: var(--ink); border-radius: 22px 22px 22px 6px; justify-self: start; font-size: var(--s-body); }
.bubble.us { background: var(--saffron); color: var(--ink); border-radius: 22px 22px 6px 22px; justify-self: end; font-size: var(--s-small); min-height: 2.75rem; }
.bubble.us b { font-weight: 800; }
.dots { display: none; gap: .3rem; align-items: center; height: 1.2rem; }
.dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mulberry-dk); opacity: .35; }
.js .bubble.us:not(.is-typed) .msg { display: none; }
.js .bubble.us:not(.is-typed) .dots { display: inline-flex; }
.bubble.us.is-typed .msg { animation: swap 480ms var(--ease-out); }
@media (prefers-reduced-motion: no-preference) { .dots i { animation: blink 1s ease-in-out infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; } }
@keyframes blink { 50% { opacity: 1; } }
.rail-nav { padding: 0 var(--margin); display: flex; justify-content: flex-end; gap: .5rem; }
.pill-ghost { background: rgba(251, 246, 242, .12); color: var(--paper); }
.voices .rail-nav .pill:not(.pill-ghost) { background: var(--saffron); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .voices .pill-ghost:hover { background: rgba(251, 246, 242, .2); } .voices .rail-nav .pill:not(.pill-ghost):hover { background: #F0B95A; } }

/* WHAT IT FIXES: an index with the real page beside it */
.fixes { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.fixes-copy { grid-column: 1 / span 6; display: grid; gap: 1.25rem; }
.fix-list { grid-column: 1 / span 6; display: grid; gap: .2rem; }
.fix { width: 100%; text-align: left; display: grid; gap: .15rem; padding: .85rem 1.25rem; border-radius: var(--radius); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.fix-t { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.15; color: var(--muted); transition: color var(--t-hover) ease; }
.fix-d { font-size: var(--s-small); color: var(--muted); }
.fix[aria-pressed="true"] { background: var(--blush); }
.fix[aria-pressed="true"] .fix-t { color: var(--mulberry-dk); }
.fix:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .fix:hover .fix-t { color: var(--ink); } }
.fix-view { grid-column: 8 / span 5; grid-row: 1 / span 2; position: sticky; top: 2rem; margin: 0; display: grid; gap: 1rem; justify-items: center; }
.fix-frame { position: relative; width: 78%; isolation: isolate; margin: 12% 0 10%; }
.fix-frame::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--saffron); }

.fix-frame img { border-radius: 10px; background: var(--paper); transition: opacity 260ms ease, transform 500ms var(--ease-out); }
.fix-frame img.is-swapping { opacity: 0; transform: translateY(12px) rotate(-1deg); }
.fix-view figcaption { font-weight: 700; font-size: var(--s-small); }

/* OFFER: the whole kit on one receipt, next to what help usually costs */
.offer { --bg-here: var(--blush); background: var(--blush); padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.offer-copy { grid-column: 1 / span 7; display: grid; gap: 1.25rem; }
.receipt { --bg-here: var(--paper); grid-column: 6 / span 7; grid-row: 2; align-self: end; background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.75rem); display: grid; gap: 1.25rem; }
.receipt-lines { display: grid; gap: .1rem; }
.receipt-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding: .7rem 0; font-weight: 500; }
.receipt-lines li:nth-child(odd) { background: var(--blush); margin: 0 -1rem; padding: .7rem 1rem; border-radius: 12px; }
.receipt-lines b { color: var(--sage); font-weight: 800; font-size: var(--s-small); white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .75rem; max-width: none; }
.receipt-total span:first-child { font-weight: 800; }
.receipt-total span:last-child { font-family: var(--font-display); font-size: var(--s-display); line-height: .9; color: var(--mulberry); }
.receipt-buy { width: 100%; justify-content: center; min-height: 4rem; font-size: var(--s-body); }
.receipt-fine { color: var(--muted); }
.compare { grid-column: 1 / span 7; grid-row: 3; display: grid; gap: 1.5rem; padding-top: 2rem; }
.bars { display: grid; gap: 1.25rem; }
.bar-row { display: grid; gap: .5rem; }
.bar-row p { font-size: var(--s-small); font-weight: 600; }
.bar { width: calc(var(--w) * 100%); min-width: 6.5rem; height: 3.25rem; border-radius: 999px; background: var(--mulberry-dk); color: var(--paper); display: flex; align-items: center; padding: 0 1.25rem; font-weight: 800; transform-origin: left center; }
.is-us .bar { background: var(--saffron); color: var(--ink); }
.compare-note { color: var(--muted); }
.offer .pay-note { grid-column: 9 / span 4; grid-row: 3; display: grid; gap: .5rem; align-self: end; }
.book-card { --bg-here: var(--sage-soft); grid-column: 1 / span 5; grid-row: 2; align-self: end; background: var(--sage-soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
.book-price { font-family: var(--font-display); font-size: var(--s-head); line-height: 1; color: var(--sage); }
.book-card .moons li { font-weight: 500; }
.book-buy { justify-content: center; }
.pill-quiet { background: var(--sage); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .pill-quiet:hover { background: #1F4B47; } }
.book-fine { color: var(--muted); }
.receipt-flag { justify-self: start; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: var(--s-small); padding: .45rem 1rem; border-radius: 999px; }
.pay-methods { font-weight: 700; }
.pay-note .small { color: var(--muted); max-width: 58ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .compare .bar { transform: scaleX(.02); transition: transform 1200ms var(--ease-out); }
  .js .compare .bar-row:nth-child(2) .bar { transition-delay: 150ms; }
  .js .compare .bar-row:nth-child(3) .bar { transition-delay: 300ms; }
  .js .compare.is-in .bar { transform: none; }
}

/* FAQ: index cards in a drawer */
.faq { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.faq h2 { grid-column: 3 / span 8; }
.drawer { grid-column: 3 / span 8; display: grid; }
.card { --tab-w: 200px; position: relative; background: var(--c); border-radius: 0 var(--radius) var(--radius) var(--radius); margin-top: 3.25rem; padding-top: 2rem; }
.card:first-child { margin-top: 2.75rem; }
.card::before { content: ""; position: absolute; left: calc(var(--n) * 96px); top: -2.5rem; width: var(--tab-w); height: 2.6rem; background: var(--c); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.card-head { display: grid; width: 100%; text-align: left; padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2.25rem; gap: .5rem; }
.tab { position: absolute; top: -1.95rem; left: calc(var(--n) * 96px + 1.5rem); font-weight: 800; font-size: var(--s-small); color: var(--ink); }
.q { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.15; }
.card-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.card-a > div { overflow: hidden; }
.card-a p { padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2.5rem; max-width: 56ch; }
.card.is-open .card-a { grid-template-rows: 1fr; }
.card-head:active .q { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .card-head:hover .q { color: var(--mulberry); } }

/* CLOSE: the moon again, as a band */
.close { position: relative; overflow: clip; background: var(--mulberry); color: var(--on-dark); padding: var(--section) var(--margin); min-height: 34rem; display: grid; align-items: center; isolation: isolate; }
.close-film { position: absolute; z-index: -1; width: min(34rem, 40vw); aspect-ratio: 1; right: 6vw; top: 50%; translate: 0 -50%; border-radius: 50%; overflow: hidden; background: #000; }
.close-film video { width: 100%; height: 100%; object-fit: cover; }

.close-copy { display: grid; gap: 1.5rem; max-width: 40rem; }
.close-copy .lead { max-width: 28ch; }
.close-copy .pill { justify-self: start; }

/* FOOTER: the mark built from blocks */
.foot { background: var(--paper); padding: clamp(3rem, 7vw, 6rem) var(--margin) 2rem; display: grid; gap: 3.5rem; }
.blocks { height: 34svh; min-height: 12rem; display: flex; align-items: flex-end; gap: 4px; }
.blocks span { flex: 1; height: var(--h); background: var(--c); color: var(--ink, var(--paper)); border-radius: 6px; display: grid; place-items: end center; font-family: var(--font-display); font-size: var(--s-display); line-height: .8; padding-bottom: .12em; color: var(--paper); }
.blocks span[style*="--ink"] { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.foot-links { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; font-weight: 600; font-size: var(--s-small); align-content: start; }
.foot-note { grid-column: 8 / span 5; display: grid; gap: 1rem; color: var(--muted); }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); }

/* sticky buy bar on phones */
.buybar { position: fixed; z-index: 20; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 1rem; background: var(--mulberry-dk); color: var(--paper); border-radius: 999px; padding: .4rem .4rem .4rem 1.25rem; font-weight: 700; font-size: var(--s-small); transform: translateY(160%); transition: transform 420ms var(--ease-out); }
.buybar .pill { background: var(--saffron); color: var(--ink); }
.buybar.is-up { transform: none; }

/* checkout dialog */
.checkout { width: min(32rem, calc(100vw - 2rem)); border: 0; border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); background: var(--paper); color: var(--ink); }
.checkout::backdrop { background: rgba(42, 20, 32, .62); }
.checkout[open] { animation: rise 420ms var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.co-x { display: flex; justify-content: flex-end; margin: -.25rem -.25rem .5rem 0; }
.co-x button { font-weight: 700; font-size: var(--s-small); padding: .5rem .75rem; border-radius: 999px; background: var(--blush); }
.co-body { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.co-img { border-radius: 8px; }
.co-price { font-family: var(--font-display); font-size: var(--s-head); line-height: 1; color: var(--mulberry); margin: .25rem 0 .5rem; }
.co-pay { display: grid; gap: .75rem; }
.co-card { width: 100%; justify-content: center; padding: 0 1rem; white-space: normal; text-align: center; }
.co-or { text-align: center; color: var(--muted); font-weight: 600; font-size: var(--s-small); }
.co-paypal { min-height: 3rem; }
.co-msg:empty { display: none; }
.co-msg { color: var(--mulberry-dk); font-weight: 700; margin-top: .75rem; }
.co-fine { color: var(--muted); margin-top: 1rem; }
.co-pay[data-state="busy"] { opacity: .55; pointer-events: none; }

/* motion layer */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 120ms + 250ms); }
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
  .js .hero-shape .moon { animation: moon-in 1400ms var(--ease-out) both; }
  .js .hero-shape .eclipse { animation: eclipse-in 1800ms var(--ease-in-out) 150ms both; }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out) 350ms; }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1600ms var(--ease-soft) 350ms; }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes moon-in { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eclipse-in { from { transform: translate(-18%, 14%); } to { transform: none; } }

/* tablet */
@media (max-width: 64em) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-kit { width: 58vw; right: -4vw; }
  .inside-list { grid-column: 1 / span 5; }
  .disc-stage { grid-column: 6 / span 7; }
  .inside-fact { grid-column: 1 / -1; grid-row: 2; }
  .faq h2, .drawer { grid-column: 1 / -1; }
  .voices-head h2, .voices-head p { grid-column: 1 / -1; }
  .fixes-copy, .fix-list { grid-column: 1 / span 7; }
  .fix-view { grid-column: 8 / span 5; }
  .offer-copy, .receipt, .compare, .offer .pay-note, .book-card { grid-column: 1 / -1; grid-row: auto; }
  .receipt { order: 2; } .book-card { order: 3; } .compare { order: 4; } .offer .pay-note { order: 5; }
  .check-copy, .ticks { grid-column: 1 / -1; position: static; }
  .proof-num { grid-column: 1 / -1; }
}

/* tablet hero: the kit drops below the words */
@media (max-width: 63.99em) {
  .hero { min-height: auto; display: flex; flex-direction: column; padding-bottom: 0; }
  .hero-copy { order: 1; }
  .hero-kit { order: 2; }
  .hero-shape { width: 120vw; height: 120vw; left: -10vw; top: auto; bottom: -47vw; }
  .hero-kit { position: relative; width: 92%; margin: 2rem auto 0; right: auto; top: auto; translate: none; }
  .top-links .link { color: var(--ink); }
}

/* phone: its own composition */
@media (max-width: 47.99em) {
  :root { --radius: 22px; --s-display: clamp(2.9rem, 13vw, 4rem); }
  .wide-only { display: none; }
  .top { padding: 1rem; }
  .mark { font-size: var(--s-body); line-height: 1.1; }
  .top-links .pill { background: var(--mulberry); }
  .hero { min-height: auto; padding: 6.5rem 1rem 0; }
  .hero-shape { width: 130vw; height: 130vw; left: -15vw; top: auto; bottom: -50vw; }
  .hero-copy { padding-top: 0; gap: 1.25rem; }
  .hero-kit { position: relative; width: 112%; margin: 3.5rem -6% 0; right: auto; top: auto; translate: none; }
  .top-links .link { color: var(--ink); }
  .brush { padding: 5rem 1rem; }
  .brush-intro, .brush-grid { display: grid; grid-template-columns: 1fr; }
  .brush-intro h2, .brush-intro p, .brush-list, .say { grid-column: 1; }
  .brush-list { display: flex; flex-wrap: wrap; gap: .5rem; }
  .brush-list button { background: var(--paper); font-size: var(--s-body); padding: .6rem 1rem .65rem; }
  .brush-list button[aria-selected="true"] { background: var(--mulberry-dk); color: var(--paper); }
  .say { min-height: 22rem; }
  .check { padding: 5rem 1rem; grid-template-columns: 1fr; }
  .check-copy, .ticks { grid-column: 1; position: static; }
  .ticks { grid-row: 2; }
  .result { grid-row: auto; }
  .ticks label { padding: .85rem 1rem; }
  .inside { padding: 5rem 1rem; grid-template-columns: 1fr; min-height: auto; row-gap: 1.5rem; }
  .disc-stage { grid-column: 1; grid-row: 1; width: 86vw; justify-self: center; }
  .inside-list { grid-column: 1; grid-row: 2; min-width: 0; }
  .names { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
  .names button[aria-selected="true"] { transform: none; }
  .inside-fact { grid-column: 1; grid-row: 3; }
  .pagesrow { padding: 5rem 0; }
  .pagesrow-head { padding: 0 1rem; }
  .reel figure { width: 68vw; }
  .reel-track { padding-left: 1rem; }
  .proof { padding: 5rem 1rem; grid-template-columns: 1fr; }
  .proof-num, .proof-cols { grid-column: 1; }
  .proof-cols { grid-template-columns: 1fr; }
  .faq { padding: 5rem 1rem; grid-template-columns: 1fr; }
  .voices { padding: 5rem 0; }
  .voices-head { padding: 0 1rem; }
  .rail-track { padding: 0 1rem .5rem; scroll-padding-inline: 1rem; }
  .thread { width: 84vw; padding: 1.25rem; }
  .rail-nav { padding: 0 1rem; }
  .fixes { padding: 5rem 1rem; grid-template-columns: 1fr; row-gap: 1.5rem; }
  .fixes-copy, .fix-list, .fix-view { grid-column: 1; grid-row: auto; }
  .fix-view { position: static; width: 78vw; justify-self: center; order: 1; }
  .fix-list { order: 2; }
  .fix { padding: .75rem 1rem; }
  .offer { padding: 5rem 1rem; grid-template-columns: 1fr; }
  .receipt { padding: 1.25rem; }
  .receipt-lines li { font-size: var(--s-small); }
  .card::before { left: calc(var(--n) * 34px); width: 130px; }
  .tab { left: calc(var(--n) * 34px + 1.1rem); }
  .close { padding: 6rem 1rem 16rem; min-height: auto; }
  .close-film { width: 22rem; right: -4rem; top: auto; bottom: -7rem; translate: none; }
  .foot { padding: 3rem 1rem 6rem; }
  .blocks { height: 22svh; min-height: 9rem; gap: 3px; }
  .blocks span { border-radius: 4px; }
  .foot-links, .foot-note { grid-column: 1 / -1; }
  .buybar { display: flex; }
}

/* reduced motion: fewer and gentler, not none */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; transition: opacity 700ms ease; transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; }
  .js [data-rise] { opacity: 0; animation: fade-in 800ms ease forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .hero-shape .moon, .js .hero-shape .eclipse { animation: fade-in 900ms ease both; }
}
@keyframes fade-in { to { opacity: 1; } }

/* OFFER v4: two plans side by side, the kit dark and dominant */
.offer { row-gap: 2rem; }
.offer-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.offer-head p { max-width: 46ch; }
.plans { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: stretch; }
.plan { border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.5rem); display: flex; flex-direction: column; gap: .9rem; position: relative; overflow: hidden; }
.plan-kit { --bg-here: var(--mulberry-dk); background: var(--mulberry-dk); color: var(--on-dark); }
.plan-book { --bg-here: var(--paper); background: var(--paper); }
.plan-img { width: 100%; height: auto; margin: -.5rem 0 -.25rem; transition: transform 700ms var(--ease-out); }
.plan-book .plan-img { width: 78%; align-self: center; }
@media (hover: hover) and (pointer: fine) { .plan:hover .plan-img { transform: translateY(-6px) rotate(-.6deg); } }
.flag { align-self: flex-start; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: var(--s-small); padding: .5rem 1.1rem; border-radius: 999px; }
.plan-name { font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.1; }
.vlines { display: grid; gap: .35rem; }
.vlines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 1rem; border-radius: 14px; background: rgba(251, 246, 242, .07); font-weight: 500; }
.vlines b { font-weight: 800; white-space: nowrap; color: var(--on-dark); }
.vlines .is-free { background: rgba(227, 164, 58, .16); }
.vlines .is-free b { color: var(--saffron); text-transform: none; }
.total { display: grid; justify-items: start; gap: .35rem; margin-top: .4rem; }
.plan-sub { color: var(--on-dark-2); margin-top: -.4rem; }
.best-for { font-size: var(--s-small); color: var(--muted); background: var(--sage-soft); border-radius: 14px; padding: .8rem 1rem; }
.best-for b { color: var(--sage); }
.total .was { font-weight: 700; color: var(--on-dark-2); display: flex; align-items: center; gap: .6rem; max-width: none; line-height: 1; }
.total .was s { font-family: var(--font-display); font-weight: 400; font-size: var(--s-sub); line-height: 1; color: var(--on-dark-2); text-decoration-thickness: 2px; text-decoration-color: var(--saffron); }
.nowrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; max-width: none; }
.total .save { background: var(--saffron); color: var(--ink); font-weight: 800; font-size: var(--s-body); padding: .45rem 1.1rem; border-radius: 999px; }
.cmp-row a { color: inherit; }
.total .now { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 5vw, 7rem); line-height: .85; color: var(--saffron); }
.plan-buy { width: 100%; justify-content: center; min-height: 3.75rem; margin-top: auto; }
.plan-fine { font-size: var(--s-small); color: var(--on-dark-2); text-align: center; }
.plan-book .plan-fine { color: var(--muted); }
.plan-book .book-price { font-family: var(--font-display); font-size: var(--s-head); line-height: 1; color: var(--sage); }
.plan-book .moons li { font-weight: 500; }

.assure { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gutter); align-items: stretch; }
.guarantee { --bg-here: var(--paper); background: var(--paper); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.guarantee .small { color: var(--ink); }
.seal { width: 6.5rem; height: 6.5rem; border-radius: 50%; background: var(--saffron); display: grid; place-content: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.seal::after { content: ""; position: absolute; z-index: -1; width: 92%; height: 92%; right: -38%; top: -30%; border-radius: 50%; background: #F0B95A; }
.seal-n { font-family: var(--font-display); font-size: 2.6rem; line-height: .9; color: var(--mulberry-dk); }
.seal-t { font-weight: 800; font-size: var(--s-small); color: var(--mulberry-dk); }
.cmp { background: rgba(255, 255, 255, .45); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .45rem; align-content: center; }
.cmp-t { font-weight: 800; }
.cmp-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--s-small); }
.cmp-row b { white-space: nowrap; }
.cmp-row.is-us { color: var(--mulberry); font-weight: 700; }
.cmp-row.is-us b { background: var(--saffron); color: var(--ink); padding: .2rem .7rem; border-radius: 999px; line-height: 1.4; flex: none; }
.paywith { border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .4rem; align-content: center; background: rgba(255, 255, 255, .45); }
.paywith .small { color: var(--muted); }
.offer-note { grid-column: 1 / -1; color: var(--muted); max-width: 90ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .guarantee .seal { opacity: 0; }
  .js .guarantee.is-in .seal { animation: seal-in 900ms var(--ease-out) 250ms both; }
}
@keyframes seal-in { from { transform: rotate(-30deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* the latte comparison */
.latte { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; background: rgba(251, 246, 242, .07); border-radius: 14px; padding: .8rem 1rem; }
.latte p { font-size: var(--s-body); color: var(--on-dark-2); }
.latte b { color: var(--paper); }
.cups { display: grid; grid-template-columns: repeat(5, 1.6rem); gap: .25rem .3rem; color: var(--saffron); }
.cup svg { width: 1.6rem; height: 1.6rem; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .plan-kit .cup { opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 500ms var(--ease-out); transition-delay: calc(var(--i) * 70ms + 300ms); }
  .js .plan-kit.is-in .cup { opacity: 1; transform: none; }
}

/* the check: two questions */
.ticks fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; min-width: 0; }
.ticks .q-sym { margin-top: 1.75rem; }
.ticks legend { padding: 0; margin-bottom: .75rem; font-family: var(--font-display); font-size: var(--s-sub); line-height: 1.2; color: var(--paper); }
.q-k { display: block; font-family: var(--font-text); font-size: var(--s-small); font-weight: 800; color: var(--saffron); margin-bottom: .2rem; }
.ages { display: flex; flex-wrap: wrap; gap: .5rem; }
.ticks label.age { display: inline-flex; grid-template-columns: none; padding: 0; background: none; }
.age span { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.15rem; border-radius: 999px; background: rgba(251, 246, 242, .1); font-weight: 700; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.age input:checked + span { background: var(--saffron); color: var(--ink); }
.age input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 3px; }
.age:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .age:hover span { background: rgba(251, 246, 242, .18); } .age input:checked + span { background: var(--saffron); } }
.age-note { background: rgba(251, 246, 242, .1); border-radius: 14px; padding: .8rem 1rem; font-size: var(--s-small); color: var(--sage-soft); }

/* the check's verdict */
.verdict { display: grid; gap: .75rem; background: rgba(251, 246, 242, .1); border-radius: var(--radius); padding: 1.25rem; }
.verdict-t { line-height: 1.45; }
.verdict-t b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--s-sub); line-height: 1.15; color: var(--saffron-soft); margin-bottom: .35rem; }
.notin { display: grid; gap: .35rem; margin-top: .25rem; }
.notin li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border-radius: 14px; background: var(--blush); color: var(--muted); font-size: var(--s-small); }
.notin li span { text-decoration: line-through; text-decoration-color: rgba(95, 74, 86, .5); }
.notin b { white-space: nowrap; font-weight: 700; }
.verdict .pill { justify-self: start; }

@media (max-width: 63.99em) {
  .plans { grid-template-columns: 1fr; }
  .assure { grid-template-columns: 1fr; }
}
@media (max-width: 47.99em) {
  .guarantee { grid-template-columns: 1fr; justify-items: start; }
  .vlines li { font-size: var(--s-small); padding: .65rem .85rem; }
  .total .now { font-size: 4.2rem; }
}
.ticks label.age:has(input:checked) { background: none; }

/* ================= PREMIUM LAYER: curved sheets, reading effects, mobile typography ================= */

/* every section after the hero slides over the one before it, with a crescent-soft curved top */
:root { --arc: clamp(28px, 6vw, 88px); }
main > section:not(.hero), .foot { position: relative; border-radius: var(--arc) var(--arc) 0 0; margin-top: calc(-1 * var(--arc)); }
.fixes, .inside, .faq, .foot { background: var(--paper); }
.voices { z-index: 1; } .fixes { z-index: 2; } .brush { z-index: 3; } .check { z-index: 4; } .inside { z-index: 5; }
.pagesrow { z-index: 6; } .proof { z-index: 7; } .offer { z-index: 8; } .faq { z-index: 9; } .close { z-index: 10; } .foot { z-index: 11; }
.check-copy { top: calc(var(--arc) + 1rem); }

/* reading progress, in the accent, along the very top */
.progress { position: fixed; z-index: 30; left: 0; top: 0; height: 3px; width: 100%; background: var(--saffron); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* section headings rise in word by word */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .split .w { transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--k) * 55ms); }
  .js .split.words-in .w { transform: none; }
}

/* key paragraphs light up word by word as you read down the page */
.rd { transition: opacity 250ms linear, color 250ms linear; }
.js [data-read] .rd { opacity: .28; }
.js [data-read] .rd.on { opacity: 1; }

/* ================= phones ================= */
@media (max-width: 47.99em) {
  body { font-size: 1.0625rem; line-height: 1.62; font-weight: 500; letter-spacing: .003em; padding-bottom: 5.5rem; }
  h1, h2, h3 { letter-spacing: -0.01em; }
  .display { letter-spacing: -0.02em; line-height: 1; }
  .head { font-size: 2.45rem; line-height: 1.05; }
  .small { font-size: .9375rem; line-height: 1.55; }
  p { color: inherit; }

  /* the display face stays for real headings; smaller titles switch to the text face, bold */
  .fix-t, .names button, .names-title, .q, .fact-title, .band, .brush-list button, .tile-name, .ticks legend {
    font-family: var(--font-text); font-weight: 800; letter-spacing: -0.01em;
  }
  .fix-t { font-size: 1.12rem; line-height: 1.3; }
  .q { font-size: 1.12rem; line-height: 1.35; }
  .band { font-size: 1.15rem; line-height: 1.4; }
  .names-title { font-size: 1rem; color: var(--muted); }
  .names button { font-size: 1.05rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(42, 20, 32, .05); }
  .names button[aria-selected="true"] { background: var(--mulberry-dk); color: var(--paper); }
  .names button[aria-selected="true"]::before { display: none; }
  .names { gap: .4rem; }
  .fact-title { font-size: 1.2rem; }
  .ticks legend { font-size: 1.15rem; line-height: 1.35; }
  .brush-list button { font-size: 1rem; }
  .say-quote { font-size: 1.45rem; line-height: 1.28; }
  .verdict-t b { font-size: 1.35rem; }

  /* headings and intros centred, lists and tools stay left for easy reading */
  .voices-head, .fixes-copy, .brush-intro, .check-copy > h2, .check-copy > p:first-of-type, .pagesrow-head, .offer-head, .faq > h2, .close-copy, .proof-num { text-align: center; justify-items: center; }
  .voices-head p, .fixes-copy p, .brush-intro p, .check-copy > p:first-of-type, .pagesrow-head p, .offer-head p, .close-copy .lead, .proof-num .lead { margin-inline: auto; }
  .pagesrow-head, .offer-head { flex-direction: column; align-items: center; }
  .close-copy .pill { justify-self: center; }
  .rail-nav { justify-content: center; }
  .brush-list { justify-content: center; }
  .inside-list { text-align: center; } .names { justify-content: center; }
  .inside-fact { justify-items: center; text-align: left; }
  .score { justify-content: center; }
  .fix-view figcaption { text-align: center; }

  /* "What it fixes": compact rows, the detail opens only on the chosen one */
  .fix { padding: .7rem 1rem; }
  .fix-d { display: none; }
  .fix[aria-pressed="true"] .fix-d { display: block; }
  .fix-list { gap: .1rem; }

  /* small polish */
  .thread { border-radius: 26px; }
  .bubble.her { font-size: 1rem; }
  .plan { padding: 1.4rem; }
  .total .now { font-size: 4.6rem; }
  .hero-note { font-size: .95rem; }
}

/* phones: the check reads question first, result after; the page preview sits on a paper stack */
@media (max-width: 47.99em) {
  .check { display: flex; flex-direction: column; gap: 2rem; }
  .check-copy { display: contents; }
  .check-copy > h2 { order: 1; text-align: center; }
  .check-copy > p:first-of-type { order: 2; text-align: center; margin-top: -1rem; }
  .ticks { order: 3; }
  .result { order: 4; background: rgba(251, 246, 242, .08); border-radius: 26px; padding: 1.5rem 1.25rem; }
  .score { justify-content: flex-start; }
  .fix-frame { width: 80%; margin: 8% 0; }
  .fix-frame::before { left: auto; top: auto; inset: 7% -6% -5% 9%; width: auto; aspect-ratio: auto; translate: none; border-radius: 16px; }
  .fix-frame img { border-radius: 12px; }
}
