/* ReferralCode.com design tokens. Rules and usage: DESIGN.md. Use a token, never a raw value. */

:root {
  /* Color: neutrals */
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b; /* 3.6:1: large text, icons and decoration only */
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --accent: #0a7d4f;
  --accent-hover: #086a43;
  --accent-soft: #e8f5ee;
  --gold: #8a6500;
  --gold-soft: #fbf3dc;
  --confetti-gold: #e0b24a;
  --confetti-mint: #9fd8bb;
  --confetti-sand: #f1dca4;
  --text-body: var(--text-body);
  --on-accent: #ffffff;
  --danger: var(--danger);
  --glass: rgba(255, 255, 255, 0.82);
  --focus-ring: 0 0 0 3px var(--accent-soft);

  /* Space: 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  /* Shape and size */
  --radius-pill: 999px;
  --control-sm: 36px;
  --control-md: 40px;
  --control-lg: 48px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer sits at the bottom of the viewport on short pages */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.022em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-tld { color: var(--text-3); font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a { color: var(--text); font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.header-nav a:hover { background: var(--surface); text-decoration: none; }

.search { position: relative; flex: 1; max-width: 280px; margin-left: auto; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 0 14px; height: 38px; color: var(--text-2); }
.search-field:focus-within { box-shadow: var(--focus-ring); }
.search-field .icon { width: 16px; height: 16px; }
.search-input { border: 0; background: transparent; outline: none; width: 100%; font-size: 15px; color: var(--text); min-width: 0; }
.search-results {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 260px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden;
}
.search-result-item { display: block; padding: 12px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--surface); text-decoration: none; }
.search-result-company { font-weight: 600; font-size: 15px; }
.search-result-meta, .search-result-empty { font-size: 13px; color: var(--text-2); }
.search-result-empty { padding: 12px 16px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--text-2); padding-top: 16px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs .separator { margin: 0 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-quiet { background: var(--surface); color: var(--text); }
.btn-quiet:hover { background: var(--line); }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--accent); margin: 0 0 16px; }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.035em; max-width: 18ch; margin: 0 auto; }
.hero-title .muted { color: var(--text-3); }
.hero-sub { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); max-width: 62ch; margin: 20px auto 0; line-height: 1.45; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; margin: 48px auto 0; }
.proof-item { background: var(--surface); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.proof-number { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.proof-label { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head p { color: var(--text-2); margin: 8px 0 0; }

/* Chips: one component for reward filters (buttons) and category links */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--text-3); text-decoration: none; }
.chip:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--on-accent); }
.chip-link { background: var(--surface); border-color: transparent; }
.chip-link:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* Deal cards */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.deal-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.deal-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.deal-card-top { display: flex; align-items: center; gap: 12px; }
.deal-card-name { font-weight: 600; font-size: 17px; color: var(--text); }
.deal-card-name::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.deal-card-name:hover { text-decoration: none; }
.deal-card-category { font-size: 13px; color: var(--text-2); }
.deal-card-reward { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.deal-card-reward small { display: block; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-bottom: 4px; }
.deal-card-req { font-size: 14px; color: var(--text-2); margin: 0; }
.deal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.deal-card-foot .go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 14px; }
.deal-card-foot .go .icon { width: 16px; height: 16px; }

.logo-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.logo-tile span { font-weight: 700; font-size: 18px; color: var(--text-2); }
.logo-tile-lg { width: 64px; height: 64px; border-radius: 16px; }
.logo-tile-lg span { font-size: 26px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); color: var(--text-2); }
.badge-cash { background: var(--gold-soft); color: var(--gold); }
.badge-credit { background: var(--accent-soft); color: var(--accent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Deal page */
.deal-hero { padding: 24px 0 8px; }
.deal-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main claim" "facts claim"; column-gap: 40px; align-items: start; }
.deal-hero-main { grid-area: main; }
.deal-hero-facts { grid-area: facts; }
.claim-card { grid-area: claim; }
.deal-hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.deal-hero-id span { font-size: 14px; color: var(--text-2); }
.deal-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.deal-hero-lede { font-size: 19px; color: var(--text-2); margin-top: 14px; max-width: 46ch; }

.claim-card { position: sticky; top: 84px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.claim-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.claim-reward { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 4px 0 16px; }
.code-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius-sm); padding: 6px 6px 6px 16px; margin-bottom: 12px; }
.code-row code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.copy-btn .icon { width: 16px; height: 16px; }
.link-row { cursor: copy; }
.link-row .link-text { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); line-height: 1.4; user-select: all; }
.claim-note { font-size: 13px; color: var(--text-2); margin: 12px 0 0; }
.claim-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--text-2); flex: none; }
.facts li span:last-child { text-align: right; font-weight: 500; }

.prose { padding: 40px 0 24px; }
.prose > * { max-width: 680px; }
.prose h2 { font-size: 28px; font-weight: 700; margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-body); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose ol li::marker { color: var(--accent); font-weight: 600; }
.terms-quote { margin: 0 0 12px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius-sm); }
.terms-quote p { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.terms-quote cite { font-style: normal; font-size: 13px; }
.terms-quote cite a { color: var(--text-2); }

.faq { padding: 8px 0 40px; }
.faq h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 680px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s ease; color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; }

.disclosure-note { display: flex; gap: 12px; align-items: flex-start; max-width: 680px; background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; color: var(--text-2); margin: 8px 0 40px; }
.disclosure-note .icon { color: var(--text-3); margin-top: 2px; }
.disclosure-note p { margin: 0; }

.mobile-cta { display: none; }

/* Category page */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.page-head p { color: var(--text-2); font-size: 19px; margin: 12px 0 0; max-width: 52ch; }
.deal-list { list-style: none; margin: 24px 0 56px; padding: 0; border-top: 1px solid var(--line); }
.deal-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deal-row-name { font-weight: 600; color: var(--text); }
.deal-row-name::after { content: ""; position: absolute; inset: 0; }
.deal-row-name:hover { text-decoration: none; }
.deal-row-meta { font-size: 14px; color: var(--text-2); }
.deal-row-reward { text-align: right; font-weight: 700; font-family: var(--font-display); font-size: 18px; }
.deal-row-reward .badge { margin-top: 4px; }
.deal-row:hover .deal-row-name { color: var(--accent); }

/* Text pages */
.text-page { padding: 40px 0 72px; }
.text-page h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.text-page h2 { font-size: 24px; margin: 36px 0 12px; }
.text-page p, .text-page li { color: var(--text-body); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--text-2); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.footer-top p { margin: 10px 0 0; max-width: 40ch; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); }
.footer-legal { padding-top: 20px; }
.footer-legal p { margin: 0 0 6px; }

/* Tablet */
@media (max-width: 900px) {
  .deal-hero-grid { grid-template-columns: 1fr; grid-template-areas: "main" "claim" "facts"; row-gap: 24px; }
  .claim-card { position: static; }
  .steps { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-nav { display: none; }
  .search { max-width: none; }
  .hero { padding: 48px 0 24px; }
  .proof { gap: 8px; margin-top: 32px; }
  .proof-item { padding: 16px 8px; }
  .proof-number { font-size: 22px; }
  .section { padding: 40px 0; }
  .deal-grid { grid-template-columns: 1fr; }
  .deal-row { grid-template-columns: auto minmax(0, 1fr); }
  .deal-row-reward { grid-column: 2; text-align: left; font-size: 16px; margin-top: -8px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.3; }
  .mobile-cta-text strong { display: block; color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .has-mobile-cta .site-footer { padding-bottom: 120px; }
}

.list-filters { margin-top: 24px; }

@media (max-width: 900px) { .facts { margin-top: 0; } }

/* Contact form */
.contact-form { margin-top: 28px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); background: var(--bg); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}

/* Ranked lists (/best/ and hub pages) */
.page-head .page-meta { font-size: 14px; color: var(--text-2); margin-top: var(--space-3); }
.rank-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4); }
.rank-toolbar .chips { padding-bottom: 0; }
.sort-field { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--text-2); }
.sort-field select {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  height: var(--control-md); padding: 0 40px 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
}
.sort-field select:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.rank-list { list-style: none; margin: 0 0 var(--space-7); padding: 0; border-top: 1px solid var(--line); }
.rank-item { display: grid; grid-template-columns: 32px auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.rank-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-2); line-height: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.rank-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.rank-name a { color: var(--text); }
.rank-name a:hover { color: var(--accent); }
.rank-best { margin: var(--space-1) 0 0; font-size: 15px; color: var(--text-2); }
.rank-dims { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rank-dims li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); }
.rank-dims li span { font-weight: 500; color: var(--text-2); }
.rank-req { margin: var(--space-3) 0 0; font-size: 14px; color: var(--text-2); }
.rank-score { text-align: right; line-height: 1; white-space: nowrap; }
.rank-score strong { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.rank-score span { font-size: 14px; color: var(--text-2); margin-left: 2px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; }
.compare td:last-child { font-weight: 700; color: var(--accent); }
.prose-block h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: var(--space-4); }
.prose-block p, .prose-block li { color: var(--text-body); }
.prose-block ul { padding-left: 1.25em; }
.prose-block li { margin-bottom: var(--space-2); }

@media (max-width: 640px) {
  .rank-item { grid-template-columns: 24px auto minmax(0, 1fr); gap: var(--space-3); }
  .rank-num { font-size: 18px; }
  .rank-score { grid-column: 3; text-align: left; order: -1; }
  .rank-score strong { font-size: 24px; }
  .rank-toolbar { align-items: flex-start; }
}

/* Hero art: confetti + floating reward cards (decorative). See DESIGN.md "Hero art". */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.confetti { position: absolute; transform: rotate(var(--r)); opacity: 0; animation: confetti-in 0.9s cubic-bezier(.2,.9,.3,1.3) var(--d) forwards, confetti-drift var(--t) ease-in-out calc(var(--d) + 0.9s) infinite alternate; }
.confetti.c-mid { --o: .4; }
.c-accent { fill: var(--accent); stroke: var(--accent); }
.c-gold { fill: var(--confetti-gold); stroke: var(--confetti-gold); }
.c-accent-soft { fill: var(--confetti-mint); stroke: var(--confetti-mint); }
.c-gold-soft { fill: var(--confetti-sand); stroke: var(--confetti-sand); }
.c-line { fill: var(--line-strong); stroke: var(--line-strong); }
@keyframes confetti-in { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) - 120deg)) scale(.4); } to { opacity: var(--o, .85); transform: translateY(0) rotate(var(--r)) scale(1); } }
@keyframes confetti-drift { 0% { transform: translate(0, 0) rotate(var(--r)); } 33% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .5)) rotate(calc(var(--r) + var(--spin) * .4)); } 66% { transform: translate(calc(var(--dx) * -.4), var(--dy)) rotate(calc(var(--r) + var(--spin))); } 100% { transform: translate(var(--dx), calc(var(--dy) * .3)) rotate(calc(var(--r) - var(--spin) * .3)); } }
.hero-card { position: absolute; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left; opacity: 0; animation: card-in .8s cubic-bezier(.2,.9,.3,1.1) .5s forwards, card-float 7s ease-in-out 1.3s infinite alternate; }
.hero-card .logo-tile { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.hero-card small { display: block; font-size: 12px; color: var(--text-2); }
.hero-card strong { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.hero-card div > span { display: block; font-size: 12px; color: var(--text-2); }
.hero-card-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); margin-left: var(--space-2); }
.hero-card-check .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.hero-card-left { left: max(var(--gutter), calc(50% - 600px)); top: 58%; --tilt: -4deg; transform: rotate(var(--tilt)); }
.hero-card-right { right: max(var(--gutter), calc(50% - 600px)); top: 22%; --tilt: 3deg; transform: rotate(var(--tilt)); animation-delay: .75s, 1.6s; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) rotate(var(--tilt)) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(var(--tilt)); } }
@keyframes card-float { from { transform: translateY(0) rotate(var(--tilt)); } to { transform: translateY(-10px) rotate(var(--tilt)); } }
@media (max-width: 1100px) { .hero-card { display: none; } }
@media (max-width: 640px) { .confetti { width: 12px !important; top: var(--ym) !important; left: var(--xm) !important; } .confetti:nth-child(even) { display: none; } }
@media (prefers-reduced-motion: reduce) { .confetti, .hero-card { animation: none; opacity: .85; } .hero-card { opacity: 1; } }
