/* MixGuide. iOS grouped-list grounds, Picks drawn as punch-card stamps, magenta only as stamp ink. */
:root {
  --ground: #f2f2f7;
  --card: #ffffff;
  --card-2: #f7f7fa;
  --ink: #1c1c1e;
  --ink-2: #55555e;
  --ink-3: #6e6e78;
  --hair: rgba(60, 60, 67, 0.16);
  --hair-strong: rgba(60, 60, 67, 0.28);
  --magenta: #e20074;
  --magenta-ink: #b8005e;
  --magenta-wash: #fdeef6;
  --amber: #a85b00;
  --amber-wash: #fff4e2;
  --green: #1f7a3d;
  --green-wash: #e8f6ec;
  /* tier tints: Standard plain, More slate, Loaded plum */
  --more: #34405a;
  --more-wash: #eef1f7;
  --loaded: #2b1631;
  --loaded-2: #3c2244;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 6px 18px rgba(20, 20, 30, 0.06);
  --shadow-up: 0 -1px 0 var(--hair), 0 -8px 24px rgba(20, 20, 30, 0.05);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --stamp: 22px;
  --pad: 16px;
  font-size: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--ground);
  line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: rgba(226, 0, 116, 0.18); }
input, button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--magenta); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- login ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate-card {
  width: min(380px, 100%); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 32px 24px 24px; display: grid; gap: 14px; text-align: center;
}
.gate-card h1 { font-size: 1.75rem; font-weight: 700; }
.gate-card p { color: var(--ink-2); }
.gate-mark, .brand-mark { display: inline-flex; gap: 5px; justify-content: center; }
.gate-mark span, .brand-mark span { width: 16px; height: 16px; border-radius: 50%; background: var(--magenta); }
.gate-mark span.off, .brand-mark span.off { background: transparent; box-shadow: inset 0 0 0 2px var(--magenta); }
.gate-err { color: #b3261e; min-height: 1.2em; font-size: 0.875rem; }
.field { display: grid; gap: 6px; text-align: left; font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.field input, .field select, input.text {
  font-size: 1.0625rem; color: var(--ink); background: var(--card-2); border: 1px solid var(--hair-strong);
  border-radius: 12px; padding: 12px 14px; width: 100%; font-weight: 400;
}
.field input:focus, .field select:focus, input.text:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(226, 0, 116, 0.16); }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; font-size: 1rem;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: transform 0.15s var(--ease), background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: #cc0069; color: #fff; box-shadow: none; }
.btn.wide { width: 100%; padding: 14px; font-size: 1.0625rem; }
.btn.quiet { background: transparent; box-shadow: none; color: var(--magenta-ink); padding: 8px 10px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- shell ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) var(--pad) 10px;
  background: rgba(242, 242, 247, 0.86); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
.brand-mark span { width: 10px; height: 10px; }
.brand-mark { gap: 3px; }
.top-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--magenta-ink);
  font-weight: 600; font-size: 0.9375rem; padding: 8px 10px; border-radius: 10px; min-height: 40px;
}
.icon-btn:hover { background: rgba(60, 60, 67, 0.06); }
.icon-btn.ink { color: var(--ink); }
.nowrap { white-space: nowrap; }
.icon-btn span { white-space: nowrap; }
.seg { display: none; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px var(--pad) calc(96px + env(safe-area-inset-bottom)); outline: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
  background: rgba(249, 249, 251, 0.92); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: var(--shadow-up);
}
.tab {
  border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px;
  color: var(--ink-3); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; border-radius: 10px;
}
.tab svg { width: 25px; height: 25px; }
.tab[aria-current="page"] { color: var(--magenta-ink); }

/* phones: icon-only header actions */
@media (max-width: 699px) {
  .icon-btn.rep span { display: none; }
  .icon-btn { padding: 8px; }
}
/* unfolded Fold, tablets: segmented control on top, no bottom bar */
@media (min-width: 700px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .seg {
    display: flex; order: 3; flex-basis: 100%; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(118, 118, 128, 0.12);
  }
  .seg button {
    flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: 0.9375rem;
    color: var(--ink); display: inline-flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap;
  }
  .seg button svg { width: 18px; height: 18px; }
  .seg button[aria-current="page"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
  .tabbar { display: none; }
  .main { padding-bottom: 40px; --pad: 22px; padding-left: 22px; padding-right: 22px; }
}

/* ---------- show-customer mode ---------- */
html.show { --stamp: 26px; }
html.show { font-size: 18px; }
html.show .rep, html.show .tab-rep, html.show .rep-only { display: none !important; }
.icon-btn.done-show { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
.icon-btn.done-show:hover { background: #3a3a3c; }

/* ---------- common blocks ---------- */
.screen { display: grid; gap: 18px; animation: enter 0.35s var(--ease); }
@keyframes enter { from { opacity: 0.4; transform: translateY(6px); } }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.lede { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.group { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.group-pad { padding: 18px; }
.group h2 { font-size: 1.125rem; font-weight: 700; }
.section-h { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 4px 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.row + .row { border-top: 1px solid var(--hair); }
.row .k { color: var(--ink-2); }
.row .v { font-weight: 600; text-align: right; }
.small { font-size: 0.8125rem; color: var(--ink-2); }
.note { font-size: 0.8125rem; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(118, 118, 128, 0.12); color: var(--ink-2); white-space: nowrap;
}
.badge.warn { background: var(--amber-wash); color: var(--amber); }
.badge.good { background: var(--green-wash); color: var(--green); }
.badge.pink { background: var(--magenta-wash); color: var(--magenta-ink); }
.badge.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); }

/* ---------- line stepper + switches ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.stepper button {
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--card-2); color: var(--ink);
  display: grid; place-items: center; transition: transform 0.12s var(--ease);
}
.stepper button:active { transform: scale(0.92); }
.stepper button:disabled { opacity: 0.35; }
.stepper button svg { width: 22px; height: 22px; stroke-width: 2.2; }
.stepper .val { min-width: 92px; text-align: center; line-height: 1.05; }
.stepper .val b { display: block; font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper .val span { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.stepper.small button { width: 40px; height: 40px; }
.stepper.small .val { min-width: 54px; }
.stepper.small .val b { font-size: 1.375rem; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 51px; height: 31px; border-radius: 999px; background: rgba(120, 120, 128, 0.24); position: relative; transition: background 0.2s; flex: none; }
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); transition: transform 0.25s var(--ease);
}
.switch input:checked + .track { background: #34c759; }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--magenta); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-weight: 600; font-size: 0.9375rem; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- stamps (the signature) ---------- */
.stamps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stamp {
  width: var(--stamp); height: var(--stamp); border-radius: 50%; flex: none; position: relative;
  box-shadow: inset 0 0 0 2px var(--hair-strong); background: transparent;
}
.stamp.on { background: var(--magenta); box-shadow: none; }
.stamp.on::after { /* worn ink ring, like a rubber stamp */
  content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.38);
}
.stamp.short { box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%23a85b00' stroke-width='2.4' stroke-dasharray='5.5 2.75'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.stamp.press { animation: press 0.42s var(--ease) both; }
@keyframes press {
  0% { transform: scale(1.5) rotate(-12deg); opacity: 0; }
  55% { transform: scale(0.92) rotate(2deg); opacity: 1; }
  100% { transform: none; }
}
.stamps.mini { gap: 3px; --stamp: 12px; }
.stamps.mini .stamp { box-shadow: inset 0 0 0 1.5px var(--hair-strong); }
.stamps.mini .stamp.on { box-shadow: none; }
.stamps.mini .stamp.on::after { display: none; }

/* ---------- price roll ---------- */
.price { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .cur { font-size: 0.55em; align-self: flex-start; margin-top: 0.12em; margin-right: 1px; font-weight: 600; }
.price .d { display: inline-block; overflow: hidden; height: 1em; }
.price .d > i { display: block; font-style: normal; }
.price .d.roll > i { animation: roll 0.38s var(--ease); }
@keyframes roll { from { transform: translateY(-70%); opacity: 0; } }
.price .per { font-size: 0.4em; font-weight: 600; color: inherit; opacity: 0.7; margin-left: 3px; letter-spacing: 0; }

/* ---------- plan cards ---------- */
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .plan { grid-row: span 8; grid-template-rows: subgrid; row-gap: 14px; }
  .plan .feat { grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.plan {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px;
  align-content: start; position: relative;
}
.plan.more { background: var(--more-wash); }
.plan.loaded { background: var(--loaded); color: #fff; }
.plan.loaded .stamp { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.plan.loaded .stamp.on { box-shadow: none; background: #ff3d9a; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-name { font-size: 1.1875rem; font-weight: 700; }
.plan-name small { display: block; font-size: 0.8125rem; font-weight: 600; opacity: 0.72; letter-spacing: 0.01em; }
.plan .price { font-size: 2.75rem; }
.plan .sub { font-size: 0.875rem; color: var(--ink-2); margin-top: 6px; }
.plan.loaded .sub, .plan.loaded .feat dt, .plan.loaded .picks-label span { color: rgba(255, 255, 255, 0.78); }
.plan.na { opacity: 1; }
.plan.na .price-box { color: var(--ink-3); }
.plan.loaded.na .price-box { color: rgba(255, 255, 255, 0.72); }
.na-msg { font-size: 1.0625rem; font-weight: 600; padding: 10px 0; }
.picks-label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; font-weight: 700; }
.picks-label b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.picks-label span { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.feat { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); align-content: start; }
.plan .stamps { display: grid; grid-template-columns: repeat(6, var(--stamp)); gap: 6px; }
html.show .plan[data-focus] { cursor: pointer; }
.screen.focused .plans { grid-template-columns: minmax(0, 1fr); }
.screen.focused .plan.focus .feat { grid-row: auto; grid-template-rows: none; }
.feat > div { align-content: start; }
.screen.focused .plan:not(.focus) { display: none; }
.screen.focused .plan.focus { grid-row: auto; grid-template-rows: none; padding: 28px; }
.screen.focused .plan.focus { min-width: 0; }
.screen.focused .plan.focus .price { font-size: min(6rem, 22vw); }
.screen.focused .plan.focus .plan-name { font-size: 2rem; }
@media (min-width: 700px) { .screen.focused .plan.focus .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; } }
@media (max-width: 699px) { .screen.focused .plan.focus { padding: 20px; } }
.plan.loaded .feat { border-top-color: rgba(255, 255, 255, 0.16); }
.feat > div { padding: 9px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 1px; }
.plan.loaded .feat > div { border-bottom-color: rgba(255, 255, 255, 0.12); }
.feat > div:last-child { border-bottom: 0; }
.feat dt { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.feat dd { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.est { font-size: 0.75rem; font-weight: 700; vertical-align: super; margin-left: 2px; color: var(--amber); }
.plan.loaded .est { color: #ffc46b; }
.plans-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- picks screen ---------- */
.picks-layout { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .picks-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .picks-side { position: sticky; top: 132px; }
}
.card-sum { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 16px 6px; display: grid; gap: 12px; }
.need { display: flex; align-items: baseline; gap: 8px; }
.need b { font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.need span { color: var(--ink-2); font-weight: 600; }
.cover { display: grid; }
.cover-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-top: 1px solid var(--hair); align-items: center; }
.cover-row .nm { font-weight: 700; }
.cover-row .pr { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cover-row .st { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.875rem; }
.cover-row.best .nm::after { content: "Best fit"; margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: var(--green); background: var(--green-wash); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.cover-row .fix { grid-column: 1 / -1; display: grid; gap: 4px; background: var(--amber-wash); border-radius: 12px; padding: 10px 12px; margin-top: 6px; font-size: 0.875rem; color: #5c3a00; }
.cover-row .fix b { color: #4a2f00; }

.perk-group { display: grid; gap: 10px; }
.perks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.perk {
  text-align: left; border: 0; background: var(--card); border-radius: 18px; padding: 14px 14px 12px; box-shadow: var(--shadow);
  display: grid; gap: 8px; align-content: space-between; min-height: 0; position: relative;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
}
.perk:active { transform: scale(0.98); }
.perk .pn { font-weight: 700; font-size: 1rem; }
.perk > span:nth-child(2) { display: block; padding-right: 36px; }
.perk .pa { font-size: 0.8125rem; color: var(--ink-2); }
.perk .pc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.perk .tick {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--hair-strong); display: grid; place-items: center; color: #fff;
}
.perk .tick svg { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; }
.perk[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--magenta), var(--shadow); }
.perk[aria-pressed="true"] .tick { background: var(--magenta); box-shadow: none; }
.perk[aria-pressed="true"] .tick svg { opacity: 1; }
.perk .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.deal-rows .row { padding: 12px 16px; }
.deal-rows .row .k { color: var(--ink); font-weight: 600; }
.deal-rows .row .k small { display: block; color: var(--ink-2); font-weight: 400; font-size: 0.8125rem; }
.clear-row { display: flex; justify-content: flex-end; padding-top: 6px; }

/* ---------- worth it ---------- */
.two { display: grid; gap: 18px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.big-compare { display: grid; grid-template-columns: 1fr 1fr; }
.big-compare > div { padding: 16px 18px; display: grid; gap: 4px; }
.big-compare > div + div { border-left: 1px solid var(--hair); }
.big-compare .lbl { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.big-compare .price { font-size: 2.25rem; }
.verdict { padding: 14px 18px; border-top: 1px solid var(--hair); font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verdict .delta { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.verdict .delta.save { color: var(--green); }
.verdict .delta.more { color: var(--amber); }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(118, 118, 128, 0.12); gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 0.9375rem; }
.segmented button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
select.text { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.form { display: grid; gap: 12px; padding: 16px 18px; }
.empty { padding: 22px 18px; color: var(--ink-2); display: grid; gap: 10px; justify-items: start; }

/* ---------- phones / changes / cheat ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.steps > div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 18px; align-items: start; }
.steps > div + div { border-top: 1px solid var(--hair); }
.steps .dot { width: 34px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.steps .dot svg { width: 26px; height: 26px; }
.steps .dot .stamps { gap: 3px; }
.steps b { display: block; margin-bottom: 2px; }
.steps p { color: var(--ink-2); font-size: 0.9375rem; }
.leak { display: grid; }
.leak .row .v { display: inline-flex; gap: 8px; align-items: center; }
.leak-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: var(--amber-wash); color: #5c3a00; flex-wrap: wrap; }
.leak-head b { color: #4a2f00; }

.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (min-width: 700px) { .months { grid-template-columns: repeat(12, 1fr); } }
.month {
  border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 10px 0 9px; display: grid; justify-items: center; gap: 6px;
  font-weight: 700; font-size: 0.875rem; color: var(--ink);
}
.month .stamp { --stamp: 18px; }
.month.win .stamp { background: var(--magenta); box-shadow: none; }
.month.remix .stamp { background: var(--ink); box-shadow: none; }
.month[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink), var(--shadow); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8125rem; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .stamp { --stamp: 14px; }
.next-win { padding: 16px 18px; display: grid; gap: 4px; }
.next-win b { font-size: 1.375rem; }

.cheat { display: grid; gap: 14px; }
@media (min-width: 700px) { .cheat { grid-template-columns: 1fr 1fr; align-items: start; } }
.qa { padding: 12px 16px; }
.qa + .qa { border-top: 1px solid var(--hair); }
.qa dt { font-weight: 700; font-size: 0.9375rem; }
.qa dd { margin: 3px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.dense { font-size: 0.875rem; }
.dense li { margin: 0 0 6px; color: var(--ink-2); }
.dense li b { color: var(--ink); }
ul.dense { margin: 0; padding: 12px 16px 8px 32px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mini-table th, .mini-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--hair); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table thead th { font-size: 0.75rem; color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.scroll-x { overflow-x: auto; padding: 4px 12px 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translate(-50%, 20px); opacity: 0;
  background: rgba(28, 28, 30, 0.9); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem;
  transition: opacity 0.25s, transform 0.3s var(--ease); pointer-events: none; z-index: 40; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { .toast { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* phones: the Picks meter rides along at the top while they tap perks */
.meter-wrap {
  position: sticky; top: calc(env(safe-area-inset-top) + 61px); z-index: 10; background: var(--ground);
  margin: -8px calc(var(--pad) * -1) 0; padding: 8px var(--pad) 8px;
}
@media (min-width: 700px) { .meter-wrap { display: none; } }
.meter {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; border: 0; width: 100%; text-align: left;
}
.meter b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.meter .m-l { display: grid; line-height: 1.15; }
.meter .m-l span { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.meter .m-r { margin-left: auto; text-align: right; display: grid; line-height: 1.15; }
.meter .m-r strong { font-size: 1rem; }
.meter .m-r span { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
@media (min-width: 700px) { .meter { display: none; } }
#cover { scroll-margin-top: 140px; }
.meter .stamps { min-width: 0; flex: 1; --stamp: 10px; gap: 3px; }

.meter .m-r { flex: none; }
.leak .row .v { flex: none; white-space: nowrap; } .leak .row .v .stamps { flex-wrap: nowrap; }
