/* =========================================================
   stake-casino.promo — independent affiliate site
   Mobile-first stylesheet
   ========================================================= */

:root {
    --bg: #0F212E;
    --surface: #1A2C38;
    --surface-2: #213743;
    --border: #2F4553;
    --text: #FFFFFF;
    --text-2: #B1BAD3;
    --text-muted: #8A95B0;
    --accent: #1475e1;
    --accent-hover: #0E5BB8;
    --accent-2: #5FB0FF;
    --accent-ink: #FFFFFF;
    --warning: #FFB636;
    --danger: #FF5252;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --maxw: 1200px;
    --gutter: 16px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }

p {
    margin: 0 0 1em;
    color: var(--text-2);
}

ul, ol {
    color: var(--text-2);
    padding-left: 1.2em;
}

li {
    margin-bottom: 0.4em;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 33, 46, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    height: 28px;
    width: auto;
}

.brand__name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.brand__name span {
    color: var(--accent);
}

/* nav */

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle__bars {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

.site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
}

.site-nav.is-open {
    transform: translateX(0);
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 14px 4px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: none;
}

.header-cta {
    display: none;
}

/* ---------- CTA buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 0 4px rgba(20, 117, 225, 0.15);
}

.btn--primary:active {
    transform: translateY(1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--block {
    width: 100%;
}

/* ---------- Hero ---------- */

.hero {
    padding: 36px 0 24px;
    background: radial-gradient(1200px 400px at 50% -100px, rgba(20, 117, 225, 0.10), transparent 60%),
                radial-gradient(800px 300px at 90% 0%, rgba(95, 176, 255, 0.07), transparent 60%);
}

.hero__eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero__lede {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 60ch;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ---------- Promo code box ---------- */

.promo-box {
    margin: 24px 0;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.promo-box__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.promo-box__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.promo-box__code {
    flex: 1 1 200px;
    min-width: 0;
    background: var(--bg);
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-align: center;
    user-select: all;
}

.promo-box__copy {
    flex: 0 0 auto;
    min-width: 130px;
}

.promo-box__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Quick answer ---------- */

.quick-answer {
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 18px;
    margin: 24px 0;
}

.quick-answer__title {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}

.quick-answer p {
    margin: 0;
    color: var(--text);
}

/* ---------- Sections ---------- */

.section {
    padding: 28px 0;
}

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

/* ---------- Cards / Grids ---------- */

.card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.card h3 {
    margin-top: 0;
}

.card--accent {
    border-color: rgba(20, 117, 225, 0.4);
}

/* ---------- Comparison table ---------- */

.compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
    background: var(--surface);
}

table.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

.compare th,
.compare td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.95rem;
    vertical-align: top;
}

.compare th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.compare tr:last-child td {
    border-bottom: 0;
}

.compare tr:hover td {
    background: rgba(33, 55, 67, 0.45);
}

/* ---------- Pros & cons ---------- */

.proscons {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin: 20px 0;
}

.proscons__col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.proscons__col h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.proscons__col ul {
    margin: 0;
    padding-left: 1.1em;
}

.proscons--pros h3 { color: var(--accent); }
.proscons--cons h3 { color: var(--warning); }

/* ---------- FAQ (plain-div accordion) ---------- */
.faq {
    margin: 16px 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[data-state="open"] {
    border-color: rgba(20, 117, 225, 0.5);
}

.faq-question {
    width: 100%;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.faq-question:hover { color: var(--accent-2); }
.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-icon {
    flex: 0 0 18px;
    position: relative;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--accent);
    transition: transform 0.25s ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    margin-left: -7px;
    margin-top: -1px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    margin-left: -1px;
    margin-top: -7px;
}

.faq-item[data-state="open"] .faq-icon::after {
    transform: scaleY(0);
}

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

.faq-item[data-state="open"] .faq-body {
    grid-template-rows: 1fr;
}

.faq-body__inner {
    min-height: 0;
    overflow: hidden;
}

.faq-body__inner-pad {
    padding: 0 18px 16px;
    color: var(--text-2);
}

.faq-body__inner-pad p:last-child { margin-bottom: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
    margin: 28px 0;
    padding: 24px;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-banner h2 {
    margin-top: 0;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 20px 0 0;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb__sep {
    margin: 0 6px;
    color: var(--border);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 48px;
}

.site-footer__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.site-footer h4 {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.site-footer a {
    color: var(--text-2);
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 6px;
}

.disclaimer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--text-2);
}

.site-footer__bottom {
    margin-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ---------- VIP / tier visuals ---------- */

.tier-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin: 18px 0;
}

.tier-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.tier-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    background: var(--surface-2);
    color: var(--text);
    margin-bottom: 8px;
}

.tier-card__badge--bronze   { background: #B97A4A; color: #1A1A1A; }
.tier-card__badge--silver   { background: #B7BCC4; color: #1A1A1A; }
.tier-card__badge--gold     { background: #F2B538; color: #1A1A1A; }
.tier-card__badge--platinum { background: #4DD0E1; color: #0F212E; }
.tier-card__badge--diamond  { background: #B0C4FF; color: #0F212E; }

.tier-card__wager {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0 2px;
    color: var(--text);
}

.tier-card__wagerlabel {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.tier-card ul {
    margin: 0;
    padding-left: 1.05em;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
    .card-grid    { grid-template-columns: repeat(2, 1fr); }
    .proscons     { grid-template-columns: repeat(2, 1fr); }
    .tier-grid    { grid-template-columns: repeat(2, 1fr); }
    .promo-box__code { font-size: 1.5rem; }
}

@media (min-width: 960px) {
    :root { --gutter: 24px; }

    .nav-toggle { display: none; }

    .site-nav {
        position: static;
        inset: auto;
        transform: none !important;
        background: transparent;
        border: 0;
        padding: 0;
        overflow: visible;
    }

    .site-nav ul {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .site-nav a {
        border: 0;
        padding: 8px 14px;
        border-radius: var(--radius-sm);
        font-size: 0.95rem;
    }

    .site-nav a:hover {
        background: var(--surface);
        color: var(--accent);
    }

    .header-cta {
        display: inline-flex;
        margin-left: 12px;
    }

    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .tier-grid    { grid-template-columns: repeat(4, 1fr); }

    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }

    .hero { padding: 64px 0 28px; }
}

@media (min-width: 1200px) {
    .hero__lede { font-size: 1.15rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Additions: hero grid, screenshot, FAQ animation,
   button icon, decorative aside, 404 page
   ========================================================= */

.hero__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero__copy { min-width: 0; }

.hero__visual {
    display: none;
}

.btn-icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

.btn--primary .btn-icon { color: var(--accent-ink); }

.screenshot {
    margin: 24px 0 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.screenshot img {
    border-radius: var(--radius-sm);
    margin: 0 auto;
    max-width: 100%;
}

.screenshot figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ---------- 404 page ---------- */
.errorpage {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.errorpage__code {
    font-size: clamp(5rem, 18vw, 8rem);
    line-height: 1;
    font-weight: 800;
    color: var(--accent);
    margin: 0;
    letter-spacing: -2px;
}

.errorpage h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 12px; }

.errorpage .btn { margin-top: 12px; }

/* ---------- Hero visual breakpoint ---------- */
@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
        gap: 40px;
    }
    .hero__visual {
        display: block;
        max-width: 360px;
        margin-left: auto;
    }
}

/* ---------- Copy button success state ---------- */
.btn.is-copied,
.btn.is-copied:hover {
    background: #1FAA3D;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(31, 170, 61, 0.18);
}

.btn.is-copy-failed,
.btn.is-copy-failed:hover {
    background: var(--warning);
    color: #1A1A1A;
}

.promo-box__copy {
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

/* ---------- Promo code clickable field ---------- */
.promo-box__code[role="button"] {
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.05s ease;
    user-select: none;
}
.promo-box__code[role="button"]:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
    background: rgba(20, 117, 225, 0.08);
}
.promo-box__code[role="button"]:active {
    transform: translateY(1px);
}
.promo-box__code[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.promo-box__code.is-copied {
    border-color: #1FAA3D;
    color: #1FAA3D;
    background: rgba(31, 170, 61, 0.08);
}

/* ---------- Smaller hero illustration ---------- */
.hero__visual { max-width: 200px; }

@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
        gap: 32px;
    }
    .hero__visual {
        max-width: 220px;
    }
}

/* ---------- Inner-page hero illustration ---------- */
.hero__media {
    margin: 12px 0 0;
    max-width: 280px;
}
.hero__media svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 720px) {
    .hero--with-media .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
        gap: 28px;
        align-items: center;
    }
    .hero__media {
        margin: 0;
        max-width: 240px;
    }
}

/* ---------- Final image size caps (smaller everywhere) ---------- */
.hero__visual {
    max-width: 90px;
}

@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 110px);
        gap: 24px;
    }
    .hero__visual {
        max-width: 110px;
    }
}

.hero__media {
    max-width: 110px;
}

@media (min-width: 720px) {
    .hero--with-media .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 130px);
        gap: 24px;
    }
    .hero__media {
        max-width: 130px;
    }
}

/* Stake form screenshot — keep modest */
.screenshot {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.screenshot img {
    max-width: 100%;
}

/* =========================================================
   Compact pass — tighten hero, shrink illustrations more,
   reduce vertical whitespace (SaaS-style density)
   ========================================================= */

/* Cap hero padding harder */
.hero { padding: 24px 0 12px; }

@media (min-width: 960px) {
    .hero { padding: 36px 0 16px; }
}

/* Reduce gap before the first section below the hero */
.section { padding: 20px 0; }

@media (min-width: 960px) {
    .section { padding: 28px 0; }
}

/* CTAs hug the lede instead of floating */
.hero__cta { margin-top: 14px; }

/* Tighter inner page hero block (less space below CTAs) */
.hero h1 { margin-bottom: 0.5em; }
.hero__lede { margin-bottom: 0.4em; }

/* Promo box trims its own top margin on the home page */
.promo-box { margin: 16px 0; padding: 16px; }

/* ---------- Home hero chip stack ---------- */
.hero__visual {
    max-width: 70px;
    margin-left: auto;
}
.hero__visual svg {
    width: 100%;
    height: auto;
    max-height: 70px;
    display: block;
}

@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 80px);
        gap: 20px;
    }
    .hero__visual {
        max-width: 80px;
    }
    .hero__visual svg {
        max-height: 80px;
    }
}

/* ---------- Inner page illustrations ---------- */
.hero__media {
    max-width: 80px;
    margin: 8px 0 0;
}
.hero__media svg {
    width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
}

@media (min-width: 720px) {
    .hero--with-media .container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 90px);
        gap: 20px;
    }
    .hero__media {
        max-width: 90px;
        margin: 0;
    }
    .hero__media svg {
        max-height: 90px;
    }
}

/* Stake form screenshot — smaller too */
.screenshot {
    max-width: 420px;
    margin: 16px auto 22px;
    padding: 12px;
}

/* =========================================================
   Aggressive compact pass v2 — make the hero feel like
   a modern dense landing page, not a stretched mobile block
   ========================================================= */

/* HERO — much tighter padding */
.hero {
    padding: 16px 0 8px;
}
@media (min-width: 960px) {
    .hero { padding: 24px 0 12px; }
}

/* Typography in hero — smaller, denser */
.hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 1.95rem);
    margin-bottom: 0.4em;
}
.hero__lede {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 0.5em;
    max-width: 56ch;
}
.hero__eyebrow {
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
}
.breadcrumb { margin: 6px 0 8px; font-size: 0.78rem; }

/* CTA buttons — slimmer */
.btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}
.hero__cta { margin-top: 10px; gap: 8px; }

/* Promo box — compact */
.promo-box { margin: 12px 0; padding: 14px; }
.promo-box__label { font-size: 0.72rem; margin-bottom: 6px; }
.promo-box__code { padding: 10px 12px; font-size: 1.05rem; letter-spacing: 1.5px; }
.promo-box__hint { font-size: 0.78rem; margin-top: 6px; }

/* Tighter section padding */
.section { padding: 12px 0; }
@media (min-width: 960px) {
    .section { padding: 20px 0; }
}

/* ===== ILLUSTRATIONS — really small now ===== */

.hero__visual {
    max-width: 56px;
    margin-left: auto;
    align-self: start;
}
.hero__visual svg {
    width: 100%;
    height: auto;
    max-height: 56px;
    display: block;
}

@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 64px);
        gap: 16px;
        align-items: start;
    }
    .hero__visual {
        max-width: 64px;
    }
    .hero__visual svg {
        max-height: 64px;
    }
}

.hero__media {
    max-width: 64px;
    margin: 4px 0 0;
    align-self: start;
}
.hero__media svg {
    width: 100%;
    height: auto;
    max-height: 64px;
    display: block;
}

@media (min-width: 720px) {
    .hero--with-media .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 72px);
        gap: 16px;
        align-items: start;
    }
    .hero__media {
        max-width: 72px;
        margin: 0;
    }
    .hero__media svg {
        max-height: 72px;
    }
}

/* Stake form screenshot — keep modest */
.screenshot {
    max-width: 380px;
    margin: 12px auto 18px;
    padding: 10px;
}
.screenshot figcaption {
    font-size: 0.78rem;
    margin-top: 8px;
}

/* CTA banner — slimmer */
.cta-banner { padding: 16px; margin: 18px 0; }
.cta-banner h2 { font-size: 1.15rem; margin-top: 0; }

/* =========================================================
   FINAL ILLUSTRATION CAPS — appended last so they win
   regardless of source order, plus !important to override
   any browser-cached older overrides during a hard refresh.
   ========================================================= */

.hero__visual,
.hero__media,
.hero-visual,
.hero-art,
.illustration,
.promo-visual,
.bonus-visual {
    max-width: 80px !important;
    max-height: 80px !important;
    width: 80px !important;
    height: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.hero__visual svg,
.hero__media svg,
.hero-visual svg,
.hero-art svg,
.illustration svg,
.promo-visual svg,
.bonus-visual svg,
.hero__visual img,
.hero__media img,
.hero-visual img,
.hero-art img,
.illustration img,
.promo-visual img,
.bonus-visual img {
    width: 100% !important;
    height: auto !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: block !important;
}

/* Home hero grid: narrow art column */
@media (min-width: 960px) {
    .hero--lead .hero__grid {
        grid-template-columns: minmax(0, 1fr) 80px !important;
        gap: 14px !important;
        align-items: start !important;
    }
}

/* Inner page hero grid: narrow art column */
@media (min-width: 720px) {
    .hero--with-media .container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 80px !important;
        gap: 14px !important;
        align-items: start !important;
    }
}

/* Stake form screenshot - smaller as well */
.screenshot {
    max-width: 320px !important;
    margin: 12px auto 16px !important;
    padding: 8px !important;
}
.screenshot img {
    max-width: 100% !important;
    max-height: 200px !important;
    height: auto !important;
}

/* Make sure nothing forces a tall hero */
.hero {
    min-height: 0 !important;
}
.hero, .section {
    height: auto !important;
}

/* =========================================================
   ABSOLUTE FINAL CAPS — last in source order,
   maximum specificity, !important everywhere.
   Targets every possible image/SVG element in the hero/feature
   sections so nothing can render large.
   ========================================================= */

/* Hero chip-stack on home (real selector: .hero__visual) */
html body aside.hero__visual {
    width: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex: 0 0 80px !important;
}
html body aside.hero__visual > svg {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: block !important;
}

/* Inner page illustrations */
html body div.hero__media {
    width: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex: 0 0 80px !important;
}
html body div.hero__media > svg {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    display: block !important;
}

/* Stake form screenshot (the PNG) */
html body figure.screenshot {
    max-width: 280px !important;
    margin: 12px auto !important;
    padding: 8px !important;
}
html body figure.screenshot > img,
html body figure.screenshot img.wp-image-1,
html body img[src*="promo-getrakeback"] {
    width: 280px !important;
    max-width: 280px !important;
    max-height: 160px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Catch-all: any image inside the hero or the screenshot area */
.hero img, .hero svg,
.section img, .section svg {
    max-width: 320px !important;
    max-height: 320px !important;
}

/* =========================================================
   Screenshot — final size (380px wide, left-aligned)
   ========================================================= */
html body figure.screenshot {
    max-width: 380px !important;
    width: 100% !important;
    margin: 24px 0 24px 0 !important;   /* left-aligned, top spacing */
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

html body figure.screenshot > img,
html body img[src*="promo-getrakeback"],
.hero-screenshot,
.promo-screenshot {
    width: min(100%, 380px) !important;
    max-width: 380px !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

html body figure.screenshot figcaption {
    text-align: left !important;
    margin-top: 8px !important;
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
}

@media (max-width: 480px) {
    html body figure.screenshot {
        max-width: 100% !important;
    }
}

/* =========================================================
   Guide screenshot — final size (640px, readable)
   Overrides every earlier cap.
   ========================================================= */
html body figure.screenshot {
    max-width: 640px !important;
    width: 100% !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

html body figure.screenshot > img,
html body img[src*="promo-getrakeback"],
.guide-screenshot,
.promo-screenshot {
    width: min(100%, 640px) !important;
    max-width: 640px !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

html body figure.screenshot figcaption {
    text-align: left !important;
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

@media (max-width: 720px) {
    html body figure.screenshot {
        max-width: 100% !important;
    }
}

/* =========================================================
   .page-image — one image per inner page
   (Used on /vip/, /weekly-bonus/, /monthly-bonus/, /bonus-drop-code/, /no-deposit-bonus/)
   ========================================================= */
html body figure.page-image {
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
}
html body figure.page-image > img {
    width: 100% !important;
    max-width: 560px !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    margin: 0 !important;
}

@media (max-width: 720px) {
    html body figure.page-image > img {
        max-width: 100% !important;
    }
}

/* =========================================================
   Home page guide screenshot — enlarged to 800px
   (Targets ONLY figure.screenshot on the home page; the
   inner-page figure.page-image rules are untouched.)
   ========================================================= */
html body figure.screenshot {
    max-width: 800px !important;
    width: 100% !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
}

html body figure.screenshot > img,
html body img[src*="promo-getrakeback"] {
    width: min(100%, 800px) !important;
    max-width: 800px !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
    html body figure.screenshot { max-width: 100% !important; }
}

/* =========================================================
   FINAL NAVBAR REWRITE
   Goal: one clean row on desktop, proper hamburger on mobile.
   Appended at the very end so these rules win regardless of
   conflicts with earlier passes.
   ========================================================= */

/* --- Shared header shell --- */
html body .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 60 !important;
    background: rgba(15, 33, 46, 0.94) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border) !important;
}

html body .site-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    height: 60px !important;
    min-height: 60px !important;
}

html body .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    color: var(--text) !important;
    text-decoration: none !important;
}
html body .brand img {
    height: 22px !important;
    width: auto !important;
    display: block !important;
}
html body .brand__name {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* --- Mobile-first defaults (offcanvas nav, visible hamburger, compact CTA) --- */
html body .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
    margin-left: auto;
}

html body .site-nav {
    position: fixed !important;
    inset: 60px 0 0 0 !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    padding: 16px var(--gutter) 40px !important;
    transform: translateX(100%);
    transition: transform 0.25s ease !important;
    overflow-y: auto !important;
    z-index: 55 !important;
    width: 100% !important;
}
html body .site-nav.is-open {
    transform: translateX(0) !important;
}

html body .site-nav ul {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
html body .site-nav li { margin: 0 !important; }
html body .site-nav a {
    display: block !important;
    padding: 14px 4px !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
html body .site-nav a:hover,
html body .site-nav a[aria-current="page"] {
    color: var(--accent) !important;
}

/* The Unlock Rakeback button stays in the bar on mobile too,
   between the brand and the hamburger, but compact. */
html body .header-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 11px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
    margin-left: auto;
}
html body .header-cta .btn-icon {
    width: 14px !important;
    height: 14px !important;
}

/* Stack order on mobile: brand | CTA | hamburger */
@media (max-width: 1023px) {
    html body .header-cta { margin-left: auto !important; }
    html body .nav-toggle { margin-left: 4px !important; }
}

/* ========================  DESKTOP  ======================== */
@media (min-width: 1024px) {
    html body .site-header__inner {
        height: 64px !important;
        gap: 16px !important;
    }
    html body .brand img { height: 26px !important; }
    html body .brand__name { font-size: 1rem !important; }

    /* Hide hamburger on desktop */
    html body .nav-toggle { display: none !important; }

    /* Nav becomes inline, flex row, takes available space, centred */
    html body .site-nav {
        position: static !important;
        inset: auto !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
        flex: 1 1 auto !important;
        width: auto !important;
        z-index: auto !important;
    }
    html body .site-nav ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
    }
    html body .site-nav a {
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 12px !important;
        font-size: 0.92rem !important;
        border: 0 !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }
    html body .site-nav a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        color: var(--accent) !important;
    }

    /* CTA: a bit more substantial on desktop */
    html body .header-cta {
        padding: 9px 14px !important;
        font-size: 0.9rem !important;
        gap: 8px !important;
        margin-left: 0 !important;
    }
    html body .header-cta .btn-icon { width: 16px !important; height: 16px !important; }
}

/* Tighter spacing on narrow desktops just above the breakpoint */
@media (min-width: 1024px) and (max-width: 1199px) {
    html body .site-nav a { padding: 7px 9px !important; font-size: 0.88rem !important; }
    html body .header-cta  { padding: 8px 12px !important; font-size: 0.85rem !important; }
}

/* =========================================================
   NAVBAR — definitive no-wrap fix
   Forbid line-breaks inside every link, reset li margins,
   lower desktop breakpoint to 768px so the bar stays inline.
   ========================================================= */

/* Every link and child element: never wrap, never hyphenate */
html body .site-nav,
html body .site-nav *,
html body .site-nav ul,
html body .site-nav li,
html body .site-nav a,
html body .site-nav a span,
html body nav#primary-nav a {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

/* Kill the inherited `li { margin-bottom: 0.4em }` that pushes items down */
html body .site-nav li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex: 0 0 auto !important;
}

/* === Desktop nav from 768px upward === */
@media (min-width: 768px) {
    html body .nav-toggle { display: none !important; }

    html body .site-nav {
        position: static !important;
        inset: auto !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
        flex: 1 1 auto !important;
        width: auto !important;
        z-index: auto !important;
    }

    html body .site-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        min-width: 0 !important;
    }

    html body .site-nav a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 0.86rem !important;
        line-height: 1.1 !important;
        border: 0 !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        flex: 0 0 auto !important;
    }
    html body .site-nav a:hover {
        background: rgba(255,255,255,0.05) !important;
        color: var(--accent) !important;
        text-decoration: none !important;
    }

    html body .header-cta {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        margin-left: 8px !important;
    }
    html body .header-cta .btn-icon { width: 14px !important; height: 14px !important; }
}

/* A bit more breathing room on larger desktops */
@media (min-width: 1200px) {
    html body .site-nav ul { gap: 4px !important; }
    html body .site-nav a  { padding: 8px 12px !important; font-size: 0.92rem !important; }
    html body .header-cta  { padding: 9px 14px !important; font-size: 0.9rem !important; }
}

/* Brand stays compact so the nav has room */
@media (min-width: 768px) {
    html body .brand img    { height: 22px !important; }
    html body .brand__name  { font-size: 0.9rem !important; }
}

/* =========================================================
   ABSOLUTE FINAL NAVBAR LOCK
   Targets the rendered elements:
     <header class="site-header">
       <div class="container site-header__inner">
         <nav id="primary-nav" class="site-nav">
           <ul>
             <li><a href="/">Bonus Code</a></li> ...
   Uses min-width: max-content so each link can NEVER be smaller
   than its text — no wrap possible.
   ========================================================= */

header.site-header nav#primary-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
}

header.site-header nav#primary-nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

header.site-header nav#primary-nav ul li {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header.site-header nav#primary-nav ul li a,
header.site-header nav#primary-nav a {
    display: inline-block !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    flex-basis: auto !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    line-height: 1.2 !important;
    padding: 8px 10px !important;
    font-size: 0.86rem !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: var(--text) !important;
    text-decoration: none !important;
}

header.site-header nav#primary-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent) !important;
}

/* At <768px, the offcanvas panel still uses display:block on links
   so each item gets its own row, but each label stays on ONE line. */

/* Mobile (<768 px): offcanvas drawer — each link on its own row,
   text still on ONE line. */
@media (max-width: 767px) {
    header.site-header nav#primary-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    header.site-header nav#primary-nav ul li a {
        display: block !important;
        padding: 14px 4px !important;
        border-bottom: 1px solid var(--border) !important;
        font-size: 1rem !important;
        text-align: left !important;
        white-space: nowrap !important;
        min-width: max-content !important;
    }
}

/* =========================================================
   FINAL MOBILE MENU FIX — aligned to <=959px to match JS
   matchMedia("(max-width: 959px)"). Forces vertical stack
   on mobile, regardless of any earlier row/flex rules.
   ========================================================= */

/* MOBILE: <= 959 px — vertical offcanvas drawer */
@media (max-width: 959px) {
    /* Hamburger visible */
    html body header.site-header .nav-toggle {
        display: inline-flex !important;
    }

    /* Nav becomes a fixed full-width drawer, hidden off-screen */
    html body header.site-header nav#primary-nav.site-nav {
        position: fixed !important;
        inset: 60px 0 auto 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        background: var(--surface) !important;
        border-top: 1px solid var(--border) !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 12px var(--gutter) 24px !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        transform: translateX(100%) !important;
        transition: transform 0.25s ease !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 70 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    /* When opened, slide in */
    html body header.site-header nav#primary-nav.site-nav.is-open {
        transform: translateX(0) !important;
    }

    /* UL stacks vertically, full width */
    html body header.site-header nav#primary-nav ul {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Each li is block, full width */
    html body header.site-header nav#primary-nav ul li {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Each link: full-width tap target, single line, no max-content squashing */
    html body header.site-header nav#primary-nav ul li a,
    html body header.site-header nav#primary-nav a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        text-align: left !important;
        white-space: nowrap !important;
        border-bottom: 1px solid var(--border) !important;
        border-radius: 0 !important;
        color: var(--text) !important;
    }
    html body header.site-header nav#primary-nav ul li:last-child a {
        border-bottom: 0 !important;
    }

    /* Don't let the body scroll horizontally either */
    html, body {
        overflow-x: hidden !important;
    }
}

/* DESKTOP: >= 960 px — single horizontal row */
@media (min-width: 960px) {
    html body header.site-header .nav-toggle {
        display: none !important;
    }

    html body header.site-header nav#primary-nav.site-nav {
        position: static !important;
        inset: auto !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        transform: none !important;
        overflow: visible !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        z-index: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    html body header.site-header nav#primary-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    html body header.site-header nav#primary-nav ul li {
        display: list-item !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
    }

    html body header.site-header nav#primary-nav ul li a,
    html body header.site-header nav#primary-nav a {
        display: inline-block !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;
        padding: 8px 12px !important;
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        border: 0 !important;
        border-bottom: 0 !important;
        border-radius: 6px !important;
    }
}

/* =========================================================
   MOBILE MENU REDESIGN — matches reference screenshot
   Full-screen overlay, centered stacked links, no horizontal
   scroll, animated hamburger → X close button.
   Active from <=959px (matches the JS matchMedia query).
   ========================================================= */

@media (max-width: 959px) {

    /* No sideways scroll anywhere on mobile */
    html, body { overflow-x: hidden !important; }

    /* --- Header sits above the overlay so brand + X stay visible --- */
    html body .site-header {
        z-index: 100 !important;
        position: sticky !important;
    }

    /* Hamburger button — keep visible and clickable above overlay */
    html body header.site-header .nav-toggle {
        display: inline-flex !important;
        position: relative !important;
        z-index: 110 !important;
    }

    /* Animate the bars → X when nav is open */
    html body header.site-header .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
        background: transparent !important;
    }
    html body header.site-header .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
        top: 0 !important;
        transform: rotate(45deg) !important;
    }
    html body header.site-header .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
        top: 0 !important;
        transform: rotate(-45deg) !important;
    }
    html body header.site-header .nav-toggle__bars,
    html body header.site-header .nav-toggle__bars::before,
    html body header.site-header .nav-toggle__bars::after {
        transition: transform 0.22s ease, background 0.22s ease, top 0.22s ease !important;
    }

    /* --- The overlay --- */
    html body header.site-header nav#primary-nav.site-nav {
        position: fixed !important;
        top: 60px !important;             /* sit just under the header */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        inset: 60px 0 0 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: calc(100vh - 60px) !important;

        background: rgba(15, 33, 46, 0.98) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 0 !important;
        padding: 40px 24px 40px !important;
        margin: 0 !important;

        transform: translateY(-100%) !important;
        transition: transform 0.30s ease, opacity 0.25s ease !important;
        opacity: 0 !important;
        pointer-events: none !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 90 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    /* Opened state */
    html body header.site-header nav#primary-nav.site-nav.is-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* The UL: centered vertical stack */
    html body header.site-header nav#primary-nav ul {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        list-style: none !important;
        padding: 24px 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 360px !important;
        min-width: 0 !important;
    }

    /* Each li: block, auto width, centered */
    html body header.site-header nav#primary-nav ul li {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        text-align: center !important;
        flex: 0 0 auto !important;
    }

    /* Each link: pill-style centered tap target, kills min-width:max-content */
    html body header.site-header nav#primary-nav ul li a,
    html body header.site-header nav#primary-nav a {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;

        padding: 10px 18px !important;
        font-size: 1.12rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;

        text-align: center !important;
        white-space: nowrap !important;
        color: var(--text) !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 0 !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }

    /* Active link gets the accent underline as in the reference */
    html body header.site-header nav#primary-nav ul li a[aria-current="page"] {
        color: var(--accent-2) !important;
        text-decoration: underline !important;
        text-decoration-thickness: 2px !important;
        text-underline-offset: 6px !important;
    }

    html body header.site-header nav#primary-nav ul li a:hover {
        color: var(--accent-2) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    /* Header CTA stays in the bar but compact */
    html body header.site-header .header-cta {
        padding: 7px 11px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   MOBILE LAYOUT FIX (≤ 959 px)
   - Smaller logo
   - Header CTA hidden, .nav-cta (cloned) shown inside the menu
   - Tight container padding (16 px)
   - No horizontal overflow anywhere
   ========================================================= */

@media (max-width: 959px) {

    /* Sane container padding on phones */
    html body .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Header bar height + spacing */
    html body .site-header__inner {
        height: 56px !important;
        min-height: 56px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    /* Shrink the brand on mobile */
    html body .brand {
        gap: 6px !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }
    html body .brand img {
        height: 18px !important;
    }
    html body .brand__name {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* HIDE the top-bar CTA on mobile — moved into the menu */
    html body header.site-header .header-cta {
        display: none !important;
    }

    /* Hamburger sits flush right */
    html body header.site-header .nav-toggle {
        margin-left: auto !important;
        flex: 0 0 auto !important;
        width: 38px !important;
        height: 38px !important;
    }

    /* Overlay offset matches new 56-px header */
    html body header.site-header nav#primary-nav.site-nav {
        top: 56px !important;
        inset: 56px 0 0 0 !important;
        max-height: calc(100vh - 56px) !important;
        padding: 28px 24px 32px !important;
    }

    /* Cloned CTA inside the menu — full-width pill */
    html body header.site-header nav#primary-nav .nav-cta {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 24px auto 0 !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        background: var(--accent) !important;
        color: var(--accent-ink) !important;
        border: 0 !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 14px rgba(20, 117, 225, 0.30) !important;
    }
    html body header.site-header nav#primary-nav .nav-cta:hover {
        background: var(--accent-hover) !important;
    }
    html body header.site-header nav#primary-nav .nav-cta .btn-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* Cards / sections fill the column cleanly */
    html body .card,
    html body .compare-wrap,
    html body .cta-banner,
    html body .promo-box,
    html body .quick-answer,
    html body .proscons__col,
    html body .tier-card,
    html body .faq-item {
        width: auto !important;
        max-width: 100% !important;
    }

    /* No sideways scroll anywhere */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
}

/* On desktop the .nav-cta clone should NOT show — the real header-cta covers it */
@media (min-width: 960px) {
    html body header.site-header nav#primary-nav .nav-cta {
        display: none !important;
    }
}

/* =========================================================
   ABSOLUTE MOBILE MENU OVERRIDE — final pass
   Forces every UL item to render as a visible row in a
   vertical stack inside the open offcanvas.
   ========================================================= */

@media (max-width: 959px) {

    /* Open state — show the whole drawer, no clipping */
    html body header.site-header nav#primary-nav.site-nav.is-open {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;

        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 56px) !important;
        max-height: calc(100vh - 56px) !important;
        min-height: 0 !important;
        padding: 24px 16px 40px !important;
        margin: 0 !important;
        background: rgba(15, 33, 46, 0.98) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 90 !important;
    }

    /* Closed state stays off-screen */
    html body header.site-header nav#primary-nav.site-nav:not(.is-open) {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* The <ul>: visible vertical stack, NOT a flex row */
    html body header.site-header nav#primary-nav.site-nav.is-open ul,
    html body header.site-header nav#primary-nav.site-nav ul {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 480px !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
    }

    /* Every <li>: visible block on its own row */
    html body header.site-header nav#primary-nav.site-nav.is-open ul li,
    html body header.site-header nav#primary-nav.site-nav ul li {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
    }

    /* Every link: visible, full-width tap row */
    html body header.site-header nav#primary-nav.site-nav.is-open ul li a,
    html body header.site-header nav#primary-nav.site-nav ul li a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px 14px !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        text-align: left !important;
        white-space: nowrap !important;
        color: var(--text) !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Last link drops the divider */
    html body header.site-header nav#primary-nav.site-nav ul li:last-child a {
        border-bottom: 0 !important;
    }

    /* Active link accent */
    html body header.site-header nav#primary-nav ul li a[aria-current="page"] {
        color: var(--accent-2) !important;
    }

    /* Cloned CTA — full-width pill below the link list */
    html body header.site-header nav#primary-nav.site-nav .nav-cta {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 480px !important;
        margin: 20px auto 0 !important;
        padding: 14px 18px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        background: var(--accent) !important;
        color: var(--accent-ink) !important;
        border: 0 !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
