@font-face {
    font-family: 'HeadlinerNo45';
    src: url('HeadlinerNo45.ttf') format('truetype');
    font-display: swap;
}

:root {
    --red: #ED4A2F;
    --blue: #2b388f;
    --ink: #0f0f12;
    --panel: #1a1a1d;
    --bg: #e8e8ea;
    --bg-alt: #d9d9dc;
    --text: #1a1a1d;
    --muted: #6b6b72;
    --display: 'HeadlinerNo45', 'Impact', 'Oswald', system-ui, sans-serif;
    --body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
}

/* Animations */
@keyframes pill-pop {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }

    60% {
        transform: translateY(-2px) scale(1.04);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    position: relative;
}

.nav-toggle {
    display: none;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
}

.logo {
    width: 180px;
    flex-shrink: 0;
    align-self: stretch;
    margin: -2.5rem 0 -2.5rem -0.5rem;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 260px;
}

.header-contact {
    font-family: var(--body);
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-contact .sep {
    color: var(--red);
    font-weight: 700;
}

.header-contact a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    font-family: var(--display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.header-nav a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.35em 0.85em;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: color 0.18s, background 0.18s;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.5em;
    right: 0.5em;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.header-nav a:hover {
    color: var(--red);
    background: rgba(237, 74, 47, 0.07);
}

.header-nav a:hover::after {
    transform: scaleX(1);
}

.header-nav a.active {
    color: var(--blue);
    background: rgba(43, 56, 143, 0.08);
}

.header-nav a.active::after {
    background: var(--blue);
    transform: scaleX(1);
}

/* ---------- Sub-menu ---------- */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.nav-item>a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.35em 0.3em 0.35em 0.85em;
    border-radius: 4px 0 0 4px;
    position: relative;
    transition: color 0.18s, background 0.18s;
}

.nav-item>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.5em;
    right: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-item:hover>a {
    color: var(--red);
    background: rgba(237, 74, 47, 0.07);
}

.nav-item:hover>a::after {
    transform: scaleX(1);
}

.submenu-toggle {
    display: flex;
    align-items: center;
    padding: 0 0.55em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    border-radius: 0 4px 4px 0;
    transition: color 0.18s, background 0.18s;
    font-size: inherit;
}

.submenu-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    display: block;
}

.nav-item:hover .submenu-toggle {
    color: var(--red);
    background: rgba(237, 74, 47, 0.07);
}

.nav-item[data-open="true"] .submenu-toggle svg {
    transform: rotate(180deg);
}

/* Invisible bridge fills the gap so hover isn't lost moving into the submenu */
.nav-item.has-submenu::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 8px;
}

.submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--bg-alt);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-item:hover .submenu,
.nav-item[data-open="true"] .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.5em 1.1em;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--body);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--bg);
    color: var(--red);
}

.submenu li+li {
    border-top: 1px solid var(--bg-alt);
}

.header-rule {
    height: 5px;
    background: linear-gradient(90deg, var(--blue) 60%, var(--red) 100%);
    margin-top: 0;
}

/* ---------- Sections ---------- */
section {
    padding: 3.5rem 1.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero offer banner */
.hero {
    background: var(--bg);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 2.55 / 1;
    min-height: 240px;
    background-image: image-set(url('header-image.webp') type('image/webp'), url('header-image.png') type('image/png'));
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.hero-title {
    font-family: var(--display);
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 0.95;
    text-transform: uppercase;
    max-width: 55%;
}

.hero-title .line-black,
.hero-title .line-red,
.hero-title .line-blue {
    display: inline-block;
    color: #fff;
    padding: 0.25em 0.25em;
}

.hero-title .line-black {
    background: #000;
}

.hero-title .line-red {
    background: var(--red);
}

.hero-title .line-blue {
    background: var(--blue);
}

.hero-pill {
    display: inline-block;
    background: #fff;
    color: var(--ink);
    font-family: var(--body);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
    animation: pill-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.hero-cta-wrap {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5em;
    border: none;
    border-bottom: 0.2em solid var(--red);
    background-color: var(--blue);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Intro - what to expect */
.intro {
    background: var(--bg);
    padding-top: 1rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.intro-image {
    width: 320px;
    height: 320px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intro-image:hover img {
    transform: rotate(90deg) scale(1.05);
}

.eyebrow {
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.eyebrow.blue {
    color: var(--blue);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 1.25rem;
}

.accent-rule {
    width: 100%;
    max-width: 360px;
    height: 3px;
    background: linear-gradient(to right, var(--red) 0%, var(--red) 15%, var(--blue) 85%, var(--blue) 100%);
    margin: 0 0 1.5rem;
    border: 0;
}

.intro p {
    margin: 0 0 1rem;
    max-width: 52ch;
    color: #2a2a30;
}

.intro .cta-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

/* Feature cards */
.features {
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    color: #fff;
}

.feature-card h3 {
    color: var(--red);
    font-size: 1.7rem;
    letter-spacing: 0.05em;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #d4d4d8;
    max-width: 28ch;
}

/* Parties dark section */
.parties {
    background: var(--ink);
    color: #fff;
    border-top: 6px solid var(--blue);
    border-bottom: 6px solid var(--red);
}

.parties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.parties h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 1.25rem;
}

.parties .eyebrow {
    color: var(--blue);
}

.parties .accent-rule {
    background: linear-gradient(to right, var(--blue) 0%, var(--blue) 15%, var(--red) 85%, var(--red) 100%);
    max-width: 280px;
}

.parties p {
    color: #d4d4d8;
    max-width: 46ch;
}

.parties-image {
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.parties-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ready to play banner */
.ready {
    background: var(--bg);
}

.ready-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2.55 / 1;
    min-height: 240px;
    background: #000;
    background-image: image-set(url('ready-to-play-boards.webp') type('image/webp'), url('ready-to-play-boards.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
}

.ready-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
}

.ready-overlay .ready-eyebrow {
    font-family: var(--display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ready-overlay h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.95;
    color: #fff;
    margin-bottom: 1.25rem;
}

/* FAQ */
.faq {
    background: var(--bg);
}

.faq h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #f3f3f5;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    transition: background 0.25s ease;
}

.faq-item:hover {
    background: #eaeaf0;
}

.faq-item h3 {
    font-family: var(--body);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
    color: var(--red);
}

.faq-item:nth-child(even) h3 {
    color: var(--blue);
}

.faq-item p {
    margin: 0;
    color: #3a3a40;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--bg);
    padding: 2rem 1.5rem 2.5rem;
    text-align: center;
    color: #4a4a52;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--ink);
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-legal {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-legal a {
    color: #4a4a52;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin: 0 0.25rem;
}

.footer-address {
    font-size: 0.9rem;
    color: #4a4a52;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-address a {
    color: #4a4a52;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-address a:hover {
    color: var(--ink);
}

@media (max-width: 600px) {
    .header-inner .logo {
        width: 140px;
        margin: -1.5rem 0 -1.5rem -0.5rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        flex-shrink: 0;
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    #header-meta {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 2px solid var(--bg-alt);
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        z-index: 200;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    #header-meta.is-open {
        display: flex;
    }

    .header-contact {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 0.25rem;
        width: 100%;
    }

    .header-contact .sep {
        display: none;
    }

    .header-nav {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        width: 100%;
    }

    .header-nav>a {
        width: 100%;
        text-align: right;
        border-radius: 4px;
        padding: 0.4em 0.5em;
    }

    .header-nav>a::after {
        display: none;
    }

    /* Mobile nav-item (has sub-menu) */
    .nav-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: stretch;
        width: 100%;
    }

    .nav-item>a {
        text-align: right;
        flex: 1;
        border-radius: 4px 0 0 4px;
        padding: 0.4em 0.5em 0.4em 0.5em;
    }

    .nav-item>a::after {
        display: none;
    }

    .submenu-toggle {
        border-radius: 0 4px 4px 0;
        padding: 0 0.65em;
    }

    .submenu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--bg-alt);
        border-radius: 0;
        width: 100%;
        padding: 0;
        display: none;
        transition: none;
    }

    .nav-item[data-open="true"] .submenu {
        display: block;
    }

    .submenu li a {
        text-align: right;
        padding: 0.55em 0.5em;
        font-size: 1rem;
    }

    .submenu li+li {
        border-top: 1px solid var(--bg-alt);
    }
}

@media (max-width: 820px) {

    .intro-grid,
    .parties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-overlay,
    .ready-overlay {
        padding: 1.25rem 1.25rem;
    }

    .hero-cta-wrap {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .header-inner {
        gap: 1rem;
    }

    .header-nav {
        font-size: 0.95rem;
        gap: 0.15rem;
    }

    .hero-card {
        aspect-ratio: unset;
        height: 340px;
        background-position: center;
    }

    .ready-card {
        aspect-ratio: unset;
        height: 280px;
        background-position: left center;
    }
}

@media (max-width: 1000px) {
    .header-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .header-contact .tsw-name {
        display: none;
    }

    .header-contact .sep {
        display: none;
    }

    .header-contact a {
        word-break: break-all;
    }
}

/* Cookie consent modal */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

#cookie-consent-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--bg-alt);
    border-top: 4px solid var(--blue);
}

.cookie-title {
    font-family: var(--display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.cookie-desc {
    font-size: 0.85rem;
    color: #4a4a52;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.cookie-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--ink);
}

.cookie-options input[type="checkbox"] {
    accent-color: var(--red);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-btn {
    font-family: var(--display);
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    background-color: var(--blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cookie-btn:hover {
    background-color: var(--ink);
}

.cookie-btn-alt {
    font-family: var(--display);
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.cookie-btn-alt:hover {
    background-color: var(--bg);
}

@media (max-width: 600px) {
    .cookie-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .cookie-btn,
    .cookie-btn-alt {
        flex: 1;
        width: auto;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 1rem;
    }
}
