/* ============================================================================
   Hot Wheels Tracker Collection — Website design system
   ----------------------------------------------------------------------------
   This stylesheet mirrors the visual language of the Android app so the site
   feels like an extension of the product:

     app (Flutter)                                  →  website
     ---------------------------------------------------------------
     scaffold background  Colors.grey[100] #F5F5F5  →  --bg
     surface / cards      Colors.white  + r20       →  .card, --r-20
     card shadow          black @4%, blur10, y+4    →  --sh-card
     primary accent       Colors.blueAccent #448AFF  →  --blue
     section title bar    4x16 blue rounded bar     →  .section-title / .app-card-head
     list tile icon tile  r12, color @8-10%         →  .icon-tile
     primary button       filled, r12-15, bold      →  .btn-primary
     owned / wishlist     green / redAccent         →  --green, --red
     super T-Hunt         cream #FFF8E1 + amber     →  --amber-soft
     partner colours      Amazon/eBay/AliExpress    →  --amazon, --ebay, --ali

   Accessibility note: the app paints white text on #448AFF, which is only
   3.3:1 on the web and fails WCAG AA for body-size text. Action surfaces here
   use --blue-strong (#2962FF, Material blueAccent[700], 4.9:1) while the
   lighter --blue is kept for icons, bars, tints and decorative fills so the
   look stays faithful.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
  /* Surfaces */
  --bg: #f5f5f5;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e8eaee;
  --divider: #eef0f3;

  /* Text */
  --ink: #0f172a;      /* headings */
  --text: #334155;     /* body copy */
  --muted: #6b7280;    /* secondary copy (AA on white) */
  --muted-2: #9ca3af;  /* captions */
  --label: #546e7a;    /* blueGrey card labels, as in the app */

  /* Brand / accent */
  --blue: #448aff;             /* Colors.blueAccent */
  --blue-strong: #2962ff;      /* blueAccent[700] — AA on white */
  --blue-strong-hover: #1b4ce0;
  --blue-tint: rgba(68, 138, 255, 0.10);
  --blue-tint-2: rgba(68, 138, 255, 0.18);
  --blue-ring: rgba(68, 138, 255, 0.32);

  --hw-red: #e31e24;           /* brand only: logo, brand marks */
  --green: #4caf50;            /* Colors.green */
  --green-ink: #2e7d32;
  --green-soft: #e8f5e9;
  --red: #ef5350;
  --red-ink: #c62828;
  --red-soft: #fdecea;
  --amber: #f5a623;
  --amber-ink: #a15c00;
  --amber-soft: #fff8e1;

  /* Partner colours (used by the app's affiliate buttons) */
  --amazon: #ff9900;
  --amazon-dark: #232f3e;
  --ebay: #0064d2;
  --ali: #e62e04;
  --paypal: #003087;

  /* Radii — the app's scale */
  --r-10: 10px;
  --r-12: 12px;
  --r-15: 15px;
  --r-18: 18px;
  --r-20: 20px;
  --r-24: 24px;
  --r-30: 30px;

  /* Shadows */
  --sh-card: 0 4px 10px rgba(0, 0, 0, 0.04);
  --sh-card-hover: 0 12px 26px rgba(15, 23, 42, 0.09);
  --sh-nav: 0 2px 12px rgba(15, 23, 42, 0.06);
  --sh-phone: 0 24px 60px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 104px);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-strong-hover);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--blue-tint-2);
}

/* ---------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  color: var(--muted);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.accent {
  color: var(--hw-red);
}

/* Small section label with the app's blue bar (4 x 16, rounded) */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

/* ---------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 12px;
}

.section-head p {
  font-size: 1.05rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--surface);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-12) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------------------
   5. Buttons & pills
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-15);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--blue-strong);
  color: #fff;
  box-shadow: 0 6px 16px rgba(41, 98, 255, 0.24);
}

.btn-primary:hover {
  background: var(--blue-strong-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(41, 98, 255, 0.3);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--sh-card);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
  transform: translateY(-2px);
  box-shadow: var(--sh-card-hover);
}

.btn-dark {
  background: var(--amazon-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #16202b;
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 17px 28px;
  font-size: 1rem;
  border-radius: var(--r-15);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill-blue {
  background: var(--blue-tint);
  border-color: var(--blue-tint-2);
  color: #1c4fb8;
}

.pill-green {
  background: var(--green-soft);
  border-color: rgba(76, 175, 80, 0.28);
  color: var(--green-ink);
}

.pill-amber {
  background: var(--amber-soft);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--amber-ink);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.dot-red {
  background: var(--red);
}

.dot-amber {
  background: var(--amber);
}

/* ---------------------------------------------------------------------------
   6. Navigation
   ------------------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 245, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: var(--sh-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

/* Brand lockup — mirrors the drawer header of the app: circle with a blue
   tint, blue hairline border and the app mark inside. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-tint);
  border: 2px solid var(--blue-tint-2);
  color: var(--ink);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: var(--r-10);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--ink);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-12);
  background: var(--surface);
  border: 1px solid var(--border);
  place-items: center;
  color: var(--ink);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px var(--gutter) 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--divider);
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu a:last-of-type {
  border-bottom: 0;
}

.mobile-menu .btn {
  margin-top: 12px;
}

/* ---------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
  overflow: hidden;
}

/* Soft blue halo, like the tinted icon areas of the app */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle at center,
    rgba(68, 138, 255, 0.16),
    rgba(68, 138, 255, 0) 68%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 18px;
}

.hero-copy .lead {
  max-width: 52ch;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex: none;
}

/* Phone mockup — light frame + soft shadow (the app has no dark bezel) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 74vw);
  padding: 10px;
  border-radius: 38px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--sh-phone);
}

.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* Floating UI card that echoes the app's stat rows */
.float-card {
  position: absolute;
  left: -6px;
  bottom: 12%;
  width: min(250px, 62%);
  padding: 16px;
  border-radius: var(--r-20);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  border: 1px solid var(--border);
}

.float-card .fc-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}

.float-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-row + .float-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

.float-row .val {
  margin-left: auto;
  font-weight: 800;
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   8. Icon tiles (the app's leading square icons)
   ------------------------------------------------------------------------ */
.icon-tile {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-12);
  background: var(--blue-tint);
  color: var(--blue-strong);
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.icon-tile.tile-green {
  background: var(--green-soft);
  color: var(--green-ink);
}

.icon-tile.tile-amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.icon-tile.tile-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

.icon-tile.tile-dark {
  background: rgba(35, 47, 62, 0.08);
  color: var(--amazon-dark);
}

.icon-tile.tile-lg {
  width: 52px;
  height: 52px;
  border-radius: var(--r-15);
}

.icon-tile.tile-lg svg {
  width: 26px;
  height: 26px;
}

/* ---------------------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  padding: 26px;
  box-shadow: var(--sh-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-tint-2);
  box-shadow: var(--sh-card-hover);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.06rem;
  font-weight: 800;
}

.card p {
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card-list svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--blue);
  flex: none;
}

/* ---------------------------------------------------------------------------
   10. App-replica components (used to show the real interface)
   ------------------------------------------------------------------------ */
.app-card {
  background: var(--surface);
  border-radius: var(--r-20);
  padding: 20px;
  box-shadow: var(--sh-card);
  border: 1px solid var(--border);
}

/* Section header of every card in the app: 4x16 blue bar + bold title */
.app-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.app-card-head::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

.app-card-head h3,
.app-card-head h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.app-card-sub {
  margin: -12px 0 16px;
  font-size: 0.86rem;
  color: var(--muted-2);
}

/* Read-only search field, like the search bar in the app home */
.mock-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-card);
  color: var(--muted-2);
  font-size: 0.95rem;
}

.mock-search svg {
  width: 20px;
  height: 20px;
  color: var(--muted-2);
  flex: none;
}

/* Outlined field with the label overlapping the border (Material outlined) */
.mock-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #dadce0;
  border-radius: var(--r-12);
  background: var(--surface);
  color: var(--text);
}

.mock-field + .mock-field {
  margin-top: 18px;
}

.mock-field .lbl {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 6px;
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.mock-field svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  flex: none;
}

.mock-field .chev {
  margin-left: auto;
  color: var(--muted);
}

.mock-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--r-12);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(68, 138, 255, 0.28);
}

/* Ranked rows: rank number, name, series, count badge */
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.rank-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-row:first-child {
  padding-top: 0;
}

.rank-num {
  width: 18px;
  flex: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--muted-2);
  text-align: center;
}

.rank-num.top-1,
.rank-num.top-2,
.rank-num.top-3 {
  color: var(--green-ink);
}

.rank-row.wanted .rank-num.top-1,
.rank-row.wanted .rank-num.top-2,
.rank-row.wanted .rank-num.top-3 {
  color: var(--red-ink);
}

.rank-body {
  min-width: 0;
  flex: 1;
}

.rank-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-series {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-count {
  flex: none;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: var(--r-10);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  background: var(--green-soft);
  color: var(--green-ink);
}

.badge-count.wanted {
  background: var(--red-soft);
  color: var(--red-ink);
}

/* Stat row: tinted icon tile + label + value (app: _buildStatRow) */
.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.stat-row + .stat-row {
  border-top: 1px solid var(--divider);
}

.stat-row .lbl {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.stat-row .val {
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   11. Stats band (hero KPIs, filled from /stats when available)
   ------------------------------------------------------------------------ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
}

.stat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-18);
  box-shadow: var(--sh-card);
}

.stat-tile .body {
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.stat-value.sm {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   12. Steps ("how it works")
   ------------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  box-shadow: var(--sh-card);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: var(--r-10);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  font-size: 0.94rem;
}

/* Two-column "explainer" layout: app replica + copy */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.split-copy h2 {
  margin: 14px 0 14px;
}

.split-copy p + p {
  margin-top: 14px;
}

.check-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}

.check-list svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-ink);
  flex: none;
  margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   13. Highlights (Treasure Hunts / Super T-Hunts)
   ------------------------------------------------------------------------ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.highlight-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-18);
  border: 1px solid;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card-hover);
}

.highlight-tile.th {
  background: var(--green-soft);
  border-color: rgba(76, 175, 80, 0.45);
}

.highlight-tile.sth {
  background: var(--amber-soft);
  border-color: rgba(245, 166, 35, 0.5);
}

.highlight-tile strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.highlight-tile span {
  font-size: 0.85rem;
  color: var(--muted);
}

.highlight-tile.th strong {
  color: var(--green-ink);
}

.highlight-tile.sth strong {
  color: var(--amber-ink);
}

.highlight-logo {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.highlight-logo svg {
  width: 26px;
  height: 26px;
}

/* Store exclusives: text chips (no third-party logos) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.chip .dot {
  background: var(--blue);
}

/* ---------------------------------------------------------------------------
   14. Purchase / affiliate row (mirrors the app's "Check Availability")
   ------------------------------------------------------------------------ */
.affiliate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  padding: 22px;
  box-shadow: var(--sh-card);
}

.affiliate-card .app-card-head {
  justify-content: center;
}

.affiliate-card .app-card-head::before {
  display: none;
}

.affiliate-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.aff-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--r-15);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.aff-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.aff-btn svg {
  width: 22px;
  height: 22px;
}

.aff-amazon {
  background: var(--amazon);
}

.aff-ebay {
  background: var(--ebay);
}

.aff-ali {
  background: var(--ali);
}

.disclosure {
  margin-top: 16px;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted-2);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   15. Gallery
   ------------------------------------------------------------------------ */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.gallery-nav {
  display: flex;
  gap: 10px;
}

.gallery-nav button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-12);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-card);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-nav button:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
  transform: translateY(-2px);
}

.gallery-nav svg {
  width: 18px;
  height: 18px;
}

.gallery-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 246px;
  scroll-snap-align: center;
}

.gallery-item .phone {
  width: 100%;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.gallery-item .phone::after {
  display: none;
}

.gallery-item .phone img {
  border-radius: 25px;
}

.gallery-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.gallery-caption strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   16. FAQ
   ------------------------------------------------------------------------ */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-18);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--blue-tint-2);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-q .plus {
  margin-left: auto;
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-strong);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding: 0 22px 22px;
  font-size: 0.95rem;
}

.faq-a a {
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   17. Download CTA
   ------------------------------------------------------------------------ */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-30);
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(140deg, #101a26 0%, #232f3e 55%, #16202b 100%);
  color: #fff;
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(68, 138, 255, 0.35),
    rgba(68, 138, 255, 0) 70%
  );
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.cta-panel h2 {
  color: #fff;
  margin: 14px 0 14px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel .section-title {
  color: rgba(255, 255, 255, 0.7);
}

.cta-steps {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.cta-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-steps .n {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-24);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.qr-frame {
  padding: 12px;
  border-radius: var(--r-18);
  background: #fff;
}

.qr-frame img {
  width: 170px;
  height: 170px;
}

.qr-card .hint {
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.play-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------------------
   18. Footer
   ------------------------------------------------------------------------ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: var(--r-30) var(--r-30) 0 0;
  padding: clamp(40px, 5vw, 64px) 0 28px;
  margin-top: var(--section-y);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand .brand {
  margin: 0 0 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--blue-strong);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-legal .disclaimer {
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   19. Legal / content pages (privacy policy, account deletion)
   ------------------------------------------------------------------------ */
.legal-wrap {
  padding-block: clamp(32px, 5vw, 56px) var(--section-y);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-24);
  box-shadow: var(--sh-card);
  padding: clamp(24px, 4vw, 48px);
  max-width: 860px;
  margin-inline: auto;
}

.legal-card > h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}

.legal-card h2 {
  font-size: 1.28rem;
  margin: 40px 0 12px;
  scroll-margin-top: 100px;
}

.legal-card h3 {
  font-size: 1.02rem;
  margin: 24px 0 8px;
}

.legal-card p {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 18px 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.97rem;
}

.legal-card ul {
  list-style: disc;
}

.legal-card ol {
  list-style: decimal;
}

.legal-card li::marker {
  color: var(--blue);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-2);
}

.legal-toc {
  margin: 24px 0 8px;
  padding: 20px;
  border-radius: var(--r-18);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.legal-toc ol {
  list-style: decimal;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.highlight-box {
  margin: 22px 0;
  padding: 20px;
  border-radius: var(--r-15);
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
}

.highlight-box strong {
  color: var(--ink);
}

.highlight-box.warn {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}

.contact-box {
  margin-top: 36px;
  padding: 28px;
  border-radius: var(--r-20);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-box h2 {
  margin: 0 0 10px;
}

.contact-box .btn {
  margin-top: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.back-link:hover {
  color: var(--blue-strong);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------------
   20. Motion
   ------------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* Screen-reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   21. Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hero-grid,
  .cta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-top: 8px;
  }

  .hero-copy .lead {
    max-width: none;
  }

  .float-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
    width: min(300px, 78%);
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 84px;
  }

  .hero-points {
    gap: 8px 14px;
    font-size: 0.86rem;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .affiliate-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .aff-btn {
    font-size: 0.78rem;
    padding: 14px 6px;
  }

  .aff-btn svg {
    width: 18px;
    height: 18px;
  }

  .cta-panel {
    border-radius: var(--r-24);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 13px 18px;
  }

  .btn-lg {
    padding: 15px 20px;
    font-size: 0.94rem;
  }

  .cta-row .btn {
    width: 100%;
  }

  .stat-tile {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------------------
   22. Preferences
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-nav,
  .gallery-nav,
  .cta-panel,
  .site-footer .footer-col {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-card,
  .card {
    box-shadow: none;
    border-color: #ddd;
  }
}
