/* isometric store – light theme (dark when the system asks for it). System fonts only. */
:root {
  --bg: #faf9f6; --card: #fff; --line: #e9e5dd; --line2: #d9d3c7; --ink: #1d2230; --muted: #6b7180;
  --accent: #f08a24; --accent-ink: #fff; --accent-soft: #fff1e2; --accent-text: #b85d0b;
  --teal: #2a8f84; --teal-soft: #e6f4f1; --chk1: #f3f1ec; --chk2: #fbfaf7; --shadow: 0 1px 2px rgba(29, 34, 48, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171f; --card: #1b1f2a; --line: #2a3040; --line2: #3a4256; --ink: #eef1f7; --muted: #9aa2b4;
    --accent: #f59a3c; --accent-ink: #1b1206; --accent-soft: #3a2a17; --accent-text: #ffb46b;
    --teal: #5cc7b9; --teal-soft: #17302d; --chk1: #232838; --chk2: #1c2130; --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: -.01em; line-height: 1.2; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--card); padding: 6px 10px; border-radius: 8px; }
.chk { background: repeating-conic-gradient(var(--chk1) 0 25%, var(--chk2) 0 50%) 0 0 / 22px 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.wide { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.views-nav { display: flex; gap: 4px; }
.views-nav a { color: var(--ink); padding: 7px 12px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.views-nav a:hover { background: var(--accent-soft); text-decoration: none; }
.views-nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; max-width: 420px; margin-left: auto; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; padding: 8px 0; }
.search:focus-within { border-color: var(--accent); }
.lang, .burger { position: relative; flex: none; }
.lang summary, .burger summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; }
.lang summary::-webkit-details-marker, .burger summary::-webkit-details-marker { display: none; }
.lang summary:hover, .burger summary:hover { background: var(--accent-soft); }
.lang ul { position: absolute; right: 0; top: 42px; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); min-width: 170px; z-index: 30; }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); }
.lang li a:hover { background: var(--accent-soft); text-decoration: none; }
.lang li a[aria-current] { color: var(--accent-text); font-weight: 600; }
.burger { display: none; }
.burger nav { position: absolute; right: 0; top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 200px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.burger nav a { display: block; padding: 9px 12px; color: var(--ink); border-radius: 8px; }
.burger nav a.on { color: var(--accent-text); background: var(--accent-soft); }
.hint { background: var(--teal-soft); color: var(--ink); font-size: 14px; }
.hint .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.hint button { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; margin-left: auto; font-size: 18px; }

/* headings + crumbs */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs a { color: var(--teal); }
.crumbs .sep { margin: 0 8px; color: var(--line2); }
main h1 { font-size: 38px; margin: 10px 0 8px; font-weight: 800; }
.intro { color: var(--muted); font-size: 17px; max-width: 820px; margin: 0 0 6px; }

/* home hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px 0 18px; }
.hero h1 { font-size: 46px; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; max-width: 560px; }
.hero-art { display: block; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 3 / 2; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* tabs, chips, filter bar */
.tabs { display: flex; gap: 2px; margin: 20px 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs a.dim { opacity: .5; }
small { color: var(--muted); font-size: 12px; font-weight: 500; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--teal-soft); color: var(--ink); font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.chip:hover { border-color: var(--teal); text-decoration: none; }
.chip.on { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.filters-btn { display: none; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.sheet-head, .bar .apply { display: none; }
.sel { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; padding: 0 4px 0 10px; font-size: 14px; color: var(--muted); }
.sel select { border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 4px; outline: 0; max-width: 220px; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; padding: 0 6px; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { width: 36px; height: 20px; border-radius: 99px; background: var(--line2); position: relative; transition: background .15s; }
.tog span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.tog input:checked + span { background: var(--teal); }
.tog input:checked + span::after { left: 18px; }
.tog input:focus-visible + span { outline: 2px solid var(--accent); }
.count { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; font-weight: 600; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 10px 0 36px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card[hidden] { display: none; }
.thumb { aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background-color: var(--chk2); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.price { color: var(--accent-text); font-weight: 800; white-space: nowrap; }
.price.free { color: var(--teal); }
.meta { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags i, .pill { font-style: normal; font-size: 12px; color: var(--teal); background: var(--teal-soft); border-radius: 99px; padding: 2px 10px; }
.empty { color: var(--muted); padding: 30px 0; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 0 40px; }
.how div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.how b { display: block; margin-bottom: 4px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

/* pack page */
.pk { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding: 14px 0 20px; align-items: start; }
.gal-main { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; display: grid; place-items: center; background-color: var(--chk2); }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { flex: none; width: 120px; aspect-ratio: 3 / 2; padding: 0; border-radius: 10px; border: 2px solid var(--line); background-color: var(--chk2); overflow: hidden; cursor: pointer; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.box { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.box h2 { font-size: 16px; margin: 0 0 4px; }
.demo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.demo p { margin: 0; color: var(--muted); font-size: 14px; }
.demo.on { display: block; padding: 0; overflow: hidden; }
.demo iframe { width: 100%; aspect-ratio: 16 / 10; min-height: 440px; border: 0; display: block; }
.anim-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.anim canvas { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--chk1) 0 25%, var(--chk2) 0 50%) 0 0 / 18px 18px; }
.anim-ctl { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.anim-ctl button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; }
.anim-ctl button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.buy { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.buy h1 { font-size: 26px; margin: 0; }
.buy .desc { margin: 0; color: var(--muted); }
.price-big { font-size: 30px; font-weight: 800; color: var(--accent-text); }
.price-big.free { color: var(--teal); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 7px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { color: var(--muted); font-weight: 500; width: 40%; }
.spec a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); }
.inside { font-size: 15px; margin: 4px 0 -4px; }
.what { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.ai { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 10px; margin: 0; }
.related h2, .kit h2 { font-size: 22px; margin: 26px 0 4px; }
.doc { max-width: 760px; padding: 6px 0 50px; }
.doc li { margin: 8px 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 22px 0 36px; font-size: 14px; color: var(--muted); background: var(--card); }
.foot p { margin: 8px 0 0; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.langs a { color: var(--ink); }
.langs a.on { color: var(--accent-text); font-weight: 700; }

/* tablet + phone */
@media (max-width: 1100px) {
  .views-nav { display: none; }
  .burger { display: block; }
  .pk { grid-template-columns: 1fr; }
  .buy { position: static; }
}
@media (max-width: 760px) {
  .top-in { gap: 8px; height: 56px; }
  .brand span { display: none; }
  .search { max-width: none; }
  .hero { grid-template-columns: 1fr; padding-top: 22px; gap: 18px; }
  .hero h1 { font-size: 32px; }
  main h1 { font-size: 28px; }
  .how { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .b { padding: 10px; }
  .card h3 { font-size: 14px; }
  .card .row { flex-direction: column; gap: 2px; }
  .tags i:nth-child(n+3) { display: none; }
  .filters-btn { display: inline-flex; padding: 8px 14px; }
  .bar { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px; flex-direction: column; align-items: stretch; gap: 10px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(105%); transition: transform .2s, visibility .2s; max-height: 80vh; overflow: auto; flex-wrap: nowrap; visibility: hidden; }
  body.sheet .bar { transform: none; visibility: visible; }
  .sel, .tog { flex: none; }
  body.sheet::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
  .sheet-head .x { font: inherit; font-size: 24px; background: none; border: 0; color: var(--muted); cursor: pointer; }
  .sel { justify-content: space-between; padding: 2px 6px 2px 12px; }
  .sel select { max-width: 60%; }
  .bar .apply { display: block; font: inherit; font-weight: 600; padding: 12px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); }
  .demo iframe { min-height: 360px; aspect-ratio: 3 / 4; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
