/* The Plainspoken Home Set — "The household shelf" + one outage night you tap through (2026-11-06, short version).
   Harmonize pass: the shared parts (tokens, type, header, buttons, assure, faq, counter, bar, footer, focus) live in /css/base.css, loaded first.
   Page-only parts use the hs- prefix: the shelf hero (three real covers with masking-tape labels), the outage stepper
   (dark until "Power back" turns the lights on), the receipt inside the counter band.
   Set accent: ink + navy. Book accents only as small marks: Fix-It #1d4f7a (+ yellow), Binder #1f6f6a, Pantry #5f6b2a. */

:root {
  --acc: #1b2b44; --acc-bg: #e6e9ef; --page: #e7e6e2;   /* Set: ink + navy, a light warm floor */
  --hs-wall: #efe8db; --hs-night: #111a28; --hs-night-ink: #e8ecf2; --hs-night-muted: #b8c0cc; --hs-tape: #ece0bd; --hs-lit: #f8f5ee;
  --fix: #1d4f7a; --bnd: #1f6f6a; --pan: #5f6b2a;
}

/* ===== page: small book marks (a colored square + the name, never color alone) ===== */
.hs-dot { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; }
.hs-d-fix { background: linear-gradient(var(--fix) 62%, var(--yellow) 62%); }
.hs-d-bnd { background: var(--bnd); }
.hs-d-pan { background: var(--pan); }

/* masking-tape label: cut ends, Barlow capitals, the book's mark */
.hs-tape { position: absolute; left: 50%; top: calc(100% + 1.2%); display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 2px 10px;
  background: var(--hs-tape); color: var(--ink); font: 700 14px/1.1 var(--sign); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(60,40,0,.18); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transform: translateX(-50%) rotate(-1.2deg); }
.hs-tape i { width: 9px; height: 9px; border-radius: 1px; }
.hs-bk-bnd .hs-tape { transform: translateX(-50%) rotate(.8deg); }
.hs-bk-pan .hs-tape { transform: translateX(-50%) rotate(-.6deg); }

/* ===== page: hero, the household shelf ===== */
.hs-hero { background: var(--hs-wall); padding-top: var(--s-5); }
.hs-hero-in { display: grid; }
.hs-hero h1 { font-size: 34px; }
.hs-fmt { margin-top: var(--s-3); font: 600 19px/1.35 var(--sans); color: var(--ink); max-width: 30em; text-wrap: balance; }
.hs-shelf { position: relative; margin: var(--s-5) calc(var(--gut) * -1) 0; aspect-ratio: 1228 / 696; overflow: hidden; }
.hs-shelf > img { width: 100%; height: 100%; object-fit: cover; }
.hs-on { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; }
/* the shelf top sits 69.6% down the photo; the front edge runs to 76% */
.hs-bk { position: absolute; bottom: 30.2%; width: 22%; }
.hs-bk-fix { left: 12%; } .hs-bk-bnd { left: 39%; } .hs-bk-pan { left: 66%; }
.hs-bk img { width: 100%; border-radius: 1px 2px 2px 1px;
  box-shadow: 1px 1px 1px rgba(0,0,0,.25), 10px 6px 14px -6px rgba(0,0,0,.4), 2px 3px 2px -1px rgba(0,0,0,.3); }
.hs-deal { padding: var(--s-5) 0 0; }
/* the price: one big yellow shelf tag + a small "save" tag, both centred on one axis */
.hs-price, .counter .hs-total { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.hs-save small { font: 700 16px/1 var(--sign); text-transform: uppercase; letter-spacing: .06em; }
.hs-save b { font-size: 26px; }
.hs-deal .anchor { margin: var(--s-3) 0 0; font: 600 17px/1.3 var(--sans); color: var(--steel); }
.hs-deal .anchor s, .hs-rcpt s { text-decoration-thickness: 2px; }
.hs-deal .btn { margin-top: var(--s-5); width: 100%; max-width: 440px; }
/* the stamp keeps the tags fully opaque (the price is never faint), it only presses them down */
@keyframes hs-tag-press { from { transform: scale(1.06) rotate(-3.5deg); } to { transform: rotate(-1.5deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hs-hero .price-tag.stamp-in, .counter .price-tag.stamp-in { animation-name: hs-tag-press; }
  .hs-hero .price-tag.stamp-in { animation-delay: .15s; } .hs-hero .hs-save.stamp-in { animation-delay: .25s; } }

/* real page as paper with a soft shadow (same treatment as DIY) */
.hs-pg { display: block; background: #fff; border-radius: 3px; box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 12px 22px -12px rgba(0,0,0,.6); }
.hs-pg img { border-radius: 3px; }
.hs-proof, .hs-crop { display: block; color: var(--ink); text-decoration: none; }
.hs-crop { margin-top: var(--s-4); }
/* the proof card closes the hero on phone/tablet; on desktop it sits under the shelf, beside its caption */
.hs-proof { margin-top: var(--s-6); padding-bottom: var(--sec); }
.hs-proof .hs-pg { max-width: 300px; padding-bottom: var(--s-4); transform: rotate(-1deg); }   /* the crop ends on its last line: give the paper a bottom margin */
.hs-proof .hs-cap { margin-top: var(--s-4); }
.hs-cap { margin-top: var(--s-2); display: flex; gap: var(--s-2); align-items: flex-start; font: 600 16px/1.3 var(--sans); }
.hs-cap > span { text-wrap: balance; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }   /* it opens the full page: say so */
.hs-cap svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@media (hover: hover) and (pointer: fine) { .hs-proof:hover .hs-cap span, .hs-crop:hover .hs-cap span { text-decoration-thickness: 2px; } }

/* ===== page: the outage night, four steps (the one interactive element) ===== */
.hs-night { position: relative; isolation: isolate; background: var(--hs-night); color: var(--hs-night-ink); padding: var(--sec) 0; transition: color .08s linear .08s;   /* text flips while the lit layer passes its midpoint: never low contrast */ }
/* lights on = a lit cream layer fading in (opacity only), edged with hairlines so it never merges into the hero */
.hs-night::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hs-lit); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
  opacity: 0; transition: opacity .45s cubic-bezier(.4, 0, .2, 1); }
.hs-night.hs-lit::before { opacity: 1; }
.hs-night h2 { color: #fff; font-size: 29px; transition: color .08s linear .08s;   /* text flips while the lit layer passes its midpoint: never low contrast */ }
.hs-lead { margin-top: var(--s-3); font-size: 19px; text-wrap: pretty; }
.hs-tabs { display: none; }
.hs-js .hs-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--sec-head); }
.hs-tab { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--s-2) var(--s-1); text-align: center; cursor: pointer;
  border-radius: var(--r-in); background: rgba(255,255,255,.08); color: var(--hs-night-ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.42);
  font: 700 17px/1.05 var(--sign); text-transform: uppercase; letter-spacing: .03em; }   /* selection changes at once: never two half-selected tabs */
.hs-tab[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: none; }
.hs-steps { margin-top: var(--s-5); }
.hs-step + .hs-step { margin-top: var(--s-7); }
.hs-scene { width: 100%; border-radius: var(--r-in); aspect-ratio: 3 / 2; object-fit: cover; }
.hs-step-t { padding-top: var(--s-4); }
/* with JS: the four photos share one frame and cross-fade; the four texts share one cell (its height = the tallest),
   so switching never moves the page and every "Next" button sits in the same place */
.hs-js .hs-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.hs-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-in); background: #0b111b; }
.hs-stage .hs-scene { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transform: scale(1.045);
  transition: opacity .35s linear, transform 0s linear .35s; }
.hs-stage .hs-scene.is-prev { opacity: 1; z-index: 1; transform: none; transition: opacity .45s cubic-bezier(.4, 0, .2, 1); }
.hs-stage .hs-scene.is-on { opacity: 1; z-index: 2; transform: none; transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform 1.4s var(--ease); }
.hs-js .hs-step { grid-row: 2; grid-column: 1; margin: 0; visibility: hidden; opacity: 0; transition: opacity .08s linear, visibility 0s linear .08s; }
.hs-js .hs-step.is-on { visibility: visible; opacity: 1; transition: opacity .16s linear .07s, visibility 0s; }
.hs-js .hs-step-t { transform: translateY(8px); transition: transform 0s linear .08s; }
.hs-js .hs-step.is-on .hs-step-t { transform: none; transition: transform .4s var(--ease) .07s; }
.hs-night.hs-instant *, .hs-night.hs-instant::before { transition: none !important; }
.hs-who { display: flex; align-items: center; gap: var(--s-2); font: 600 16px/1.2 var(--sans); }
.hs-step h3 { margin-top: var(--s-2); font-size: 26px; color: #fff; transition: color .08s linear .08s; }
.hs-say { margin-top: var(--s-2); font-size: 19px; max-width: 30em; text-wrap: pretty; }
.hs-crop { max-width: 460px; color: var(--hs-night-muted); }

.hs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.hs-tobuy { display: inline-flex; align-items: center; min-height: 48px; font: 700 18px/1 var(--sign); text-transform: uppercase; letter-spacing: .03em; color: inherit; text-underline-offset: 4px; }
.hs-lit .hs-tobuy { color: var(--ink); }
.hs-next { display: none; }
.hs-js .hs-next { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-4); cursor: pointer;
  border-radius: var(--r-in); box-shadow: inset 0 0 0 2px currentColor; font: 700 18px/1 var(--sign); text-transform: uppercase; letter-spacing: .03em; }
.hs-tab:focus-visible, .hs-js .hs-next:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .hs-tab:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
  .hs-lit .hs-tab:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 2px var(--ink); } }
/* lights on: from "Power back" the lit layer fades in; these are the colours on it */
/* a lighter lamp-lit cream than the hero wall, edged with hairlines, so the lit section never merges into the hero above */
.hs-night.hs-lit { color: var(--body); }   /* the lit wall itself is the ::before layer above */
.hs-lit h2, .hs-lit .hs-step h3 { color: var(--ink); }
.hs-lit .hs-crop { color: var(--steel); }
.hs-lit .hs-tab { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #8f8a80; }
.hs-lit .hs-tab[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hs-lit .hs-tab:focus-visible, .hs-lit .hs-next:focus-visible { outline-color: var(--ink); }
.hs-lit .hs-next { color: var(--acc); }

/* ===== counter band additions: covers fan + a receipt ===== */
.hs-fan { display: flex; justify-content: center; padding: var(--s-2) 0 var(--s-3); }
.counter .hs-fan img { width: 104px; border-radius: 2px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); }
.counter .hs-fan img + img { margin-left: -22px; }
.counter .hs-fan img:nth-child(1) { transform: translateY(10px) rotate(-6deg); }
.counter .hs-fan img:nth-child(2) { position: relative; z-index: 1; transform: none; }
.counter .hs-fan img:nth-child(3) { transform: translateY(10px) rotate(6deg); }
@media (max-width: 759px) { .hs-fan { padding: 0 0 var(--s-2); } .counter .hs-fan img { width: 62px; } .counter .hs-fan img + img { margin-left: -14px; } }
@media (max-width: 370px) { .counter .hs-fan img { width: 50px; } }   /* phone: a small fan beside the heading (base.css counter row) */
.counter .hs-total { margin-top: var(--s-5); }
.counter .hs-save { background: #fff; color: var(--ink); }   /* white tag on the ink band: the ink one would vanish */
.counter .hs-save::before { background: var(--ink); }
.counter .hs-save small { color: var(--steel); }
.hs-rcpt { width: 100%; max-width: 440px; margin-top: var(--s-4); border-collapse: collapse; }
.hs-rcpt th, .hs-rcpt td { padding: var(--s-2) 0; text-align: left; font: 600 18px/1.3 var(--sans); color: #e9eaeb; border-bottom: 1px dashed rgba(255,255,255,.22); }
.hs-rcpt th .hs-dot { margin-right: 9px; vertical-align: 1px; }
.hs-rcpt td { text-align: right; font: 700 24px/1 var(--sign); }
.hs-rcpt .hs-sum th, .hs-rcpt .hs-sum td { border-top: 2px solid #e9eaeb; border-bottom: 0; }
.hs-rcpt .hs-sum td { color: #b9bcc0; }
.hs-rcpt s { text-decoration-color: var(--yellow); }
/* "See all 11 files": the shared details card (base.css), a white card on the ink band, as wide as the receipt above it */
.hs-more { margin-top: var(--s-5); max-width: 440px; }
.hs-files { display: grid; gap: var(--s-3); font-size: 16px; color: var(--body); }
.hs-files h3 { font-size: 17px; color: var(--ink); }
.hs-files ul { margin: var(--s-1) 0 0; padding-left: var(--s-4); overflow-wrap: anywhere; }
.counter .hs-files p { font-size: 16px; }

/* ===== breakpoints ===== */
@media (max-width: 599px) { .hs-js .hs-tabs { gap: 6px; } .hs-tab { font-size: 16px; letter-spacing: 0; padding: var(--s-2) 2px; white-space: nowrap; } }   /* "Power back" stays on one line like the others */
@media (max-width: 370px) {
  .hs-hero h1 { font-size: 30px; }
  .hs-tape { font-size: 12.5px; padding: 3px 6px 2px 7px; }
  .hs-tab { font-size: 15px; }
}
@media (min-width: 600px) { .hs-tape { font-size: 17px; } }
@media (min-width: 600px) and (max-width: 999px) { .hs-scene, .hs-stage { aspect-ratio: 16 / 9; } }   /* tablet: keep the photo from filling the screen */
@media (min-width: 760px) {
  .hs-hero h1 { font-size: 48px; }
  .counter-in { grid-template-columns: 260px 1fr; align-items: start; }
  .counter-in > div:last-child > p { max-width: 34em; text-wrap: pretty; }   /* keep the files line at a reading measure */
  .hs-fan { margin-top: var(--s-6); justify-content: flex-start; }
  .counter .hs-fan img { width: 96px; } .counter .hs-fan img + img { margin-left: -24px; }
}
@media (min-width: 1000px) {
  .hs-hero { padding-top: 0; }
  /* two columns of equal weight: words + price + button | shelf photo + the proof card under it */
  .hs-hero-in { grid-template-columns: minmax(380px, 1fr) minmax(0, 640px); grid-template-areas: "t s" "d s" "d p"; grid-template-rows: auto auto 1fr;
    column-gap: var(--s-7); padding-top: var(--sec); padding-bottom: var(--sec); }
  .hs-hero-t { grid-area: t; }
  .hs-deal { grid-area: d; padding: var(--s-6) 0 0; max-width: 460px; }
  .hs-shelf { grid-area: s; align-self: start; margin: var(--s-2) 0 0; border-radius: var(--r); box-shadow: var(--sh-2); }
  .hs-proof { grid-area: p; display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: var(--s-6); align-items: center; align-self: start;
    margin-top: var(--s-6); padding: 0 var(--s-4); }
  .hs-proof .hs-cap { margin-top: 0; font-size: 17px; }
  .hs-hero h1 { font-size: 64px; }
  .hs-fmt { font-size: 21px; margin-top: var(--s-4); }
  .hs-tape { font-size: 18px; }
  .hs-night h2 { font-size: 40px; }
  .hs-crop { max-width: 440px; }   /* the tallest page crop sets the shared cell height: keep it close to the photo */
  .hs-step { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: var(--s-7); align-items: start; }
  .hs-step-t { padding-top: 0; }
  .hs-js .hs-steps { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: var(--s-7); }
  .hs-js .hs-stage { grid-row: 1; grid-column: 1; align-self: start; }
  .hs-js .hs-step { display: block; grid-row: 1; grid-column: 2; }
  .hs-step h3 { font-size: 34px; }
  .hs-say { font-size: 20px; }
  .counter-in { grid-template-columns: 400px 1fr; gap: var(--s-7); align-items: center; }   /* the fan sits on the column's middle, not stranded at its top */
  .hs-fan { margin-top: 0; justify-content: center; }
  .counter .hs-fan img { width: 168px; } .counter .hs-fan img + img { margin-left: -52px; }
  .counter .hs-fan img:nth-child(1) { transform: translateY(18px) rotate(-6deg); } .counter .hs-fan img:nth-child(3) { transform: translateY(18px) rotate(6deg); }
}

/* ===== motion grammar: one load moment (covers set down, tapes pressed on, price tags stamped; all done by .85s, transform/opacity);
   switching steps = photo cross-fade + text lift (see the stepper block above); the lit layer fades in from "Power back" ===== */
@keyframes hs-set-down { 0% { transform: translateY(-18px) rotate(-2deg); } 70% { transform: translateY(1px) rotate(.2deg); } 100% { transform: none; } }
@keyframes hs-press-on { from { opacity: 0; transform: translateX(-50%) scale(1.15) rotate(-4deg); } to { opacity: 1; } }
.hs-bk img { animation: hs-set-down .55s cubic-bezier(.2, .9, .25, 1) both; transform-origin: 50% 100%; }
.hs-bk-bnd img { animation-delay: .12s; } .hs-bk-pan img { animation-delay: .24s; }
.hs-tape { animation: hs-press-on .22s cubic-bezier(.3, .7, .4, 1) both; animation-delay: .45s; }
.hs-bk-bnd .hs-tape { animation-delay: .53s; } .hs-bk-pan .hs-tape { animation-delay: .61s; }

@media (prefers-reduced-motion: reduce) {
  .hs-bk img, .hs-tape { animation: none !important; }
  .hs-stage .hs-scene, .hs-js .hs-step-t { transform: none !important; }
  .hs-stage .hs-scene.is-on, .hs-stage .hs-scene.is-prev { transition: opacity .2s linear; }
  .hs-night::before { transition-duration: .2s; }
  .hs-night, .hs-night h2, .hs-step h3 { transition-duration: .2s; }
}


/* 2026-11-19 prices: keep the set price and the save tag on one line on phones (two-decimal prices are wider) */
@media (max-width: 599px) { .hs-price, .counter .hs-total { gap: 10px; }
  .hs-price .price-tag--lg, .counter .hs-total .price-tag--lg { padding: 7px 14px 7px 23px; }
  .hs-price .price-tag--lg b, .counter .hs-total .price-tag--lg b { font-size: 38px; }
  .hs-price .price-tag--lg small, .counter .hs-total .price-tag--lg small { font-size: 14px; }
  .hs-save { padding: 5px 11px 5px 19px; } .hs-save b { font-size: 22px; } .hs-save small { font-size: 13px; } }
