/* mikedhenry.com v2 — one stylesheet. Tokens from COVER_DIRECTION.md (D18b). */

@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Charis SIL"; src: url("/fonts/CharisSIL-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Charis SIL"; src: url("/fonts/CharisSIL-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Charis SIL"; src: url("/fonts/CharisSIL-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bone: #F3EDE2;
  --black: #1F1C19;
  --amber: #F28C00;
  --secondary: #6F6A62;
  --rule: #1F1C19;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Charis SIL", Charter, Georgia, serif;
  --max: 1120px;
  --gutter: 16px;
  --rule-w: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root { color-scheme: light; } } /* v1 stays bone/black */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--black);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--black); }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--black); color: var(--bone); padding: .5rem 1rem; font-family: var(--ui); z-index: 100; }
.skip:focus { top: var(--gutter); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .98; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
h4 { font-family: var(--ui); font-weight: 650; font-size: 1.05rem; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; max-width: 36em; }
.lede { font-family: var(--ui); font-weight: 600; font-stretch: 92%; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.3; max-width: 30em; }
.sub { font-family: var(--ui); font-weight: 450; font-stretch: 95%; font-size: 1.1rem; line-height: 1.45; color: var(--secondary); max-width: 34em; }
.label { font-family: var(--ui); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .75rem; display: block; }
.small { font-family: var(--ui); font-size: .9rem; color: var(--secondary); }
.muted { color: var(--secondary); }
ul, ol { padding-left: 1.2em; max-width: 36em; }
li { margin: 0 0 .4em; }
em, i { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); opacity: .4; margin: 2.5rem 0; }

/* The 3pt rule device: a thick black rule above a statement, as in the book */
.ruled { border-top: var(--rule-w) solid var(--rule); padding-top: 1rem; }
.statement { border-top: var(--rule-w) solid var(--rule); padding-top: 1rem; font-family: var(--ui); font-weight: 600; font-stretch: 92%; font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.3; max-width: 26em; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .85rem 1.4rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  background: var(--black);
  color: var(--bone);
  cursor: pointer;
  line-height: 1.2;
  min-height: 44px;
}
.btn:hover { background: #000; border-color: #000; }
.btn--secondary { background: transparent; color: var(--black); }
.btn--secondary:hover { background: rgba(31,28,25,.06); border-color: var(--black); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; letter-spacing: 0; text-decoration: none; display: inline-flex; align-items: baseline; white-space: nowrap; padding: .9rem 0; }
.wordmark .icell { display: inline-block; width: .26em; height: .914em; vertical-align: baseline; margin: 0 .036em 0 .03em; overflow: visible; position: relative; top: .056em; }
.menu-btn { font-family: var(--ui); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; background: transparent; border: 2px solid var(--black); border-radius: 4px; padding: .5rem .9rem; color: var(--black); cursor: pointer; min-height: 44px; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; max-width: none; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a { font-family: var(--ui); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: block; padding: .6rem 0; border-top: 1px solid rgba(31,28,25,.15); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }
@media (min-width: 760px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .menu-btn { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; gap: 1.6rem; padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; }
}

/* Sections */
main { display: block; }
.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }
.section--rule { border-top: 1px solid var(--rule); }
.hero { padding: 3.5rem 0 3rem; }
.hero h1 { margin-bottom: .6rem; }
@media (min-width: 760px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
}
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid--book { grid-template-columns: minmax(220px, 2fr) 3fr; gap: 3rem; align-items: start; }
}
.cover { max-width: 340px; box-shadow: 0 1px 0 rgba(31,28,25,.3), 0 18px 40px -18px rgba(31,28,25,.45); border: 1px solid rgba(31,28,25,.25); }
.cover--sm { max-width: 240px; }
.portrait { max-width: 360px; border-radius: 4px; }

/* Cards */
.card { border: 2px solid var(--black); border-radius: 4px; padding: 1.25rem 1.25rem 1.1rem; background: transparent; display: flex; flex-direction: column; }
.card h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.card p { margin-bottom: .6em; font-size: 1rem; }
.card .label { margin-bottom: .5rem; }
.card--dark { background: var(--black); color: var(--bone); border-color: var(--black); }
.card--dark .btn { background: var(--bone); color: var(--black); border-color: var(--bone); }
.card--dark .btn:hover { background: #fff; border-color: #fff; }

/* Chapter grid (7/7/7) */
.parts { display: grid; gap: 2rem; }
@media (min-width: 760px) { .parts { grid-template-columns: repeat(3, 1fr); } }
.parts ol { list-style: none; padding: 0; margin: 0; max-width: none; }
.parts li { font-family: var(--ui); font-weight: 500; font-size: 1rem; line-height: 1.35; padding: .5rem 0; border-top: 1px solid rgba(31,28,25,.2); display: flex; gap: .7rem; }
.parts li span { font-variant-numeric: tabular-nums; color: var(--secondary); min-width: 1.6em; }

/* Retailer row */
.retailers { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.retailers .btn { font-size: .92rem; padding: .7rem 1.1rem; }

/* Tiers */
.tiers { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 600px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border-top: var(--rule-w) solid var(--rule); padding-top: .8rem; }
.tier .price { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.tier .qty { font-family: var(--ui); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.tier .per { font-family: var(--ui); font-size: .9rem; color: var(--secondary); }

/* Facts list */
.facts { font-family: var(--ui); font-size: .95rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1.5rem 0; max-width: 32em; }
.facts dt { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; color: var(--secondary); padding-top: .25em; }
.facts dd { margin: 0; }

/* Forms */
form { max-width: 36em; }
.field { margin: 0 0 1.25rem; }
.field label, fieldset legend { font-family: var(--ui); font-weight: 600; font-size: .95rem; display: block; margin-bottom: .4rem; }
.req { color: var(--amber); font-weight: 700; margin-left: .15em; }
.req::after { content: " (required)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  font: inherit; font-family: var(--ui); font-size: 1rem;
  width: 100%; padding: .7rem .8rem; border: 2px solid var(--black); border-radius: 4px; background: #fff; color: var(--black); min-height: 44px;
}
textarea { min-height: 8rem; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
fieldset legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choices label { font-family: var(--ui); font-size: 1rem; font-weight: 450; display: inline-flex; align-items: center; gap: .45rem; margin: 0; min-height: 44px; }
.choices input { width: 1.1rem; height: 1.1rem; accent-color: var(--black); margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; max-width: 36em; }
.inline-form .field { flex: 1 1 220px; margin: 0; }
.inline-form .btn { flex: 0 0 auto; }
.reassure { font-family: var(--ui); font-size: .85rem; color: var(--secondary); margin-top: .6rem; }
.hidden-field { position: absolute; left: -9999px; }

/* Email block */
.email-block { background: var(--black); color: var(--bone); padding: 2.5rem var(--gutter); border-radius: 4px; }
.email-block h2 { color: var(--bone); }
.email-block .reassure { color: rgba(243,237,226,.75); }
.email-block input { border-color: var(--bone); }
.email-block .btn { background: var(--bone); color: var(--black); border-color: var(--bone); }
.email-block .btn:hover { background: #fff; border-color: #fff; }
.email-block p { color: var(--bone); }

/* Footer */
.site-footer { border-top: var(--rule-w) solid var(--rule); margin-top: 3rem; padding: 2.5rem 0 2.5rem; font-family: var(--ui); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.site-footer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; max-width: none; }
.site-footer a { text-decoration: none; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .colophon { color: var(--secondary); font-size: .85rem; margin: 0; }
.site-footer .footer-news .label { color: var(--black); }

/* Utilities */
.measure { max-width: 36em; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* charge */
.charge-card { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .charge-card { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.charge-part { border-top: var(--rule-w) solid var(--rule); padding-top: .9rem; }
.charge-part .label { margin-bottom: .6rem; }
.charge-steps { list-style: none; padding: 0; margin: 0; max-width: none; }
.charge-steps li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid rgba(31,28,25,.2); font-family: var(--body); font-size: 1rem; line-height: 1.45; margin: 0; }
.charge-steps li span { font-family: var(--display); font-size: 1.55rem; line-height: 1; min-width: 1.5em; font-variant-numeric: tabular-nums; flex: 0 0 auto; padding-top: .05em; }
.charge-tag { font-family: var(--ui); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; text-align: center; margin: 2.5rem 0 0; max-width: none; }
.charge-downloads h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.charge-downloads .btn-row { margin-top: .5rem; }

/* test */
.test-stage[hidden] { display: none; }
.quiz { max-width: 44em; }
.quiz__progress { font-variant-numeric: tabular-nums; margin-bottom: .25rem; }
.quiz__hint { margin-bottom: 1.5rem; }
.quiz form { max-width: none; }
.scale-group { margin: 0 0 1.5rem; }
.scale-group__legend { font-family: var(--body); font-weight: 400; font-size: clamp(1.35rem, 3.2vw, 1.85rem); line-height: 1.35; margin: 0 0 1.25rem; padding: 0; max-width: 24em; border-top: var(--rule-w) solid var(--rule); padding-top: 1rem; }
.scale { display: grid; gap: .5rem; grid-template-columns: 1fr; max-width: none; }
@media (min-width: 600px) { .scale { grid-template-columns: repeat(5, 1fr); } }
.scale__opt { position: relative; display: block; margin: 0; }
.scale__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scale__box { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .8rem 1rem; border: 2px solid var(--black); border-radius: 4px; background: transparent; font-family: var(--ui); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; }
@media (min-width: 600px) { .scale__box { flex-direction: column; justify-content: center; gap: .35rem; text-align: center; padding: .9rem .5rem; min-height: 84px; } }
.scale__num { font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--secondary); min-width: 1.1em; }
.scale__opt input:hover + .scale__box { background: rgba(31,28,25,.06); }
.scale__opt input:checked + .scale__box { background: var(--black); color: var(--bone); }
.scale__opt input:checked + .scale__box .scale__num { color: var(--amber); }
.scale__opt input:focus-visible + .scale__box { outline: 3px solid var(--black); outline-offset: 3px; }
.quiz__nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 1.5rem; }
.quiz__nav .btn:disabled { opacity: .35; cursor: default; }
.quiz__keys { margin: 1rem 0 0; }
@media (hover: none) { .quiz__keys { display: none; } }
.result { display: grid; gap: 2rem; }
@media (min-width: 760px) { .result { grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; } }
.result__gauge { text-align: center; max-width: 220px; }
.result__gauge .label { margin: 0; }
.battery { width: 88px; height: auto; margin: 0 auto .75rem; overflow: visible; }
@media (min-width: 760px) { .battery { width: 120px; } }
.result__pct { font-family: var(--display); font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; margin: 0 0 .25rem; }
.result__unit { font-size: .5em; margin-left: .05em; }
.result__body h2 { max-width: 14em; }
.result__cards { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.drain-card h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .2rem; }
.drain-card__gloss { font-family: var(--ui); font-weight: 600; font-stretch: 92%; font-size: 1.15rem; margin-bottom: .4em; }
.drain-card__band { font-family: var(--ui); font-size: .95rem; color: var(--secondary); margin-bottom: 1em; }
.drain-card .drain-card__copy { font-size: 1.05rem; line-height: 1.55; }
.microstep { margin: 1rem 0; padding: .9rem 0 0; border-top: var(--rule-w) solid var(--rule); }
.microstep .label { margin-bottom: .35rem; }
.microstep p { font-family: var(--body); font-style: italic; font-size: 1.15rem; line-height: 1.5; margin: 0; }
.drain-card__read { font-family: var(--ui); font-weight: 600; font-size: .95rem; margin: .75rem 0 0; }
.drain-card .btn-row { margin-top: 1rem; }
.result__sent { font-family: var(--ui); font-weight: 600; margin-top: 1rem; }
.result__validity { max-width: 40em; }

/* ============================================================
   3D book (pure CSS). Real front cover + real spine crop + a cream page edge.
   Markup: .book3d > .book3d__obj > (.book3d__front > img) + .book3d__spine + .book3d__pages* ; .book3d__shadow
   The <img> inside .book3d__front is the flat fallback (alt text, no-CSS, no 3D support).
   ============================================================ */
.book3d {
  --bw: 240px;                          /* cover width */
  --bh: calc(var(--bw) * 1.5);          /* 6x9 */
  --bt: calc(var(--bw) * 0.125);        /* 254 pp = 0.635 in on a 6 in cover; shown a touch thicker so it reads as a real book */
  --tilt: 32deg;   /* positive = spine (left edge) toward the viewer */
  position: relative;
  width: calc(var(--bw) + var(--bt) * 1.4);
  height: calc(var(--bh) + 44px);
  padding: 0 0 44px calc(var(--bt) * 1.4);
  perspective: 1200px;
  perspective-origin: 50% 45%;
  display: block;
  text-decoration: none;
  color: inherit;
}
.book3d__obj {
  position: relative;
  width: var(--bw);
  height: var(--bh);
  transform-style: preserve-3d;
  transform: rotateX(-6deg) rotateY(var(--tilt));
  transition: transform .5s ease-out;
  will-change: transform;
}
.book3d__front, .book3d__spine, .book3d__pages, .book3d__back {
  position: absolute; top: 0; left: 0;
  backface-visibility: hidden;
}
.book3d__front {
  width: var(--bw); height: var(--bh);
  transform: translateZ(calc(var(--bt) / 2));
  background: #F2EDE3;
  box-shadow: inset 1px 0 0 rgba(255,255,255,.55);          /* cover fold highlight, matte */
}
.book3d__front img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; box-shadow: none; border: 0; }
.book3d__front::after, .book3d__spine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.book3d__front::after {
  background:
    linear-gradient(to right, rgba(255,255,255,.16) 0, rgba(255,255,255,0) 9%, rgba(0,0,0,0) 55%, rgba(0,0,0,.06) 100%),
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(0,0,0,.04));
}
/* the spine turns away from the light: darker, with the hinge crease on the cover side */
.book3d__spine::after {
  background: linear-gradient(to right, rgba(0,0,0,.22) 0, rgba(0,0,0,.12) 50%, rgba(0,0,0,.18) 100%);
}
.book3d__spine {
  width: var(--bt); height: var(--bh);
  transform: rotateY(-90deg) translateZ(calc(var(--bt) / 2));
  background: #ECE6DB url("/img/spine-600.jpg") center / 100% 100% no-repeat;
}
.book3d__back {
  width: var(--bw); height: var(--bh);
  transform: rotateY(180deg) translateZ(calc(var(--bt) / 2));
  background: #E9E3D7;
}
/* page block: fore-edge (right), head (top), tail (bottom); cream stock with faint sheet lines */
.book3d__pages {
  background: repeating-linear-gradient(to bottom, #EFE8DA 0 2px, #E4DDCF 2px 3px);
}
.book3d__pages--fore {
  width: var(--bt); height: calc(var(--bh) - 4px); top: 2px; left: auto; right: 0;
  transform: rotateY(90deg) translateZ(calc(var(--bt) / 2)) translateX(0);
  transform-origin: 50% 50%;
}
.book3d__pages--head, .book3d__pages--tail {
  width: calc(var(--bw) - 2px); height: var(--bt); left: 1px;
  background: repeating-linear-gradient(to right, #EFE8DA 0 2px, #E4DDCF 2px 3px);
}
.book3d__pages--head { transform: rotateX(90deg) translateZ(calc(var(--bt) / 2)); filter: brightness(.95); }
.book3d__pages--tail { top: auto; bottom: 0; transform: rotateX(-90deg) translateZ(calc(var(--bt) / 2)); }
.book3d__shadow {
  position: absolute; pointer-events: none; z-index: 0;
  left: calc(var(--bt) * 1.4 + var(--bw) * 0.06); top: calc(var(--bh) * 0.06);
  width: calc(var(--bw) * 0.98); height: calc(var(--bh) * 0.98);
  background: rgba(31,28,25,.38);
  border-radius: 6px;
  filter: blur(22px);
  transform: translate(10px, 10px);
  transition: transform .5s ease-out, opacity .5s ease-out;
}
.book3d__obj { z-index: 1; }
.book3d--sm { --bw: 200px; }
.book3d--lg { --bw: 300px; }
@media (max-width: 759px) {
  .book3d { --bw: min(220px, 62vw); margin: 2rem auto 0; }
  .book3d--lg { --bw: min(240px, 66vw); }
}
@media (hover: hover) {
  .book3d:hover .book3d__obj, .book3d:focus-within .book3d__obj, a.book3d:focus-visible .book3d__obj {
    transform: translateY(-8px) rotateX(-6deg) rotateY(14deg);
  }
  .book3d:hover .book3d__shadow, .book3d:focus-within .book3d__shadow {
    transform: translate(16px, 16px); opacity: .9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .book3d:hover .book3d__obj, .book3d:focus-within .book3d__obj { transform: rotateX(-6deg) rotateY(var(--tilt)); }
  .book3d:hover .book3d__shadow, .book3d:focus-within .book3d__shadow { transform: translate(10px, 10px); opacity: 1; }
}
/* no 3D support: show the flat cover only */
@supports not (transform-style: preserve-3d) {
  .book3d { perspective: none; padding: 0; width: var(--bw); height: auto; }
  .book3d__obj { transform: none; }
  .book3d__front { position: static; transform: none; }
  .book3d__spine, .book3d__pages, .book3d__back, .book3d__shadow { display: none; }
}
a.book3d:focus-visible { outline: 3px solid var(--black); outline-offset: 6px; border-radius: 4px; }

/* Home hero with the book on the right (desktop) / below the buttons (phone) */
.hero--book .hero__grid { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) {
  .hero--book .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
  .hero--book .book3d { margin-right: 1rem; }
}
@media (min-width: 1000px) { .hero--book .book3d { margin-right: 3rem; } }

/* Bulk block on /teams: the stack */
.bulk-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .bulk-grid { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.mockup { max-width: 520px; width: 100%; height: auto; }
.mockup--stack { max-width: 560px; }

/* ============================================================
   Rollovers. Quiet. Pointer devices only; stilled under reduced motion.
   ============================================================ */
@media (hover: hover) {
  .btn { transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, transform .15s ease-out; }
  .card, .tier { transition: transform .15s ease-out, border-color .15s ease-out; }
  .card:hover { transform: translateY(-2px); border-color: #000; }
  .tier:hover { transform: translateY(-2px); border-top-color: #000; }
  .retailers .btn:hover { transform: translateY(-2px); border-color: #000; background: rgba(31,28,25,.06); }
  .site-nav a { position: relative; }
  .site-nav a:not([aria-current="page"])::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .15em; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .2s ease-out;
  }
  .site-nav a:not([aria-current="page"]):hover::after, .site-nav a:not([aria-current="page"]):focus-visible::after { transform: scaleX(1); }
  /* the one playful touch: the battery-I charges on hover of the wordmark */
  .wordmark .icell rect:last-of-type { transition: y .6s ease-out, height .6s ease-out; }
  .wordmark:hover .icell rect:last-of-type, .wordmark:focus-visible .icell rect:last-of-type { y: 36px; height: 786px; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .tier:hover, .retailers .btn:hover { transform: none; }
  .site-nav a:not([aria-current="page"]):hover::after { transform: scaleX(1); }
  .wordmark:hover .icell rect:last-of-type, .wordmark:focus-visible .icell rect:last-of-type { y: 680.52px; height: 141.48px; }
}

/* ============================================================
   Phone QA (Oct 12 2026): tap targets, small print, overflow safety. Design unchanged.
   ============================================================ */
body { overflow-wrap: break-word; }
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; }
.site-nav a { min-height: 44px; display: flex; align-items: center; }
@media (min-width: 760px) { .site-nav a { padding: .6rem 0; } }
.site-footer ul { gap: 0 1.25rem; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .1rem; }
.site-footer .colophon, .reassure { font-size: .9rem; }
.menu-btn { font-size: .9rem; min-width: 44px; }
.choices label { padding: .25rem 0; }
.choices input { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.retailers .btn { font-size: 1rem; }
.scale__opt { min-height: 56px; }

/* Hero photo column (speaking, about) */
.hero-photo { display: flex; align-items: stretch; justify-content: flex-end; }
.hero-photo .portrait { width: 100%; max-width: 440px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid rgba(31,28,25,.25); box-shadow: 0 18px 40px -18px rgba(31,28,25,.45); }
@media (max-width: 767px) { .hero-photo { justify-content: flex-start; margin-top: 1.5rem; } .hero-photo .portrait { max-width: 320px; } }

/* Battery Test result card: the reader's own answer, then one line from the chapter */
.drain-card__moment { display: flex; flex-direction: column; gap: .2rem; margin: .4rem 0 .9rem; font-family: var(--ui); font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.drain-card__line { font-style: italic; margin: 0 0 .9rem; padding-left: .9rem; border-left: 3px solid var(--amber); }
@media (min-width: 600px) { .scale__box { font-size: .92rem; padding: .9rem .35rem; } }

/* Audio player (book page) */
.player { display: block; width: 100%; max-width: 640px; margin: 1.25rem 0 .5rem; }

/* Battery Test: new question slides in; selected answer fills before the page moves on */
.scale-group.is-entering { animation: q-enter .36s ease-out; }
@keyframes q-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scale__opt input:checked + .scale__box { transition: background .12s ease; }
