:root {
  /* colors */
  --c-text: #F6F5FF;
  --c-accent: #FFA700;
  --c-muted: #9EA9C7;
  --c-bg: #0A0D1C;
  /* color of the bg-image overlay on section edges (from Figma gradient #0A0D1C / #0D1128 / #10122B) */
  --edge: #0D1128;
  --edge-rgb: 13, 17, 40;
  /* vertical overlay: solid edge color on both section edges, long eased fade to the middle */
  --tint-both: linear-gradient(180deg,
    var(--edge) 0%,
    rgba(var(--edge-rgb), .8) 12%,
    rgba(var(--edge-rgb), .55) 28%,
    rgba(var(--edge-rgb), .4) 45%,
    rgba(var(--edge-rgb), .4) 55%,
    rgba(var(--edge-rgb), .55) 72%,
    rgba(var(--edge-rgb), .8) 88%,
    var(--edge) 100%);
  /* side overlay (desktop only): fades the image into the page bg on the left and right */
  --tint-side: none;
  /* page bg: the Figma gradient colors, but the ramps are short (in px) so almost the whole page is exactly --edge.
     That way the side fade of the images meets the same color everywhere, including the first sections */
  --page-bg: linear-gradient(180deg,
    #0A0D1C 0,
    #0D1128 260px,
    #0D1128 calc(100% - 1200px),
    #10122B 100%);
  --gold-gradient: linear-gradient(180deg, #FFC961 0%, #FFE5B3 50%, #FFA700 100%);

  /* layout */
  --page-max: 1180px;                     /* max page width */
  --bg-tint: none;                        /* dark overlay on section bg images, set per section */
  --container: 480px;                    /* max content width (grows at breakpoints) */
  --gutter: clamp(16px, 6vw, 24px);       /* min side padding */
  /* side padding that keeps content centered in --container while backgrounds stay full-width */
  --pad-x: max(var(--gutter), calc((min(100vw, var(--page-max)) - var(--container)) / 2));
  --decor-h: clamp(70px, 28vw, 110px);    /* height of diagonal decor */
  --section-py: clamp(36px, 12vw, 48px);  /* vertical section padding */
  --font: 'Inter', sans-serif;

  /* fluid type: min, fluid (vw), max */
  --fs-title: clamp(28px, 10vw, 40px);
  --fs-text: clamp(14px, 3.9vw, 15px);
  --fs-btn: clamp(20px, 7vw, 28px);
}

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

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

/* the Debate now button gets noticed after a card click (class set from main.js):
   one smooth swell, a burst of glow and a single gleam across the button, instead of bouncing */
@keyframes btn-attn {
  0%   { scale: 1; }
  35%  { scale: 1.06; }
  100% { scale: 1; }
}
@keyframes btn-flash {
  0%   { box-shadow: 0 0 14px 1px var(--glow), inset 0 0 10px 1px var(--glow); opacity: .7; }
  30%  { box-shadow: 0 0 54px 14px var(--glow), inset 0 0 22px 5px var(--glow); opacity: 1; }
  100% { box-shadow: 0 0 14px 1px var(--glow), inset 0 0 10px 1px var(--glow); opacity: .7; }
}
@keyframes btn-gleam {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}
.btn::after {
  content: '';
  position: absolute;
  inset: 4% 0.5%;
  z-index: 1;
  border-radius: 5.5cqw;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
}
.btn.is-attn { animation: btn-attn 1.3s cubic-bezier(.3, 0, .2, 1) 1; }
.btn.is-attn::before { animation: btn-flash 1.3s ease-out 1; }
.btn.is-attn::after { animation: btn-gleam .9s ease-in-out .15s 1 both; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--page-bg) #0D1128; /* gradient from the Figma overlay colors */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* page is capped at 1180px (width of the bg images) and centered on wide screens */
.header,
main,
.footer {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
}

/* ---------- header ---------- */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad-x);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; }
.logo__img { width: 36px; height: auto; flex-shrink: 0; } /* logo.png is 120x115: keep its proportions */
.burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #2a3260;
  border-radius: 12px;
  background: #111832;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.burger:hover { border-color: #E9B54D; color: var(--c-accent); }
.burger:active { transform: scale(.94); }
a, button { cursor: pointer; }
.menu { display: none; }

/* ---------- sections (shared concept) ---------- */
.section {
  /* --bg-img and --bg-tint are set per section at the bottom of the file */
  background-color: var(--c-bg);
  background-image: var(--tint-side), var(--bg-tint), var(--bg-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--section-py) var(--pad-x);
}
.section__title {
  margin: 0 0 16px;
  font-size: var(--fs-title);
  overflow-wrap: break-word;
  font-weight: 700;
  line-height: 1.05;
}
.accent { color: var(--c-accent); }
.section__text {
  margin: 0 0 24px;
  font-size: var(--fs-text);
  line-height: 1.3;
  color: var(--c-muted);
}
.section__content { min-height: 100px; }
.section__note { margin: 24px 0 0; font-size: clamp(12px, 3.5vw, 13px); color: var(--c-muted); opacity: .7; }

/* ---------- button (image + our text) ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 350 / 52;   /* ratio of img/Buttom.png */
  container-type: inline-size; /* text scales with the button */
  max-width: var(--btn-max, none);
  margin-inline: auto;
  cursor: pointer;
  animation: btn-pulse 3.2s ease-in-out infinite;
}
.btn {
  --btn-pulse: 1.04;       /* how big the idle pulse gets (1 = no pulse) */
  transition: transform .2s ease, filter .2s ease;
}
.btn::before { transition: box-shadow .2s ease; }

/* hover: slightly bigger, brighter, stronger glow */
.btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.btn:hover::before {
  box-shadow: 0 0 22px 3px var(--glow), inset 0 0 14px 2px var(--glow);
}
/* active (pressed): shrinks and dims */
.btn:active {
  transform: scale(.95);
  filter: brightness(.95);
  transition-duration: .08s;
}
.btn:active::before {
  box-shadow: 0 0 8px 0 var(--glow), inset 0 0 6px 0 var(--glow);
}

/* alive buttons: gentle pulse of the whole button + blinking of its glow.
   `scale` is a separate property, so it does not clash with the transform used to center the Free button */
@keyframes btn-pulse {
  0%, 100% { scale: 1; }
  50%      { scale: var(--btn-pulse, 1.04); }
}
@keyframes btn-glow {
  0%, 100% { opacity: .55; }
  35%      { opacity: 1; }
  50%      { opacity: .7; }
  65%      { opacity: 1; }
}
.btn__bg {
  position: absolute;
  inset: 0;
  background: url(../img/Buttom.png) center / 100% 100% no-repeat;
}
/* same highlight as on the plan cards: lies above the image, outer glow + inset glow over the edge */
.btn { --glow: #FCE74E; }
.btn::before {
  content: '';
  position: absolute;
  inset: 4% 0.5%;
  z-index: 1;
  border-radius: 5.5cqw;   /* corner radius of the glow frame, scales with the button */
  box-shadow: 0 0 14px 1px var(--glow), inset 0 0 10px 1px var(--glow);
  mix-blend-mode: screen;
  transform: scale(1.02);
  pointer-events: none;
  animation: btn-glow 2.4s ease-in-out infinite;
}
.btn__text {
  z-index: 2;              /* text above the glow */
  position: relative;
  font-size: clamp(16px, 6.4cqw, 30px);
  white-space: nowrap;
  font-weight: 700;
  text-transform: uppercase;
  color: #1a1000;          /* dark brown on gold: far more contrast than white */
}

/* ---------- hero: live battles ---------- */
.hero .section__content { display: grid; gap: 24px; }
.live {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 24px;
  border: 1px solid var(--c-accent);
  border-radius: 24px;
  background: linear-gradient(180deg, #182243 0%, #10172E 100%);
}
.live__coin {
  width: clamp(72px, 22vw, 88px);
  aspect-ratio: 1;
  object-fit: contain;
}
.live__label {
  margin: 12px 0 0;
  font-size: clamp(18px, 6vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-muted);
}
.live__count {
  margin: 8px 0 0;
  font-size: clamp(52px, 19vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  animation: live-glow 3s ease-in-out infinite alternate;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* live counter: idle glow breathing + a small bump when the value changes (classes set from main.js) */
@keyframes live-glow {
  from { filter: drop-shadow(0 0 4px rgba(252, 231, 78, .2)); }
  to   { filter: drop-shadow(0 0 14px rgba(252, 231, 78, .5)); }
}
@keyframes live-up {
  0%   { translate: 0 6px; scale: .97; }
  100% { translate: 0 0;   scale: 1; }
}
@keyframes live-down {
  0%   { translate: 0 -6px; scale: .97; }
  100% { translate: 0 0;    scale: 1; }
}
.live__count.is-up   { animation: live-glow 3s ease-in-out infinite alternate, live-up .5s ease-out; }
.live__count.is-down { animation: live-glow 3s ease-in-out infinite alternate, live-down .5s ease-out; }

/* ---------- topics: cards ---------- */
.topics .section__content { display: grid; gap: 12px; }
.card {
  padding: clamp(14px, 5vw, 20px) clamp(16px, 6vw, 24px) clamp(16px, 5.5vw, 22px);
  border: 1px solid #2a3260;
  border-radius: 24px;
  background: #111832;
}
.card:nth-child(odd) { border-color: #E9B54D; } /* gold border on odd cards, as in the design */

/* alive cards: slow breathing + glowing ring in a wave (each card is delayed), hover/active feedback.
   Cards are links to the "Debate now" button (smooth scroll in main.js). */
.card {
  --card-glow: 233, 181, 77;                 /* gold on odd cards */
  position: relative;
  isolation: isolate;
  display: block;
  cursor: pointer;
  animation: card-breathe 3.6s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease;
}
.card:nth-child(even) { --card-glow: 140, 120, 255; } /* violet on even cards */
.card:nth-child(2) { animation-delay: .9s; }
.card:nth-child(3) { animation-delay: 1.8s; }
.card:nth-child(4) { animation-delay: 2.7s; }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(var(--card-glow), 0), inset 0 0 0 0 rgba(var(--card-glow), 0);
  animation: card-glow 3.6s ease-in-out infinite;
  animation-delay: inherit;
  transition: box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px) scale(1.02); filter: brightness(1.08); }
.card:hover::before {
  box-shadow: 0 0 26px 3px rgba(var(--card-glow), .5), inset 0 0 18px 0 rgba(var(--card-glow), .25);
  animation: none;
}
.card:active { transform: translateY(0) scale(.98); filter: brightness(.96); transition-duration: .08s; }

@keyframes card-breathe {
  0%, 100% { scale: 1; }
  50%      { scale: 1.012; }
}
@keyframes card-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--card-glow), 0), inset 0 0 0 0 rgba(var(--card-glow), 0); }
  50%      { box-shadow: 0 0 20px 1px rgba(var(--card-glow), .4), inset 0 0 14px 0 rgba(var(--card-glow), .2); }
}
.card__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 6.6vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  color: #FFD98F;
}
.card__text {
  margin: 0;
  font-size: var(--fs-text);
  line-height: 1.3;
  color: var(--c-muted);
}

/* ---------- rankings ---------- */
.rankings { position: relative; padding-bottom: 0; }
.rankings .section__content { position: relative; }

/* diagonal decor: overlaps the bottom of the standings window */
.rankings::before,
.rankings::after {
  content: '';
  position: absolute;
  left: calc(50% - 50vw); /* full viewport width: the line runs to the screen edges */
  width: 100vw;
  bottom: 0;
  height: var(--decor-h);
  z-index: 2;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.rankings::before { background: var(--c-accent); }                       /* gold edge */
.rankings::after  { top: auto; transform: translateY(2px); background: var(--edge); } /* navy fill */

.standings {
  padding: 16px clamp(8px, 3vw, 14px) 0;
  min-height: 380px;
  border: 1px solid #E9B54D;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: rgba(12, 18, 40, .85);
}
.standings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #2a3260;
}
.standings__title {
  margin: 0;
  font-size: clamp(16px, 5.2vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  color: #FFD98F;
}
.standings__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  animation: live-badge-blink 1.6s ease-in-out infinite;   /* the whole LIVE badge blinks */
}
.standings__live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 6px 1px rgba(255, 59, 59, .7);
}
@keyframes live-badge-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

.standings__list { display: grid; gap: 2px; }
.row {
  --avatar: clamp(30px, 9.5vw, 44px);
  --badge-w: clamp(38px, 11vw, 56px); /* reserved column so scores stay aligned */
  display: grid;
  grid-template-columns: clamp(22px, 7vw, 36px) var(--avatar) minmax(0, 1fr) auto var(--badge-w);
  align-items: center;
  gap: clamp(4px, 1.6vw, 8px);
  padding: 6px clamp(4px, 1.6vw, 8px);
  border: 1px solid transparent;
  border-radius: 10px;
}
.row--top1, .row--top3 { background: #1b2f3a; }
.row--you  { background: #1b2f3a; border-color: #a6e8c6; }
.row--dim  { background: #231a26; }

.row__rank { font-size: clamp(16px, 5.2vw, 22px); font-weight: 600; color: var(--c-muted); }
.row--top1 .row__rank { color: #E9B54D; }
.row--top3 .row__rank { color: #C4915B; }

.row__avatar {
  width: var(--avatar);
  height: var(--avatar);
  border-radius: 50%;
  background: url(../img/avatar-1.png) center / cover no-repeat;
}
.row:nth-child(even) .row__avatar { background-image: url(../img/avatar-2.png); }
.row__info { display: flex; flex-direction: column; min-width: 0; }
.row__name {
  font-size: clamp(13px, 4.2vw, 16px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__wins { font-size: clamp(11px, 3.4vw, 13px); color: var(--c-muted); }

.row__score { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.row__score b { font-size: clamp(14px, 4.6vw, 18px); font-weight: 600; }
.row__delta { font-size: clamp(11px, 3.4vw, 13px); font-weight: 600; color: #8fe3b0; }
.row__delta::before { content: '▲ '; font-size: 10px; }

.row__you {
  padding: 3px 0;
  border-radius: 999px;
  background: #c9f2dc;
  color: #10321f;
  font-size: clamp(10px, 3.3vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- pricing: plans (bg image + our text) ---------- */
.pricing .section__content { display: grid; gap: 16px; }

.plan {
  position: relative;
  display: block;
  container-type: inline-size; /* text sizes below are in cqw: they scale with the card */
  aspect-ratio: var(--plan-ratio, 354 / 72);
  --plan-max: 332px;          /* max card width */
  width: 100%;
  max-width: var(--plan-max);
  justify-self: center;       /* centered in its grid cell */
}
/* each card has its own image and its own proportions (img/potentials/1-4.png) */
.plan:nth-child(1) { --plan-img: url(../img/potentials/1.png); --plan-ratio: 354 / 77; }
.plan:nth-child(2) { --plan-img: url(../img/potentials/2.png); --plan-ratio: 358 / 81; }
.plan:nth-child(3) { --plan-img: url(../img/potentials/3.png); --plan-ratio: 354 / 72; }
.plan:nth-child(4) { --plan-img: url(../img/potentials/4.png); --plan-ratio: 354 / 72; }

/* Month image is 4px wider (glow) and has a 9px tab on top: widen it so the frame matches the other cards */
.plan--popular {
  width: 101.13%;
  max-width: calc(var(--plan-max) * 358 / 354); /* keeps the same frame size as the other cards */
  margin-top: 8px;
}

/* blurred highlight behind the card */
.plan { --glow: #B13BD9; cursor: pointer; }
.plan--popular { --glow: #FCE74E; }
.plan::before {
  content: '';
  position: absolute;
  /* lies ABOVE the card image (z-index 1): the outer shadow glows outside, the inset one slightly overlaps the border */
  inset: 4% 0.5% 3.5%;   /* in % so it scales with the card; the frame is a bit inset from the image edges */
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 0 14px 1px var(--glow), inset 0 0 10px 1px var(--glow);
  mix-blend-mode: screen;  /* only lightens, the card art stays visible */
  transform: scale(1.02);  /* the glow frame is 2% larger than the card frame */
  pointer-events: none;
}
/* the Month image has the frame inset from its edges: 9px tab on top, ~4px glow below, 2px on the sides (in % so it scales) */
.plan--popular::before { inset: 4% 0.56% 3%; }
.plan__info,
.plan__price { z-index: 2; }   /* text above the glow */

/* alive plans: they pulse one after another (12s cycle, each card is delayed by 3s, so one pulses every 3s) */
.plan {
  animation: plan-pulse 12s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease;
}
.plan:nth-child(2) { animation-delay: 3s; }
.plan:nth-child(3) { animation-delay: 6s; }
.plan:nth-child(4) { animation-delay: 9s; }
.plan::before {
  animation: plan-glow 12s ease-in-out infinite;
  animation-delay: inherit;
  transition: box-shadow .2s ease;
}
/* hover / active, like the buttons */
.plan:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.1); }
.plan:hover::before {
  box-shadow: 0 0 26px 3px var(--glow), inset 0 0 14px 2px var(--glow);
  animation: none;
}
.plan:active { transform: scale(.98); filter: brightness(.95); transition-duration: .08s; }

/* a gleam runs across the card during its turn (same frame as the glow) */
.plan::after {
  content: '';
  position: absolute;
  inset: 4% 0.5% 3.5%;
  z-index: 1;
  border-radius: 20px;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  animation: plan-gleam 12s ease-in-out infinite;
  animation-delay: inherit;
}
.plan--popular::after { inset: 4% 0.56% 3%; }
.plan:hover::after { animation: none; }

/* "heartbeat" at the start of each card's turn: two beats, then a pause while the others go */
@keyframes plan-pulse {
  0%, 13%, 100% { scale: 1; }
  3.3%          { scale: 1.06; }
  6.7%          { scale: 1; }
  9.3%          { scale: 1.035; }
}
@keyframes plan-glow {
  0%, 13%, 100% { box-shadow: 0 0 14px 1px var(--glow), inset 0 0 10px 1px var(--glow); }
  3.3%          { box-shadow: 0 0 36px 8px var(--glow), inset 0 0 18px 4px var(--glow); }
  6.7%          { box-shadow: 0 0 16px 2px var(--glow), inset 0 0 10px 1px var(--glow); }
  9.3%          { box-shadow: 0 0 28px 5px var(--glow), inset 0 0 14px 3px var(--glow); }
}
@keyframes plan-gleam {
  0%        { background-position: 160% 0; }
  7.5%, 100% { background-position: -60% 0; }
}

.plan__bg {
  position: absolute;
  inset: 0;
  background: var(--plan-img) center / 100% 100% no-repeat; /* frame + icon + divider + empty price pill */
}

.plan__info {
  position: absolute;
  left: 28%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}
.plan__name { font-size: 7.4cqw; font-weight: 600; line-height: 1.05; }
.plan__period { font-size: 4.2cqw; color: var(--c-text); opacity: .85; }

.plan__price {
  position: absolute;
  right: 3.9%;
  top: 50%;
  transform: translateY(-50%);
  width: 25.6%;             /* same box as the pill in the asset */
  text-align: center;
  font-size: 5.3cqw;
  font-weight: 700;
  white-space: nowrap;
}
.plan--popular .plan__price { color: #1a1000; right: 3.6%; width: 27.4%; top: 53%; } /* its pill sits a bit differently */

.plan__badge {
  position: absolute;
  top: 7%; /* a bit above the frame line (the line itself is at 11%) */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 34.08%;                 /* 122px of the 358px card image */
  aspect-ratio: 122 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6cqw;            /* room for the crown that is part of the image (cqw, since % would be of the card) */
  background: url(../img/potentials/2_2.png) center / 100% 100% no-repeat;
  color: #1a1000;
  font-size: 2.8cqw;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- free debate ---------- */
.free { position: relative; padding-bottom: 0; background-color: var(--edge); }
/* the chamber image is the bg of the content block, full-bleed (cancels the section side padding) */
.free .section__content {
  position: relative;
  z-index: 1;
  margin-inline: calc(var(--pad-x) * -1);
  aspect-ratio: 390 / 640;
  /* top of the image fades into the solid edge color (joint with the pricing section) */
  background:
    var(--tint-side),
    linear-gradient(180deg,
      var(--edge) 0%,
      rgba(var(--edge-rgb), .8) 12%,
      rgba(var(--edge-rgb), .45) 25%,
      rgba(var(--edge-rgb), 0) 45%),
    url(../img/bg/bg-5.webp) center top / cover no-repeat;
}
.free .btn {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 59%;
  width: auto;
  translate: 0 -50%;   /* `translate`, not `transform`: transform is used by hover/active */
}
.btn--dark .btn__text { color: #1a1000; }

/* diagonal decor, mirrored: high on the left, low on the right */
.free::before,
.free::after {
  content: '';
  position: absolute;
  left: calc(50% - 50vw); /* full viewport width: the line runs to the screen edges */
  width: 100vw;
  bottom: 0;
  height: var(--decor-h);
  z-index: 2;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  pointer-events: none;
}
.free::before { background: var(--c-accent); }                                  /* gold edge */
.free::after  { transform: translateY(2px); background: var(--edge); }         /* fill = next section bg */

/* ---------- support ---------- */
.support__title { margin: 0 0 16px; font-size: 24px; }
.support__list { display: grid; gap: 4px; color: var(--c-muted); }

/* ---------- footer ---------- */
.footer {
  padding: 24px var(--pad-x) 40px;
  text-align: center;
  font-size: 11px;
}
.footer p { margin: 0 0 24px; }

/* =====================================================
   TABLET  ≥ 768px
   ===================================================== */
@media (min-width: 768px) {
  :root {
    --container: 720px;
    --gutter: 32px;
    --section-py: 64px;
    --fs-title: 46px;
    --fs-text: 17px;
    --decor-h: 120px;
    --btn-max: 420px;
  }

  .section__text { max-width: 620px; }

  .topics .section__content { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .pricing .section__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
  }

  .standings { max-width: 560px; }

  /* free: centered, bigger chamber */
  .free { text-align: center; }
  .free .section__text { margin-inline: auto; }
  .free .section__content { aspect-ratio: auto; height: 520px; }
}

/* =====================================================
   DESKTOP  ≥ 1100px
   ===================================================== */
@media (min-width: 1100px) {
  :root {
    --container: 1120px;
    --gutter: 40px;
    --section-py: 88px;
    --fs-title: 56px;
    --fs-text: 18px;
    --decor-h: 160px;
    --btn-max: 340px;
  }

  /* header: inline menu instead of burger */
  .burger { display: none; }
  .menu { display: flex; gap: 32px; }
  .menu a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .menu a:hover { color: var(--c-accent); }

  /* two-column sections: title + text on the left, content on the right */
  .hero,
  .rankings,
  .support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    column-gap: 64px;
    align-content: center;
  }
  .hero .section__title,
  .rankings .section__title,
  .support .section__title { grid-column: 1; align-self: end; }
  .hero .section__text,
  .rankings .section__text,
  .support .section__text { grid-column: 1; align-self: start; }
  .hero .section__content,
  .rankings .section__content,
  .support .section__content { grid-column: 2; grid-row: 1 / span 2; }

  .hero { min-height: 640px; }

  .topics .section__content { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .pricing .section__content { max-width: 800px; gap: 24px; }

  .free .section__content { height: 600px; }
}

/* support has no image: it shows the page gradient */
.support { background-color: transparent; --tint-side: none; }

/* desktop: left/right edges of the images dissolve into the page bg */
@media (min-width: 1100px) {
  :root {
    --tint-side: linear-gradient(90deg,
      var(--edge) 0%,
      rgba(var(--edge-rgb), .92) 3%,
      rgba(var(--edge-rgb), .75) 7%,
      rgba(var(--edge-rgb), .5) 12%,
      rgba(var(--edge-rgb), .25) 18%,
      rgba(var(--edge-rgb), .08) 23%,
      rgba(var(--edge-rgb), 0) 28%,
      rgba(var(--edge-rgb), 0) 72%,
      rgba(var(--edge-rgb), .08) 77%,
      rgba(var(--edge-rgb), .25) 82%,
      rgba(var(--edge-rgb), .5) 88%,
      rgba(var(--edge-rgb), .75) 93%,
      rgba(var(--edge-rgb), .92) 97%,
      var(--edge) 100%);
  }
}

/* =====================================================
   SECTION BACKGROUNDS
   --bg-tint is a temporary dark overlay for text readability (set to `none` to see the raw image)
   ===================================================== */
/* Overlay = Figma "Gradient" layer: solid --edge color on the section edges, partial in the middle.
   The same --edge color on both sides of a joint makes the image edges invisible. */
.hero {
  --bg-img: url(../img/bg/bg-1.webp);
  /* the text sits on the bright sky, so the overlay is stronger under it (mobile: text is in the top half) */
  --bg-tint: linear-gradient(180deg,
    rgba(var(--edge-rgb), .6) 0%,
    rgba(var(--edge-rgb), .75) 30%,
    rgba(var(--edge-rgb), .75) 55%,
    rgba(var(--edge-rgb), .85) 75%,
    rgba(var(--edge-rgb), .94) 90%,
    var(--edge) 100%);
}
.hero .section__text {
  color: #C9D1EA;                                /* lighter than the usual muted text */
  text-shadow: 0 1px 8px rgba(5, 8, 25, .85);
}
@media (min-width: 1100px) {
  .hero {                                        /* desktop: text is in the middle, the image can stay brighter */
    --bg-tint: linear-gradient(180deg,
      rgba(var(--edge-rgb), .3) 0%,
      rgba(var(--edge-rgb), .5) 45%,
      rgba(var(--edge-rgb), .65) 70%,
      rgba(var(--edge-rgb), .88) 88%,
      var(--edge) 100%);
  }
}
.topics {
  --bg-img: url(../img/bg/bg-2.webp);
  --bg-tint: var(--tint-both);
}
.rankings {
  --bg-img: url(../img/bg/bg-3.webp);
  --bg-tint: var(--tint-both);
  background-position: 65% center;
}
.pricing {
  --bg-img: url(../img/bg/bg-4.webp);
  --bg-tint: var(--tint-both);
}
/* .free: bg-5 is set on its content block (see above) */
