/* ============================================================
   chickenroad.ch — Site styles
   (Loaded early because these rules reserve visible layout geometry)
   ============================================================ */

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 100 700;
    src: url("/assets/fonts/material-symbols-outlined.woff2") format("woff2");
}

/* Base */
body {
    background-color: #131313;
    color: #e5e2e1;
    font-family: "Inter", Arial, sans-serif;
    font-size-adjust: from-font;
}

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

/* Native mobile menu via <details> */
.mobile-menu[open] .mobile-menu-icon-open { display: none; }
.mobile-menu:not([open]) .mobile-menu-icon-close { display: none; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary::marker { content: ""; }

.symbol-fill {
    font-variation-settings: "FILL" 1;
}

.material-symbols-outlined {
    direction: ltr;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Material Symbols Outlined";
    font-feature-settings: "liga";
    font-style: normal;
    font-weight: normal;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    overflow: hidden;
    text-transform: none;
    vertical-align: -0.18em;
    white-space: nowrap;
    width: 1em;
    -webkit-font-smoothing: antialiased;
}

.brand-lockup {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    min-width: 0;
}

.brand-mark {
    background: #201f1f;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    box-shadow: 0 8px 22px rgb(0 0 0 / 28%);
    flex: 0 0 auto;
    height: 34px;
    overflow: hidden;
    width: 34px;
}

.brand-mark img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brand-name {
    color: #ffb866;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.brand-subline {
    color: #a0aec0;
    display: block;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0.2rem;
}

.cr-hero-media {
    opacity: 0.82;
    pointer-events: none;
}

.cr-hero-media img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
    object-position: center right;
}

.cr-hero-scrim {
    background:
        linear-gradient(90deg, rgb(19 19 19 / 98%) 0%, rgb(19 19 19 / 90%) 30%, rgb(19 19 19 / 62%) 58%, rgb(19 19 19 / 20%) 100%),
        linear-gradient(180deg, rgb(19 19 19 / 10%) 0%, rgb(19 19 19 / 42%) 58%, rgb(19 19 19 / 76%) 100%);
    pointer-events: none;
}

.content-figure {
    background: #1a1a1a;
    border: 1px solid #4a5568;
    border-radius: 0.75rem;
    overflow: hidden;
}

.content-figure img {
    display: block;
    height: auto;
    width: 100%;
}

.content-figure figcaption {
    color: #a0aec0;
    font-size: 12px;
    line-height: 1.4;
    padding: 0.75rem 1rem;
}

/* Smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }

/* Demo iframe and switcher */
.slot-frame {
    border: 0;
    display: block;
}

.demo-shell {
    contain: layout paint;
    position: relative;
}

.demo-shell iframe {
    border: 0;
    display: none;
}

.demo-shell.is-loaded iframe {
    display: block;
}

.demo-shell.is-loaded .demo-placeholder {
    display: none;
}

.demo-placeholder {
    align-items: center;
    background:
        radial-gradient(circle at 30% 25%, rgb(255 184 102 / 22%), transparent 34%),
        linear-gradient(135deg, #151515 0%, #070707 60%, #1b1010 100%);
    border: 1px solid rgb(255 255 255 / 10%);
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.demo-placeholder-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.demo-load-button {
    align-items: center;
    background: linear-gradient(135deg, #ff5450, #b91c24);
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 0.5rem;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 0.4rem;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    transition: filter 160ms ease, transform 160ms ease;
}

.demo-load-button:hover,
.demo-load-button:focus-visible {
    filter: brightness(1.08);
    outline: 2px solid #ffb866;
    outline-offset: 3px;
}

.demo-choice {
    min-height: 42px;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    background: #1a1a1a;
    color: #e5e2e1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.65rem 0.55rem;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.demo-choice:hover,
.demo-choice:focus-visible {
    border-color: #ffb866;
    outline: none;
}

.demo-choice[aria-pressed="true"] {
    background: linear-gradient(135deg, #ffb866, #955b01);
    border-color: #ffddba;
    color: #2b1700;
}

/* Editorial tables */
.content-table {
    border-collapse: collapse;
    background: #1c1b1b;
    font-size: 13px;
}

.content-table th,
.content-table td {
    border-bottom: 1px solid #4a5568;
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

.content-table th {
    background: #2a2a2a;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-table tbody th {
    background: transparent;
    color: #e5e2e1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.content-table td {
    color: #a0aec0;
}

.content-table tr:last-child th,
.content-table tr:last-child td {
    border-bottom: 0;
}

.content-table a {
    color: #ffb866;
    font-weight: 700;
}

.faq-item > summary::-webkit-details-marker {
    color: #ffb866;
}

/* Chicken Road visual layer */
.cr-hero-shell {
    border-color: #5f4638;
    border-radius: 1.1rem 0.55rem 1.2rem;
    box-shadow: 0 24px 80px rgb(0 0 0 / 34%);
    isolation: isolate;
}

.cr-hero-shell::before {
    background: repeating-linear-gradient(90deg, #ffb866 0 22px, transparent 22px 36px);
    block-size: 4px;
    content: "";
    inset-block-start: 0;
    inset-inline: 0;
    opacity: 0.9;
    position: absolute;
    z-index: 2;
}

.cr-hero-shell::after {
    background:
        linear-gradient(90deg, rgb(255 184 102 / 14%) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 100%);
    background-size: 64px 64px;
    content: "";
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.cr-hero-grid {
    container: inline-size / cr-hero;
}

.cr-cover-art {
    inline-size: clamp(158px, 52vw, 220px);
    max-inline-size: 100%;
}

.cr-stat-ribbon > div {
    background:
        linear-gradient(155deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 4%)),
        linear-gradient(90deg, rgb(255 184 102 / 16%), transparent 52%);
    border-color: rgb(255 184 102 / 18%);
    border-radius: 0.35rem 1rem 0.35rem 1rem;
    position: relative;
}

.cr-stat-ribbon > div::before {
    background: #ffb866;
    block-size: 2px;
    content: "";
    inset-block-start: 0;
    inset-inline: 14%;
    opacity: 0.75;
    position: absolute;
}

.cr-proof-row > div {
    border-radius: 0.35rem 0.9rem;
}

.cr-action-dock {
    background:
        linear-gradient(135deg, rgb(0 0 0 / 88%), rgb(45 22 14 / 78%)),
        repeating-linear-gradient(-35deg, rgb(255 184 102 / 11%) 0 1px, transparent 1px 12px);
    border-radius: 0.55rem 1.35rem;
}

.cr-pick-grid {
    align-items: stretch;
}

.cr-pick-card {
    border-radius: 0.55rem 1rem 0.55rem 1rem;
}

.cr-pick-card img {
    filter: saturate(1.08) contrast(1.02);
}

section[id] {
    scroll-margin-top: 84px;
}

.cr-advisor-panel {
    background:
        linear-gradient(180deg, rgb(28 27 27 / 96%), rgb(16 16 16 / 96%)),
        repeating-linear-gradient(90deg, rgb(255 184 102 / 12%) 0 2px, transparent 2px 18px);
    border-color: rgb(255 184 102 / 18%);
}

.cr-content-shell {
    align-items: start;
}

@media (min-width: 768px) {
    .cr-hero-grid {
        align-items: center;
        display: grid;
        gap: clamp(1.25rem, 3vw, 3.5rem);
        grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.36fr);
        padding: clamp(1.5rem, 3vw, 3rem);
    }

    .cr-cover-pane {
        align-items: flex-start;
    }

    .cr-cover-art {
        inline-size: clamp(240px, 20vw, 330px);
    }

    .cr-copy-pane {
        max-inline-size: 940px;
    }

    .cr-content-shell {
        grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    }

    .cr-side-rail {
        align-self: start;
        position: sticky;
        top: 84px;
    }
}

@media (min-width: 1024px) {
    .cr-stat-ribbon > div:nth-child(even) {
        transform: translateY(0.65rem);
    }
}

@media (max-width: 767px) {
    .cr-hero-shell {
        border-radius: 0.85rem;
    }

    .cr-hero-media {
        opacity: 0.48;
    }

    .cr-hero-media img {
        object-position: center top;
    }

    .cr-hero-scrim {
        background:
            linear-gradient(180deg, rgb(19 19 19 / 70%) 0%, rgb(19 19 19 / 70%) 42%, rgb(19 19 19 / 94%) 100%),
            linear-gradient(90deg, rgb(19 19 19 / 90%) 0%, rgb(19 19 19 / 34%) 100%);
    }

    .cr-side-rail {
        order: -1;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
