/* ==========================================================================
   fareja.cashback — Bento Box Grid + Data-Dense Fintech Design System
   Grounded in ui-ux-pro-max (bento-box-grid + data-dense-dashboard).
   Self-hosted Plus Jakarta Sans + JetBrains Mono, Light/Dark theme tokens,
   WCAG 2.2 AA contrast & focus discipline, zero external CDNs.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-400-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-700-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;
}

/* --- Semantic Tokens (Light Mode Default) --------------------------------- */
:root {
  color-scheme: light dark;

  --canvas: #F3F5F8;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --well: #EEF2F6;
  --well-hover: #E2E8F0;

  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-subtle: #526074;

  --spotlight-bg: #0F172A;
  --spotlight-surface: #182238;
  --spotlight-hover: rgba(255, 255, 255, .07);
  --spotlight-border: rgba(255, 255, 255, .10);
  --spotlight-ink: #F8FAFC;
  --spotlight-muted: #CBD5E1;
  --spotlight-accent: #34D399;
  --spotlight-gold: #FBBF24;

  --brand-bg: #0F172A;

  --cash: #047857;
  --cash-hover: #065F46;
  --cash-fg: #FFFFFF;
  --cash-soft: #ECFDF5;
  --cash-line: #A7F3D0;
  --accent-emerald: #10B981;

  --gold: #854D0E;
  --gold-soft: #FEF9C3;
  --gold-line: #FDE047;

  --warn: #92400E;
  --warn-soft: #FEF3C7;
  --warn-line: #FCD34D;

  --bank-fg: #1E3A8A;
  --bank-soft: #EFF6FF;
  --bank-line: #BFDBFE;

  --rule: #E2E8F0;
  --rule-strong: #CBD5E1;

  /* Brand logos always sit on a crisp white plate so dark marks never vanish in dark mode */
  --logo-bg: #FFFFFF;
  --logo-ring: rgba(15, 23, 42, .08);

  --r-bento: 22px;
  --r-card: 16px;
  --r-control: 12px;
  --r-badge: 8px;
  --r-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --shadow-bento: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .09);
  --shadow-bento-hover: 0 2px 6px rgba(15, 23, 42, .06), 0 16px 32px -12px rgba(15, 23, 42, .14);
  --shadow-spotlight: 0 20px 44px -18px rgba(15, 23, 42, .42);
  --shadow-pop: 0 18px 40px -12px rgba(15, 23, 42, .24);

  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-med: 220ms;

  --wrap: 1180px;
  --header-h: 68px;
}

/* --- Dark Mode Tokens (System Preference or Explicit Toggle) -------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --canvas: #0B1120;
    --surface: #111A2E;
    --surface-subtle: #16213A;
    --well: #1B2845;
    --well-hover: #233357;

    --ink: #F8FAFC;
    --ink-muted: #CBD5E1;
    --ink-subtle: #94A3B8;

    --spotlight-bg: #15223D;
    --spotlight-surface: #1C2C4D;
    --spotlight-hover: rgba(255, 255, 255, .07);
    --spotlight-border: rgba(52, 211, 153, .22);
    --spotlight-ink: #F8FAFC;
    --spotlight-muted: #CBD5E1;
    --spotlight-accent: #34D399;
    --spotlight-gold: #FBBF24;

    --brand-bg: #182644;

    --cash: #34D399;
    --cash-hover: #6EE7B7;
    --cash-fg: #022C22;
    --cash-soft: rgba(16, 185, 129, .14);
    --cash-line: rgba(52, 211, 153, .34);
    --accent-emerald: #34D399;

    --gold: #FBBF24;
    --gold-soft: rgba(245, 158, 11, .15);
    --gold-line: rgba(251, 191, 36, .35);

    --warn: #FBBF24;
    --warn-soft: rgba(245, 158, 11, .15);
    --warn-line: rgba(251, 191, 36, .35);

    --bank-fg: #93C5FD;
    --bank-soft: rgba(59, 130, 246, .15);
    --bank-line: rgba(96, 165, 250, .35);

    --rule: #22304C;
    --rule-strong: #32456B;

    --logo-bg: #FFFFFF;
    --logo-ring: rgba(255, 255, 255, .16);

    --shadow-bento: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 26px -14px rgba(0, 0, 0, .55);
    --shadow-bento-hover: 0 4px 12px rgba(0, 0, 0, .38), 0 18px 36px -14px rgba(0, 0, 0, .72);
    --shadow-spotlight: 0 22px 46px -16px rgba(0, 0, 0, .75);
    --shadow-pop: 0 18px 42px -12px rgba(0, 0, 0, .78);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #0B1120;
  --surface: #111A2E;
  --surface-subtle: #16213A;
  --well: #1B2845;
  --well-hover: #233357;

  --ink: #F8FAFC;
  --ink-muted: #CBD5E1;
  --ink-subtle: #94A3B8;

  --spotlight-bg: #15223D;
  --spotlight-surface: #1C2C4D;
  --spotlight-hover: rgba(255, 255, 255, .07);
  --spotlight-border: rgba(52, 211, 153, .22);
  --spotlight-ink: #F8FAFC;
  --spotlight-muted: #CBD5E1;
  --spotlight-accent: #34D399;
  --spotlight-gold: #FBBF24;

  --brand-bg: #182644;

  --cash: #34D399;
  --cash-hover: #6EE7B7;
  --cash-fg: #022C22;
  --cash-soft: rgba(16, 185, 129, .14);
  --cash-line: rgba(52, 211, 153, .34);
  --accent-emerald: #34D399;

  --gold: #FBBF24;
  --gold-soft: rgba(245, 158, 11, .15);
  --gold-line: rgba(251, 191, 36, .35);

  --warn: #FBBF24;
  --warn-soft: rgba(245, 158, 11, .15);
  --warn-line: rgba(251, 191, 36, .35);

  --bank-fg: #93C5FD;
  --bank-soft: rgba(59, 130, 246, .15);
  --bank-line: rgba(96, 165, 250, .35);

  --rule: #22304C;
  --rule-strong: #32456B;

  --logo-bg: #FFFFFF;
  --logo-ring: rgba(255, 255, 255, .16);

  --shadow-bento: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 26px -14px rgba(0, 0, 0, .55);
  --shadow-bento-hover: 0 4px 12px rgba(0, 0, 0, .38), 0 18px 36px -14px rgba(0, 0, 0, .72);
  --shadow-spotlight: 0 22px 46px -16px rgba(0, 0, 0, .75);
  --shadow-pop: 0 18px 42px -12px rgba(0, 0, 0, .78);
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* --- Base & Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, label { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--cash);
  outline-offset: 2px;
  border-radius: var(--r-badge);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-control);
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  z-index: 200;
}
.skip-link:focus { left: 20px; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.ext-ico { flex: none; display: inline-block; vertical-align: -1px; }

/* --- Sticky Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: none; border-radius: 8px; }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.wordmark b { font-weight: 800; color: var(--ink); }
.wordmark .tld { color: var(--cash); font-weight: 800; }

.header-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 190px;
  max-width: 410px;
  display: flex;
  align-items: center;
}
.header-search .search-ico {
  position: absolute;
  left: 13px;
  color: var(--ink-subtle);
  pointer-events: none;
}
.header-search .input {
  padding-left: 38px;
  padding-right: 44px;
  border-radius: var(--r-pill);
  background: var(--surface-subtle);
  min-height: 42px;
}
.header-search .input:focus {
  background: var(--surface);
}
.is-home .header-search { display: none; }

.kbd-hint {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-subtle);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.2;
  pointer-events: none;
}
.header-search:focus-within .kbd-hint,
.spotlight-search:focus-within .kbd-hint { opacity: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 13px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--ink); background: var(--well); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--cash);
  background: var(--cash-soft);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--surface-subtle);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover {
  background: var(--well);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}

/* --- Instant Search Dropdown ---------------------------------------------- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.search-dropdown[hidden] { display: none; }

.search-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  min-height: 48px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.search-option:first-child { border-top: 0; }
.search-option:hover,
.search-option.is-active {
  background: var(--well);
  text-decoration: none;
}
.search-option-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-option-name {
  font-weight: 600;
  font-size: .92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-option-cat { font-size: .76rem; color: var(--ink-subtle); }
.search-option-rate {
  font-size: .88rem;
  font-weight: 700;
  color: var(--cash);
  background: var(--cash-soft);
  border-radius: var(--r-badge);
  padding: 3px 8px;
  white-space: nowrap;
}

/* --- Form Controls & Buttons ---------------------------------------------- */
.input {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-control);
  padding: 10px 14px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--ink-subtle); }
.input:focus {
  outline: none;
  border-color: var(--cash);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cash) 20%, transparent);
}
.input-lg { font-size: 1rem; padding: 14px 16px; }
.input-sm { font-size: .9rem; padding: 8px 12px; min-height: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  padding: 10px 18px;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.985); }

.btn-primary {
  background: var(--cash);
  color: var(--cash-fg);
}
.btn-primary:hover { background: var(--cash-hover); }

.btn-spotlight {
  background: var(--spotlight-accent);
  color: #022C22;
  font-weight: 700;
}
.btn-spotlight:hover { background: #6EE7B7; }

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-quiet:hover { background: var(--well); border-color: var(--ink-subtle); }

.btn-sm { padding: 8px 14px; font-size: .86rem; min-height: 40px; }
.btn-full { width: 100%; }

/* --- Brand & Program Logo Plates ------------------------------------------ */
.brand-logo,
.program-logo {
  flex: none;
  display: grid;
  place-items: center;
  background: var(--logo-bg);
  border: 1px solid var(--logo-ring);
  border-radius: var(--r-control);
  overflow: hidden;
  padding: 5px;
}
.brand-logo img,
.program-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo-xxs { width: 20px; height: 20px; padding: 2px; border-radius: 6px; }
.brand-logo-xs  { width: 30px; height: 30px; padding: 3px; border-radius: var(--r-badge); }
.brand-logo-sm  { width: 38px; height: 38px; padding: 4px; border-radius: 10px; }
.brand-logo-md  { width: 46px; height: 46px; padding: 6px; border-radius: 12px; }
.brand-logo-lg  { width: 64px; height: 64px; padding: 8px; border-radius: 16px; }

.program-logo-xs { width: 20px; height: 20px; padding: 2px; border-radius: 6px; }
.program-logo-sm { width: 34px; height: 34px; padding: 4px; border-radius: 10px; }
.program-logo-md { width: 42px; height: 42px; padding: 5px; border-radius: 12px; }

.program-initial {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--pc, var(--cash)) 14%, var(--well));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--pc, var(--cash)) 35%, transparent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .84rem;
}

.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cat-color, var(--ink-muted)) 13%, var(--well));
  color: color-mix(in srgb, var(--cat-color, var(--ink-muted)) 76%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--rule-strong)) 26%, transparent);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
}
.monogram-xs { width: 30px; height: 30px; font-size: .72rem; border-radius: var(--r-badge); }
.monogram-sm { width: 38px; height: 38px; font-size: .78rem; border-radius: 10px; }
.monogram-md { width: 46px; height: 46px; font-size: .88rem; border-radius: 12px; }
.monogram-lg { width: 64px; height: 64px; font-size: 1.15rem; border-radius: 16px; }

.monogram[data-cat="marketplaces"] { --cat-color: #2563EB; }
.monogram[data-cat="moda"]         { --cat-color: #DB2777; }
.monogram[data-cat="eletronicos"]  { --cat-color: #4F46E5; }
.monogram[data-cat="casa"]         { --cat-color: #B45309; }
.monogram[data-cat="beleza"]       { --cat-color: #BE185D; }
.monogram[data-cat="esporte"]      { --cat-color: #059669; }
.monogram[data-cat="farmacia"]     { --cat-color: #0D9488; }
.monogram[data-cat="viagens"]      { --cat-color: #0284C7; }
.monogram[data-cat="pets"]         { --cat-color: #9333EA; }
.monogram[data-cat="comida"]       { --cat-color: #DC2626; }
.monogram[data-cat="mobilidade"]   { --cat-color: #475569; }
.monogram[data-cat="cursos"]       { --cat-color: #7C3AED; }
.monogram[data-cat="suplementos"]  { --cat-color: #16A34A; }
.monogram[data-cat="infantil"]     { --cat-color: #EA580C; }

/* --- Bento Primitives ----------------------------------------------------- */
.bento-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
}

.bento-spotlight {
  background: var(--spotlight-bg);
  color: var(--spotlight-ink);
  border: 1px solid var(--spotlight-border);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-spotlight);
}
.bento-spotlight :focus-visible {
  outline-color: var(--spotlight-accent);
}

/* --- Home Hero Bento (12-col Asymmetric Modular Grid) --------------------- */
.hero-section {
  padding-block: var(--space-6) var(--space-5);
}

.hero-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}

.bento-hero {
  grid-column: span 7;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  background:
    radial-gradient(640px 320px at 100% 0%, color-mix(in srgb, var(--accent-emerald) 10%, transparent), transparent 68%),
    var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--cash);
  background: var(--cash-soft);
  border: 1px solid var(--cash-line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-bottom: var(--space-5);
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.bento-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.bento-hero h1 .hl {
  color: var(--cash);
}

.bento-hero .lead {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 50ch;
  margin-bottom: var(--space-6);
}

.spotlight-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface-subtle);
  border: 1.5px solid var(--rule-strong);
  border-radius: 16px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.spotlight-search:focus-within {
  background: var(--surface);
  border-color: var(--cash);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cash) 16%, transparent);
}
.spotlight-search .search-ico {
  flex: none;
  margin-left: 10px;
  color: var(--ink-subtle);
}
.spotlight-search .input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 6px;
  min-height: 44px;
  box-shadow: none;
}
.spotlight-search .input:focus { box-shadow: none; }
.spotlight-search .kbd-hint {
  position: static;
  transform: none;
  margin-right: 4px;
}
.spotlight-search .btn-primary {
  padding-inline: 22px;
  border-radius: 11px;
  min-height: 46px;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-4);
}
.quick-pills-center { justify-content: center; margin-bottom: var(--space-5); }
.quick-label { font-size: .78rem; font-weight: 600; color: var(--ink-subtle); margin-right: 2px; }

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 6px;
  min-height: 32px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.quick-pill:hover {
  background: var(--cash-soft);
  border-color: var(--cash-line);
  color: var(--cash);
  text-decoration: none;
}
.quick-pill-rate {
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cash);
  background: var(--cash-soft);
  border: 1px solid var(--cash-line);
  border-radius: var(--r-pill);
  padding: 2px 7px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--ink-muted);
}
.hero-facts b { color: var(--ink); font-weight: 700; }

/* --- Home Right Tile: Dark Spotlight Leaderboard -------------------------- */
.bento-leaderboard {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--spotlight-border);
}
.panel-head-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.panel-head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--spotlight-ink);
}
.panel-head .link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--spotlight-accent);
  white-space: nowrap;
}

.rank-list { display: flex; flex-direction: column; flex: 1; }

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  min-height: 52px;
  color: var(--spotlight-ink);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.rank-item + .rank-item { border-top: 1px solid var(--spotlight-border); }
.rank-item:hover { background: var(--spotlight-hover); text-decoration: none; }
.rank-item.is-best {
  background: linear-gradient(90deg, rgba(16, 185, 129, .18), rgba(16, 185, 129, .04) 70%);
}
.rank-item.is-best:hover {
  background: linear-gradient(90deg, rgba(16, 185, 129, .24), rgba(16, 185, 129, .08) 70%);
}

.rank-n {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .07);
  color: var(--spotlight-muted);
}
.rank-item.is-best .rank-n {
  background: rgba(251, 191, 36, .18);
  color: var(--spotlight-gold);
}

.rank-body { flex: 1; min-width: 0; }
.rank-body .name {
  display: block;
  font-weight: 600;
  font-size: .94rem;
  color: var(--spotlight-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-body .via {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: .77rem;
  color: var(--spotlight-muted);
}
.rank-verified {
  color: var(--spotlight-accent);
  font-weight: 600;
}

.rank-pct {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--spotlight-accent);
  white-space: nowrap;
}
.rank-item .badge-best {
  background: rgba(251, 191, 36, .16);
  border-color: rgba(251, 191, 36, .35);
  color: var(--spotlight-gold);
}

/* --- Home Row 2: Proof & Trust Bento Trio --------------------------------- */
.proof-tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-bento);
}

.proof-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-subtle);
}
.proof-eyebrow svg { color: var(--cash); flex: none; }

.proof-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.proof-metric .big {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.proof-metric .sub {
  font-size: .84rem;
  color: var(--ink-muted);
}
.proof-copy {
  font-size: .86rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.proof-link {
  margin-top: auto;
  font-size: .84rem;
  font-weight: 600;
  color: var(--cash);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.coverage-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--well);
  overflow: hidden;
}
.coverage-bar > span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cash), var(--accent-emerald));
}

.logo-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Category Navigation Bento Rail --------------------------------------- */
.cat-rail {
  padding-block: var(--space-3) var(--space-4);
}
.cat-rail-inner {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 12px 14px;
  box-shadow: var(--shadow-bento);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  min-height: 38px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { text-decoration: none; border-color: var(--rule-strong); background: var(--well); }
.chip[aria-current="page"],
.chip.is-active {
  border-color: var(--cash);
  background: var(--cash-soft);
  color: var(--cash);
}
.chip svg { flex: none; color: var(--ink-muted); }
.chip[aria-current="page"] svg,
.chip.is-active svg { color: var(--cash); }
.chip-count { font-size: .74rem; color: var(--ink-subtle); }
.chip-btn { font-family: var(--font-mono); font-size: .78rem; padding: 6px 12px; min-height: 36px; }

/* --- Section Headings & Page Headers -------------------------------------- */
.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-5); }
.section-end { padding-bottom: var(--space-10); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.section-head h2 { font-size: 1.4rem; letter-spacing: -.03em; }
.section-sub { font-size: .88rem; color: var(--ink-muted); }
.section-head .link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--cash);
  white-space: nowrap;
}

.heading-icon { display: inline-flex; align-items: center; gap: 10px; }
.heading-icon svg { color: var(--cash); flex: none; }

.page-bento-head {
  margin-top: var(--space-5);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-subtle);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--cash); }

.page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); font-weight: 800; }
.page-head .sub { color: var(--ink-muted); font-size: .95rem; margin-top: 5px; max-width: 62ch; }
.page-head .push { margin-left: auto; }

.catalog-filter {
  position: relative;
  min-width: 250px;
  flex: 0 1 340px;
  display: flex;
  align-items: center;
}
.catalog-filter .search-ico {
  position: absolute;
  left: 13px;
  color: var(--ink-subtle);
  pointer-events: none;
}
.catalog-filter .input {
  padding-left: 38px;
  padding-right: 36px;
  border-radius: var(--r-pill);
  background: var(--surface-subtle);
}
.catalog-filter .input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.filter-clear {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.filter-clear:hover { background: var(--well); color: var(--ink); }
.filter-clear[hidden] { display: none; }

.catalog-group { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --- Sort & Filter Segmented Tabs ----------------------------------------- */
.sort-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--well);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  gap: 3px;
}
.sort-tabs a,
.sort-tabs button {
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.sort-tabs a:hover,
.sort-tabs button:hover { color: var(--ink); text-decoration: none; }
.sort-tabs a[aria-current="true"],
.sort-tabs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
}

/* --- Badges & Signup Bonus ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  border-radius: var(--r-badge);
  padding: 3px 9px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-best { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.badge-bank { background: var(--bank-soft); border-color: var(--bank-line); color: var(--bank-fg); }

.bonus {
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cash);
  background: var(--cash-soft);
  border: 1px solid var(--cash-line);
  border-radius: var(--r-control);
  padding: 7px 12px;
}

/* --- Provenance ----------------------------------------------------------- */
.provenance {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .78rem;
  color: var(--ink-subtle);
  line-height: 1.4;
}
.provenance svg { flex: none; margin-top: 2px; }
.provenance-verified { color: var(--cash); font-weight: 600; }
.provenance-verified .src { color: var(--ink-muted); font-weight: 400; }
.provenance-stale { color: var(--warn); font-weight: 600; }
.provenance-stale .src { color: var(--ink-muted); font-weight: 400; }

/* --- Store Cards & Asymmetric Featured Bento Grid ------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.bento-store-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.bento-store-grid > .store-card { grid-column: span 4; }
.bento-store-grid > .store-card:nth-child(1),
.bento-store-grid > .store-card:nth-child(2) {
  grid-column: span 6;
  padding: var(--space-6);
  background:
    radial-gradient(420px 200px at 100% 100%, color-mix(in srgb, var(--accent-emerald) 8%, transparent), transparent 70%),
    var(--surface);
}
.bento-store-grid > .store-card:nth-child(1) .rate-display .value,
.bento-store-grid > .store-card:nth-child(2) .rate-display .value {
  font-size: 2.15rem;
}
.bento-store-grid > .store-card:nth-child(n+9) {
  grid-column: span 3;
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--shadow-bento);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.store-card:hover {
  transform: translateY(-2px);
  border-color: var(--cash-line);
  box-shadow: var(--shadow-bento-hover);
}
.store-card .stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.store-card .stretched-link:hover { text-decoration: none; }

.store-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-id .meta { min-width: 0; }
.store-id .name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-id .cat { display: block; font-size: .78rem; color: var(--ink-subtle); margin-top: 1px; }

.rate-display { margin-top: auto; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rate-display .value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--cash);
}
.rate-display .label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .81rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

.card-trust {
  font-size: .71rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.card-trust.is-fresh { background: var(--cash-soft); color: var(--cash); border: 1px solid var(--cash-line); }
.card-trust.is-stale { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: .81rem;
}
.card-count { color: var(--ink-subtle); font-weight: 500; }
.card-cta { font-weight: 700; color: var(--ink-muted); transition: color var(--dur-fast) var(--ease-out); }
.store-card:hover .card-cta { color: var(--cash); }

/* --- Store Detail Page: Bento Header + Spotlight Winner (/loja/{slug}) ---- */
.store-hero-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.store-identity-card {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
}
.store-hero-bento.is-empty .store-identity-card {
  grid-column: span 12;
}

.store-identity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.store-winner-card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
}

.winner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.winner-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--spotlight-muted);
}
.store-winner-card .badge-best {
  background: rgba(251, 191, 36, .16);
  border-color: rgba(251, 191, 36, .35);
  color: var(--spotlight-gold);
}

.winner-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.winner-pct {
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--spotlight-accent);
  letter-spacing: -.03em;
}
.winner-est {
  font-size: .86rem;
  font-weight: 600;
  color: var(--spotlight-ink);
  background: rgba(52, 211, 153, .14);
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

.winner-program {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--spotlight-muted);
}
.winner-program b { color: var(--spotlight-ink); font-weight: 700; }

.winner-spread {
  font-size: .8rem;
  color: var(--spotlight-muted);
}
.winner-spread b { color: var(--spotlight-ink); }

/* --- Unified Comparison Workbench (/loja/{slug}) -------------------------- */
.compare-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
  overflow: hidden;
}

.compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--rule);
  padding: 16px 20px;
}

.compare-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.compare-summary p { font-size: .9rem; color: var(--ink-muted); }
.compare-summary b { color: var(--ink); font-weight: 700; }

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 7px 14px;
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.filter-toggle:hover { border-color: var(--cash); }
.filter-toggle:has(input:checked) {
  background: var(--cash-soft);
  border-color: var(--cash);
  color: var(--cash);
}
.filter-toggle input { accent-color: var(--cash); width: 16px; height: 16px; margin: 0; cursor: pointer; }

.calc-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.calc-box label { font-size: .84rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.calc-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.currency-input {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.currency-prefix {
  position: absolute;
  left: 11px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-subtle);
  pointer-events: none;
}
.currency-input .input-sm {
  width: 116px;
  padding-left: 36px;
  border-radius: var(--r-pill);
}

.calc-presets { display: inline-flex; gap: 5px; flex-wrap: wrap; }

.compare { display: flex; flex-direction: column; }

.compare-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 18px;
  padding: 18px 20px;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  transition: background var(--dur-fast) var(--ease-out);
}
.compare-row:hover { background: var(--surface-subtle); }
.compare-row[hidden] { display: none; }
.compare-row.is-first-visible { border-top: 0; }

.compare-row.is-best {
  background: color-mix(in srgb, var(--cash) 5.5%, var(--surface));
  position: relative;
}
.compare-row.is-best:hover {
  background: color-mix(in srgb, var(--cash) 8%, var(--surface));
}
.compare-row.is-best::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 4px;
  background: var(--cash);
}

.compare-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--well);
  color: var(--ink-subtle);
}
.compare-row.is-best .compare-rank {
  background: var(--cash-soft);
  color: var(--cash);
}

.compare-program-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.compare-program { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.compare-program .name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 1rem;
}
.compare-program .prog-title { font-weight: 700; color: var(--ink); }

.compare-meter {
  width: min(240px, 100%);
  height: 5px;
  border-radius: 99px;
  background: var(--well);
  overflow: hidden;
  margin-top: 2px;
}
.compare-meter > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  transform-origin: left center;
  transform: scaleX(var(--scale, 1));
  background: color-mix(in srgb, var(--pc, var(--ink-subtle)) 55%, var(--ink-subtle));
  transition: transform var(--dur-med) var(--ease-out);
}
.compare-row.is-best .compare-meter > span {
  background: var(--cash);
}

.compare-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 10ch;
}
.compare-pct {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--cash);
  text-align: right;
  white-space: nowrap;
}
.compare-est {
  font-size: .78rem;
  font-weight: 600;
  color: var(--cash);
  background: var(--cash-soft);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  white-space: nowrap;
  margin-top: 5px;
}
.compare-est:empty { display: none; }
.compare-row .btn { min-width: 158px; }

/* --- How It Works Bento Trio ---------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-bento);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cash);
  background: var(--cash-soft);
  border: 1px solid var(--cash-line);
  border-radius: var(--r-badge);
  padding: 4px 10px;
}
.step-ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--well);
  color: var(--ink);
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .9rem; color: var(--ink-muted); line-height: 1.55; }

/* --- Program Bento Cards -------------------------------------------------- */
.program-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-bento);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--pc, var(--cash));
}
.program-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-bento-hover);
}

.program-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.program-card-id {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.program-card h3 { font-size: 1.04rem; }
.program-card p { font-size: .88rem; color: var(--ink-muted); flex: 1; }
.program-card .btn { margin-top: 4px; align-self: flex-start; }

/* --- Store Directory (/lojas) --------------------------------------------- */
.store-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.store-index li[hidden] { display: none; }

.store-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 12px 14px;
  min-height: 64px;
  box-shadow: var(--shadow-bento);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.store-index a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: var(--cash-line);
  box-shadow: var(--shadow-bento-hover);
}

.store-index .name {
  flex: 1;
  min-width: 0;
  font-size: .94rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-index .best { text-align: right; line-height: 1.25; }
.store-index .pct {
  display: block;
  font-size: .96rem;
  font-weight: 700;
  color: var(--cash);
}
.store-index .via {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: .75rem;
  color: var(--ink-subtle);
}

/* --- Methodology KPI Bento & Editorial Cards (/como-verificamos) ---------- */
.stat-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-bento);
}
.stat-cell.is-accent {
  border-color: var(--cash-line);
  background:
    radial-gradient(280px 140px at 100% 0%, color-mix(in srgb, var(--accent-emerald) 10%, transparent), transparent 70%),
    var(--surface);
}
.stat-cell .v {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}
.stat-cell.is-accent .v { color: var(--cash); }
.stat-cell .v small { font-size: .92rem; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0; }
.stat-cell .k { display: block; font-size: .84rem; color: var(--ink-muted); }

.methodology-stack {
  display: grid;
  gap: var(--space-5);
}
.methodology-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  padding: var(--space-6);
  box-shadow: var(--shadow-bento);
}
.methodology-card h2 { font-size: 1.28rem; margin-bottom: var(--space-3); }
.methodology-card > p {
  color: var(--ink-muted);
  max-width: 68ch;
  margin-bottom: var(--space-3);
}
.methodology-card > p:last-child { margin-bottom: 0; }
.methodology-card b { color: var(--ink); font-weight: 700; }

.state-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.state-list li {
  background: var(--surface-subtle);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 16px;
}
.state-list p { margin: 10px 0 0; font-size: .87rem; color: var(--ink-muted); }

.do-not {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.do-not li {
  background: var(--surface-subtle);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 16px;
  color: var(--ink-muted);
  font-size: .88rem;
  line-height: 1.55;
}
.do-not li b {
  display: block;
  color: var(--ink);
  font-size: .94rem;
  margin-bottom: 6px;
}

/* --- Notice & Empty States ------------------------------------------------ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--cash);
  border-radius: var(--r-card);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--ink-muted);
  box-shadow: var(--shadow-bento);
}
.notice-mt { margin-top: var(--space-5); }
.notice svg { flex: none; margin-top: 2px; color: var(--cash); }
.notice b { color: var(--ink); font-weight: 700; }
.notice a { color: var(--cash); font-weight: 600; }

.empty {
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  padding: var(--space-10) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-bento);
  box-shadow: var(--shadow-bento);
}
.empty[hidden] { display: none; }
.empty h1, .empty h2 { font-size: 1.4rem; margin-bottom: 10px; }
.empty p { color: var(--ink-muted); margin-bottom: var(--space-5); }
.empty .brand-mark { width: 48px; height: 48px; margin-inline: auto; margin-bottom: 14px; }

/* --- Bento Footer --------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-10);
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding-block: var(--space-10) var(--space-8);
  font-size: .88rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
.footer-cols p { color: var(--ink-muted); max-width: 44ch; margin-top: 12px; }
.footer-cols h4 {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-cols nav a { display: block; padding-block: 4px; color: var(--ink-muted); }
.footer-cols nav a:hover { color: var(--cash); }

.disclaimer {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-5);
  font-size: .8rem;
  color: var(--ink-subtle);
  line-height: 1.65;
  max-width: 86ch;
}
.disclaimer a { color: var(--ink-muted); text-decoration: underline; }

/* --- Responsive Breakpoints (1024px / 768px / 640px / 375px) -------------- */
@media (max-width: 1024px) {
  .bento-hero,
  .bento-leaderboard { grid-column: span 12; }
  .proof-tile { grid-column: span 4; }

  .bento-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-store-grid > .store-card,
  .bento-store-grid > .store-card:nth-child(1),
  .bento-store-grid > .store-card:nth-child(2),
  .bento-store-grid > .store-card:nth-child(n+9) {
    grid-column: span 1;
    padding: 18px;
  }
  .bento-store-grid > .store-card:nth-child(1) .rate-display .value,
  .bento-store-grid > .store-card:nth-child(2) .rate-display .value {
    font-size: 1.7rem;
  }

  .store-identity-card,
  .store-winner-card { grid-column: span 12; }

  .stat-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-list, .do-not { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .proof-tile { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  .site-header > .wrap { row-gap: 10px; gap: 10px; }
  .wordmark { font-size: 1.05rem; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .site-nav a { padding: 7px 9px; font-size: .82rem; }
  .kbd-hint { display: none; }

  .bento-hero { padding: 22px 18px; }
  .spotlight-search {
    flex-wrap: wrap;
    padding: 8px;
  }
  .spotlight-search .search-ico { display: none; }
  .spotlight-search .input { padding: 10px 8px; min-width: 0; }
  .spotlight-search .btn-primary { width: 100%; }

  .bento-store-grid { grid-template-columns: 1fr; }

  .cat-rail-inner .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .cat-rail-inner .chips::-webkit-scrollbar { display: none; }

  .page-bento-head { padding: 18px; }
  .page-head .push { margin-left: 0; }
  .catalog-filter { flex-basis: 100%; }

  .store-identity-card,
  .store-winner-card { padding: 20px 18px; }

  .compare-toolbar { flex-direction: column; align-items: stretch; padding: 16px; }
  .compare-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px 10px; padding: 14px 14px; }
  .compare-program-cell { gap: 10px; }
  .compare-rate { min-width: auto; }
  .compare-pct { font-size: 1.28rem; }
  .compare-est { font-size: .72rem; padding: 2px 6px; }
  .compare-row .btn { grid-column: 1 / -1; justify-self: stretch; min-width: 0; }

  .rank-item { gap: 10px; padding: 9px 14px; }
  .rank-item .badge-best { display: none; }
  .rank-body .via { flex-wrap: wrap; row-gap: 2px; }

  .stat-bento-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .store-card:hover,
  .program-card:hover,
  .store-index a:hover,
  .btn:active {
    transform: none !important;
  }
}
