/* CARBON — Ultra Minimal Matte Template */
:root {
    --ls-accent: var(--color-accent, #e6a817);
}

/* --- Reset & Base --- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-text-heading);
}

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

h1, h2, h3, h4 {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-heading);
}

/* --- Layout --- */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-solid {
    background: var(--color-accent);
    color: #111111;
}

.btn-solid:hover {
    background: var(--color-accent-hover);
    color: #111111;
}

.btn-ghost {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-ghost:hover {
    background: var(--color-accent);
    color: #111111;
}

.btn-lg {
    padding: 14px 40px;
    font-size: 14px;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 12px;
}

/* --- Header --- */

.carbon-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.brand-text {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: flex;
    gap: 32px;
}

.nav-desktop a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.15s ease;
}

.nav-desktop a:hover {
    color: var(--color-text-heading);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Hamburger --- */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-dim);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.hamburger.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* --- Mobile Menu --- */

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 32px 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--color-surface);
}

.mobile-nav a:hover {
    color: var(--color-text-heading);
}

.mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.mobile-actions .btn {
    flex: 1;
    text-align: center;
}

/* --- Hero --- */

.hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--color-surface);
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    color: var(--color-text-heading);
    margin-bottom: 16px;
    max-width: 700px;
}

.hero-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.6;
}

/* --- Sections (shared) --- */

.section {
    padding: 56px 0;
    border-bottom: 1px solid var(--color-surface);
}

.section-title {
    font-size: 20px;
    color: var(--color-text-heading);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Slots --- */

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.slot-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.slot-card:hover {
    border-color: var(--color-accent-hover);
}

.slot-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-dark);
}

.slot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-name {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Providers (marquee slider) --- */

.providers-marquee {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.providers-track {
    display: flex;
    gap: 16px;
    animation: marquee 120s linear infinite;
    width: max-content;
}

.providers-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 140px;
    height: 60px;
    padding: 12px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    transition: border-color 0.15s ease;
}

.provider-item:hover {
    border-color: var(--color-accent);
}

.provider-item img {
    max-width: 100px;
    max-height: 36px;
    object-fit: contain;
    filter: brightness(0.7);
    opacity: 0.8;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.provider-item:hover img {
    filter: brightness(1);
    opacity: 1;
}

/* --- Content (BCR sections) --- */

/* Section main title */
.content-section .content-title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

/* Navigation pills */
.content-section .bcr-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.content-section .bcr-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dim);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.content-section .bcr-nav a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(230, 168, 23, 0.06);
}

/* Content blocks — cards */
.content-section .content-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    padding: 32px;
    margin-bottom: 16px;
}

.content-section .content-block:last-child {
    margin-bottom: 0;
}

.content-section .content-block > h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-heading);
}

.content-section .content-body h3 {
    font-size: 15px;
    color: var(--color-text-light);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section .content-body p {
    margin-bottom: 14px;
    color: var(--color-text-body);
    font-size: 14px;
    line-height: 1.7;
}

.content-section b,
.content-section strong {
    color: var(--color-text);
    font-weight: 600;
}

.content-section ul,
.content-section ol {
    margin: 12px 0 16px 20px;
    color: var(--color-text-body);
    font-size: 14px;
}

.content-section li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content-section th {
    text-align: left;
    padding: 10px 12px;
    background: var(--color-surface-dark);
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--color-border-light);
    white-space: nowrap;
}

.content-section td {
    padding: 10px 12px;
    color: var(--color-text-body);
    border-bottom: 1px solid var(--color-border);
}

/* Legacy bcr-block support */
.content-section .bcr-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-surface);
}

.content-section .bcr-block:last-child {
    border-bottom: none;
}

/* --- FAQ --- */

.faq-section .faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-section .faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-section .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.faq-section .faq-q:hover {
    color: var(--color-text-heading);
}

.faq-section .faq-q::after {
    content: '+';
    font-size: 18px;
    color: var(--color-text-faint);
    flex-shrink: 0;
    margin-left: 16px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-section .faq-item.faq-open .faq-q::after {
    content: '-';
}

.faq-section .faq-a {
    padding: 0 0 16px;
    color: var(--color-text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Footer --- */

.carbon-footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-surface);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 24px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.footer-logo:hover img {
    opacity: 0.8;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-accent-hover);
}

/* --- Responsive: Tablet (768px) --- */

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }

    .header-left {
        margin-right: auto;
    }

    .header-inner {
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .provider-item {
        width: 120px;
        height: 50px;
        padding: 10px 16px;
    }

    .content-section .bcr-nav a {
        padding: 7px 12px;
        font-size: 11px;
    }

    .content-section .content-block {
        padding: 24px 20px;
    }

    .content-section .content-block > h2 {
        font-size: 16px;
    }

    .content-section table {
        font-size: 12px;
    }

    .content-section th,
    .content-section td {
        padding: 8px 10px;
    }
}

/* --- Wide screens: 5 slots per row --- */
@media (min-width: 1400px) {
    .slots-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Responsive: Mobile (480px) --- */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        height: 48px;
        gap: 8px;
    }

    .mobile-menu {
        top: 48px;
        padding: 24px 16px;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn-lg {
        padding: 12px 32px;
        font-size: 13px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .slot-name {
        padding: 8px 10px;
        font-size: 12px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .provider-item {
        width: 100px;
        height: 44px;
        padding: 8px 12px;
    }

    .provider-item img {
        max-width: 70px;
        max-height: 28px;
    }

    .content-section .bcr-nav a {
        padding: 6px 10px;
        font-size: 10px;
    }

    .content-section .content-block {
        padding: 20px 16px;
        margin-bottom: 12px;
    }

    .content-section .content-block > h2 {
        font-size: 15px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .content-section .content-body p {
        font-size: 13px;
    }

    .content-section .content-body h3 {
        font-size: 14px;
    }

    .faq-section .faq-q {
        font-size: 13px;
        padding: 14px 0;
    }

    .faq-section .faq-a {
        font-size: 13px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

/* Slot image type: vertical */
[data-slot-type="vertical"] .slot-img { aspect-ratio: 3/4; }
[data-slot-type="vertical"] .slot-img img { object-fit: cover; }

/* Slot image type: horizontal */
[data-slot-type="horizontal"] .slot-img { aspect-ratio: 16/9; }
[data-slot-type="horizontal"] .slot-img img { object-fit: cover; }
