/* =========================================================
   C&T Studios – Brand: Tape Yellow on black
   One stylesheet for the whole store. Upload as asset "ct.css".
   ========================================================= */

:root {
    --bg: #0A0A0A;
    --surface: #121212;
    --surface-2: #1A1A1A;
    --line: #262626;
    --line-2: #3A3A3A;
    --text: #F5F5F5;
    --text-2: #D4D4D4;
    --text-3: #9A9A9A;
    --accent: #FFC400;          /* C&T Tape Yellow */
    --accent-hover: #FFD54D;
    --accent-pressed: #E0AC00;
    --accent-ink: #0A0A0A;
    --danger: #FF4D4D;
    --ok: #3DDC84;
    --warn: #FF8A3D;
    --info: #4CC9F0;

    --f-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
    --f-body: 'Hanken Grotesk', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

    --wrap: 1360px;
    --gutter: 40px;
    --radius: 3px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font-family: var(--f-body); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr-only:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
    margin: 0; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
    line-height: .9; letter-spacing: .005em;
}
.display--xl { font-size: clamp(3.4rem, 8vw, 7.5rem); }
.display--l { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: .95; }
.display--m { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; }
.display--s { font-size: 1.75rem; line-height: 1; }
.label {
    font-family: var(--f-mono); font-weight: 500; font-size: 12px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.label--accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 52ch; }
.muted { color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: 0 1.4rem; border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
    background: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { background: var(--accent-pressed); }
.btn--light { background: var(--text); color: var(--accent-ink); }
.btn--light:hover { background: #E6E6E6; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .88rem; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: var(--text); }
.link-danger { color: var(--danger); font-size: .9rem; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .94);
    border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-family: var(--f-display); font-weight: 800; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.nav-logo span i { font-style: normal; color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-currency {
    height: 40px; padding: 0 28px 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23D4D4D4' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; appearance: none; cursor: pointer;
}
.nav-cart {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.nav-cart:hover { border-color: var(--text); }
.nav-cart b { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-content: center; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; letter-spacing: 0; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-2); text-decoration: none; }
.nav-user img { width: 28px; height: 28px; border-radius: 2px; }
.nav-user:hover { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
    .nav-toggle { display: grid; }
    .nav-menu {
        position: absolute; top: var(--nav-h); left: 0; right: 0; display: none;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
        background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .nav.is-open .nav-menu { display: flex; }
    .nav-menu .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
    .nav-hide-sm { display: none; }
    .nav-menu .nav-sm { display: block; }
    .nav-menu .nav-currency.nav-sm { width: 100%; height: 48px; margin-top: 16px; }
}
@media (min-width: 961px) { .nav-sm { display: none !important; } }

/* ---------- Announcement / notices ---------- */
.bar { background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 500; text-align: center; padding: 10px var(--gutter); }
.bar a { color: var(--accent-ink); font-weight: 700; }
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
    max-width: min(560px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid var(--line-2);
    border-radius: var(--radius); background: var(--surface-2); color: var(--text); font-size: .95rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    padding: 18px 20px; margin-bottom: 32px; border: 1px solid var(--line-2);
    border-radius: var(--radius); background: var(--surface);
}
.notice .label { display: block; margin-bottom: 4px; }
.doc-sec > p code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--surface-2); color: var(--text); font-family: var(--f-mono); font-size: .86em; }
.notice strong { display: block; font-size: 1.05rem; }
.notice p { margin: 4px 0 0; color: var(--text-2); font-size: .95rem; max-width: 70ch; }

/* ---------- Hero ---------- */
.hero { padding: 24px var(--gutter) 0; max-width: calc(var(--wrap) + 2 * var(--gutter) - 80px); margin: 0 auto; }
.hero-stage {
    position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end;
    border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
}
.hero-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%);
}
.hero-copy { position: relative; z-index: 1; padding: 56px; max-width: 820px; }
.hero-copy .lead { margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head p { margin: 12px 0 0; }

/* ---------- Product tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 24px; }
.tile { display: flex; flex-direction: column; gap: 20px; text-decoration: none; }
.tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-media img { transform: scale(1.02); }
.tile-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile-body > div { flex: 1 1 260px; min-width: 0; }
.tile h3 { margin: 6px 0; }
.tile p { margin: 0; color: var(--text-2); }
.tile .btn { pointer-events: none; }

/* ---------- Brand placeholder (no product image yet) ---------- */
.brandph {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
    padding: 22px; background: var(--surface-2); color: var(--accent);
    border-bottom: 3px solid var(--accent);
}
.brandph span { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.brandph strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .9; text-transform: uppercase; max-width: 12ch; }
.brandph--xl { padding: 36px; }
.brandph--xl strong { font-size: clamp(2.5rem, 6vw, 5rem); }
.card-media .brandph strong { font-size: 2.4rem; }
.card-media .brandph span, .tile-media .brandph span { align-self: flex-end; }

/* ---------- Badges & chips ---------- */
.badges { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; gap: 6px; }
.badges:empty { display: none; }
.pkg-gallery .notice { margin-bottom: 20px; }
.badge {
    padding: 4px 8px; border-radius: 2px; background: var(--bg); color: var(--text);
    font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--light { background: var(--text); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 2px;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}

/* ---------- Pillars / strip ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; padding-top: 48px; border-top: 1px solid var(--line); }
.pillars p { margin: 8px 0 0; color: var(--text-2); }
.pillars a { color: var(--text); }

.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.cta-band p { margin: 10px 0 0; color: var(--text-2); max-width: 56ch; }

/* ---------- Category page ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head .lead { margin: 16px 0 0; }
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs-nav a {
    padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
}
.tabs-nav a:hover { color: var(--text); border-color: var(--text); }
.tabs-nav a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--accent-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card:hover { border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px; }
.card-body h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.card-body h2 a { text-decoration: none; }
.card-body h2 a::after { content: ""; position: absolute; inset: 0; }
.card-body p { margin: 0; color: var(--text-2); font-size: .95rem; }
.card-body p.card-sub { margin-top: -4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.price { font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.price s { color: var(--text-3); margin-right: 6px; font-size: 13px; }
.price small { color: var(--text-3); font-size: 12px; }

.empty { padding: 72px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.empty p { margin: 12px auto 24px; max-width: 46ch; color: var(--text-2); }

/* ---------- Package page ---------- */
.pkg {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); column-gap: 40px; row-gap: 0; align-items: start; padding-top: 48px;
    grid-template-areas: "gallery side" "main side";
}
.pkg-gallery { grid-area: gallery; min-width: 0; }
.pkg-side { grid-area: side; position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pkg-side { min-width: 0; }
.pkg-side h1 { margin: 10px 0 0; font-size: clamp(2.2rem, 3.3vw, 3.4rem); overflow-wrap: break-word; }
.related-card > span { min-width: 0; }
.pkg-sub { margin: 10px 0 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pkg-summary { margin: 16px 0 0; color: var(--text-2); }
.pkg-summary p { margin: 0 0 .6em; }
.pkg-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pkg-price .price { font-size: 22px; }
.pkg-actions { display: grid; gap: 10px; }
.pkg-hint { margin: 10px 0 0; font-size: .85rem; color: var(--text-3); text-align: center; }
.trust { list-style: none; display: grid; gap: 10px; margin: 20px 0 0; padding: 0; font-size: .9rem; color: var(--text-2); }
.trust li { display: flex; gap: 10px; }
.trust li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; background: var(--accent); }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }

.pkg-main { grid-area: main; min-width: 0; }
.pkg-content { margin-top: 48px; }
.ptabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
    flex: none; margin-bottom: -1px; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.ptab:hover { color: var(--text); }
.ptab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.related { margin-top: 64px; }
.related-card { display: flex; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.related-card:hover { border-color: var(--line-2); }
.related-card img, .related-card .ph { flex: none; width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: var(--surface-2); }
.related-card strong { display: block; font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.related-card p { margin: 6px 0 0; color: var(--text-2); font-size: .92rem; }

.buybar { display: none; }

/* ---------- Gallery ---------- */
.gal-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gal-stage img, .gal-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.gal-stage button.gal-zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-nav {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px;
    display: grid; place-content: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
}
.gal-nav:hover { background: rgba(0, 0, 0, .85); }
.gal-nav svg { width: 18px; height: 18px; }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 3px 8px; border-radius: 2px; background: rgba(0, 0, 0, .7); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.gal-thumb { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 10; padding: 0; border: 1px solid transparent; border-radius: 2px; overflow: hidden; background: var(--surface-2); opacity: .55; cursor: pointer; }
.gal-thumb:hover { opacity: .85; }
.gal-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb .play { position: absolute; inset: 0; display: grid; place-content: center; background: rgba(0, 0, 0, .4); }
.gal-thumb .play svg { width: 18px; height: 18px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 32px; border: 0; background: rgba(0, 0, 0, .94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* ---------- Prose (descriptions, docs, CMS) ---------- */
.prose { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--text); font-family: var(--f-body); font-weight: 700; line-height: 1.25; margin: 2em 0 .6em; }
.prose h2 { font-size: 1.4rem; } .prose h3 { font-size: 1.15rem; } .prose h4 { font-size: 1rem; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--accent); }
.prose code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--surface-2); color: var(--text); font-family: var(--f-mono); font-size: .86em; overflow-wrap: anywhere; }
.prose pre { position: relative; margin: 0 0 1.2em; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-family: var(--f-mono); font-size: .86rem; line-height: 1.7; color: var(--text); }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--bg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { border-color: var(--text); }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
.toc .label { margin-bottom: 10px; }
.toc a { padding: 6px 0 6px 14px; border-left: 1px solid var(--line-2); color: var(--text-3); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left: 2px solid var(--accent); padding-left: 13px; }
.doc-sec { padding-bottom: 48px; }
.doc-sec + .doc-sec { padding-top: 48px; border-top: 1px solid var(--line); }
.doc-sec > h2 { margin: 0 0 20px; font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; text-transform: uppercase; line-height: 1; color: var(--text); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.err-search { width: 100%; height: 52px; margin: 8px 0 14px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); font-family: var(--f-mono); font-size: 14px; }
.err-search:focus { border-color: var(--accent); outline: none; }
.err-count { margin-bottom: 12px; }
.err-list { display: grid; gap: 8px; }
.err { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.err summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; color: var(--text); }
.err summary::-webkit-details-marker { display: none; }
.err-code { flex: none; padding: 2px 8px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.err-code.is-msg { color: var(--text-3); }
.err-title { flex: 1; font-size: .95rem; }
.err-tag { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.err-body { padding: 0 16px 16px; color: var(--text-2); font-size: .95rem; }
.err-body ol { margin: .4em 0; padding-left: 1.3em; }

/* ---------- Support ---------- */
.ways { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.way { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.way--main { border-color: var(--accent); }
.way h3 { margin: 0; font-size: 1.15rem; }
.way p { margin: 0; color: var(--text-2); font-size: .95rem; }
.way .btn { margin-top: auto; align-self: flex-start; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--f-mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.step h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-2); font-size: .95rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--text-2); max-width: 75ch; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "+"; flex: none; font-family: var(--f-mono); color: var(--accent); }
.ticks--no li::before { content: "–"; color: var(--text-3); }
.template { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.template-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.template pre { margin: 0; padding: 16px; font-family: var(--f-mono); font-size: .86rem; line-height: 1.8; white-space: pre; overflow-x: auto; }
.template .copy-btn { position: static; }

/* ---------- Basket ---------- */
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.items { display: grid; gap: 12px; }
.item { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.item img, .item .ph { flex: none; width: 104px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; background: var(--surface-2); }
.item-body { flex: 1; min-width: 0; }
.item-body h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.item-body h2 a { text-decoration: none; }
.item-opt { margin-top: 4px; font-size: .88rem; color: var(--text-3); }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.summary { position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.summary-total .price { font-size: 22px; color: var(--text); }
tebex-checkout { display: block; }

/* ---------- Forms (options, login) ---------- */
.form { display: grid; gap: 22px; max-width: 640px; margin: 0 auto; }
.field { display: grid; gap: 8px; }
.field label, .field .field-label { font-weight: 600; }
.input, .select {
    width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
    background: var(--surface); color: var(--text);
}
.input:focus, .select:focus { border-color: var(--accent); outline: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.login-box { width: 100%; max-width: 460px; text-align: center; }
.login-box .display { margin-top: 28px; }
.login-box p { color: var(--text-2); margin: 16px 0 28px; }

/* ---------- Footer ---------- */
.footer { margin-top: 128px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-brand p { margin: 14px 0 0; color: var(--text-3); max-width: 34ch; font-size: .92rem; }
.footer-col h2 { margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 28px; border-top: 1px solid var(--line); }



/* ---------- Feature lists (product tabs) ---------- */
.feat-head, .prose .feat-head { margin: 36px 0 4px; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feat-head:first-child, .prose .feat-head:first-child { margin-top: 0; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0 0 8px; }
.feat { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.55; color: var(--text-2); }
.feat strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.feat code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--surface-2); color: var(--text); font-family: var(--f-mono); font-size: .84em; }
.feat kbd { display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; background: var(--surface-2); color: var(--text); font-family: var(--f-mono); font-size: .8em; text-align: center; }
@media (max-width: 720px) { .feat-list { grid-template-columns: 1fr; } }

/* ---------- Brand hero (no photo) ---------- */
.hero-brand {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px;
    min-height: min(70vh, 640px); padding: 64px 56px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--text); overflow: hidden;
}
.hero-brand::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.hero-brand .label { color: var(--accent); }
.hero-brand .lead { color: var(--text-2); margin: 22px 0 0; }
.hero-art { display: flex; justify-content: center; color: var(--accent); }
.hero-art svg { width: 100%; max-width: 280px; height: auto; }
.btn--ink { background: var(--accent-ink); color: var(--accent); }
.btn--ink:hover { background: #262626; }
.btn--ink-line { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--ink-line:hover { background: rgba(10, 10, 10, .08); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.art-panel { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--accent); }
.art-panel svg { width: 62%; height: auto; }

@media (max-width: 860px) {
    .hero-brand { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; min-height: 0; }
    .hero-art svg { max-width: 160px; }
    .split { grid-template-columns: 1fr; gap: 28px; }
}

/* placeholders without product image */
.related-card .ph, .item .ph { position: relative; background: var(--surface-2); }
.related-card .ph::after, .item .ph::after { content: "&"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .pkg { grid-template-columns: 1fr; grid-template-areas: "gallery" "side" "main"; row-gap: 32px; }
    .pkg-side { position: static; }
    .docs { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .toc .label { width: 100%; margin-bottom: 0; }
    .toc a, .toc a.is-active { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 2px; }
    .basket { grid-template-columns: 1fr; }
    .summary { position: static; }
    .ways { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    :root { --gutter: 20px; --nav-h: 64px; }
    .hero { padding: 12px var(--gutter) 0; }
    .hero-copy { padding: 28px 22px; }
    .section { padding-top: 80px; }
    .cta-band, .panel { padding: 22px; }
    .steps, .two { grid-template-columns: 1fr; }
    .item { flex-wrap: wrap; }
    .item-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
    .buybar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 12px var(--gutter); background: rgba(10, 10, 10, .96); border-top: 1px solid var(--line);
    }
    body.has-buybar { padding-bottom: 76px; }
    .related-card { gap: 14px; padding: 14px; align-items: flex-start; }
    .related-card img, .related-card .ph { width: 88px; }
    .related-card strong { font-size: 1.25rem; }
    .pkg-side h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
