/* Family Emergency Binder: "Calm day, bad day" (2026-11-06; harmonize pass: shared parts live in /css/base.css, loaded first).
   This file: the teal accent + page background and the page-only parts (feb- prefix). Accent teal for small marks only. */

:root { --acc: #1f6f6a; --acc-bg: #dcecea; --page: #e8eceb; }   /* this book: teal accent, cool paper page */

/* ===== 1. hero: the situation, one real page (the Fridge Sheet on a fridge), the price, the button ===== */
.feb-hero { padding: var(--s-5) 0 var(--sec); }
.feb-hero-in { display: grid; gap: var(--s-5); }
.feb-hero h1 { font-size: 34px; }
/* the headline breaks on purpose into four even lines (phone, desktop) or two even sentences (tablet) */
.feb-h1-s, .feb-h1-l { display: block; }
.feb-h1-bad { color: var(--acc); }
.feb-offer { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4); align-items: center; }
.feb-proof { display: block; color: var(--steel); text-decoration: none; }
.feb-proof img { border-radius: 3px; box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 12px 22px -12px rgba(0,0,0,.6); transform: rotate(-1.5deg); transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .feb-proof:hover img { transform: rotate(0) scale(1.02); } }
.feb-cap { display: block; margin-top: var(--s-3); font: 600 16px/1.25 var(--sans); color: var(--acc); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
/* the price and the product line read as one unit: the shelf tag, then the line it prices */
.feb-price { line-height: 1; margin-left: 2px; }
@keyframes feb-tag-in { from { transform: scale(1.14) rotate(-4deg); } to { transform: rotate(-1.5deg); } }
@media (prefers-reduced-motion: no-preference) {   /* the price is never hidden or faded: it is only stamped down into place */
  .feb-price .price-tag.stamp-in { animation: feb-tag-in .3s cubic-bezier(.2, .8, .3, 1) .12s both; }
}
.feb-sub { margin-top: var(--s-3); font-size: 18.5px; line-height: 1.4; color: var(--ink); }
.feb-buy .btn { width: 100%; }

/* ===== 2. the bad day: a night band with the playbook tabs and the page they open ===== */
.feb-night-band { background: var(--ink); color: #d3d5d7; padding: var(--sec) 0; }
.feb-photo { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); background: #2a2c2e; }
.feb-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* each playbook's own photo; phone/tablet: joined to the top of the page it opens, desktop: a tall photo beside it.
   A new photo is laid over the old one and fades in; the old one is removed after (no dip to black between them). */
.feb-night { position: relative; margin-top: var(--s-4); aspect-ratio: 16 / 9; border-radius: var(--r) var(--r) 0 0; box-shadow: none; isolation: isolate; }
.feb-night img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.feb-night img.is-in { animation: feb-photo-in .55s var(--ease) both; will-change: opacity, transform; }
@keyframes feb-photo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes feb-photo-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.feb-night-h h2 { color: #fff; font-size: 30px; }
.feb-night-h p { margin-top: var(--s-3); font-size: 18px; color: #d3d5d7; max-width: 36em; }

/* binder divider tabs */
.feb-tabs { list-style: none; padding: 0; margin: var(--sec-head) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.feb-tab { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 54px; padding: var(--s-2) var(--s-3); border-radius: var(--r-in);
  background: #26292b; color: #fff; cursor: pointer; font: 700 18px/1.15 var(--sans); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22);
  transition: background-color .18s, color .18s, transform .18s var(--ease); }   /* the ring (box-shadow) changes at once, never animated */
.feb-tab::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; opacity: .75; }
.feb-tab[aria-selected="true"] { transition-duration: 0s; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--acc); }
.feb-tab[aria-selected="true"]::before { background: var(--acc); box-shadow: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .feb-tab:not([aria-selected="true"]):hover { background: #33373a; transform: translateY(-2px); } }
.feb-tab:active { transform: translateY(1px); }
.feb-tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

/* the page: white paper, laid out like the binder's own playbook page */
.feb-page { position: relative; margin-top: 0; background: var(--card); color: var(--body); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-2); padding: var(--pad); }
.feb-page-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-3); min-height: 48px; margin-top: calc(var(--s-3) * -1); font: 600 16px/1.3 var(--sans); color: var(--steel); border-bottom: 2px solid var(--acc); }   /* the 48px link row: pulled up so the text, not the tap area, sits at the card's inset */
.feb-page-meta .feb-zoom { margin-top: 0; }
.feb-page h3 { margin-top: var(--s-4); font: 700 27px/1.08 var(--sans); letter-spacing: -.012em; }
.feb-dtn { margin-top: var(--s-4); border: 2px solid var(--ink); border-radius: 4px; padding: var(--s-3) var(--s-3) var(--s-1); }
.feb-dtn-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.feb-lbl { display: inline-block; padding: 3px 7px 2px; border: 2px solid var(--acc); border-radius: 2px; font: 700 16px/1.1 var(--sign); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.feb-dtn-q { font: 700 19px/1.3 var(--sans); color: var(--acc); }
.feb-steps { list-style: none; padding: 0; margin: var(--s-2) 0 0; counter-reset: s; }
.feb-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: var(--s-2); padding: var(--s-2) 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.42; color: var(--ink); }
.feb-steps li:first-child { border-top: 0; }
.feb-steps li::before { content: counter(s); font: 700 21px/1.1 var(--sign); color: var(--ink); }
/* a reference inside a step: the book's own words, made into a button that opens the household page it names */
.feb-ref { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: inline; padding: 1px 3px; margin: -1px -1px; border-radius: 3px; color: var(--acc); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; background: var(--acc-bg); transition: background-color .15s, color .15s; }
.feb-ref { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* inside the .nw that keeps a following period with it; a wrapped reference keeps its padding on each line */
.feb-ref .nw { white-space: nowrap; }
.feb-ref::after { content: ""; position: absolute; inset: -11px -4px; }   /* a 44px+ tap area without a tall box */
.feb-ref svg { display: inline-block; width: 15px; height: 15px; margin-left: 3px; vertical-align: -1px; transition: transform .2s var(--ease); }
.feb-ref[aria-expanded="true"] { background: var(--acc); color: #fff; text-decoration-color: rgba(255,255,255,.6); }
.feb-ref[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .feb-ref:not([aria-expanded="true"]):hover { text-decoration-thickness: 3.5px; } }
.feb-back { margin-top: var(--s-5); }
/* tablet/desktop: JS gives the card the longest playbook's height, so nothing below it moves on a tab switch */
.feb-back-h { font: 700 17px/1.3 var(--sans); color: var(--ink); }
.feb-chips { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.feb-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: var(--r-in);
  position: relative; background: var(--page); color: var(--ink); font: 700 17px/1.2 var(--sans); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .15s, color .15s; }
/* the hover ring is a pre-built layer that fades in (opacity), never an animated box-shadow */
.feb-chip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--acc); opacity: 0; pointer-events: none; transition: opacity .15s; }
.feb-chip b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--acc); color: #fff; font: 700 20px/1 var(--sign); }
.feb-chip[aria-expanded="true"] { background: var(--acc); color: #fff; box-shadow: inset 0 0 0 2px var(--acc); }
.feb-chip[aria-expanded="true"] b { background: #fff; color: var(--acc); }
@media (hover: hover) and (pointer: fine) { .feb-chip:not([aria-expanded="true"]):hover::after { opacity: 1; } }
/* the drawer: the real household page */
.feb-drawer { margin-top: var(--s-3); display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-4) var(--s-1); border-radius: var(--r-in); background: var(--page); }
.feb-drawer[hidden] { display: none; }
.feb-steps li > .feb-drawer { grid-column: 1 / -1; margin-top: var(--s-1); }   /* phone: the full step width, not the narrow text column */
@media (min-width: 600px) { .feb-steps li > .feb-drawer { grid-column: 2; } }
.feb-crop img { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 99%); mask-image: linear-gradient(90deg, #000 84%, transparent 99%); }   /* the page goes on past the crop: it fades out rather than cutting a field in half */
.feb-crop { display: block; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 12px 22px -12px rgba(0,0,0,.6); }
.feb-drawer h4 { font: 700 19px/1.2 var(--sans); }
.feb-where { margin-top: 2px; font: 600 16px/1.3 var(--sans); color: var(--acc); }
.feb-what { margin-top: var(--s-2); font-size: 17px; line-height: 1.4; color: var(--body); }
.feb-zoom { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; margin-top: var(--s-1); font: 700 17px/1.2 var(--sans); color: var(--acc); }
.feb-zoom svg { width: 18px; height: 18px; }
.feb-zoom span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

/* ===== 3. the calm weekend ===== */
.feb-weekend { padding: var(--sec) 0 0; }
.feb-weekend-in { display: grid; gap: var(--s-5); align-items: center; }
.feb-weekend h2 { font-size: 28px; }
.feb-lead { margin-top: var(--sec-head); font-size: 19px; color: var(--ink); max-width: 34em; }

/* the long but useful details stay folded (card, summary and chevron: the shared details style in base.css) */
.feb-more { max-width: 780px; margin-top: var(--s-5); }
.feb-more-in { display: grid; gap: var(--s-3); font-size: 17px; }
.feb-more-in ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-1); }

/* enlarge-page viewer: shared (.zv in base.css) since 2026-11-25 */

/* even line breaks for the page's own running text */
.feb-sub, .feb-night-h p, .feb-dtn-q, .feb-steps li, .feb-what, .feb-lead, .feb-more-in p, .feb-more-in li, .feb-sp-lead { text-wrap: pretty; }

/* ===== breakpoints ===== */
@media (max-width: 599px) {
  .feb-page { padding: var(--s-5) var(--s-4); }
  .feb-steps li { grid-template-columns: 20px 1fr; }
  .feb-chips { display: grid; }
  .feb-chip { width: 100%; }
}
@media (max-width: 360px) {
  .feb-hero h1 { font-size: 30px; }
  .feb-tab { font-size: 16px; gap: var(--s-2); padding: var(--s-2); }   /* "Power outage" stays on one line at 320px */
  .feb-offer { grid-template-columns: 96px 1fr; gap: var(--s-3); }
}
@media (min-width: 600px) { .feb-tabs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 999px) { .feb-night { aspect-ratio: 21 / 9; } }   /* a wide strip: the page stays near the tabs */
@media (min-width: 760px) and (max-width: 999px) {
  .feb-h1-l { display: inline; }   /* tablet: one sentence per line */
  .feb-sub { font-size: 20px; max-width: 26em; }
}
@media (min-width: 760px) {
  .feb-hero h1 { font-size: 48px; }
  .feb-offer { grid-template-columns: 210px 1fr; gap: var(--s-6); }   /* tablet: a Fridge Sheet big enough to read as a real page, caption on one line */
  .feb-night-h h2 { font-size: 36px; }
  .feb-page h3 { font-size: 32px; }
  .feb-dtn { padding: var(--s-4) var(--s-5) var(--s-2); }
  .feb-drawer { grid-template-columns: 1fr 1.25fr; grid-template-areas: "t crop"; gap: var(--s-2) var(--s-5); padding: var(--s-4); align-items: start; }
  .feb-dr-t { grid-area: t; } .feb-crop { grid-area: crop; }
  .feb-weekend-in { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
@media (min-width: 1000px) {
  .feb-hero { padding: var(--sec) 0; }
  .feb-hero-in { grid-template-columns: minmax(0, 1fr) 392px; grid-template-areas: "h proof" "deal proof" "buy proof"; column-gap: var(--s-7); row-gap: var(--s-6); align-items: start; align-content: center; }
  .feb-hero h1 { grid-area: h; font-size: 64px; }
  .feb-offer { display: contents; }
  .feb-proof { grid-area: proof; align-self: center; }
  .feb-deal { grid-area: deal; display: flex; align-items: center; gap: var(--s-5); }
  .feb-price { flex: none; }
  .feb-sub { margin: 0; max-width: 24em; font-size: 20px; }
  .feb-buy { grid-area: buy; }
  .feb-buy .btn { width: auto; min-width: 360px; }
  /* the heading runs across; below it the photo stands beside the tabs and the page, as tall as both (JS sets the height
     from the longest playbook, so it never changes on a tab switch) */
  .feb-night-in { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 var(--s-7); align-items: start; }
  .feb-night-b { display: contents; }
  .feb-night-h { grid-column: 1 / -1; grid-row: 1; padding-bottom: var(--sec-head); }
  .feb-night { margin: 0; grid-column: 1; grid-row: 2 / span 2; aspect-ratio: 4 / 7; border-radius: var(--r); box-shadow: var(--sh-2); position: sticky; top: calc(var(--head) + 24px); }
  .feb-night[style*="height"] { aspect-ratio: auto; }
  .feb-tabs, .feb-page { grid-column: 2; }
  .feb-tabs { grid-row: 2; margin-top: 0; } .feb-page { grid-row: 3; margin-top: var(--s-4); border-radius: var(--r); }
  .feb-night-h h2 { font-size: 40px; }
  .feb-weekend h2 { font-size: 40px; }
}

/* ===== motion (shared grammar): one load moment (the Fridge Sheet is pinned up, then its price is stamped),
   a "pull" reveal for the page a tab opens and for a household page; every one has a reduced-motion path ===== */
@keyframes feb-pin { from { opacity: .001; transform: translateY(-12px) rotate(-5deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
.feb-proof img { animation: feb-pin .62s cubic-bezier(.2, .9, .25, 1) .08s backwards; }
/* the closing price is stamped when it scrolls into view (JS adds .stamp-in); it stays visible until then (never hidden or faded) */
.feb-page.feb-turn > * { animation: feb-turn .22s var(--ease) both; }   /* a tab's page: the card stays put, its words fade up (nothing is clipped) */
@keyframes feb-turn { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.feb-drawer.feb-out { animation: pull-tag .3s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .feb-proof img { animation: none !important; }
  .feb-night img.is-in { animation: feb-photo-fade .2s ease-out both; }   /* a plain short fade, no zoom */
  .feb-page.feb-turn > *, .feb-drawer.feb-out { animation: fade-in .18s ease-out both; }
  .feb-tab, .feb-chip, .feb-ref, .feb-ref svg, .feb-proof img { transition-property: background-color, color, visibility; }
  .feb-tab:hover, .feb-tab:active { transform: none !important; }
  .feb-proof:hover img { transform: rotate(-1.5deg); }
}

/* ===== free sample page (/family-emergency-binder/power-outage/): real pages as paper, same buy box as the DIY sample ===== */
.feb-sp-in { padding-top: var(--s-6); padding-bottom: var(--sec); max-width: 900px; }
.feb-sp-back { font-size: 18px; font-weight: 700; }
.feb-sp h1 { margin-top: var(--s-4); font-size: 34px; }
.feb-sp-lead { margin-top: var(--s-4); font-size: 19px; color: var(--ink); max-width: 40em; }
.feb-sp-pg { margin: var(--s-6) 0 0; }
.feb-sp-pg > a { display: block; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px -14px rgba(0,0,0,.4); }
.feb-sp-pg figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s-4); margin-top: var(--s-2); font-size: 16px; color: var(--steel); }
.feb-sp-pg figcaption a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.feb-sp-buy { margin-top: var(--s-7); background: var(--card); border-radius: var(--r); padding: var(--pad); box-shadow: var(--sh-1); }
.feb-sp-buy h2 { font-size: 27px; margin-bottom: var(--sec-head); }
.feb-sp-price { margin-bottom: var(--s-5); }
.feb-sp-buy .btn { width: 100%; max-width: 440px; }
@media (min-width: 760px) { .feb-sp h1 { font-size: 48px; } }

/* coordinator 2026-11-06: keep the price stamp from widening the phone page while it scales in */
.feb-hero { overflow-x: clip; }

/* polish 2: the closing price is the shared shelf tag */
.counter .feb-cprice { margin-top: var(--s-4); line-height: 1; }
.feb-sp footer .wrap { max-width: 900px; }   /* sample page: the footer shares the reading column's left edge */
/* 2026-11-19 prices: the two-decimal price tag must fit the 1fr column beside the Fridge Sheet on phones */
.feb-offer { grid-template-columns: 140px minmax(0, 1fr); }
@media (max-width: 599px) {
  .feb-price .price-tag--lg { gap: 6px; padding: 6px 11px 6px 21px; }
  .feb-price .price-tag--lg b { font-size: 36px; }
  .feb-price .price-tag--lg small { font-size: 14px; } }
@media (max-width: 360px) { .feb-offer { grid-template-columns: 96px minmax(0, 1fr); } .feb-price .price-tag--lg b { font-size: 32px; } }

/* ===== first screen (2026-11-25): the shared .bk kit (base.css); the second sentence of the headline in teal ===== */
.feb-bk .bk-kick { color: var(--acc); }
.feb-bk .bk-head h1 { font-size: 26px; }   /* phone: each sentence on one line */
.feb-bk .bk-head .feb-h1-s { display: block; }
.feb-bk .bk-pg i { background: var(--acc); }
@media (min-width: 760px) { .feb-bk .bk-head h1 { font-size: 40px; } }
@media (min-width: 1000px) { .feb-bk .bk-head h1 { font-size: 46px; } }
