/* Undertone, redesigned 22 October 2026 (third pass).
   One geometric typeface (Outfit), one hue in tones (plum and lilac), soft glossy orbs instead of product icons,
   rectangular buttons with an arrow, a compact tab pill, and full-bleed colour statements. Light by default.
   Colour still carries one meaning each: sage = good fit, amber = careful, red = stop, plum = the thing to do next. */

:root {
  --bg: #f4f1f6;
  --bg-2: #efeaf2;
  --surface: #ffffff;
  --surface-2: #ece7f0;
  --surface-3: #e2dbe7;
  --sand: #ece7f0;
  --ink: #231a2a;
  --ink-2: #5f5468;
  --ink-3: #948a9c;
  --line: rgba(35, 26, 42, 0.08);
  --line-strong: rgba(35, 26, 42, 0.16);
  --accent: #4a2c5a;
  --accent-2: #7a5a8c;
  --accent-soft: #e9dff0;
  --on-accent: #fbf8fd;
  --gold: var(--accent-2);
  --gold-ink: var(--accent);
  --gold-bg: var(--accent-soft);
  --bronze: var(--accent-2);
  --bronze-ink: var(--accent);
  --bronze-bg: var(--accent-soft);
  --blush: #e9dff0;
  --sage: #2f5d3f;
  --sage-bg: #dfeee3;
  --amber: #8a4f0d;
  --amber-bg: #f9e9d3;
  --red: #9b2730;
  --red-bg: #f8e0e2;
  --neutral: #5f5468;
  --neutral-bg: #ece7f0;
  --disabled-bg: #e4dee8;
  --disabled-ink: #a79db0;
  --tile: #f1edf3;
  --tile-mono: #f1edf3;
  --press: #ece7f0;
  --press-bronze: #e1d6e8;
  --redflag-row: #fcf4f5;
  --suggest-bg: #e9dff0;
  --overlay-soft: rgba(255, 255, 255, 0.7);
  --verdict-icon-bg: rgba(255, 255, 255, 0.8);
  --stop-bg: #9b2730;
  --on-bronze: #ffffff;
  --on-gold: #ffffff;
  --cta: #231a2a;
  --on-cta: #fbf8fd;
  --hero: linear-gradient(160deg, #5c3b70 0%, #3a2348 55%, #241530 100%);
  --hero-ink: #fbf8fd;
  --hero-muted: rgba(251, 248, 253, 0.7);
  --hero-text: #fbf8fd;
  --hero-sub: rgba(251, 248, 253, 0.74);
  --hero-eyebrow: #cdb6dc;
  --hero-glow: radial-gradient(60% 50% at 80% 15%, rgba(205, 182, 220, 0.5), transparent 70%);
  --orb-1: #cdb6dc;
  --orb-1-deep: #6b4a7e;
  --orb-2: #e8c9d2;
  --orb-2-deep: #9a5f73;
  --orb-3: #c9c3e6;
  --orb-3-deep: #5a4f9a;
  --orb-4: #efdcc3;
  --orb-4-deep: #a07a52;
  --seg-2: #8f84a1;
  --seg-3: #c7c0d0;
  --seg-4: #e2dce8;
  --seg-thumb: #ffffff;
  --track: rgba(35, 26, 42, 0.07);
  --ring-soft: rgba(35, 26, 42, 0.12);
  --ring-track: rgba(35, 26, 42, 0.08);
  --ring-fill: #4a2c5a;
  --scrim: rgba(35, 26, 42, 0.42);
  --glass: rgba(255, 255, 255, 0.86);
  --welcome-top: #f0eaf3;
  --desk-bg: #e5dfe9;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --radius-btn: 14px;
  --shadow: none;
  --shadow-float: 0 2px 6px rgba(35, 26, 42, 0.06), 0 18px 48px rgba(35, 26, 42, 0.14);
  --shadow-cta: 0 8px 24px rgba(35, 26, 42, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: 'Outfit', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--sans);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #15101a; --bg-2: #1a1420; --surface: #1f1826; --surface-2: #28202f; --surface-3: #342a3c; --sand: #28202f;
  --ink: #f1ecf4; --ink-2: #bdb3c6; --ink-3: #857a90;
  --line: rgba(241, 236, 244, 0.08); --line-strong: rgba(241, 236, 244, 0.16);
  --accent: #cdb6dc; --accent-2: #b89ccb; --accent-soft: rgba(205, 182, 220, 0.14); --on-accent: #1a1120;
  --blush: #332838; --sage: #a9d1b4; --sage-bg: rgba(110, 170, 130, 0.16); --amber: #f0b979; --amber-bg: rgba(240, 160, 80, 0.16); --red: #f3a0a6; --red-bg: rgba(220, 80, 90, 0.18);
  --neutral: #bdb3c6; --neutral-bg: rgba(241, 236, 244, 0.08); --disabled-bg: #28202f; --disabled-ink: #6b6075;
  --tile: #eee8f1; --tile-mono: #2b2232; --press: #2b2232; --press-bronze: #352a3c; --redflag-row: rgba(220, 80, 90, 0.08); --suggest-bg: #2b2232;
  --overlay-soft: rgba(255, 255, 255, 0.05); --verdict-icon-bg: rgba(255, 255, 255, 0.08); --stop-bg: #8f2630; --on-bronze: #15101a; --on-gold: #15101a;
  --cta: #f1ecf4; --on-cta: #231a2a;
  --hero: linear-gradient(160deg, #4a2c5a 0%, #2b1a36 55%, #1a1120 100%);
  --orb-1: #cdb6dc; --orb-1-deep: #553a66; --orb-2: #e8c9d2; --orb-2-deep: #7d4a5c; --orb-3: #c9c3e6; --orb-3-deep: #45397a; --orb-4: #efdcc3; --orb-4-deep: #7d5c3c;
  --seg-2: #8f84a1; --seg-3: #5a5064; --seg-4: #3b3344; --seg-thumb: #3a2f43;
  --track: rgba(255, 255, 255, 0.08); --ring-soft: rgba(255, 255, 255, 0.2); --ring-track: rgba(255, 255, 255, 0.1); --ring-fill: #cdb6dc;
  --scrim: rgba(0, 0, 0, 0.6); --glass: rgba(31, 24, 38, 0.84); --welcome-top: #1a1120; --desk-bg: #0b080d;
  --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5); --shadow-cta: 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15101a; --bg-2: #1a1420; --surface: #1f1826; --surface-2: #28202f; --surface-3: #342a3c; --sand: #28202f;
    --ink: #f1ecf4; --ink-2: #bdb3c6; --ink-3: #857a90;
    --line: rgba(241, 236, 244, 0.08); --line-strong: rgba(241, 236, 244, 0.16);
    --accent: #cdb6dc; --accent-2: #b89ccb; --accent-soft: rgba(205, 182, 220, 0.14); --on-accent: #1a1120;
    --blush: #332838; --sage: #a9d1b4; --sage-bg: rgba(110, 170, 130, 0.16); --amber: #f0b979; --amber-bg: rgba(240, 160, 80, 0.16); --red: #f3a0a6; --red-bg: rgba(220, 80, 90, 0.18);
    --neutral: #bdb3c6; --neutral-bg: rgba(241, 236, 244, 0.08); --disabled-bg: #28202f; --disabled-ink: #6b6075;
    --tile: #eee8f1; --tile-mono: #2b2232; --press: #2b2232; --press-bronze: #352a3c; --redflag-row: rgba(220, 80, 90, 0.08); --suggest-bg: #2b2232;
    --overlay-soft: rgba(255, 255, 255, 0.05); --verdict-icon-bg: rgba(255, 255, 255, 0.08); --stop-bg: #8f2630; --on-bronze: #15101a; --on-gold: #15101a;
    --cta: #f1ecf4; --on-cta: #231a2a;
    --hero: linear-gradient(160deg, #4a2c5a 0%, #2b1a36 55%, #1a1120 100%);
    --orb-1: #cdb6dc; --orb-1-deep: #553a66; --orb-2: #e8c9d2; --orb-2-deep: #7d4a5c; --orb-3: #c9c3e6; --orb-3-deep: #45397a; --orb-4: #efdcc3; --orb-4-deep: #7d5c3c;
    --seg-2: #8f84a1; --seg-3: #5a5064; --seg-4: #3b3344; --seg-thumb: #3a2f43;
    --track: rgba(255, 255, 255, 0.08); --ring-soft: rgba(255, 255, 255, 0.2); --ring-track: rgba(255, 255, 255, 0.1); --ring-fill: #cdb6dc;
    --scrim: rgba(0, 0, 0, 0.6); --glass: rgba(31, 24, 38, 0.84); --welcome-top: #1a1120; --desk-bg: #0b080d;
    --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5); --shadow-cta: 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 520px) {
  body { background: var(--desk-bg); }
  .shell { box-shadow: 0 0 0 1px var(--line-strong), 0 40px 100px rgba(35, 26, 42, 0.25); }
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; display: block; }
svg.icon { stroke-width: 1.5; }
strong, b { font-weight: 500; }

.shell { position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow: clip; }
.content { position: relative; padding: calc(8px + var(--safe-top)) 20px calc(120px + var(--safe-bottom)); }
.page { display: flex; flex-direction: column; gap: 28px; }

.page > * { animation: settle 0.45s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: 0.04s; }
.page > *:nth-child(3) { animation-delay: 0.08s; }
.page > *:nth-child(4) { animation-delay: 0.12s; }
.page > *:nth-child(5) { animation-delay: 0.16s; }
.page > *:nth-child(n+6) { animation-delay: 0.2s; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Type: one family, weight does the work ---------- */
.display { font-weight: 500; font-size: 34px; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.title { font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.wordmark { font-weight: 400; font-size: 20px; letter-spacing: 0.32em; text-transform: uppercase; margin: 0; line-height: 1; }
.wordmark-dot { display: inline-block; width: 0.3em; height: 0.3em; margin-left: -0.08em; border-radius: 50%; background: var(--accent-2); vertical-align: baseline; }
.eyebrow { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.eyebrow.method { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); }
.bronze-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: inline-block; flex: none; }
.lede { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.fine { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.center { text-align: center; }
.calm { margin: 0; color: var(--ink-2); }
.error { margin: 0; color: var(--red); font-size: 14px; font-weight: 500; }
.page-head { padding-top: 12px; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-head.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The top bar */
.top { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.top-title .eyebrow { margin: 0; order: 2; }
.top-title .wordmark { order: 1; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.avatar.none { background: var(--surface); color: var(--ink-3); }
.glass { background: var(--surface); border: 1px solid var(--line); }

/* ---------- Buttons: rectangular, an arrow on the main one ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: var(--radius-btn);
  font-weight: 500; font-size: 15.5px; letter-spacing: 0.01em; position: relative;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.985); }
.btn[disabled] { cursor: not-allowed; transform: none; }
.btn.primary { background: var(--cta); color: var(--on-cta); box-shadow: var(--shadow-cta); }
.btn.primary.block { justify-content: space-between; padding: 0 20px 0 22px; }
.btn.primary.block::after { content: '→'; font-size: 20px; font-weight: 300; line-height: 1; }
.btn.primary[disabled] { background: var(--disabled-bg); color: var(--disabled-ink); box-shadow: none; }
.btn.secondary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn.secondary:active { background: var(--press); }
.btn.secondary[disabled] { color: var(--disabled-ink); }
.btn.ghost { color: var(--ink-2); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; font-size: 14.5px; padding: 6px 0; }
.link.center { align-self: center; }
.link.quiet { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color 0.15s ease; }
.icon-btn:hover { background: var(--surface-2); }
.head-add { background: var(--cta); color: var(--on-cta); margin-bottom: 4px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 140px; min-height: 46px; padding: 0 14px; font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.add-inline { margin-top: 4px; }

/* Press feedback */
.row, .tile, .consider-card, .checkin-card, .acc-head, .flag-head, .step, .profile-card, .search-field, .way, .card-row-btn,
.spotlight, .rail-card, .pick-card, .poster, .grid-card, .cat, .rank-row, .scan-hero, .lib-card, .how-row, .hero-today { transition: background-color 0.15s ease, transform 0.15s ease; }
.row:active:not([disabled]):not(.static), .tile:active, .consider-card:active, .acc-head:active, .flag-head:active, .step:active, .profile-card:active,
.search-field:active, .way:active, .card-row-btn:active:not([disabled]), .spotlight:active, .rail-card:active, .grid-card:active, .cat:active,
.rank-row:active, .lib-card:active, .how-row:active { background-color: var(--press); }
.poster:active, .scan-hero:active, .hero-today:active { transform: scale(0.99); }
.checkin-card:active { background-color: var(--press-bronze); }

/* One surface for grouped things: white, no border, soft corners. The lilac page gives the edge. */
.rows, .timeline, .flags, .accordion, .tile, .card-row, .card-row-btn, .fit, .voices-box, .consider, .consider-card, .hero-empty, .spotlight, .rail-card,
.way, .search-field, .grid-card, .stat-tile, .lib-card, .how-list, .steps { background: var(--surface); border: 0; border-radius: var(--radius); }

/* ---------- Pills, meter, tags ---------- */
.status, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.status { padding: 6px 12px 6px 10px; font-size: 13px; }
.status-lg { padding: 9px 16px 9px 13px; font-size: 15px; }
.badge { padding: 4px 10px; font-size: 12px; }
.badge.rx { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 50%, transparent); }
.badge.flagged { background: var(--amber-bg); color: var(--amber); }
.tone-sage { background: var(--sage-bg); color: var(--sage); }
.tone-bronze { background: var(--accent-soft); color: var(--accent); }
.tone-amber { background: var(--amber-bg); color: var(--amber); }
.tone-red { background: var(--red-bg); color: var(--red); }
.tone-neutral { background: var(--neutral-bg); color: var(--neutral); }
.meter { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.meter-dots { display: inline-flex; gap: 3px; }
.meter-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.meter-dots i.on { background: var(--accent); }
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- The verdict ---------- */
.verdict { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius); animation: verdict-in 0.45s var(--ease) both; }
.verdict-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--verdict-icon-bg); }
.verdict-title { margin: 1px 0 0; font-weight: 500; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.verdict-line { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.verdict.tone-sage, .verdict.tone-amber { color: var(--ink); }
.verdict.stop { background: var(--stop-bg); color: #fff; }
.verdict.stop .verdict-icon { background: rgba(255, 255, 255, 0.16); }
.verdict.stop .verdict-line { color: rgba(255, 255, 255, 0.9); }
@keyframes verdict-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Segmented control ---------- */
.segmented { position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; z-index: -1; border-radius: 999px; background: var(--seg-thumb); box-shadow: 0 1px 3px rgba(35, 26, 42, 0.1); transition: transform 0.32s var(--ease), opacity 0.2s ease; }
.seg-thumb.none { opacity: 0; }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 999px; font-weight: 500; color: var(--ink-3); font-size: 14.5px; transition: color 0.2s ease; }
.segmented button.on { color: var(--ink); }

/* ---------- Days ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day { position: relative; justify-self: center; width: 100%; max-width: 42px; aspect-ratio: 1; border-radius: 50%; font-weight: 500; font-size: 13.5px; color: var(--ink-2); background: transparent; display: grid; place-items: center; transition: background-color 0.2s ease, color 0.2s ease; }
.day.today::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-2); }
.day.on { background: var(--ink); color: var(--bg); }
.day.on.today::after { background: var(--accent-2); }

/* The date strip: numbers only, the chosen one filled */
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dchip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 6px; border-radius: 16px; color: var(--ink-3); transition: background-color 0.2s ease, color 0.2s ease; }
.dchip small { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.dchip b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color 0.2s ease, color 0.2s ease; }
.dchip.today b { box-shadow: inset 0 0 0 1px var(--line-strong); }
.dchip.on b { background: var(--cta); color: var(--on-cta); box-shadow: none; }
.dchip.on { color: var(--ink); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 400; color: var(--ink-2); transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.chip.on { border-color: transparent; background: var(--ink); color: var(--bg); }
.chip.on .icon { animation: pop 0.25s var(--ease); }
.chip.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; white-space: nowrap; flex: none; }
.chips.big .chip { min-height: 52px; padding: 0 20px; font-size: 16px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Flags ---------- */
.flags { display: flex; flex-direction: column; overflow: hidden; }
.flag + .flag { border-top: 1px solid var(--line); }
.flag.level-redflag { background: var(--redflag-row); }
.flag-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.flag-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.level-caution .flag-icon { background: var(--amber-bg); color: var(--amber); }
.level-redflag .flag-icon { background: var(--red-bg); color: var(--red); }
.level-info .flag-icon { background: var(--neutral-bg); color: var(--neutral); }
.flag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.flag-title { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.flag-preview { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--ink-3); transition: transform 0.2s ease; }
.chev.open, .acc.open .chev { transform: rotate(90deg); }
.flag-body { padding: 0 16px 14px 64px; animation: settle 0.25s var(--ease) both; }
.flag-body p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.flag-meta { font-size: 13px !important; color: var(--ink-3) !important; }
.dot-sep { margin: 0 2px; }
.list-count .dot-sep { margin: 0 6px; }

/* ---------- Routine ---------- */
.big-date { display: flex; align-items: flex-end; gap: 12px; }
.big-num { font-weight: 300; font-size: 72px; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.big-month { display: flex; flex-direction: column; padding-bottom: 4px; font-size: 18px; font-weight: 400; line-height: 1.15; color: var(--ink-2); }
.big-month small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.routine-controls { display: flex; flex-direction: column; gap: 14px; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row .bar-line { flex: 1; height: 3px; border-radius: 2px; background: var(--track); overflow: hidden; }
.progress-row .bar-line i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.4s var(--ease); }
.progress-row span { font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.list-count { display: inline-flex; align-items: center; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.active-key { display: inline-flex; align-items: center; gap: 6px; }
.active-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

.steps { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 2px; padding-left: 8px; }
.tick { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--ink-3); }
.tick i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: transparent; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease); }
.tick.on i { background: var(--accent); border-color: transparent; color: var(--on-accent); transform: scale(1.05); }
.step { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 13px 14px 13px 4px; color: var(--ink-3); }
.step-main { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.step-main strong { color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.step-main small { color: var(--ink-3); font-size: 13px; }
.step-label { font-size: 12.5px; font-weight: 500; color: var(--accent-2); margin-bottom: 1px; }
.step-label .n { color: var(--ink-3); margin-right: 6px; font-variant-numeric: tabular-nums; }
li.done .step-main strong { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
li.done .thumb { opacity: 0.55; }
.step-flag { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.note .icon { margin-top: 3px; color: var(--ink-3); }

.timeline { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.timeline li { position: relative; }
.timeline .node { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.timeline .step { padding-left: 52px; }

/* "Split them across the week" */
.suggestion { background: var(--suggest-bg); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.suggestion h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.suggestion p { margin: 0; color: var(--ink-2); font-size: 15px; }
.suggestion .btn { align-self: flex-start; min-height: 46px; }
.weekplan { background: var(--overlay-soft); border-radius: 16px; padding: 12px 10px 10px; }
.weekplan-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.weekplan-days li { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wd { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.weekplan i { display: block; width: 16px; height: 16px; border-radius: 50%; }
.weekplan i.g1 { background: var(--accent-2); }
.weekplan i.g2 { background: var(--ink); }
.weekplan i.rest { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.weekplan-key { margin: 12px 2px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.weekplan-key span { display: inline-flex; align-items: center; gap: 6px; }
.weekplan-key i { width: 10px; height: 10px; }

/* ---------- Empty states ---------- */
.hero-empty { border-radius: var(--radius-lg); padding: 36px 24px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--hero); color: var(--hero-ink); }
.hero-empty h3, .empty h3 { font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; margin: 6px 0 0; }
.hero-empty p { margin: 0 0 10px; color: var(--hero-muted); font-size: 15px; }
.hero-empty .btn.primary { background: var(--hero-ink); color: var(--accent); box-shadow: none; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--hero-ink); display: grid; place-items: center; }
.empty { text-align: center; color: var(--ink-3); padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .empty-icon { background: var(--accent-soft); color: var(--accent); }
.empty p { margin: 0; max-width: 300px; font-size: 15px; }
.empty.small { padding: 12px 4px 16px; }

/* ---------- Sections: plain sentence-case labels ---------- */
.section { display: flex; flex-direction: column; gap: 12px; }
.section > h4, .list-head h4, .section-head h4 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.section > h4 em, .list-head h4 em, .field > span em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h4 { margin: 0; }
.section-head .link { padding: 0; font-size: 13.5px; }
.section-title { font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.section-title em { font-style: normal; color: var(--accent-2); }
.card-row h4 { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.rows li + li { border-top: 1px solid var(--line); }
.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--ink-3); }
.row[disabled] { opacity: 0.55; cursor: default; }
.row.static { cursor: default; }
.row.signout { justify-content: center; }
.row.signout strong { color: var(--red); }
.row-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-main strong { color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.row-main small { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.row-main .email { overflow-wrap: anywhere; }
.card-row-btn[disabled] { opacity: 0.55; cursor: default; }

/* Stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-tile { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; }
.stat-tile b { font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.stat-tile b small { font-size: 16px; letter-spacing: 0; margin-left: 1px; }
.stat-tile b.word { font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.stat-tile span { font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.3; margin-top: auto; }
.stat-tile.sage b { color: var(--sage); }
.stat-tile.amber b { color: var(--amber); }
.stat-tile.red b { color: var(--red); }
.stat-tile.gold b { color: var(--accent); }
.stat-tile .icon { color: var(--ink-3); margin-bottom: 4px; }

/* Tiles */
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink-3); }
.tile > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.tile strong { color: var(--ink); font-size: 15.5px; font-weight: 500; }
.tile small { font-size: 13px; }
.tile-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tile-icon.small { width: 36px; height: 36px; }

/* Accordion */
.accordion { overflow: hidden; }
.acc + .acc { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; font-weight: 500; font-size: 15.5px; }
.acc-body { padding: 0 16px 10px; animation: settle 0.25s var(--ease) both; }
.acc-body p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }

/* How it works */
.how-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.how-list li + li { border-top: 1px solid var(--line); }
.how-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; }
.how-n { font-weight: 300; font-size: 20px; color: var(--ink-3); width: 30px; flex: none; font-variant-numeric: tabular-nums; }
.how-row > span:nth-child(2) { flex: 1; font-weight: 500; font-size: 15.5px; }
.how-body { padding: 0 16px 16px 60px; animation: settle 0.25s var(--ease) both; }
.how-body p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field input, .field textarea { width: 100%; border: 0; border-radius: var(--radius-btn); background: var(--surface); padding: 15px 16px; font-size: 16px; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.inci-preview { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 400; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; cursor: pointer; border-radius: 7px; border: 1.5px solid var(--ink-3); background: var(--surface) center / 16px no-repeat; transition: background-color 0.15s ease, border-color 0.15s ease; }
.toggle input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.toggle input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.inline-num { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink-2); }
.num { display: inline-flex; align-items: center; gap: 4px; }
.num input { width: 80px; text-align: right; padding: 10px 12px; }

/* Six boxes for the sign-in code */
.otp { position: relative; display: block; }
.otp .otp-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; color: transparent; caret-color: transparent; cursor: text; }
.otp-cells { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.otp-cell { height: 60px; border-radius: var(--radius-btn); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 26px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); transition: box-shadow 0.15s ease; }
.otp-cell.filled { box-shadow: inset 0 0 0 1px var(--line-strong); }
.otp-cell.active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.otp-cell.active:empty::after { content: ''; width: 2px; height: 26px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.sheet-wrap.hidden { display: none; }
.backdrop { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade 0.2s ease; }
.sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(440px, 100%); max-height: 90vh; max-height: 90dvh; background: var(--bg); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-float); animation: rise 0.36s var(--ease); outline: none; }
.sheet.tall { height: 94vh; height: 94dvh; max-height: none; }
.sheet-head { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px 8px 2px; }
.sheet-head h2 { margin: 0; text-align: center; font-size: 15.5px; font-weight: 500; }
.sheet-head:has(h2:empty) { display: block; height: 26px; padding: 0; }
.sheet-head:has(h2:empty) > .icon-btn { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); width: 36px; height: 36px; }
.grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.sheet-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 24px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 12px 20px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot-row .btn { flex: 1; }
.foot-row .status { flex: none; }
@keyframes rise { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Product page ---------- */
.result-head { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 2px; }
.result-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 18px 0 6px; }
.result-hero .eyebrow { margin: 0 0 4px; }
.result-name { font-weight: 500; font-size: 27px; line-height: 1.1; letter-spacing: -0.025em; margin: 0; }
.result-top { display: flex; align-items: center; gap: 14px; }
.result-top .eyebrow { margin-bottom: 5px; }
.schedule { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-3); font-size: 14px; align-self: center; }
.inci { display: flex; flex-wrap: wrap; gap: 6px; }
.ing { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; background: var(--surface); color: var(--ink-2); }
button.ing { font-weight: 500; }
.ing.tone-sage { background: var(--sage-bg); color: var(--sage); }
.ing.tone-bronze { background: var(--accent-soft); color: var(--accent); }
.ing.tone-amber { background: var(--amber-bg); color: var(--amber); }
.ing.tone-red { background: var(--red-bg); color: var(--red); }
.disclaimer { padding-top: 12px; border-top: 1px solid var(--line); }

/* Evidence card */
.card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-head h3 { font-weight: 500; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.card-head .eyebrow { margin: 0; }
.card-summary { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.card-row { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-row p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sources { display: flex; flex-direction: column; gap: 6px; }
.sources h4 { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.sources ol { margin: 0; padding-left: 20px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.sources li { padding-left: 2px; }

/* Scanner and photo */
.scanner { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #1a1120; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.reader { width: 100%; }
.reader video { width: 100% !important; display: block; }
.scanner-note { margin: 0; padding: 12px 16px; color: #fbf8fd; font-size: 14px; text-align: center; background: rgba(26, 17, 32, 0.6); }
.notice { background: var(--amber-bg); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.notice p { margin: 0; color: var(--ink); }
.tips { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.tips li { margin-bottom: 4px; }
.progress-wrap { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; }
.progress-wrap p { margin: 0; }
.progress { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }

/* ---------- Tab pill: icons, the active one opens into a label ---------- */
.tabbar {
  position: fixed; bottom: calc(18px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(20px); backdrop-filter: saturate(1.3) blur(20px);
}
.tab { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 16px; border-radius: 999px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; transition: color 0.2s ease, background-color 0.25s var(--ease), padding 0.25s var(--ease); }
.tab span { display: none; }
.tab.on { color: var(--on-cta); background: var(--cta); padding: 0 18px 0 16px; }
.tab.on span { display: inline; }
.tab .icon .cut { stroke: var(--on-cta); }
.tab.on .icon { animation: tab-pop 0.3s var(--ease); }
@keyframes tab-pop { from { transform: scale(0.82); } to { transform: none; } }
.tab-dot { display: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-float); animation: toast-in 0.3s var(--ease); max-width: calc(100% - 40px); text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Welcome: a full-screen statement ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); display: flex; flex-direction: column; }
.auth .back { margin-left: -10px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.welcome { gap: 32px; background: var(--hero); color: var(--hero-ink); }
.welcome::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.welcome > * { position: relative; }
.welcome-art { padding: 12vh 4px 0; display: flex; flex-direction: column; gap: 18px; }
.welcome-art .wordmark { color: var(--hero-eyebrow); font-size: 15px; }
.welcome-art .wordmark-dot { background: var(--hero-eyebrow); }
.welcome-art .tagline { font-weight: 300; font-size: 44px; line-height: 1.04; letter-spacing: -0.035em; color: var(--hero-ink); max-width: 340px; margin: 0; }
.welcome-art .eyebrow { color: var(--hero-muted); font-size: 15px; margin: 4px 0 0; }
.tagline { margin: 0; font-size: 19px; color: var(--ink-2); line-height: 1.4; }
.promises { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 0; }
.promises li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(251, 248, 253, 0.14); }
.promises li > span { display: none; }
.promises strong { display: block; font-size: 16px; font-weight: 500; }
.promises small { color: var(--hero-muted); font-size: 14px; }
.welcome-cta { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.welcome .btn.primary { background: var(--hero-ink); color: var(--accent); box-shadow: none; }
.welcome .btn.primary .icon { display: none; }
.welcome .fine { color: var(--hero-muted); }
.preview-banner { background: var(--accent-soft); color: var(--ink); border-radius: var(--radius-btn); padding: 12px 14px; font-size: 14px; }
.preview-banner .code { font-weight: 500; font-size: 18px; letter-spacing: 0.14em; font-variant-numeric: tabular-nums lining-nums; margin-left: 4px; }
.onboarding { gap: 16px; }
.steps-dots { display: flex; gap: 6px; padding: 8px 0 12px; }
.steps-dots span { width: 28px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background-color 0.3s ease; }
.steps-dots span.on { background: var(--accent); }
.onboard-cta { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 24px; }
.cta-links { display: flex; justify-content: space-between; padding: 2px 4px 0; }
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--hero); color: var(--hero-ink); }
.splash .wordmark { font-size: 18px; color: var(--hero-ink); }

/* ---------- Product images and orbs ---------- */
.thumb { display: inline-grid; place-items: center; flex: none; overflow: hidden; background: var(--tile); }
.thumb img { width: 100%; height: 100%; padding: 10%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.thumb.own img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
/* A soft glossy sphere stands in for a photo: one hue per kind of product */
.thumb.orb { background: var(--surface-2); position: relative; }
.thumb.orb::before {
  content: ''; width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--o) 22%, var(--o-deep) 100%);
  box-shadow: 0 10px 20px -8px var(--o-deep), inset -6px -8px 18px rgba(0, 0, 0, 0.12);
}
.thumb.orb[data-orb="1"] { --o: var(--orb-1); --o-deep: var(--orb-1-deep); }
.thumb.orb[data-orb="2"] { --o: var(--orb-2); --o-deep: var(--orb-2-deep); }
.thumb.orb[data-orb="3"] { --o: var(--orb-3); --o-deep: var(--orb-3-deep); }
.thumb.orb[data-orb="4"] { --o: var(--orb-4); --o-deep: var(--orb-4-deep); }
.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-row .fine { margin-top: 2px; }

/* Search */
.search-row { display: flex; gap: 10px; align-items: flex-end; }
.field.grow { flex: 1; }
.search-row .btn { min-height: 50px; padding: 0 18px; }

/* "If you add it" preview */
.fit { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.fit p { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.fit .icon { margin-top: 3px; color: var(--sage); }

/* Members' results */
.members-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.members-box p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Check-ins */
.checkins { display: flex; flex-direction: column; gap: 10px; }
.checkin-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--accent-soft); border-radius: var(--radius); }
.checkin-card small { color: var(--accent-2); font-weight: 500; font-size: 12.5px; }
.checkin-card strong { font-weight: 500; font-size: 15px; line-height: 1.3; }
.checkin-cta { flex: none; font-weight: 500; font-size: 13.5px; color: var(--on-cta); background: var(--cta); border-radius: 999px; padding: 9px 15px; }
.checkin-q { font-weight: 500; font-size: 26px; line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.answer-list { display: flex; flex-direction: column; gap: 8px; }
.answer-list .chip { min-height: 52px; justify-content: flex-start; padding: 0 18px; font-size: 16px; }

/* Skin tone */
.tones { display: grid; grid-template-columns: repeat(5, minmax(0, 56px)); gap: 12px; }
.tone { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px var(--ring-soft); transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.tone.light { color: #231a2a; }
.tone.on { transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.tone .icon { animation: pop 0.25s var(--ease); }
.tone-picked { margin: 0; min-height: 21px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

.placeholder { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 500; }
.compare-row { align-items: flex-start; }
.compare-row small { line-height: 1.45; }
.onboarding > .chip, .field > .chip { align-self: flex-start; }

/* ---------- Wishlist ---------- */
.finder { display: flex; flex-direction: column; gap: 10px; }
.scan-hero { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.scan-hero::after { content: ''; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.scan-hero > * { position: relative; z-index: 1; }
.scan-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--hero-ink); display: grid; place-items: center; flex: none; }
.scan-hero strong { display: block; font-weight: 500; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.scan-hero small { display: block; margin-top: 4px; color: var(--hero-muted); font-size: 13.5px; }
.search-field { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-radius: var(--radius-btn); color: var(--ink-3); font-size: 15.5px; }
.search-field .icon { color: var(--ink); }
.finder-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.way { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 76px; font-size: 13px; font-weight: 500; color: var(--ink); }
.way .icon { color: var(--accent); }

/* Product grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid > li { display: flex; }
.grid-card { width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 14px; overflow: hidden; }
.grid-card .thumb { width: 100% !important; aspect-ratio: 1; height: auto !important; border-radius: 14px !important; margin-bottom: 8px; }
.grid-card strong { font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.grid-card small { font-size: 12.5px; color: var(--ink-3); }
.grid-card .mini { margin-top: 8px; align-self: flex-start; }
.grid-card .voice-line { margin-top: 6px; }
.consider { width: 100%; padding: 4px 14px; }
.consider-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.consider-row + .consider-row { border-top: 1px solid var(--line); }
.consider-row strong { display: block; font-size: 15px; }
.consider-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.consider-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.consider-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.consider-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; color: var(--ink-3); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mini { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Method: the rule as a statement ---------- */
.rule { position: relative; margin: 0; padding: 30px 24px 26px; border-radius: var(--radius-lg); background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.rule::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); }
.rule > * { position: relative; }
.rule-label { margin: 0 0 16px; font-size: 13.5px; font-weight: 500; color: var(--hero-eyebrow); }
.rule blockquote { margin: 0; font-weight: 300; font-size: 25px; line-height: 1.3; letter-spacing: -0.025em; color: var(--hero-ink); }
.rule figcaption { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--hero-muted); }
.rule .bronze-dot { background: var(--hero-eyebrow); }
.library { gap: 16px; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lib-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 108px; padding: 14px; }
.lib-card strong { font-size: 15px; line-height: 1.25; color: var(--ink); }
.lib-card .meter { font-size: 12px; }
.lib-card .badge { align-self: flex-start; }

/* ---------- You ---------- */
.profile-card { position: relative; width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.profile-card::before { display: none; }
.profile-top { display: flex; align-items: center; gap: 14px; margin-top: 0; }
.profile-tone { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--ring-soft); }
.profile-tone.none { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.profile-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.profile-label { font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.profile-sub { font-size: 14px; color: var(--ink-3); }
.profile-edit { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
.profile-concerns { display: flex; flex-wrap: wrap; gap: 6px; }

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

a.row { text-decoration: none; }

/* ---------- What members say ---------- */
.voices-box { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.sample-tag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.band-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.band-chips .chip { gap: 7px; }
.tone-dots { display: inline-flex; }
.tone-dots i { width: 12px; height: 12px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface), inset 0 0 0 1px var(--ring-soft); }
.tone-dots i:first-child { margin-left: 0; }
.chip.on .tone-dots i { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 2.5px var(--bg); }
.voice { display: flex; flex-direction: column; gap: 8px; }
.voice + .voice { padding-top: 16px; border-top: 1px solid var(--line); }
.voice-when { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.voice-q { margin: 0; font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.breakdown { display: flex; flex-direction: column; gap: 10px; }
.bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--track); }
.bar .seg { height: 100%; animation: grow 0.6s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.seg.s1, .legend i.s1 { background: var(--accent); }
.seg.s2, .legend i.s2 { background: var(--seg-2); }
.seg.s3, .legend i.s3 { background: var(--seg-3); }
.seg.s4, .legend i.s4 { background: var(--seg-4); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.legend li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend b { margin-left: auto; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.voice-reasons { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.voice-reasons p { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.voice-reasons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.voice-reasons li { display: grid; grid-template-columns: 1fr 70px 36px; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.mini-bar { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.voice-reasons b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.voice-line { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13px; color: var(--ink-2); }
.voice-line .icon { color: var(--ink-3); }

.row.appearance { flex-direction: column; align-items: stretch; gap: 12px; }
.row.appearance .segmented button { min-height: 36px; font-size: 14px; }
.search-field.input { cursor: text; min-height: 54px; }
.search-field.input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: 16px; color: var(--ink); outline: none; }
.search-field.input input::placeholder { color: var(--ink-3); }
.search-field.input input::-webkit-search-cancel-button { display: none; }
.search-field.input:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search-field .clear { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.search-empty { padding: 4px 2px; }
.field.missing > span { color: var(--red); }
.thumb-stack { display: inline-flex; flex: none; }
.thumb-stack .thumb { box-shadow: 0 0 0 2px var(--accent-soft); }
.thumb-stack .thumb + .thumb { margin-left: -14px; }
.checkin-card.prompt { width: 100%; }
.prompt-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); }
.sheet-wrap:not(.hidden) ~ .toast { bottom: auto; top: calc(14px + env(safe-area-inset-top, 0px)); }
.sub-field { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.sub-field > span { font-size: 14px; font-weight: 500; color: var(--ink); }
.sub-field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.field.written textarea { min-height: 84px; }
.field.written small { font-size: 13px; }
.share-note .link.inline { display: inline; padding: 0; margin-left: 4px; font-size: 13px; }
.sheet-foot .link.quiet.center { align-self: center; padding: 4px 12px 0; }

/* ---------- Home ---------- */
.home-band { display: flex; flex-direction: column; gap: 10px; }
.home-band p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scroll-padding: 0 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* Today: a plum card with a thin ring */
.hero-today { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.hero-today::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); }
.hero-today > * { position: relative; }
.hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-text .eyebrow { margin: 0 0 6px; color: var(--hero-eyebrow); }
.hero-h { margin: 0; font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; color: var(--hero-text); }
.hero-sub { margin: 0; font-size: 14px; color: var(--hero-sub); }
.hero-text .btn { align-self: flex-start; margin-top: 14px; min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--hero-ink); color: var(--accent); box-shadow: none; border-radius: 999px; }
.hero-today .ring-label { color: var(--hero-ink); }
.hero-today .ring-track { stroke: rgba(251, 248, 253, 0.2); }
.hero-today .ring-fill { stroke: var(--hero-ink); }

/* Ring */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { position: absolute; inset: 0; }
.ring-track { stroke: var(--ring-track); }
.ring-fill { stroke: var(--ring-fill); transition: stroke-dashoffset 0.8s var(--ease); }
.ring-label { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.ring-label b { font-weight: 300; font-size: 26px; }
.ring-label small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; margin-top: 4px; opacity: 0.75; }

/* Dr Nicole's picks */
.picks { gap: 14px; }
.picks-head { display: flex; flex-direction: column; gap: 4px; }
.picks-head .eyebrow { margin: 0; }
.picks-intro { margin: 0; font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); }
.picks-intro em { font-style: normal; color: var(--accent-2); }
.poster { position: relative; width: 160px; height: 212px; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: var(--ink); }
.poster .thumb { position: absolute; top: 14px; left: 14px; right: 14px; width: auto !important; height: 104px !important; border-radius: 14px !important; }
.poster::after { display: none; }
.poster strong { font-size: 14.5px; line-height: 1.25; font-weight: 500; }
.poster small { font-size: 12.5px; color: var(--ink-3); }
.poster .pick-note { margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster.empty-poster { justify-content: center; align-items: center; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.poster.empty-poster .icon { color: var(--accent-2); margin-bottom: 8px; }
.poster.empty-poster p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* Most recommended */
.spotlight { width: 100%; display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius-lg); }
.spot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.spot-name { font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.spot-main small { font-size: 13px; color: var(--ink-3); }
.spot-stat { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.spot-stat b { color: var(--ink); }

/* Trending */
.ranked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 8px; border-radius: var(--radius); background: var(--surface); }
.rank-n { width: 32px; text-align: center; font-weight: 300; font-size: 24px; line-height: 1; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.rank-row .row-main strong { font-size: 15px; }
.rank-stat { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; text-align: right; }
.rank-stat small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }

/* Browse by category: orbs */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 18px; background: var(--surface); font-size: 11.5px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.2; }
.cat .cat-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--o, var(--orb-1)) 22%, var(--o-deep, var(--orb-1-deep)) 100%); box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.1); transition: transform 0.2s var(--ease); }
.cat .cat-icon .icon { display: none; }
.cat[data-orb="1"] .cat-icon { --o: var(--orb-1); --o-deep: var(--orb-1-deep); }
.cat[data-orb="2"] .cat-icon { --o: var(--orb-2); --o-deep: var(--orb-2-deep); }
.cat[data-orb="3"] .cat-icon { --o: var(--orb-3); --o-deep: var(--orb-3-deep); }
.cat[data-orb="4"] .cat-icon { --o: var(--orb-4); --o-deep: var(--orb-4-deep); }
.cat[data-orb="0"] .cat-icon { background: var(--cta); box-shadow: none; }
.cat.on { background: var(--accent-soft); color: var(--ink); }
.cat.on .cat-icon { transform: scale(1.08); }
.browse .segmented button { min-height: 36px; font-size: 14px; }
.row-stats { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.row-stats b { color: var(--ink); font-weight: 500; }

/* Written reviews */
.quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quotes li { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.quote-meta { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--ink-3); }
.quote-meta .tag { padding: 3px 9px; font-size: 12px; background: var(--surface); }
.quote-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.answer-btn { white-space: nowrap; padding: 0 12px; font-size: 15px; }

/* ---------- Home, impact pass (22 October) ---------- */
.hero-today { padding: 24px 20px 24px 22px; align-items: center; gap: 14px; min-height: 196px; }
.hero-h { font-size: 32px; }
.hero-sub { font-size: 14px; line-height: 1.4; }
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.hero-stage .ring-label { display: grid; place-items: center; }
.hero-stage .thumb { border-radius: 50% !important; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }
.hero-stage .thumb img { padding: 14%; background: var(--tile); }
.hero-stage .thumb.orb::before { width: 70%; height: 70%; }
.hero-count { font-size: 12.5px; font-weight: 500; color: var(--hero-muted); font-variant-numeric: tabular-nums; }
.hero-today .ring-fill { stroke: var(--hero-ink); }

.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.poster.wide { width: auto; height: auto; padding: 0 0 14px; justify-content: flex-start; }
.poster.wide .thumb { position: static; width: 100% !important; height: auto !important; aspect-ratio: 4 / 4.4; border-radius: var(--radius) var(--radius) 0 0 !important; }
.poster.wide .thumb img { padding: 12%; }
.poster-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 0; }
.poster.wide .pick-note { -webkit-line-clamp: 3; }

.feature { width: 100%; display: flex; align-items: stretch; gap: 0; border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; text-align: left; transition: background-color 0.15s ease; }
.feature:active { background: var(--press); }
.feature-art { flex: none; width: 46%; display: grid; place-items: center; background: var(--surface-2); padding: 16px; }
.feature-art .thumb { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 16px !important; background: transparent; box-shadow: none; }
.feature-art .thumb img { padding: 4%; }
.feature-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 18px 16px 18px 18px; }
.feature-pct { font-weight: 300; font-size: 52px; line-height: 0.95; letter-spacing: -0.05em; color: var(--accent); font-variant-numeric: lining-nums; }
.feature-pct small { font-size: 22px; letter-spacing: -0.02em; margin-left: 1px; }
.feature-line { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin: 6px 0 10px; }
.feature-name { font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.feature-main small { font-size: 12.5px; color: var(--ink-3); }

.trend { width: 132px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.trend-art { position: relative; display: block; margin-bottom: 8px; }
.trend-art .thumb { width: 132px !important; height: 132px !important; border-radius: 18px !important; }
.trend-art .thumb img { padding: 14%; }
.trend-rank { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--cta); color: var(--on-cta); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.trend strong { font-size: 13.5px; line-height: 1.25; font-weight: 500; color: var(--ink); }
.trend small { font-size: 12px; color: var(--ink-3); }
.trend-stat { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.trend-stat b { color: var(--ink); font-weight: 500; }

/* ---------- The opening: name and method, then dispersed ---------- */
.intro { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(440px, 100%); z-index: 100; display: grid; place-items: center; background: var(--hero); color: var(--hero-ink); overflow: hidden; }
.intro::before { content: ''; position: absolute; inset: 0; background: var(--hero-glow); }
.intro-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 24px; }
.intro-mark { display: inline-flex; align-items: baseline; font-size: 30px; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em; }
.intro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-eyebrow); margin-left: -0.2em; animation: intro-dot 0.6s var(--ease) 0.5s both; }
.intro-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.3em; font-size: 19px; font-weight: 300; letter-spacing: -0.005em; color: var(--hero-muted); }
.intro .w { display: inline-block; animation: intro-word 0.8s var(--ease) both; }
.intro-mark .w { animation-delay: 0.1s; }
@keyframes intro-word { from { opacity: 0; transform: translateY(10px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-dot { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
/* Dispersal: the words drift apart and soften, then the curtain lifts */
.intro.out { animation: intro-fade 0.9s var(--ease) both; pointer-events: none; }
.intro.out .intro-text { animation: intro-disperse 0.9s var(--ease) both; }
.intro.out .w { animation: intro-word-out 0.8s var(--ease) both; }
.intro.out .intro-line .w:nth-child(odd) { --dx: -14px; }
.intro.out .intro-line .w:nth-child(even) { --dx: 14px; }
@keyframes intro-disperse { to { transform: scale(1.08); letter-spacing: 0.08em; } }
@keyframes intro-word-out { to { opacity: 0; transform: translate(var(--dx, 0), -8px); filter: blur(10px); } }
@keyframes intro-fade { 0% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro .w, .intro-dot { animation: none !important; opacity: 1; }
  .intro.out { animation: intro-fade 0.3s linear both !important; }
  .intro.out .intro-text, .intro.out .w { animation: none !important; }
}
