/* =====================================================================
   MD PANEL — HOMEPAGE LAYOUT (redesign, 6 Oct 2026)
   Phone-app style single column modelled on cricbosspanel.com:
   black page, #1a1a1a surfaces, #FFB90D gold accent, Figtree type,
   list-row panels with gold buttons and a bottom tab bar.
   Loaded after css/style.css on index.html only (body.home), so the
   Buy / Log in pages keep their own layout.
   ===================================================================== */

body.home {
  --shell: 720px;
  --gold-ink: var(--gold);           /* gold used as text colour */
  --row-bg: var(--surface);
  --tabbar-h: 74px;
  padding-bottom: calc(var(--tabbar-h) + 16px);
  font-family: var(--font-body);
}
[data-theme="light"] body.home {
  --gold-ink: #a36f00;               /* darker gold so text stays readable on white */
  --row-bg: #ffffff;
}

.home .app-shell { max-width: var(--shell); margin: 0 auto; padding: 0 18px; }

/* ---------- Title with gold underline (section headings) ---------- */
.home .title-line {
  position: relative; display: inline-block;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.35rem, 4vw, 1.65rem);
  text-transform: uppercase; letter-spacing: 0; line-height: 1.2;
  color: var(--text); margin: 0 0 20px; padding-bottom: 8px;
}
.home .title-line::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: min(100%, 130px); height: 2px; background: var(--gold); border-radius: 2px;
}

/* ---------- Header: menu · logo · log in ---------- */
.home .site-header {
  background: transparent; border-bottom: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home .site-header .header-inner {
  position: relative;
  max-width: calc(var(--shell) - 20px);
  height: 64px; padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.home .header-side { display: flex; align-items: center; gap: 8px; }
.home .header-side-end { justify-content: flex-end; }
.home .brand { justify-self: center; gap: 8px; }
.home .brand-mark-wrap, .home .brand-mark { width: 34px; height: 34px; }
.home .brand-name { font-size: 1.4rem; font-weight: 800; white-space: nowrap; }
.home .brand-name span { color: var(--gold); }

.home .nav-toggle {
  display: flex; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 10px;
}
.home .nav-toggle span { height: 2.5px; }
.home .nav-toggle:hover { background: rgba(var(--tint-rgb), 0.06); }
.home .theme-toggle { width: 34px; height: 34px; border-color: var(--border); color: var(--gold); }
.home .theme-toggle svg { width: 17px; height: 17px; }

.btn-light {
  background: #ffffff; color: #000000; border-radius: 8px;
  padding: 0.55rem 0.95rem; font-size: 0.9rem; font-weight: 600;
}
.btn-light:hover { background: var(--gold); color: #000; }
[data-theme="light"] .btn-light { background: #000; color: #fff; }

/* Menu: a drop-down panel at every width */
.home .site-nav,
.home .site-nav.open { /* reset style.css desktop/phone variants */
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--surface); border: 0; border-radius: 0 0 18px 18px;
  padding: 6px 18px 18px; margin-top: -14px; padding-top: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: -1;
}
.home .site-nav { display: none; }
.home .site-nav.open { display: flex; }
.home .site-nav a:not(.btn) {
  display: block; padding: 12px 4px; font-size: 1rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.home .site-nav a:not(.btn):hover { color: var(--gold-ink); }
.home .site-nav .btn { margin-top: 14px; }
.home .site-nav .nav-mobile-only { display: block; }

/* ---------- Hero ---------- */
.home .hero { padding: 22px 0 0; text-align: left; border-bottom: 0; overflow: visible; }
.home .hero::before, .home .hero::after { display: none; }

/* Gold offer card (styled after the reference's wallet card) */
.offer-card {
  display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; gap: 6px;
  padding: 26px 12px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #ffcd45 0%, #ffb90d 55%, #f7a600 100%);
  color: #111;
  box-shadow: 0 14px 34px rgba(255, 185, 13, 0.18);
}
.offer-side {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #111; text-decoration: none;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.offer-icon {
  width: 34px; height: 34px; border-radius: 50%; background: #111;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.offer-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.offer-side:hover .offer-icon { transform: scale(1.08); }

.home .offer-main.partner-cta {
  /* reset the old animated pill from style.css */
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0; padding: 0; border-radius: 0; background: none; overflow: visible;
  box-shadow: none; animation: none; color: #111; text-align: center;
}
.home .offer-main.partner-cta::before,
.home .offer-main.partner-cta::after { display: none; }
.home .offer-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: rgba(0, 0, 0, 0.72);
  white-space: normal;
}
.home .offer-rate {
  font-family: var(--font-head); font-size: clamp(2.9rem, 9vw, 3.6rem); font-weight: 900; line-height: 0.95;
  background: none; color: #111; -webkit-text-fill-color: #111; filter: none; animation: none;
}
.home .offer-rate .pct { font-size: 0.6em; }
.offer-pill {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.offer-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Banner */
.banner {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 28px 24px 24px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(70% 110% at 92% 10%, rgba(214, 25, 28, 0.55), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(255, 185, 13, 0.22), transparent 60%),
    linear-gradient(135deg, #1f0707 0%, #0d0d0d 55%, #161000 100%);
  color: #fff;
}
.banner::after {   /* stadium-light dots, like the reference banner */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 45%);
}
.banner > * { position: relative; z-index: 1; }
.home .banner .eyebrow { color: var(--gold); font-size: 0.72rem; margin-bottom: 0.7rem; }
.home .banner h1 {
  font-size: clamp(1.65rem, 5vw, 2.35rem); font-weight: 800; line-height: 1.12;
  margin: 0 0 0.8rem; max-width: none; color: #fff;
}
.home .banner .gold { background: none; -webkit-text-fill-color: var(--gold); color: var(--gold); }
.home .banner .lead { color: #d0d0d0; font-size: 0.98rem; margin: 0 0 1.3rem; max-width: 560px; }
.home .hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0; }
.home .hero-actions .btn { padding: 0.72rem 1.05rem; font-size: 0.88rem; border-radius: 8px; flex: 0 1 auto; white-space: nowrap; }
.home .banner .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.home .banner .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.banner-tag {
  display: inline-block; margin: 20px 0 0; padding: 9px 16px;
  background: var(--gold); color: #111; border-radius: 10px;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
  transform: rotate(-1.5deg);
}

/* Stats strip */
.stats {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
}
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 6px; gap: 2px; }
.stats li + li { border-left: 1px solid var(--border-strong); }
.stats b { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.6rem, 5vw, 2rem); color: var(--gold-ink); line-height: 1.1; }
.stats span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); }

/* Brand slider */
.home .brands { margin: 30px 0 0; max-width: none; }
.home .brand-item { width: 170px; height: 74px; background: var(--logo-bg); border-color: var(--logo-border); }

/* ---------- Sections ---------- */
.home .section { padding: 34px 0 0; }
.home .section-head { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 18px; }
.home .section-title h2 { margin-bottom: 12px; }
.home .section-desc { color: var(--muted); font-size: 0.92rem; max-width: none; margin: 0 0 6px; }
.home .section-tools { display: flex; gap: 10px; justify-content: space-between; }
.home .search { flex: 1; min-width: 0; background: var(--surface); border-color: var(--border); border-radius: 10px; }
.home .count { background: var(--surface); }

/* ---------- Panel types ---------- */
.type-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type-tile {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2; min-height: 132px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right;
  padding: 14px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, 0.8);
  color: #fff; text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.type-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.tile-b2b { background: radial-gradient(circle at 22% 28%, rgba(255, 185, 13, 0.5), transparent 55%), linear-gradient(160deg, #2b1b00, #0b0b0b 72%); }
.tile-b2c { background: radial-gradient(circle at 22% 28%, rgba(214, 25, 28, 0.6), transparent 55%), linear-gradient(160deg, #2c0505, #0b0b0b 72%); }
.tile-buy { background: radial-gradient(circle at 22% 28%, rgba(37, 211, 102, 0.38), transparent 55%), linear-gradient(160deg, #04210f, #0b0b0b 72%); }
.tile-mark { position: absolute; top: 9px; right: 12px; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.05em; color: var(--gold); }
.tile-icon { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; }
.tile-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 185, 13, 0.45)); }
.tile-name { font-family: var(--font-head); font-size: clamp(1.15rem, 3.4vw, 1.45rem); font-weight: 800; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.tile-sub { margin-top: 4px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Panel list rows ---------- */
.home .grid { display: flex; flex-direction: column; gap: 14px; }
.home .card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: stretch;
  padding: 0; height: 104px; overflow: hidden;   /* every row the same size */
  background: var(--row-bg);
  border: 1px solid var(--border); border-right: 3px solid var(--gold); border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.home .card:hover { transform: translateY(-2px); border-color: rgba(255, 185, 13, 0.5); border-right-color: var(--gold); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.home .card-logo {
  margin: 0; height: 100%; padding: 8px;
  border: 0; border-radius: 0; background: var(--logo-bg);
}
.home .card-logo .logo-fallback { font-size: 0.8rem; color: var(--gold); }
.home .card-body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 12px 12px 14px; min-width: 0; }
.home .card-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home .card-name .badge { flex-shrink: 0; font-size: 0.56rem; padding: 0.2rem 0.5rem; background: var(--gold); color: #111; }
.home .card h3 { font-size: 1rem; font-weight: 700; line-height: 1.25; margin: 0; color: var(--text); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home .original-star { width: 14px; height: 14px; }
.home .card-url { font-size: 0.8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin: 0; align-self: flex-start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home .card-url:hover { color: var(--gold-ink); }
.home .card-rate { display: flex; align-items: baseline; gap: 4px; border: 0; padding: 0; margin: 2px 0 0; }
.home .rate-label { display: inline; margin: 0; font-size: 0.84rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gold-ink); }
.home .rate-value { font-size: 0.92rem; font-weight: 800; color: var(--gold-ink); line-height: 1.2; }
.home .rate-period { font-size: 0.76rem; margin: 0; }

.home .card-actions {
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 7px;
  padding: 12px 14px 12px 0; min-width: 108px;
}
.home .card-actions .btn {
  padding: 0.6rem 0.9rem; border-radius: 8px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
}
.home .card-actions .btn:hover { transform: none; }
.home .card .btn-buy {               /* overrides .btn-premium; class kept for click tracking */
  background: var(--gold); color: #111; border: 1px solid var(--gold); box-shadow: none;
}
.home .card .btn-buy::before { display: none; }
.home .card .btn-buy:hover { background: #ffc93c; color: #111; box-shadow: 0 6px 18px rgba(255, 185, 13, 0.35); }
.home .card .js-demo { background: transparent; color: var(--gold-ink); border-color: rgba(255, 185, 13, 0.55); }
.home .card .js-demo:hover { background: rgba(255, 185, 13, 0.1); }
.home .card-rate .btn-link { margin-left: 10px; }
.btn-link {
  padding: 2px; border: 0; cursor: pointer; text-align: center;
  font-size: 0.74rem; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 2px;
}
.btn-link:hover { color: var(--gold-ink); }
.home .empty { padding: 20px 0 0; }

/* ---------- Features / steps / terms / FAQ / contact ---------- */
.home .features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.home .feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.home .feature:hover { border-color: rgba(255, 185, 13, 0.45); }
.home .feature-icon { width: 42px; height: 42px; margin-bottom: 12px; }
.home .feature h3 { font-size: 1rem; }
.home .feature p { font-size: 0.88rem; }

.home .steps { display: flex; flex-direction: column; gap: 12px; }
.home .step { display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.home .step-num { flex-shrink: 0; width: 36px; height: 36px; margin: 0; background: var(--gold); color: #111; }
.home .step h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.home .step p { font-size: 0.9rem; }

.home .terms { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.home .term { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 8px; }
.home .term:hover { border-color: rgba(255, 185, 13, 0.45); }
.home .term-value { font-weight: 500; font-size: 1.55rem; color: var(--gold-ink); margin: 0 0 4px; }
.home .term-label { font-size: 0.66rem; color: var(--text); margin: 0; }

.home .faq { gap: 10px; }
.home .faq details { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid transparent; border-radius: 12px; }
.home .faq details[open] { border-color: var(--border); border-left-color: var(--gold); }
.home .faq summary { font-size: 0.97rem; }
.home .faq summary::after { color: var(--gold-ink); }

.home .cta {
  text-align: center; padding: 30px 20px; border-radius: 18px;
  border: 1px solid rgba(255, 185, 13, 0.35);
  background: radial-gradient(80% 100% at 50% 0%, rgba(255, 185, 13, 0.14), transparent 70%), var(--surface);
}
.home .cta h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.home .cta .lead { font-size: 0.95rem; margin: 0 auto 1.4rem; }

/* ---------- Footer ---------- */
.home .site-footer { background: transparent; border-top: 0; padding: 34px 0 10px; }
.home .footer-links {
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
}
.home .footer-links a { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.home .footer-links a:hover { color: var(--gold-ink); }
.help-box {
  margin: 22px 0 16px; padding: 16px 18px; border-radius: 12px; text-align: center;
  background: var(--gold); color: #111;
}
.help-box p { margin: 0 0 10px; font-size: 1.05rem; font-weight: 500; }
.help-icons { display: flex; justify-content: center; gap: 22px; }
.help-icons a { color: #111; display: inline-flex; transition: transform 0.15s ease; }
.help-icons a:hover { transform: scale(1.15); }
.help-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home .legal { color: var(--muted); font-size: 0.76rem; text-align: center; margin: 0 0 10px; }
.home .legal strong { color: var(--text); }
.home .copyright { text-align: center; font-size: 0.86rem; color: var(--text); margin: 0; }

/* ---------- Bottom tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; pointer-events: none; }
.home .tabbar .tabbar-inner {
  pointer-events: auto;
  max-width: calc(var(--shell) - 20px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 8px 4px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-size: 0.8rem; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--gold-ink); }
.tab.active { background: var(--gold); color: #111; }

/* Floating chat buttons sit inside the column, above the tab bar */
.home .float-contacts { bottom: calc(var(--tabbar-h) + 18px); right: max(14px, calc(50% - var(--shell) / 2 + 14px)); }

/* ---------- Light theme touches ---------- */
[data-theme="light"] .home .site-header .header-inner,
[data-theme="light"] .tabbar-inner { box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12); }
[data-theme="light"] .home .card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .type-tile, .home .card, .tab, .offer-icon, .help-icons a { transition: none; }
  .banner-tag { transform: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 600px) {
  .home .app-shell { padding: 0 12px; }
  .home .site-header .header-inner { padding: 0 10px; height: 60px; }
  .home .brand-name { font-size: 1.2rem; }
  .home .brand-mark-wrap, .home .brand-mark { width: 30px; height: 30px; }
  .btn-light { padding: 0.48rem 0.75rem; font-size: 0.82rem; }

  .offer-card { grid-template-columns: 60px 1fr 60px; gap: 4px; padding: 20px 8px 18px; }
  .offer-side { font-size: 0.6rem; letter-spacing: 0.03em; }
  .home .offer-label { font-size: 0.64rem; letter-spacing: 0.1em; }
  .offer-pill { white-space: nowrap; font-size: 0.56rem; padding: 4px 8px; letter-spacing: 0.03em; }

  .home .banner { padding: 22px 16px 18px; }
  .home .banner .lead { font-size: 0.92rem; margin-bottom: 1.1rem; }
  .banner-tag { display: none; }
  .home .hero-actions .btn { flex: 1 1 auto; padding: 0.65rem 0.7rem; font-size: 0.8rem; white-space: nowrap; }

  /* panel types scroll sideways, like the reference carousel */
  .type-tiles {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
    scrollbar-width: none;
  }
  .type-tiles::-webkit-scrollbar { display: none; }
  .type-tile { scroll-snap-align: start; }

  .home .features { grid-template-columns: 1fr; }
  .home .terms { grid-template-columns: repeat(2, 1fr); }

  .home .card { grid-template-columns: 80px minmax(0, 1fr) auto; height: 96px; }
  .home .card-logo { padding: 6px; }
  .home .card-body { padding: 10px 8px 10px 11px; }
  .home .card h3 { font-size: 0.92rem; line-height: 1.2; }
  .home .card-url { font-size: 0.74rem; }
  .home .card-name { gap: 6px; }
  .home .card-actions { min-width: 86px; padding: 10px 10px 10px 0; gap: 6px; }
  .home .card-actions .btn { padding: 0.55rem 0.5rem; font-size: 0.7rem; letter-spacing: 0.04em; }

  .tab { font-size: 0.72rem; padding: 7px 2px; }
  .tab svg { width: 20px; height: 20px; }
}
@media (max-width: 380px) {
  .home .theme-toggle { display: none; }
  .home #top .brand-name { display: inline; font-size: 1.1rem; }   /* room for it once the theme button is hidden */
}

/* =====================================================================
   PREMIUM POLISH (6 Oct 2026) — same look, finer finish.
   Translucent chrome, light-catching edges, size-specific tracking,
   instant press feedback, one easing curve everywhere and a sliding
   tab indicator. Fallbacks for reduced motion / transparency / contrast.
   ===================================================================== */
body.home {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* critically-damped feel, no overshoot */
  --hairline: rgba(255, 255, 255, 0.07);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.06);   /* light catching the top edge */
  --chrome-bg: rgba(26, 26, 26, 0.74);
  -webkit-tap-highlight-color: transparent;
  /* faint warm glow behind the column, so the page reads as lit, not flat */
  background:
    radial-gradient(900px 520px at 50% -160px, rgba(255, 185, 13, 0.075), transparent 70%) no-repeat,
    var(--bg);
}
[data-theme="light"] body.home {
  --hairline: rgba(15, 23, 42, 0.08);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --chrome-bg: rgba(255, 255, 255, 0.78);
}
.home ::selection { background: rgba(255, 185, 13, 0.35); color: inherit; }
.home a, .home button { touch-action: manipulation; }   /* no tap delay */

/* ---------- Typography: tracking and leading by size ---------- */
.home .banner h1 { letter-spacing: -0.025em; line-height: 1.06; }
.home .title-line { letter-spacing: -0.005em; }
.home .card h3, .home .feature h3, .home .step h3, .home .cta h3 { letter-spacing: -0.01em; }
.home .stats b, .home .term-value, .home .rate-value, .home .offer-rate, .home .count {
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.home .stats span, .home .term-label, .offer-side, .home .offer-label { letter-spacing: 0.06em; }
.home .section-desc, .home .lead { line-height: 1.65; }

/* ---------- Translucent chrome: header + tab bar (content scrolls under) ---------- */
.home .site-header .header-inner,
.home .tabbar .tabbar-inner,
.home .site-nav, .home .site-nav.open {
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
          backdrop-filter: blur(20px) saturate(170%);
}
.home .site-header .header-inner {
  box-shadow: var(--edge-light), 0 1px 0 var(--hairline), 0 12px 32px rgba(0, 0, 0, 0.42);
}
.home .tabbar .tabbar-inner {
  position: relative; isolation: isolate;
  box-shadow: var(--edge-light), 0 -1px 0 var(--hairline), 0 -14px 34px rgba(0, 0, 0, 0.5);
}

/* Sliding tab indicator (added by js/main.js) */
.tab-indicator {
  position: absolute; left: 0; top: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
  border-radius: 12px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #ffc93c 0%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(255, 185, 13, 0.28);
}
.tabbar-inner.ready .tab-indicator {
  transition: transform 420ms var(--ease-out), width 420ms var(--ease-out), opacity 200ms ease;
}
.tabbar-inner.has-indicator .tab.active { background: transparent; }
.tab { transition: color 220ms var(--ease-out), transform 100ms ease-out; }
.tab:active { transform: scale(0.94); }

/* ---------- Instant press feedback (on press, not release) ---------- */
.home .btn, .offer-side, .type-tile, .help-icons a, .btn-light, .home .nav-toggle, .home .theme-toggle {
  transition-timing-function: var(--ease-out);
}
.home .btn:active, .btn-light:active, .home .nav-toggle:active, .home .theme-toggle:active {
  transform: scale(0.97); transition-duration: 100ms;
}
.offer-side:active .offer-icon { transform: scale(0.92); transition-duration: 100ms; }
.type-tile:active { transform: scale(0.98); transition-duration: 100ms; }
.home .btn:focus-visible, .tab:focus-visible, .type-tile:focus-visible, .offer-side:focus-visible, .home .card a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ---------- Gold: a lit surface, not flat paint ---------- */
.home .btn-gold, .home .card .btn-buy, .help-box, .home .step-num, .home .card-name .badge {
  background: linear-gradient(180deg, #ffc93c 0%, var(--gold) 55%, #f3a800 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.home .card .btn-buy:hover, .home .btn-gold:hover {
  background: linear-gradient(180deg, #ffd25c 0%, #ffc021 55%, #f7ae00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(255, 185, 13, 0.32);
}

/* Offer card: layered depth and a single light sweep on arrival */
.offer-card {
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 18px 40px -12px rgba(255, 185, 13, 0.35);
}
.offer-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: offerSheen 1.6s var(--ease-out) 0.5s 1 both;
}
@keyframes offerSheen { to { transform: translateX(110%); } }
.offer-icon { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); }

/* ---------- Surfaces: hairlines and top-edge light ---------- */
.home .banner { box-shadow: var(--edge-light), 0 20px 50px -20px rgba(0, 0, 0, 0.8); }
.home .card, .home .feature, .home .step, .home .term, .home .faq details, .home .cta, .home .search, .home .count {
  border-color: var(--hairline);
}
.home .card, .home .feature, .home .step, .home .term, .home .faq details {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 60%);
  box-shadow: var(--edge-light);
}
.home .faq details[open] { border-left-color: var(--gold); }
[data-theme="light"] .home .card, [data-theme="light"] .home .feature, [data-theme="light"] .home .step,
[data-theme="light"] .home .term, [data-theme="light"] .home .faq details {
  background-image: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Panel rows: gold edge as a lit gradient bar, logo tile separated by a hairline */
.home .card { position: relative; border-right: 1px solid var(--hairline); }
.home .card::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; pointer-events: none;
  background: linear-gradient(180deg, #ffd35a 0%, var(--gold) 45%, #c98c00 100%);
}
.home .card-logo { box-shadow: inset -1px 0 0 var(--hairline); }
.home .card, .type-tile, .home .feature, .home .term {
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.home .card:hover {
  border-color: rgba(255, 185, 13, 0.32);
  box-shadow: var(--edge-light), 0 14px 32px -10px rgba(0, 0, 0, 0.7);
}
.home .card-logo img { transition: transform 360ms var(--ease-out); }
.home .card:hover .card-logo img { transform: scale(1.04); }

/* Popular / Trending: a small tag pinned to the logo tile's corner, so names keep the full width */
.home .card-name .badge {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  font-size: 0.5rem; padding: 0.18rem 0.42rem; letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Panel-type tiles: depth inside the frame */
.type-tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -40px 60px -30px rgba(0, 0, 0, 0.6); }
.type-tile:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -40px 60px -30px rgba(0, 0, 0, 0.6), 0 16px 34px -12px rgba(0, 0, 0, 0.8);
}

/* Section underline: a lit gold stroke */
.home .title-line::after { background: linear-gradient(90deg, #ffd35a, var(--gold) 50%, rgba(255, 185, 13, 0.25)); }

/* Search: soft focus halo */
.home .search { transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.home .search:focus-within { border-color: rgba(255, 185, 13, 0.6); box-shadow: 0 0 0 4px rgba(255, 185, 13, 0.12); }

/* ---------- Scroll reveal: shorter travel, one easing curve ---------- */
.home .reveal { transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
.home .reveal.pending { transform: translateY(12px); }

/* ---------- Modals: the material arrives (dim + blur + scale from slightly smaller) ---------- */
.home .modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  animation: scrimIn 240ms ease-out both;
}
.home .modal-card {
  box-shadow: var(--edge-light), 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  animation: sheetIn 320ms var(--ease-out) both;
}
.home .welcome-card { animation: sheetIn 320ms var(--ease-out) both, welcome-border-run 4.5s linear infinite; }  /* keep its running border */
@keyframes scrimIn { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px) scale(0.965); } }

/* Menu drops from the bar it belongs to */
.home .site-nav.open { transform-origin: top center; animation: menuIn 260ms var(--ease-out) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(0.985); } }

/* Floating chat button: a real object */
.home .float-whatsapp { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -6px rgba(37, 211, 102, 0.55); }
.home .float-btn:active { transform: scale(0.94); }

/* ---------- Accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  .offer-card::after { animation: none; display: none; }
  .home .reveal, .home .reveal.pending { transform: none; }
  .tabbar-inner.ready .tab-indicator { transition: opacity 150ms ease; }
  .home .modal-card, .home .site-nav.open { animation: fadeOnly 180ms ease both; }
  .home .card:hover .card-logo img, .home .card:hover, .type-tile:hover { transform: none; }
}
@keyframes fadeOnly { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .home .site-header .header-inner, .home .tabbar .tabbar-inner, .home .site-nav, .home .site-nav.open {
    background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .home .modal-backdrop { background: rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  body.home { --hairline: rgba(255, 255, 255, 0.3); }
  .home .card-url, .home .section-desc { color: var(--text); }
}
