/* BoldnSmart brand layer (p9): grouped navigation, the problem-first home page, app, guide and problem pages,
   calculators. Builds on base.css tokens. Every text/background pair is computed in contrast.txt. */

:root {
  --amber: #e9b968;
  --ok: #9fd3a0;
  --card: #1d1610;
  --card-edge: rgba(134, 112, 79, .7);
}

/* ---------- Navigation additions ---------- */
.badge-new { display: inline-flex; align-items: center; margin-left: 8px; padding: 0 7px; min-height: 20px; border-radius: 999px; background: var(--gold-hi); color: var(--on-gold); font: 700 14px/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.badge-new--lg { min-height: 24px; padding: 0 10px; }
.dropdown__app { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .9); }
.dropdown__sub { display: block; margin-top: 1px; color: var(--ink-2); font: italic 400 15px/1.2 var(--serif); }
.dropdown__name .badge-new { margin-left: 6px; }
.dropdown__all { margin-top: 4px; border-top: 1px solid var(--rule-soft); }
.dropdown__more, .dropdown__more:visited { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; color: var(--gold-hi); font: 700 15px/1 var(--sans); text-decoration: none; border-radius: 10px; }
.dropdown__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.dropdown__more:hover, .dropdown__more:focus-visible { color: var(--ink); background: rgba(194, 155, 103, .12); }
.dropdown__more:hover .icon, .dropdown__more:focus-visible .icon { transform: translateX(3px); }
.dropdown__more[aria-current="page"] { color: var(--ink); }
.dropdown__groups { display: grid; gap: 6px; }
.dropdown__group { display: grid; gap: 2px; }
.dropdown__glabel, .dropdown__glabel:visited { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--gold-hi); font: italic 500 18px/1 var(--serif); text-decoration: none; border-radius: 10px; }
.dropdown__glabel:hover, .dropdown__glabel:focus-visible { color: var(--ink); background: rgba(194, 155, 103, .12); }
.dropdown__glabel[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.dropdown__link--tight, .dropdown__link--tight:visited { min-height: 46px; padding: 4px 12px; grid-template-columns: 30px minmax(0, 1fr); }
.dropdown__link--tight .dropdown__icon { width: 30px; height: 30px; }
.dropdown__link--tight .dropdown__icon .icon { width: 16px; height: 16px; }
@media (min-width: 960px) {
  .site-nav__list { gap: 4px; }
  .dropdown--apps { width: 420px; }
  .dropdown--notes { width: 560px; padding: 14px; }
  .dropdown--notes .dropdown__groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 10px; row-gap: 4px; align-content: start; }
  .dropdown--notes .dropdown__group { align-self: start; }
  .dropdown--notes .dropdown__group:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .dropdown--notes .dropdown__group:nth-child(2) { grid-column: 2; grid-row: 1; }
  .dropdown--notes .dropdown__group:nth-child(3) { grid-column: 2; grid-row: 2; }
  .dropdown--notes .dropdown__all { grid-row: 3; }
  .dropdown--notes .dropdown__all { grid-column: 1 / -1; }
}

/* ---------- Shared section head ---------- */
.shead { display: grid; gap: 10px; max-width: 760px; margin-bottom: 30px; }
.shead--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shead__kicker { color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.shead__title { font: 400 32px/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.shead__title em { color: var(--gold-hi); }
.shead__lede { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 44em; }
@media (min-width: 1024px) { .shead__title { font-size: 44px; } .shead__lede { font-size: 18px; } }

/* ---------- Home hero ---------- */
.bhero {
  position: relative; overflow: hidden; padding: 18px 0 40px;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(194, 155, 103, .14), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(194, 155, 103, .06), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bhero__grid { display: grid; gap: 28px; }
.bhero__for { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 15px/1.2 var(--sans); }
.bhero__for .icon { width: 18px; height: 18px; }
.bhero__title { margin-top: 10px; font: 400 36px/1.04 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.bhero__title em { color: var(--gold-hi); font-style: italic; }
.bhero__lede { margin-top: 10px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.bhero__stake { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-top: 14px; padding: 10px 14px; border-left: 2px solid var(--gold-hi); border-radius: 0 12px 12px 0; background: rgba(194, 155, 103, .08); color: var(--ink); font-size: 15px; line-height: 1.45; }
.bhero__stake b { color: var(--gold-hi); font: 400 24px/1.1 var(--serif); white-space: nowrap; }
.bhero__stake .src { min-height: 0; display: inline; }
.wfig { margin: 0 0 6px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(165deg, #211912 0%, #150f0b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.wfig__cap { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.bhero__actions { display: grid; gap: 10px; margin-top: 20px; }
.bhero__actions .btn { width: 100%; }
.bhero__plabel { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.bhero__plabel .icon { width: 17px; height: 17px; }
.bhero__pnote { color: var(--ink-2); font: italic 400 17px/1.4 var(--serif); }
.bhero__plate .plate__visual { min-height: 0; }
.bhero__plate .plate__foot { flex-wrap: wrap; }
.js .bhero__copy > * { animation: rise .9s var(--ease) both; }
.js .bhero__copy > :nth-child(2) { animation-delay: .06s; }
.js .bhero__copy > :nth-child(3) { animation-delay: .12s; }
.js .bhero__copy > :nth-child(4) { animation-delay: .18s; }
.js .bhero__copy > :nth-child(5) { animation-delay: .24s; }
/* Round 3: transform only, never opacity 0, so the hero text paints at once (LCP). */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* Problem rows: problem left, the app that fixes it right */
.prows { display: grid; gap: 8px; margin-top: 18px; }
.prow__link, .prow__link:visited {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 64px; padding: 10px 12px;
  border-radius: 14px; color: var(--ink); text-decoration: none;
  background: linear-gradient(165deg, #241b13 0%, #17110c 100%); box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.prow__link:hover, .prow__link:focus-visible { transform: translateX(3px); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 18px 30px -22px rgba(0, 0, 0, 1); }
.prow__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, rgba(246, 220, 170, .22), rgba(194, 155, 103, .08) 70%); }
.prow__icon .icon { width: 20px; height: 20px; }
.prow__text { display: grid; gap: 2px; min-width: 0; }
.prow__problem { font: 600 17px/1.25 var(--sans); }
.prow__line { color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.prow__app { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 15px/1 var(--sans); }
.prow__app img { width: 24px; height: 24px; border-radius: 6px; }
.prow__go { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.prow__link:hover .prow__go, .prow__link:focus-visible .prow__go { transform: translateX(3px); }
.prow__link:hover .prow__problem, .prow__link:focus-visible .prow__problem { color: var(--gold-hi); }

@media (min-width: 640px) {
  .bhero__title { font-size: 48px; }
  .bhero__actions { display: flex; flex-wrap: wrap; }
  .bhero__actions .btn { width: auto; }
  .prow__link, .prow__link:visited { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .prow__icon { grid-row: auto; }
  .prow__app { grid-column: auto; }
}
@media (min-width: 1024px) {
  .bhero { padding: 34px 0 64px; }
  .bhero__stake { display: none; }
  .bhero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 64px; align-items: center; }
  .bhero__title { font-size: 60px; }
  .bhero__lede { font-size: 19px; }
}

/* Lever: price vs operating profit */
.lever { display: grid; gap: 14px; width: 100%; padding: 6px 0; }
.lever__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
.lever__lab { color: var(--ink-2); font-size: 15px; line-height: 1.2; }
.lever__track { position: relative; height: 22px; border-radius: 6px; background: rgba(134, 112, 79, .22); overflow: hidden; }
.lever__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, #c29b67, var(--gold-hi)); transform-origin: left; }
.lever__fill--small { background: var(--ink-2); }
.lever__val { color: var(--ink); font: 600 17px/1 var(--sans); text-align: right; }
.lever__row--big .lever__val { color: var(--gold-hi); }
.js .plate:not(.is-played) .lever__fill { transform: scaleX(0); }
.js .plate .lever__fill { transition: transform 1.2s var(--ease) .3s; }

/* Authority band */
.authority { padding: 22px 0; border-block: 1px solid var(--rule-soft); background: linear-gradient(90deg, rgba(194, 155, 103, .06), transparent 60%), var(--bg-2); }
.authority__inner { display: grid; gap: 10px; align-items: center; }
.authority__title { display: flex; align-items: center; gap: 10px; font: italic 500 19px/1.2 var(--serif); color: var(--gold-hi); }
.authority__title .icon { width: 20px; height: 20px; }
.authority__list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.authority__name { color: var(--ink); font: 600 16px/1.6 var(--sans); }
@media (min-width: 1024px) {
  .authority__inner { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 32px; }
  .authority__list { justify-content: center; }
}

/* ---------- Problem then fix blocks ---------- */
.solves { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 320px); }
.solves__list { display: grid; gap: 28px; }
.solve { position: relative; display: grid; gap: 22px; padding: 22px 18px; border-radius: 22px; background: radial-gradient(70% 60% at 0% 0%, rgba(220, 187, 138, .1), transparent 70%), linear-gradient(165deg, #211912 0%, #130e0a 100%); box-shadow: inset 0 0 0 1px var(--card-edge), 0 40px 70px -50px rgba(0, 0, 0, 1); }
.solve__copy { position: relative; display: grid; gap: 12px; align-content: start; }
.solve__no { margin-right: 6px; padding-right: 12px; border-right: 1px solid var(--rule); font: 300 30px/1 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; }
.solve__eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.solve__eyebrow .icon { width: 17px; height: 17px; }
.solve__title { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; }
.solve__problem { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.solve__stake { display: grid; gap: 4px; padding: 14px 16px; border-left: 2px solid var(--gold-hi); background: rgba(194, 155, 103, .07); border-radius: 0 12px 12px 0; }
.solve__fig b { font: 300 40px/1 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; }
.solve__fig span { color: var(--ink-2); font: italic 400 17px/1.2 var(--serif); }
.solve__stext { color: var(--ink); font-size: 16px; line-height: 1.5; }
.solve__cite .cite--link { padding-top: 2px; }
.solve__fix { display: grid; gap: 10px; padding-top: 6px; }
.solve__app { display: flex; align-items: center; gap: 12px; }
.solve__icon { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 1); }
.solve__appname { display: flex; align-items: center; flex-wrap: wrap; font: 500 21px/1.2 var(--serif); }
.solve__sub { display: block; color: var(--ink-2); font-size: 15px; }
.solve__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 4px; }
.solve__shot { align-self: center; }
@media (min-width: 1024px) {
  .solves { padding: 96px 0 56px; }
  .solves__list { gap: 36px; }
  .solve { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 48px; padding: 40px 40px; }
  .solve:nth-child(even) .solve__copy { order: 2; }
  .solve__title { font-size: 38px; }
}

/* Check-mark lists */
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: rgba(194, 155, 103, .18) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcbb8a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .6); }
.ticks a, .ticks a:visited { color: var(--gold-hi); font-weight: 700; text-underline-offset: 3px; }
.ticks a:hover, .ticks a:focus-visible { color: var(--ink); }
.ticks--lg li { font-size: 18px; }

/* Screenshot frame: a real app picture, framed in the site's gold edge */
.shot { display: grid; gap: 10px; margin: 0; }
.shot__frame { position: relative; overflow: hidden; border-radius: 14px; background: #f5f1ea; box-shadow: 0 0 0 1px rgba(220, 187, 138, .55), 0 30px 60px -34px rgba(0, 0, 0, 1); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; background: linear-gradient(180deg, #2a2017, #1f1812); border-bottom: 1px solid rgba(220, 187, 138, .3); }
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #86704f; }
.shot__img { width: 100%; height: auto; background: #fff; }
.acard__shot .shot__img, .solve__shot .shot__img, .aphero__shot .shot__img, .ahero__shot .shot__img { aspect-ratio: 16 / 10; object-fit: contain; }
.shot__cap { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.shot--prose { margin: 1.4em 0; }
.shot--prose .shot__cap { font-family: var(--sans); }

/* ---------- Sourced figure cards ---------- */
.worth { padding: 72px 0; background: radial-gradient(50% 40% at 100% 0%, rgba(194, 155, 103, .08), transparent 70%), var(--bg); }
.stats { display: grid; gap: 14px; }
.stat { display: grid; gap: 8px; align-content: start; padding: 18px 18px 6px; border-radius: 16px; background: linear-gradient(165deg, #211912 0%, #150f0b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.stat__fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.stat__num { font: 300 42px/1 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.stat__unit { color: var(--ink-2); font: italic 400 17px/1.25 var(--serif); }
.stat__text { color: var(--ink); font-size: 16px; line-height: 1.5; }
.stat__scope { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding-top: 8px; border-top: 1px dashed rgba(134, 112, 79, .6); color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.stat__scope .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--gold-hi); }
.stat__foot .cite--link { padding-top: 0; }
@media (min-width: 640px) { .stats--3, .stats--1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .worth { padding: 104px 0; } .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* ---------- Calculators ---------- */
.calcs { padding: 72px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--rule-soft); }
.tabs__list { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: #120e0a; box-shadow: inset 0 0 0 1px var(--rule); scrollbar-width: none; }
.tabs__tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 16px/1 var(--sans); cursor: pointer; transition: background-color .25s, color .25s; }
.tabs__tab .icon { width: 18px; height: 18px; }
.tabs__tab:hover, .tabs__tab:focus-visible { color: var(--ink); background: rgba(194, 155, 103, .14); }
.tabs__tab[aria-selected="true"] { color: var(--on-gold); background: linear-gradient(180deg, var(--gold-btn-a), var(--gold-btn-b)); }
.tabs__panel[hidden] { display: none; }
.calc { display: grid; gap: 18px; padding: 20px 16px; border-radius: 20px; background: radial-gradient(70% 50% at 100% 0%, rgba(220, 187, 138, .08), transparent 70%), linear-gradient(165deg, #1f1711 0%, #120d09 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.calc + .calc { margin-top: 18px; }
.calc__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.calc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, rgba(246, 220, 170, .22), rgba(194, 155, 103, .08) 70%); }
.calc__title { font: 500 24px/1.2 var(--serif); letter-spacing: -.01em; }
.calc__lede { margin-top: 6px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.calc__grid { display: grid; gap: 18px; }
.calc__form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__label { color: var(--ink); font: 600 15px/1.3 var(--sans); }
.field__box { display: flex; align-items: center; min-height: 48px; border-radius: 12px; background: #0b0806; box-shadow: inset 0 0 0 1.5px var(--rule); transition: box-shadow .2s; }
.field__box:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.field__input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: 500 17px/1 var(--sans); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.field__input::-webkit-outer-spin-button, .field__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field__input:focus { outline: none; }
.field__input--cur { padding-left: 4px; }
.field__cur { padding-left: 12px; color: var(--gold-hi); font: 600 17px/1 var(--sans); }
.field__unit { padding: 0 12px; color: var(--ink-2); font-size: 15px; }
.field--cur .field__box { max-width: 120px; }
.calc__out { display: grid; gap: 12px; align-content: start; }
.calc__res { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(194, 155, 103, .07); box-shadow: inset 0 0 0 1px rgba(134, 112, 79, .5); }
.calc__label { color: var(--ink-2); font: 600 15px/1.35 var(--sans); }
.calc__num { display: block; font: 300 38px/1.05 var(--serif); color: var(--gold-hi); letter-spacing: -.02em; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.calc__num.is-empty { color: var(--ink-2); font-size: 22px; font-style: italic; }
.calc__num.is-neg { color: var(--warn); }
.calc__live { color: var(--ink); font: 500 15px/1.45 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__live:empty { display: none; }
.calc__note { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.calc__honest { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink); font: italic 400 17px/1.45 var(--serif); }
.calc__honest .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-hi); }
.calc__how { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.calc__howtitle, .calc__ctxtitle { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.calc__howtitle .icon { width: 17px; height: 17px; }
.calc__formula { display: grid; gap: 8px; }
.calc__formula li { display: grid; gap: 4px; }
.calc__fname { color: var(--ink-2); font-size: 15px; }
.calc__code { justify-self: start; max-width: 100%; padding: 6px 10px; border-radius: 8px; background: #2a2018; color: var(--ink); font: 500 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.calc__words { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.calc__ctx { display: grid; gap: 8px; }
.calc__ctx li { color: var(--ink); font-size: 15px; line-height: 1.5; }
.cite--line { display: inline-flex; vertical-align: baseline; gap: 2px 6px; }
.cite--line .src { min-height: 32px; }
.cite--line .cite__type .icon { display: none; }
@media (min-width: 640px) {
  .calc { padding: 26px 24px; }
  .calc__form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
}
@media (min-width: 1024px) {
  .calcs { padding: 104px 0; }
  .calc__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; }
  .calc__how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .calc__howtitle, .calc__formula, .calc__words { grid-column: 1; }
  .calc__ctxtitle { grid-column: 2; grid-row: 1; }
  .calc__ctx { grid-column: 2; grid-row: 2 / span 2; }
  .tabs__list { display: inline-flex; }
  .tabs__tab { flex: 0 0 auto; padding: 0 22px; }
}
/* inside the 720px document column the calculator stays single-column */
.appdoc .calc__grid, .appdoc .calc__how { grid-template-columns: minmax(0, 1fr); }
.appdoc .calc__ctxtitle, .appdoc .calc__ctx { grid-column: auto; grid-row: auto; }

/* ---------- Levers: revenue = sessions x conversion x AOV ---------- */
.levers { padding: 72px 0; background: var(--bg); }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.eq__term { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #17110c; box-shadow: inset 0 0 0 1px var(--card-edge); }
.eq__term b { font: 500 19px/1.1 var(--serif); }
.eq__term small { color: var(--ink-2); font-size: 14px; }
.eq__term--on { background: rgba(194, 155, 103, .14); box-shadow: inset 0 0 0 1.5px var(--gold-hi); }
.eq__term--on b { color: var(--gold-hi); }
.eq__term--out b { font-style: italic; }
.eq__op { color: var(--gold-hi); font: 300 28px/1 var(--serif); }
.lgrid { display: grid; gap: 14px; }
.lcard { display: grid; gap: 12px; align-content: start; padding: 20px 18px; border-radius: 18px; background: linear-gradient(165deg, #211912 0%, #150f0b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.lcard__k { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.lcard__k .icon { width: 17px; height: 17px; }
.lcard__title { font: 500 23px/1.2 var(--serif); }
.lcard > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.lcard__src, .caveat__src { display: flex; flex-wrap: wrap; gap: 0 14px; }
.caveat { display: grid; gap: 8px; margin-top: 18px; padding: 18px; border-radius: 16px; background: rgba(233, 185, 104, .06); box-shadow: inset 0 0 0 1px rgba(233, 185, 104, .55); }
.caveat__title { display: flex; align-items: center; gap: 8px; color: var(--amber); font: 700 15px/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.caveat__title .icon { width: 18px; height: 18px; }
.caveat > p:not(.caveat__title):not(.caveat__src) { color: var(--ink); font-size: 16px; line-height: 1.55; }
@media (min-width: 1024px) { .levers { padding: 104px 0; } .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .eq { gap: 12px; } .eq__term { padding: 14px 20px; } .eq__term b { font-size: 24px; } }

/* ---------- Notes as proof ---------- */
.proofs { padding: 72px 0 40px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--rule-soft); }
.proofs__list { display: grid; gap: 12px; }
.proof__link, .proof__link:visited { display: grid; gap: 8px; height: 100%; padding: 18px; border-radius: 16px; color: var(--ink); text-decoration: none; background: linear-gradient(165deg, #211912 0%, #150f0b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.proof__link:hover, .proof__link:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 24px 40px -28px rgba(0, 0, 0, 1); }
.proof__topic { display: flex; align-items: center; gap: 6px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); }
.proof__topic .icon { width: 16px; height: 16px; }
.proof__fig { color: var(--ink-2); font: italic 400 16px/1.3 var(--serif); }
.proof__fig b { color: var(--gold-hi); font: normal 300 34px/1 var(--serif); margin-right: 4px; }
.proof__title { font: 500 19px/1.3 var(--serif); }
.proof__go { width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; color: var(--gold-hi); transition: transform .3s var(--ease); }
.proof__link:hover .proof__go, .proof__link:focus-visible .proof__go { transform: translateX(3px); }
.proof__kind { color: var(--ink-2); font: 700 14px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 640px) { .proofs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .proofs { padding: 96px 0 48px; } .proofs__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* ---------- FAQ: every answer visible ---------- */
.hfaq { padding: 40px 0 56px; background: var(--bg-2); }
.faq { margin-top: 8px; }
.faq__title { font: 400 30px/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: 14px; }
.faq__list { display: grid; }
.faq__item { padding: 16px 0; border-top: 1px solid var(--rule-soft); }
.faq__q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font: 600 18px/1.35 var(--sans); }
.faq__q .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold-hi); }
.faq__a { margin-top: 6px; padding-left: 32px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.appdoc .faq, .note .faq { margin-top: 44px; max-width: 720px; }
@media (min-width: 1024px) { .hfaq .faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } .faq__title { font-size: 38px; } }

/* ---------- More projects slot ---------- */
.more { padding: 56px 0 72px; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.more__grid { display: grid; gap: 20px; align-items: center; }
.more__title { font: 400 32px/1.1 var(--serif); }
.more__lede { margin-top: 8px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.more__slot { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--rule); color: var(--ink-2); font: italic 400 18px/1.3 var(--serif); }
.more__slot .icon { width: 22px; height: 22px; color: var(--gold-hi); }
.more--inline { display: grid; gap: 18px; margin-top: 40px; padding: 0; background: none; }
@media (min-width: 1024px) { .more__grid, .more--inline { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; } .more__title { font-size: 40px; } }

/* ---------- App page ---------- */
.aphero { padding: 6px 0 36px; background: radial-gradient(70% 55% at 95% 10%, rgba(194, 155, 103, .12), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.aphero__grid { display: grid; gap: 24px; }
.aphero__copy { display: grid; gap: 14px; align-content: start; }
.aphero__id { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
.aphero__icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 1); }
.aphero__kicker { display: flex; align-items: center; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.aphero__title { margin-top: 4px; font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; }
.aphero__title span { color: var(--gold-hi); font-style: italic; }
.aphero__tag { color: var(--ink); font: 400 20px/1.45 var(--serif); max-width: 34em; }
.aphero__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-2); font-size: 15px; }
.aphero__facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.aphero__facts .icon { width: 16px; height: 16px; color: var(--gold-hi); }
.aphero__actions { display: grid; gap: 10px; }
.aphero__actions .btn { width: 100%; }
@media (min-width: 640px) { .aphero__title { font-size: 46px; } .aphero__actions { display: flex; flex-wrap: wrap; } .aphero__actions .btn { width: auto; } .aphero__id { grid-template-columns: 72px minmax(0, 1fr); } .aphero__icon { width: 72px; height: 72px; } }
@media (min-width: 1024px) { .aphero { padding: 8px 0 52px; } .aphero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: 56px; align-items: center; } .aphero__title { font-size: 54px; } }

.appdoc { min-width: 0; max-width: 720px; }
.dsec { display: grid; gap: 16px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule-soft); scroll-margin-top: calc(var(--header-h) + 20px); }
.dsec:has(> .calc) { border-bottom: 0; padding-bottom: 0; }
.dsec__title { font: 500 30px/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.dsec__lede { color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.dsec .go { justify-self: start; }
.dsec > .btn { justify-self: start; }
.sfront { display: grid; gap: 14px; }
.sfront__item { padding-left: 16px; border-left: 2px solid var(--gold); }
.sfront__title { font: 600 18px/1.3 var(--sans); }
.sfront__item p { margin-top: 4px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.shots { display: grid; gap: 22px; margin-top: 8px; }
.steps { display: grid; gap: 4px; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-btn-a), var(--gold-btn-b)); color: var(--on-gold); font: 700 16px/1 var(--sans); }
.step__title { font: 600 18px/1.35 var(--sans); }
.step p { margin-top: 4px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.soon { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(233, 185, 104, .1); box-shadow: inset 0 0 0 1px rgba(233, 185, 104, .6); color: var(--amber); font: 700 14px/1.5 var(--sans); letter-spacing: .03em; white-space: nowrap; vertical-align: 1px; }
.soon .icon { width: 13px; height: 13px; }
.soonbox { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(233, 185, 104, .05); box-shadow: inset 0 0 0 1px rgba(233, 185, 104, .45); }
.soonbox__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font: 600 16px/1.3 var(--sans); }
.soonbox__title .soon { margin-left: 0; }
.soonbox ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.sfacts { display: grid; gap: 0; margin: 0; }
.sfact { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.sfact dt { color: var(--ink-2); font: 600 14px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.sfact dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.45; }
.sfact__link, .sfact__link:visited { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--gold-hi); font-weight: 600; text-underline-offset: 3px; }
.sfact__link .icon { width: 15px; height: 15px; }
.sfact__link:hover, .sfact__link:focus-visible { color: var(--ink); }
.sfact .soon { margin-left: 0; }
@media (min-width: 640px) { .sfact { grid-template-columns: 180px minmax(0, 1fr); column-gap: 16px; align-items: baseline; } .dsec__title { font-size: 34px; } }
.sources__note { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.napps { display: grid; gap: 10px; margin-top: 14px; }
.napp, .napp:visited { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; color: var(--ink); text-decoration: none; background: linear-gradient(165deg, #211912 0%, #150f0b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.napp img { width: 48px; height: 48px; border-radius: 12px; }
.napp b { display: flex; align-items: center; font: 500 20px/1.2 var(--serif); }
.napp span span:not(.badge-new) { display: block; margin-top: 2px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.napp__go { color: var(--gold-hi); transition: transform .3s var(--ease); }
.napp:hover, .napp:focus-visible { box-shadow: inset 0 0 0 1px var(--gold-hi); transform: translateY(-2px); }
.napp:hover .napp__go, .napp:focus-visible .napp__go { transform: translateX(3px); }
@media (min-width: 900px) { .napps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Content-page heroes: guide and problem additions */
.ahero__appicon { width: 24px; height: 24px; border-radius: 6px; }
.ahero__topic--static { min-height: 44px; }
.ahero__actions { margin-top: 16px; }
.ahero__shot { align-self: center; }

/* ---------- Problem page ---------- */
.wrongs { display: grid; gap: 10px; }
.wrong { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(232, 160, 138, .05); box-shadow: inset 0 0 0 1px rgba(232, 160, 138, .35); }
.wrong__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--warn); background: rgba(232, 160, 138, .12); }
.wrong__icon .icon { width: 17px; height: 17px; }
.wrong__title { font: 600 17px/1.35 var(--sans); }
.wrong p { margin-top: 2px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.checklist { display: grid; gap: 10px; counter-reset: c; }
.checklist li { position: relative; padding-left: 44px; color: var(--ink); font-size: 18px; line-height: 1.55; counter-increment: c; }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2d2217; color: var(--gold-hi); font: 700 15px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .5); }
.appbox { display: grid; gap: 16px; padding: 20px 18px; border-radius: 18px; background: radial-gradient(80% 90% at 0% 0%, rgba(220, 187, 138, .12), transparent 70%), linear-gradient(165deg, #241b13 0%, #15100b 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.appbox__id { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.appbox__id img { width: 56px; height: 56px; border-radius: 14px; }
.appbox__id b { display: flex; align-items: center; flex-wrap: wrap; font: 500 21px/1.2 var(--serif); }
.appbox__id span span:not(.badge-new) { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.appbox__free, .free { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font: 600 15px/1.3 var(--sans); }
.appbox__free .icon, .free .icon { width: 17px; height: 17px; }
.appbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

/* Plate pictures */
.window { display: grid; gap: 10px; width: 100%; }
.window__track { display: grid; grid-template-columns: 14fr 60fr 26fr; height: 30px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .4); }
.window__late { background: repeating-linear-gradient(135deg, rgba(173, 156, 131, .35) 0 6px, transparent 6px 12px); }
.window__live { background: linear-gradient(90deg, #c29b67, var(--gold-hi)); }
.window__over { background: repeating-linear-gradient(135deg, var(--warn) 0 6px, rgba(232, 160, 138, .45) 6px 12px); }
.window__marks { display: grid; grid-template-columns: 14fr 60fr 26fr; color: var(--ink-2); font-size: 14px; }
.window__marks span:first-child { grid-column: 1 / span 2; }
.window__marks span:last-child { grid-column: 3; transform: translateX(-50%); }
.window__key { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 14px; }
.window__k { display: inline-flex; align-items: center; gap: 6px; }
.window__k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.window__k--late::before { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.window__k--live::before { background: var(--gold-hi); }
.window__k--over::before { background: var(--warn); }
.slice { display: grid; gap: 10px; width: 100%; }
.slice__bar { display: grid; grid-template-columns: 82fr 18fr; height: 46px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .4); }
.slice__rest { display: flex; align-items: center; padding: 0 12px; background: rgba(134, 112, 79, .28); color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; }
.slice__cut { display: grid; place-items: center; background: linear-gradient(90deg, #c29b67, var(--gold-hi)); }
.slice__cutlab { color: var(--on-gold); font: 700 14px/1 var(--sans); }
.slice__legend { color: var(--ink-2); font-size: 14px; }
.slice__k { display: inline-flex; align-items: center; gap: 6px; }
.slice__k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--gold-hi); }
.dots { display: grid; gap: 10px; width: 100%; }
.dots__grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.dots__d { aspect-ratio: 1; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .45); }
.dots__d--on { background: var(--gold-hi); box-shadow: none; }
.dots__key { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 14px; }
.dots__k { display: inline-flex; align-items: center; gap: 6px; }
.dots__k::before { content: ""; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--gold-hi); }
.dots__k--on::before { background: var(--gold-hi); }
.plate--window .plate__visual, .plate--slice .plate__visual, .plate--dots .plate__visual, .plate--lever .plate__visual { min-height: 0; align-items: center; }
.js .plate:not(.is-played) .window__live, .js .plate:not(.is-played) .window__over, .js .plate:not(.is-played) .slice__cut { transform: scaleX(0); }
.js .plate .window__live, .js .plate .window__over, .js .plate .slice__cut { transform-origin: left; transition: transform 1s var(--ease) .3s; }
.js .plate .window__over { transition-delay: 1.1s; }

/* ---------- Index pages ---------- */
.aindex, .gindex, .pindex { padding: 20px 0 64px; }
.acards, .gcards, .pcards { display: grid; gap: 18px; }
.acard { display: grid; gap: 14px; align-content: start; padding: 20px 18px; border-radius: 20px; background: radial-gradient(70% 60% at 0% 0%, rgba(220, 187, 138, .1), transparent 70%), linear-gradient(165deg, #211912 0%, #130e0a 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.acard__id { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.acard__icon { width: 64px; height: 64px; border-radius: 16px; }
.acard__name { font: 500 28px/1.1 var(--serif); }
.acard__name a, .acard__name a:visited { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.acard__name a:hover, .acard__name a:focus-visible { color: var(--gold-hi); }
.acard__sub { color: var(--gold-hi); font: italic 400 18px/1.2 var(--serif); }
.acard__problem { color: var(--ink); font-size: 16px; }
.acard__plabel { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 700 14px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.acard__plabel .icon { width: 16px; height: 16px; color: var(--gold-hi); }
.acard__problem a, .acard__problem a:visited { color: var(--gold-hi); font-weight: 700; text-underline-offset: 3px; }
.acard__problem a:hover, .acard__problem a:focus-visible { color: var(--ink); }
.acard__short { color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.acard__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ok); font: 600 15px/1.3 var(--sans); }
.acard__facts .icon { width: 17px; height: 17px; }
.acard__facts span:last-child, .acard__dot { color: var(--ink-2); font-weight: 500; }
.acard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.acard__shot .shot__cap { display: none; }
@media (min-width: 1024px) { .acards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { display: grid; gap: 14px; align-content: start; padding: 20px 18px; border-radius: 20px; background: linear-gradient(165deg, #211912 0%, #130e0a 100%); box-shadow: inset 0 0 0 1px var(--card-edge); }
.gcard__head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.gcard__head img { width: 56px; height: 56px; border-radius: 14px; }
.gcard__title { font: 500 24px/1.2 var(--serif); }
.gcard__title a, .gcard__title a:visited { color: var(--ink); text-decoration: none; }
.gcard__title a:hover, .gcard__title a:focus-visible { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }
.gcard__sub { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.gcard__list { display: grid; counter-reset: g; border-top: 1px solid var(--rule-soft); }
.gcard__list li { counter-increment: g; border-bottom: 1px solid var(--rule-soft); }
.gcard__list a, .gcard__list a:visited { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); font-size: 16px; text-decoration: none; }
.gcard__list a::before { content: counter(g); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2d2217; color: var(--gold-hi); font: 700 14px/1 var(--sans); }
.gcard__list a:hover, .gcard__list a:focus-visible { color: var(--ink); }
.gcard > .btn { justify-self: start; }
.gindex__more { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--ink-2); font-size: 17px; }
.gindex__more .icon { color: var(--gold-hi); }
.gindex__more a, .gindex__more a:visited { color: var(--gold-hi); font-weight: 700; text-underline-offset: 3px; }
.gindex__more a:hover, .gindex__more a:focus-visible { color: var(--ink); }
@media (min-width: 1024px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard__link, .pcard__link:visited { position: relative; display: grid; gap: 10px; height: 100%; padding: 22px 18px; border-radius: 20px; color: var(--ink); text-decoration: none; background: radial-gradient(70% 60% at 100% 0%, rgba(220, 187, 138, .1), transparent 70%), linear-gradient(165deg, #211912 0%, #130e0a 100%); box-shadow: inset 0 0 0 1px var(--card-edge); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard__link:hover, .pcard__link:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 30px 50px -30px rgba(0, 0, 0, 1); }
.pcard__no { position: absolute; right: 18px; top: 10px; font: 300 64px/1 var(--serif); color: var(--rule); }
.pcard__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, rgba(246, 220, 170, .22), rgba(194, 155, 103, .08) 70%); }
.pcard__name { font: 500 26px/1.15 var(--serif); }
.pcard__fig { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.pcard__fig b { display: block; margin-bottom: 4px; color: var(--gold-hi); font: 300 44px/1 var(--serif); }
.pcard__src { color: var(--ink-2); font: 700 14px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.pcard__app { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule-soft); color: var(--gold-hi); font: 700 16px/1 var(--sans); }
.pcard__app img { width: 24px; height: 24px; border-radius: 6px; }
.pcard__go { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.pcard__link:hover .pcard__go, .pcard__link:focus-visible .pcard__go { transform: translateX(3px); }
.pindex__ctx { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin-top: 24px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.pindex__ctx > .icon { color: var(--gold-hi); margin-top: 3px; }
@media (min-width: 1024px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.allsrc { padding: 64px 0 80px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--rule-soft); scroll-margin-top: var(--header-h); }
.slists { display: grid; gap: 28px; }
.slist__title { font: italic 500 22px/1.2 var(--serif); color: var(--gold-hi); margin-bottom: 6px; }
.slist__list { display: grid; }
.slist__item { border-top: 1px solid var(--rule-soft); }
.slist__link, .slist__link:visited { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 12px; align-items: center; min-height: 52px; padding: 10px 0; color: var(--ink); font-size: 16px; line-height: 1.45; text-decoration: none; }
.slist__link .icon { width: 16px; height: 16px; color: var(--gold-hi); }
.slist__link:hover .slist__name, .slist__link:focus-visible .slist__name { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) { .slists { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } }

/* next band on app pages */
.next .go { display: flex; }

@media (prefers-reduced-motion: reduce) {
  .js .bhero__copy > * { animation: none; }
  .js .plate:not(.is-played) .lever__fill, .js .plate:not(.is-played) .window__live, .js .plate:not(.is-played) .window__over, .js .plate:not(.is-played) .slice__cut { transform: none; }
}

/* ===================== iter2 additions ===================== */
/* Notes menu: three topic entries */
@media (min-width: 960px) { .dropdown--topics { width: 380px; } }

/* Hero problem rows: the row goes to our app page, a second link goes to the App Store listing */
.prow { display: grid; gap: 0; }
.prow__store, .prow__store:visited { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 64px; color: var(--ink-2); font: 600 14px/1.2 var(--sans); text-decoration: underline; text-decoration-color: rgba(173, 156, 131, .6); text-underline-offset: 3px; }
.prow__store .icon { width: 14px; height: 14px; color: var(--gold-hi); }
.prow__store:hover, .prow__store:focus-visible { color: var(--gold-hi); text-decoration-color: currentColor; }
@media (min-width: 640px) { .prow { grid-template-columns: minmax(0, 1fr); } }

/* Hero card: what the problems cost */
.waste__list { display: grid; gap: 0; }
.waste__row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.waste__row:first-child { border-top: 0; padding-top: 4px; }
.waste__name { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 16px/1.3 var(--sans); }
.waste__name .icon { width: 17px; height: 17px; color: var(--gold-hi); }
.waste__fig { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.waste__fig b { display: block; margin-bottom: 2px; color: var(--gold-hi); font: 300 38px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.waste__src { display: flex; flex-wrap: wrap; gap: 0 14px; }
.waste__note { padding-top: 10px; border-top: 1px solid var(--rule-soft); color: var(--ink-2); font: italic 400 16px/1.4 var(--serif); }
.waste h2.bhero__plabel { margin: 0; }
.waste .plate__body { gap: 10px; }

/* Authority strip: each name opens its citation */
.authority__name, .authority__name:visited { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font: 600 16px/1.4 var(--sans); text-decoration: underline; text-decoration-color: rgba(173, 156, 131, .5); text-underline-offset: 4px; }
.authority__name:hover, .authority__name:focus-visible { color: var(--gold-hi); text-decoration-color: currentColor; }

/* Problem blocks: search terms under the problem name, secondary links */
.solve__terms { display: block; margin-top: 6px; color: var(--gold-hi); font: italic 400 19px/1.3 var(--serif); letter-spacing: 0; }
.solve__more { display: flex; flex-wrap: wrap; gap: 0 18px; }
.solve__more .go .icon:first-child { width: 16px; height: 16px; color: var(--gold-hi); margin-right: 2px; }
.solves__scale { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.solves__scale > .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-hi); }
@media (min-width: 1024px) { .solve__terms { font-size: 21px; } }

/* Upside: one card per lever, more research behind a disclosure */
.stat__lever { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.stat__lever img { width: 24px; height: 24px; border-radius: 6px; }
.stat__app { color: var(--ink-2); letter-spacing: .02em; text-transform: none; font-weight: 600; }
.moreres { margin-top: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.moreres__sum { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; color: var(--gold-hi); font: 600 16px/1.3 var(--sans); cursor: pointer; list-style: none; border-radius: 16px; }
.moreres__sum::-webkit-details-marker { display: none; }
.moreres__sum:hover, .moreres__sum:focus-visible { color: var(--ink); background: rgba(194, 155, 103, .08); }
.moreres__plus { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.moreres[open] .moreres__plus { transform: rotate(45deg); }
.moreres__list { padding: 4px 14px 14px; }

/* Band picture: a whole, with a range marked inside it */
.band { display: grid; gap: 10px; width: 100%; }
.band__bar { display: grid; height: 46px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(220, 187, 138, .4); }
.band__lo { display: grid; place-items: center; min-width: 0; background: linear-gradient(90deg, #c29b67, var(--gold-hi)); }
.band__lab { color: var(--on-gold); font: 700 14px/1 var(--sans); white-space: nowrap; }
.band__hi { background: repeating-linear-gradient(135deg, var(--gold-hi) 0 5px, rgba(220, 187, 138, .25) 5px 10px); }
.band__rest { display: flex; align-items: center; justify-content: flex-end; min-width: 0; padding: 0 10px; background: rgba(134, 112, 79, .28); color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; }
.band__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 14px; }
.band__k { display: inline-flex; align-items: center; gap: 6px; }
.band__k::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--gold-hi); }
.band__k--hi::before { background: repeating-linear-gradient(135deg, var(--gold-hi) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--gold-hi); }
.band__bar--point .band__hi { display: none; }
.plate--band .plate__visual, .plate--markdown .plate__visual { min-height: 0; align-items: center; }
.js .plate:not(.is-played) .band__lo, .js .plate:not(.is-played) .band__hi { transform: scaleX(0); }
.js .plate .band__lo, .js .plate .band__hi { transform-origin: left; transition: transform 1s var(--ease) .3s; }
.js .plate .band__hi { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .js .plate:not(.is-played) .band__lo, .js .plate:not(.is-played) .band__hi { transform: none; } }

/* ================= Round 3: offer, coming soon, more projects, home levers ================= */
.code { padding: 1px 7px; border-radius: 6px; background: #2a2017; color: var(--gold-hi); font: 700 max(14px, .92em)/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; box-shadow: inset 0 0 0 1px var(--rule); white-space: nowrap; }
.offerbar { position: relative; z-index: 41; background: linear-gradient(90deg, #2b2016, #1d1610 70%); border-bottom: 1px solid var(--rule); }
.offerbar__in { display: flex; align-items: center; justify-content: center; padding-block: 0; }

.hoffer { padding-top: 8px; padding-bottom: 48px; }
.offer { display: grid; gap: 22px; padding: 22px 18px; border-radius: 22px; background: radial-gradient(80% 90% at 100% 0%, rgba(220, 187, 138, .16), transparent 65%), linear-gradient(165deg, #2a1f15 0%, #17110c 100%); box-shadow: inset 0 0 0 1.5px var(--gold); }
.offer__main { display: grid; gap: 14px; align-content: start; }
.offer__kicker { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.offer__kicker .icon { width: 18px; height: 18px; flex: none; }
.offer__title { font: 400 28px/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.offer__steps { display: grid; gap: 10px; counter-reset: none; }
.offer__steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink); font-size: 16px; line-height: 1.5; }
.offer__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-hi); color: var(--on-gold); font: 700 15px/1 var(--sans); }
.offer__fine { color: var(--ink-2); font: italic 400 17px/1.4 var(--serif); }
.offer__side { display: grid; gap: 14px; align-content: start; }
.offer__codebox { display: grid; gap: 4px; justify-items: start; padding: 16px 18px; border-radius: 16px; background: #120e0a; border: 1.5px dashed var(--gold-hi); }
.offer__codelabel { color: var(--ink-2); font: 700 14px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.offer__code { color: var(--gold-hi); font: 700 40px/1.05 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; user-select: all; }
.offer__codenote { color: var(--ink); font-size: 15px; line-height: 1.4; }
.offer__apps { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; }
.offer__apps img { border-radius: 8px; }
.offer__applist { display: grid; gap: 8px; }
.offer__app, .offer__app:visited { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; background: rgba(194, 155, 103, .07); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color .25s, transform .25s var(--ease); }
.offer__app img { border-radius: 8px; }
.offer__app .icon { width: 18px; height: 18px; color: var(--gold-hi); }
.offer__appt { display: grid; gap: 1px; }
.offer__appt b { display: flex; align-items: center; font-weight: 700; font-size: 16px; }
.offer__appt > span { color: var(--ink-2); font-size: 14px; }
.offer__app:hover, .offer__app:focus-visible { background: rgba(194, 155, 103, .16); transform: translateX(2px); }
.offer .btn { justify-self: start; }
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; padding: 32px 34px; } .offer__title { font-size: 34px; } }
.offer--app { margin: 8px 0 40px; }
.offer--app .offer__title { font-size: 26px; }
@media (min-width: 900px) { .offer--app { grid-template-columns: minmax(0, 1fr); } .offer--app .offer__side { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 24px; } .offer--app .offer__side .btn { grid-column: 2; } .offer--app .offer__codebox { grid-row: span 2; } }
.aphero__offer a, .aphero__offer a:visited { color: var(--gold-hi); text-underline-offset: 3px; }
.aphero__offer a:hover, .aphero__offer a:focus-visible { color: var(--ink); }
.appbox__offer { display: flex; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.appbox__offer .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-hi); }
.appbox__offer a, .appbox__offer a:visited { color: var(--gold-hi); }

.soonbox { display: grid; gap: 8px; margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: rgba(194, 155, 103, .06); box-shadow: inset 0 0 0 1px var(--rule); }
.soonbox__title { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); font: 700 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.soonbox__title .icon { width: 18px; height: 18px; }
.soonbox__lede { color: var(--ink-2); font-size: 16px; }
.soonbox__list { display: grid; gap: 6px; padding-left: 0; }
.soonbox__list li { position: relative; padding-left: 18px; color: var(--ink); font-size: 16px; line-height: 1.5; list-style: none; }
.soonbox__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); }
.prose .soonbox__list { margin: 0; }
.soonline { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.soonline .icon { width: 18px; height: 18px; color: var(--gold-hi); }

.calcs { padding: 64px 0 56px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--rule-soft); }
@media (min-width: 1024px) { .calcs { padding: 96px 0 72px; } }

.lcard__fig { display: grid; gap: 6px; padding: 14px 16px; border-left: 2px solid var(--gold-hi); background: rgba(194, 155, 103, .07); border-radius: 0 12px 12px 0; }
.lcard__num { color: var(--ink); font: 600 16px/1.35 var(--sans); }
.lcard__num b { display: block; margin-bottom: 4px; color: var(--gold-hi); font: 300 40px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.lcard__ftext { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lcard__fsrc { display: flex; flex-wrap: wrap; }
.lcard__more { display: grid; gap: 10px; }
.lcard__more > p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.lcard__sum { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gold-hi); font: 600 16px/1.3 var(--sans); cursor: pointer; list-style: none; border-radius: 10px; }
.lcard__sum::-webkit-details-marker { display: none; }
.lcard__sum:hover, .lcard__sum:focus-visible { color: var(--ink); }
.lcard__plus { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.lcard__more[open] .lcard__plus { transform: rotate(45deg); }
.lcard__more[open] > .lcard__sum { margin-bottom: 4px; }
.lcard__more .ticks { margin-top: 2px; }

.projects { padding: 56px 0; background: var(--bg-2); border-top: 1px solid var(--rule-soft); }
.projects__inner { display: grid; gap: 4px; }
.projects .shead { margin-bottom: 18px; }
.projects__slot { display: flex; align-items: center; gap: 14px; min-height: 120px; padding: 22px; border-radius: 18px; border: 1.5px dashed var(--rule); color: var(--ink-2); font: italic 400 19px/1.4 var(--serif); }
.projects__icon .icon { width: 34px; height: 34px; color: var(--gold); }
@media (min-width: 1024px) { .projects { padding: 80px 0; } .projects__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: center; } .projects .shead { margin-bottom: 0; } }

/* Round 3, phone length: links that repeat a nearby button are dropped below 640 px; tabs fit 360 px. */
@media (max-width: 639.98px) {
  .prow__store, .solve__more, .hoffer .offer__applist { display: none; }
  .hoffer { padding-bottom: 32px; }
  .tabs__list { gap: 2px; }
  .tabs__tab { padding: 0 10px; font-size: 15px; }
  .tabs__tab .icon { display: none; }
}
.faq__item--d > summary { list-style: none; cursor: pointer; min-height: 44px; align-items: start; border-radius: 8px; }
.faq__item--d > summary::-webkit-details-marker { display: none; }
.faq__item--d > summary:hover, .faq__item--d > summary:focus-visible { color: var(--gold-hi); }
.solve__does { display: grid; gap: 8px; }
.solve__does[open] .lcard__plus { transform: rotate(45deg); }
@media (max-width: 639.98px) { .proof__kind { display: none; } }
@media (max-width: 639.98px) and (min-width: 340px) {
  .calc__form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; column-gap: 10px; }
  .field__label { font-size: 14px; }
  .field__unit { padding: 0 8px; font-size: 14px; }
}
.field { min-width: 0; }
.field__input { width: 100%; }
.calc__form, .calc__grid, .calc { min-width: 0; }

/* ================= Round 4: hero offer line, formula on phones, review link ================= */
.bhero__offer { margin: 14px 0 0; font-size: 15px; line-height: 1.45; }
.bhero__offer a, .bhero__offer a:visited { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(194, 155, 103, .55); text-underline-offset: 3px; min-height: 44px; padding: 10px 0; }
.bhero__offer a:hover, .bhero__offer a:focus-visible { color: var(--gold-hi); text-decoration-color: currentColor; }
.bhero__offer .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-hi); }
.bhero__offer .code { font-size: 14px; }
/* Formula: chips from 600 px, one line of text below (operators stay with the next term). */
.eq__line { display: none; }
@media (max-width: 599.98px) {
  .eq { display: block; padding: 14px 16px; border-radius: 12px; background: rgba(194, 155, 103, .08); box-shadow: inset 0 0 0 1px var(--card-edge); }
  .eq__term, .eq__op { display: none; }
  .eq__line { display: block; color: var(--ink); font: 400 19px/1.45 var(--serif); }
  .eq__line b { font-weight: 500; font-style: italic; }
  .eq__line em { font-style: normal; color: var(--gold-hi); }
}
/* Hero: the sourced stake sits under each problem row below 1024 px, where the side panel is hidden. */
.prow__stake { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 12px 2px 64px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.prow__stake b { color: var(--gold-hi); font: 400 22px/1 var(--serif); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.prow__stake > span { flex: 1 1 200px; }
.prows__note { margin-top: 10px; color: var(--ink-2); font: italic 400 15px/1.4 var(--serif); }
@media (min-width: 1024px) { .prow__stake, .prows__note { display: none; } }
@media (max-width: 1023.98px) { .bhero__plate { display: none; } }
/* Phones keep the calculator link under each problem. */
@media (max-width: 639.98px) {
  .solve__more { display: flex; }
  .solve__more li:not(.solve__calc) { display: none; }
}
/* Levers: a swipe row on phones, three columns from 1024 px. */
.lgrid__hint { display: none; }
@media (max-width: 1023.98px) {
  .lgrid__hint { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
  .lgrid__hint .icon { width: 16px; height: 16px; color: var(--gold-hi); }
  .lgrid { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; align-items: start; padding: 2px 2px 12px; margin: -2px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
  .lgrid { position: relative; }
  .lgrid > .lcard { position: relative; scroll-snap-align: start; }
  .lgrid:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 18px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .lgrid { grid-auto-columns: 60%; } }
.revlink { margin: 16px 0 0; }
.revlink--end { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule-soft); }
/* Phones: the scale line and the per-block install link give way to a shorter problem -> app -> offer path. */
@media (max-width: 639.98px) {
  .page--home .solves__scale, .page--home .solve__actions .go { display: none; }
  .page--home .solve__actions { margin-top: 0; }
  .page--home .solves .shead { margin-bottom: 20px; }
  .page--home .offer { gap: 18px; }
}
@media (max-width: 639.98px) {
  .page--home .solves { padding: 48px 0 24px; }
  .page--home .solves__list { gap: 20px; }
  .page--home .levers { padding: 52px 0 40px; }
  .page--home .hfaq { padding: 32px 0 40px; }
}

/* ================= Round 5 ================= */
/* Phones and tablets: the primary CTA to the apps sits right under the lede, above the fold. Desktop keeps its order. */
@media (max-width: 1023.98px) {
  .bhero__copy { display: flex; flex-direction: column; }
  .bhero__copy > .bhero__for { order: 1; }
  .bhero__copy > .bhero__title { order: 2; }
  .bhero__copy > .bhero__lede { order: 3; }
  .bhero__copy > .bhero__actions { order: 4; margin-top: 18px; }
  .bhero__copy > .prows { order: 5; margin-top: 26px; }
  .bhero__copy > .prows__note { order: 6; }
  .bhero__copy > .bhero__offer { order: 7; }
}
/* The persistent offer bar carries the offer on phones; the hero line is dropped there. */
@media (max-width: 719.98px) { .bhero__offer { display: none; } }
/* Solve cards: the picture sits next to the problem heading and follows the text while it scrolls. */
@media (min-width: 1024px) {
  .solve__shot { align-self: start; position: sticky; top: 104px; margin-top: 6px; }
}
/* Footer: Support row (each app's App Store support section and privacy policy). */
.site-footer__col--support { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--rule-soft); }
.site-footer__col--support ul { display: grid; gap: 14px 24px; }
.site-footer__app { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
.site-footer__appname { flex: 1 1 100%; color: var(--ink); font: 600 16px/1.3 var(--sans); }
.site-footer__app .site-footer__link .icon { width: 15px; height: 15px; color: var(--gold-hi); }
@media (min-width: 640px) { .site-footer__col--support ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Guides: a step whose label is not confirmed yet. */
.soontag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-hi); font: 600 15px/1.6 var(--sans); white-space: nowrap; }
.soontag .icon { width: 15px; height: 15px; }
/* Install buttons carry the full listing name: let them wrap on narrow phones instead of widening the page. */
.aphero__copy, .ahero__grid > div { min-width: 0; }
.aphero__actions .btn, .ahero__actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 639.98px) { .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; } }
.abody__grid > *, .appdoc, .dsec { min-width: 0; }

/* ================= Round 6 ================= */
/* A source link never leaves its arrow alone on a line. */
.nw { white-space: nowrap; }


/* Hero: the one $ figure, under the lede, at every width. */
.bhero__money { display: grid; gap: 4px; margin-top: 16px; padding: 12px 16px; border-left: 2px solid var(--gold-hi); border-radius: 0 12px 12px 0; background: rgba(194, 155, 103, .08); color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.bhero__money b { color: var(--gold-hi); font: 400 30px/1.05 var(--serif); letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.bhero__money > span { color: var(--ink); }
.bhero__money .cite { margin-top: 2px; }
@media (min-width: 640px) { .bhero__money { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: baseline; } .bhero__money .cite { grid-column: 2; } }
@media (min-width: 1024px) { .bhero__money { margin-top: 20px; } .bhero__money b { font-size: 34px; } .bhero__actions { margin-top: 24px; } .bhero .prows { margin-top: 28px; } }
@media (max-width: 1023.98px) {
  .bhero__copy > .bhero__money { order: 3; }
  .bhero__plate { display: block; }
}
/* The hero panel holds each app's figure once, at every width. */
.waste__fig b { font-size: 34px; }
.waste__src .cite { min-width: 0; }
@media (max-width: 639.98px) { .waste__fig b { font-size: 30px; } }

/* Solve cards: both links stay on phones (the calculator and the sources). */
@media (max-width: 639.98px) {
  .solve__more { display: flex; flex-direction: column; gap: 2px; }
  .solve__more li:not(.solve__calc) { display: list-item; list-style: none; }
}

/* Supporting notes: every tile names its source, at every width. */
.proof__kind { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font: 600 14px/1.35 var(--sans); letter-spacing: 0; text-transform: none; }
.proof__kind .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--gold-hi); }
@media (max-width: 639.98px) { .proof__kind { display: flex; } }

/* Source links wrap as text, so the arrow stays with the last word. */
.src, .src:visited { display: inline-block; min-height: 0; padding-block: 6px; line-height: 1.45; }
.cite--line .src { min-height: 0; padding-block: 4px; }
.src .icon { margin-left: 3px; vertical-align: -2px; }
.bhero__stake .src { display: inline; padding: 0; }

/* Hero panel: each row links to the app that fixes it. */
.waste__app { margin-top: 2px; }
.waste__app .go img { width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; }
.waste__row { padding: 16px 0; }

/* Phones: the hero panel carries the three problems, so the hero rows step aside. */
@media (max-width: 639.98px) {
  .bhero .prows { display: none; }
  .page--home .solve__does { display: none; }
  .page--home .solve__fix { gap: 0; }
}

/* Supporting notes: a swipe row on phones and tablets, four columns from 1024 px. */
.proofs__hint { display: none; }
@media (max-width: 1023.98px) {
  .proofs__hint { display: flex; }
  .proofs__list { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; align-items: stretch; padding: 2px 2px 12px; margin: -2px; scrollbar-width: thin; }
  .proofs__list > .proof { scroll-snap-align: start; }
  .proofs__list:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 18px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .proofs__list { grid-auto-columns: 46%; } }

/* Solve cards: the problem name links to its sources page. */
.solve__plink, .solve__plink:visited { color: inherit; text-decoration: underline; text-decoration-color: rgba(220, 187, 138, .45); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.solve__plink:hover, .solve__plink:focus-visible { color: var(--gold-hi); text-decoration-color: currentColor; }
.solve__costs, .solve__costs:visited { color: var(--gold-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.solve__costs:hover, .solve__costs:focus-visible { color: var(--ink); }

/* Phones: a shorter home page (round 6 target: under 8,000 px at 390). */
@media (max-width: 639.98px) {
  .bhero .cite__type, .page--home .bhero__plate .plate__foot { display: none; }
  .bhero__money { margin-top: 14px; padding: 10px 14px; }
  .bhero__money b { font-size: 28px; }
  .waste__row { padding: 12px 0; }
  .page--home .solve__more { display: flex; }
  .page--home .solve__shot { margin-top: -4px; }
  .page--home .solve { gap: 16px; padding: 18px 16px; }
  .page--home .solve__copy { gap: 10px; }
  .page--home .levers .shead__lede { display: none; }
  .page--home .levers { padding: 40px 0 32px; }
  .page--home .proofs { padding: 44px 0 24px; }
  .page--home .projects { padding: 36px 0; }
  .page--home .projects__slot { min-height: 0; padding: 16px 18px; }
  .page--home .solves { padding: 40px 0 16px; }
  .site-footer__about { display: none; }
}
@media (max-width: 639.98px) {
  .page--home .solve__sub { display: none; }
  .page--home .solve__shot .shot__img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
  .site-footer__long { display: none; }
  .site-footer__app { column-gap: 14px; }
  .site-footer__appname { flex: 0 0 auto; min-width: 92px; }
  .site-footer__col--support ul { gap: 4px; }
  .site-footer__brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
  .site-footer__brand > :not(.site-footer__mark):not(.site-footer__word) { grid-column: 1 / -1; }
  .site-footer__word { margin: 0; }
}
.bhero__psub { display: block; margin-top: 4px; color: var(--ink-2); font: italic 400 16px/1.35 var(--serif); letter-spacing: 0; text-transform: none; }
.page--home .waste__note { display: none; }
@media (max-width: 639.98px) {
  .page--home .bhero__actions .btn--ghost { display: none; }
  .page--home .bhero__plate .plate__foot { display: flex; }
  .page--home .solves .shead__lede, .page--home .projects .shead__lede { display: none; }
  .page--home .hoffer .offer__codebox { display: none; }
  .page--home .offer__title { font-size: 25px; }
  .page--home .authority__list { gap: 0 14px; }
  .page--home .authority__name, .page--home .authority__name:visited { font-size: 15px; min-height: 30px; }
}
@media (max-width: 639.98px) {
  .page--home .hfaq .faq__item { padding-block: 8px; }
  .page--home .caveat { padding: 16px; }
}
@media (max-width: 639.98px) {
  .page--home .hfaq { padding: 28px 0 28px; }
  .page--home .hoffer { padding-bottom: 24px; }
  .page--home .solves__list { gap: 16px; }
  .page--home .offer__steps { gap: 8px; }
}
@media (max-width: 639.98px) {
  .site-footer { padding-top: 36px; }
  .site-footer__grid { row-gap: 18px; }
  .site-footer__legal { margin-top: 20px; padding-top: 16px; }
  .site-footer__col--support { padding-top: 16px; }
}
@media (max-width: 639.98px) {
  .page--home .bhero { padding-bottom: 28px; }
  .page--home .levers .shead, .page--home .proofs .shead { margin-bottom: 18px; }
  .page--home .bhero__plate .plate__body { gap: 6px; }
}
.waste .bhero__plabel { flex-wrap: wrap; row-gap: 0; }
.waste .bhero__psub { flex: 1 0 100%; }
.waste__row { padding: 14px 0; }
.waste__app { margin-top: -2px; }
@media (min-width: 1024px) {
  .page--home .bhero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); column-gap: 56px; align-items: start; }
  .page--home .bhero__copy { padding-top: 44px; }
}
.note > .prose + .offer { margin-top: 40px; }

/* ================= Round 7 ================= */
/* Hero: lede, then the three app links (each problem one tap from its app), then the offer line, the button, the sourced stake. */
.happs { display: grid; gap: 8px; margin-top: 16px; }
.happ, .happ:visited { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 48px; padding: 7px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; background: rgba(194, 155, 103, .07); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color .25s, transform .25s var(--ease); }
.happ img { border-radius: 7px; }
.happ__t { display: grid; gap: 0; min-width: 0; }
.happ__t b { display: flex; align-items: center; font: 700 16px/1.25 var(--sans); }
.happ__t > span { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.happ__go { width: 16px; height: 16px; color: var(--gold-hi); }
.happ:hover, .happ:focus-visible { background: rgba(194, 155, 103, .16); transform: translateX(2px); }
@media (min-width: 720px) { .happs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .happ, .happ:visited { grid-template-columns: 28px minmax(0, 1fr); } .happ__go { display: none; } }
@media (min-width: 1024px) { .happs { margin-top: 22px; } }

.bhero .bhero__offer { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.bhero .bhero__offer b { color: var(--gold-hi); font-weight: 700; }
.bhero .bhero__offer .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-hi); }
.bhero .bhero__offer .code { font-size: 14px; }
@media (max-width: 1023.98px) {
  .bhero__copy > .bhero__for { order: 1; }
  .bhero__copy > .bhero__title { order: 2; }
  .bhero__copy > .bhero__lede { order: 3; }
  .bhero__copy > .happs { order: 4; }
  .bhero__copy > .bhero__offer { order: 5; }
  .bhero__copy > .bhero__actions { order: 6; margin-top: 16px; }
  .bhero__copy > .bhero__money { order: 7; }
}
@media (max-width: 639.98px) {
  .page--home .bhero__lede { font-size: 16px; line-height: 1.45; }
  .page--home .bhero__title { font-size: 34px; }
  .happs { margin-top: 14px; gap: 6px; }
  .happ, .happ:visited { min-height: 46px; padding: 6px 12px; }
  .bhero .bhero__offer { margin-top: 12px; font-size: 14.5px; }
}

/* Offer terms as rows, so they can be scanned before the button. */
.offer__stack { display: grid; margin: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); background: rgba(14, 11, 8, .45); }
.offer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--rule); }
.offer__row:first-child { border-top: 0; }
.offer__row dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font: 600 15px/1.3 var(--sans); }
.offer__row dt .icon { flex: none; width: 16px; height: 16px; color: var(--gold-hi); }
.offer__row dd { margin: 0; color: var(--ink); font: 700 15px/1.3 var(--sans); text-align: right; }
.offer__row dd b { color: var(--gold-hi); font-size: 17px; }
@media (min-width: 900px) {
  .offer--app .offer__codebox { grid-row: span 3; }
  .offer--app .offer__stack, .offer--app .offer__apps { grid-column: 2; }
}

/* Phones: the code and the three install rows show in the offer, so a phone visitor can install from it. */
@media (max-width: 1023.98px) {
  .hoffer .offer__applist, .page--home .hoffer .offer__applist { display: grid; }
  .page--home .hoffer .offer__codebox { display: grid; }
}
.offer__app, .offer__app:visited { min-height: 52px; }
@media (max-width: 639.98px) {
  .offer__codebox { padding: 12px 16px; }
  .offer__code { font-size: 32px; }
}

/* Phones: a crop of the widget itself, served through <picture>, so prices and buttons can be read. */
@media (max-width: 639.98px) {
  .shot--crop .shot__img, .page--home .shot--crop .shot__img { aspect-ratio: auto; height: auto; object-fit: contain; }
}

/* Phones: the three levers stack as headline stats, each with its disclosure; no second swiper. */
@media (max-width: 639.98px) {
  .page--home .levers .lgrid__hint { display: none; }
  .page--home .lgrid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; gap: 10px; }
  .page--home .lcard { gap: 6px; padding: 14px 16px; }
  .page--home .lcard__title { display: none; }
}

/* Target size (WCAG 2.2, 24 px): standalone text links and icon controls. */
.solve__costs, .solve__costs:visited { display: inline-flex; align-items: center; min-height: 24px; padding-block: 2px; }
.cite--line .src, .src, .src:visited { min-height: 24px; }
.go, .go:visited { min-height: 24px; }
.lcard__sum, .faq__q { min-height: 24px; }

/* Phones: shorter home page. The hero rows already link each problem to its app, so the panel's app links step aside. */
@media (max-width: 639.98px) {
  .page--home .waste__app { display: none; }
  .page--home .lcard .cite__type, .page--home .offer__codenote { display: none; }
  .page--home .lcard__fig { padding: 10px 14px; }
}
/* Desktop hero app links: name beside the icon, the problem underneath across the card. */
@media (min-width: 720px) {
  .happ, .happ:visited { grid-template-columns: 28px minmax(0, 1fr); align-items: start; padding: 10px 12px; }
  .happ__t { display: contents; }
  .happ__t b { align-self: center; }
  .happ__t > span { grid-column: 1 / -1; }
}

/* ================= Round 9 ================= */
/* Hero: the three app rows ARE the call to action (gold buttons straight to each app page). */
.happ, .happ:visited { color: var(--on-gold); background: linear-gradient(180deg, var(--gold-btn-a), var(--gold-btn-b)); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 244, 220, .55); min-height: 56px; }
.happ img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(26, 19, 11, .25); }
.happ__t b { color: var(--on-gold); flex-wrap: wrap; row-gap: 2px; }
.happ__t > span { color: var(--on-gold); font-weight: 500; }
.happ__go { color: var(--on-gold); }
.happ:hover, .happ:focus-visible { color: var(--on-gold); background: linear-gradient(180deg, #ecd2a6, var(--gold-btn-a)); transform: translateY(-2px); }
.happ .badge-new { color: var(--gold-hi); background: var(--on-gold); box-shadow: none; }
.happ, .happ:visited { grid-template-columns: 32px minmax(0, 1fr) 16px; }
/* One full-width row per app at every width, so each listing name sits on one line. */
@media (min-width: 720px) {
  .happs { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .happ, .happ:visited { grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; padding: 8px 14px; }
  .happ__t { display: grid; }
  .happ__t > span { grid-column: auto; }
  .happ__go { display: block; }
}
.bhero__more { margin: 10px 0 0; }
.bhero__more .go .icon:first-child { width: 18px; height: 18px; }
@media (max-width: 1023.98px) { .bhero__copy > .bhero__more { order: 6; } }

/* Lever cards: each lever links to the calculator that turns it into $ with the visitor's own numbers. */
.lcard__calc { margin: 2px 0 0; }
.lcard__calc .go { align-items: center; font-size: 15px; line-height: 1.3; }
.lcard__calc .go > span { display: grid; }
.lcard__cq { color: var(--ink-2); font-weight: 500; font-size: 14px; }

/* Offer stack: the total row reads as the result. */
.offer__row--total dd { color: var(--gold-hi); }

/* Problem pages: the app that solves it, right after the lede. */
.psolve { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px 12px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(194, 155, 103, .08); box-shadow: inset 0 0 0 1px var(--rule); max-width: 34em; }
.psolve__icon { border-radius: 10px; }
.psolve__t { display: grid; gap: 1px; margin: 0; }
.psolve__k { display: flex; align-items: center; color: var(--ink-2); font: 600 13px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.psolve__t b { color: var(--ink); font: 700 17px/1.3 var(--sans); }
.psolve__free { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.psolve__btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) { .psolve { grid-template-columns: 40px minmax(0, 1fr) auto; } .psolve__btn { grid-column: auto; width: auto; } }

/* Footer: each guide link wraps as one item. */
.site-footer__col .site-footer__link { flex-wrap: wrap; }

/* Target size: every standalone link or control is at least 44 px tall (CRO rule 13). */
.go, .go:visited { min-height: 44px; }
.src, .src:visited, .cite--line .src { display: inline-block; min-height: 44px; padding-block: 11px; line-height: 22px; }
.authority__name, .authority__name:visited, .page--home .authority__name, .page--home .authority__name:visited { min-height: 44px; }
.acard__problem a, .acard__problem a:visited { display: inline-flex; align-items: center; min-height: 44px; }
.solve__costs, .solve__costs:visited { display: flex; width: fit-content; min-height: 44px; padding-block: 0; }
.lcard__sum, .faq__q { min-height: 44px; }
.gcard__title a, .gcard__title a:visited, .sfact__link, .sfact__link:visited { display: inline-flex; align-items: center; flex-wrap: wrap; min-height: 44px; }
.aphero__offer a, .aphero__offer a:visited { display: inline-block; padding-block: 11px; line-height: 22px; }
.offer__row dt { white-space: nowrap; }

/* ================= p11 merge ================= */
/* Offer strip: one short line, the same words at every width. */
.offerbar__line { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 0; white-space: nowrap; color: var(--ink); font: 500 15px/1.2 var(--sans); }
.offerbar__line > .icon { flex: none; width: 18px; height: 18px; color: var(--gold-hi); }
.offerbar__msg { font-weight: 600; }
.offerbar__code { font-size: 14px; }
.offerbar__go, .offerbar__go:visited { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-hi); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(220, 187, 138, .55); text-underline-offset: 3px; }
.offerbar__go:hover, .offerbar__go:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 419.98px) {
  .offerbar__in { padding-inline: 12px; }
  .offerbar__line { gap: 7px; font-size: 14px; }
  .offerbar__line > .icon { display: none; }
  .offerbar__code { padding: 1px 5px; font-size: 13.5px; letter-spacing: .03em; }
}

/* Merged home: one section rhythm for the iter8 and iter9 blocks. */
.page--home .hproof { color: var(--ink-2); }
.page--home .authority { margin-top: 0; }
.page--home .levers, .page--home .proofs, .page--home .claims, .page--home .method { padding-block: 40px; }
.page--home .hero { padding-bottom: 40px; }
@media (min-width: 1024px) {
  .page--home .levers, .page--home .proofs, .page--home .claims, .page--home .method { padding-block: 60px; }
  .page--home .hero { padding-bottom: 56px; }
}
/* Popular advice on phones: the same footer on every card, source line then "Read the note". */
@media (max-width: 767.98px) { .page--home .myth__foot { display: grid; justify-items: start; gap: 0; } }

/* p11: plate for the multi-unit note (quantity 1 to 6, the study's strongest range marked) */
.units { display: grid; gap: 14px; width: 100%; }
.units__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.units__u { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; color: var(--ink-2); font: 400 clamp(22px, 5vw, 30px)/1 var(--serif); background: rgba(194, 155, 103, .08); box-shadow: inset 0 0 0 1px var(--rule-soft); }
.units__u--on { color: var(--on-gold); background: linear-gradient(165deg, var(--gold-hi), var(--gold)); box-shadow: none; }
.units__key { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.units__sw { width: 14px; height: 14px; border-radius: 4px; background: var(--gold-hi); }
.js .plate:not(.is-played) .units__u--on { transform: scale(.6); opacity: 0; }
.js .plate .units__u--on { transition: transform .6s var(--ease) .3s, opacity .6s .3s; }
.js .plate .units__u--on + .units__u--on { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) { .js .plate:not(.is-played) .units__u--on { transform: none; opacity: 1; } }
.pnotes { margin: 8px 0 32px; }
.sources__open, .sources__open:visited { grid-column: 2; }
.sources__mark { grid-row: 1 / span 4; }
.pactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.page--problem .psolve { margin-top: 18px; }

/* App pages without screenshots: the hero copy takes the full row. */
@media (min-width: 1024px) { .aphero__grid--solo { grid-template-columns: minmax(0, 820px); } }

/* Footer: privacy and contact links */
.site-footer__legal-link, .site-footer__legal-link:visited { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal-link:hover, .site-footer__legal-link:focus-visible { color: var(--gold-hi); }
/* Privacy and contact: one readable column */
.note--plain { max-width: 720px; }
