/* Cineoteca — site styles
   Dark, purple-tinted palette per brand. One display face (Bricolage
   Grotesque), system stack for body. Borders over shadows; radius by
   hierarchy (device 28 / cards 14 / chips 8). */

:root {
    --bg: #0e0c14;
    --bg-raised: #171422;
    --bg-sunken: #0a0910;
    --line: #2a2440;
    --line-soft: #211c33;
    --ink: #edeaf6;
    --ink-dim: #a79fc0;
    --accent: #8b6cf0;
    --accent-strong: #a98bff;
    --accent-ink: #14102a;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1100px;
    --r-device: 28px;
    --r-card: 14px;
    --r-chip: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--ink-dim); max-width: 60ch; }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: 0 0 var(--r-chip) 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.brand-mark { display: block; border-radius: 9px; }
.brand-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    color: var(--ink-dim);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 2px;
}
.nav-list a:hover, .nav-list a.is-current { color: var(--ink); }
.nav-list a.is-current { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-list .nav-cta {
    color: var(--accent-ink);
    background: var(--accent);
    padding: 8px 16px;
    border-radius: var(--r-chip);
    font-weight: 700;
}
.nav-list .nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }

.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-chip); padding: 2px; }
.lang-switch a, .lang-current {
    display: inline-block;
    padding: 4px 9px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink-dim);
}
.lang-current { background: var(--bg-raised); color: var(--ink); }
.lang-switch a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    color: var(--ink);
    padding: 8px 12px;
    font: inherit;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-toggle-label { font-size: 0.9rem; }

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg-raised);
        border-bottom: 1px solid var(--line);
        padding: 16px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
    .site-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
    .nav-list li { width: 100%; }
    .nav-list a { display: block; padding: 10px 4px; width: 100%; }
    .nav-list .nav-cta { display: inline-block; width: auto; margin-top: 6px; }
}

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}
.eyebrow {
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn-big { font-size: 1.15rem; padding: 15px 28px; }

/* Schematic device preview (placeholder for real screenshots) */
.hero-device { display: flex; justify-content: center; }
.device {
    width: min(290px, 80vw);
    border: 1px solid var(--line);
    border-radius: var(--r-device);
    padding: 12px;
    background: var(--bg-sunken);
}
.device-screen {
    border-radius: calc(var(--r-device) - 10px);
    background: linear-gradient(170deg, #141021, #0d0b15 70%);
    padding: 16px 14px 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 480px;
}
.ui-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ui-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent-strong), #6e4fd4); }
.ui-line { height: 8px; border-radius: 4px; background: var(--line); display: inline-block; }
.ui-row-label { height: 9px; border-radius: 4px; background: var(--line-soft); margin-top: 4px; }
.w25 { width: 25%; } .w30 { width: 30%; } .w40 { width: 40%; } .w45 { width: 45%; }
.ui-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ui-tile {
    aspect-ratio: 2 / 3;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
    display: block;
}
.t1 { background: linear-gradient(160deg, #4a3c80, #2b2254); }
.t2 { background: linear-gradient(160deg, #6650ab, #342864); }
.t3 { background: linear-gradient(160deg, #3a2f68, #221b48); }
.t4 { background: linear-gradient(160deg, #7d64cf, #3f3275); }
.t5 { background: linear-gradient(160deg, #574894, #2a2156); }
.ui-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: rgba(255,255,255,0.14);
    display: block;
}
.ui-progress::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    background: var(--accent-strong);
}
.p15::before { width: 15%; } .p35::before { width: 35%; } .p70::before { width: 70%; } .p85::before { width: 85%; }
.ui-navbar {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}
.ui-nav-item { width: 26px; height: 8px; border-radius: 4px; background: var(--line); }
.ui-nav-item.is-active { background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
    .device { animation: device-in 0.9s cubic-bezier(.2,.7,.2,1) both; }
    @keyframes device-in {
        from { transform: translateY(16px); opacity: 0; }
        to { transform: none; opacity: 1; }
    }
}

@media (max-width: 820px) {
    .hero { padding: 44px 0 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .device-screen { min-height: 420px; }
}

/* Sections */
.section { padding: 56px 0; }
.section-raised { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-sub { color: var(--ink-dim); }
.section-more { margin-top: 20px; }
.section-cta { text-align: left; padding-top: 12px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 14px; }

.page-head { padding: 56px 0 8px; }
.page-head .lead { margin-top: 6px; }

/* Cards */
.card-grid { display: grid; gap: 18px; margin-top: 24px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
    .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
}
.card {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 22px;
    background: var(--bg-raised);
}
.card p { color: var(--ink-dim); margin-bottom: 0; }
.card h3 { margin-top: 12px; }

.card-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-ink);
    border: 1px solid var(--line);
    position: relative;
}
.card-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background: var(--accent-strong);
}
.icon-play::before { clip-path: polygon(15% 0, 100% 50%, 15% 100%); }
.icon-resume::before { clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%); width: 20px; height: 20px; border-radius: 3px; }
.icon-resume::after {
    content: "";
    position: absolute;
    left: 10px; bottom: 11px;
    width: 12px; height: 4px;
    background: var(--accent);
}
.icon-download::before { clip-path: polygon(35% 0, 65% 0, 65% 50%, 100% 50%, 50% 100%, 0 50%, 35% 50%); }

/* Provider strip */
.provider-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.provider-strip a {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    background: var(--bg);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}
.provider-strip a:hover { border-color: var(--accent); }

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    max-width: 62ch;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 18px 52px;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-family: var(--display);
    font-weight: 700;
    color: var(--accent-strong);
    background: var(--bg-raised);
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 34px;
    bottom: 2px;
    width: 1px;
    background: var(--line-soft);
}
.steps.compact li { padding-bottom: 12px; padding-left: 44px; font-size: 0.98rem; }
.steps.compact li::before { width: 28px; height: 28px; font-size: 0.9rem; }
.steps.compact li:not(:last-child)::after { left: 14px; top: 28px; }

/* Lists */
.check-list { list-style: none; margin: 14px 0 0; padding: 0; max-width: 66ch; }
.check-list li { position: relative; padding: 4px 0 10px 30px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent-strong);
    border-bottom: 2px solid var(--accent-strong);
    transform: rotate(-45deg);
}
.check-list.dependent li::before {
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-dim);
    top: 13px;
}

.link-list { list-style: none; padding: 0; margin: 10px 0 0; }
.link-list li { padding: 4px 0; }

/* Feature blocks */
.feature-sections { display: grid; gap: 40px; }
.feature-block h2 { margin-bottom: 4px; }
.feature-block-dependent {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 24px;
    background: var(--bg-raised);
}
.feature-block-dependent p { color: var(--ink-dim); }

/* Provider cards */
.provider-card h2 { font-size: 1.4rem; }
.provider-card p { color: var(--ink-dim); }
.provider-method { color: var(--ink); }
.method-label {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 8px;
    margin-right: 8px;
    font-size: 0.85rem;
    color: var(--accent-strong);
}
.card-link { font-weight: 600; }

/* Setup */
.setup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 820px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-card {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 22px;
    background: var(--bg);
}
.note-inline { color: var(--ink-dim); font-size: 0.98rem; }

/* Notes & boxes */
.note-box {
    margin-top: 30px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-chip);
    padding: 18px 22px;
    background: var(--bg-raised);
}
.note-box h2 { font-size: 1.15rem; }
.note-box p { color: var(--ink-dim); margin-bottom: 0; }
.legal-note { margin-top: 26px; color: var(--ink-dim); font-size: 0.92rem; max-width: 80ch; }
.legal-updated { color: var(--ink-dim); }

/* Download */
.download-box {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 34px 28px;
    background: var(--bg-raised);
}
.coming-badge {
    display: inline-block;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--accent-strong);
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    padding: 8px 16px;
    margin-bottom: 14px;
    background: var(--bg);
}
.app-id { color: var(--ink-dim); margin: 14px 0 0; font-size: 0.95rem; }
.app-id code {
    background: var(--bg-sunken);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.92em;
}

/* Support */
.support-sections { display: grid; gap: 36px; }
.faq {
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    background: var(--bg-raised);
    margin-top: 10px;
}
.faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent-strong);
    border-bottom: 2px solid var(--accent-strong);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--ink-dim); }

/* Prose (legal) */
.prose p { max-width: 72ch; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 48px 0 36px;
    margin-top: 40px;
    background: var(--bg-sunken);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { color: var(--ink-dim); margin-top: 12px; font-size: 0.98rem; }
.footer-col h2 { font-size: 0.95rem; font-weight: 700; color: var(--ink); font-family: var(--body); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 3px 0; }
.footer-col a { color: var(--ink-dim); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-note {
    margin: 26px 0 0;
    color: var(--ink-dim);
    font-size: 0.85rem;
    max-width: 90ch;
}
