/* ---------------------------------------------------------------------------
 * Birth Blooms — site styles. Built on tokens.css; every value comes from the
 * scale (P-19). Structure first, surface second (P-07).
 * ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 84, "SOFT" 24, "WONK" 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-5); }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-2); letter-spacing: -0.012em; font-variation-settings: "opsz" 36, "SOFT" 20, "WONK" 0; }
p  { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Eyebrow — real small-caps letterspacing, 5–12%+ on caps only (P-11). */
.eyebrow {
  font-size: var(--t--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stem);
  margin: 0 0 var(--s-4);
}

.lede { font-size: var(--t-1); line-height: 1.45; color: var(--ink-soft); }
.fine { font-size: var(--t--1); color: var(--ink-faint); line-height: 1.5; }

/* ------------------------------------------------------------ action pyramid */
/* One primary, solid, in the accent. The accent appears nowhere else (P-38, P-20). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: var(--s-3) var(--s-6);
  font-family: var(--body); font-size: var(--t-0); font-weight: 600; letter-spacing: 0.005em;
  border: 1px solid transparent; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--lift-1); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: var(--lift-2); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--paper-edge); }
.btn--secondary:hover { border-color: var(--ink-faint); }
.btn--wide { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn--primary:hover { transform: none; } }

/* ------------------------------------------------------------------- header */
/* Attention ratio ~1: wordmark + the one CTA. No multi-item nav (P-46). */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-head[data-scrolled] { border-bottom-color: var(--border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; color: var(--stem); flex: none; }
.wordmark b {
  font-family: var(--display); font-weight: 400; font-size: var(--t-1);
  letter-spacing: -0.005em; font-variation-settings: "opsz" 30, "SOFT" 30, "WONK" 1;
}
.site-head .btn { min-height: 44px; padding-inline: var(--s-5); font-size: var(--t--1); white-space: nowrap; }
/* Mobile pass (P-03): the price is the first thing to go from the header button —
   it is already in the hero copy and on the sticky bar, and keeping it here wraps
   the label onto two lines at 390px. Hide, don't shrink. */
@media (max-width: 560px) {
  .site-head .btn { padding-inline: var(--s-4); font-size: 0.8125rem; }
  .cta-price { display: none; }
  .wordmark b { font-size: var(--t-0); }
}

/* --------------------------------------------------------------------- hero */
.hero { padding-block: var(--s-8) var(--s-9); }
.hero__grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-8); align-items: center; }
}
/* One leverage point: the memorable line dominates, the descriptive line
   supports it at ~60% (P-02, P-20 — contrast by size AND colour, not size alone). */
.hero h1 { max-width: 15ch; }
.hero h1 .say { display: block; }
.hero h1 .say--2 {
  font-size: .58em; color: var(--ink-soft); margin-top: .38em;
  letter-spacing: -0.008em; max-width: 24ch;
}
.hero .lede { margin-top: var(--s-5); }

/* product-in-action, lit from above (P-13, P-23) */
.shot { position: relative; }
.shot img { width: 100%; }  /* the sheet carries its own light-from-above shadow */
.shot figcaption { margin-top: var(--s-4); font-size: var(--t--1); color: var(--ink-faint); text-align: center; }

/* --------------------------------------------------------------------- quiz */
/* Progressive disclosure, persistent labels, expectations set (P-47). */
.quiz {
  margin-top: var(--s-6); padding: var(--s-6);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
}
.quiz h2 { font-size: var(--t-2); letter-spacing: -0.012em; font-variation-settings: "opsz" 36, "SOFT" 20, "WONK" 0; }
.quiz__sub { margin-top: var(--s-2); color: var(--ink-soft); font-size: var(--t--1); }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-5); list-style: none; padding: 0; }
@media (min-width: 560px) { .months { grid-template-columns: repeat(4, 1fr); } }
.month-btn {
  width: 100%; min-height: 46px; padding: var(--s-2) var(--s-1);
  font-family: var(--body); font-size: var(--t--1); font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper-edge); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.month-btn:hover { border-color: var(--ink-faint); }
.month-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.quiz__step2[hidden] { display: none; }
.quiz__step2 { margin-top: var(--s-5); border-top: 1px solid var(--border); padding-top: var(--s-5); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: var(--t--1); font-weight: 600; margin-bottom: var(--s-2); }
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font-family: var(--body); font-size: var(--t-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper-edge); border-radius: var(--r-sm);
}
.field input::placeholder { color: var(--ink-faint); }
.risk { margin-top: var(--s-3); font-size: var(--t--1); color: var(--ink-faint); }
.quiz__done { margin-top: var(--s-5); }
.quiz__done ul { margin: var(--s-4) 0 0; padding-left: 1.1em; color: var(--ink-soft); font-size: var(--t--1); }
.quiz__done li { margin-bottom: var(--s-2); }
.err { color: var(--accent); font-size: var(--t--1); margin-top: var(--s-3); }

/* ------------------------------------------------------------- facts / proof */
/* Verifiable facts, not testimonials — we have no customers yet, so we claim none. */
.facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: center; list-style: none; margin: 0; padding: 0; }
.facts li { font-size: var(--t--1); color: var(--ink-soft); display: flex; align-items: baseline; gap: var(--s-2); }
.facts b { font-family: var(--display); font-weight: 400; font-size: var(--t-1); font-variation-settings: "opsz" 28, "WONK" 1; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- features */
.feature { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-8); }
.feature + .feature { border-top: 1px solid var(--border); }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); }
  .feature--flip .feature__media { order: -1; }
}
.feature h3 { margin-bottom: var(--s-4); }
.feature__media img { border-radius: var(--r-md); box-shadow: var(--lift-2); }
.feature__media--plain img { box-shadow: none; }

/* ------------------------------------------------------------------ pricing */
.buy { background: var(--surface-2); border-block: 1px solid var(--border); }
.buy__grid { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .buy__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-9); align-items: center; } }
.price { font-family: var(--display); font-weight: 300; font-size: var(--t-4); font-variation-settings: "opsz" 60, "SOFT" 24, "WONK" 1; font-variant-numeric: tabular-nums; }
.manifest { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.manifest li { display: grid; grid-template-columns: 2.4em 1fr; gap: var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--border); font-size: var(--t--1); }
.manifest li b { font-family: var(--display); font-weight: 400; font-size: var(--t-1); font-variant-numeric: tabular-nums; }
.manifest li span { color: var(--ink-soft); }

/* --------------------------------------------------------------- note + faq */
.note { border-left: 2px solid var(--stem); padding-left: var(--s-5); }
.faq { max-width: 78ch; }
.faq details { border-top: 1px solid var(--border); padding-block: var(--s-4); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: var(--s-3); color: var(--ink-soft); }

/* ------------------------------------------------------------------- footer */
.site-foot { padding-block: var(--s-7); border-top: 1px solid var(--border); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; }
/* Standalone links are controls, so they clear the 44px touch floor. Links inside
   a sentence are exempt (WCAG 2.5.8 inline exception) and stay inline. */
.site-foot a { color: var(--ink-faint); text-decoration: none; font-size: var(--t--1); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot nav { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s-2); }
.wordmark { min-height: 44px; }

/* --------------------------------------------------------------- sticky CTA */
/* Reachable at any scroll depth — the mobile-critical half of P-46. */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--border); backdrop-filter: blur(8px);
  display: none;
}
.sticky-cta[data-show] { display: block; }
@media (min-width: 860px) { .sticky-cta { display: none !important; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===========================================================================
 * CRAFT LAYER
 * Patterns adapted from the BYQ section library (byq.supply) — pill CTA with a
 * sliding icon and the three-copy infinite marquee from `cultureexchange-hero-1`,
 * the scroll-expand image frame with a caption pill from `babka-hero-7`, the
 * staggered scroll reveals from `nextwell-hero-6`, the eyebrow-with-dot from
 * `kelvin-faq-1`, and the rounded-card accordion from `reforma-faq-1`.
 * Structure and interaction are theirs; every colour, font and spacing value is
 * this project's token — which is what BYQ's own integration notes ask for.
 * ======================================================================== */

/* -- Grain. Felt, not seen: fills flat surfaces and stops the paper reading
      like a flat #fff rectangle (P-25 ext). Kept far below the contrast floor. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { opacity: .055; } }
body > * { position: relative; z-index: 1; }

/* -- Eyebrow becomes a pill with a stem-coloured dot. ---------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  letter-spacing: 0.16em;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--stem); flex: none;
}

/* -- Buttons: pill, with an arrow that settles forward on hover. ----------- */
.btn { border-radius: var(--r-pill); gap: var(--s-3); }
.btn__icon { display: inline-flex; width: 15px; height: 15px; flex: none; overflow: hidden; }
.btn__icon svg { width: 100%; height: 100%; transition: transform .4s var(--ease-out); }
.btn:hover .btn__icon svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn__icon svg { transition: none; } }

/* -- Staggered reveal. One utility, one observer. -------------------------- */
/* Scoped to .js — set by an inline script in <head>. Without JS the content is
   simply visible, rather than hidden forever by a transition that never runs. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease-out) var(--d, 0ms), transform .85s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -- The marquee: the twelve sheets, moving. ------------------------------- */
.marquee { overflow: hidden; padding-block: var(--s-7); }
.marquee__mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: bb-marquee var(--marquee-duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: var(--s-6); flex: none; padding-right: var(--s-6); }
.marquee__set img { width: 268px; height: auto; flex: none; }
@media (max-width: 700px) { .marquee__set img { width: 190px; } }
@keyframes bb-marquee { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__mask { -webkit-mask-image: none; mask-image: none; }
  .marquee { overflow-x: auto; }
}

/* -- Metadata rule: three small facts spread across the full measure. ------ */
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  font-size: var(--t--1); color: var(--ink-faint);
  padding-block: var(--s-4); border-top: 1px solid var(--border);
}
.meta-row b {
  font-family: var(--display); font-weight: 400; font-size: var(--t-0);
  color: var(--ink); font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) { .meta-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

/* -- Scroll-expand frame: opens from 62% to full as it enters view. -------- */
.expand { display: flex; justify-content: center; }
.expand__frame {
  position: relative; width: 62%; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--lift-2);
  transition: width .95s var(--ease-out), border-radius .95s var(--ease-out);
}
.expand__frame[data-expanded] { width: 100%; }
.expand__frame img { width: 100%; }
.tag {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  font-size: var(--t--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.expand__frame[data-expanded] .tag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .expand__frame { width: 100%; transition: none; }
  .tag { opacity: 1; transform: none; transition: none; }
}

/* -- The twelve: a flower mark per row, tinted by currentColor. ------------ */
.bloom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bloom-row {
  display: grid; grid-template-columns: 54px 4.6em 1fr; align-items: center; gap: var(--s-4);
  padding-block: var(--s-4); border-top: 1px solid var(--border);
  transition: background-color .3s var(--ease);
}
.bloom-row:last-child { border-bottom: 1px solid var(--border); }
.bloom-row:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.bloom-mark {
  width: 42px; height: 42px; background-color: var(--ink-faint);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: .75; transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.bloom-row:hover .bloom-mark { opacity: 1; background-color: var(--ink); transform: scale(1.08); }
.bloom-month {
  font-family: var(--display); font-weight: 400; font-size: var(--t-1);
  font-variation-settings: "opsz" 30, "SOFT" 24, "WONK" 1;
}
.bloom-what { font-size: var(--t--1); color: var(--ink-soft); }
.bloom-what strong { color: var(--ink); font-weight: 600; }
.bloom-what em { font-style: italic; opacity: .78; }
@media (max-width: 640px) {
  .bloom-row { grid-template-columns: 34px 1fr; row-gap: var(--s-1); }
  .bloom-mark { width: 30px; height: 30px; grid-row: span 2; }
  .bloom-what { grid-column: 2; }
}

/* -- Accordion: rounded cards, a plus that rotates into a minus. ----------- */
/* Native <details>: keeps the semantics, the SEO and the no-JS fallback. The
   height animation is progressive — browsers without ::details-content just
   open instantly, which is a perfectly good outcome. */
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.faq details {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  padding: 0; margin-bottom: var(--s-3);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq details:hover { border-color: var(--ink-faint); }
.faq details[open] { background: var(--surface-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: var(--s-5) var(--s-5); min-height: 44px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker,
.faq summary::marker { display: none; content: ""; }
.faq summary::after { content: none; }
.faq .plus { position: relative; width: 16px; height: 16px; flex: none; color: var(--ink-faint); }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .38s var(--ease-out), opacity .38s var(--ease-out);
}
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); opacity: 0; }
.faq details p { margin: 0; padding: 0 var(--s-5) var(--s-5); color: var(--ink-soft); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
  .faq .plus::before, .faq .plus::after { transition: none; }
}

/* -- Section rhythm: a hairline that sits on the baseline, not a heavy rule. */
.section-head { max-width: 62ch; }
.section-head .eyebrow { margin-bottom: var(--s-5); }

/* -- The one centred beat: the drawing at full scale. ---------------------- */
.showcase { background: var(--surface-2); border-block: 1px solid var(--border); padding-block: var(--s-9); }
.showcase__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.showcase__art { width: min(440px, 72vw); height: auto; }
.showcase__copy { max-width: 56ch; margin-top: var(--s-6); }
.showcase__copy h3 { margin-bottom: var(--s-4); }
.showcase__copy p { margin-inline: auto; }

/* -- The offer, as a card rather than a band of text. ---------------------- */
.buy__card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-8); box-shadow: var(--lift-2);
}
@media (max-width: 700px) { .buy__card { padding: var(--s-6); } }
.buy .price {
  display: inline-block; font-size: var(--t-5); line-height: .95; margin-top: var(--s-2);
  font-variation-settings: "opsz" 120, "SOFT" 30, "WONK" 1;
}
.buy .manifest li:first-child { border-top: 0; }

/* The hero's caption uses the same pill as the scroll-expand frame, but it is
   present from the start — there is no reveal to wait for above the fold. */
.tag--static { opacity: 1; transform: none; }
.shot { position: relative; }
.shot .tag--static { position: absolute; left: var(--s-4); bottom: var(--s-4); }
