/* Self-hosted fonts (no requests to third-party font servers). */
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #12151C;
  --muted: #4E5566;
  --line: #D9DEE7;
  --accent: #2347E6;
  --accent-hover: #1A37B8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EBFF;
  --stud: #FFC53D;
  --stud-ink: #3A2A00;
  --good: #1D7A45;
  --t1: #E4EAFF; --t2: #FFEFCF; --t3: #DDF2E4; --t4: #FCE2E2; --t5: #E9E3FA;
  --focus: #2347E6;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1117; --surface: #171B24; --ink: #EDEFF4; --muted: #A6ADBB; --line: #2A303D;
    --accent: #8FA4FF; --accent-hover: #B3C1FF; --accent-ink: #0B0E14; --accent-soft: #1D2547;
    --stud: #FFC53D; --stud-ink: #2B1F00; --good: #5FD08F;
    --t1: #1C2340; --t2: #382D15; --t3: #15302A; --t4: #3A1D22; --t5: #2A2244;
    --focus: #B3C1FF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1117; --surface: #171B24; --ink: #EDEFF4; --muted: #A6ADBB; --line: #2A303D;
  --accent: #8FA4FF; --accent-hover: #B3C1FF; --accent-ink: #0B0E14; --accent-soft: #1D2547;
  --stud: #FFC53D; --stud-ink: #2B1F00; --good: #5FD08F;
  --t1: #1C2340; --t2: #382D15; --t3: #15302A; --t4: #3A1D22; --t5: #2A2244;
  --focus: #B3C1FF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent; font: 600 1rem/1.2 var(--body); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Notice + header */
.notice { background: var(--stud); color: var(--stud-ink); font-size: 0.9rem; font-weight: 600; text-align: center; padding: 8px 16px; }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo:hover { color: var(--ink); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: inline-block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav ul a:hover { background: var(--accent-soft); color: var(--ink); }
.cart-btn { position: relative; }
.account-btn { white-space: nowrap; margin-left: auto; }
.account-btn ~ .cart-btn { margin-left: 0; }
.account-btn svg { flex: none; }
@media (max-width: 480px) { .nav { gap: 10px; } .account-btn { padding-inline: 10px; } .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 860px) { .nav:has(.cart-btn:not([hidden])) .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .nav:has(.cart-btn:not([hidden])) .account-btn { padding-inline: 10px; } }
@media (max-width: 360px) { .wrap.nav { padding-inline: 16px; gap: 8px; } .nav .logo { font-size: 1rem; gap: 8px; } .nav .logo svg { width: 28px; height: 28px; } }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--stud); color: var(--stud-ink); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 760px) { .nav ul { display: none; } .nav .cart-btn { margin-left: auto; } .nav .account-btn ~ .cart-btn { margin-left: 0; } }

/* Hero */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.08; }
.hero .lede { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art .tile { border-radius: var(--radius); aspect-ratio: 4/3; max-width: 100%; display: grid; place-items: center; }
.hero-art .tile svg { width: 72%; height: auto; }
.hero-art .tile:nth-child(2) { transform: translateY(18px); }
.hero-art .tile:nth-child(3) { transform: translateY(-6px); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 32px; } .hero-art .tile:nth-child(n) { transform: none; } }

/* Sections */
section.block { padding-block: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 38em; margin-top: 8px; }

/* Shop controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.95rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.field input, .field select { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 500 1rem var(--body); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.controls .search { flex: 1 1 220px; min-width: 0; }
.result-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .art { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; max-width: 100%; }
.card .art svg { width: 62%; height: auto; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.badge.soon { left: auto; right: 12px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card .desc { color: var(--muted); font-size: 0.95rem; }
.card .specs { color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.card .btns { display: flex; gap: 8px; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Bundles */
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bundle { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.bundle.featured { border: 2px solid var(--accent); }
.bundle ul { margin: 0; padding-left: 20px; color: var(--muted); }
.bundle .row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bundle .was { color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.save { color: var(--good); font-weight: 700; }
.bundle .btn { margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Step " counter(s); font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Free pack */
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--accent-soft); border-radius: 20px; padding: 36px; }
.free form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.free .field { flex: 1 1 240px; min-width: 0; }
.form-msg { flex-basis: 100%; font-weight: 600; min-height: 1.5em; }
@media (max-width: 760px) { .free { grid-template-columns: 1fr; padding: 24px; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 62ch; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 40px 56px; margin-top: 32px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid h3 { font-size: 0.9rem; color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin-top: 28px; font-size: 0.85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Dialogs */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--ink); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgba(10, 12, 18, 0.55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 20px; display: grid; gap: 18px; }
.close { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.close:hover { border-color: var(--ink); }
.detail-top { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.detail-top .art { border-radius: 12px; aspect-ratio: 4/3; display: grid; place-items: center; max-width: 100%; }
.detail-top .art svg { width: 66%; height: auto; }
@media (max-width: 560px) { .detail-top { grid-template-columns: 1fr; } }
.spec-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.spec th, table.spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 40%; color: var(--muted); font-weight: 600; padding-right: 12px; }
table.spec td { font-variant-numeric: tabular-nums; }
.inside { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.inside li { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 0.88rem; }

/* Cart */
#cart { margin-right: 0; margin-left: auto; height: 100vh; max-height: 100vh; width: min(420px, 100vw); border-radius: 0; border-width: 0 0 0 1px; }
#cart[open] { display: flex; flex-direction: column; }
#cart .dlg-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.cart-items { list-style: none; margin: 0; padding: 8px 20px; display: grid; gap: 0; overflow-y: auto; flex: 1; }
.cart-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-items .thumb { width: 56px; height: 42px; border-radius: 8px; display: grid; place-items: center; }
.cart-items .thumb svg { width: 70%; height: auto; }
.cart-items .name { font-weight: 600; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font: 500 0.88rem var(--body); text-decoration: underline; cursor: pointer; min-height: 32px; }
.link-btn:hover { color: var(--ink); }
.cart-foot { padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-note { color: var(--muted); font-size: 0.9rem; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 60; max-width: calc(100vw - 32px); }

/* ---- additions for the live site ---- */
body { margin: 0; }
img { max-width: 100%; height: auto; }
.card .art img, .detail-top .art img { width: 92%; height: auto; display: block; }
.hero-art .tile img { width: 86%; height: auto; display: block; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: var(--accent-soft); color: var(--ink); }
.status.ready { background: color-mix(in srgb, var(--good) 18%, transparent); }
.gallery { display: grid; gap: 12px; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); }
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--accent-soft); border-radius: 20px; padding: 32px; }
.contact-box .mail { font-family: var(--mono); font-size: 1.05rem; user-select: all; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; padding: 24px; } }

/* legal / text pages */
.doc { max-width: 760px; padding-block: 48px 64px; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.15; margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; width: 38%; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.hero-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-art .tile, .card .art, .detail-top .art { min-width: 0; overflow: hidden; }
[hidden] { display: none !important; }
.status { align-self: flex-start; justify-self: start; width: fit-content; max-width: 100%; }
.hero-art .tile:nth-child(n) { transform: none; }
