/*
 * Colour Press page layout for the home page (/) (DECISIONS D20; brief 2026-11-05 C s4 for the order). Markup: storefront/templates/storefront/home.html,
 * partials/press_home_hero.html and partials/home_*.html.
 * Loaded by the home page only ({% block page_css %} in home.html, after pages/storefront.css): every rule here is scoped to the home's own nl-home*
 * classes. Shared pieces come from press.css (docs/PRESS-KIT.md).
 * Rules: tokens only (no raw hex); every animation and transition inside @media (prefers-reduced-motion: no-preference); scroll-driven
 * effects also inside @supports (animation-timeline: view()) over a layout that works without them (storefront/tests/test_press.py).
 * Colour: one product colour per screen, behind type only. The hero band is a single-product state; the cards and the routine preview are
 * comparison views (colour in tabs, numerals and Dots only). The value feature sits on a Stone band.
 */

/* ===================================================================== */
/* 1. Hero: the product's colour band (type only) beside its photograph    */
/*    Phone and tablet: the square photograph, then the band. Desktop: two equal halves, the photograph filling its half, the band's copy      */
/*    grouped tight and centred on the half's height (no empty gap above the headline).                                                  */
/* ===================================================================== */
.nl-home-hero { position: relative; display: flex; flex-direction: column; }
.nl-home-hero__photo { position: relative; order: -1; background: var(--nl-tile); }
/* --hy: where the cover crop sits (a number, 0 to 1): the bulb / cap clear the top edge, the reflection's top stays in. --ft and --span are the photograph's own
   rows (fractions of its height, measured on the approved export): the cap / dropper top, and the distance from there to the start of the reflection (the base
   plus 5%). The desktop rule below uses them to keep the whole product in the pane at any pane shape. */
.nl-home-hero__fig { --hy: 0.3; --ft: 0.101; --span: 0.648; --hero-y: calc(var(--hy) * 100%); }
.nl-home-hero__fig[data-photo-slot="hero-ocean"] { --hy: 0.22; --ft: 0.08; --span: 0.608; }
.nl-home-hero__fig[data-photo-slot="hero-moo"] { --hy: 0.8; --ft: 0.279; --span: 0.482; }
.nl-home-hero__fig .nl-photo__frame { aspect-ratio: 1 / 1; }
.nl-home-hero__fig.nl-photo .nl-photo__frame .nl-photo__img:not(.nl-pair__img) { object-fit: cover; object-position: 50% var(--hero-y); }   /* fills the tile: the 4:5 photograph is cropped top and bottom only, ground and reflection, never the product */
.nl-home-hero__plate { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--nl-stone); }
.nl-home-hero__band { display: flex; flex-direction: column; gap: 24px; padding: 32px var(--nl-page-margin) 40px; }
.nl-home-hero__copy { display: grid; gap: 16px; }
.nl-home-hero__eyebrow { margin: 0; font: 600 0.9375rem/1.3 var(--nl-font-body); letter-spacing: 0.02em; }
/* The headline is the page's h1; the body is two sentences, set at reading size */
.nl-home-hero__line { margin: 0; font: 500 2.125rem/1.08 var(--nl-font-display); letter-spacing: -0.005em; text-wrap: balance; }
.nl-home-hero__lede { margin: 0; max-width: 40ch; font-size: var(--nl-text-body); line-height: 1.5; }
.nl-home-hero__buy { display: grid; gap: 16px; }
.nl-home-hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.nl-home-hero__row a.nl-btn { white-space: nowrap; }
.nl-home-hero__row .nl-btn { flex: 1 1 auto; padding-inline: 22px; }
.nl-home-hero__notes { display: grid; gap: 4px; font-size: var(--nl-text-body-sm); line-height: 1.45; }
.nl-home-hero__notes p { margin: 0; }
.nl-home-hero__promise a { color: inherit; font-weight: 600; text-underline-offset: 0.2em; }
/* The second link is a ghost on the band: the same Paper outline, filled on hover */
.nl-btn--band-ghost { background: transparent; color: var(--b-fg, var(--nl-paper)); border-color: var(--b-fg, var(--nl-paper)); }
.nl-btn--band-ghost:hover { background: var(--b-btn-bg, var(--nl-paper)); color: var(--b-btn-fg, var(--nl-ink)); border-color: var(--b-btn-bg, var(--nl-paper)); }
.nl-home-hero__closed { display: grid; gap: 6px; justify-items: start; }
.nl-home-hero__status { margin: 0; font-weight: 600; }
.nl-home-hero__closed .sf-signup__closed { margin: 0; }
@media (min-width: 600px) and (max-width: 989px) {
  .nl-home-hero__band { padding-block: 40px 48px; }
  .nl-home-hero__line { font-size: 2.5rem; }
  .nl-home-hero__lede { font-size: var(--nl-text-body-lg); max-width: 46ch; }
}
@media (min-width: 990px) {
  .nl-home-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
    /* The pane is shorter than the screen on purpose (advisor, 2026-11-06): 100svh less the announcement bar (36px) and the header, less a 90px peek
       so the next section's top shows above the fold at 1440 x 900, 1280 x 800 and 1536 x 864 (capped at 660px, about 17% under the old 800px). */
    height: clamp(520px, calc(100svh - var(--nl-header-h) - 126px), 660px);
  }
  .nl-home-hero__photo { order: 0; grid-column: 2; grid-row: 1; height: 100%; min-height: 0; }
  .nl-home-hero__fig { position: absolute; inset: 0; }
  .nl-home-hero__fig .nl-photo__frame { aspect-ratio: auto; height: 100%; container-type: size; }
  /* The picture covers the pane (the 4:5 photograph cropped top and bottom only) unless that would cut the product: its height is the cover height or the
     height at which the cap sits 40 px under the header and the start of the reflection 24 px above the pane's foot, whichever is smaller (a wide short pane,
     1920 x 800, shows the product whole with ground at its sides, the tile's own colour). Where the crop sits is --hy, held between those two limits. */
  .nl-home-hero__fig.nl-photo .nl-photo__frame .nl-photo__img:not(.nl-pair__img) {
    --himg: min(max(125cqw, 100cqh), (100cqh - 64px) / var(--span));
    position: absolute; inset: auto; left: 50%; translate: -50% 0; width: auto; max-width: none; height: var(--himg); object-fit: contain;
    top: calc(clamp(40px, var(--ft) * var(--himg) + var(--hy) * (100cqh - var(--himg)), 100cqh - var(--span) * var(--himg) - 24px) - var(--ft) * var(--himg));
  }
  .nl-home-hero__plate { aspect-ratio: auto; height: 100%; }
  /* One tight cluster (eyebrow, headline, body, links, the promise and shipping lines), centred on the half's height */
  .nl-home-hero__band { grid-column: 1; grid-row: 1; justify-content: center; gap: 32px; padding: 48px 56px 48px var(--nl-edge); }
  .nl-home-hero__line { font-size: clamp(2.25rem, 1.3rem + 2.2vw, 3.5rem); line-height: 1.04; }
  .nl-home-hero__lede { max-width: 38ch; font-size: var(--nl-text-body-lg); line-height: 1.5; }
  .nl-home-hero__row a.nl-btn { flex: 0 1 auto; }
}
@media (min-width: 990px) and (max-height: 700px) { .nl-home-hero__lede { font-size: var(--nl-text-body); line-height: 1.4; } .nl-home-hero__band { gap: 20px; } }
@media (min-width: 990px) and (max-width: 1199px) { .nl-home-hero__band { padding-inline-end: 32px; } }

/* The hero's waitlist, only when the hero product cannot be bought (the band links here; no form on a colour band) */
.nl-home-wait { display: grid; gap: 16px; }
.nl-home-wait .nl-subtitle { margin: 0; }

/* ===================================================================== */
/* 2. #find-your-routine: the heading, the finder, the three product cards */
/* ===================================================================== */
.nl-home-shop__lede { margin: 0; max-width: 56ch; }
@media (min-width: 990px) { .nl-home-shop .nl-sec-head > .nl-home-shop__lede { grid-column: 1 / span 8; } }
/* The giant wordmark behind the shelf (D25): one large wordmark, clipped to the section, behind its type. js/nl.js slides it sideways across the spare room over
   the scroll and keeps it near the screen's middle; without the script it rests centred. Narrower than the section so the whole word always shows (Leo 2026-11-05); the slide uses the spare room each side.
   Two treatments over the tissue. Shipped: (a), an Ink overlay at Medium opacity on top of the tissue (what Leo picked in the prototype).
   One-line switch to (b), a solid Stone shape in front that hides the tissue (a layer, depth; nearly invisible): --nl-giant-fill: var(--nl-stone); --nl-giant-opacity: 1; */
.nl-home-shop { --nl-giant-fill: var(--nl-ink); --nl-giant-opacity: var(--nl-bg-giant-opacity); position: relative; isolation: isolate; }
.nl-home-shop__giant { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center; overflow: clip; pointer-events: none; }
.nl-home-shop__giant i {
  flex: none; width: 88%; aspect-ratio: 4979 / 820; will-change: transform;
  -webkit-mask: url("../img/bg/wordmark.svg") center / 100% 100% no-repeat; mask: url("../img/bg/wordmark.svg") center / 100% 100% no-repeat;
  background: var(--nl-giant-fill); opacity: var(--nl-giant-opacity);
}
@media (max-width: 699px) { .nl-home-shop__giant i { width: 94%; } }   /* nearly the full width on phones; the whole word always shows */
@media print, (forced-colors: active) { .nl-home-shop__giant { display: none; } }

/* The three cards: one column on phones, three from 700px; each is a full card (picture, step, name, price line, sentence, links) */
.nl-home-cards { display: grid; gap: 40px var(--nl-grid-gutter); margin: 40px 0 0; padding: 0; list-style: none; }
.nl-home-cards > li { min-width: 0; display: flex; }
.nl-home-cards .nl-unit { width: 100%; }
.nl-home-card__step { margin: 0; font: 600 0.9375rem/1.2 var(--nl-font-body); font-variant-numeric: tabular-nums; }
.nl-home-card__price { margin: 0; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.nl-home-cards .nl-unit__line { margin: 0; font-size: var(--nl-text-body); line-height: 1.5; max-width: 44ch; }
.nl-home-cards .nl-unit__buy .nl-home-card__shop { width: 100%; }
@media (min-width: 700px) { .nl-home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; } }
@media (min-width: 990px) { .nl-home-cards { margin-top: 64px; } }
/* From 1200px tall the cards can share the first screen under the hero: there they show at once (nothing on the first screen fades in). */
@media (prefers-reduced-motion: no-preference) and (min-height: 1200px) { .nl-home-cards > [data-reveal] { animation: none; } }

/* ===================================================================== */
/* 3. The value feature: a Stone band, the kit's photograph beside its words */
/* ===================================================================== */
.nl-home-kit { margin-top: var(--nl-space-l); padding-block: var(--nl-space-m); }
.nl-home-kit__grid { display: grid; gap: 32px; align-items: center; }
.nl-home-kit__copy { display: grid; gap: 16px; justify-items: start; }
.nl-home-kit__copy .nl-lede-press { margin: 0; max-width: 44ch; }
.nl-home-kit__copy .nl-section-label { width: 100%; }
.nl-home-kit__offer { margin: 0; font-weight: 600; font-size: var(--nl-text-body-lg); font-variant-numeric: lining-nums tabular-nums; }
.nl-home-kit__act { margin: 8px 0 0; }
.nl-home-kit__act .nl-btn { white-space: normal; }
.nl-home-kit__note { display: grid; gap: 2px; font-size: var(--nl-text-body-sm); line-height: 1.45; }
.nl-home-kit__note p { margin: 0; }
.nl-home-kit__media { min-width: 0; }
@media (min-width: 990px) {
  .nl-home-kit { padding-block: var(--nl-space-m); }
  .nl-home-kit__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--nl-grid-gutter); }
  .nl-home-kit__media { grid-column: 1 / span 7; }
  .nl-home-kit__copy { grid-column: 8 / -1; }
}

/* ===================================================================== */
/* 4. Why Nuve Lume: three compact cards                                   */
/* ===================================================================== */
.nl-home-why { padding-top: var(--nl-space-l); }
.nl-home-head { display: grid; gap: 16px; }
.nl-home-head .nl-statement { max-width: 30ch; }
.nl-home-head .nl-lede-press { margin: 0; max-width: 50ch; }
.nl-home-why__list { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.nl-home-why__card { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 24px; background: var(--nl-stone); }
.nl-home-why__card p { margin: 0; max-width: 40ch; }
.nl-home-why__title { margin: 0; font: 500 var(--nl-text-subtitle)/var(--nl-lh-subtitle) var(--nl-font-display); }
@media (min-width: 750px) { .nl-home-why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nl-grid-gutter); } }
@media (min-width: 990px) { .nl-home-why__list { margin-top: 48px; } .nl-home-why__card { padding: 32px; } }

/* ===================================================================== */
/* 5. The ingredient teaser: one invitation                                */
/* ===================================================================== */
.nl-home-ingredients__grid { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--nl-hairline); }
.nl-home-ingredients__grid .nl-title { max-width: 18ch; }
.nl-home-ingredients__body { display: grid; gap: 24px; justify-items: start; align-content: start; }
.nl-home-ingredients__body .nl-lede-press { margin: 0; max-width: 52ch; }
@media (min-width: 990px) {
  .nl-home-ingredients__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--nl-grid-gutter); }
  .nl-home-ingredients__grid .nl-title { grid-column: 1 / span 5; }
  .nl-home-ingredients__body { grid-column: 7 / -1; }
}

/* ===================================================================== */
/* 6. The routine preview: all three steps side by side, no scrolling      */
/* ===================================================================== */
.nl-home-routine__steps { display: grid; gap: 40px var(--nl-grid-gutter); margin: 32px 0 0; padding: 0; list-style: none; }
.nl-home-routine .nl-rcard { width: auto; min-width: 0; }
.nl-home-routine .nl-rcard__name { margin: 0; font-size: inherit; line-height: 1; }
.nl-home-routine .nl-rcard__name a { color: inherit; text-decoration: none; }
.nl-home-routine .nl-rcard__name a:hover .nl-name__text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.nl-home-routine__more { margin: 32px 0 0; }
@media (min-width: 700px) { .nl-home-routine__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; } }

/* ===================================================================== */
/* 7. The guarantee module and the four questions; the newsletter          */
/* ===================================================================== */
.nl-home-promise__grid { display: grid; gap: 48px; }
.nl-home-promise__main { display: grid; gap: 16px; align-content: start; justify-items: start; }
.nl-home-promise__main .nl-title, .nl-home-promise__main .nl-lede-press { margin: 0; max-width: 38ch; }
.nl-home-promise__terms { margin: 0; max-width: 52ch; font-size: var(--nl-text-body-sm); line-height: 1.5; }
.nl-home-qs { display: grid; align-content: start; }
.nl-home-q { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--nl-hairline); }
.nl-home-q__q { margin: 0; font: 500 var(--nl-text-subtitle)/1.2 var(--nl-font-display); }
.nl-home-q > p { margin: 0; max-width: 58ch; }
.nl-home-qs > .nl-link { justify-self: start; margin-top: 12px; }
@media (min-width: 990px) {
  .nl-home-promise__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--nl-grid-gutter); }
  .nl-home-promise__main { grid-column: 1 / span 5; }
  .nl-home-qs { grid-column: 7 / -1; }
}
.nl-home-signup .sf-signup { padding-top: 14px; border-top: 1px solid var(--nl-hairline); }
.nl-home-signup .sf-signup__heading { font: 500 var(--nl-text-title)/var(--nl-lh-title) var(--nl-font-display); }
@media (min-width: 990px) {
  .nl-home-signup .sf-signup { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--nl-grid-gutter); align-items: start; }
  .nl-home-signup .sf-signup__heading, .nl-home-signup .sf-signup__intro { grid-column: 1 / span 5; }
  .nl-home-signup .sf-signup__form { grid-column: 7 / -1; grid-row: 1 / -1; }
}

/* The ritual band (D70, 2026-11-06): stock photograph beside "A little time for you." The copy sits beside the picture, never over the hands.
   From 990 px: the picture takes 7 of 12 columns at 16:10 and the copy is centred beside it. Below: picture first (1:1 below 768 px through the
   registry's phone pairing, 16:10 from 768 px), copy under it. Colours and type are the existing classes'. */
.nl-home-ritual__grid { display: grid; gap: var(--nl-space-s); align-items: center; }
.nl-home-ritual__copy { display: grid; gap: 16px; justify-items: start; }
.nl-home-ritual__copy .nl-statement { max-width: 18ch; }
.nl-home-ritual__copy .nl-lede-press { margin: 0; max-width: 40ch; }
@media (min-width: 990px) {
  .nl-home-ritual__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--nl-grid-gutter); }
  .nl-home-ritual__media { grid-column: 1 / span 7; }
  .nl-home-ritual__copy { grid-column: 9 / span 4; }
}
