/* Inazda Market, Clean direction (spec: ../CLEAN.md).
   Quiet white and warm-grey surfaces, hairline borders, Geist for everything and Geist Mono for numbers only.
   Market accent is ink, with green links. Light by default; follows the system, and data-theme="light|dark" on <html>.
   The previous "record crate" look is kept in _archive-expressive/. */

/* ---------- Fonts: self-hosted Geist (SIL OFL 1.1, fonts/OFL-Geist.txt) ---------- */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* display face for headings: Instrument Serif (SIL OFL 1.1, fonts/OFL-InstrumentSerif.txt), Latin subset */
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }

/* ---------- Tokens (a layer on Inazda's --iz-* names) ---------- */
:root {
  --iz-font: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --iz-mono: "Geist Mono", ui-monospace, Consolas, "DejaVu Sans Mono", monospace;
  --iz-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --iz-mark-accent: #1F6F4A; /* Pivot mark, second half (img/brand/tokens.json) */
  --iz-r-sm: 6px; --iz-r-md: 8px; --iz-r-lg: 12px; --iz-r-xl: 16px; --iz-r-2xl: 20px;
  --iz-ease-out: cubic-bezier(.2, 0, 0, 1); --iz-dur-slow: 420ms;
  --iz-ink-band: #0A0A0B; --iz-on-band: #F5F5F4; --iz-on-band-muted: #D2CFCB;
  --iz-ring-img: rgb(0 0 0 / .07); --iz-lift: 0 1px 2px rgb(0 0 0 / .05), 0 22px 44px -22px rgb(0 0 0 / .32);
  --iz-ease: cubic-bezier(.2, .7, .2, 1); --iz-dur: 160ms;
  --iz-gutter: 16px; --iz-max: 1280px; --iz-section: 64px; --iz-head-h: 60px;
  --iz-shadow-pop: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);

  --iz-bg: #FFFFFF; --iz-bg-subtle: #FAFAF9; --iz-surface: #FFFFFF; --iz-sunken: #F5F5F4;
  --iz-border: #E7E5E4; --iz-border-strong: #D6D3D1;
  --iz-fg: #1C1917; --iz-muted-fg: #57534E; --iz-faint-fg: #78716C;
  --iz-accent: #1C1917; --iz-accent-fg: #FFFFFF; --iz-accent-hover: #3A3530;  /* Market: ink */
  --iz-link: #1F6F4A; --iz-focus: #1F6F4A;                                      /* green links and focus */
  --iz-info: #2558D6; --iz-success: #15803D; --iz-warning: #B45309; --iz-danger: #B91C1C;
  --iz-backdrop: rgb(28 25 23 / .32);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --iz-bg: #0C0C0B; --iz-bg-subtle: #111110; --iz-surface: #161615; --iz-sunken: #1C1B1A;
    --iz-border: #292827; --iz-border-strong: #3A3836;
    --iz-fg: #EDEDEC; --iz-muted-fg: #A8A29E; --iz-faint-fg: #8F8984;
    --iz-accent: #EDEDEC; --iz-accent-fg: #0C0C0B; --iz-accent-hover: #D6D3D1;
    --iz-link: #4FBF8B; --iz-focus: #4FBF8B; --iz-mark-accent: #4FBF8B;
    --iz-info: #7AA2FF; --iz-success: #4ADE80; --iz-warning: #F59E0B; --iz-danger: #F87171;
    --iz-shadow-pop: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .5);
    --iz-backdrop: rgb(0 0 0 / .6);
    --iz-ring-img: rgb(255 255 255 / .08); --iz-lift: 0 1px 2px rgb(0 0 0 / .4), 0 22px 44px -22px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --iz-bg: #0C0C0B; --iz-bg-subtle: #111110; --iz-surface: #161615; --iz-sunken: #1C1B1A;
  --iz-border: #292827; --iz-border-strong: #3A3836;
  --iz-fg: #EDEDEC; --iz-muted-fg: #A8A29E; --iz-faint-fg: #8F8984;
  --iz-accent: #EDEDEC; --iz-accent-fg: #0C0C0B; --iz-accent-hover: #D6D3D1;
  --iz-link: #4FBF8B; --iz-focus: #4FBF8B; --iz-mark-accent: #4FBF8B;
  --iz-info: #7AA2FF; --iz-success: #4ADE80; --iz-warning: #F59E0B; --iz-danger: #F87171;
  --iz-shadow-pop: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .5);
  --iz-backdrop: rgb(0 0 0 / .6);
  --iz-ring-img: rgb(255 255 255 / .08); --iz-lift: 0 1px 2px rgb(0 0 0 / .4), 0 22px 44px -22px rgb(0 0 0 / .8);
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --iz-gutter: 24px; } }
@media (min-width: 1024px) { :root { --iz-gutter: 32px; --iz-section: 96px; --iz-head-h: 64px; } }

/* screenshots that swap with the theme */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .only-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-light { display: none !important; } }
:root[data-theme="light"] .only-dark, :root[data-theme="dark"] .only-light { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--iz-bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--iz-head-h) + 16px); }
body { margin: 0; background: var(--iz-bg); color: var(--iz-fg); font: 400 16px/1.5 var(--iz-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--iz-focus); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--iz-link) 22%, transparent); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 500; padding: 8px 14px; border-radius: var(--iz-r-md); background: var(--iz-fg); color: var(--iz-bg); font-weight: 500; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--iz-max) + 2 * var(--iz-gutter)); margin-inline: auto; padding-inline: var(--iz-gutter); }
.muted { color: var(--iz-muted-fg); }
.mono { font-family: var(--iz-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
main { display: block; min-height: 70vh; outline: none; }
.noscript { padding-block: 64px; }

/* type: 13 / 14 / 16 / 18 / 22 / 28 / 36 / 48, H1 36 -> 56 */
.h1, .h2, .h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: 36px; }
.h2 { font-size: 28px; }
.h3 { font-size: 22px; }
@media (max-width: 359px) { .h1 { font-size: 32px; } }
@media (min-width: 1024px) { .h1 { font-size: 56px; line-height: 1.08; } .h2 { font-size: 44px; letter-spacing: -0.035em; } }
.page-title { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
@media (min-width: 1024px) { .page-title { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; } }
.lede { font-size: 18px; line-height: 1.55; color: var(--iz-muted-fg); max-width: 62ch; text-wrap: pretty; }
.link { color: var(--iz-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--iz-link) 45%, transparent); }
.link:hover { text-decoration-color: currentColor; }
.tlink { color: var(--iz-link); font-weight: 500; text-decoration: none; white-space: nowrap; }
.tlink:hover { text-decoration: underline; }

/* ---------- Buttons, fields, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border-strong); background: var(--iz-surface); color: var(--iz-fg); font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color var(--iz-dur) var(--iz-ease), border-color var(--iz-dur) var(--iz-ease), color var(--iz-dur) var(--iz-ease); }
.btn:hover { background: var(--iz-sunken); }
.btn-primary { background: var(--iz-accent); border-color: var(--iz-accent); color: var(--iz-accent-fg); }
.btn-primary:hover { background: var(--iz-accent-hover); border-color: var(--iz-accent-hover); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--iz-fg); }
.btn-quiet:hover { background: var(--iz-sunken); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[aria-disabled="true"] { color: var(--iz-muted-fg); background: var(--iz-sunken); border-color: var(--iz-border); cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--iz-r-md); border: 1px solid transparent; background: transparent; color: var(--iz-fg); transition: background-color var(--iz-dur) var(--iz-ease); }
.icon-btn:hover { background: var(--iz-sunken); }
.icon-btn svg, .cart-btn svg, .field svg, .search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sel { appearance: none; min-height: 40px; padding: 0 32px 0 12px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border-strong); background: var(--iz-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%2378716C' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; font-size: 14px; color: var(--iz-fg); max-width: 100%; }
.sel-sm { min-height: 32px; font-size: 13px; padding-left: 10px; }
.field { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border-strong); background: var(--iz-surface); color: var(--iz-muted-fg); }
.field:focus-within { border-color: var(--iz-focus); box-shadow: 0 0 0 1px var(--iz-focus); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--iz-fg); }
.field input::placeholder, .search-field input::placeholder { color: var(--iz-faint-fg); }
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border); background: var(--iz-bg-subtle); }
.seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--iz-r-sm); background: transparent; color: var(--iz-muted-fg); font-size: 13px; font-weight: 500; }
.seg button[aria-checked="true"] { background: var(--iz-surface); color: var(--iz-fg); box-shadow: 0 0 0 1px var(--iz-border-strong); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--iz-border); background: var(--iz-bg-subtle); color: var(--iz-muted-fg); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.chip-free { color: var(--iz-success); border-color: color-mix(in srgb, var(--iz-success) 40%, var(--iz-border)); }
.chip-soon { color: var(--iz-warning); border-color: color-mix(in srgb, var(--iz-warning) 40%, var(--iz-border)); }
.coll { font-size: 13px; color: var(--iz-muted-fg); }
.coll b { font-weight: 500; color: var(--iz-fg); }
.ph { margin-top: 12px; font-size: 13px; color: var(--iz-muted-fg); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 60; background: var(--iz-bg); border-bottom: 1px solid var(--iz-border); }
.top-in { max-width: calc(var(--iz-max) + 2 * var(--iz-gutter)); margin: 0 auto; height: var(--iz-head-h); padding-inline: var(--iz-gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--iz-fg); }
.brand-mark { width: 22px; height: 22px; fill: currentColor; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: var(--iz-muted-fg); font-weight: 500; }
.nav { display: none; gap: 4px; }
.nav a, .mobile-nav a { padding: 6px 10px; border-radius: var(--iz-r-sm); font-size: 14px; font-weight: 500; color: var(--iz-muted-fg); text-decoration: none; transition: color var(--iz-dur) var(--iz-ease), background-color var(--iz-dur) var(--iz-ease); }
.nav a:hover, .mobile-nav a:hover { color: var(--iz-fg); background: var(--iz-sunken); }
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--iz-fg); background: var(--iz-sunken); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.theme { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border); }
.theme button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--iz-r-sm); background: transparent; color: var(--iz-muted-fg); }
.theme button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme button[aria-checked="true"] { background: var(--iz-sunken); color: var(--iz-fg); }
.tools > .theme { display: none; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--iz-r-md); border: 1px solid var(--iz-border-strong); background: var(--iz-surface); color: var(--iz-fg); font-size: 14px; font-weight: 500; }
.cart-btn:hover { background: var(--iz-sunken); }
.cart-btn span { display: none; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--iz-sunken); font: 500 12px/20px var(--iz-mono); text-align: center; }
.cart-count.bump { animation: bump 200ms var(--iz-ease); }
@keyframes bump { 50% { transform: scale(1.18); } }
.mobile-nav { position: sticky; top: var(--iz-head-h); z-index: 59; display: flex; align-items: center; gap: 2px; padding: 6px var(--iz-gutter); background: var(--iz-bg); border-bottom: 1px solid var(--iz-border); overflow-x: auto; scrollbar-width: none; }
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a { flex: none; padding: 6px 8px; font-size: 13px; }
.mobile-nav .theme { margin-left: auto; flex: none; }
@media (max-width: 439px) { .mobile-nav .theme { display: none; } } /* the footer keeps the theme switch */
@media (min-width: 480px) { .cart-btn span { display: inline; } }
@media (min-width: 860px) {
  .nav { display: flex; }
  .tools > .theme { display: inline-flex; }
  .mobile-nav { display: none; }
}

/* ---------- Sections ---------- */
.sec { padding-block: var(--iz-section); }
.sec + .sec { border-top: 1px solid var(--iz-border); }
.sec.is-subtle { background: var(--iz-bg-subtle); border-block: 1px solid var(--iz-border); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sec-head > div { display: grid; gap: 10px; max-width: 62ch; }
.sec-head .lede { font-size: 16px; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 48px; } .sec-head .lede { font-size: 18px; } }

/* ---------- Product cards: the cover is the card ---------- */
.grid { display: grid; gap: 36px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
@media (max-width: 559px) { .grid.shelf > :nth-child(n+5) { display: none; } }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--iz-r-xl); overflow: hidden; background: var(--iz-sunken); transition: translate var(--iz-dur-slow) var(--iz-ease-out), box-shadow var(--iz-dur-slow) var(--iz-ease-out); }
.card-img { z-index: 1; }
.card-cover { display: block; width: 100%; height: 100%; }
.card-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--iz-ring-img); pointer-events: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 700ms var(--iz-ease-out); }
.card-img .noimg { width: 100%; height: 100%; }
.card:hover .card-img { translate: 0 -3px; box-shadow: var(--iz-lift); }
.card:hover .card-img img { scale: 1.025; }
.card-qa { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; transition: opacity var(--iz-dur) var(--iz-ease-out), translate var(--iz-dur) var(--iz-ease-out); }
@media (hover: hover) { .card-qa { opacity: 0; translate: 0 6px; } .card:hover .card-qa, .card:focus-within .card-qa { opacity: 1; translate: 0 0; } }
.qa { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgb(0 0 0 / .1); background: #FFFFFF; color: #141414; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px -4px rgb(0 0 0 / .3); transition: background-color var(--iz-dur) var(--iz-ease); }
.qa:hover { background: #F2F1EF; }
.qa-ink { background: #141414; border-color: #141414; color: #FFFFFF; }
.qa-ink:hover { background: #333230; }
.qa:focus-visible { outline: 2px solid #FFFFFF; box-shadow: 0 0 0 4px #141414; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-big h3 { font-size: 18px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--iz-r-xl); }
.card h3 a:hover { text-decoration: underline; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 2px solid var(--iz-focus); outline-offset: 4px; }
.card-meta { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--iz-muted-fg); }
.card-meta > span { white-space: nowrap; }
.card-meta > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-meta .dot { color: var(--iz-faint-fg); }
.card-meta .chip { margin-left: auto; flex: none; }
.card p.desc { display: none; font-size: 14px; color: var(--iz-muted-fg); }
.card-foot { display: flex; align-items: center; gap: 8px; }
.price-tag { flex: none; font: 500 14px/1.2 var(--iz-mono); font-variant-numeric: tabular-nums; color: var(--iz-fg); white-space: nowrap; }
.price-tag small { font-family: var(--iz-font); font-size: 13px; color: var(--iz-muted-fg); margin-right: 4px; font-weight: 400; }
.price-tag.word { font-family: var(--iz-font); }
/* list view */
.cat-layout.list .grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--iz-border); }
.cat-layout.list .card { flex-direction: row; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--iz-border); }
.cat-layout.list .card-img { flex: none; width: 160px; border-radius: var(--iz-r-md); }
.cat-layout.list .card:hover .card-img { translate: none; box-shadow: none; }
.cat-layout.list .card-qa { display: none; }
.cat-layout.list .card p.desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cat-layout.list .card-row { justify-content: flex-start; gap: 16px; }
.cat-layout.list .card-row .price-tag { margin-left: auto; }
@media (max-width: 559px) { .cat-layout.list .card-img { width: 96px; } .cat-layout.list .card p.desc { display: none; } }

/* collection group heads in the catalogue */
.group + .group { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--iz-border); }
.group-head { display: grid; gap: 6px; margin-bottom: 24px; }
.group-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.group-head h3 .mono { font-size: 14px; font-weight: 500; color: var(--iz-muted-fg); letter-spacing: 0; }
.group-head p { color: var(--iz-muted-fg); font-size: 15px; max-width: 70ch; }

/* ---------- Page heads ---------- */
.page-head { padding-block: 40px 32px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .page-head { padding-block: 64px 40px; } }

/* ---------- Catalogue ---------- */
.cat-layout { display: grid; gap: 24px; padding-bottom: var(--iz-section); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .field { flex: 1 1 220px; }
.filters { display: none; }
.filters.open { display: grid; position: fixed; inset: auto 0 0 0; z-index: 70; max-height: 82vh; overflow: auto; padding: 20px var(--iz-gutter) 24px; gap: 20px; background: var(--iz-surface); border-top: 1px solid var(--iz-border-strong); border-radius: var(--iz-r-lg) var(--iz-r-lg) 0 0; box-shadow: var(--iz-shadow-pop); }
.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; min-width: 0; }
.fgroup legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--iz-muted-fg); }
.opt { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; min-height: 32px; padding: 2px 6px; margin-inline: -6px; border-radius: var(--iz-r-sm); font-size: 14px; cursor: pointer; }
.opt:hover { background: var(--iz-sunken); }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--iz-fg); }
.opt .n { font: 400 12px/1 var(--iz-mono); color: var(--iz-muted-fg); }
.f-done { display: inline-flex; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters:not(:empty) { margin-bottom: 12px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--iz-border-strong); background: var(--iz-surface); font-size: 13px; }
.active-filters button:hover { background: var(--iz-sunken); }
.active-filters svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.result-n { margin-bottom: 20px; font-size: 13px; color: var(--iz-muted-fg); }
.empty { display: grid; gap: 12px; justify-items: start; padding: 32px 0; border-top: 1px solid var(--iz-border); }
.empty h2 { font-size: 18px; font-weight: 600; }
@media (min-width: 1024px) {
  .cat-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
  .filters, .filters.open { display: grid; position: static; inset: auto; max-height: none; overflow: visible; gap: 24px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; z-index: auto; }
  .filter-btn, .f-done { display: none !important; }
}

/* ---------- Product ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; font-size: 13px; color: var(--iz-muted-fg); }
.crumbs a { color: var(--iz-muted-fg); text-decoration: none; }
.crumbs a:hover { color: var(--iz-fg); text-decoration: underline; }
.crumbs [aria-current] { color: var(--iz-fg); }
.p-head { display: grid; gap: 32px; padding-block: 20px 48px; }
.p-title { display: grid; gap: 6px; }
.p-title .sub { font-size: 18px; color: var(--iz-muted-fg); }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.gallery { display: grid; gap: 12px; }
.g-main { border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); overflow: hidden; background: var(--iz-sunken); }
.g-main img, .g-main video { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--iz-sunken); }
.g-main.portrait img, .g-main.portrait video { aspect-ratio: 9 / 16; max-height: 70vh; margin-inline: auto; width: auto; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.g-thumbs button { position: relative; padding: 0; border: 1px solid var(--iz-border); border-radius: var(--iz-r-md); overflow: hidden; background: var(--iz-sunken); transition: border-color var(--iz-dur) var(--iz-ease); }
.g-thumbs button:hover { border-color: var(--iz-border-strong); }
.g-thumbs button[aria-pressed="true"] { border-color: var(--iz-fg); box-shadow: 0 0 0 1px var(--iz-fg); }
.g-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.g-thumbs .play { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: var(--iz-r-sm); background: var(--iz-surface); color: var(--iz-fg); font-size: 11px; font-weight: 500; }
.buybox { display: grid; gap: 16px; align-content: start; padding: 20px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); background: var(--iz-surface); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 600 28px/1.1 var(--iz-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price b.word { font-family: var(--iz-font); font-size: 22px; }
.price s { font: 400 14px var(--iz-mono); color: var(--iz-muted-fg); }
.lic { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.lic legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--iz-muted-fg); }
.lic label { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-md); cursor: pointer; transition: border-color var(--iz-dur) var(--iz-ease); }
.lic label:hover { border-color: var(--iz-border-strong); }
.lic label:has(input:checked) { border-color: var(--iz-fg); box-shadow: inset 0 0 0 1px var(--iz-fg); }
.lic input { margin: 3px 0 0; accent-color: var(--iz-fg); }
.lic span { display: grid; gap: 2px; font-size: 14px; }
.lic b { font-weight: 500; }
.lic small { font-size: 13px; color: var(--iz-muted-fg); }
.lic em { font: 500 14px var(--iz-mono); font-style: normal; font-variant-numeric: tabular-nums; }
.buy-actions { display: grid; gap: 8px; }
.buy-actions .btn { min-height: 44px; font-size: 15px; }
.demo-link { font-size: 14px; }
.buy-note { font-size: 13px; color: var(--iz-muted-fg); }
.buy-note b { color: var(--iz-fg); font-weight: 500; }
.p-body { display: grid; gap: 40px; padding-bottom: var(--iz-section); border-top: 1px solid var(--iz-border); padding-top: 40px; }
.block { display: grid; gap: 12px; }
.block + .block { margin-top: 40px; }
.block h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.block p { color: var(--iz-muted-fg); max-width: 68ch; }
.block p b { color: var(--iz-fg); font-weight: 500; }
.block .p-meta { margin: 4px 0 0; }
.inside { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.inside { border-bottom: 1px solid var(--iz-border); }
.inside div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--iz-border); font-size: 14px; }
.inside dt { color: var(--iz-muted-fg); }
.inside dd { font-family: var(--iz-mono); font-variant-numeric: tabular-nums; text-align: right; }
.inside dd.txt { font-family: var(--iz-font); }
.more { margin-top: 4px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 500; padding: 8px 0; width: fit-content; }
.more summary:hover { text-decoration: underline; }
.files { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; display: block; overflow-x: auto; }
.files th, .files td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--iz-border); text-align: left; vertical-align: top; }
.files th { font-weight: 500; color: var(--iz-muted-fg); }
.files td:first-child { font-family: var(--iz-mono); word-break: break-all; }
.files .sz { font-family: var(--iz-mono); text-align: right; white-space: nowrap; padding-right: 0; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--iz-muted-fg); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 5px; border-left: 1.6px solid var(--iz-link); border-bottom: 1.6px solid var(--iz-link); transform: rotate(-45deg); }
.ticks b { color: var(--iz-fg); font-weight: 500; }
.side-card { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); background: var(--iz-surface); }
.side-card h3 { font-size: 16px; font-weight: 600; }
.src-note { margin-top: 16px; font-size: 13px; color: var(--iz-muted-fg); }
.src-note .mono { word-break: break-all; }
.related { padding-block: 0 var(--iz-section); }
.related .sec-head { margin-bottom: 24px; padding-top: 40px; border-top: 1px solid var(--iz-border); }
@media (min-width: 1024px) {
  .p-head { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .buybox { position: sticky; top: calc(var(--iz-head-h) + 24px); margin-top: 0; }
  .p-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
}

/* ---------- Bundles page ---------- */
.b-list { display: grid; padding-bottom: var(--iz-section); border-top: 1px solid var(--iz-border); }
.b-row { display: grid; gap: 20px; padding-block: 32px; border-bottom: 1px solid var(--iz-border); scroll-margin-top: calc(var(--iz-head-h) + 56px); }
.b-row h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.b-row .muted { margin-top: 8px; max-width: 62ch; }
.b-note { margin-top: 10px; font-size: 14px; max-width: 62ch; }
.b-members { margin-top: 4px; font-size: 14px; color: var(--iz-muted-fg); }
.b-thumbs { border: 1px solid var(--iz-border); border-radius: var(--iz-r-2xl); background: var(--iz-bg-subtle); overflow: hidden; }
.b-thumbs .bfan { height: 200px; }
.b-buy { display: grid; gap: 10px; align-content: start; }
.b-buy .price b { font-size: 22px; }
.save { font: 500 13px var(--iz-font); font-variant-numeric: tabular-nums; color: var(--iz-success); }
.b-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
@media (min-width: 1024px) { .b-row { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 240px; gap: 40px; align-items: start; } .b-thumbs .bfan { height: 230px; } }

/* ---------- Prose pages: licence, about ---------- */
.prose-page { padding-block: 40px var(--iz-section); }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--iz-muted-fg); }
.prose p b, .prose li b { color: var(--iz-fg); font-weight: 500; }
.prose ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--iz-faint-fg); }
.draft { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--iz-warning) 45%, var(--iz-border)); border-radius: var(--iz-r-md); background: var(--iz-bg-subtle); font-size: 14px; }
.draft b { color: var(--iz-warning); }
.draft p { color: var(--iz-muted-fg); }
.tiers { display: grid; gap: 0; border-top: 1px solid var(--iz-border); }
.tiers div { padding: 14px 0; border-bottom: 1px solid var(--iz-border); display: grid; gap: 2px; }
.tiers h3 { margin: 0; font-size: 16px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; } }
.cmp-wrap { margin-top: 20px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--iz-border); text-align: left; vertical-align: top; }
.cmp thead th { font-size: 13px; font-weight: 500; color: var(--iz-muted-fg); padding-top: 0; }
.cmp tbody th { font-weight: 600; color: var(--iz-fg); width: 22%; }
.cmp td { color: var(--iz-muted-fg); }
.cmp tr.ours th, .cmp tr.ours td { background: var(--iz-bg-subtle); }
.cmp tr.ours th { padding-left: 12px; }
@media (max-width: 759px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--iz-border); }
  .cmp tr.ours { padding: 16px 12px; background: var(--iz-bg-subtle); }
  .cmp tr.ours th, .cmp tr.ours td { background: none; padding-left: 0; }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp td { margin-top: 8px; }
  .cmp td::before { content: attr(data-h); display: block; font-size: 12px; font-weight: 500; color: var(--iz-fg); margin-bottom: 2px; }
}
@media (min-width: 760px) { .cmp-wide { width: min(1100px, calc(100vw - 2 * var(--iz-gutter))); } }
.faq { border-top: 1px solid var(--iz-border); margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--iz-border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--iz-fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 18px/1 var(--iz-mono); color: var(--iz-muted-fg); transition: transform var(--iz-dur) var(--iz-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--iz-muted-fg); }

/* ---------- Checkout ---------- */
.co { display: grid; gap: 24px; padding-bottom: var(--iz-section); }
.co-state { display: grid; gap: 16px; align-content: start; }
.co-state h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.co-state ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; color: var(--iz-muted-fg); }
.co-steps { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--iz-muted-fg); }
.co-steps [aria-current] { color: var(--iz-fg); font-weight: 500; }
.co-steps .mono { margin-right: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sum-lines { display: grid; gap: 8px; margin: 4px 0 12px; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-top: 12px; border-top: 1px solid var(--iz-border); font-size: 14px; }
.sum dt { color: var(--iz-muted-fg); }
.sum dd { font-family: var(--iz-mono); font-variant-numeric: tabular-nums; text-align: right; }
.sum .disc { color: var(--iz-success); }
.sum dt.total { color: var(--iz-fg); font-weight: 600; padding-top: 6px; }
.sum dt.total + dd { font-weight: 600; font-size: 16px; padding-top: 6px; }
@media (min-width: 900px) { .co { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }

/* ---------- Dialogs: cart drawer, demo sheet, search ---------- */
dialog { padding: 0; border: 0; color: var(--iz-fg); background: var(--iz-surface); max-width: 100vw; max-height: 100dvh; }
dialog::backdrop { background: var(--iz-backdrop); }
.drawer { margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; border-left: 1px solid var(--iz-border); }
.drawer[open] { animation: slide 200ms var(--iz-ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--iz-border); }
.drawer-head h2 { font-size: 16px; font-weight: 600; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 20px; }
.drawer-foot:not(:empty) { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--iz-border); background: var(--iz-bg-subtle); }
.drawer-foot .btn { min-height: 44px; }
.cart-empty { display: grid; gap: 8px; justify-items: start; padding: 24px 0; }
.cart-empty .btn { margin-top: 8px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--iz-border); }
.line > img, .line > span { width: 72px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--iz-border); border-radius: var(--iz-r-sm); background: var(--iz-sunken); }
.line h3 { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.line-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--iz-border-strong); border-radius: var(--iz-r-md); height: 32px; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; font-size: 15px; border-radius: var(--iz-r-sm); }
.qty button:hover { background: var(--iz-sunken); }
.qty output { min-width: 22px; text-align: center; font: 500 13px var(--iz-mono); }
.amt { margin-left: auto; font: 500 14px var(--iz-mono); font-variant-numeric: tabular-nums; }
.rm { margin-top: 6px; padding: 2px 0; border: 0; background: none; font-size: 13px; color: var(--iz-muted-fg); text-decoration: underline; text-underline-offset: 3px; }
.rm:hover { color: var(--iz-danger); }

.sheet { width: min(1280px, calc(100vw - 24px)); height: calc(100dvh - 24px); margin: auto; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); box-shadow: var(--iz-shadow-pop); overflow: hidden; }
.sheet-in { display: flex; flex-direction: column; height: 100%; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--iz-border); }
.sheet-head h2 { font-size: 15px; font-weight: 600; margin-right: auto; min-width: 0; }
.sheet-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 18px; background: var(--iz-sunken); }
.device { transform-origin: center; border: 1px solid var(--iz-border-strong); border-radius: var(--iz-r-md); overflow: hidden; background: var(--iz-bg); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (max-width: 699px) { .sheet { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } .sheet-head .btn-quiet { display: none; } }

.search { width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; border: 1px solid var(--iz-border); border-radius: var(--iz-r-lg); box-shadow: var(--iz-shadow-pop); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--iz-border); color: var(--iz-muted-fg); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--iz-fg); }
.search-field input::-webkit-search-cancel-button { display: none; }
kbd { font: 500 11px var(--iz-mono); padding: 2px 6px; border: 1px solid var(--iz-border-strong); border-radius: 4px; color: var(--iz-muted-fg); }
.search-results { max-height: min(60vh, 520px); overflow: auto; padding: 6px; }
.search-results a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--iz-r-md); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--iz-sunken); }
.search-results a:focus-visible { outline-offset: -2px; }
.search-results img, .search-results a > span:first-child { width: 64px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--iz-border); border-radius: var(--iz-r-sm); background: var(--iz-sunken); }
.search-results b { display: block; font-size: 14px; font-weight: 600; }
.search-results small { font-size: 13px; color: var(--iz-muted-fg); }
.search-results .none { padding: 16px 10px; font-size: 14px; color: var(--iz-muted-fg); }
@media (max-width: 479px) { .search-results .price-tag { display: none; } .search-results a { grid-template-columns: 56px 1fr; } .search-results img, .search-results a > span:first-child { width: 56px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--iz-border); background: var(--iz-bg-subtle); padding-block: 48px; font-size: 14px; }
.foot-in { display: grid; gap: 24px; }
.foot-brand { display: grid; gap: 8px; max-width: 46ch; }
.foot-name { font-weight: 600; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-nav a { color: var(--iz-muted-fg); text-decoration: none; }
.foot-nav a:hover { color: var(--iz-fg); text-decoration: underline; }
.theme-f button { width: auto; padding: 0 10px; font-size: 13px; font-weight: 500; }
.foot-note { font-size: 13px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.4fr 1fr auto; align-items: start; } .foot-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--iz-border); } }

.testimonials figure { padding: 20px 0; border-top: 1px solid var(--iz-border); }
.testimonials figcaption { margin-top: 8px; font-size: 14px; color: var(--iz-muted-fg); }

/* section heads */
.shead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.shead > div { display: grid; gap: 10px; max-width: 60ch; }
.slede { font-size: 16px; line-height: 1.55; color: var(--iz-muted-fg); text-wrap: pretty; }
@media (min-width: 1024px) { .shead { margin-bottom: 44px; } .slede { font-size: 18px; } }

/* component playground (real Motion · Clean components) */
.pg-sec { background: var(--iz-bg-subtle); border-block: 1px solid var(--iz-border); }
.pg { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pg { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; } .pg-glass { grid-column: 1 / -1; } .pg-settings { grid-row: span 2; } }
@media (min-width: 1100px) { .pg { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .pg-glass { grid-column: span 2; grid-row: span 2; } .pg-toast, .pg-sort { grid-column: span 2; } .pg-settings { grid-column: span 2; grid-row: span 2; } }
.pg-h-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 10px 16px; }
.pg-h-row .seg { flex: none; }
.pg-h-row > div:first-child { display: grid; gap: 3px; max-width: 46ch; }
.pg-glass-stage { position: relative; margin: 16px; padding: 28px 20px; border-radius: var(--iz-r-xl); overflow: hidden; min-height: 340px; isolation: isolate; background: var(--iz-sunken); }
.pg-glass-stage > .pg-pattern { position: absolute; inset: 0; z-index: -1; }
.pg-gcard { --iz-glass-accent: #141414; --iz-glass-on-accent: #FFFFFF; --iz-glass-ring: #141414; width: min(100%, 340px); }
:root[data-theme="dark"] .pg-gcard { --iz-glass-accent: #EDEDEC; --iz-glass-on-accent: #0C0C0B; --iz-glass-ring: #EDEDEC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-gcard { --iz-glass-accent: #EDEDEC; --iz-glass-on-accent: #0C0C0B; --iz-glass-ring: #EDEDEC; } }
.pg:not(.glass-live) .pg-glass-stage > * { opacity: 0; }
.pg-more { padding: 0 20px 18px; font-size: 14px; }
.pg-tile { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 250px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-2xl); background: var(--iz-bg); overflow: hidden; }
.pg-h { padding: 18px 20px 0; display: grid; gap: 3px; }
.pg-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pg-h p { font-size: 13px; color: var(--iz-muted-fg); }
.pg-stage { flex: 1; display: grid; place-items: center; padding: 20px; min-width: 0; transition: opacity 300ms var(--iz-ease-out); }
.pg:not(.is-live) .pg-stage { opacity: 0; }
.pg.is-failed .pg-stage { opacity: 1; }
.pg-stage-top { position: relative; place-items: start center; min-height: 250px; }
.pg-col-stage { gap: 14px; align-content: center; }
.pg-card { width: min(100%, 400px); display: grid; gap: 14px; padding: 18px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-xl); background: var(--iz-surface); box-shadow: var(--iz-lift); font-size: 14px; }
.pg-card-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.pg-card-head b, .pg-row b { display: block; font-weight: 600; }
.pg-card-head span:not(.mc-chip):not(.mc-chip *), .pg-row div > span { display: block; font-size: 13px; color: var(--iz-muted-fg); }
.pg-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--iz-border); }
.pg-row b { font-weight: 500; }
.pg-col { flex-direction: column; align-items: flex-start; gap: 10px; }
.pg-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pg-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.pg-key { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pg-key code { padding: 7px 12px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-md); background: var(--iz-surface); font: 400 13px var(--iz-mono); }
.pg-sort .mc-sort { width: min(100%, 380px); }
.pg-progress .mc-progress { width: min(100%, 320px); }
.pg-tabs .mc-tabs { width: min(100%, 340px); }
.pg-tabs dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding-top: 12px; font-size: 14px; }
.pg-tabs dt { color: var(--iz-muted-fg); }
.pg-tabs [role="tabpanel"] p { padding-top: 12px; font-size: 14px; color: var(--iz-muted-fg); }
.pg .mc-stat { min-width: 220px; }

/* bundles on the home page */
.bcards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.bcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--iz-border); border-radius: var(--iz-r-2xl); overflow: hidden; background: var(--iz-bg-subtle); transition: border-color var(--iz-dur) var(--iz-ease); }
.bcard:hover { border-color: var(--iz-border-strong); }
.bfan { position: relative; height: 190px; overflow: hidden; }
.bfan span { position: absolute; top: 30px; width: 54%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--iz-sunken); box-shadow: 0 0 0 1px var(--iz-ring-img), 0 16px 32px -14px rgb(0 0 0 / .4); transition: translate 500ms var(--iz-ease-out); }
.bfan img { width: 100%; height: 100%; object-fit: cover; }
.bfan span:nth-child(1) { left: 5%; rotate: -4deg; top: 40px; }
.bfan span:nth-child(2) { left: 23%; z-index: 2; top: 22px; }
.bfan span:nth-child(3) { left: 41%; z-index: 1; rotate: 4deg; top: 44px; }
.bcard:hover .bfan span:nth-child(2) { translate: 0 -6px; }
@media (min-width: 1024px) { .bfan { height: 230px; } .bfan span { width: 46%; } .bfan span:nth-child(2) { left: 27%; } .bfan span:nth-child(3) { left: 49%; } }
.bcard-body { display: grid; gap: 6px; padding: 20px 22px 22px; border-top: 1px solid var(--iz-border); background: var(--iz-surface); flex: 1; align-content: start; }
.bcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.bcard h3 a { text-decoration: none; }
.bcard h3 a::after { content: ""; position: absolute; inset: 0; }
.bcard h3 a:focus-visible { outline: none; }
.bcard h3 a:focus-visible::after { outline: 2px solid var(--iz-focus); outline-offset: 2px; border-radius: var(--iz-r-2xl); }
.bcard .muted { font-size: 14px; }
.bcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; }
.bprice b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.bprice s { margin-left: 8px; font-size: 14px; color: var(--iz-muted-fg); }

/* buying, licences and docs */
.info { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .info { grid-template-columns: repeat(2, minmax(0, 1fr)); } .info-faq { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .info { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .info-how { grid-column: auto; } }
.info-card { display: grid; gap: 16px; align-content: start; padding: 24px; border: 1px solid var(--iz-border); border-radius: var(--iz-r-2xl); background: var(--iz-surface); }
.info-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.steps2 { display: grid; gap: 14px; }
.steps2 li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15px; color: var(--iz-muted-fg); }
.steps2 b { color: var(--iz-fg); font-weight: 500; }
.steps2 .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--iz-border-strong); font-size: 12px; color: var(--iz-fg); }
.lic-mini { display: grid; }
.lic-mini li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--iz-border); font-size: 14px; }
.lic-mini li:first-child { border-top: 0; padding-top: 0; }
.lic-mini span { color: var(--iz-muted-fg); }
.info-faq .faq { margin-top: 0; }
@media (min-width: 900px) { .info-faq .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; } .info-faq .faq details:nth-child(-n+2) { border-top: 1px solid var(--iz-border); } }

/* catalogue: category pills */
.cat-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -5px 0; padding: 5px; } /* the padding leaves room for the focus ring inside the scroll box */
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--iz-border); background: var(--iz-surface); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--iz-muted-fg); transition: border-color var(--iz-dur) var(--iz-ease), color var(--iz-dur) var(--iz-ease); }
.cat-pills a:hover { border-color: var(--iz-border-strong); color: var(--iz-fg); }
.cat-pills a[aria-current="true"] { background: var(--iz-fg); border-color: var(--iz-fg); color: var(--iz-bg); }
.cat-pills .mono { font-size: 12px; opacity: .8; }

/* product page: a big framed cover first */
.g-main { border: 0; border-radius: var(--iz-r-2xl); box-shadow: inset 0 0 0 1px var(--iz-ring-img); position: relative; }
.g-main img, .g-main video { border-radius: inherit; }
.g-thumbs { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.g-thumbs button { border-radius: 10px; }

/* ================= v3 =================
   One family up front (Cinematic, Clean templates and app kits, Glass and Motion · Clean), the Expressive & 3D line in its
   own band lower down. Headings in Instrument Serif; everything else stays Geist. The previous v2 is in _archive-v2/. */

/* brand: the Pivot mark (img/brand/) drawn once in index.html as <symbol id="iz-mark"> and used here */
.brand { gap: 9px; }
.brand .brand-mark, .foot-name .brand-mark { width: 24px; height: 24px; flex: none; color: var(--iz-fg); fill: currentColor; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.brand-name span { font-weight: 500; color: var(--iz-muted-fg); }
.foot-name { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; letter-spacing: -0.012em; }
.foot-name span { font-weight: 500; color: var(--iz-muted-fg); }

/* type */
.serif, .display { font-family: var(--iz-display); font-weight: 400; font-synthesis: none; }
.h2.serif { font-size: 36px; letter-spacing: -0.012em; line-height: 1.04; }
@media (min-width: 1024px) { .h2.serif { font-size: 52px; } }
.page-title.serif { font-size: 46px; letter-spacing: -0.012em; line-height: 1; }
@media (min-width: 1024px) { .page-title.serif { font-size: 68px; } }
.prose-page .page-title, .page-head .page-title { font-family: var(--iz-display); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; font-size: 44px; }
@media (min-width: 1024px) { .prose-page .page-title, .page-head .page-title { font-size: 64px; } }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.btn .i path { fill: currentColor; stroke: none; }
.tbtn, .hlink { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.tbtn { color: var(--iz-link); font-weight: 500; }
.tbtn:hover { text-decoration: underline; }

/* ---------- hero: film ---------- */
.hero3 { padding-top: 12px; }
@media (min-width: 1024px) { .hero3 { padding-top: 20px; } }
.hf3 { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 600px; border-radius: 18px; background: #18201A; color: #FFFFFF; }
@media (min-width: 700px) { .hf3 { min-height: clamp(560px, 76vh, 760px); border-radius: 24px; } }
.hf3-poster, .hf3-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hf3-video { opacity: 0; transition: opacity 700ms var(--iz-ease-out); }
.hf3.is-playing .hf3-video { opacity: 1; }
.hf3-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgb(9 11 9 / .9) 0%, rgb(9 11 9 / .74) 34%, rgb(9 11 9 / .2) 64%, rgb(9 11 9 / .04) 82%),
              linear-gradient(to right, rgb(9 11 9 / .55), rgb(9 11 9 / 0) 62%); }
@media (max-width: 699px) { .hf3-scrim { background: linear-gradient(to top, rgb(9 11 9 / .92) 0%, rgb(9 11 9 / .8) 45%, rgb(9 11 9 / .62) 72%, rgb(9 11 9 / .4) 100%); } }
.hf3-copy { display: grid; gap: 16px; justify-items: start; padding: 120px 22px 26px; max-width: 980px; }
@media (min-width: 700px) { .hf3-copy { padding: 160px 44px 44px; gap: 20px; } }
@media (min-width: 1024px) { .hf3-copy { padding: 200px 56px 56px; } }
.display { max-width: none; font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -0.014em; line-height: 1.0; text-wrap: balance; color: #FFFFFF; }
.display span { display: inline; }
@media (min-width: 900px) { .display span { display: block; } }
.hero-lede { font-size: 17px; line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.hf3 .hero-lede { color: #E7E4DF; }
@media (min-width: 1024px) { .hero-lede { font-size: 19px; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 6px; }
.btn-light { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #FFFFFF; background: #FFFFFF; color: #0A0A0B; font-size: 15px; font-weight: 500; }
.btn-light:hover { background: #E7E5E4; border-color: #E7E5E4; }
.hlink { color: #FFFFFF; font-size: 15px; font-weight: 500; }
.hlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.hf3 :focus-visible { outline-color: #FFFFFF; }
.hf3-credit, .film-toggle { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(12 14 12 / .72); color: #FFFFFF; font-size: 13px; text-decoration: none; }
.hf3-credit { left: 14px; max-width: calc(100% - 80px); white-space: nowrap; overflow: hidden; }
.hf3-credit b { font-weight: 600; }
.hf3-credit:hover { background: rgb(12 14 12 / .9); }
.hf3-dot { width: 7px; height: 7px; border-radius: 50%; background: #4FBF8B; flex: none; }
.film-toggle { right: 14px; padding: 0 12px 0 10px; font-weight: 500; }
.film-toggle:hover { background: rgb(12 14 12 / .9); }
.film-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.film-toggle .i-play, .film-toggle[aria-pressed="true"] .i-pause { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 559px) { .film-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .film-toggle { width: 32px; padding: 0; justify-content: center; } }
@media (min-width: 700px) { .hf3-credit { left: 20px; top: 20px; } .film-toggle { right: 20px; top: 20px; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .hf3-credit, .film-toggle { background: #0C0E0C; } .hf3-scrim { background: linear-gradient(to top, rgb(9 11 9 / .95) 0%, rgb(9 11 9 / .9) 50%, rgb(9 11 9 / .3) 80%); } }

/* ---------- hero: covers (alternative, heroStyle: 'covers') ---------- */
.hero-covers { padding-block: 40px 8px; }
.hc-grid { display: grid; gap: 40px; align-items: center; }
.hero-covers .display { color: var(--iz-fg); }
.hero-covers .hero-lede { color: var(--iz-muted-fg); margin-top: 18px; }
.hero-covers .hero-cta { margin-top: 26px; }
.hc-stage { position: relative; height: 360px; }
.hc { position: absolute; display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--iz-ring-img), 0 30px 60px -28px rgb(0 0 0 / .45); text-decoration: none; color: inherit; transition: translate 500ms var(--iz-ease-out), rotate 500ms var(--iz-ease-out); }
.hc-img, .hc-img img { display: block; width: 100%; height: auto; }
.hc-0 { left: 0; top: 40px; width: 74%; rotate: -2.5deg; z-index: 2; }
.hc-1 { right: 0; top: 0; width: 50%; rotate: 3deg; z-index: 1; }
.hc-2 { right: 4%; bottom: 0; width: 46%; rotate: -1deg; z-index: 3; }
.hc:hover { translate: 0 -6px; }
.hc-label { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: #141414; font-size: 12px; }
.hc-label span { color: #57534E; }
@media (min-width: 1024px) { .hero-covers { padding-block: 72px 24px; } .hc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } .hc-stage { height: 560px; } }

/* category strip under the hero */
.cat-strip { display: flex; align-items: center; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-block: 5px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-h { flex: none; margin-right: 6px; font-size: 13px; font-weight: 500; color: var(--iz-muted-fg); }
.cat-strip a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--iz-border); background: var(--iz-surface); color: var(--iz-fg); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color var(--iz-dur) var(--iz-ease), background-color var(--iz-dur) var(--iz-ease); }
.cat-strip a:hover { border-color: var(--iz-border-strong); background: var(--iz-sunken); }
.cat-strip a .mono { font-size: 12px; color: var(--iz-muted-fg); }
.cat-strip .cat-all { border-color: transparent; background: transparent; color: var(--iz-link); }
@media (min-width: 1024px) { .cat-strip { flex-wrap: wrap; margin-top: 18px; } }

/* sections */
.sec3 { padding-block: 64px; }
.sec3.sec-first { padding-top: 56px; }
@media (min-width: 1024px) { .sec3 { padding-block: 104px; } .sec3.sec-first { padding-top: 80px; } }
.sec3:not(.ui-sec) + .sec3:not(.info-sec):not(.ui-sec) { padding-top: 0; } /* stacked shelves share one gap; a section after the grey band keeps its own top padding */
.ui-sec { background: var(--iz-bg-subtle); border-block: 1px solid var(--iz-border); }
.ui-sec + .sec3 { padding-top: 64px; }
@media (min-width: 1024px) { .ui-sec + .sec3 { padding-top: 104px; } }
.shead .tlink { padding-bottom: 6px; }

/* grids: g3 (1 / 2 / 3), g-big2 (first two cards large), g4 (1 / 2 / 4) */
.grid.g3, .grid.g4 { gap: 40px 24px; }
@media (min-width: 1024px) {
  .grid.g3 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 52px 28px; }
  .grid.g3 > .card { grid-column: span 2; }
  .grid.g3.g-big2 > .card-big { grid-column: span 3; }
  .grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 560px) and (max-width: 1023px) { .grid.g3.g-big2 > .card-big { grid-column: span 1; } }
.card-big h3 { font-size: 19px; }
.card-big .card-img { border-radius: 18px; }

/* Glass and Motion: playground head */
.pg-head { display: grid; gap: 8px; margin: 64px 0 24px; }
.pg-head .h3 { font-size: 22px; }
.more-packs { margin-top: 22px; font-size: 14px; }

/* ---------- Expressive & 3D: its own band, the same tokens re-set for a warm dark surface ---------- */
.xband { --iz-bg: #12110F; --iz-bg-subtle: #171512; --iz-surface: #1A1815; --iz-sunken: #211E1A; --iz-border: #2E2A25; --iz-border-strong: #3D3832;
  --iz-fg: #F1EEE9; --iz-muted-fg: #ADA59C; --iz-faint-fg: #948C83; --iz-link: #5CC795; --iz-focus: #5CC795; --iz-ring-img: rgb(255 255 255 / .08);
  --iz-accent: #F1EEE9; --iz-accent-fg: #12110F; --iz-accent-hover: #D6D3D1; --iz-lift: 0 1px 2px rgb(0 0 0 / .4), 0 22px 44px -22px rgb(0 0 0 / .8);
  color-scheme: dark; position: relative; padding-block: 72px; color: var(--iz-fg);
  background: radial-gradient(70% 60% at 85% 0%, rgb(196 92 44 / .16), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgb(202 170 40 / .08), transparent 70%), var(--iz-bg);
  border-block: 1px solid #2E2A25; }
@media (min-width: 1024px) { .xband { padding-block: 104px; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .xband { background: var(--iz-bg); } }
.xb-kicker { font-size: 14px; font-weight: 500; color: var(--iz-muted-fg); }
.xb-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.xb-links a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--iz-border-strong); color: var(--iz-fg); font-size: 14px; font-weight: 500; text-decoration: none; }
.xb-links a:hover { background: var(--iz-sunken); }
.xb-links .mono { font-size: 12px; color: var(--iz-muted-fg); }
.xband + .sec3 { padding-top: 64px; }
@media (min-width: 1024px) { .xband + .sec3 { padding-top: 104px; } }
.facts { margin-top: 28px; font-size: 13px; }

/* ---------- product page (v3): big preview first, sticky buy panel, bottom bar on phones ---------- */
.pd-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; padding: 20px 0 24px; }
.pd-title { display: grid; gap: 8px; min-width: 0; }
.pd-title .sub { font-size: 18px; color: var(--iz-muted-fg); }
.pd-title .p-meta { margin: 6px 0 0; }
.pd-grid { display: grid; gap: 32px; padding-bottom: 56px; }
.pd-main, .pd-gal { display: grid; gap: 0; min-width: 0; }
.pd .g-main { border-radius: 20px; background: var(--iz-sunken); }
.pd .g-main img, .pd .g-main video { aspect-ratio: 16 / 10; object-fit: cover; }
.pd .g-main.portrait img, .pd .g-main.portrait video { object-fit: contain; }
.pd .block { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--iz-border); }
.pd .block + .block { margin-top: 40px; }
.pd .block h2 { font-family: var(--iz-display); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; line-height: 1.05; }
.pd .who { font-size: 18px; line-height: 1.5; color: var(--iz-fg); max-width: 60ch; }
.clip-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
/* each clip's width follows its aspect ratio, so landscape and portrait clips in a row share one height */
.clip-grid video { flex: var(--grow, 1) 1 0; min-width: 0; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; border-radius: 14px; background: var(--iz-sunken); box-shadow: inset 0 0 0 1px var(--iz-ring-img); }
@media (max-width: 559px) { .clip-grid video { flex-basis: calc(50% - 6px); flex-grow: 0; } .clip-grid video[style*="16 / 9"] { flex-basis: 100%; } }
.pd .related { padding-block: 56px var(--iz-section); border-top: 1px solid var(--iz-border); }
.pd .related .shead { margin-bottom: 28px; }
.pd .buybox { gap: 18px; padding: 22px; border-radius: 16px; }
.pd .buybox .price b { font-size: 30px; }
.buybar { display: none; }
.buy-live { display: flex; gap: 8px; }
.buy-live .btn { flex: 1; min-height: 44px; font-size: 15px; }
.buy-live .btn-icon { flex: none; width: 44px; padding: 0; }
.btn .i-line, .btn .i-line path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-added { background: var(--iz-success); border-color: var(--iz-success); color: var(--iz-accent-fg); }
.inside div.wide { grid-column: 1 / -1; }
.pd .block .card-bundle { margin-top: 4px; }
.card-bundle { position: relative; z-index: 1; font-size: 13px; }
.card-bundle .tlink { white-space: normal; }
.card-bundle s { color: var(--iz-muted-fg); margin-left: 4px; }
.nudge { padding: 10px 12px; border-radius: var(--iz-r-md); background: color-mix(in srgb, var(--iz-link) 10%, transparent); font-size: 13px; }
.qty-l { padding: 0 4px 0 8px; font-size: 12px; color: var(--iz-muted-fg); }
@media (min-width: 1024px) {
  .pd-head { padding: 28px 0 32px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 48px; align-items: start; }
  .pd-gal { grid-column: 1; grid-row: 1; }
  .pd-main { grid-column: 1; grid-row: 2; }
  .pd .buybox { grid-column: 2; grid-row: 1 / span 2; }
  .pd .buybox { position: sticky; top: calc(var(--iz-head-h) + 20px); }
}
@media (max-width: 1023px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; transition: translate 220ms var(--iz-ease-out), visibility 220ms; align-items: center; gap: 8px; padding: 10px var(--iz-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--iz-bg); border-top: 1px solid var(--iz-border); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .18); }
  .buybar.is-hidden { translate: 0 110%; visibility: hidden; }
  .buybar > div { display: grid; margin-right: auto; line-height: 1.2; min-width: 0; }
  .buybar b { font-size: 18px; font-weight: 600; }
  .buybar span { font-size: 12px; color: var(--iz-muted-fg); }
  .buybar .btn { min-height: 44px; }
  .pd { padding-bottom: 80px; }
  body:has(.buybar) .foot { padding-bottom: 104px; }
  .pd .g-thumbs { display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
  .pd .g-thumbs::-webkit-scrollbar { display: none; }
  .pd .g-thumbs button { flex: none; width: 92px; }
}

/* ---------- live preview: a full-viewport overlay ---------- */
.sheet { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
.sheet-stage { padding: 12px; }
.sheet-head h2 { font-size: 15px; }

/* ---------- covers: light and dark pair, and the flip ---------- */
.cvp { position: relative; display: block; width: 100%; height: 100%; }
.cvp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 240ms var(--iz-ease-out); }
.cvp > .cv-alt { opacity: 0; }
.cvp.is-flip > .cv-alt { opacity: 1; }
.cvp::after { content: attr(data-alt); position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgb(12 12 11 / .8); color: #FFFFFF; font: 500 11px/1.5 var(--iz-font); letter-spacing: .01em; opacity: 0; transition: opacity 200ms var(--iz-ease-out); pointer-events: none; }
.cvp.is-flip::after { opacity: 1; }
.pd .g-main .cvp { aspect-ratio: 16 / 10; }
.hc-img .cvp { aspect-ratio: 16 / 10; }
.bcover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.bcard .bcover { aspect-ratio: 16 / 8; }
.bcover img { width: 100%; height: 100%; object-fit: cover; }
.b-thumbs .bcover { border-radius: 14px; box-shadow: 0 0 0 1px var(--iz-ring-img); }

/* hero: kicker, short lede on phones, product chips */
.hf3 .hero-kicker { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 12px; line-height: 1.35; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(12 14 12 / .72); font-size: 13px; font-weight: 500; color: #F1EEE9; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .hf3 .hero-kicker { background: #0C0E0C; } }
.hero-kicker { font-size: 14px; font-weight: 500; }
.hero-covers .hero-kicker { color: var(--iz-muted-fg); margin-bottom: 14px; }
.lede-short { display: none; }
@media (max-width: 559px) { .lede-long { display: none; } .lede-short { display: inline; } }
.hf3-chips { display: none; }
@media (min-width: 1280px) {
  .hf3-copy { max-width: min(980px, calc(100% - 250px)); }
  .hf3-chips { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 8px; }
  .hf3-chips a { display: grid; grid-template-columns: 64px auto; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .18); background: rgb(12 14 12 / .72); color: #FFFFFF; text-decoration: none; transition: background-color var(--iz-dur) var(--iz-ease); }
  .hf3-chips a:hover { background: rgb(12 14 12 / .92); }
  .hf3-chips img { width: 64px; height: 40px; object-fit: cover; object-position: top; border-radius: 7px; }
  .hf3-chips span { display: grid; line-height: 1.25; }
  .hf3-chips b { font-size: 14px; font-weight: 600; }
  .hf3-chips small { font-size: 12px; color: #D6D2CB; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .hf3-chips a { background: #0C0E0C; } }

/* phones: each home shelf is a swipe row with a "see all" card at the end, so the page stays short */
.rail-end { display: none; }
@media (max-width: 699px) {
  .grid.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--iz-gutter)); padding: 4px var(--iz-gutter) 8px; scroll-padding-inline: var(--iz-gutter); scrollbar-width: none; }
  .grid.rail::-webkit-scrollbar { display: none; }
  .grid.rail > * { scroll-snap-align: start; }
  .grid.rail > .card { grid-column: auto; }
  .rail-end { display: grid; place-items: center; align-self: start; aspect-ratio: 16 / 10; border-radius: var(--iz-r-xl); border: 1px dashed var(--iz-border-strong); color: var(--iz-link); font-weight: 500; text-decoration: none; text-align: center; padding: 16px; }
}

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