/* The Oval Office — home page styles. */
        /* Page-specific layout for the homepage. Colours, radii and shadows come from tokens.css; shared components from components.css. */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            overflow-x: hidden;
        }

        /* Header */
        header.site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            animation: slideDown 0.6s ease-out;
        }

        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        nav.site-nav {
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--color-primary);
            flex-shrink: 0;
        }

        .logo img {
            height: auto;
        }

        .nav-links {
            flex-shrink: 0;
        }

        /* Hero Section */
        .hero {
            padding: 180px 2rem 120px;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-areas: "text image";
            gap: 40px 60px;
            align-items: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, var(--color-accent-wash) 0%, transparent 70%);
            animation: pulse 8s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.6; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }

        .hero-content {
            grid-area: content;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }

        .hero-text h1 {
            font-family: var(--font-display);
            font-size: clamp(2.4rem, 5vw, 4rem);
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: -0.01em;
            margin: 0 0 0.75rem;
            color: var(--color-primary);
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-text {
            grid-area: text;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.8s ease-out 0.3s both;
        }

        .hero-text p {
            font-size: 1.25rem;
            line-height: 1.7;
            color: var(--color-text-muted);
            margin: 0 0 1.5rem;
            max-width: 600px;
        }

        .hero-image {
            grid-area: image;
            position: relative;
            z-index: 1;
            animation: fadeInUp 0.8s ease-out 0.4s both;
        }

        .hero-image img {
            width: 100%;
            height: auto;
            border-radius: var(--radius-xl);
            border: var(--border-accent-frame) solid var(--color-accent);
            box-shadow: var(--shadow-hero);
        }

        .hero-signup {
            margin: 0 0 1.25rem;
            animation: fadeInUp 0.8s ease-out 0.5s both;
            position: relative;
            z-index: 1;
        }

        .hero-signup .beehiiv-embed {
            border-radius: var(--radius-sm) !important;
            box-shadow: var(--shadow-tab) !important;
            overflow: hidden !important;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.6s both;
        }

        /* Competition blocks. Desktop: image left, copy right.
           Mobile order is set with grid areas: title, image, description, table, buttons. */
        .comp-feature { max-width: 1100px; margin: 0 auto; padding: 4.5rem 2rem; }
        .comp-feature-sn { max-width: none; background: var(--color-surface); border-top: 1px solid var(--color-border-subtle); }
        .comp-feature-sn .comp-feature-grid {
            max-width: 1100px;
            margin: 0 auto;
            grid-template-areas:
                "image title"
                "image copy"
                "image ctas";
        }
        .comp-feature-grid {
            display: grid;
            grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
            grid-template-areas:
                "image title"
                "image rounds"
                "image copy"
                "image ctas";
            column-gap: 3rem;
            row-gap: 0.85rem;
            align-items: center;
        }
        .comp-title {
            grid-area: title;
            margin: 0;
            font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--font-display);
            letter-spacing: -0.01em;
            color: var(--color-primary);
        }
        .comp-figure { grid-area: image; margin: 0; }
        .comp-figure img {
            width: 100%;
            max-width: 380px;
            height: auto;
            display: block;
            border-radius: var(--radius-xl);
            border: 1px solid var(--color-border);
            box-shadow: var(--shadow-panel);
        }
        .comp-copy { grid-area: copy; margin: 0; max-width: 52ch; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }
        .comp-copy a { color: var(--color-accent-text); font-weight: 600; }
        .comp-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 0.75rem; }
        .round-table { grid-area: rounds; border-collapse: separate; border-spacing: 0.15rem 0; width: auto; margin: 0.15rem 0; justify-self: start; }
        .round-table caption {
            caption-side: top;
            text-align: left;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--color-text-muted);
            margin-bottom: 0.35rem;
        }
        .round-table th, .round-table td { text-align: center; padding: 0; }
        .round-table th { font-size: 0.78rem; font-weight: 700; color: var(--color-text-muted); padding-bottom: 0.35rem; }
        .round-tick {
            display: inline-flex; align-items: center; justify-content: center;
            width: 1.65rem; height: 1.65rem; border-radius: 50%;
            background: var(--color-success-fill); color: #fff;
            font-weight: 700; font-size: 0.85rem; line-height: 1;
        }
        .round-open, .round-next {
            display: inline-flex; box-sizing: border-box;
            width: 1.65rem; height: 1.65rem; border-radius: 50%;
            border: 2px solid var(--color-border); background: transparent;
        }
        .round-next {
            border-color: var(--color-action);
            box-shadow: 0 0 0 3px var(--color-accent-wash);
        }
        .round-live {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 3.1rem; min-height: 1.65rem; padding: 0.15rem 0.55rem;
            border-radius: 8px; background: var(--color-action); color: var(--color-on-action);
            font-weight: 700; font-size: 0.78rem; line-height: 1;
        }
        .round-dash { color: var(--color-text-subtle); font-weight: 700; font-size: 1.1rem; }
        @media (max-width: 768px) {
            .comp-feature { padding: 3rem 1.25rem; }
            .comp-feature-grid,
            .comp-feature-sn .comp-feature-grid {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "title"
                    "image"
                    "copy"
                    "rounds"
                    "ctas";
                row-gap: 1rem;
            }
            .comp-feature-sn .comp-feature-grid {
                grid-template-areas:
                    "title"
                    "image"
                    "copy"
                    "ctas";
            }
            .comp-figure img { max-width: 280px; margin: 0 auto; }
            .comp-ctas .btn { width: 100%; text-align: center; }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Blog Preview Section */
        .blog-preview-section {
            padding: 80px 2rem;
            background: var(--color-surface);
            border-top: 1px solid var(--color-accent-wash);
        }

        .blog-preview-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .blog-preview-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .blog-preview-header .section-label {
            margin-bottom: 1rem;
        }

        .blog-preview-header h2 {
            font-family: var(--font-display);
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-primary);
            margin-bottom: 0.5rem;
        }

        .blog-preview-header p {
            color: var(--color-text-muted);
            font-size: 1.125rem;
        }

        .blog-articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        /* Emoji placeholder inside the gradient image box */
        .blog-article-image {
            width: 100%;
            font-size: 3rem;
        }

        .blog-article-link {
            align-items: center;
        }


        .view-all-btn {
            text-align: center;
            margin-top: 1rem;
        }

        /* Newsletter Section */
        .newsletter-section {
            padding: 60px 2rem;
            background: var(--color-background);
        }

        .newsletter-container {
            max-width: 920px;
            margin: 0 auto;
        }

        .newsletter-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .newsletter-header h2 {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 700;
            color: var(--color-primary);
            margin-bottom: 0.5rem;
        }

        .newsletter-header p {
            color: var(--color-text-muted);
            font-size: 1.125rem;
        }

        .beehiiv-embed {
            border-radius: var(--radius-lg) !important;
            box-shadow: var(--shadow-panel) !important;
        }

        /* Data Section */
        .data-section {
            padding: 100px 2rem;
            background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
            position: relative;
        }

        .data-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, var(--color-accent-soft) 50%, transparent 100%);
        }

        .data-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            margin-bottom: var(--space-8);
        }

        .section-header .section-label {
            margin-bottom: 0;
        }

        /* Pill Tabs */
        .tabs-container {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }

        .players-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .data-footnote {
            text-align: center;
            margin-top: 3rem;
        }

        .data-footnote p {
            color: var(--color-text-muted);
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }

        .movers-empty {
            text-align: center;
            color: var(--color-text-muted);
            padding: 2rem;
        }

        /* Footer */
        .site-footer {
            margin-top: 100px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto 3rem;
            gap: 4rem;
        }

        .footer-brand h3 {
            margin-bottom: 1rem;
        }

        .social-link {
            text-decoration: none;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 2rem;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            nav.site-nav {
                padding: 1rem;
                gap: 0.5rem;
            }

            .theme-toggle {
                width: 34px;
                height: 34px;
            }

            .logo img {
                width: 180px;
                height: auto;
            }

            .nav-links {
                gap: 0.5rem;
            }

            .nav-link {
                display: none; /* Hide subscribe on mobile */
            }

            .hero {
                padding: 140px 1.5rem 80px;
                grid-template-columns: 1fr;
                grid-template-areas:
                    "text"
                    "image";
                gap: 28px;
            }

            .hero-text { order: 1; }
            .hero-image { order: 2; }

            .hero-text h1 {
                font-size: 2.15rem;
            }

            .hero-text p {
                font-size: 1.125rem;
            }

            .hero-signup {
                margin: 0 0 1rem;
            }

            .hero-signup .beehiiv-embed {
                max-width: 100% !important;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
                text-align: center;
                white-space: nowrap;
                font-size: 0.9rem;
                padding: 0.7rem 1rem;
            }

            .data-section {
                padding: 60px 1.5rem;
            }

            .players-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                gap: 2rem;
            }
        }

        /* Price Movers Section */
        .price-movers-section {
            padding: 5rem 2rem;
            background: var(--color-surface);
        }

        .price-movers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .player-info-mover {
            flex: 1;
        }

        .see-more-btn {
            margin-top: 0.5rem;
        }

        .see-more-btn .arrow {
            font-size: 1.125rem;
            transition: transform 0.3s ease;
        }

        @media (max-width: 968px) {
            .price-movers-grid {
                grid-template-columns: 1fr;
            }

            .blog-articles-grid {
                grid-template-columns: 1fr;
            }

            .blog-preview-section {
                padding: 60px 1.5rem;
            }

            .blog-preview-header h2 {
                font-size: 2rem;
            }

            .newsletter-section {
                padding: 40px 1.5rem;
            }

            .newsletter-header h2 {
                font-size: 1.75rem;
            }
        }

        @media (max-width: 520px) {
            .price-movers-grid {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        /* Leagues CTA banner (always violet, white ink in both themes) */
        .cta-banner {
            background: linear-gradient(135deg, var(--color-action) 0%, var(--color-action-hover) 100%);
            padding: 4rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            color: var(--color-on-action);
        }

        .cta-banner-pattern {
            position: absolute;
            inset: 0;
            /* white stripes on the always-violet band: reads the same in both themes */
            background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
            opacity: 0.5;
        }

        .cta-banner-inner {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .cta-banner-eyebrow {
            font-family: var(--font-label);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            /* translucent white chip on the always-violet band */
            background: rgba(255, 255, 255, 0.15);
            border-radius: var(--radius-2xl);
            padding: 6px 14px;
            margin-bottom: 1.25rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--color-on-action);
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .cta-banner h2 {
            font-family: var(--font-display);
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1.15;
            color: var(--color-on-action);
            margin-bottom: 1rem;
            letter-spacing: -0.01em;
        }

        .cta-banner-lead {
            font-size: 1.1rem;
            color: var(--color-on-action);
            opacity: 0.92;
            margin-bottom: 0.5rem;
            font-weight: 400;
            line-height: 1.6;
        }

        .cta-banner-note {
            font-size: 0.9rem;
            color: var(--color-on-action);
            opacity: 0.85;
            margin-bottom: 2rem;
        }

        .cta-banner-btn {
            display: inline-block;
            background: var(--color-on-action);
            color: var(--color-action);
            padding: 1rem 3rem;
            border-radius: var(--radius-2xl);
            font-family: var(--font-body);
            font-weight: 800;
            font-size: 1.125rem;
            cursor: pointer;
            border: none;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-dropdown);
        }

        .cta-banner-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-modal);
        }

        .cta-banner-btn:focus-visible {
            outline-color: var(--color-on-action);
        }

        @media (max-width: 768px) {
            .cta-banner h2 { font-size: 2rem; }
            .cta-banner-btn { padding: 1rem 1.5rem; }
        }

        /* ── Nav Dropdown (positioning; colours from components.css) ── */
        .nav-dropdown { position: relative; }
        .nav-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            padding-top: 16px;
            z-index: 1000;
        }
        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
        .nav-dropdown-trigger { cursor: pointer; }

        /* ── Notify Modal ─────────────────────────────── */
        .notify-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--color-overlay);
            backdrop-filter: blur(6px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .notify-overlay.open { display: flex; }
        .notify-modal {
            width: 100%;
            animation: modalSlideIn 0.3s ease;
        }
        @keyframes modalSlideIn {
            from { opacity: 0; transform: translateY(20px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        .notify-modal-close {
            line-height: 1;
            transition: color 0.2s;
        }
        .notify-modal-close:hover { color: var(--color-text); }
        .notify-modal h3 { margin-bottom: 0.4rem; }
        .notify-modal .modal-sub { line-height: 1.5; }
        .notify-form-group {
            margin-bottom: 1rem;
        }
        .notify-form-group > label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text);
            margin-bottom: 0.4rem;
        }
        .notify-checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            margin-bottom: 1.25rem;
        }
        .notify-checkbox-label {
            position: relative;
            gap: 0.7rem;
            padding: 0.75rem 1rem;
            border: var(--border-card) solid var(--color-border);
            border-radius: var(--radius-md);
            transition: border-color 0.2s, background 0.2s;
            font-weight: 500;
            font-size: 0.92rem;
        }
        .notify-checkbox-label .cb-text {
            flex: 1;
            align-self: center;
            line-height: 1.4;
        }
        .notify-checkbox-label:hover { background: var(--color-surface); border-color: var(--color-accent-soft); }
        /* Visually hidden but still keyboard-operable */
        .notify-checkbox-label input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            margin: 0;
            pointer-events: none;
        }
        .notify-checkbox-label .checkmark {
            width: 20px; height: 20px;
            border: 2px solid var(--color-text-subtle);
            border-radius: 5px;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        .notify-checkbox-label input:focus-visible ~ .checkmark {
            outline: 2px solid var(--color-focus);
            outline-offset: 2px;
        }
        .notify-checkbox-label input:checked ~ .checkmark {
            background: var(--color-action);
            border-color: var(--color-action);
            color: var(--color-on-action);
        }
        .notify-checkbox-label input:checked ~ .checkmark::after { content: '✓'; font-size: 12px; font-weight: 700; }
        .notify-checkbox-label.checked { border-color: var(--color-accent); background: var(--color-accent-tint); }
        .notify-submit-btn {
            padding: 0.9rem;
            border-radius: var(--radius-2xl);
            font-size: 1rem;
            font-weight: 700;
        }
        .notify-error {
            display: none;
            margin-top: 0.75rem;
            text-align: center;
        }
        .notify-success {
            display: none;
            text-align: center;
            padding: 1rem 0;
        }
        .notify-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
        .notify-success h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--color-primary); }
        .notify-success p { color: var(--color-text-muted); font-size: 0.95rem; }

        /* Tournament cards on homepage */
        .tournaments-section {
            padding: 5rem 2rem;
            background: var(--color-surface);
        }
        .tournaments-container { max-width: 1200px; margin: 0 auto; }
        .tournaments-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2.5rem;
            align-items: stretch;
        }
        @media (max-width: 768px) { .tournaments-grid { grid-template-columns: 1fr; } }
        .tc-badge {
            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            gap: 0.4rem;
            padding: 4px 10px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
