/* Kindred Family Pass: one stylesheet for every page. Design system "Deep Teal & Sienna, Rakuten craft" (19.10.2026).
   Spec: research/DESIGN-DNA.md. Documented in DESIGN.md. CSP allows no inline styles: every look lives here as a class.
   Rules that hold everywhere: every colour is a token from :root; one shadow token (--sh-1) for floating UI only;
   pills are buttons only (plus the one cash-back bubble); no gradients; uppercase only in footer column heads.
   Sections: 1 fonts + tokens, 2 base + type, 3 layout, 4 header, 5 footer, 6 buttons, 7 forms, 8 cards + panels,
   9 labels + status, 10 alerts, 11 lists, 12 tables, 13 FAQ, 14 numbers + meters, 15 phone mockup + floating card,
   16 app shell, 17 empty + loading, 18 dialog + toast, 19 utilities, 20 home page, 21+ page sections. */

/* ===== 1. Fonts + tokens ===== */
/* Bitter (display, 300/400) and Figtree (UI + body, 400-700): SIL OFL 1.1, variable woff2 from fontsource 5.3.0,
   latin subset, self-hosted because the CSP blocks Google Fonts. Licences: brand/fonts/. */
@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/css/bitter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/css/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Neutrals (contrast on white / on mist) */
  --ink: #16252c;            /* headings, strong text: 15.7:1 */
  --ink-2: #2e434c;          /* body text: 10.4:1 */
  --muted: #55636a;          /* captions, secondary text: 6.2:1 / 5.8:1 */
  --line: #e3e8e9;           /* dividers, white-card border (decorative) */
  --line-strong: #80908f;    /* form control borders: 3.3:1 (WCAG 1.4.11) */
  --bg: #ffffff;             /* page */
  --surface: #ffffff;        /* white cards, inputs, phone screens */
  --mist: #f5f8f8;           /* the one neutral band, flat cards on white */
  --mist-hover: #ebf1f1;     /* hover on mist rows */
  /* Action: Deep Teal 264653. Primary buttons, links, the one statement band */
  --action: #264653;         /* white on it 10.1:1 */
  --action-hover: #46626d;   /* lighter on hover, white on it 6.5:1 */
  --action-press: #1b333d;
  --action-tint: #eaf1f3;    /* secondary hover, selected rows */
  --action-tint-2: #d5e3e7;  /* selected fills, avatar */
  --on-action: #ffffff;      /* text on --action */
  --on-action-2: #d3e2e6;    /* secondary text on --action: 8.0:1 */
  /* Money that is yours: Sea teal 2A9D8F */
  --money: #2a9d8f;          /* decorative only (dots, bars, rings) or text >= 24px (3.3:1) */
  --money-ink: #1f7a6f;      /* money text under 24px: 5.2:1 white, 4.6:1 on its tint */
  --money-deep: #17594f;     /* text on --money-tint: 7.6:1 */
  --money-tint: #eaf4f3;
  --money-tint-2: #d2e9e6;   /* dividers inside a money panel */
  /* Waiting: Saffron E9C46A */
  --wait: #e9c46a;           /* pending dot, progress fill (decorative) */
  --wait-ink: #7d5700;       /* pending text: 6.5:1 white, 5.9:1 on its tint */
  --wait-tint: #fbf3e1;
  --wait-line: #f0dca8;
  --on-wait-tint: #4a3300;   /* body text on --wait-tint: 11:1 */
  /* Warmth: Sandy F4A261 + Sienna E76F51. Small accents only (dots, chart marks). Never a panel, the logo, text or a button (Markus 19.10.2026) */
  --sienna: #e76f51;
  --sienna-ink: #b4472b;     /* only if sienna text is unavoidable: 5.4:1 */
  --sienna-tint: #fcefe9;
  --sand: #f4a261;
  /* Error */
  --err: #b3261e;
  --err-tint: #fdecea;
  --err-line: #f2c4bf;
  --err-surface: #fffafa;
  /* Fixed roles */
  --on-fill: #ffffff;        /* text and icons on --action, --money-ink, --ink fills */
  --placeholder: #55636a;    /* = --muted, 6.2:1 */
  --disabled: #c9d3d5;
  --phone-body: #16252c;
  --footer-text: #dfe6e8;    /* on --ink: 13:1 */
  --footer-muted: #b3c0c4;   /* on --ink: 9.4:1 */
  --footer-line: #2e434c;
  --code-mark: #ffd666;      /* highlighted part of a URL on the ink code block (brands page) */
  /* Third-party sign-in buttons: their brand rules, not ours (Apple HIG black button; Google light button) */
  --apple-black: #000000;    /* Sign in with Apple: black fill, white logo and text (21:1) */
  --on-apple: #ffffff;
  --google-line: #747775;    /* Continue with Google: 1px outline (4.6:1) */
  --google-ink: #1f1f1f;     /* its label (16.5:1) */
  /* Select arrow (an SVG data URI keeps its colour inside :root) */
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='4 6.67 16 10.67'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9' fill='none' stroke='%232e434c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Type: Bitter 300/400 headings, Figtree 400-700 UI and body. No weight above 700, no italic. */
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* codes and IDs only, never money */
  /* Mobile values; the 641px and 1024px blocks below raise them. */
  --fs-display: 40px; --lh-display: 44px;   /* home h1 */
  --fs-h1: 36px;      --lh-h1: 40px;        /* sub-page h1 */
  --fs-h2: 32px;      --lh-h2: 36px;
  --fs-h3s: 24px;     --lh-h3s: 30px;       /* serif sub-heading (.h-sub) */
  --fs-stat: 40px;    --lh-stat: 44px;      /* stat numerals */
  --fs-card: 18px;    --lh-card: 26px;      /* card title (Figtree 600) */
  --fs-lead: 18px;    --lh-lead: 28px;
  --fs-body: 16px;    --lh-body: 24px;
  --fs-small: 14px;   --lh-small: 20px;
  --fs-cap: 12px;     --lh-cap: 16px;

  /* Radii: pill is for buttons only */
  --r-tag: 4px;       /* checkboxes, status labels */
  --r-input: 8px;     /* inputs, selects, small notes */
  --r-tile: 12px;     /* logo and merchant tiles, thumbnails, alerts */
  --r-card: 16px;     /* cards, FAQ rows, summary boxes, floating card */
  --r-panel: 24px;    /* feature panels, photo frames, dialogs */
  --r-phone: 40px;    /* phone frame (screen 32), one phone per page at most */
  --pill: 9999px;

  /* Depth: one shadow, floating UI only (primary button, the floating card over a photo, dialog, toast) */
  --sh-1: 0 4px 8px rgba(22, 37, 44, .15);
  --sh-focus: 0 0 0 3px rgba(42, 157, 143, .45);

  /* Space: 4 8 12 16 24 32 48 64 96 128 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: 64px;         /* section padding top and bottom (96 from 1024px) */
  --gutter: 20px;
  --max: 1200px;             /* 1152 content + 2 x 24 gutter */
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 641px) {
  :root {
    --fs-display: 52px; --lh-display: 56px; --fs-h1: 44px; --lh-h1: 48px; --fs-h2: 36px; --lh-h2: 40px;
    --fs-h3s: 26px; --lh-h3s: 32px; --fs-stat: 44px; --lh-stat: 48px; --fs-card: 20px; --lh-card: 28px;
    --fs-lead: 20px; --lh-lead: 30px; --lh-body: 26px; --gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --fs-display: 64px; --lh-display: 66px; --fs-h1: 52px; --lh-h1: 56px; --fs-h2: 40px; --lh-h2: 44px;
    --fs-h3s: 28px; --lh-h3s: 34px; --fs-stat: 48px; --lh-stat: 52px; --section-y: 96px; --header-h: 72px;
  }
}

/* ===== 2. Base + type ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
svg { flex-shrink: 0; }
a { color: var(--action); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--action); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 300; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -.015em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-card); line-height: var(--lh-card); }
h4 { font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 24px; }
h1 em, h2 em { font-style: normal; color: var(--money-ink); }
h1 b, h2 b { font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
b, strong { font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.tiny { font-size: 13px; line-height: 18px; }
.fine { font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--muted); max-width: 75ch; }
.fine a { color: var(--ink-2); }
.caption { display: block; margin: 12px 0 0; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: var(--r-tag); }
.site-footer:not(.site-footer-slim):not(.app-footer) :focus-visible, .band-teal :focus-visible, .statement :focus-visible, .final-card:not(.final-soft) :focus-visible { outline-color: var(--on-fill); }
::selection { background: var(--action-tint-2); }
/* Deprecated: section eyebrows are gone (DNA 6.6). Pages not yet restyled keep their text as one quiet line. */
.eyebrow { display: block; margin: 0 0 12px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--muted); }
.eyebrow .ic, .eyebrow svg { display: none; }
.h-display { font-family: var(--serif); font-weight: 300; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -.02em; }
.h-section { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }

/* Skip link (first element in <body> on every page, targets <main id="main">) */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--action); color: var(--on-action); padding: 12px 16px; border-radius: var(--r-input); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-action); }

/* ===== 3. Layout ===== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(640px + 2 * var(--gutter)); }
.mid { max-width: 720px; }
.section { padding: var(--section-y) 0; }
.section-tight { padding: var(--s-6) 0; }
/* Two white sections in a row share one gap (96, not 192): white space separates sections, not doubled padding. */
.section:not(.section-alt):not(.band-teal) + .section:not(.section-alt):not(.band-teal) { padding-top: 0; }
.section-alt { background: var(--mist); }   /* the one mist band per page */
.section-tint { background: var(--bg); }    /* deprecated: tint lives in panels now; renders white */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto var(--s-7); max-width: 720px; }
.section-head h2, .section-head .h-section { margin-bottom: 0; }
.section-head .lead { margin: 16px auto 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== 4. Header ===== */
/* Solid white, 1px rule, no blur (Rakuten). Logo left; text links; "Sign in" in the action colour; one 44px pill. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.logo-word { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); line-height: 1; text-transform: lowercase; }
.logo-light .logo-word { color: var(--on-fill); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; }
.nav a[aria-current="page"]:not(.btn) { color: var(--action); text-decoration: underline; }
.nav a[href^="/login"]:not(.btn) { color: var(--action); font-weight: 600; }
.nav .hide-sm { display: none !important; }
.nav .btn-sm .long { display: none; }
@media (min-width: 980px) {
  .nav { gap: 8px; }
  .nav a:not(.btn) { padding: 0 14px; }
  .nav .hide-sm { display: inline-flex !important; }
  .nav .btn-sm .long { display: inline; }
  .nav .btn-sm .short { display: none; }
}
@media (max-width: 400px) {
  .site-header .container { gap: 6px; }
  .logo-word { font-size: 24px; }
  .nav { gap: 2px; }
  .nav a:not(.btn) { padding: 0 8px; }
  .nav .btn-sm { padding: 0 16px; font-size: 15px; }
}
/* Funnel pages (quiz, checkout, offer, downsell, welcome): logo + one status item, no nav */
.funnel-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.funnel-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.secure { font-size: var(--fs-small); font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* App header (member app, partner dashboard): mark + brand + account name */
.app-header .container { height: 64px; }
.app-logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.app-brand { font-family: var(--serif); font-size: 13px; font-weight: 400; color: var(--muted); text-transform: lowercase; }
.app-family { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.app-header .logo { min-width: 0; }
.app-signout { flex: none; text-decoration: none; color: var(--ink-2); }
/* Mobile menu: button + right-hand sheet (js/common.js builds both; without JS the header keeps Sign in) */
.nav-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 12px; padding: 0; border: 0; border-radius: var(--r-input); background: none; color: var(--ink); cursor: pointer; }
.nav-menu-btn:hover { background: var(--mist); }
.nav-menu-btn .ic { width: 24px; height: 24px; }
@media (max-width: 979px) { .nav.has-sheet .nav-signin { display: none; } }
@media (min-width: 980px) { .nav-menu-btn { display: none; } }
dialog.nav-sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(360px, calc(100vw - 32px)); max-width: none; height: 100dvh; max-height: 100dvh; padding: 8px 24px 32px; border-radius: 0; background: var(--surface); overflow-y: auto; box-shadow: var(--sh-1); }
dialog.nav-sheet[open] { display: flex; flex-direction: column; animation: sheetIn .24s var(--ease); }
@keyframes sheetIn { from { transform: translateX(24px); } to { transform: none; } }
.nav-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav-sheet-title { margin: 0; font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.nav-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: var(--r-input); background: none; color: var(--ink); cursor: pointer; }
.nav-sheet-close:hover { background: var(--mist); }
.nav-sheet-list { list-style: none; margin: 8px 0 32px; padding: 0; }
.nav-sheet-list li + li { border-top: 1px solid var(--line); }
.nav-sheet-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 2px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 300; text-decoration: none; }
.nav-sheet-list a .ic { color: var(--muted); }
.nav-sheet-list a:hover, .nav-sheet-list a[aria-current="page"] { color: var(--action); }
.nav-sheet .btn .short { display: none; }
.nav-sheet .btn .long { display: inline; }
.nav-sheet-cta { margin-top: auto; }

/* ===== 5. Footer ===== */
.site-footer { background: var(--ink); color: var(--footer-text); padding: 64px 0 40px; font-size: 15px; line-height: 22px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 980px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-about { font-size: 15px; line-height: 24px; color: var(--footer-muted); margin: 16px 0 0; max-width: 340px; }
.footer-h { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); margin: 0; } /* the only uppercase on the site */
.footer-col ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (min-width: 980px) { .footer-col ul { grid-template-columns: 1fr; } }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.footer-col a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 400; }
.site-footer a:hover { color: var(--on-fill); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--footer-line); font-size: var(--fs-cap); line-height: 18px; color: var(--footer-muted); }
.footer-legal p { margin: 0 0 8px; max-width: 75ch; }
.footer-legal p:last-child { margin-bottom: 0; }
/* Light, compact footer for the funnel and the member app */
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 8px; padding: 0; list-style: none; }
.site-footer-slim, .app-footer { background: var(--bg); color: var(--muted); padding: 24px 0 32px; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.site-footer-slim a, .app-footer a { color: var(--ink-2); }
.site-footer-slim a:hover, .app-footer a:hover { color: var(--ink); }
.site-footer-slim .footer-legal, .app-footer .footer-legal { margin-top: 8px; padding-top: 0; border-top: 0; color: var(--muted); }

/* ===== 6. Buttons ===== */
/* Pill = buttons only. One primary per viewport; the second action is a text link (.btn-link). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: var(--pill); border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn .ic, .btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-primary:active { background: var(--action-press); }
.btn-secondary, .btn-ghost { background: transparent; color: var(--action); border-color: var(--action); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--action-tint); color: var(--action); }
.btn-white { background: var(--surface); color: var(--action); }
.btn-white:hover { background: var(--action-tint); color: var(--action); }
.btn-outline-white { background: transparent; color: var(--on-fill); border-color: var(--on-fill); }
.btn-outline-white:hover { background: color-mix(in srgb, var(--on-fill) 12%, transparent); color: var(--on-fill); }
.btn-dark { background: var(--ink); color: var(--on-fill); }
.btn-dark:hover { background: var(--ink-2); color: var(--on-fill); }
.btn-teal { background: var(--money-ink); color: var(--on-fill); }
.btn-teal:hover { background: var(--money-deep); color: var(--on-fill); }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err-tint); color: var(--err); }
.btn-link, .btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 4px; background: none; border: 0; box-shadow: none; color: var(--action); font: 500 16px/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; border-radius: var(--r-tag); }
.btn-link:hover, .btn-text:hover { color: var(--action); text-decoration-thickness: 2px; }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { background: var(--disabled); color: var(--on-fill); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.btn-secondary[disabled], .btn-ghost[disabled], .btn-secondary[aria-busy="true"], .btn-ghost[aria-busy="true"], .btn-danger[disabled] { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.logo, .nav a, .btn-sm { white-space: nowrap; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.cta-row .btn { width: 100%; }
@media (min-width: 600px) { .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; } .cta-row .btn { width: auto; } }
.cta-note { margin: 16px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); max-width: 540px; }
.cta-note b { color: var(--ink-2); font-weight: 600; }
.cta-online { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.cta-online .ic { color: var(--muted); margin-top: 2px; }
/* Online-only rule as one icon + text line (app.js builds .online-only on Deals) */
.online-only { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.online-only .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--wait-ink); }

/* ===== 7. Forms ===== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--ink); }
.field-hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 16px; font: 400 16px/22px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-input); appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--placeholder); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--ink-2); }
.input:focus { border-color: var(--action); outline: none; box-shadow: var(--sh-focus); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--err-tint); }
.input[disabled] { background: var(--mist); color: var(--muted); cursor: not-allowed; }
.field-error { color: var(--err); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; min-height: 0; margin: 0; }
.field-error:not(:empty)::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; background: var(--err); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.25a8.75 8.75 0 1 0 0 17.5 8.75 8.75 0 1 0 0-17.5zM12 7.75v5M12 16.25h.01' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.25a8.75 8.75 0 1 0 0 17.5 8.75 8.75 0 1 0 0-17.5zM12 7.75v5M12 16.25h.01' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 22px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--action); flex: none; border-radius: var(--r-tag); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; }
.input-prefix .input { padding-left: 30px; }
select.input, select.select-input, .app-body select.select { background-image: var(--select-arrow); background-position: right 16px center; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 44px; cursor: pointer; }
.form-grid { display: grid; gap: 24px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-check { justify-content: flex-end; min-height: 48px; }
.field-check .check { min-height: 48px; align-items: center; }
/* Option tile (radio/checkbox styled as a tile): white, 1px rule, no shadow; selected = action rule + tint */
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 16px; text-align: left;
  font: 600 16px/1.3 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-tile);
  cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink-2); }
.choice[aria-pressed="true"] { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-small); margin-top: 2px; }
.choices { display: grid; gap: 12px; }
@media (min-width: 560px) { .choices-2 { grid-template-columns: 1fr 1fr; } }

/* ===== 8. Cards + panels ===== */
/* No shadows on cards. White card = 1px --line (safe on white and on mist). Flat card = --mist, no border.
   Panel = one tint, radius 24, no border. Never nest a card in a card; never an icon tile on top of a card. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
@media (min-width: 760px) { .card { padding: 32px; } }
.card-flat { background: var(--mist); border-color: transparent; }
.card-lg { border-radius: var(--r-panel); padding: 32px 24px; }
@media (min-width: 760px) { .card-lg { padding: 48px; } }
.card-raised { border-color: var(--line); }   /* deprecated: same as .card (no shadows on cards) */
.card-accent { background: var(--action-tint); border-color: transparent; }
.card-teal { background: var(--money-tint); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.panel { border-radius: var(--r-panel); padding: 32px 24px; background: var(--mist); }
@media (min-width: 760px) { .panel { padding: 48px; } }
.panel-money { background: var(--money-tint); }
.panel-wait { background: var(--wait-tint); }
.panel-sienna { background: var(--sienna-tint); }
.panel-action { background: var(--action-tint); }
.media { border-radius: var(--r-panel); overflow: hidden; background: var(--mist); }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Deprecated: icon tiles are gone (DNA 6.8). The class now renders the icon inline in currentColor, no tile. */
.icon-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); background: none; }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile-teal { color: var(--money-ink); }
.icon-tile-amber { color: var(--wait-ink); }
.icon-tile-mist { color: var(--ink); }
.icon-tile-blue { color: var(--action); }
.feature { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; align-items: start; }
.feature h3 { font-size: 17px; line-height: 24px; margin: 0 0 4px; }
.feature p { font-size: 15px; line-height: 24px; color: var(--muted); margin: 0; grid-column: 2; }
.feature .icon-tile { grid-row: span 2; }

/* ===== 9. Labels + status ===== */
/* Status = 8px dot + text in the matching ink, no capsule. Labels are text with a 4px radius, never pills. */
.tag-ex { display: inline; font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: 400; color: var(--muted); background: none; border: 0; padding: 0; white-space: nowrap; } /* deprecated: the Example chip is gone; use one .caption under the visual */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: var(--r-tag); background: none; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--ink-2); }
.badge-ok, .badge-available, .acct-available { color: var(--money-ink); }
.badge-warn, .badge-pending, .acct-pending { color: var(--wait-ink); }
.badge-err { color: var(--err); }
.badge-accent { color: var(--action); }
.badge-paid, .acct-paid_out { color: var(--ink-2); }
.badge-ok::before, .badge-available::before, .badge-warn::before, .badge-pending::before, .badge-err::before, .badge-accent::before, .badge-paid::before,
.acct-pending::before, .acct-available::before, .acct-paid_out::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--money); }
.badge-warn::before, .badge-pending::before, .acct-pending::before { background: var(--wait); }
.badge-err::before { background: var(--err); }
.badge-accent::before { background: var(--action); }
.badge-paid::before, .acct-paid_out::before { background: var(--muted); }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--wait-ink); }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.chip { min-height: 44px; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface); font: 500 15px var(--sans); color: var(--ink-2); cursor: pointer; } /* toggle buttons */
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: var(--on-action); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-pending, .dot-amber { background: var(--wait); }
.dot-available { background: var(--money); }
.dot-paid { background: var(--muted); }
.dot-white { background: var(--on-fill); }

/* ===== 10. Alerts ===== */
.notice, .alert { display: block; padding: 16px; border-radius: var(--r-tile); border: 0; background: var(--mist); font-size: 15px; line-height: 22px; color: var(--ink-2); }
.notice-ok, .alert-ok { background: var(--money-tint); color: var(--money-deep); }
.notice-warn, .alert-warn { background: var(--wait-tint); color: var(--on-wait-tint); }
.notice-err, .alert-err { background: var(--err-tint); color: var(--err); }
.notice-info, .alert-info { background: var(--mist); }
.notice-title { font-weight: 600; margin: 0 0 4px; color: inherit; }
.alert-icon { display: flex; gap: 12px; align-items: flex-start; }
.alert-icon > svg { width: 20px; height: 20px; margin-top: 1px; }
.disclosure { font-size: var(--fs-small); line-height: 22px; color: var(--on-wait-tint); background: var(--wait-tint); border-radius: var(--r-tile); padding: 16px; }
.disclosure b { color: var(--on-wait-tint); }

/* ===== 11. Lists ===== */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 12px 0; line-height: 24px; }
.checks li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: var(--money-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 12.75l4.5 4.5L19.25 7.25' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 12.75l4.5 4.5L19.25 7.25' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks-coral li::after { background-color: var(--action); }
.checks li.no { color: var(--muted); }
.checks li.no::after { background-color: var(--muted); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* Numbered steps: a Bitter 300 numeral, no circle */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 32px; font: 300 36px/1 var(--serif); color: var(--money-ink); font-variant-numeric: lining-nums; }
.list { display: grid; gap: 0; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--action-tint-2); color: var(--action); display: grid; place-items: center; font-weight: 600; flex: none; }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.av-c { background: var(--action-tint-2); color: var(--action); }
.av-t { background: var(--money-tint-2); color: var(--money-deep); }
.av-i { background: var(--line); color: var(--ink); }
.av-a { background: var(--wait-tint); color: var(--wait-ink); }

/* ===== 12. Tables ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); background: var(--mist); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.col-us { background: var(--action-tint); }
th.col-us { color: var(--action); background: var(--action-tint); }
.table-dense th, .table-dense td { padding: 10px 12px; font-size: var(--fs-small); }
.table-dense th { white-space: nowrap; }
.rtable .row-empty td { color: var(--muted); text-align: center; padding: 28px 16px; }
.rtable .row-hot td { background: var(--wait-tint); }
.rtable td > .cell { min-width: 0; }
@media (max-width: 759px) {
  .table-wrap:has(.rtable) { overflow: visible; border: 0; background: transparent; border-radius: 0; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 16px; margin-bottom: 12px; }
  .rtable td { display: grid; grid-template-columns: minmax(96px, 36%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .rtable td.col-us { background: transparent; }
  .rtable td.num { text-align: left; }
  .rtable tr td:last-child { border-bottom: 0; }
  .rtable td::before { content: attr(data-label); font-size: var(--fs-cap); font-weight: 600; color: var(--muted); padding-top: 2px; font-family: var(--sans); }
  .rtable .row-empty td { display: block; }
  .rtable .row-empty td::before { content: none; }
  .rtable .row-hot { border-color: var(--wait-line); }
  .rtable .row-hot td { background: transparent; }
}
.table-mini { font-size: var(--fs-small); }
.table-mini th, .table-mini td { padding: 8px 0; background: none; border-bottom: 1px solid var(--line); }
.table-mini th { font-size: var(--fs-cap); }
.table-mini th + th, .table-mini td + td { padding-left: 12px; }

/* ===== 13. FAQ (details.faq > summary + div; seo-heads.py reads this exact markup for JSON-LD) ===== */
details.faq { background: var(--mist); border-radius: var(--r-card); }
details.faq + details.faq { margin-top: 12px; }
.section-alt details.faq { background: var(--surface); }
details.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 24px; font-weight: 600; font-size: 17px; line-height: 24px; color: var(--ink); border-radius: var(--r-card); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 20px; height: 20px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat; transition: transform .2s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { color: var(--action); }
details.faq > div { padding: 0 24px 24px; color: var(--ink-2); font-size: 16px; line-height: 26px; max-width: 70ch; }
details.faq > div a { color: var(--action); }
.faq-grid { display: grid; gap: 12px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } }

/* ===== 14. Numbers + meters ===== */
/* Stat row: no box. Bitter numerals with a 14px caption, divided by 1px rules. */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stat-strip li { padding: 0 12px; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.stat-strip li:first-child { border-left: 0; }
.stat-strip b { display: block; font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.stat-strip b small { font-size: .45em; font-weight: 400; letter-spacing: 0; margin-right: 4px; }
@media (max-width: 640px) { .stat-strip b { font-size: 32px; line-height: 36px; } .stat-strip li { padding: 0 8px; } .stat-strip li > span { font-size: 13px; line-height: 18px; } }
.stat-strip li > span { display: block; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin-top: 4px; }
.stat-strip-note { font-size: var(--fs-cap); color: var(--muted); margin: 12px 0 0; }
/* App stat (balances, KPIs): money in app UI is Figtree 600, tabular */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font: 600 28px/1.2 var(--sans); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.stat-label { font-size: var(--fs-small); color: var(--muted); font-weight: 500; }
.stat-ok .stat-value { color: var(--money-ink); }
/* Meter (goal bar): flat fill, no gradient */
.meter, .goal-bar { height: 8px; border-radius: var(--r-tag); background: var(--money-tint-2); overflow: hidden; }
.meter-fill, .goal-fill { display: block; height: 100%; width: 0; background: var(--money); border-radius: var(--r-tag); transition: width .6s var(--ease); }
.meter-coral .meter-fill { background: var(--action); }
.progress { height: 6px; background: var(--line); border-radius: var(--r-tag); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--action); border-radius: var(--r-tag); transition: width .35s var(--ease); }
.w43 { width: 43%; }

/* ===== 15. Phone mockup + floating card ===== */
/* At most one phone per page, upright, no shadow. All screen content is an Example: aria-hidden, one role="img" label. */
.phones { position: relative; height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
@media (min-width: 600px) { .phones { height: 640px; } }
.phone { position: absolute; width: 268px; border-radius: var(--r-phone); background: var(--phone-body); padding: 8px; }
@media (min-width: 600px) { .phone { width: 290px; padding: 10px; } }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: var(--surface); height: 452px; display: flex; flex-direction: column; }
@media (min-width: 600px) { .phone-screen { height: 584px; } }
.phone-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: var(--phone-body); z-index: 3; }
.phone-sbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 0; height: 40px; font-size: 12px; font-weight: 600; color: var(--ink); }
.phone-sbar svg { width: 34px; height: 11px; }
.phone-front { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone-app { padding: 6px 14px 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.phone-app > * { flex-shrink: 0; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-top .fam { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1.3; }
.phone-top .fam small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.bal-card { margin-top: 12px; border-radius: var(--r-card); padding: 16px; color: var(--on-action); background: var(--action); }
.bal-card .lbl { font-size: 12px; font-weight: 500; color: var(--on-action-2); }
.bal-card .amt { font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums lining-nums; }
.bal-card .split { display: flex; gap: 8px; margin-top: 12px; }
.bal-card .split span { flex: 1; border-top: 1px solid color-mix(in srgb, var(--on-action) 24%, transparent); padding: 8px 0 0; font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--on-action-2); }
.bal-card .split b { display: block; font-size: 14px; font-weight: 600; color: var(--on-action); }
.goal-mini { margin-top: 10px; background: var(--money-tint); border-radius: var(--r-tile); padding: 10px 12px; }
.goal-mini .row { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: var(--money-deep); gap: 8px; flex-wrap: nowrap; }
.goal-mini .meter { height: 6px; background: var(--surface); margin-top: 7px; }
.phone-feed { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; flex-shrink: 1; min-height: 0; overflow: hidden; }
.phone-feed .h { font-size: 12px; color: var(--muted); font-weight: 500; margin: 2px 0 4px; }
.phone-feed li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.phone-feed li:last-child { border-bottom: 0; }
.phone-feed .t { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.phone-feed .t small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.phone-feed .v { font-size: 12px; font-weight: 600; text-align: right; line-height: 1.2; color: var(--ink); }
.phone-feed .v small { display: block; font-size: 10px; font-weight: 500; color: var(--wait-ink); }
.phone-feed .v.ok small { color: var(--money-ink); }
@media (max-width: 400px) { .phone-feed li:nth-child(n+4) { display: none; } }
.phone-tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding: 8px 6px 14px; margin-top: auto; background: var(--surface); }
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--muted); }
.phone-tabs svg { width: 18px; height: 18px; }
.phone-tabs .on { color: var(--action); }
.stack-av { display: flex; justify-content: center; margin-top: 12px; }
.stack-av .av { margin-left: -6px; }
.stack-av .av:first-child { margin-left: 0; }
/* The one floating card per visual (over a photo or beside a phone): white, radius 16, the one shadow. */
.float-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-card); padding: 12px 16px; box-shadow: var(--sh-1); font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--ink); }
.float-chip small { display: block; font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
.float-chip .icon-tile svg { width: 20px; height: 20px; }
.fc-1 { left: 0; bottom: 0; }
/* Photo frame with one floating card (about, how it works, partners, extension). */
.photo-stack { position: relative; padding-bottom: 96px; }
@media (min-width: 600px) { .photo-stack { padding-bottom: 56px; } }
.photo-stack .ph { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 3.3; }
.photo-stack .ph img { width: 100%; height: 100%; object-fit: cover; }
.seat-card { position: absolute; left: 16px; right: 16px; bottom: 0; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-1); padding: 16px; }
@media (min-width: 600px) { .seat-card { left: auto; right: -16px; width: 320px; } }
.seat-card .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.seat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.seat-row:first-of-type { border-top: 0; }
.seat-row .t { flex: 1; line-height: 1.25; }
.seat-row .t small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-cap); }
.seat-hide { display: none; }
@media (min-width: 600px) { .seat-hide { display: flex; } }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); font-weight: 600; }
.role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.role-p { color: var(--action); }
.role-m { color: var(--money-ink); }

/* ===== 16. App shell: top tabs on desktop, bottom tab bar with icons at <= 600px ===== */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-body { background: var(--mist); }
.app-tabs { position: sticky; top: 64px; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-tabs-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.app-tabs-row::-webkit-scrollbar { display: none; }
.app-tabs-row a { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; min-height: 52px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.app-tabs-row a:hover { color: var(--ink); }
.app-tabs-row a[aria-current="page"] { color: var(--action); font-weight: 600; border-bottom-color: var(--action); }
.tab-ic { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .app-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .app-tabs-row { padding: 0 4px; gap: 0; overflow: visible; }
  .app-tabs-row a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; min-height: 60px; padding: 6px 2px; font-size: 12px; border-bottom: 0; margin: 0; }
  .app-tabs-row a[aria-current="page"] { border-bottom: 0; }
  .tab-ic { width: 24px; height: 24px; }
  .app-body .app-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .app-body .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.app-main { flex: 1; padding: 24px 0 48px; outline: none; }
@media (min-width: 760px) { .app-main { padding: 40px 0 72px; } }
.app-head { margin-bottom: 24px; }
.app-title { font: 300 var(--fs-h2)/var(--lh-h2) var(--serif); letter-spacing: -.015em; margin-bottom: 4px; color: var(--ink); }
.app-title:focus { outline: none; }
.app-notice { margin-bottom: 16px; }
.app-notice .btn { text-decoration: none; }
.app-body .card { padding: 24px 20px; border-color: transparent; }
@media (min-width: 760px) { .app-body .card { padding: 24px; } }
.app-body .card-lg { padding: 32px; }
.app-body .card-title { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 12px; }
.app-body .card-soft { background: var(--money-tint); border-color: transparent; }
.app-body .stack > * + * { margin-top: 16px; }
.app-body .two-col, .home-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) {
  .home-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; }
  .app-body .two-col { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
}
.app-body .break { word-break: break-word; overflow-wrap: anywhere; }

/* ===== 17. Empty + loading ===== */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.empty-state h3 { margin: 4px 0 0; }
.empty-state p { color: var(--muted); max-width: 42ch; margin: 0; font-size: 15px; }
.empty-state .btn { margin-top: 8px; }
.app-body .empty { padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--muted); text-align: center; font-size: 15px; list-style: none; background: var(--surface); }
.app-state { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 72px 0; }
.app-state-inline { padding: 24px 0; flex-direction: row; justify-content: center; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--action-tint-2); border-top-color: var(--action); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 48px 0; }

/* ===== 18. Dialog + toast ===== */
dialog { border: 0; border-radius: var(--r-panel); padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: var(--sh-1); color: var(--ink-2); }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 50%, transparent); }
dialog .dialog-body { padding: 32px 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-fill); padding: 14px 20px; border-radius: var(--r-tile); font-size: 15px; font-weight: 500; z-index: 80; max-width: calc(100vw - 32px); box-shadow: var(--sh-1); }
/* Sticky bottom CTA on phones (home, js/common.js): solid white, 1px top rule, no blur, no shadow */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1; min-height: 48px; box-shadow: none; }
.sticky-cta-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-input); background: none; color: var(--ink-2); cursor: pointer; }
.sticky-cta-x:hover { background: var(--mist); }
@media (min-width: 601px) { .sticky-cta { display: none !important; } }
body.has-sticky-cta { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

/* ===== 19. Utilities ===== */
.w-0 { width: 0; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.block { display: block; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.text-err { color: var(--err); font-weight: 600; }
.row-center { justify-content: center; }
.row-tight { gap: 8px; flex-wrap: nowrap; }
.align-center { align-items: center; }
.center-block { margin-left: auto; margin-right: auto; }
.hide-xs { display: none; }
@media (min-width: 420px) { .hide-xs { display: inline; } }
.show-xs { display: inline; }
@media (min-width: 420px) { .show-xs { display: none; } }
.mono { font-family: var(--mono); font-size: 13.5px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }
.strike { text-decoration: line-through; color: var(--muted); }
.price-big { font: 300 52px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h3 { font-size: var(--fs-card); line-height: var(--lh-card); font-weight: 600; color: var(--ink); }
.h-page { font: 300 var(--fs-h1)/var(--lh-h1) var(--serif); letter-spacing: -.02em; color: var(--ink); }
.h-sub { font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); letter-spacing: -.01em; color: var(--ink); }
.h-card { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.quote { font-size: 16px; color: var(--ink-2); }
.quote-by { font-size: var(--fs-small); color: var(--muted); margin-top: 12px; font-weight: 500; }
.fine, p.tiny { max-width: 75ch; }
.fine.center, p.tiny.center { margin-left: auto; margin-right: auto; }
#main:focus { outline: none; }

/* ===== 20. Home page (index.html; the reference layout for every page) ===== */
/* Hero: white. Bitter 300 headline with one word in --money-ink, one photo (radius 24), one floating product card,
   one cash-back bubble, one caption. */
.hero { position: relative; padding: 32px 0 64px; background: var(--bg); }
@media (min-width: 1024px) { .hero { padding: 64px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.hero-home h1 { margin: 0; max-width: 11.5em; }
.hero-home .lead { margin: 24px 0 0; max-width: 34em; }
.hero-home .cta-row { margin-top: 32px; }
.hero-visual { position: relative; margin: 0; padding: 40px 0 0 0; }
.hero-photo { position: relative; z-index: 1; width: 82%; margin-left: auto; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-visual::before { content: ""; position: absolute; z-index: 0; top: 16px; right: -8px; width: 78%; height: calc(100% - 64px); border-radius: var(--r-panel); background: var(--money-tint); transform: rotate(4deg); } /* flat backing panel, the Rakuten device */
.hero-card { position: absolute; z-index: 2; left: 0; bottom: 64px; width: min(250px, 64%); padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--sh-1); }
.hero-bubble { position: absolute; left: 16px; top: -20px; display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: var(--pill); background: var(--money-tint); color: var(--money-deep); font-size: var(--fs-small); line-height: 20px; font-weight: 500; white-space: nowrap; } /* the one non-button pill */
.hero-bubble b { font-weight: 700; }
.hero-bubble::after { content: ""; position: absolute; left: 22px; bottom: -5px; width: 10px; height: 10px; background: var(--money-tint); transform: rotate(45deg); }
.hc-fam { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.hc-fam small { font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
.hc-lbl { margin: 12px 0 0; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--muted); }
.hc-amt { margin: 2px 0 0; font-size: 32px; line-height: 38px; font-weight: 600; color: var(--ink); }
.hc-goal { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 6px; font-size: var(--fs-cap); font-weight: 600; color: var(--money-deep); }
.hero-visual .caption { position: relative; z-index: 2; width: 82%; margin-left: auto; }
@media (max-width: 599px) {
  .hero-visual { padding-top: 24px; }
  .hero-photo { width: 86%; aspect-ratio: 4 / 4.2; }
  .hero-photo img { object-position: 22% 50%; }
  .hero-card { width: 210px; bottom: 56px; padding: 14px; }
  .hc-amt { font-size: 28px; line-height: 34px; }
  .hero-visual .caption { width: 86%; }
}
/* Fact row under the hero (Rakuten's ratings strip) */
.hero-facts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .hero-facts { margin-top: 64px; } .hero-facts .stat-strip { max-width: 880px; margin: 0 auto; } }
/* Estimate panel (follows the hero, so no second top padding) */
.section.est { padding-top: 0; }
.est-panel { display: grid; gap: 32px; }
@media (min-width: 980px) { .est-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: center; } }
.est-k { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; color: var(--money-deep); }
.est-panel h2 { margin: 0; }
.est-panel h2 b { color: var(--money-ink); }
.est-break { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.est-break li { padding: 16px 0; border-top: 1px solid var(--money-tint-2); }
.est-break li:nth-child(odd) { padding-right: 16px; }
.est-break li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--money-tint-2); }
.est-break b { display: block; font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--ink); }
.est-break span { display: block; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--money-deep); margin-top: 4px; }
.est-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 24px; }
.est-foot .fine { margin: 0; color: var(--money-deep); }
@media (min-width: 760px) { .est-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; } .est-foot .btn { flex: none; } }
/* Steps: flat cards on mist, a Bitter numeral, no icons */
.step-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 980px) { .step-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step-card { background: var(--mist); border-radius: var(--r-card); padding: 24px; }
@media (min-width: 760px) { .step-card { padding: 32px; } }
.step-n { display: block; font: 300 var(--fs-stat)/1 var(--serif); color: var(--money-ink); font-variant-numeric: lining-nums; }
.step-card h3 { margin: 24px 0 0; }
.step-card p { color: var(--ink-2); margin: 8px 0 0; }
.mini { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; } /* example rows inside a step (other pages) */
.mini-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mini-row .t { flex: 1; font-weight: 600; line-height: 1.25; color: var(--ink); }
.mini-row .t small { display: block; font-weight: 400; color: var(--muted); }
.dot-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--money-ink); color: var(--on-fill); display: flex; align-items: center; justify-content: center; }
.dot-ok svg { width: 12px; height: 12px; }
.dot-wait { width: 12px; height: 12px; margin: 4px; border-radius: 50%; background: var(--wait); }
.online-note { display: flex; gap: 12px; align-items: flex-start; margin: 32px auto 0; max-width: 720px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.online-note svg { width: 20px; height: 20px; color: var(--wait-ink); margin-top: 2px; }
.online-note b { color: var(--ink); }
/* Categories + live store list (the one mist band) */
.cat-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.cat { border-radius: var(--r-card); padding: 24px; background: var(--surface); }
.cat h3 { margin: 0; }
.cat p { color: var(--muted); margin: 8px 0 0; font-size: 15px; line-height: 24px; }
.store-strip { margin-top: 24px; background: var(--surface); border-radius: var(--r-card); padding: 24px; }
.store-strip h3 { margin: 0; }
.store-strip [data-stores-list] { gap: 8px; }
.store-strip [data-stores-list] .badge { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); color: var(--ink); font-weight: 500; } /* merchant tiles: name on white, radius 12 */
.store-strip [data-stores-list] .badge b { color: var(--money-ink); font-weight: 600; }
/* Family roles */
.fam-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .fam-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.roles { display: grid; gap: 16px; }
@media (min-width: 600px) { .roles { grid-template-columns: 1fr 1fr; } }
.role-card { border-radius: var(--r-card); padding: 24px; background: var(--mist); }
.role-card h3 { margin: 0; }
.role-card .who { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 4px 0 0; }
.role-card .checks li { font-size: 15px; margin: 10px 0; }
.roles-note { margin-top: 16px; }
/* Teen-safe: an editorial list, no tiles */
.teen-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .teen-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.teen-grid h2 { margin-bottom: 16px; }
.teen-list { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .teen-list { grid-template-columns: 1fr 1fr; } }
.teen-item { padding: 24px 0; border-top: 1px solid var(--line); }
.teen-item .ic { width: 24px; height: 24px; color: var(--action); }
.teen-item h3 { font-size: 18px; line-height: 26px; margin: 12px 0 0; }
.teen-item p { font-size: 15px; line-height: 24px; color: var(--ink-2); margin: 4px 0 0; }
/* The one statement band per page: --action, white Bitter text (Rakuten's "That's how we're free" block) */
.band-teal { background: var(--action); color: var(--on-action); }
.band-teal h2, .band-teal h3 { color: var(--on-action); }
.band-teal .lead, .band-teal p { color: var(--on-action-2); }
.band-teal a { color: var(--on-action); }
.statement { border-radius: var(--r-panel); padding: 48px 24px; background: var(--action); color: var(--on-action); text-align: center; }
@media (min-width: 760px) { .statement { padding: 80px 64px; } }
.statement h2 { color: var(--on-action); max-width: 22ch; margin: 0 auto; }
.statement .lead { color: var(--on-action-2); margin: 24px auto 0; }
/* Money flow: three columns divided by rules, Bitter numerals */
.flow { display: grid; gap: 0; margin-top: 64px; }
@media (min-width: 980px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fl { padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .fl { padding: 0 32px; border-top: 0; border-left: 1px solid var(--line); } .fl:first-child { padding-left: 0; border-left: 0; } }
.fl .k { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.fl .big { display: block; font: 300 64px/1 var(--serif); letter-spacing: -.02em; margin-top: 12px; color: var(--ink); }
.fl h3 { margin: 12px 0 0; }
.fl p { font-size: 15px; line-height: 24px; color: var(--ink-2); margin: 8px 0 0; }
.fl.hl .big { color: var(--money-ink); }
.status-line { margin: 48px 0 0; padding: 24px; list-style: none; background: var(--mist); border-radius: var(--r-card); display: grid; gap: 20px; }
@media (min-width: 760px) { .status-line { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px; } }
.status-line li { display: flex; gap: 12px; align-items: flex-start; }
.status-line .dot { margin-top: 8px; }
.status-line h3 { font-size: 16px; line-height: 24px; margin: 0; }
.status-line p { font-size: var(--fs-small); line-height: 22px; color: var(--ink-2); margin: 2px 0 0; }
/* Comparison inside "Our cut" (compact 3 columns at every width) */
.cmp-block { margin-top: 64px; }
.cmp-h { font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); margin: 0 0 24px; }
.cmp-table { table-layout: fixed; }
.cmp-table th[scope="row"] { font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); }
.cmp-table thead th:first-child { width: 30%; }
.yn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; vertical-align: middle; }
.yn .ic { width: 16px; height: 16px; }
.yn-yes { color: var(--money-ink); }
.yn-no { color: var(--muted); }
.cmp-note { display: block; margin-top: 4px; }
@media (max-width: 759px) {
  .cmp-table th, .cmp-table td { padding: 12px 8px; font-size: 13.5px; }
  .cmp-table th[scope="row"] { font-size: 13.5px; padding-left: 12px; }
  .cmp-table thead th { font-size: 12px; }
  .cmp-table thead th:first-child { width: 31%; }
  .cmp-table .small { font-size: 13px; line-height: 1.4; }
  .cmp-note { display: none; }
  .yn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cmp-block .btn { margin-top: 8px; }
/* Pricing */
.price-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .price-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: start; } .price-grid .side-stack { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 979px) { .price-grid .side-stack { display: none; } } /* the side notes repeat the card on phones */
.pcard { background: var(--mist); border-radius: var(--r-panel); padding: 32px 24px; }
@media (min-width: 600px) { .pcard { padding: 48px; } }
.ptop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.ptop h3 { font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); margin: 0; }
.ptop p { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.trial-badge { font-size: var(--fs-small); font-weight: 600; color: var(--money-deep); }
.pbig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 24px 0 0; }
.pbig .price-big { font-size: 72px; }
.pbig span { font-size: 17px; color: var(--muted); }
.pmo { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.side-stack { display: flex; flex-direction: column; }
.gbox { padding: 24px 0; border-top: 1px solid var(--line); }
.gbox:first-child { border-top: 0; padding-top: 0; }
.gbox h3 { font-size: 17px; line-height: 24px; margin: 0 0 4px; }
.gbox p { font-size: 15px; line-height: 24px; color: var(--ink-2); margin: 0; }
.gbox p a { color: var(--action); }
.gbox.feature { grid-template-columns: 24px 1fr; }
.gbox .icon-tile { color: var(--action); }
/* Invite */
.invite { display: grid; gap: 40px; align-items: center; background: var(--mist); border-radius: var(--r-panel); padding: 32px 24px; }
@media (min-width: 980px) { .invite { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 64px; gap: 64px; } }
.invite h2 span { color: var(--money-ink); }
.inv-wrap { justify-self: center; width: 100%; max-width: 400px; }
.inv-card { background: var(--surface); border-radius: var(--r-card); padding: 24px; } /* sits on the --mist panel: flat white, no shadow */
.inv-card .hd { font-size: 17px; font-weight: 600; color: var(--ink); }
.fake-in { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 8px 14px; font-size: var(--fs-cap); font-weight: 500; color: var(--muted); }
.fake-in span { display: block; font-size: 15px; color: var(--ink); font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.seg span { border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 10px 12px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.seg small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.seg .on { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.fake-btn { margin-top: 16px; height: 48px; border-radius: var(--pill); background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.seat-dots { display: flex; gap: 6px; margin-top: 16px; align-items: center; font-size: var(--fs-cap); font-weight: 500; color: var(--muted); }
.seat-dots i { width: 20px; height: 6px; border-radius: var(--r-tag); background: var(--line); }
.seat-dots i.f { background: var(--money); }
.seat-dots span { margin-left: 4px; }
/* FAQ: Rakuten's two-column "Still have questions?" layout */
.faq-split { display: grid; gap: 32px; }
@media (min-width: 980px) { .faq-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 64px; align-items: start; } .faq-split h2 { max-width: 9em; text-wrap: balance; } }
.faq-split h2 { margin: 0 0 16px; }
.faq-split .btn-link { margin-left: -4px; }
/* Final CTA: one closing panel. Default = statement colour (other pages pair it with .btn-white);
   .final-soft = a soft teal panel with a normal primary button (home). */
.final { padding: 0 0 var(--section-y); }
.final-card { border-radius: var(--r-panel); padding: 48px 24px; text-align: center; background: var(--action); color: var(--on-action); }
@media (min-width: 980px) { .final-card { padding: 80px 64px; } }
.final-card h2 { color: var(--on-action); max-width: 18ch; margin: 0 auto; }
.final-card p { font-size: var(--fs-lead); line-height: var(--lh-lead); margin: 16px auto 0; max-width: 560px; color: var(--on-action-2); }
.final-card .cta-row { justify-content: center; }
.final-card .fine { font-size: 13px; line-height: 20px; color: var(--on-action-2); margin-left: auto; margin-right: auto; }
.final-soft { background: var(--money-tint); color: var(--ink-2); }
.final-soft h2 { color: var(--ink); }
.final-soft p, .final-soft .fine { color: var(--ink-2); }
/* One authored motion moment: the hero card and bubble lift in. Transform only, so the LCP photo paints at once. */
@keyframes lift { from { transform: translateY(12px); } to { transform: none; } }
.hero-home .hero-card { animation: lift .6s var(--ease) both .15s; }
.quiz-step { animation: fadeUp .25s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== 21. Funnel ===== */
.funnel-main { padding: 20px 0 56px; min-height: calc(100vh - 64px); }
@media (min-width: 760px) { .funnel-main { padding: 40px 0 88px; } }
.funnel-h1 { font: 300 var(--fs-h1)/var(--lh-h1) var(--serif); letter-spacing: -.02em; }
.funnel-header .secure { gap: 10px; }
.funnel-header .secure, .funnel-header .badge { white-space: nowrap; }
.funnel-header .wl-skip { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; padding: 0 4px; }
.lock { display: inline-block; position: relative; width: 11px; height: 9px; border-radius: var(--r-tag); background: currentColor; margin-top: 4px; vertical-align: -1px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -6px; width: 7px; height: 7px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: var(--r-tag) var(--r-tag) 0 0; box-sizing: border-box; }

/* Quiz */
.quiz-shell { max-width: 600px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
.quiz-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px 8px 4px; border: 0; background: none; font: 600 15px var(--sans); color: var(--ink-2); cursor: pointer; border-radius: var(--r-input); }
.quiz-back:hover { color: var(--ink); background: var(--mist); }
.quiz-count { margin-left: auto; }
.chev { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); margin-left: 8px; }
.quiz-panel { padding-top: 28px; }
.quiz-q { font: 300 var(--fs-h2)/var(--lh-h2) var(--serif); letter-spacing: -.015em; margin-bottom: 12px; }
.quiz-q:focus { outline: none; }
.quiz-hint { margin-bottom: 0; }
.choice-key { flex: none; width: 30px; height: 30px; border-radius: var(--r-tile); display: grid; place-items: center; font: 600 13px var(--sans); color: var(--muted); background: var(--mist); border: 1px solid var(--line); transition: background .12s, color .12s; }
.choice[aria-pressed="true"] .choice-key { background: var(--action); border-color: var(--action); color: var(--on-fill); }
.kbd-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .kbd-hint { display: block; } }
@media (max-width: 759px) { .kbd-hint { display: none !important; } }
.estimate-hero { padding: 24px 20px; }
@media (min-width: 760px) { .estimate-hero { padding: 32px; } }
.estimate-num { font: 300 clamp(56px, 14vw, 80px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--money-ink); margin: 0 0 8px; }
.estimate-sub { color: var(--ink-2); margin-bottom: 20px; }
.breakdown { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.bd-note { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.bd-val { font-weight: 600; font-size: 16px; }
.bd-bar { height: 8px; border-radius: var(--r-tag); background: var(--money-tint-2); overflow: hidden; margin-top: 8px; }
.bd-fill { height: 100%; width: 0; border-radius: var(--r-tag); background: var(--money); transition: width .7s var(--ease); }
.net-card .h3 { margin-bottom: 8px; }
.net-card .summary-total { border-top: 1px solid var(--line); }
.net-pos { color: var(--money-ink); }

/* Checkout */
.checkout-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; } .sticky { position: sticky; top: 88px; } }
.checkout-head { max-width: 720px; }
.checkout-form { padding: 22px; }
@media (min-width: 760px) { .checkout-form { padding: 32px; } }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-line:last-child { border-bottom: 0; }
.summary-line .num { white-space: nowrap; }
.summary-total { font-weight: 600; font-size: 17px; }
.estimate-strip { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 22px; border-radius: var(--r-card); background: var(--money-tint); }
.estimate-strip-num { font-size: 26px; font-weight: 600; color: var(--money-ink); line-height: 1.15; }
.bump { display: block; cursor: pointer; border: 1px solid var(--action); background: var(--action-tint); border-radius: var(--r-card); padding: 16px; transition: background .15s, border-color .15s; }
.bump.is-on { border-style: solid; border-color: var(--money); background: var(--money-tint); }
.bump-top { display: flex; gap: 12px; align-items: flex-start; }
.bump-top input { width: 24px; height: 24px; margin: 0; accent-color: var(--money-ink); flex: none; }
.bump-top .badge { margin-left: 4px; vertical-align: 1px; }
.bump-body { display: block; margin: 6px 0 0 36px; color: var(--ink-2); }
.order-summary .h3 { margin-bottom: 4px; }
.summary-later { color: var(--muted); font-size: 14px; }
.consent { font-size: 15px; padding: 2px 0; }
.consent span { padding-top: 1px; }
.stripe-note { display: flex; justify-content: center; align-items: center; gap: 8px; }
.guarantee { border-color: var(--money-tint-2); background: var(--money-tint); }
.side-media { display: none; }
@media (min-width: 900px) { .side-media { display: block; } }
.funnel .num { font-variant-numeric: tabular-nums; }

/* Upsell and downsell */
.confirm-strip { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); background: var(--money-tint); }
.confirm-strip > div { display: grid; gap: 2px; }
.offer { padding: 24px 20px; }
@media (min-width: 760px) { .offer { padding: 36px; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-col { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--mist); }
.compare-win { border: 2px solid var(--action); background: var(--action-tint); }
.compare-price { font: 300 36px/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.compare-win .compare-price { color: var(--action); }

/* Welcome */
.wl-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.wl-stat-value { font-size: 20px; font-weight: 600; line-height: 1.25; }
.wl-stat-value.is-ok { color: var(--money-ink); }
.wizard { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; scroll-margin-top: 16px; }
.wizard li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.wizard li[aria-current="step"] { color: var(--ink); border-top-color: var(--action); }
.wizard li.done { color: var(--money-ink); border-top-color: var(--money); }
.wizard-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; background: var(--mist); border: 1px solid var(--line); }
.wizard li[aria-current="step"] .wizard-n { background: var(--action); color: var(--on-fill); border-color: var(--action); }
.wizard li.done .wizard-n { background: var(--money); color: var(--on-fill); border-color: var(--money); }
.wl-step h2:focus { outline: none; }
.goal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.member-list { list-style: none; margin: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.member-who { flex-wrap: nowrap; min-width: 0; }
.member-text { display: grid; min-width: 0; }
.member-text b, .member-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-grid { gap: 16px; }
.role-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role-pick legend { margin-bottom: 6px; padding: 0; }
.stack > .role-pick { margin-top: 18px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--money); background: var(--money-tint); }
.role-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--money-ink); flex: none; }
.role-opt small { display: block; color: var(--muted); font-size: 13.5px; }
@media (min-width: 560px) { .role-pick { grid-template-columns: 1fr 1fr; } .role-pick legend { grid-column: 1 / -1; } }
.wl-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ===== 22. Sign-in ===== */
.login-main { padding: 32px 0 56px; }
@media (min-width: 760px) { .login-main { padding: 72px 0 96px; } }
.login-wrap { max-width: 480px; }
.login-title { font: 300 var(--fs-h1)/var(--lh-h1) var(--serif); letter-spacing: -.02em; }
.login-title:focus { outline: none; }
.login-email { word-break: break-all; }

/* ===== 23. Member app views ===== */
.balance-hero { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .balance-hero { grid-template-columns: repeat(3, 1fr); } }
.balance-card .balance-hero { gap: 18px 16px; }
.balance-card .stat-primary { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.balance-card .stat-primary .stat-value { font-size: 40px; }
.balance-card .stat-value { font-size: 22px; }
.stat-note { font-size: 12.5px; color: var(--muted); }
.stat-neg .stat-value { color: var(--err); }
.stat-neg .stat-note { color: var(--err); font-weight: 600; }
@media (min-width: 760px) {
  .balance-card .stat-primary { grid-column: auto; padding-bottom: 0; border-bottom: 0; padding-right: 16px; border-right: 1px solid var(--line); }
  .balance-card .stat-primary .stat-value { font-size: 34px; }
  .balance-card .stat-value { font-size: 24px; }
  .balance-card .balance-hero { align-items: start; }
}
.balance-explain { margin-top: 16px; padding: 12px 14px; background: var(--err-tint); border-radius: var(--r-tile); color: var(--ink-2); }
.goal-head { flex-wrap: nowrap; align-items: baseline; }
.estimate-value { font: 600 30px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.estimate-value .muted { font-size: 16px; font-weight: 500; margin-left: 2px; }
.quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.quick-link:hover { border-color: var(--ink-2); color: var(--ink); }
.quick-title { font-weight: 600; font-size: 15px; }
.quick-title::after { content: " \203A"; color: var(--action); }
.quick-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.merchant { display: flex; flex-direction: column; gap: 10px; }
.merchant-logo { width: 48px; height: 48px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.deals-howto { margin-bottom: 16px; background: var(--money-tint); border-color: transparent; }
.deal-search { margin-bottom: 8px; max-width: 480px; }
.deal-group { margin-top: 24px; }
.group-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.group-title .muted { margin-left: 4px; }
.deal-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deal-card { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border-radius: var(--r-card); min-width: 0; }
.deal-card .merchant-logo { flex: none; }
.deal-info { flex: 1; min-width: 0; }
.deal-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.deal-rate { margin: 2px 0 0; font-size: 14px; color: var(--money-ink); font-weight: 700; }
.deal-card .badge { flex: none; }
.deal-shop { flex: none; min-width: 72px; }
/* Family seats meter in the app (JS builds .seats > .seat / .seat-on) */
.seats { display: flex; gap: 6px; }
.seat { flex: 1; height: 8px; border-radius: var(--r-tag); background: var(--line); }
.seat-on { background: var(--action); }
.fam-members { list-style: none; margin: 8px 0 0; padding: 0; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; padding-bottom: 0; }
.member-info { flex: 1; min-width: 0; }
.member-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.member-email { margin: 0; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.member-badges { margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.app-body .kv { margin: 0; display: grid; gap: 0; }
.app-body .kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-body .kv > div:last-child { border-bottom: 0; }
.app-body .kv dt { color: var(--muted); font-size: 14.5px; flex: none; }
.app-body .kv dd { margin: 0; text-align: right; font-weight: 600; font-size: 15px; min-width: 0; }
.app-body fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.app-body fieldset.plain[disabled] { opacity: .55; }
.payout-block { margin: 0 0 16px; color: var(--ink-2); }
.method-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.method-body { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.method input:checked + .method-body { border-color: var(--action); background: var(--action-tint); }
.method input:focus-visible + .method-body { outline: 3px solid var(--ink); outline-offset: 2px; }
.method-title { font-weight: 600; }
.method-sub { font-size: 13px; color: var(--muted); }
.payout-preview { padding: 12px 14px; background: var(--mist); border-radius: var(--r-tile); font-size: 15px; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger-row:first-child { padding-top: 0; }
.ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-main { min-width: 0; }
.ledger-memo { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ledger-meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ledger-meta .badge { font-size: 11px; padding: 1px 8px; }
.ledger-amt { text-align: right; flex: none; display: flex; flex-direction: column; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.amt-pos { color: var(--money-ink); }
.amt-neg { color: var(--ink); }
.amt-move { color: var(--ink-2); }
/* Ledger account badges (JS: acct-pending / acct-available / acct-paid_out) */
.app-body .link-list { list-style: none; margin: 0; padding: 0; }
.app-body .link-list li { padding: 6px 0; }
.app-body .link-list a { display: inline-block; padding: 6px 0; }
.nofamily { max-width: 600px; margin: 24px auto 0; }
.app-body dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.app-body dialog .dialog-body { position: relative; }
.dialog-title { font: 400 24px/30px var(--serif); padding-right: 36px; color: var(--ink); }
.dialog-title:focus { outline: none; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.dialog-close:hover { background: var(--mist); color: var(--ink); }
.radio-list { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.radio-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-card); cursor: pointer; font-size: 15px; }
.radio-item input { width: 20px; height: 20px; margin: 0; accent-color: var(--action); flex: none; }
.radio-item:has(input:checked) { border-color: var(--action); background: var(--action-tint); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dialog-actions .btn { flex: 1 1 140px; }
.dialog-actions-equal { display: grid; grid-template-columns: 1fr; }
@media (min-width: 480px) { .dialog-actions-equal { grid-template-columns: 1fr 1fr; } }
.save-message { background: var(--mist); border-color: transparent; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--money-tint); position: relative; margin-bottom: 14px; }
.done-mark::after { content: ""; position: absolute; left: 19px; top: 12px; width: 10px; height: 19px; border: solid var(--money-ink); border-width: 0 2.8px 2.8px 0; transform: rotate(45deg); }
.app-body .stack > .app-notice:last-child, .app-body .two-col > .app-notice:last-child { margin-bottom: 0; }

/* ===== 24. Partners, admin ===== */
.partner-perks { display: grid; gap: 4px 32px; }
@media (min-width: 760px) { .partner-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partner-math { align-items: center; }
.link-preview { color: var(--ink); word-break: break-all; }
#apply-success { padding: 12px 0; }
#apply-success:focus { outline: none; }
.dash-head { align-items: flex-end; }
.linkbox { display: flex; flex-direction: column; gap: 10px; }
.linkbox .input { font-family: var(--mono); font-size: 15px; background: var(--mist); }
@media (min-width: 560px) { .linkbox { flex-direction: row; } .linkbox .btn { flex: none; } }
.dash-cols { align-items: start; }
@media (min-width: 900px) { .dash-cols { grid-template-columns: 1.3fr 1fr; gap: 32px; } }
.admin-head { align-items: flex-end; }
.tabbar { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font: 700 15px var(--sans); color: var(--muted); cursor: pointer; }
.tabbar button:hover { color: var(--ink); }
.tabbar button[aria-selected="true"] { color: var(--action); border-bottom-color: var(--action); }
.tabbar .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-tag); background: var(--action); color: var(--on-fill); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
@media (max-width: 759px) { .tabbar { gap: 0; } .tabbar button { padding: 12px 9px; font-size: 14.5px; } }
.admin-panel { padding-top: 20px; }
.admin .kpi-grid .stat-value { font-size: 24px; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .admin-span { grid-column: span 3; } }
@media (min-width: 760px) and (max-width: 1099px) { .admin-span { grid-column: span 2; } }
.admin .stat-value.mb-8 { margin-bottom: 8px; }
.ochip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); font-size: 14px; }
.ochip-total { padding-left: 12px; color: var(--muted); }
.searchbar { display: flex; gap: 10px; }
.searchbar .input { flex: 1; min-width: 0; }
.searchbar .btn { flex: none; }
#merchant-card { scroll-margin-top: 80px; }
.msg-cell { min-width: 220px; max-width: 460px; }
input.sr-only { padding: 0; border: 0; margin: 0; }

/* ===== 25. Content and legal pages ===== */
.hero-sub { padding: 32px 0 48px; }
@media (min-width: 900px) { .hero-sub { padding: 64px 0 64px; } }
.hero-sub h1 { margin-top: 4px; }
.prose { max-width: calc(68ch + 2 * var(--gutter)); padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 760px) { .prose { padding-top: 48px; padding-bottom: 64px; } }
.prose h2 { font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); margin-top: 48px; scroll-margin-top: 84px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--muted); }
.prose .checks { padding-left: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--action); }
.legal-meta { color: var(--muted); font-size: 14px; }
.summary-card { margin: 24px 0; background: var(--mist); border-color: transparent; }
.summary-card .checks li { margin: 8px 0; }
.prose .summary-card .h-card { margin-top: 0; font-size: 17px; }
.toc { background: var(--mist); border-radius: var(--r-card); padding: 16px 20px; margin: 24px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; font-size: 15px; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { display: inline-block; padding: 6px 0; }
.steps-plain li { padding-left: 4px; }
.jump { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 24px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } /* plain text links, no chips */
.jump a:hover { text-decoration-thickness: 2px; }
.section[id], .faq-groups h2[id] { scroll-margin-top: 84px; }
.timeline { display: grid; gap: 16px; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faq-groups { padding-bottom: 56px; }
.faq-groups > .h-sub:first-child { margin-top: 8px; }
.faq-groups details.faq { margin-top: 12px; }
.table-dense th.num, .table-mini th.num, .rtable th.num { font-family: var(--sans); }
td.num .badge { font-family: var(--sans); }

/* Trust pages */
.facts { margin: 0; display: grid; }
.facts > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 170px 1fr; gap: 16px; } }
.principles .card h3, .commit-list .card h3 { margin-bottom: 6px; }
.commit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: commit; }
@media (min-width: 760px) { .commit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commit-list > li { counter-increment: commit; position: relative; padding-left: 66px; }
.commit-list > li::before { content: counter(commit); position: absolute; left: 24px; top: 26px; font: 300 28px/1 var(--serif); color: var(--money-ink); font-variant-numeric: lining-nums; background: none; border-radius: 0; display: block; width: auto; height: auto; }
.contact-section { padding-bottom: 72px; }
.contact-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; } }
.contact-aside { display: grid; gap: 16px; }
.contact-message { min-height: 160px; }
.contact-success { padding: 8px 0; }
.contact-success:focus { outline: none; }
.link-stack { list-style: none; margin: 0; padding: 0; }
.link-stack li + li { border-top: 1px solid var(--line); }
.link-stack a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 15px; }
.ext-welcome { margin-bottom: 28px; max-width: 640px; }
.ext-welcome:focus { outline: none; }
.install-steps { margin: 8px 0 20px; padding-left: 22px; color: var(--ink-2); }
.install-steps li { margin: 10px 0; padding-left: 4px; }
.install-steps li::marker { font-weight: 600; color: var(--ink); }

/* === phase2: content === */
/* Content and legal pages (how it works, FAQ, about, contact, help, partners, brands, extension, security,
   accessibility, privacy choices and the legal pages). Tokens only; every mock screen carries .tag-ex. */

/* Sub-page hero: white, Bitter h1 + lead, optional visual column (phase 2 restyles each page) */
.hero-x { padding: 32px 0 48px; }
@media (min-width: 980px) { .hero-x { padding: 64px 0 64px; } }
.hero-x > .container { position: relative; z-index: 1; }
.hero-x h1 { margin: 6px 0 0; }
.hero-x .lead { margin: 18px 0 0; max-width: 58ch; }
.hero-x .jump { margin-top: 28px; }
.hero-x .cta-row { margin-top: 28px; }
.sub-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .sub-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }  }
.sub-visual { min-width: 0; }

/* Hero fact chips (small proof under the lead) */
.facts-row { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts-row li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.facts-row .ic { width: 16px; height: 16px; color: var(--money-ink); }

/* Step numeral before a kicker line (how it works): Bitter, no circle */
.eb-n { display: inline; margin-right: 6px; font: 300 1em/1 var(--serif); color: var(--money-ink); }
/* Two-column feature split (text + visual), visual first on desktop with .split-flip */
.feat-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 980px) { .feat-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .split-flip > :first-child { order: 2; } }
.feat-split .h-section { font-size: clamp(30px, 3.8vw, 44px); }
.feat-split .lead { margin-top: 16px; }

/* Single phone mockup for sub-page heroes (shares the .phone parts with the home hero) */
.phones-solo { height: 520px; max-width: 460px; }
@media (max-width: 599px) { .phones-solo { height: 548px; } .phones-solo .phone { width: 268px; } .phones-solo .phone-screen { height: 452px; } .phones-solo .fc-a { bottom: 0; } }
@media (min-width: 600px) { .phones-solo { height: 640px; } }
.phones-solo .phone-front { left: 50%; right: auto; transform: translateX(-50%); }
.hero-x .phones-solo .phone-front { animation: riseS .8s var(--ease) both .1s; }
.hero-x .phones-solo .float-chip { animation: lift .7s var(--ease) both .4s; }
@keyframes riseS { from { transform: translateX(-50%) translateY(16px); } to { transform: translateX(-50%); } }
.fc-a { left: 0; top: 64%; }
.float-chip .tag-ex { margin-left: 2px; }
.fc-b { right: 0; top: 83%; }
@media (max-width: 599px) { .fc-a { top: auto; bottom: 0; } .fc-b { display: none; } }
@media (min-width: 600px) { .fc-a { left: -8px; } .fc-b { right: -8px; } }
.ph-search { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: var(--r-input); background: var(--mist); font-size: 12px; font-weight: 500; color: var(--muted); }
.ph-search svg { width: 15px; height: 15px; }
.ph-deals { list-style: none; margin: 10px 0 0; padding: 0; }
.ph-deals li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ph-deals li:last-child { border-bottom: 0; }
.ph-deals .t { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.25; }
.ph-deals .t small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ph-logo { width: 32px; height: 32px; flex: none; border-radius: var(--r-tile); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.ph-shop { flex: none; font-size: 11px; font-weight: 600; padding: 6px 11px; border-radius: var(--pill); background: var(--mist); color: var(--ink); }
.ph-shop.on { background: var(--action); color: var(--on-fill); }
.ph-note { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-card); background: var(--money-tint); font-size: 11px; font-weight: 600; color: var(--money-deep); line-height: 1.25; }
.ph-note small { display: block; font-size: 10.5px; font-weight: 600; color: var(--money-ink); }
@media (max-width: 400px) { .ph-deals li:nth-child(4) { display: none; } }

/* Status track: pending > available > paid out, reversed as a branch */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
@media (min-width: 900px) { .track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.track-step { position: relative; background: var(--surface); border-radius: var(--r-card); padding: 24px 22px 24px 62px; }
@media (min-width: 900px) { .track-step { padding: 60px 24px 26px; } }
.tk-dot { position: absolute; left: 22px; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 6px var(--wait); }
.tk-available .tk-dot { box-shadow: inset 0 0 0 6px var(--money); }
.tk-paid .tk-dot { box-shadow: inset 0 0 0 6px var(--action); }
@media (min-width: 900px) {
  .tk-dot { left: 24px; top: 24px; }
  .track::before { content: ""; position: absolute; left: 46px; right: 46px; top: 34px; height: 2px; background: var(--line); z-index: 1; pointer-events: none; }
  .track-step:nth-child(1) { z-index: 0; }
  .tk-dot { z-index: 2; }
}
@media (max-width: 899px) {
  .track::before { content: ""; position: absolute; left: 32px; top: 40px; bottom: 40px; width: 2px; background: var(--line); z-index: 0; }
  .track-step { z-index: 1; }
}
.tk-when { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.track-step h3 { font-size: 19px; margin: 14px 0 6px; }
.track-step p { font-size: 15px; color: var(--muted); margin: 0; }
.track-branch { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--err-line); }
.track-branch-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 6px; }
.track-branch p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 599px) { .track-branch .icon-tile { display: none; } }

/* Payout method cards with an example conversion */
.pay-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .pay-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pay-card { background: var(--surface); border-radius: var(--r-card); padding: 26px 22px; display: flex; flex-direction: column; }
@media (min-width: 760px) { .pay-card { padding: 30px; } }
.pay-top { display: flex; align-items: center; gap: 14px; }
.pay-top h3 { margin: 0; font-size: 21px; }
.pay-card > p { color: var(--muted); margin: 14px 0 0; }
.pay-math { position: relative; display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 34px 16px 16px; border-radius: var(--r-card); background: var(--mist); }
.pay-card > .pay-math { margin-top: 22px; }
.pay-math .tag-ex { position: absolute; left: 12px; top: 10px; }
.pm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pm small { font-size: 12px; font-weight: 700; color: var(--muted); }
.pm b { font-size: 26px; font-weight: 600; line-height: 1.15; }
.pm-up b { color: var(--money-ink); }
.pm-arrow { width: 22px; height: 22px; color: var(--action); }

/* Commission path, compact (how it works, about) */
.money-mini { list-style: none; margin: 0; padding: 8px 20px; border-radius: var(--r-card); background: var(--surface); }
.money-mini li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.money-mini li:last-child { border-bottom: 0; }
.money-mini .t { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.money-mini .t small { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.money-mini b { font-size: 30px; font-weight: 600; }
.money-mini .hl b { color: var(--money-ink); }
.side-stack .gbox h3 { font-size: 17px; margin: 2px 0 4px; }

/* FAQ page: topic rail + grouped questions */
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; } .faq-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-aside { display: grid; gap: 16px; min-width: 0; }
.faq-topics { background: var(--surface); border-radius: var(--r-card); padding: 14px; }
.faq-topics-h { margin: 4px 8px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.faq-topics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 560px) and (max-width: 999px) { .faq-topics ul { grid-template-columns: 1fr 1fr; } }
.faq-topics a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-tile); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.faq-topics a:hover { background: var(--mist); color: var(--ink); }
.faq-topics .icon-tile { width: 36px; height: 36px; }
.faq-topics .icon-tile svg { width: 19px; height: 19px; }
.faq-help { display: none; background: var(--action); color: var(--on-fill); border-radius: var(--r-card); padding: 22px; }
@media (min-width: 1000px) { .faq-help { display: block; } }
.faq-help h2 { font-size: 22px; line-height: 28px; margin: 0 0 8px; color: var(--on-action); }
.faq-help p { font-size: 14.5px; margin: 0 0 16px; }
.faq-help .btn-secondary { background: var(--surface); color: var(--action); border-color: var(--surface); }
.faq-help .btn-secondary:hover { background: var(--action-tint); }
.faq-help :focus-visible { outline-color: var(--on-fill); }
.faq-main { min-width: 0; display: grid; gap: 44px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.faq-group-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-n { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 420px) { .faq-n { display: none; } }
.faq-group details.faq summary:hover { background: var(--action-tint); }
.faq-group details.faq[open] summary { color: var(--action); }
/* A final CTA that follows a tinted band needs its own top space */
.final-gap { padding-top: var(--section-y); }
@media (min-width: 980px) { .final-gap { padding-top: var(--section-y); } }

/* Icon cards (about, brands, security, partners): flat card; the icon renders inline, no tile */
.icards { display: grid; gap: 14px; }
@media (min-width: 700px) { .icards-3, .icards-4, .icards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .icards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .icards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.icard { background: var(--surface); border-radius: var(--r-card); padding: 24px; min-width: 0; }
.section:not(.section-alt):not(.section-tint) .icard { background: var(--mist); box-shadow: none; }
.icard .icon-tile { width: 52px; height: 52px; }
.icard .icon-tile svg { width: 26px; height: 26px; }
.icard h3 { font-size: 19px; margin: 20px 0 6px; }
.icard p { font-size: 15px; color: var(--muted); margin: 0; }
.icard p a { color: var(--ink-2); }
@media (max-width: 699px) {
  .icard { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; }
  .icard .icon-tile { grid-row: span 2; }
  .icard h3 { margin: 2px 0 4px; font-size: 18px; }
  .icard > :nth-child(n+3) { grid-column: 2; }
}
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.c-head h3 { margin: 0; font-size: 19px; }
.c-head .tag-ex, .c-head .badge, .c-head .soon { margin-left: auto; }

/* Photo with a floating fact card (about hero) */
.money-float { position: absolute; left: 16px; right: 16px; bottom: 0; padding: 4px 18px; }
@media (min-width: 600px) { .money-float { left: auto; right: -12px; width: 330px; } }
.money-float b { font-size: 26px; }

/* Income list (about) */
.income { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .income { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.income > li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); padding: 24px 22px; }
.income > li.income-main { background: var(--action); color: var(--on-fill); }
.income > li.income-main .icon-tile, .income > li.income-main h3 { color: var(--on-fill); }
.income > li.income-main p, .income > li.income-main .income-k { color: var(--on-fill); }
.income-k { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.income h3 { font-size: 19px; margin: 4px 0 6px; }
.income p { font-size: 15px; color: var(--muted); margin: 0; }
.income p a { color: var(--ink-2); }

/* Generic floating UI card used as an Example screen in sub-page heroes */
.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; max-width: 440px; width: 100%; margin: 0 auto; }
.ui-card-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ui-card-hd b { font-size: 17px; }
.hero-x .ui-card { animation: lift .7s var(--ease) both .1s; }
/* Help: example claim */
.claim-store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--mist); }
.claim-store .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.claim-store .t small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.claim-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.claim-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.claim-steps li:last-child { padding-bottom: 0; }
.claim-steps li small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.claim-steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.cs-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); }
.claim-steps .done .cs-dot { border: 0; background: var(--money); display: grid; place-items: center; }
.claim-steps .done .cs-dot::after { content: ""; width: 14px; height: 14px; background: var(--on-fill); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 12.75l4.5 4.5L19.25 7.25' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.75 12.75l4.5 4.5L19.25 7.25' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.claim-steps .now .cs-dot { border: 0; background: var(--surface); box-shadow: inset 0 0 0 6px var(--wait); }
.step-card > .icon-tile { width: 52px; height: 52px; }
.step-card > .icon-tile svg { width: 26px; height: 26px; }
.section-alt .step-card { background: var(--surface); }
.step-card p a { color: var(--ink-2); }

/* Contact and help forms */
.contact-section .contact-grid { align-items: start; }
.form-card-head { margin-bottom: 4px; }
.form-card-head .h-card, .form-card-head .h-sub { margin: 0; }
.contact-aside .card { border-color: transparent; }
.contact-aside .c-head { margin-bottom: 12px; }
.contact-aside .c-head .icon-tile { width: 40px; height: 40px; }
.contact-aside .c-head .icon-tile svg { width: 20px; height: 20px; }
.contact-aside .c-head .h-card { margin: 0; }
.link-stack-arrow a { justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.link-stack-arrow a::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--action); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.link-stack-arrow a:hover { color: var(--action); }
.checks-x li::before { background: var(--wait-tint); }
.checks-x li::after { background-color: var(--wait-ink); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.75v5M12 16.25h.01' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.75v5M12 16.25h.01' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.contact-success .done-mark { margin-top: 4px; }

/* Partners */
.dash-mock .dm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.dm-stats span { background: var(--mist); border-radius: var(--r-tile); padding: 10px; min-width: 0; }
.dm-stats small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.dm-stats b { display: block; font-size: clamp(16px, 4.4vw, 19px); font-weight: 600; margin-top: 2px; }
.dm-stats .ok { background: var(--money-tint); }
.dm-stats .ok b { color: var(--money-ink); }
.dm-link { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-tile); font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.dm-link svg { width: 16px; height: 16px; color: var(--action); }
.term-cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .term-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.term-card { background: var(--surface); border-radius: var(--r-card); padding: 28px 24px; position: relative; overflow: hidden; }
.term-card .price-big { font-size: 60px; color: var(--action); }
.term-teal .price-big { color: var(--money-ink); }
.term-ink .price-big { color: var(--ink); }
.term-card .unit { font-size: 20px; color: var(--muted); }
.term-card h3 { font-size: 20px; margin: 8px 0 6px; }
.term-card p:last-child { font-size: 15px; color: var(--muted); }
.perks-card { background: var(--surface); border-radius: var(--r-card); padding: 14px 24px; }
.math-card .summary-line { font-size: 15px; }
.math-card .c-head h3 { font-size: 17px; }
@media (min-width: 980px) { .step-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.step-cards-4 .step-card h3 { font-size: 20px; }
@media (min-width: 980px) { .split-top { align-items: start; } }
.rules-card { background: var(--surface); border-radius: var(--r-card); padding: 14px 24px; }
.rules-card li { font-size: 15.5px; }
#apply-success .done-mark { margin-bottom: 16px; }

/* Brands: example click and the money trail */
.url-line { margin: 0; padding: 14px 16px; border-radius: var(--r-card); background: var(--ink); color: var(--footer-text); font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.url-line mark { background: color-mix(in srgb, var(--code-mark) 20%, transparent); color: var(--code-mark); border-radius: var(--r-tag); padding: 1px 3px; }
.url-facts { margin: 14px 0 0; display: grid; }
.url-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.url-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.url-facts dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); flex: none; }
.url-facts dt svg { width: 16px; height: 16px; color: var(--action); }
.url-facts dd { margin: 0; font-weight: 700; text-align: right; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: trail; }
.tr-node { counter-increment: trail; position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px 20px; background: var(--mist); border-radius: var(--r-card); }
.tr-node .icon-tile { grid-row: span 2; }

.tr-node h3 { font-size: 17px; margin: 2px 0 2px; }
.tr-node h3::before { content: counter(trail) ". "; color: var(--muted); }
.tr-node p { grid-column: 2; font-size: 14.5px; color: var(--muted); margin: 0; }
.tr-node.tr-end { background: var(--money-deep); color: var(--on-fill); }
.tr-node.tr-end h3 { color: var(--on-fill); }
.tr-node.tr-end h3::before, .tr-node.tr-end p { color: var(--on-action-2); }
.tr-node:not(:last-child)::after { content: ""; position: absolute; left: 43px; bottom: -11px; width: 2px; height: 12px; background: var(--line-strong); }
@media (min-width: 980px) {
  .trail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .tr-node { display: flex; flex-direction: column; padding: 24px 24px 26px; }
  .tr-node h3 { margin: 18px 0 6px; font-size: 18px; }
  .tr-node:not(:last-child)::after { left: auto; right: -18px; top: 47px; bottom: auto; width: 18px; height: 2px; }
  .tr-node:nth-child(3n)::after { display: none; }
}

/* Extension: example store page with the activation card */
.ext-mock { padding: 0; overflow: hidden; }
.ext-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.ext-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ext-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 4px 12px; border-radius: var(--r-input); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-card { padding: 16px 18px 18px; }
.ext-card .hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ext-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ext-brand img { width: 22px; height: 22px; }
.ext-card p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.ext-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ext-actions .fake-btn { margin: 0; flex: 1; height: 42px; background: var(--action); font-size: 14px; }
.ext-later { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.perm-table td:first-child { width: 32%; }
.avail-card .soon { background: var(--wait-tint); color: var(--wait-ink); }

/* Security: example sign-in email */
.mail-from { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; line-height: 1.25; }
.mail-from img { width: 28px; height: 28px; }
.mail-from small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mail-mock > p { font-size: 15px; color: var(--ink-2); margin: 0; }
.mail-mock .fake-btn { background: var(--action); }
.mail-facts { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mail-facts li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.mail-facts svg { width: 18px; height: 18px; color: var(--money-ink); }

/* Privacy choices */
.pc-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .pc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; } }
.pc-requests { border-color: transparent; }
.pc-status { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0 0 12px; }
.pc-status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pc-status.is-on::before { background: var(--wait); }
.pc-status.is-off::before { background: var(--money); }
.pc-card .cta-row { margin-top: 16px; }

/* ===== Legal long-form: hero, sticky table of contents, numbered sections, 65ch measure ===== */
.legal-hero { padding-bottom: 40px; }
@media (min-width: 980px) { .legal-hero { padding: 64px 0 56px; } }
.legal-hero h1 { max-width: 22ch; }
.legal-hero .legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.legal-hero .legal-meta .ic { color: var(--action); }
.legal-count { padding-left: 12px; border-left: 1px solid var(--line-strong); }
.legal-layout { display: grid; gap: 28px; padding-top: 8px; padding-bottom: var(--section-y); }
@media (min-width: 1100px) {
  .legal-layout { grid-template-columns: 272px minmax(0, 1fr); gap: 72px; padding-top: 48px; padding-bottom: var(--section-y); align-items: start; }
  .legal-aside { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
}
.legal-aside { min-width: 0; }
.legal-aside .toc { margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-card); }
.legal-aside .toc > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: var(--r-card); }
.legal-aside .toc > summary::-webkit-details-marker { display: none; }
.legal-aside .toc > summary::after { content: ""; width: 12px; height: 8px; margin-left: auto; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='4 6.67 16 10.67'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='4 6.67 16 10.67'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat; transition: transform .2s var(--ease); }
.legal-aside .toc[open] > summary::after { transform: rotate(180deg); }
.legal-aside .toc nav { padding: 0 8px 10px; }
.legal-aside .toc ol { list-style: none; margin: 0; padding: 0; columns: 1; font-size: 14.5px; }
.legal-aside .toc li { margin: 0; }
.legal-aside .toc a { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px; border-radius: var(--r-tile); color: var(--ink-2); text-decoration: none; font-weight: 600; line-height: 1.35; }
.legal-aside .toc a:hover { background: var(--mist); color: var(--ink); }
.legal-aside .toc a[aria-current] { background: var(--action-tint); color: var(--action); }
.toc-n { flex: none; width: 24px; height: 24px; margin-top: -2px; border-radius: var(--r-input); background: var(--mist); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-aside .toc a[aria-current] .toc-n { background: var(--surface); color: var(--action); }
@media (min-width: 1100px) {
  .legal-aside .toc { background: transparent; box-shadow: none; border-radius: 0; }
  .legal-aside .toc > summary { min-height: 0; padding: 0 10px 12px; font-size: 12px; color: var(--muted); cursor: default; pointer-events: none; }
  .legal-aside .toc > summary::after { display: none; }
  .legal-aside .toc nav { padding: 0; border-left: 2px solid var(--line); padding-left: 8px; }
}
.legal-layout .legal-prose { max-width: 34rem; padding: 0; margin: 0; min-width: 0; } /* about 65 characters a line: this face's ch (the 0 glyph) runs wide */
.legal-prose .table-wrap { width: 100%; }
.legal-prose p, .legal-prose li { font-size: 16.5px; line-height: 1.7; }
.legal-prose b { color: var(--ink); }
.legal-prose ul li::marker { color: var(--action); }
.legal-prose h2:not(.h-card) { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; margin: 52px 0 16px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-prose h2 .sec-n { flex: none; min-width: 32px; font: 300 26px/1.1 var(--serif); color: var(--money-ink); font-variant-numeric: lining-nums; }
.legal-prose .summary-card + h2 { border-top: 0; padding-top: 0; margin-top: 44px; }
.legal-prose .summary-card { position: relative; overflow: hidden; margin: 0; padding: 26px 22px 22px; background: var(--surface); border-color: transparent; border-radius: var(--r-card); }
@media (min-width: 760px) { .legal-prose .summary-card { padding: 32px 32px 26px; } }
.legal-prose .summary-card .h-card { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 18px; }
.legal-prose .summary-card .checks li { font-size: 16px; }
.legal-prose .summary-card > p:last-child { margin-top: 8px; }
.legal-prose .table-wrap { margin: 8px 0 0; }
.legal-prose ol.steps-plain { counter-reset: lstep; list-style: none; padding: 0; }
.legal-prose ol.steps-plain > li { counter-increment: lstep; position: relative; padding-left: 46px; margin: 14px 0; }
.legal-prose ol.steps-plain > li::before { content: counter(lstep); position: absolute; left: 0; top: -2px; font: 300 28px/1 var(--serif); color: var(--money-ink); font-variant-numeric: lining-nums; background: none; border-radius: 0; display: block; width: auto; height: auto; }
.legal-prose > ol:not(.steps-plain) { padding-left: 24px; }
.legal-prose > ol:not(.steps-plain) li::marker { font-weight: 600; color: var(--action); }
/* === end phase2: content === */

/* === phase2: funnel === */
/* Shared funnel bits: loading state with a spinner (JS swaps in .notice on error) */
.funnel-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 0; margin: 0; }
.funnel-loading::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--action-tint-2); border-top-color: var(--action); animation: spin .8s linear infinite; }
.funnel-loading.notice { display: block; padding: 14px 16px; text-align: left; margin-top: 24px; }
.funnel-loading.notice::before { display: none; }

/* Quiz: app onboarding feel, one question per screen on white */
.quiz-progress { height: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
#quiz-step .choices { gap: 12px; }
#quiz-step .choice { min-height: 68px; padding: 16px 16px 16px 18px; border-radius: var(--r-card); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .18s var(--ease), background .15s, transform .18s var(--ease); }
#quiz-step .choice:hover { box-shadow: inset 0 0 0 1px var(--ink-2); transform: translateY(-1px); }
#quiz-step .choice[aria-pressed="true"] { background: var(--action-tint); box-shadow: inset 0 0 0 2px var(--action); }
.choice-label { flex: 1; min-width: 0; }
.quiz-assure { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-weight: 600; }
.quiz-assure svg { width: 15px; height: 15px; color: var(--money-ink); }
.gate-card { padding: 26px 22px; }
@media (min-width: 760px) { .gate-card { padding: 40px; } }

.bd-main { min-width: 0; }
.result-note { position: relative; padding-left: 46px; color: var(--ink-2); }
.result-note::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; background: var(--ink-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.25a8.75 8.75 0 1 0 0 17.5 8.75 8.75 0 1 0 0-17.5zM12 11v5.25M12 7.75h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.25a8.75 8.75 0 1 0 0 17.5 8.75 8.75 0 1 0 0-17.5zM12 11v5.25M12 7.75h.01' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.result-close .h3 { margin-bottom: 4px; }
.result-close .checks li { color: var(--ink-2); }
.result-cta-note { color: var(--ink-2); }

/* Checkout: calm, mist page with white cards; disclosure stays directly above the consent box */
body.funnel:has(#co-form) .funnel-main { background: var(--mist); }
.co-trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.co-trust li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.co-trust svg { color: var(--money-ink); }
.checkout-form .estimate-strip { display: flex; align-items: center; gap: 14px; }

.estimate-strip-text { display: grid; gap: 2px; }
.checkout-form .co-h { font-size: 18px; margin-bottom: 12px; }
.checkout-form .bump { border: 1px solid var(--line-strong); background: var(--surface); }
.checkout-form .bump:hover { border-color: var(--ink-2); }
.checkout-form .bump.is-on { border-color: var(--money); background: var(--money-tint); box-shadow: inset 0 0 0 1px var(--money); } /* selected = teal (yours); red is for errors only */
.checkout-form .order-summary { padding: 18px 18px 8px; border-radius: var(--r-card); background: var(--mist); }
.order-summary .summary-line { border-bottom-color: var(--line); }
.order-summary .summary-total { font-size: 19px; }
.checkout-form .consent { padding: 14px 16px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); transition: border-color .15s, background .15s; }
.checkout-form .consent:hover { border-color: var(--ink-2); }
.checkout-form .consent:has(input:checked) { border-color: var(--money); background: var(--money-tint); }
.checkout-form .consent:has(input[aria-invalid="true"]) { border-color: var(--err); background: var(--err-surface); }
.checkout-side .card { border-color: transparent; }
.checkout-side .guarantee { box-shadow: none; }
.co-gets { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.co-gets li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; line-height: 1.45; }

.checkout-side .side-media { border-radius: var(--r-card); }

/* Upsell + downsell: a quiet one-tap upgrade, equal-weight decline */
.offer-main, .welcome-main { background: var(--mist); }
.confirm-strip { align-items: center; }
.offer-badge svg { color: var(--action); }
.offer .lead { color: var(--ink-2); }
.offer .compare { gap: 12px; }
.offer .compare-col { padding: 18px; border-color: transparent; }
.offer .compare-win { background: var(--action-tint); border: 2px solid var(--action); }
@media (min-width: 760px) { .offer .compare-price { font-size: 40px; } .offer .compare-col { padding: 22px; } }
.offer-checks li { font-size: 15.5px; }
.offer .disclosure { margin-bottom: 0; }
.offer-decline { margin-top: 4px; padding: 10px 18px; font-size: 15px; }

/* Welcome: onboarding on mist, white step cards */
.welcome-main .wl-stat { border-color: transparent; padding: 16px; }

.welcome-main .wizard li { border-top-color: var(--line-strong); }
.welcome-main .wizard li[aria-current="step"] { border-top-color: var(--action); }
.welcome-main .wizard li.done { border-top-color: var(--money); }
.welcome-main .wizard-n { background: var(--surface); }
.wl-step { padding: 24px 20px; }
@media (min-width: 760px) { .wl-step { padding: 32px; } }
.wl-earn { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.wl-earn > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.wl-earn > li > div > b:first-child { display: block; margin-bottom: 2px; }
@media (min-width: 760px) { .wl-step .media img, .offer-main .media img { aspect-ratio: 16 / 9; } }

/* Sign in */
.login-tips li { margin: 10px 0; }

/* 404 */
.notfound-hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .notfound-hero { padding: 88px 0 80px; } }
.notfound-code { font: 300 clamp(96px, 18vw, 160px)/1 var(--serif); letter-spacing: -.03em; color: var(--money-ink); margin: 0 0 8px; }
.notfound-cta { justify-content: center; }
.notfound-links { padding: 56px 0 76px; }
@media (min-width: 980px) { .notfound-links { padding: 72px 0 112px; } }
.nf-link { flex-direction: row; align-items: flex-start; gap: 14px; min-height: 0; padding: 18px; border-radius: var(--r-card); }
.nf-link b { display: block; font-size: 16px; }
.nf-link .small { display: block; margin-top: 2px; }
/* === end phase2: funnel === */


/* Funnel header status: short label on small phones; check icon once the order is confirmed */
.secure-ok { color: var(--money-ink); }
/* Checkout trust line: plain text items, one short inline row on phones */
.co-short { display: none; }
@media (max-width: 599px) {
  .co-trust { flex-wrap: nowrap; gap: 0; margin-top: 12px; }
  .co-trust li { min-height: 0; padding: 0; background: none; box-shadow: none; font-size: 13px; white-space: nowrap; gap: 6px; }
  .co-trust li + li::before { content: ""; width: 4px; height: 4px; margin: 0 8px; border-radius: 50%; background: var(--line-strong); }
  .co-trust svg { display: none; }
  .co-long { display: none; }
  .co-short { display: inline; }
}
/* Offer + downsell: price comparison, the authorization text, then the button; details follow the decision */
.offer .offer-disclosure { font-size: 13.5px; line-height: 1.5; padding: 12px 14px; }
.offer .offer-key { font-size: 15px; line-height: 1.45; margin-top: 8px; }
.offer-terms summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.offer-terms summary::-webkit-details-marker { display: none; }
.offer-terms summary::after { content: ""; width: 10px; height: 6px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='4 6.67 16 10.67'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='4 6.67 16 10.67'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat; transition: transform .2s var(--ease); }
.offer-terms[open] summary::after { transform: rotate(180deg); }
.offer-details-h { font-size: 16px; margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.offer .offer-checks li { font-size: 15px; margin: 10px 0; }
@media (max-width: 599px) {
  .offer .lead { font-size: 17px; margin-bottom: 0; }
  .offer .compare-col { padding: 14px; }
  .confirm-strip { padding: 12px 14px; }
}

/* Member app, round 4 */
.amt-pend { color: var(--wait-ink); } /* pending money is amber, teal is only money that is yours */
.ledger-detail { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.trial-line { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 6px 10px 16px; min-height: 52px; border-radius: var(--r-card); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.app-body .stack > .trial-line { margin-top: 12px; }
.trial-line > .ic { color: var(--wait-ink); flex: none; }
.trial-text { flex: 1; min-width: 0; }
.trial-text b { color: var(--ink); }
.trial-manage { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-input); font-weight: 700; }
/* Family rows: names and emails stay on one line and ellipsize; Remove is a 44px icon button */
.member-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow-wrap: normal; }
.member-clip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name .muted { flex: none; }
.member-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.btn-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--pill); background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; }
.btn-icon:hover { color: var(--err); box-shadow: inset 0 0 0 1px var(--err); background: var(--err-tint); }
.btn-icon[disabled], .btn-icon[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
/* Deals: one full-width grid, category filter buttons, inline category icons */
.deal-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.deal-chip { display: inline-flex; align-items: center; gap: 8px; }
.chip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-tag); background: var(--mist); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.deal-chip[aria-pressed="true"] .chip-n { background: var(--surface); color: var(--action); }
.deal-grid.deal-grid-all { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.deal-grid-all .deal-name { overflow-wrap: break-word; }
@media (max-width: 559px) { .deal-grid.deal-grid-all { grid-template-columns: minmax(0, 1fr); } }
.deal-cat { margin: 1px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
/* Partner dashboard: the referral field ellipsizes; the full URL is what Copy puts on the clipboard */
.ref-card .linkbox .input { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; min-width: 0; }
/* Very narrow phones (320px reflow): tighter header so logo, CTA and menu fit */
@media (max-width: 360px) {
  .site-header .container { padding: 0 14px; }
  .logo-word { font-size: 21px; }
  .logo-mark { width: 26px; height: 26px; }
  .nav-menu-btn { margin-left: 10px; }
  .nav .btn-sm { padding: 0 12px; }
}

/* Funnel header on 320px phones: logo, test-mode label and status fit one row */
@media (max-width: 360px) { .funnel-header .container { gap: 8px; } .funnel-header .secure { gap: 6px; font-size: 13px; } .funnel-header .logo-word { font-size: 22px; } .funnel-header .logo-mark { width: 26px; height: 26px; } }

/* ===== Motion preference (keep last) ===== */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* === p2r: funnel === */
/* Funnel restyle (quiz, checkout, offer, downsell, welcome, sign in, 404): white Persuade pages like Rakuten's sign-up,
   flat panels, no icon tiles, no eyebrows, status as dot + text. Overrides the older funnel rules above, scoped to these pages. */
body.funnel .funnel-main { padding: 32px 0 64px; }
@media (min-width: 1024px) { body.funnel .funnel-main { padding: 64px 0 96px; } }
body.funnel:has(#co-form) .funnel-main, .offer-main, .welcome-main { background: var(--bg); }
.funnel-main .funnel-h1 { margin-bottom: 0; max-width: 20ch; }
.funnel-main .funnel-h1 + .lead { margin: 16px 0 0; }

/* Checkout: form on white, one mist summary card beside it */
.co-main .co-trust { margin-top: 24px; }
.co-main .co-trust svg { color: var(--ink-2); }
.co-main .checkout-grid { margin-top: 40px; gap: 48px; }
@media (min-width: 900px) { .co-main .checkout-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; } }
@media (min-width: 1024px) { .co-main .checkout-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; } }
.co-main .checkout-form { padding: 0; }
.co-main .co-h { font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.co-main .checkout-form .estimate-strip { display: block; margin: 0 0 40px; padding: 20px 24px; border-radius: var(--r-card); background: var(--money-tint); }
.co-main .estimate-strip-text { display: grid; gap: 4px; }
.co-main .estimate-strip-text .small { color: var(--money-deep); }
.co-main .estimate-strip-num { font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--money-ink); }
.co-main .checkout-form .bump { margin-top: 32px; border-radius: var(--r-card); }
.co-main .checkout-form .bump .bump-top input { accent-color: var(--action); }
.co-main .checkout-form .bump.is-on { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.co-main .checkout-form .order-summary { margin-top: 32px; padding: 24px 24px 12px; }
.co-main .order-summary .co-h { margin-bottom: 8px; }
.co-main .checkout-form .consent input { accent-color: var(--action); }
.co-main .checkout-form .consent:has(input:checked) { border-color: var(--action); background: var(--action-tint); }
#co-disclosure details.faq { background: none; border-radius: 0; }
#co-disclosure details.faq summary { justify-content: flex-start; gap: 8px; min-height: 44px; padding: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--on-wait-tint); text-decoration: underline; text-underline-offset: 4px; border-radius: var(--r-tag); }
#co-disclosure details.faq summary::after { width: 16px; height: 16px; background: currentColor; -webkit-mask-size: 16px; mask-size: 16px; }
#co-disclosure details.faq > div { padding: 0 0 4px; color: var(--on-wait-tint); }
.co-main #co-submit { margin-top: 24px; }
.co-main .stripe-note { align-items: flex-start; text-align: left; }
.co-main .stripe-note .ic { margin-top: 2px; color: var(--muted); }
.co-main .checkout-side > * + * { margin-top: 24px; }
.co-main .co-side { padding: 24px; }
@media (min-width: 760px) { .co-main .co-side { padding: 32px; } }
.co-main .co-side .co-h { font: 600 var(--fs-card)/var(--lh-card) var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.co-main .co-gets { display: block; margin: 0; }
.co-main .co-gets li { display: block; margin: 12px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.co-side-part { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--action-tint-2); }
.co-side-part .small:not(.muted) { color: var(--ink-2); }
.co-main .co-stores .co-h { margin-bottom: 0; }
.co-store-list { gap: 8px 16px; margin-top: 12px; }
.co-main .side-media .media img { aspect-ratio: 4 / 3; }

/* Quiz: one question per screen, plain option tiles, the estimate in one money panel */
.quiz-main .quiz-progress { height: 6px; background: var(--line); box-shadow: none; }
.quiz-main .quiz-panel { padding-top: 32px; }
.quiz-main .quiz-hint { color: var(--muted); }
#quiz-step .choice { min-height: 64px; padding: 16px; border-radius: var(--r-tile); border: 1px solid var(--line-strong); box-shadow: none; transition: border-color .15s, background-color .15s; }
#quiz-step .choice:hover { transform: none; border-color: var(--ink-2); box-shadow: none; }
#quiz-step .choice[aria-pressed="true"] { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
#quiz-step .choice-key, #quiz-step .choice[aria-pressed="true"] .choice-key { width: 20px; height: auto; background: none; border: 0; border-radius: 0; font: 600 15px/22px var(--sans); color: var(--muted); }
#quiz-step .choice[aria-pressed="true"] .choice-key { color: var(--action); }
.quiz-main .quiz-assure { margin-top: 24px; font-weight: 400; color: var(--muted); }
.quiz-main .quiz-assure svg { width: 16px; height: 16px; color: var(--muted); }
.quiz-main .gate-card { padding: 0; }
.quiz-main .gate-card .quiz-hint { margin: 0; }
.quiz-main .estimate-hero { padding: 32px 24px; }
@media (min-width: 760px) { .quiz-main .estimate-hero { padding: 40px; } }
.estimate-k { margin: 0 0 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--money-deep); }
.quiz-main .estimate-sub { color: var(--money-deep); }
.quiz-main .breakdown { border-top-color: var(--money-tint-2); padding-top: 24px; }
.quiz-main .breakdown .bd-row { display: block; }
.quiz-main .bd-note { color: var(--ink-2); font-weight: 400; }
.quiz-main .bd-bar { background: var(--surface); }
.quiz-main .result-cta-top { margin-top: 24px; }
.quiz-main .net-card { margin-top: 48px; }
.quiz-main .net-h { margin-bottom: 8px; }
.quiz-main .result-close .h-sub { margin-bottom: 8px; }

/* Upsell + downsell: on white, a plain price comparison, then the terms and the key line directly above the button */
.offer-main .offer { padding: 0; }
.offer-main .confirm-strip { align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-tile); background: var(--mist); }
.confirm-ic { margin-top: 2px; color: var(--money-ink); }
.offer-main .confirm-strip b { color: var(--ink); }
.offer-main .offer-badge { margin: 16px 0 0; }
.offer-main .offer .compare-col { padding: 20px; border: 1px solid transparent; background: var(--mist); }
.offer-main .offer .compare-win { border: 1px solid var(--action); background: var(--action-tint); }
.offer-main .offer .compare-win .compare-price { color: var(--action); }
.offer-main .offer-terms summary { min-height: 44px; font-weight: 600; font-size: var(--fs-small); text-underline-offset: 4px; }
.offer-main .offer-details-h { margin-top: 40px; padding-top: 32px; font: 600 var(--fs-card)/var(--lh-card) var(--sans); letter-spacing: 0; }
.offer-fig .media img { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .offer-fig .media img { aspect-ratio: 16 / 9; } }

/* Welcome: status in one ruled box, steps as flat bars with plain numbers, white step cards */
.welcome-main .wl-status { gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); }
.welcome-main .wl-stat { gap: 4px; padding: 20px; border: 0; border-radius: 0; background: none; min-width: 0; }
.welcome-main .wl-stat + .wl-stat { border-left: 1px solid var(--line); }
@media (max-width: 420px) { .welcome-main .wl-status { grid-template-columns: 1fr; } .welcome-main .wl-stat + .wl-stat { border-left: 0; border-top: 1px solid var(--line); } }
.welcome-main .wizard { gap: 12px; }
.welcome-main .wizard li { flex-wrap: wrap; gap: 6px; padding-top: 0; border-top: 0; font-weight: 600; }
.welcome-main .wizard li::before { content: ""; flex: 0 0 100%; height: 4px; margin-bottom: 6px; border-radius: var(--r-tag); background: var(--line); }
.welcome-main .wizard li[aria-current="step"]::before { background: var(--action); }
.welcome-main .wizard li.done::before { background: var(--money); }
.welcome-main .wizard .wizard-n, .welcome-main .wizard li[aria-current="step"] .wizard-n, .welcome-main .wizard li.done .wizard-n { width: auto; height: auto; display: inline; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; }
.welcome-main .wl-step .h-sub { margin-bottom: 8px; }
.welcome-main .role-opt { border-color: var(--line-strong); border-radius: var(--r-tile); }
.welcome-main .role-opt input { accent-color: var(--action); }
.welcome-main .role-opt:has(input:checked) { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.welcome-main .wl-earn { gap: 24px; margin-top: 32px; }
.welcome-main .wl-earn > li { display: block; }
.welcome-main .wl-earn h3 { margin: 0 0 4px; }

/* Sign in */
.login-card h1 { margin-bottom: 0; }
.login-for { margin: 8px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--muted); }
.login-card #login-intro, .login-card #state-sent h1 + p { margin-top: 16px; }

/* 404: quick links as flat mist rows, no icons */
.notfound-links .nf-link { display: block; padding: 24px; background: var(--mist); border: 0; }
.notfound-links .nf-link:hover { background: var(--mist-hover); }
.notfound-links .nf-link b { font-size: var(--fs-card); line-height: var(--lh-card); color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.notfound-links .nf-link .small { margin-top: 4px; }
.notfound-main .notfound-code { color: var(--action); }
/* Late fixes after the first screenshot pass */
.co-nowrap { white-space: nowrap; }
.co-main .order-summary .co-h { font: 600 var(--fs-card)/var(--lh-card) var(--sans); letter-spacing: 0; }
.quiz-main .net-card { padding: 0; }
.quiz-main .net-h { font-family: var(--sans); letter-spacing: 0; }
.wl-bonus-status { color: var(--wait-ink); }
.wl-bonus-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--wait); vertical-align: 1px; }
.wl-bonus-status.is-ok { color: var(--money-ink); }
.wl-bonus-status.is-ok::before { background: var(--money); }
.welcome-main .member-list { padding: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
/* === end p2r: funnel === */

/* === p2r: app === */
/* Member app (app.html + js/app.js), partner dashboard, admin. Operate mode, a calm banking app: mist page, flat white cards
   (no border, no shadow), one solid --action balance card per screen, money in Figtree 600 tabular, status = dot + text,
   rows instead of icon tiles. Tokens only. */
.app-sub { color: var(--muted); font-size: 16px; font-weight: 400; }
.app-body .card-title, .ops-body .h-card { font: 600 18px/26px var(--sans); letter-spacing: 0; color: var(--ink); margin: 0 0 12px; }
.app-body .card-title.mb-0, .ops-body .h-card.mb-0 { margin-bottom: 0; }
.card-k { margin: 0 0 4px; font: 500 var(--fs-small)/var(--lh-small) var(--sans); letter-spacing: 0; color: var(--muted); }
.app-body .card-head { gap: 12px; }
.app-body .card-warn { background: var(--wait-tint); color: var(--on-wait-tint); }
.app-body .card-warn .small { color: var(--on-wait-tint); }
.see-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.empty-line { padding: 4px 0; }

/* Status banners: tint + one inline icon */
.app-body .app-notice { padding: 16px; }
.app-body .app-notice > .ic { flex: none; margin-top: 1px; color: var(--action); }
.app-body .notice-warn > .ic { color: var(--wait-ink); }
.app-body .notice-err > .ic { color: var(--err); }
.app-body .notice-body { min-width: 0; flex: 1; }

/* Balance: the screen's one --action surface. Available is the hero number; pending and paid out sit under a rule. */
.money-card { border-radius: var(--r-card); padding: 24px 20px; background: var(--action); color: var(--on-action); }
.money-card h2, .ref-card h2, .ref-card h3 { color: var(--on-action); }
.money-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.money-title { margin: 0; font: 500 var(--fs-small)/var(--lh-small) var(--sans); letter-spacing: 0; color: var(--on-action-2); }
.money-fam { font-size: var(--fs-small); color: var(--on-action-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.money-main { display: flex; flex-direction: column; margin-top: 20px; }
.money-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--on-action-2); }
.money-amt { font: 600 48px/1.1 var(--sans); font-variant-numeric: tabular-nums lining-nums; color: var(--on-action); margin-top: 4px; }
.money-note { display: inline-flex; align-items: flex-start; gap: 8px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--on-action-2); margin-top: 4px; }
.money-note .ic { margin-top: 2px; flex: none; }
.money-neg .money-amt::after { content: "Below zero"; display: inline-block; vertical-align: middle; margin-left: 12px; font: 500 var(--fs-small)/var(--lh-small) var(--sans); color: var(--on-action-2); }
.money-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--action-hover); }
.money-tile { display: flex; flex-direction: column; min-width: 0; padding-right: 16px; }
.money-tile + .money-tile { padding: 0 0 0 20px; border-left: 1px solid var(--action-hover); }
.money-tile .money-lbl { color: var(--on-action); }
.money-val { font: 600 24px/1.2 var(--sans); font-variant-numeric: tabular-nums lining-nums; margin-top: 4px; }
.money-card > .money-note { display: flex; }
@media (min-width: 760px) {
  .money-card { padding: 32px; }
  .money-amt { font-size: 56px; }
  .money-val { font-size: 28px; }
}
.app-body .balance-explain { margin-top: 12px; background: var(--surface); border-radius: var(--r-card); padding: 16px; color: var(--ink-2); }

/* Rows that open a tab: checklist and shortcuts (title, one line, chevron; no icons) */
.start-meter { margin-top: 12px; }
.start-list, .row-links { list-style: none; margin: 4px 0 0; padding: 0; }
.start-list li + li, .row-links li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.row-link:hover { color: var(--ink); }
.row-link:hover b { color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.row-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-link-text b { font-size: 16px; line-height: 22px; }
.row-link-chev { color: var(--muted); flex: none; }
.row-links li:last-child .row-link, .start-list li:last-child .row-link { padding-bottom: 0; min-height: 52px; }
@media (max-width: 600px) { .quick-card { display: none; } } /* the bottom tab bar is the shortcut list on phones */

/* Goal: name, a Bitter percentage, one flat bar */
.goal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.goal-text { min-width: 0; }
.goal-name { margin: 0; overflow-wrap: anywhere; }
.goal-pct { margin: -4px 0 0; font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--money-ink); font-variant-numeric: tabular-nums lining-nums; }
.goal-meter { margin-top: 16px; }
.goal-sum { margin: 12px 0 0; }
.goal-saved { font-weight: 600; color: var(--money-ink); }
.goal-foot2 { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 0 16px; flex-wrap: wrap; }
.goal-people { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.goal-people .stack-av { margin: 0; gap: 4px; justify-content: flex-start; }
.goal-people .stack-av .av { margin-left: 0; box-shadow: none; }
.goal-change { display: inline-flex; align-items: center; min-height: 44px; }

/* Home side column */
.bonus-amt { margin: 8px 0; font: 600 32px/1.15 var(--sans); font-variant-numeric: tabular-nums lining-nums; color: var(--wait-ink); }
.est-mini .estimate-value { margin: 8px 0; font: 600 32px/1.15 var(--sans); color: var(--ink); }

/* Activity and payout rows: memo + date + status left, amount right */
.app-body .ledger-row { align-items: flex-start; gap: 16px; padding: 14px 0; }
.app-body .ledger-row:first-child { padding-top: 0; }
.app-body .ledger-main { flex: 1; }
.app-body .ledger-memo { font-size: 15px; font-weight: 600; line-height: 22px; color: var(--ink); }
.app-body .ledger-meta { margin-top: 4px; gap: 4px 12px; }
.app-body .ledger-meta .badge { font-size: 13px; line-height: 18px; gap: 6px; }
.app-body .ledger-amt { font-size: 16px; line-height: 22px; gap: 2px; align-items: flex-end; }
.acct-pending, .acct-available, .acct-paid_out { background: none; border: 0; padding: 0; } /* section 23 still paints capsules */
.ledger-detail { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 18px; }

/* Deals */
.search-wrap { position: relative; }
.search-wrap > .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 46px; }
.app-body .deals-howto { color: var(--money-deep); }
.app-body .deals-howto > .ic { color: var(--money-ink); flex: none; margin-top: 1px; }
.app-body .deals-mobile-note { max-width: none; margin: 0 0 16px; }
.chip-n { display: inline; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.deal-chip[aria-pressed="true"] .chip-n { background: none; color: var(--on-action-2); }
.app-body .deal-card { gap: 16px; padding: 16px; border-radius: var(--r-card); }
.app-body .deal-card .merchant-logo { width: 48px; height: 48px; border-radius: var(--r-tile); font: 400 22px/1 var(--serif); color: var(--ink); }
.app-body .deal-name { font-size: 16px; color: var(--ink); }
.deal-cat { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.app-body .deal-soon .deal-name { color: var(--ink-2); }

/* Family */
.avatar-av-c { background: var(--action-tint-2); color: var(--action-press); }
.avatar-av-t { background: var(--money-tint-2); color: var(--money-deep); }
.avatar-av-a { background: var(--wait-tint); color: var(--wait-ink); }
.avatar-av-i { background: var(--line); color: var(--ink); }
.app-body .member-row .avatar { width: 40px; height: 40px; font-size: 16px; }
.app-body .member-name { font-weight: 600; color: var(--ink); }
.app-body .member-badges { gap: 4px 16px; align-items: center; }
.member-role { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); font-weight: 500; }
.app-body .btn-icon { box-shadow: none; border: 1px solid var(--line-strong); }
.app-body .btn-icon:hover { box-shadow: none; border-color: var(--err); }

/* Wallet form + controls: 3:1 borders on every control (WCAG 1.4.11) */
.app-body .method-body { min-height: 76px; border-color: var(--line-strong); }
.app-body .method-body > .ic { color: var(--action); margin-bottom: 4px; }
.app-body .radio-item { border-color: var(--line-strong); }
.app-body .payout-preview { background: var(--money-tint); color: var(--money-deep); border-radius: var(--r-tile); padding: 16px; }
.app-body .payout-preview .muted { color: var(--money-deep); }
.app-body .payout-preview b { color: var(--money-deep); font-size: 18px; }

/* Settings */
.plan-sub { margin: 4px 0 8px; }
.app-body .kv dd .badge + .badge { margin-left: 12px; }
.cancel-copy { max-width: 62ch; }

/* No family / invite */
.invite-list { margin-top: 16px; }
.invite-item { flex-wrap: wrap; }
.invite-who { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Cancel + confirm dialogs: a plain step line, equal weight on the decision */
.dialog-step { margin: 0 0 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--muted); }
.app-body .save-message { background: var(--mist); padding: 16px; }
.dialog-actions-equal .btn { width: 100%; }
svg.done-mark { display: block; width: 32px; height: 32px; margin: 0 0 12px; border-radius: 0; background: none; color: var(--money-ink); }

/* Partner dashboard + admin: same Operate look */
.ops-body { background: var(--mist); }
.ops-body main .card { border-color: transparent; }
.ops-body .table-wrap { border-color: transparent; }
@media (max-width: 759px) { .ops-body .table-wrap:has(.rtable) { box-shadow: none; } .ops-body .rtable tr { border-color: transparent; } }
.ops-body .h-page { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -.015em; }
.dash-sub { margin-top: 4px; }
/* The page's one deep-teal moment: the referral link */
.ref-card { border-radius: var(--r-card); padding: 24px 20px; background: var(--action); color: var(--on-action); margin-top: 24px; }
.ref-card .h-sub { color: var(--on-action); }
.ref-card .badge-ok { color: var(--on-action); }
.ref-card .linkbox .input { background: var(--surface); border-color: var(--surface); color: var(--ink); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; min-width: 0; }
.ref-card .linkbox .input:focus { box-shadow: 0 0 0 3px var(--action-hover); }
.ref-card .tiny { color: var(--on-action-2); }
.ref-card :focus-visible { outline-color: var(--on-action); }
@media (min-width: 760px) { .ref-card { padding: 32px; } }
/* Numbers board: one white card, figures divided by hairlines, no icons */
.kpi-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-card); overflow: hidden; }
.kpi-board .stat { background: var(--surface); padding: 20px; min-width: 0; }
.kpi-board .stat-label { font-size: var(--fs-small); line-height: var(--lh-small); }
.kpi-board .stat-value { margin-top: 8px; font-size: 26px; line-height: 32px; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .kpi-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-board.partner-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-board .stat { padding: 24px; }
  .kpi-board .stat-value { font-size: 28px; line-height: 34px; }
}
.ops-body .partner-kpis { margin-top: 16px; }
#payout-form .linkbox .input { font-family: var(--sans); background: var(--surface); }
.spark-area { fill: var(--money-tint); }
.spark-line { fill: none; stroke: var(--money); stroke-width: 2; }
.spark-dot { fill: var(--money); }
.state-card { display: flex; flex-direction: column; align-items: flex-start; }
.state-card .h-sub { margin-top: 12px; }
.ops-loading { display: flex; align-items: center; gap: 12px; }
.admin .tabbar { background: var(--surface); border-radius: var(--r-card) var(--r-card) 0 0; padding: 0 8px; border-bottom-color: var(--line); }
.admin-gate-card { max-width: 640px; }
.admin .admin-grid { align-items: stretch; }
.dash-head .h-page { margin-bottom: 0; }
@media (max-width: 400px) { .admin .rtable .row-tight { flex-wrap: wrap; } } /* two row actions wrap on 320px phones */
/* === end p2r: app === */

/* === p2r: content === */
/* Content and legal pages, Rakuten craft: white sections, one mist band, one deep-teal moment, one caption per visual,
   icons inline only, status as dot + text. Overrides the older phase2 content rules above; tokens only. */
.sub-visual.fig-stack, .hiw-visual, .help-visual, .sec-visual, .brands-visual { margin: 0; min-width: 0; }
.hiw-visual .caption { text-align: center; }
.help-visual .caption, .sec-visual .caption, .brands-visual .caption { max-width: 440px; margin-left: auto; margin-right: auto; }
.float-chip .dot { margin: 0 2px; }
@media (max-width: 599px) { .hiw-visual .phones-solo { height: 500px; } }
@media (min-width: 600px) { .hiw-visual .fc-a { top: 448px; } } /* sits over the empty lower screen, clear of the app content */
/* How it works: three stages as flat white cards on the one mist band, then the reversal as one quiet white card */
.stage-cards .step-card h3 { margin: 16px 0 0; }
.stage-when { margin: 4px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.stage-cards .step-card .stage-when + p { margin-top: 12px; }
.stage-branch { margin-top: 16px; padding: 24px; border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 760px) { .stage-branch { padding: 24px 32px; } }
.stage-branch-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; color: var(--ink); }
.stage-branch p { color: var(--ink-2); }
/* Payout cards: flat mist on a white section; the example sum sits on white, no label chip */
.pay-card { background: var(--mist); padding: 24px; }
@media (min-width: 760px) { .pay-card { padding: 32px; } }
.pay-card h3 { margin: 0; }
.pay-card > p { color: var(--ink-2); margin: 8px 0 0; }
.pay-card > .pay-math { margin-top: 24px; padding: 16px; background: var(--surface); }
.pm small { font-weight: 500; }
.pay-card .caption { margin-top: 8px; }
/* Commission path: mist on white; the about-hero copy floats over the photo as the one floating card */
.money-mini { background: var(--mist); padding: 8px 24px; }
.money-mini b { font: 300 32px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.money-mini .hl b { color: var(--money-ink); }
.money-mini .t small { font-weight: 400; font-size: var(--fs-small); }
.money-float { background: var(--surface); box-shadow: var(--sh-1); padding: 4px 20px; }
.money-float b { font-size: 28px; }
/* About: how we make money as flat mist cards; the main income spans the row */
.income > li { background: var(--mist); padding: 24px; }
@media (min-width: 760px) { .income > li { padding: 32px; } }
@media (min-width: 900px) { .income { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .income > li.income-main { grid-column: 1 / -1; } }
.income > li.income-main { background: var(--mist); color: var(--ink-2); }
.income > li.income-main h3 { color: var(--ink); font: 400 var(--fs-h3s)/var(--lh-h3s) var(--serif); letter-spacing: -.01em; }
.income > li.income-main p { color: var(--ink-2); max-width: 70ch; }
.income-k, .income > li.income-main .income-k { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--money-ink); }
.income h3 { margin: 4px 0 8px; }
.income p { color: var(--ink-2); }
.income p a { color: var(--action); }
/* Editorial icon lists reused from the home page */
.teen-list-1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .teen-list-1 { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1100px) { .who-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.teen-item p a { color: var(--action); }
.grid-3 > .cat, .grid-3 > .card { min-width: 0; }
.grid-3 > .card h3, .grid-3 > .cat h3 { margin: 0; }
.grid-3 > .card p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 24px; }
.feat-split .card > .h-sub, #install .card > h2, .pc-grid .card > .h-sub, .contact-section .form-card-head .h-sub { margin: 0 0 16px; }
.form-card-head .h-sub { margin-bottom: 4px; }
.form-card-head { margin-bottom: 8px; }
.contact-aside .h-card { margin: 0 0 8px; font-family: var(--sans); letter-spacing: 0; }
/* FAQ: a quiet text rail on white (like the legal contents list), questions as mist rows */
.faq-topics { background: none; padding: 0; }
.faq-topics-h { margin: 0 0 8px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.faq-topics ul { gap: 0; border-left: 2px solid var(--line); padding-left: 8px; }
.faq-topics a { min-height: 44px; padding: 8px 12px; font-weight: 500; color: var(--ink-2); }
.faq-topics a:hover { background: var(--mist); color: var(--ink); }
.faq-help { background: var(--mist); color: var(--ink-2); padding: 24px; }
.faq-help h2 { color: var(--ink); font: 400 22px/28px var(--serif); }
.faq-help p { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.faq-help .btn-secondary { background: transparent; color: var(--action); border-color: var(--action); }
.faq-help .btn-secondary:hover { background: var(--action-tint); }
.faq-help :focus-visible { outline-color: var(--action); }
.faq-group-head { gap: 16px; }
/* Help: reasons a purchase goes missing, as a plain list (no tinted circles) */
.reasons { list-style: disc; margin: 0; padding-left: 20px; color: var(--ink-2); }
.reasons li { margin: 8px 0; padding-left: 4px; }
.reasons li::marker { color: var(--muted); }
/* Partners: numerals in one ink, panels flat */
.term-card .price-big, .term-teal .price-big, .term-ink .price-big { color: var(--ink); }
.term-card { padding: 32px 24px; }
.term-card p:last-child { color: var(--ink-2); }
.rules-card { background: var(--mist); padding: 16px 24px; }
@media (min-width: 760px) { .rules-card { padding: 24px 32px; } }
.math-card .summary-line { gap: 16px; }
/* Brands: money trail as numbered flat cards, no icons and no connectors; the end card on the money tint */
.tr-node { display: block; padding: 24px; }
.tr-node h3 { margin: 0 0 4px; font-size: 17px; }
.tr-node p { font-size: 15px; color: var(--ink-2); }
.tr-node:not(:last-child)::after { display: none; }
.tr-node.tr-end { background: var(--money-tint); color: var(--ink-2); }
.tr-node.tr-end h3 { color: var(--ink); }
.tr-node.tr-end h3::before { color: var(--money-deep); }
.tr-node.tr-end p { color: var(--money-deep); }
@media (min-width: 980px) { .tr-node { padding: 24px; } .tr-node h3 { margin: 0 0 8px; } }
/* Privacy choices: the current setting as dot + text */
.pc-status { font-weight: 600; color: var(--ink); line-height: 24px; }
.pc-status { align-items: flex-start; }
.pc-status::before { width: 8px; height: 8px; margin-top: 8px; }
.pc-card .cta-row { margin-top: 24px; }
/* Legal long-form: calm reading, the short version on mist, plain numerals in the contents list */
.legal-prose .summary-card { background: var(--mist); padding: 24px; }
@media (min-width: 760px) { .legal-prose .summary-card { padding: 32px; } }
.toc-n, .legal-aside .toc a[aria-current] .toc-n { width: auto; min-width: 20px; height: auto; margin-top: 0; display: block; background: none; color: var(--muted); font-size: 14px; line-height: inherit; place-items: initial; }
.legal-aside .toc a[aria-current] .toc-n { color: var(--action); }
.legal-aside .toc a { font-weight: 500; }
@media (max-width: 1099px) { .legal-aside .toc { border: 1px solid var(--line); } }
/* A white section right after a sub-page hero shares one gap with it (the hero already ends in white space) */
.hero-x + .section:not(.section-alt) { padding-top: var(--s-6); }
/* === end p2r: content === */

/* === auth v2: sign-in methods (login.html, account-security.html, Settings card) === */
.login-card .login-intro { margin-top: 16px; }
.auth-providers { display: grid; gap: 12px; }
/* Provider buttons follow each provider's rules: Apple HIG black button, Google light button with the full-colour G */
.btn-google { background: var(--surface); color: var(--google-ink); border-color: var(--google-line); font-family: Roboto, var(--sans); font-weight: 500; }
.btn-google:hover { background: var(--mist); color: var(--google-ink); }
.btn-apple { background: var(--apple-black); color: var(--on-apple); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans); font-weight: 600; }
.btn-apple:hover { background: var(--apple-black); color: var(--on-apple); }
.btn-google img, .btn-apple img { flex: none; }
.btn-apple img { width: 16px; height: 20px; margin-top: -3px; }
.btn-google img { width: 20px; height: 20px; }
.btn-google:focus-visible, .btn-apple:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.auth-or { display: flex; align-items: center; gap: 16px; margin: 12px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 20px; }
.auth-label-row .btn-link { min-height: 44px; margin: -12px -4px; font-size: var(--fs-small); }
/* Sign-in methods list */
.method-list { list-style: none; margin: 0; padding: 0; }
.method-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.method-row .pw-panel { flex-basis: 100%; margin-top: 0; }
.method-row:first-child { border-top: 0; padding-top: 0; }
.method-logo { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.method-logo img { width: 20px; height: 20px; }
.method-logo .ic { width: 22px; height: 22px; }
.method-main { flex: 1; min-width: 0; }
.method-main b { display: block; color: var(--ink); font-weight: 600; }
.method-main .small { margin: 2px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.method-row .btn { flex: none; }
.pw-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-main .login-wrap { max-width: 560px; }
.account-main .card + .card { margin-top: 24px; }
.account-main .card-title { font: 600 var(--fs-card)/var(--lh-card) var(--sans); margin: 0 0 8px; }
@media (max-width: 420px) { .method-row { flex-wrap: wrap; } .method-row .btn { width: 100%; } }
/* === end auth v2 === */

/* === marketing: offers page, offers on Deals, email opt-in, email preferences, admin composer === */
/* /offers (server-rendered list): categories as serif sub-heads, offers as flat mist cards on the white section */
.offers-count { margin: 16px 0 0; }
.offers-section { padding-top: 0; }
.offers-disclosure { max-width: 860px; }
.offers-disclosure a { color: var(--on-wait-tint); }
.offers-howto { margin: 16px 0 32px; max-width: 70ch; }
.offer-group + .offer-group { margin-top: 48px; }
.offer-group-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 24px; }
.offer-count { font: 500 var(--fs-small)/var(--lh-small) var(--sans); letter-spacing: 0; color: var(--muted); }
.offer-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--r-card); background: var(--mist); scroll-margin-top: calc(var(--header-h) + 16px); }
.offer-card:target { background: var(--action-tint); }
.offer-top { display: flex; align-items: center; gap: 12px; }
.offer-top .merchant-logo { flex: none; font: 400 22px/1 var(--serif); }
.offer-who { min-width: 0; }
.offer-store { margin: 0; font: 600 var(--fs-card)/var(--lh-card) var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.offer-kind { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.offer-headline { margin: 20px 0 0; font: 300 32px/36px var(--serif); letter-spacing: -.02em; color: var(--ink); }
.offer-headline.offer-earn { color: var(--money-ink); }
.offer-detail { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.offer-meta { margin: 8px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.offer-code-val { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.offer-terms { margin: 8px 0 0; color: var(--muted); }
.offer-cta { margin-top: 20px; align-self: flex-start; }
.offers-empty { max-width: 640px; margin: 0 auto; }
/* Member app Deals: a store's current offers under its name */
.deal-offer { margin: 6px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--ink); }
.deal-offer-earn { color: var(--money-ink); }
.deal-offer-meta { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.deal-offer-terms { margin: 2px 0 0; font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--muted); }
.deal-offer-code { color: var(--ink); }
.deal-offers-note { margin: 16px 0 0; }
.deal-offers-note a { color: var(--action); }
/* Marketing opt-in: its own unticked checkbox, quieter than the renewal consent */
.mkt-optin { color: var(--ink-2); }
/* /email-preferences */
.prefs-main { padding: 32px 0 56px; }
@media (min-width: 760px) { .prefs-main { padding: 72px 0 96px; } }
.prefs-wrap { max-width: 560px; }
.prefs-title { margin: 0; font: 300 var(--fs-h1)/var(--lh-h1) var(--serif); letter-spacing: -.02em; }
.prefs-title:focus { outline: none; }
.prefs-for { margin: 8px 0 0; }
.prefs-email { color: var(--ink); overflow-wrap: anywhere; }
.prefs-topics { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.prefs-legend { margin: 0 0 12px; padding: 0; font-weight: 600; color: var(--ink); }
.prefs-hint { display: block; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
/* Admin: campaign composer next to its live preview (the email renders in a sandboxed frame at 600px) */
.composer { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1240px) { .composer { grid-template-columns: minmax(0, 1fr) 640px; align-items: start; } }
.composer-offers { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer-offers legend { padding: 0; margin: 0 0 8px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.email-frame { display: block; width: 100%; height: 960px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--mist); }
/* === end marketing === */

/* === v2 frontend: free account + Plus (MODEL-V2.md, 19.10.2026) === */
/* Home: four steps (2 x 2 on tablets, 4 across on desktop) */
@media (min-width: 700px) and (max-width: 1099px) { .step-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .step-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Featured offers (home), members-only offers (/plus): live offers only; offer cards turn white on the mist band */
.section-alt .offer-card { background: var(--surface); }
.feat-offers { margin-top: 0; }
.feat-empty { max-width: 720px; margin: 0 auto; text-align: center; color: var(--ink-2); }
.feat-empty b { display: block; color: var(--ink); margin-bottom: 4px; }
.section-alt .store-strip { margin-top: 48px; }
/* Offer card parts added in v2 (shared by /offers server cards, js/offer-cards.js and the app) */
.offer-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.offer-badge .ic { width: 16px; height: 16px; color: var(--action); }
.offer-reward { margin: 8px 0 0; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--money-ink); }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 20px; }
.offer-actions .offer-cta { margin-top: 0; }
.offer-cta { display: inline-flex; align-items: center; gap: 8px; }
.offer-cta .ic { width: 16px; height: 16px; }
.offer-more { min-height: 44px; display: inline-flex; align-items: center; }
.offer-locked .offer-headline.offer-earn { color: var(--ink); }
/* Server-rendered cards (src/offers.mjs): the badge sits at the end of .offer-top, the reward above the headline */
.offer-top > .offer-badge { margin-left: auto; align-self: flex-start; font-size: var(--fs-small); line-height: var(--lh-small); white-space: nowrap; }
.offer-top + .offer-reward { margin-top: 20px; }
.offer-reward + .offer-headline { margin-top: 4px; }
/* Home: members-only teaser */
.plus-teaser { display: grid; gap: 32px; }
@media (min-width: 980px) { .plus-teaser { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.plus-teaser h2 { margin: 0; }
.plus-teaser .lead { margin: 16px 0 0; }
.plus-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 24px 0 16px; }
.plus-price > span:last-child { font-size: 17px; color: var(--muted); }
.plus-teaser .cta-row { margin-top: 24px; }
.plus-points li { margin: 12px 0; }
/* Sign-up: three facts under the intro */
.login-perks { margin: 16px 0 0; }
.login-perks li { margin: 6px 0; }
/* /plus */
.plus-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin: 32px 0 0; padding: 0; list-style: none; }
.plus-facts li { padding: 0 12px; border-left: 1px solid var(--line); min-width: 0; }
.plus-facts li:first-child { padding-left: 0; border-left: 0; }
.plus-facts b { display: block; font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.plus-facts li > span { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
@media (max-width: 640px) { .plus-facts b { font-size: 28px; line-height: 34px; } .plus-facts li { padding: 0 8px; } }
.plus-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .plus-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; } }
.plus-buy h2 { margin: 0; }
.plan-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan-pick legend { padding: 0; margin: 0 0 8px; }
.plan-choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--action); }
.plan-choice:has(input:checked) { border-color: var(--action); background: var(--action-tint); box-shadow: inset 0 0 0 1px var(--action); }
.plan-choice:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.plus-buy .consent { padding: 14px 16px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); }
.plus-buy .consent:has(input:checked) { border-color: var(--action); background: var(--action-tint); }
.plus-buy .consent:has(input[aria-invalid="true"]) { border-color: var(--err); background: var(--err-surface); }
.plus-buy .disclosure details.faq { background: transparent; }
.plus-buy .disclosure details.faq summary { padding-left: 0; }
.plus-side h2 { margin: 0 0 8px; }
.plus-promises { grid-template-columns: minmax(0, 1fr); }
.is-disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
/* /offers/<id> (ad landing page) */
.od-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .od-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; } }
.od-store { margin: 0; }
.od-k { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--money-deep); }
.od-reward { margin: 8px 0 0; font: 300 var(--fs-stat)/var(--lh-stat) var(--serif); letter-spacing: -.02em; color: var(--money-ink); overflow-wrap: anywhere; }
.od-detail { margin: 12px 0 0; color: var(--ink-2); }
.od-facts { margin: 16px 0 0; padding: 0; list-style: none; color: var(--money-deep); }
.od-facts li { padding: 8px 0; border-top: 1px solid var(--money-tint-2); }
.od-terms-section { padding-top: 0; }
.od-terms-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .od-terms-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.od-terms-grid h2 { margin: 0 0 12px; }
/* Member app v2 */
.deals-mo { margin: 24px 0 32px; }
.deals-mo-grid { margin-top: 16px; }
.deals-mo .offer-card { background: var(--surface); }
.plus-cancel { padding-top: 24px; border-top: 1px solid var(--line); }
.plus-cancel h3 { margin: 0; }
.share-card p { margin-top: 8px; }
.app-main .card[id] { scroll-margin-top: calc(var(--header-h) + 72px); } /* /app/plus scrolls to the Plus card below the sticky header and tabs */
/* === end v2 frontend === */
