/* Hallmark · shape: app screen · genre: playful · theme: custom blend by request: Hum's cream paper, card stock and Chillax on the layout of Vinay's reference dashboard
 * nav: top bar with language pill, title and balance pill; underline tabs inside Earn; four-tab bottom bar · signature: the earnings sparkline that rises and the balance that rolls when money lands · states: full, not eligible, credited, guaranteed, empty (app tasks, cashback), requested
 * axes: light/rounded-sans/chromatic-yellow · posture: full-palette · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E5 S4 R4 V4 · weakest: R, cream fun pulls toward a toy; kept the dashboard's calm grid and plain labels, and spent colour only on actions, money and the streak */
/* Hallmark · waive 12 · springs on the primary press, the balance squish, the gift box wobble and the confetti, each answering a tap · Vinay asked for an oddly satisfying, fun feel blended with a professional layout */
/* Hallmark · waive 39b · the ways-to-earn tiles and survey rows are whole-tile buttons taller than 52px · on a phone the whole tile is the easiest hit target for choosing how to earn */
/* Hallmark · waive 72 · the flagged boxes are sticky bars measured off-screen at the 1440 capture · every pill, card and tile keeps 12px or more padding inside */
/* Hallmark · dismissed 40 · ink L20 on cream card L98.8 and pear L87 with ink here; the static pass reads tokens from tokens.css (Squeeze) before this file redefines them, verified live */
/* Hallmark · dismissed 41 · same token-scope reading as 40 */
/* Hallmark · dismissed F4 · one pear primary per view; cream card-stock buttons are the secondary */
/* Hallmark · dismissed 23 · mint fills only the goal progress and the slider while a card is being sent */
/* Hallmark · dismissed 49 · stat, gift and ways-to-earn buttons are multi-line by design */
/* Hallmark · answered F7 · Vinay asked for nothing square: tracks, tags, chips and the range control are rounded on purpose */
/* Hallmark · waive 37 · Gabarito and Manrope are only declared inside the shared tokens.css this preview imports for its scale, never loaded or rendered · this file sets --font-display to Chillax and --font-body to Inter, two families on screen */
@import url("/tokens.css");
@import url("/base.css");

:root {
  --color-backdrop: oklch(91% 0.022 95); --color-paper: oklch(97% 0.012 95); --color-card: oklch(98.8% 0.007 95); --color-card-2: oklch(94.5% 0.018 95);
  --color-ink: oklch(20% 0.014 255); --color-ink-2: oklch(29% 0.014 255); --color-muted: oklch(47% 0.014 255);
  --color-rule: oklch(88% 0.016 95); --color-edge: oklch(84% 0.035 88);
  --color-accent: oklch(87% 0.175 96); --color-accent-deep: oklch(72% 0.16 92); --color-accent-ink: oklch(20% 0.014 255);
  --color-money: oklch(48% 0.12 155); --color-money-line: oklch(58% 0.14 155); --color-money-soft: oklch(93% 0.06 152); --color-mint: oklch(82% 0.15 152);
  --color-rich: oklch(52% 0.15 158); --color-rich-deep: oklch(41% 0.13 158); --color-rich-soft: oklch(95% 0.045 158); --color-rich-ink: oklch(99.5% 0.004 158);
  --color-coral: oklch(70% 0.2 22); --color-coral-soft: oklch(93% 0.05 30); --color-coral-text: oklch(50% 0.17 25);
  --color-blue-soft: oklch(92% 0.04 240); --color-blue: oklch(50% 0.17 250); --color-focus: oklch(50% 0.17 250);
  --color-on-money: oklch(99.2% 0.006 95); --color-scrim: oklch(20% 0.014 255 / 0.3);
  --font-display: "Chillax", ui-rounded, ui-sans-serif, sans-serif; --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius-phone: 36px; --radius-card: 22px; --radius-tile: 18px; --radius-thumb: 14px; --radius-pill: 999px;
  --shadow-card: 0 1px 0 var(--color-edge), 0 8px 18px -12px oklch(30% 0.04 80 / 0.28);
  --shadow-pop: 0 1px 2px oklch(20% 0.014 255 / 0.08), 0 16px 36px -12px oklch(20% 0.014 255 / 0.25);
  --shadow-phone: 0 2px 4px oklch(30% 0.04 80 / 0.08), 0 40px 80px -40px oklch(30% 0.04 80 / 0.4);
  --tracking-display: -0.02em; --display-weight: 600;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --text-2xs: 0.6875rem; --color-ours: var(--color-accent); --color-tab-fill: var(--color-accent);
  --white-backdrop: oklch(94.5% 0.004 260); --white-paper: oklch(99.6% 0.002 260); --white-card: oklch(96.6% 0.004 260); --white-card-2: oklch(93.6% 0.005 260); --white-rule: oklch(90.5% 0.005 260); --white-edge: oklch(87% 0.006 260);
  --ink-deep: oklch(8% 0.01 255); --color-pear: oklch(87% 0.175 96); --money-deep: oklch(38% 0.11 155); --shadow-inset: inset 0 1px 2px oklch(30% 0.04 80 / 0.12);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--grain), var(--color-backdrop); color: var(--color-ink-2); font-weight: 400; }
h1, h2, h3 { font-family: var(--font-display); color: var(--color-ink); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.15; }
button { font-family: var(--font-body); color: inherit; }
.fig { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }

/* Stage */
.stage { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 25rem); justify-content: center; align-items: start; gap: var(--space-2xl); padding: var(--space-xl) var(--space-md); }
.notes { position: sticky; top: var(--space-xl); }
.notes h1 { font-size: var(--text-3xl); max-width: 15ch; }
.notes > p { color: var(--color-muted); margin-block: var(--space-sm) var(--space-md); }
.notes ol { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); }
@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0; gap: var(--space-xl); }
  .notes { order: 2; position: static; padding: 0 var(--space-md) var(--space-xl); }
}

/* Phone */
.phone { position: relative; width: 100%; min-height: min(860px, calc(100dvh - var(--space-xl) * 2)); display: flex; flex-direction: column; background: var(--grain), var(--color-paper); border-radius: var(--radius-phone); box-shadow: var(--shadow-phone); overflow: clip; }
@media (max-width: 60rem) { .phone { min-height: 100dvh; border-radius: 0; box-shadow: none; } }
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); background: var(--grain), var(--color-paper); }
.topbar-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink); }
.topbar .right { justify-self: end; }
.views { flex: 1; padding: var(--space-xs) var(--space-md) var(--space-xl); }
.view { display: grid; gap: var(--space-lg); }
.view.is-entering { animation: view-in var(--dur-short) var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* Card stock: pressable things sit on a soft edge and press down */
.press { --edge: 3px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px var(--color-rule), 0 var(--edge) 0 0 var(--color-edge); transition: translate var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.press:hover { --edge: 4px; translate: 0 -1px; }
.press:active { --edge: 0px; translate: 0 3px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-card); font-weight: 500; font-size: var(--text-sm); white-space: nowrap; }
.pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.lang-pill { min-width: 52px; justify-self: start; color: var(--color-ink); }
.balance-pill { position: relative; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); }
.balance-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--color-mint); opacity: 0; pointer-events: none; }
.balance-pill.is-credited::after { animation: ring 800ms var(--ease-out); }
@keyframes ring { 0% { opacity: 1; box-shadow: 0 0 0 0 var(--color-mint); } 100% { opacity: 0; box-shadow: 0 0 0 12px var(--color-mint); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); white-space: nowrap; }
.btn--primary { --edge: 4px; background: var(--color-accent); color: var(--color-accent-ink); box-shadow: 0 var(--edge) 0 0 var(--color-accent-deep); transition-timing-function: var(--ease-spring); }
.btn--primary:hover { --edge: 5px; }
.btn--small { width: auto; min-height: 38px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; translate: 0 3px; --edge: 0px; }

/* Text */
.label { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.delta { font-size: var(--text-xs); color: var(--color-money); font-weight: 500; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.section-head h2 { font-size: var(--text-xl); }
.range { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 32px; border: 0; background: transparent; color: var(--color-muted); font-size: var(--text-sm); cursor: pointer; border-radius: var(--radius-pill); padding: 0 var(--space-xs); }
.range:hover { background: var(--color-card-2); }
.range svg { width: 16px; height: 16px; }

/* Odometer */
.odo { display: inline-flex; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.odo-col { display: inline-block; height: 1.1em; overflow: clip; }
.odo-strip { display: flex; flex-direction: column; transition: transform 650ms var(--ease-spring); }
.odo-strip > span { height: 1.1em; }

/* Summary: one card with a sparkline, two small cards beside it */
.card { background: var(--color-card); border-radius: var(--radius-card); padding: var(--space-md); box-shadow: var(--shadow-card); }
.summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-sm); }
.summary .side { display: grid; gap: var(--space-sm); }
.stat { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md); }
.stat .fig { font-size: var(--text-2xl); font-variant-numeric: tabular-nums lining-nums; }
.stat-big .fig { font-size: var(--text-3xl); font-variant-numeric: tabular-nums lining-nums; }
.spark { width: 100%; height: auto; display: block; margin-top: var(--space-xs); overflow: visible; }
.spark .line { fill: none; stroke: var(--color-money-line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: d 650ms var(--ease-out); }
.spark .area { stroke: none; transition: d 650ms var(--ease-out); }
.spark .dot { fill: var(--color-card); stroke: var(--color-money-line); stroke-width: 2.5; transition: cx 650ms var(--ease-out), cy 650ms var(--ease-out); }
.spark .plot { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-out); }
.spark.is-drawing .plot { clip-path: inset(0 100% 0 0); transition: none; }
.stop-a { stop-color: var(--color-money-line); stop-opacity: 0.25; }
.stop-b { stop-color: var(--color-money-line); stop-opacity: 0; }
.spark-axis { display: flex; justify-content: space-between; font-size: var(--text-2xs); color: var(--color-muted); }
.flame { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--color-coral-soft); color: var(--color-coral-text); }
.flame svg { width: 16px; height: 16px; }
.streak-row { display: flex; align-items: center; gap: var(--space-xs); }
.streak-row .fig { font-size: var(--text-xl); white-space: nowrap; }

/* Goal */
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.goal-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); }
.goal-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.goal-amount .fig { font-size: 2.25rem; }
.track { position: relative; height: 14px; border-radius: var(--radius-pill); background: var(--color-card-2); box-shadow: var(--shadow-inset); overflow: clip; margin-top: var(--space-md); }
.track-fill { position: absolute; inset: 0; background: var(--color-money-line); border-radius: var(--radius-pill); clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0 round var(--radius-pill)); transition: clip-path 900ms var(--ease-out); }
.track-ours { position: absolute; inset-block: 0; right: 0; width: 10%; background: var(--color-ours); border-radius: var(--radius-pill); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.legend span::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--color-money-line); }
.legend .ours::before { background: var(--color-ours); }
.miles { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.mile { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 30px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-card-2); font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
.mile svg { width: 14px; height: 14px; display: none; }
.mile[data-done] { background: var(--color-money-soft); color: var(--color-money); }
.mile[data-done] svg { display: block; }
.mile.is-hit { animation: hit 560ms var(--ease-spring); }
@keyframes hit { 35% { transform: scale(1.18); } }
.goal-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs) var(--space-sm); margin-top: var(--space-md); font-size: var(--text-sm); }
.goal-foot strong { color: var(--color-ink); font-weight: 600; }

/* Ways to earn */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.tile { position: relative; display: grid; align-content: space-between; gap: var(--space-sm); min-height: 108px; padding: var(--space-sm); border-radius: var(--radius-tile); background: var(--color-card); text-align: left; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); }
.tile small { display: block; color: var(--color-muted); font-weight: 400; font-size: var(--text-xs); margin-top: var(--space-3xs); }
.ic { width: 34px; height: 34px; border-radius: var(--radius-pill); display: grid; place-items: center; color: var(--color-ink); }
.ic svg { width: 18px; height: 18px; }
.ic--pear { background: var(--color-pear); } .ic--mint { background: var(--color-money-soft); color: var(--color-money); } .ic--coral { background: var(--color-coral-soft); color: var(--color-coral-text); } .ic--blue { background: var(--color-blue-soft); color: var(--color-blue); } .ic--plain { background: var(--color-card-2); }
.tile .soon { position: absolute; top: var(--space-xs); right: var(--space-xs); font-size: var(--text-2xs); padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-card-2); color: var(--color-muted); }

/* Today's reward */
.reward { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm) var(--space-md); }
.reward .fig { font-size: var(--text-2xl); color: var(--color-money); }
.reward .btn { grid-column: 1 / -1; }
.box { width: 52px; height: 52px; border-radius: var(--radius-thumb); display: grid; place-items: center; background: var(--color-coral-soft); color: var(--color-coral-text); }
.box svg { width: 28px; height: 28px; }

/* Earn: underline tabs */
.tabs-top { position: relative; display: flex; gap: var(--space-lg); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--color-rule); margin-inline: calc(var(--space-md) * -1); padding-inline: var(--space-md); }
.tabs-top::-webkit-scrollbar { display: none; }
.tabs-top button { flex-shrink: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--color-muted); font-weight: 500; font-size: var(--text-md); cursor: pointer; border-radius: var(--radius-thumb); transition: color var(--dur-micro) var(--ease-out); }
.tabs-top button[aria-selected="true"] { color: var(--color-ink); font-weight: 600; }
.indicator { position: absolute; left: 0; bottom: 0; width: 100px; height: 3px; border-radius: var(--radius-pill); background: var(--color-ink); transform-origin: left; transition: transform var(--dur-long) var(--ease-spring); }
.chips { display: flex; gap: var(--space-xs); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--space-2xs); }
.chips::-webkit-scrollbar { display: none; }
.chip { --edge: 2px; flex-shrink: 0; min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-card); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); box-shadow: 0 var(--edge) 0 0 var(--color-ink-2); }

.meter { display: grid; gap: var(--space-sm); transition: box-shadow var(--dur-short) var(--ease-out); }
.meter[data-ready] { box-shadow: inset 0 0 0 2px var(--color-money-line), var(--shadow-card); }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.meter-head strong { font-family: var(--font-display); color: var(--color-ink); font-weight: 600; }
.segs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2xs); }
.segs li { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--color-card-2); overflow: clip; }
.segs li::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--color-ink-2); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.segs li[data-on]::after { transform: scaleX(1); }
.segs li:last-child { background: var(--color-money-soft); }
.segs li:last-child::after { background: var(--color-money-line); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.item { --edge: 3px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; width: 100%; padding: var(--space-sm); border-radius: var(--radius-tile); background: var(--color-card); text-align: left; }
.thumb { width: 48px; height: 48px; border-radius: var(--radius-thumb); display: grid; place-items: center; }
.thumb svg { width: 22px; height: 22px; }
.item-title { display: block; color: var(--color-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-3xs); font-size: var(--text-xs); color: var(--color-muted); }
.item-meta .hot { color: var(--color-coral-text); font-weight: 500; }
.item-right { display: grid; justify-items: end; gap: var(--space-3xs); }
.item-right .fig { font-size: var(--text-lg); }
.item-right small { font-size: var(--text-xs); color: var(--color-muted); }
.item[data-state="miss"] { opacity: 0.6; cursor: default; --edge: 0px; translate: 0 3px; }
.item[data-state="paid"] { cursor: default; --edge: 0px; translate: 0 3px; background: var(--color-money-soft); }
.item[data-state="paid"] .item-right .fig { color: var(--color-money); }
.item--sure[data-ready] { box-shadow: inset 0 0 0 2px var(--color-money-line), 0 var(--edge) 0 0 var(--color-money); }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-xs); border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: 500; background: var(--color-card-2); color: var(--color-ink-2); white-space: nowrap; }
.tag--in { background: var(--color-money-soft); color: var(--color-money); }

.empty { display: grid; justify-items: center; gap: var(--space-sm); text-align: center; padding: var(--space-xl) var(--space-md); }
.empty svg { width: 32px; height: 32px; color: var(--color-muted); }
.empty strong { font-family: var(--font-display); color: var(--color-ink); font-weight: 600; }
.empty .btn { width: auto; }

/* Wallet */
.balance { display: grid; gap: var(--space-2xs); }
.balance .fig { font-size: 2.75rem; letter-spacing: -0.02em; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.brand { position: relative; display: grid; gap: var(--space-3xs); min-height: 76px; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-tile); background: var(--color-card); text-align: left; font-family: var(--font-display); font-weight: 600; color: var(--color-ink); }
.brand small { font-family: var(--font-body); font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); }
.brand[aria-pressed="true"] { --edge: 0px; translate: 0 3px; background: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent-deep); }
.brand[aria-pressed="true"] small { color: var(--color-ink-2); }
.brand .check { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 22px; height: 22px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-ink); color: var(--color-accent); }
.brand:not([aria-pressed="true"]) .check { display: none; }
.brand[aria-pressed="true"] .check { animation: pop var(--dur-short) var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
.brand .check svg { width: 13px; height: 13px; }

.slide { position: relative; height: 62px; border-radius: var(--radius-pill); background: var(--color-ink); overflow: clip; touch-action: none; user-select: none; }
.slide:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.slide-fill { position: absolute; inset: 0; border-radius: var(--radius-pill); background: var(--color-money-line); transform-origin: left; transform: scaleX(var(--s, 0)); }
.slide-text { position: absolute; inset: 0; display: grid; place-items: center; padding-left: var(--space-2xl); color: var(--color-paper); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
.slide-knob { position: absolute; top: 6px; left: 6px; width: 50px; height: 50px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-accent); color: var(--color-accent-ink); transform: translateX(var(--x, 0px)); cursor: grab; box-shadow: 0 3px 0 0 var(--color-accent-deep); }
.slide-knob svg { width: 22px; height: 22px; }
.slide.is-back .slide-knob, .slide.is-back .slide-fill { transition: transform var(--dur-long) var(--ease-spring); }

.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.activity li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding: var(--space-xs); border-radius: var(--radius-tile); }
.activity .ic { width: 40px; height: 40px; }
.activity strong { display: block; color: var(--color-ink); font-weight: 500; }
.activity .amt { display: grid; justify-items: end; gap: var(--space-3xs); font-family: var(--font-display); font-weight: 600; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.activity .amt--in { color: var(--color-money); }
.activity li.is-new { animation: view-in var(--dur-long) var(--ease-out); background: var(--color-card); box-shadow: var(--shadow-card); }

.code { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; letter-spacing: 0.1em; color: var(--color-ink); }

/* Bottom tabs */
.tabbar { position: sticky; bottom: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs) var(--space-sm); background: var(--grain), var(--color-paper); box-shadow: 0 -1px 0 var(--color-rule); }
.tab { display: grid; justify-items: center; gap: var(--space-3xs); min-height: 52px; padding-block: var(--space-xs); border: 0; border-radius: var(--radius-tile); background: transparent; color: var(--color-muted); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.tab svg { width: 24px; height: 24px; }
.tab:hover { background: var(--color-card-2); }
.tab[aria-current="page"] { color: var(--color-ink); font-weight: 600; }
.tab[aria-current="page"] svg { color: var(--color-ink); fill: var(--color-tab-fill); }

/* Overlay: credit chip, confetti, toast, receipt */
.overlay { position: static; }
.fly { position: fixed; left: 0; top: 0; z-index: var(--z-toast); pointer-events: none; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-money); color: var(--color-on-money); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-pop); }
.scrap { position: fixed; z-index: var(--z-toast); width: 8px; height: 12px; border-radius: 3px; pointer-events: none; background: var(--color-ours); }
.scrap--mint { background: var(--color-mint); } .scrap--coral { background: var(--color-coral); } .scrap--blue { background: var(--color-blue); }
.toast { position: fixed; left: var(--ov-left, var(--space-xs)); width: var(--ov-width, calc(100% - var(--space-md))); bottom: 88px; z-index: var(--z-toast); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-tile); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); pointer-events: none; box-shadow: var(--shadow-pop); }
.toast.is-on { opacity: 1; transform: none; }
.scrim { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
.sheet { position: fixed; z-index: var(--z-modal); left: var(--ov-left, var(--space-xs)); width: var(--ov-width, calc(100% - var(--space-md))); bottom: var(--space-xs); max-height: calc(100dvh - var(--space-xl)); overflow-y: auto; background: var(--grain), var(--color-paper); border-radius: 28px; padding: var(--space-lg) var(--space-md) var(--space-md); display: grid; gap: var(--space-md); transform: translateY(110%); transition: transform var(--dur-long) var(--ease-out); box-shadow: var(--shadow-pop); }
.phone.has-sheet .scrim { opacity: 1; pointer-events: auto; }
.phone.has-sheet .sheet { transform: none; }
.sheet h2 { font-size: var(--text-xl); }
.done-mark { width: 54px; height: 54px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-money-soft); color: var(--color-money); }
.done-mark svg { width: 26px; height: 26px; clip-path: inset(0 100% 0 0); transition: clip-path 500ms var(--ease-out) 180ms; }
.phone.has-sheet .done-mark svg { clip-path: inset(0 0 0 0); }
.receipt { list-style: none; margin: 0; padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-tile); background: var(--color-card); box-shadow: var(--shadow-card); }
.receipt li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-xs) 0; font-size: var(--text-sm); }
.receipt li + li { box-shadow: 0 -1px 0 var(--color-rule); }
.receipt li span:last-child { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .press, .odo-strip, .spark .line, .spark .area, .spark .dot, .spark .plot, .track-fill, .indicator, .segs li::after, .slide.is-back .slide-knob, .slide.is-back .slide-fill, .toast, .scrim, .sheet, .done-mark svg, .tab, .meter, .tabs-top button { transition: none; }
  .view.is-entering, .balance-pill.is-credited::after, .mile.is-hit, .brand[aria-pressed="true"] .check, .activity li.is-new { animation: none; }
  .press:hover, .press:active { translate: none; }
}

/* ---------- Style mixer: each switch changes one thing ---------- */
.mixer { display: grid; gap: var(--space-md); margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-card); box-shadow: var(--shadow-card); }
.mixer h2 { font-size: var(--text-lg); }
.mix-row { display: grid; gap: var(--space-2xs); }
.mix-row > span { font-size: var(--text-sm); color: var(--color-muted); }
.mix-opts { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.mix-opts button { min-height: 34px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.mix-opts button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.mix-code { font-size: var(--text-xs); color: var(--color-muted); overflow-wrap: anywhere; }

/* Background: white */
:root[data-bg="white"] {
  --color-backdrop: var(--white-backdrop); --color-paper: var(--white-paper); --color-card: var(--white-card); --color-card-2: var(--white-card-2);
  --color-rule: var(--white-rule); --color-edge: var(--white-edge); --shadow-card: none; --grain: linear-gradient(transparent, transparent);
}
/* Numbers and headings: clean */
:root[data-font="clean"] { --font-display: "Inter", ui-sans-serif, system-ui, sans-serif; }
/* Buttons: flat (a soft shrink on press instead of the card-stock edge) */
:root[data-btn="flat"] .press { --edge: 0px; box-shadow: none; }
:root[data-btn="flat"] .press:hover { translate: none; filter: brightness(0.98); }
:root[data-btn="flat"] .press:active { translate: none; transform: scale(0.97); }
:root[data-btn="flat"] .tile, :root[data-btn="flat"] .item, :root[data-btn="flat"] .brand, :root[data-btn="flat"] .chip:not([aria-pressed="true"]), :root[data-btn="flat"] .pill.lang-pill { box-shadow: inset 0 0 0 1px var(--color-rule); }
:root[data-btn="flat"] .item[data-state], :root[data-btn="flat"] .brand[aria-pressed="true"] { translate: none; }
:root[data-btn="flat"] .item--sure[data-ready] { box-shadow: inset 0 0 0 2px var(--color-money-line); }
:root[data-btn="flat"] .slide-knob { box-shadow: none; }
/* Main colour: black or green */
:root[data-accent="black"] { --color-accent: var(--color-ink); --color-accent-deep: var(--ink-deep); --color-accent-ink: var(--color-paper); --color-ours: var(--color-mint); --color-tab-fill: none; }
:root[data-accent="green"] { --color-accent: var(--color-money); --color-accent-deep: var(--money-deep); --color-accent-ink: var(--color-on-money); --color-ours: var(--color-mint); --color-tab-fill: var(--color-money-soft); }
:root[data-accent="black"] .brand[aria-pressed="true"], :root[data-accent="green"] .brand[aria-pressed="true"] { background: var(--color-card); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-ink); }
:root[data-accent="black"] .brand[aria-pressed="true"] small, :root[data-accent="green"] .brand[aria-pressed="true"] small { color: var(--color-muted); }
:root[data-accent="black"] .brand .check, :root[data-accent="green"] .brand .check { color: var(--color-paper); }
:root[data-accent="black"] .slide-knob { background: var(--color-paper); color: var(--color-ink); }
/* Icons: one colour */
:root[data-icons="mono"] .ic, :root[data-icons="mono"] .thumb, :root[data-icons="mono"] .flame, :root[data-icons="mono"] .box { background: var(--color-card-2); color: var(--color-ink); }
:root[data-icons="mono"] .item--sure .thumb { background: var(--color-money-soft); color: var(--color-money); }

/* ---------- The real app: single phone column, forms, welcome, wall, polls ---------- */
.stage.app-stage { grid-template-columns: minmax(0, 25rem); }
a.tab { text-decoration: none; }
a.pill, a.btn { text-decoration: none; }
.hero { display: grid; gap: var(--space-md); padding-top: var(--space-md); }
.hero h1 { font-size: 2.125rem; line-height: 1.08; max-width: 14ch; }
.hero .lead { color: var(--color-muted); font-size: var(--text-md); }
.bonus-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.bonus-card .fig { font-size: 2.75rem; color: var(--color-money); }
.bonus-card strong { display: block; color: var(--color-ink); font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-sm); align-items: start; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--color-card-2); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); }
.steps strong { display: block; color: var(--color-ink); font-weight: 500; }
.fine { font-size: var(--text-xs); color: var(--color-muted); }
.fine a { color: var(--color-ink); }
#gbtn { display: flex; justify-content: center; min-height: 44px; }

.field { display: grid; gap: var(--space-2xs); }
.field label, .field > span { font-size: var(--text-sm); color: var(--color-muted); font-weight: 500; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-thumb); background: var(--color-paper); color: var(--color-ink); font: inherit; font-size: var(--text-md); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.form { display: grid; gap: var(--space-md); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.lang-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.link-btn { border: 0; background: transparent; color: var(--color-muted); font: inherit; font-size: var(--text-sm); text-decoration: underline; cursor: pointer; padding: var(--space-2xs); border-radius: var(--radius-pill); }

.banner { display: grid; gap: var(--space-xs); }
.banner .track { height: 8px; margin-top: var(--space-2xs); }
.banner strong { color: var(--color-ink); font-weight: 600; }

.wall { position: fixed; top: 0; bottom: 0; left: var(--ov-left, 0px); width: var(--ov-width, 100%); z-index: var(--z-modal); display: flex; flex-direction: column; background: var(--color-paper); border-radius: var(--radius-card); overflow: clip; box-shadow: var(--shadow-pop); }
.wall-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); box-shadow: 0 1px 0 var(--color-rule); }
.wall-head strong { color: var(--color-ink); font-weight: 600; }
.wall iframe { flex: 1; width: 100%; border: 0; }

.poll-card { display: grid; gap: var(--space-md); }
.poll-q { font-size: var(--text-xl); font-weight: 600; color: var(--color-ink); line-height: 1.25; }
.opts { display: grid; gap: var(--space-xs); }
.opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); min-height: 52px; padding: 0 var(--space-md); border-radius: var(--radius-tile); background: var(--color-paper); color: var(--color-ink); font-weight: 500; text-align: left; overflow: clip; }
.opt .bar { position: absolute; inset: 0; background: var(--color-money-soft); transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform 700ms var(--ease-out); }
.opt > span { position: relative; }
.opt[data-mine] { box-shadow: inset 0 0 0 2px var(--color-money-line); }
.opt[disabled] { cursor: default; translate: none; background: var(--color-paper); color: var(--color-ink); }
.goal-ready { display: grid; gap: var(--space-xs); box-shadow: inset 0 0 0 2px var(--color-money-line); }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }

@media (prefers-reduced-motion: reduce) {
  .opt .bar { transition: none; }
}
.tabs-top a { flex-shrink: 0; white-space: nowrap; border-radius: var(--radius-thumb); }

/* Base rules repeated here so the stylesheet stands alone (base.css also sets them) */
html, body { overflow-x: clip; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--color-money-soft); color: var(--color-ink); }

/* Test survey wall (development only) */
.demo-wall-main { display: grid; gap: var(--space-sm); padding: var(--space-md); max-width: 40rem; margin-inline: auto; }
.demo-wall-main .card .label { margin-top: var(--space-3xs); }
body.demo-wall { background: var(--color-paper); }

/* Accent option "rich" (preview 7 Nov, not the default yet): rich green carries the brand */
:root[data-accent="rich"] {
  --color-accent: var(--color-rich); --color-accent-deep: var(--color-rich-deep); --color-accent-ink: var(--color-rich-ink); --color-ours: var(--color-mint); --color-tab-fill: var(--color-rich-soft);
}
:root[data-accent="rich"] .stat { background: var(--color-blue-soft); }
:root[data-accent="rich"] .summary .stat { background: var(--color-card); }
:root[data-accent="rich"] .bonus-card, :root[data-accent="rich"] .banner { background: var(--color-rich-soft); }
:root[data-accent="rich"] .track-fill { background: var(--color-rich); }
:root[data-accent="rich"] .indicator { background: var(--color-rich); }
:root[data-accent="rich"] .segs li::after { background: var(--color-rich); }
:root[data-accent="rich"] .tab[aria-current="page"], :root[data-accent="rich"] .tab[aria-current="page"] svg { color: var(--color-rich-deep); }
:root[data-accent="rich"] .toast { background: var(--color-rich-deep); color: var(--color-rich-ink); }
:root[data-accent="rich"] .brand[aria-pressed="true"] { background: var(--color-card); color: var(--color-ink); box-shadow: inset 0 0 0 2px var(--color-rich); }
:root[data-accent="rich"] .brand[aria-pressed="true"] small { color: var(--color-muted); }
:root[data-accent="rich"] .brand .check { background: var(--color-rich); color: var(--color-rich-ink); }
:root[data-accent="rich"] .item[data-state="paid"] { background: var(--color-rich-soft); }

/* Terms page */
.doc { max-width: 40rem; margin-inline: auto; padding: var(--space-lg) var(--space-md) var(--space-2xl); display: grid; gap: var(--space-sm); }
.doc h1 { font-size: var(--text-2xl); color: var(--color-ink); }
.doc h2 { font-size: var(--text-lg); color: var(--color-ink); margin-top: var(--space-md); }
.doc p, .doc li { margin: 0; line-height: 1.6; }
.doc ul { margin: 0; padding-left: var(--space-lg); display: grid; gap: var(--space-2xs); }
.doc .small { font-size: var(--text-sm); color: var(--color-muted); }
.doc a { color: var(--color-rich-deep); font-weight: 500; }
