/* TopPaying.nz — main stylesheet */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B1B1E;
  --surface: #112629;
  --raised: #18333A;
  --line: #24464C;
  --text: #E9F2EF;
  --muted: #9DB5B0;
  --kowhai: #F5C542;
  --kowhai-hover: #FFD86B;
  --on-kowhai: #1F1703;
  --jade: #4FD1A5;
  --coral: #F0876A;
  --neon: #3DF5A6;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --prose: 44rem;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--kowhai); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; color: var(--text); }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
li::marker { color: var(--muted); }

h1, h2, h3 { font-stretch: 84%; line-height: 1.1; margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -.012em; line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.35rem); font-weight: 680; letter-spacing: -.006em; margin: 0 0 .6em; }
h3 { font-size: 1.28rem; font-weight: 650; font-stretch: 90%; margin: 1.8em 0 .5em; line-height: 1.25; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--kowhai); color: var(--on-kowhai); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border-radius: 999px; border: 0;
  background: var(--kowhai); color: var(--on-kowhai);
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(245,197,66,0);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { background: var(--kowhai-hover); color: var(--on-kowhai); box-shadow: 0 8px 24px -10px rgba(245,197,66,.6); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: .94rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,27,30,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-header .wrap { justify-content: space-between; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 175px; height: auto; }
.header-cta { flex-shrink: 0; }
@media (max-width: 480px) {
  .brand img { width: 140px; }
  .header-cta { min-height: 38px; padding: .5em 1em; font-size: .9rem; }
}

/* ---------- Section boxes (neon frame) ---------- */
.box, .prose > section {
  border: 1.5px solid var(--neon);
  border-radius: 28px;
  padding: clamp(20px, 3.4vw, 44px);
  background: rgba(17, 38, 41, .45);
  box-shadow: 0 0 18px -2px rgba(61, 245, 166, .38), inset 0 0 20px -10px rgba(61, 245, 166, .3);
}
@media (max-width: 600px) {
  .box, .prose > section { border-radius: 22px; padding: 20px 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(16px, 2.6vw, 28px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "title title" "text art";
  gap: 18px clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero h1 { grid-area: title; max-width: none; font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.6rem); text-wrap: pretty; }
.hero__text { grid-area: text; align-self: center; }
.hero__art { grid-area: art; }
.hero__lead { font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem); color: var(--muted); margin: 0 0 1.4em; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__art img { width: 100%; max-width: 370px; margin-left: auto; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "title" "text"; }
  .hero__art { display: none; }
}

/* ---------- Shortlist ---------- */
.shortlist { padding: 24px 0 0; }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.casinos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.casinos > li { margin: 0; }

.card {
  --tile: #000;
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card__rank {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  min-width: 40px; height: 40px; padding: 0 10px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--text);
  border-radius: 12px; border: 1px solid var(--line);
  font-weight: 700; font-stretch: 84%; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.card__logo { position: relative; background: var(--tile); aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; }
.card__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; flex: 1; }
.card__name { margin: 0; font-size: 1.45rem; font-stretch: 84%; font-weight: 680; }
.card__badge { display: inline-block; align-self: flex-start; justify-self: start; padding: 3px 10px; border-radius: 999px; background: rgba(245,197,66,.14); color: var(--kowhai); font-size: .84rem; font-weight: 600; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li { margin: 0; padding: 2px 9px; border-radius: 6px; background: var(--raised); color: var(--muted); font-size: .8rem; font-weight: 500; }
.offer { margin: 0; }
.offer dt, .cashout dt { color: var(--muted); font-size: .86rem; font-weight: 500; }
.offer dd { margin: 2px 0 0; font-size: 1.22rem; font-weight: 650; line-height: 1.25; font-stretch: 92%; }
.cashout { margin: 0; }
.cashout__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cashout dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cashout dt { white-space: nowrap; }
.meter { position: relative; height: 8px; margin-top: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--meter, var(--jade)); }
.meter--fast { --meter: var(--jade); }
.meter--mid { --meter: var(--kowhai); }
.meter--slow { --meter: var(--coral); }
.card__cta { margin-top: auto; display: grid; gap: 8px; text-align: center; }
.terms { color: var(--muted); font-size: .78rem; }

.casinos > li:nth-child(1) .card { border-color: rgba(245,197,66,.55); }

/* Rows 4–10: horizontal, short */
.casinos > li:nth-child(n+4) { grid-column: 1 / -1; }
.casinos > li:nth-child(n+4) .card {
  display: grid;
  grid-template-columns: 52px 160px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(190px, 1fr) 168px;
  align-items: center; gap: 22px;
  padding: 14px 20px 14px 14px;
}
.casinos > li:nth-child(n+4) .card__rank { position: static; justify-self: center; }
.casinos > li:nth-child(n+4) .card__logo { aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; }
.casinos > li:nth-child(n+4) .card__body { display: contents; }
.casinos > li:nth-child(n+4) .card__id { display: grid; gap: 8px; }
.casinos > li:nth-child(n+4) .card__name { font-size: 1.3rem; }
.casinos > li:nth-child(n+4) .offer dd { font-size: 1.06rem; }
.casinos > li:nth-child(n+4) .card__cta { margin: 0; }
.card__id { display: grid; gap: 10px; }

@media (max-width: 1080px) {
  .casinos > li:nth-child(n+4) .card { grid-template-columns: 48px 140px minmax(0, 1fr) minmax(0, 1fr) 156px; }
  .casinos > li:nth-child(n+4) .cashout { grid-column: 3 / 5; }
  .casinos > li:nth-child(n+4) .card__cta { grid-column: 5; grid-row: 1 / span 2; }
  .casinos > li:nth-child(n+4) .card__rank { grid-row: 1 / span 2; }
  .casinos > li:nth-child(n+4) .card__logo { grid-row: 1 / span 2; }
}

/* Tablet & mobile: every card the same vertical layout */
@media (max-width: 860px) {
  .casinos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
  .casinos > li:nth-child(n+4) { grid-column: auto; }
  .casinos > li:nth-child(n+4) .card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .casinos > li:nth-child(n+4) .card__rank { position: absolute; }
  .casinos > li:nth-child(n+4) .card__logo { aspect-ratio: 16 / 9; border-radius: 0; }
  .casinos > li:nth-child(n+4) .card__body { display: flex; }
  .casinos > li:nth-child(n+4) .card__name { font-size: 1.45rem; }
  .casinos > li:nth-child(n+4) .offer dd { font-size: 1.22rem; }
  .casinos > li:nth-child(n+4) .card__cta { margin-top: auto; }
}
@media (max-width: 480px) {
  .card__logo, .casinos > li:nth-child(n+4) .card__logo { aspect-ratio: 2 / 1; }
  .card__body { padding: 16px 16px 16px; gap: 12px; }
}

/* ---------- Article layout ---------- */
.article { padding: 24px 0 clamp(40px, 6vw, 72px); }
.article .wrap { display: block; }
.prose { min-width: 0; }
.prose > section + section { margin-top: 24px; }
.prose > section > h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #D3E2DE; }
.prose .lede { font-size: 1.12rem; color: var(--muted); }


/* Figures */
.figure { margin: 28px 0; }
.figure img { width: 100%; max-width: 880px; border-radius: var(--r-lg); }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* Callouts */
.note { margin: 24px 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border-left: 4px solid var(--jade); }
.note p:last-child { margin-bottom: 0; }
.note--warn { border-left-color: var(--coral); }

/* Tables */
.table-wrap { margin: 24px 0 28px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.45; }
caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: .9rem; caption-side: top; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
thead th { background: var(--raised); color: var(--text); font-weight: 600; font-size: .9rem; }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody td { color: #D3E2DE; font-variant-numeric: tabular-nums; }
tbody td:first-child { font-weight: 600; color: var(--text); }
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 0; margin-bottom: 12px; }
  tbody tr + tr td { border-top: 0; }
  td { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; padding: 7px 16px; }
  td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: .86rem; }
  tbody td:first-child { display: block; font-size: 1.06rem; padding-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  tbody td:first-child::before { content: none; }
}

/* Scoring */
.weights { margin: 28px 0; }
.weights__bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; margin-bottom: 20px; }
.weights__bar span { display: block; height: 100%; }
.weights__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.weights__list li { margin: 0; padding: 16px 18px; background: var(--surface); border-radius: var(--r-md); border-top: 4px solid var(--c); }
.weights__list b { display: block; font-size: 1.7rem; font-stretch: 84%; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.weights__list strong { display: block; margin: 8px 0 4px; }
.weights__list p { margin: 0; font-size: .94rem; color: var(--muted); }
@media (max-width: 560px) { .weights__list { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 60px; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raised); color: var(--kowhai); font-weight: 700; font-stretch: 84%; font-size: 1.1rem;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.steps strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }

/* Flags */
.flags { list-style: none; padding: 0; }
.flags li { position: relative; padding-left: 32px; }
.flags li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: rgba(240,135,106,.18); box-shadow: inset 0 0 0 1.5px var(--coral); }
.flags li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 8px); width: 6px; height: 2px; background: var(--coral); }

/* Pros / cons */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.split > div { background: var(--surface); border-radius: var(--r-md); padding: 20px 22px 8px; border-top: 4px solid var(--jade); }
.split > div + div { border-top-color: var(--coral); }
.split h3 { margin-top: 0; }
.split ul { padding-left: 1.1em; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } }

/* Bonus slip */
.slip { margin: 24px 0; background: var(--surface); border-radius: var(--r-md); padding: 20px 22px; border: 1px dashed var(--line); }
.slip__title { font-weight: 650; margin: 0 0 12px; }
.slip dl { margin: 0; }
.slip div { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.slip div + div { border-top: 1px dashed var(--line); }
.slip dt { color: var(--muted); flex: 1; }
.slip dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.slip .slip__total dd { color: var(--coral); font-size: 1.2rem; }

/* Myths */
.myths { display: grid; gap: 12px; margin: 24px 0; }
.myth { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; }
.myth h3 { margin: 0 0 8px; font-size: 1.12rem; font-stretch: 92%; }
.myth h3::before { content: "Myth"; display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 6px; background: rgba(240,135,106,.16); color: var(--coral); font-size: .78rem; font-weight: 600; vertical-align: .18em; font-stretch: 100%; }
.myth p { margin: 0; }

/* FAQ */
.faq { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.prose .faq li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 1.06rem; line-height: 1.4; }
.prose .faq li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Fastest withdrawals */
.fast { list-style: none; padding: 0; margin: 20px 0 12px; display: grid; gap: 10px; }
.fast li { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; background: var(--surface); border-radius: var(--r-md); }
.fast__logo { position: relative; background: var(--tile); border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; }
.fast__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fast__name { font-weight: 650; }
.fast__time { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.fast .meter { margin-top: 6px; max-width: 420px; }
@media (max-width: 480px) {
  .fast li { grid-template-columns: 76px minmax(0, 1fr); }
  .fast li .btn { grid-column: 1 / -1; }
}

/* Closing CTA */
.closing h2 { margin-bottom: .4em; }
.closing p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 28px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }
.site-footer img { width: 160px; margin-bottom: 14px; }
.site-footer p { margin: 0 0 10px; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

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