/* ============================================================
   Deriv Partners — Landing Page Styles
   Organised: tokens → base → layout → components → sections → responsive
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --red: #ff444f;
  --red-dark: #e02d38;
  --ink: #0e0e0e;
  --ink-2: #15171c;
  --muted: #6b7280;
  --line: #ececef;
  --bg: #ffffff;
  --soft: #fafafb;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(14, 14, 14, 0.1);
  --maxw: 1120px;
  --font: "Manrope", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
section {
  padding: 78px 0;
}
.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center {
  text-align: center;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255, 68, 79, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  will-change: transform;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 68, 79, 0.42);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 68, 79, 0.55);
  background: var(--red-dark);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}
.arrow {
  transition: transform 0.18s ease;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
}
.logo .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 68, 79, 0.2);
}
.nav .btn {
  padding: 11px 22px;
  font-size: 15px;
  white-space: nowrap; /* keep "Join now" on one line */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(900px 500px at 80% -10%, rgba(255, 68, 79, 0.45), transparent 60%),
    linear-gradient(160deg, #15171c 0%, #0e0e0e 100%);
  padding: 96px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  max-width: 14ch;
}
.hero h1 .hl {
  color: var(--red);
}
.hero p.sub {
  color: #c7cbd4;
  font-size: 19px;
  margin: 22px 0 30px;
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #aeb4bf;
  font-size: 14px;
}
.stars {
  color: #ffc24b;
  letter-spacing: 2px;
  font-size: 16px;
}
.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.hero-card .row:first-child {
  padding-top: 0;
}
.hero-card .row:last-child {
  border: 0;
  padding-bottom: 0;
}
.hero-card .k {
  color: #aeb4bf;
  font-size: 15px;
}
.hero-card .v {
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.hero-card .v small {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}
.hero-card .cap {
  font-size: 12px;
  color: #8b909b;
  margin-top: 18px;
  text-align: center;
}

/* ---------- Stat bar ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 0;
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 34px 0;
}
.stat {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child {
  border-right: 0;
}
.stat .num {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  color: #fff;
}
.stat .num span {
  color: var(--red);
}
.stat .lbl {
  color: #9aa0ab;
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Earn cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 46px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 68, 79, 0.4);
}
.card .tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card h3 {
  font-size: 24px;
  margin: 10px 0 8px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
}
.card .big {
  font-size: 40px;
  font-weight: 800;
  margin: 18px 0 4px;
}
.card .big span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}
.card.dark {
  background: var(--ink-2);
  color: #fff;
  border-color: transparent;
}
.card.dark p {
  color: #aeb4bf;
}
.card .pill {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255, 68, 79, 0.12);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.card.dark .pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Master / network highlight ---------- */
.network {
  background: radial-gradient(700px 400px at 100% 0%, rgba(255, 68, 79, 0.5), transparent 55%),
    linear-gradient(160deg, #15171c, #0e0e0e);
  color: #fff;
  border-radius: 28px;
  padding: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.network h2 {
  text-align: left;
  font-size: clamp(28px, 3.6vw, 40px);
}
.network p {
  color: #c7cbd4;
  font-size: 17px;
  margin-top: 16px;
  max-width: 48ch;
}
.net-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}
.net-stat .n {
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
}
.net-stat .t {
  color: #aeb4bf;
  margin-top: 6px;
}
.net-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 22px 0;
}
.net-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.net-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #dfe2e8;
  font-size: 15.5px;
}
.net-list .ck {
  color: var(--red);
  font-weight: 800;
  flex: 0 0 auto;
}

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 22px 26px;
  text-align: center;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Top accent bar (per tier) */
.tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tier-accent, var(--red));
}
.tier:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(14, 14, 14, 0.13);
  border-color: transparent;
}
/* Step number */
.tier-step {
  position: absolute;
  top: 15px;
  right: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cbced4;
}
.tier .badge {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  margin: 6px auto 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(14, 14, 14, 0.1);
}
.tier .badge .ic {
  width: 28px;
  height: 28px;
}
.tier h3 {
  font-size: 18px;
}
.tier .bonus {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 4px;
  line-height: 1.05;
  background: var(--tier-accent, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.tier small {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Per-tier accent + metallic badge */
.t-bronze {
  --tier-accent: linear-gradient(90deg, #e0b487, #a96a2b);
}
.t-silver {
  --tier-accent: linear-gradient(90deg, #cbd0d8, #8b929d);
}
.t-gold {
  --tier-accent: linear-gradient(90deg, #f7d56a, #c79212);
}
.t-plat {
  --tier-accent: linear-gradient(90deg, #ff8a90, #ff444f);
}
.b-bronze {
  background: linear-gradient(145deg, #f4ddc2, #d6a263);
  color: #7c4a18;
}
.b-silver {
  background: linear-gradient(145deg, #eef0f3, #c2c8d0);
  color: #676e79;
}
.b-gold {
  background: linear-gradient(145deg, #fdeeb8, #f4cd5d);
  color: #936c10;
}
.b-plat {
  background: linear-gradient(145deg, #ff6e76, #ff444f);
  color: #fff;
}

/* Featured (Platinum) — premium dark card */
.tier.feat {
  border-color: transparent;
  color: #fff;
  padding-top: 44px;
  background: radial-gradient(420px 220px at 50% -10%, rgba(255, 68, 79, 0.5), transparent 60%),
    linear-gradient(165deg, #1b1d23, #0e0e0e);
  box-shadow: 0 26px 60px rgba(255, 68, 79, 0.28);
}
.tier.feat .tier-step {
  display: none;
}
.tier.feat:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 70px rgba(255, 68, 79, 0.4);
}
.tier.feat h3 {
  color: #fff;
}
.tier.feat .bonus {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.tier.feat small {
  color: #aeb4bf;
  border-top-color: rgba(255, 255, 255, 0.14);
}
.tier.feat .tier-step {
  color: rgba(255, 255, 255, 0.45);
}
/* "Top tier" ribbon */
.tier.feat::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(255, 68, 79, 0.5);
}

/* ---------- Why clients ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.why .item {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.why .ico {
  font-size: 26px;
  margin-bottom: 12px;
}
.why h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.why p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.ben {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ben .ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 68, 79, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.ben h3 {
  font-size: 17px;
}
.ben p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 3px;
}

/* ---------- Payouts ---------- */
.payouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.po {
  background: var(--ink-2);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.po .region {
  color: #aeb4bf;
  font-size: 14px;
}
.po .amt {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  margin-top: 8px;
}

/* ---------- Final CTA ---------- */
.final {
  background: linear-gradient(135deg, var(--red), #ff6a73);
  color: #fff;
  text-align: center;
  border-radius: 30px;
  padding: 70px 30px;
  position: relative;
  overflow: hidden;
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 20% 120%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.final h2 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 48px);
  position: relative;
}
.final p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  margin: 16px auto 30px;
  max-width: 42ch;
  position: relative;
}
.final .btn-primary {
  background: #fff;
  color: var(--red);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.final .btn-primary:hover {
  background: #fff;
  transform: translateY(-3px);
}
.final .note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #8b909b;
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
}
footer .logo {
  color: #fff;
  justify-content: center;
  margin-bottom: 14px;
}
footer a {
  color: #c7cbd4;
}
.risk {
  max-width: 760px;
  margin: 16px auto 0;
  line-height: 1.5;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .network {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .tiers,
  .why,
  .payouts {
    grid-template-columns: 1fr 1fr;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .stats-in {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
  }
  .network {
    padding: 36px;
  }
}
@media (max-width: 520px) {
  .tiers,
  .why,
  .payouts {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
  .nav .logo span.full {
    display: none;
  }
}

/* ============================================================
   v2 — Icons, mockups, calculator, refined components
   ============================================================ */

/* ---------- Inline SVG icons ---------- */
.ic {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}
.ic-sm {
  width: 15px;
  height: 15px;
}

/* ---------- Brand logo (nav + footer) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}
.foot-brand {
  display: inline-flex;
  background: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.foot-brand img {
  height: 32px;
  width: auto;
  display: block;
}

/* ---------- Nav links ---------- */
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 22px;
}

/* ---------- Nav actions (lang + CTA) ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Language switcher ---------- */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f2f4;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-btn:hover {
  background: #e8eaee;
}
.lang-btn > .ic {
  color: var(--muted);
}
.lang-btn .caret {
  transition: transform 0.2s ease;
}
.lang.open .caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 178px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.lang.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-menu li {
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14.5px;
  color: #33363d;
  cursor: pointer;
  transition: background 0.12s ease;
}
.lang-menu li:hover {
  background: #f4f5f7;
}
.lang-menu li[aria-selected="true"] {
  color: var(--red);
  background: rgba(255, 68, 79, 0.08);
}

/* ---------- Hindi (Devanagari) typography tuning ---------- */
.lang-hi {
  line-height: 1.62;
}
.lang-hi h1,
.lang-hi h2,
.lang-hi h3 {
  letter-spacing: 0;
  line-height: 1.25;
}
.lang-hi .hero h1 {
  line-height: 1.3;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: #44474f;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--red);
}

/* ---------- Stars (now SVG) ---------- */
.stars {
  display: inline-flex;
  gap: 1px;
  color: #ffc24b;
}
.stars .ic {
  width: 17px;
  height: 17px;
}

.eyebrow-on-dark {
  background: rgba(255, 68, 79, 0.18);
}

/* ---------- HERO MOCKUP (browser + phone) ---------- */
.hero-mock {
  position: relative;
  padding-bottom: 30px;
}
.browser {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #f4f5f7;
  border-bottom: 1px solid #e7e9ed;
}
.browser-bar span[class^="dot-"] {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.browser-bar .url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border: 1px solid #e7e9ed;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-bar .url .ic-sm { color: #9aa0ab; }

.dash {
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fbfbfc);
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dash-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dash-balance {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
}
.dash-balance .cents {
  font-size: 22px;
  color: var(--muted);
}
.dash-up {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}
.dash-up .ic-sm { color: #16a34a; }
.dash-pill {
  background: rgba(255, 68, 79, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.dash-chart {
  margin: 14px 0 8px;
}
.spark {
  width: 100%;
  height: 84px;
  display: block;
}
.dash-rows {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.dash-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.dash-row .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
.av1 { background: #6366f1; }
.av2 { background: var(--red); }
.av3 { background: #0ea5e9; }
.dash-rc { flex: 1; line-height: 1.25; }
.dash-rc b { font-size: 13.5px; }
.dash-rc small { display: block; color: var(--muted); font-size: 11.5px; }
.dash-amt {
  font-weight: 800;
  font-size: 14px;
  color: #16a34a;
}

/* Phone overlay */
.phone {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 152px;
  background: #0e0e0e;
  border-radius: 26px;
  padding: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #2a2d34;
}
.phone-notch {
  width: 52px;
  height: 5px;
  background: #2a2d34;
  border-radius: 99px;
  margin: 2px auto 8px;
}
.phone-screen {
  background: linear-gradient(160deg, #1b1d23, #101216);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  color: #fff;
}
.ph-label { font-size: 11px; color: #aeb4bf; }
.ph-amt { font-size: 26px; font-weight: 800; margin: 2px 0 10px; }
.ph-btn {
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ph-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 12px;
}
.ph-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--red), rgba(255, 68, 79, 0.35));
  border-radius: 3px;
}

/* ---------- Card icon badge ---------- */
.card-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 68, 79, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-ic .ic { width: 24px; height: 24px; }
.card.dark .card-ic { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Net list / stat icons ---------- */
.net-list .ck {
  color: var(--red);
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.net-cta { margin-top: 26px; }
.net-stat-ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 68, 79, 0.16);
  color: var(--red);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.net-stat-ic .ic { width: 26px; height: 26px; }

/* ---------- Tier + benefit + why icons ---------- */
.tier .badge .ic { width: 24px; height: 24px; }
.ben .ico .ic,
.why .ico .ic { width: 24px; height: 24px; }
.why .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 68, 79, 0.1);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* ============================================================
   COMMISSION CALCULATOR
   ============================================================ */
.calc {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  margin-top: 46px;
  align-items: start;
}
.calc-controls {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}
.calc-field label,
.calc-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 12px;
}
.calc-field output {
  background: rgba(255, 68, 79, 0.1);
  color: var(--red);
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
  min-width: 54px;
  text-align: center;
}

/* Range input */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #ececef;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(255, 68, 79, 0.5);
  cursor: pointer;
  transition: transform 0.12s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(255, 68, 79, 0.5);
  cursor: pointer;
}

/* Tier segmented control */
.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #f1f2f4;
  padding: 5px;
  border-radius: 12px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 9px 4px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Result panel */
.calc-result {
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 68, 79, 0.4), transparent 55%),
    linear-gradient(160deg, #15171c, #0e0e0e);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  position: sticky;
  top: 90px;
}
.cr-label { color: #aeb4bf; font-size: 14px; font-weight: 600; }
.cr-total {
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0 20px;
}
.cr-split {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cr-item { display: flex; align-items: center; gap: 12px; }
.cr-dot { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.dot-direct { background: var(--red); }
.dot-network { background: #ffb020; }
.cr-k { color: #aeb4bf; font-size: 13px; }
.cr-v { font-size: 19px; font-weight: 800; }
.cr-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px 0 10px;
  overflow: hidden;
  display: flex;
}
.cr-bar-fill {
  display: block;
  height: 100%;
  background: var(--red);
  width: 70%;
  transition: width 0.4s ease;
}
.cr-annual { color: #c7cbd4; font-size: 15px; margin-bottom: 20px; }
.cr-annual strong { color: #fff; font-size: 18px; }
.btn-block { width: 100%; justify-content: center; }
.cr-note { font-size: 11.5px; color: #8b909b; margin-top: 14px; text-align: center; }

/* ---------- Final CTA badges ---------- */
.final-badges {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
}
.final-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Footer refinements ---------- */
.foot-tag { max-width: 560px; margin: 0 auto; }
.risk strong { color: #c7cbd4; }
.foot-copy { margin-top: 16px; opacity: 0.8; }

/* ============================================================
   Responsive — v2 (professional mobile-first refinements)
   ============================================================ */

/* ---- Laptop / small desktop ---- */
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-mock { max-width: 460px; margin: 14px auto 0; }
  .hero { padding-top: 76px; }
  .network { padding: 32px; border-radius: 22px; }
  .final { padding: 56px 26px; border-radius: 24px; }
}

/* ---- Large phone ---- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  section { padding: 54px 0; }

  /* Nav — keep logo + lang + CTA on one tidy row */
  .nav-in { height: 60px; }
  .brand-logo { height: 30px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav .btn { padding: 10px 15px; font-size: 14px; flex-shrink: 0; }
  /* Compact language switcher: globe only */
  .lang-btn { padding: 9px; flex-shrink: 0; }
  .lang-btn #langCurrent,
  .lang-btn .caret { display: none; }

  /* Hero */
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 44px); max-width: 100%; }
  .hero p.sub { font-size: 16.5px; margin: 18px 0 26px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .trust { font-size: 13px; align-items: flex-start; }

  /* Hide the desktop phone flourish for a clean single mock */
  .phone { display: none; }

  /* Typography */
  .lead { font-size: 16px; }
  h2 { font-size: clamp(25px, 6.5vw, 34px); }

  /* Cards / sections */
  .card { padding: 26px; }
  .card .big { font-size: 34px; }
  .network { padding: 26px; }
  .net-stat { padding: 22px; }

  /* Calculator */
  .calc-controls { padding: 22px; }
  .calc-result { padding: 26px; }
  .cr-total { font-size: 40px; }

  /* Final CTA */
  .final { padding: 48px 22px; }
  .final .btn-lg { width: 100%; justify-content: center; }
  .final-badges { gap: 14px 18px; }
}

/* ---- Small phone ---- */
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .brand-logo { height: 24px; }
  .nav .btn { padding: 9px 12px; font-size: 13px; }
  .seg { gap: 4px; padding: 4px; }
  .seg-btn { padding: 9px 2px; font-size: 11px; }
  .dash-balance { font-size: 30px; }
  .stat .num { font-size: 26px; }
  .foot-brand { padding: 4px 10px; }
  .foot-brand img { height: 28px; }
}
