/* =====================================================================
   Rijax storefront — "colour index"
   White swatch stock on a cool grey ground, black ink, colour from the art.
   ===================================================================== */

:root {
    --ground: #f1f2f4;
    --paper: #ffffff;
    --ink: #141517;
    --ink-2: #33363c;
    --muted: #5c6068;
    --line: #dde0e5;
    --line-2: #c5c9d0;
    --focus: #2f62d0;
    --danger: #c0311e;
    --ok: #237a35;
    --warn: #8f6300;
    --heart: #d93a2b;

    --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --wide: 122%;
    --narrow: 82%;

    --r: 6px;
    --r-lg: 10px;
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --lift: 0 14px 28px -16px rgb(20 21 23 / .35), 0 2px 6px -2px rgb(20 21 23 / .12);

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--line-2) var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    caret-color: var(--ink);
    overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
p, dl, dd, figure { margin: 0; }
code, .mono, .code { font-variant-numeric: tabular-nums; font-stretch: var(--narrow); letter-spacing: .02em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.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-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - var(--gutter) * 2, 860px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hex { font-stretch: var(--narrow); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* Prose links get a real underline */
.prose a, .download-hint a, .auth-switch a, .notice a, .check a, .licence-line a, .cert-body dd a {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2);
}
.prose a:hover, .download-hint a:hover, .auth-switch a:hover, .notice a:hover, .licence-line a:hover { text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------- Type scale */

.page-title { font-size: clamp(2rem, 4vw, 3.2rem); font-stretch: var(--wide); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin-top: 16px; text-wrap: pretty; }
.section-head h2, .block-head h2, .included h2, .licence-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-stretch: var(--wide); font-weight: 750; letter-spacing: -0.025em; }

/* ---------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: var(--r);
    border: 1px solid transparent; background: var(--paper); color: var(--ink);
    font-weight: 650; font-size: .95rem; white-space: nowrap; text-align: center;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; box-shadow: var(--lift); }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }
.btn-outline.is-on { color: var(--heart); border-color: var(--heart); }
.btn-outline.is-on .icon { fill: currentColor; }
.btn-link-danger { background: transparent; color: var(--danger); padding-inline: 8px; }
.btn-link-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-quiet { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 550; }
.link-quiet:hover { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.link-arrow .icon { transition: translate .3s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }

/* ---------------------------------------------------------------- Small atoms */

.avatar {
    --av: #9aa0a8;
    display: inline-grid; place-items: center; flex: none;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--av); color: #111; font-weight: 700; font-size: .8rem;
}
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r); font-size: .8rem; font-weight: 650; }
.badge-accent { background: var(--ink); color: var(--paper); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r); font-size: .8rem; font-weight: 650; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ok { background: #e3f2e5; color: var(--ok); }
.status-pill.warn { background: #f7eed8; color: var(--warn); }

.swatch-chip { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.swatch-chip.sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------------------------------------------------------------- Header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-word { font-size: 1.4rem; font-weight: 780; font-stretch: var(--wide); letter-spacing: -0.04em; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a { position: relative; padding: 8px 12px; color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.main-nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ink); scale: 0 1; transition: scale .3s var(--ease); }
.main-nav > a:hover::after, .main-nav > a.is-active::after { scale: 1 1; }
.main-nav > a.is-active { color: var(--ink); }
.nav-mobile-actions { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-search {
    display: flex; align-items: center; gap: 8px; height: 40px; width: 240px; padding: 0 10px 0 12px;
    border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--muted);
}
.header-search:focus-within { border-color: var(--ink); }
.header-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); }
.header-search input::placeholder { color: var(--muted); }
.header-search kbd { font: inherit; font-size: .75rem; font-stretch: var(--narrow); padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: var(--r); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 6px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--lift);
}
.user-menu-head { display: grid; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.user-menu-head span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.user-menu-panel a, .user-menu-panel button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--r);
    background: none; border: 0; text-align: left; color: var(--ink-2); font-weight: 550; font-size: .92rem;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--ground); color: var(--ink); }

/* ---------------------------------------------------------------- Toasts */

.toasts { position: fixed; z-index: 80; right: 20px; top: 84px; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--lift); }
.toast p { flex: 1; font-size: .93rem; }
.toast-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--focus); }
.toast-success .toast-dot { background: var(--ok); }
.toast-error .toast-dot { background: var(--danger); }
.toast-close { background: none; border: 0; color: var(--muted); padding: 2px; border-radius: 4px; }
.toast.is-leaving { opacity: 0; translate: 16px 0; transition: opacity .3s, translate .3s; }
@media (prefers-reduced-motion: no-preference) {
    .toast { animation: toast-in .5s var(--ease); }
    @keyframes toast-in { from { opacity: 0; translate: 0 -8px; } }
}

/* ---------------------------------------------------------------- Intro + search */

.intro { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.intro-title {
    font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-stretch: var(--wide); font-weight: 780;
    letter-spacing: -0.035em; line-height: .94; max-width: 14ch;
}
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 56px; align-items: end; margin-top: 32px; }
.intro-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }

.search-bar {
    display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
    background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--muted);
}
.search-bar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(20 21 23 / .08); }
.search-bar input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; color: var(--ink); font-size: 1.02rem; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar select { height: 44px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-2); font-weight: 550; outline-offset: -2px; }
.search-bar.compact { width: min(100%, 440px); }
.search-bar.compact input { height: 36px; font-size: .95rem; }

/* ---------------------------------------------------------------- Spectrum (signature) */

.spectrum { margin-top: clamp(32px, 5vw, 56px); }
.spectrum-band { display: flex; gap: 4px; }
.spectrum-seg {
    flex: var(--n) 1 0; min-width: 44px; display: flex; flex-direction: column; gap: 10px;
    transition: flex-grow .6s var(--ease);
}
.spectrum-fill {
    display: block; height: clamp(88px, 11vw, 148px); border-radius: 4px; background: var(--paint);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06);
    transition: opacity .3s, box-shadow .3s, translate .4s var(--ease);
}
.spectrum-name {
    display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap;
    font-size: .85rem; font-weight: 650; color: var(--ink-2);
}
.spectrum-name span { font-weight: 450; color: var(--muted); font-variant-numeric: tabular-nums; }
.spectrum-seg:hover, .spectrum-seg:focus-visible { flex-grow: calc(var(--n) * 1.6 + 2); }
.spectrum-seg:hover .spectrum-fill { translate: 0 -4px; box-shadow: var(--lift); }
.spectrum-seg.is-on .spectrum-fill { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.spectrum-seg.is-on .spectrum-name { color: var(--ink); }
.spectrum-seg.is-dim .spectrum-fill { opacity: .35; }
.spectrum-seg.is-dim:hover .spectrum-fill { opacity: 1; }
.spectrum-caption { margin-top: 14px; color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
    .spectrum-fill { animation: print-in .9s var(--ease) both; }
    .spectrum-seg:nth-child(2) .spectrum-fill { animation-delay: .04s; }
    .spectrum-seg:nth-child(3) .spectrum-fill { animation-delay: .08s; }
    .spectrum-seg:nth-child(4) .spectrum-fill { animation-delay: .12s; }
    .spectrum-seg:nth-child(5) .spectrum-fill { animation-delay: .16s; }
    .spectrum-seg:nth-child(6) .spectrum-fill { animation-delay: .2s; }
    .spectrum-seg:nth-child(7) .spectrum-fill { animation-delay: .24s; }
    .spectrum-seg:nth-child(8) .spectrum-fill { animation-delay: .28s; }
    .spectrum-seg:nth-child(9) .spectrum-fill { animation-delay: .32s; }
    .spectrum-seg:nth-child(10) .spectrum-fill { animation-delay: .36s; }
    .spectrum-seg:nth-child(11) .spectrum-fill { animation-delay: .4s; }
    @keyframes print-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------------------------------------------------------------- Sections */

.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-top-sm { padding-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------------------------------------------------------------- Swatch cards (masonry) */

.masonry { columns: 4 250px; column-gap: 18px; }
.masonry > .swatch { break-inside: avoid; margin-bottom: 18px; }

.swatch {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
    padding: 8px 8px 0;
    transition: box-shadow .35s var(--ease), translate .35s var(--ease), border-color .2s;
}
.swatch:hover, .swatch:focus-within { box-shadow: var(--lift); translate: 0 -2px; border-color: var(--line-2); }
.swatch-art { display: block; overflow: hidden; border-radius: 3px; background: var(--c); }
.swatch-art img { width: 100%; height: 100%; object-fit: cover; }
.swatch-label { display: flex; align-items: center; gap: 12px; padding: 12px 4px 14px; }
.swatch-text { min-width: 0; }
.swatch-text h3 { font-size: .98rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; }
.swatch-text h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch-text h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.swatch-text p { margin-top: 2px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch-free {
    position: absolute; left: 16px; top: 16px; z-index: 2; padding: 3px 8px; border-radius: 3px;
    background: var(--ink); color: var(--paper); font-size: .72rem; font-weight: 700; font-stretch: var(--narrow); letter-spacing: .06em; text-transform: uppercase;
}
.swatch-fav {
    position: absolute; right: 16px; top: 16px; z-index: 3; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink);
    box-shadow: 0 2px 8px -2px rgb(0 0 0 / .25);
    opacity: 0; transition: opacity .2s, color .2s;
}
.swatch:hover .swatch-fav, .swatch:focus-within .swatch-fav, .swatch-fav.is-on { opacity: 1; }
.swatch-fav.is-on { color: var(--heart); }
.swatch-fav.is-on .icon { fill: currentColor; }
@media (hover: none) { .swatch-fav { opacity: 1; } }

/* ---------------------------------------------------------------- Category index */

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-row {
    display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.6fr) auto 24px; align-items: center; gap: 24px;
    padding: 18px 12px; border-bottom: 1px solid var(--line); transition: background-color .2s;
}
.index-row:hover { background: var(--paper); }
.index-name { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 750; font-stretch: var(--wide); letter-spacing: -0.025em; }
.index-desc { color: var(--ink-2); font-size: .95rem; }
.index-thumbs { display: flex; gap: 6px; }
.index-thumbs span { width: 56px; height: 56px; border-radius: 3px; overflow: hidden; background: var(--c); }
.index-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.index-arrow { color: var(--muted); transition: translate .3s var(--ease), color .2s; }
.index-row:hover .index-arrow { translate: 4px 0; color: var(--ink); }

/* ---------------------------------------------------------------- Licence (home) */

.licence-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.licence-copy .muted { margin-top: 12px; font-size: 1.05rem; }
.how { margin: 32px 0 28px; border-top: 1px solid var(--ink); }
.how div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how dt { font-weight: 750; font-stretch: var(--wide); }
.how dd { color: var(--ink-2); }

.cert-sample { justify-self: center; width: min(360px, 100%); }
.cert-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--lift); }
.cert-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .8rem; font-weight: 650; font-stretch: var(--narrow); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cert-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--c); }
.cert-card dl { margin-top: 14px; }
.cert-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.cert-card dl div:last-child { border-bottom: 0; }
.cert-card dt { color: var(--muted); }
.cert-card dd { font-weight: 600; text-align: right; }
.cert-sample figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- Pricing */

.cycle-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); }
.page-head .cycle-toggle { margin-top: 24px; }
.cycle-toggle button { border: 0; background: none; padding: 7px 16px; border-radius: 4px; font-weight: 650; color: var(--muted); transition: background-color .2s, color .2s; }
.cycle-toggle button.is-on { background: var(--ink); color: var(--paper); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan-popular { border: 2px solid var(--ink); padding: 27px; }
.plan-flag { position: absolute; top: -12px; left: 26px; padding: 3px 10px; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; font-stretch: var(--narrow); letter-spacing: .06em; text-transform: uppercase; }
.plan header h3 { font-size: 1.35rem; font-stretch: var(--wide); font-weight: 750; }
.plan header p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .price { font-size: 3rem; font-weight: 780; font-stretch: var(--wide); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); }
.plan-billed { color: var(--muted); font-size: .85rem; margin-top: -12px; min-height: 1.4em; }
.plan-features { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.plan-features li strong { color: var(--ink); }
.plan-features .icon { flex: none; margin-top: 2px; color: var(--ink); }
.plans-foot { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); }
.notice a { margin-left: auto; font-weight: 650; }

.included { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.included-list { border-top: 1px solid var(--ink); }
.included-list div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.included-list dt { font-weight: 700; }
.included-list dd { color: var(--ink-2); }

.faq { display: grid; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 4px; font-weight: 650; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--muted); transition: rotate .3s var(--ease); }
.faq details[open] summary .icon { rotate: 45deg; color: var(--ink); }
.faq details p { padding: 0 4px 18px; color: var(--ink-2); max-width: 70ch; }

/* ---------------------------------------------------------------- Page head (inner pages) */

.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head.center { text-align: center; }
.page-head.center .lead { margin-inline: auto; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-stretch: var(--wide); font-weight: 780; letter-spacing: -0.035em; line-height: 1; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.page-head-row .muted { margin-top: 10px; }
.page-head .spectrum { margin-top: 28px; }
.page-head .spectrum-fill { height: 56px; }

.filter-bar { position: sticky; top: 68px; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); padding-block: 12px; }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 550; font-size: .88rem; background: transparent; transition: border-color .2s, background-color .2s; }
.chip span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); background: var(--paper); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-on span { color: rgb(255 255 255 / .7); }

.filter-selects { display: flex; align-items: center; gap: 8px; flex: none; }
.select-wrap select {
    appearance: none; -webkit-appearance: none; height: 36px; padding: 0 32px 0 12px; border-radius: var(--r);
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6068' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
    border: 1px solid var(--line-2); font-size: .88rem; font-weight: 550;
}
.select-wrap select:hover { border-color: var(--ink); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .25s; }
.switch-track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: translate .3s var(--ease); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track::after { translate: 16px 0; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }

.load-more { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 12px; background: var(--paper); }
.empty.compact { padding: 28px 20px; }
.empty h2 { font-size: 1.4rem; font-stretch: var(--wide); }
.empty p { color: var(--muted); max-width: 46ch; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--ground); color: var(--ink); }

/* ---------------------------------------------------------------- Item page */

.item-page { padding: 24px 0 32px; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.item-preview {
    position: relative; display: grid; place-items: center; width: 100%; padding: clamp(12px, 2vw, 24px); border: 1px solid var(--line);
    border-radius: var(--r-lg); background: var(--paper); cursor: zoom-in;
}
.item-preview img { width: auto; max-width: 100%; height: auto; max-height: 74vh; border-radius: 3px; background: var(--c); }
.preview-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.item-preview:hover .preview-zoom { border-color: var(--ink); }
.preview-note { margin-top: 12px; color: var(--muted); font-size: .86rem; }
.item-about { margin-top: 32px; max-width: 70ch; }
.item-about h2 { font-size: 1.15rem; margin-bottom: 8px; }
.item-about p { color: var(--ink-2); }
.tag-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { display: inline-block; padding: 6px 11px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }

.item-panel { position: sticky; top: 88px; }
.spec-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-chip {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 120px; padding: 14px 16px;
    background: var(--c); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35);
}
.spec-hex { font-size: 1.5rem; font-weight: 750; font-stretch: var(--narrow); letter-spacing: .04em; }
.spec-family { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 650; opacity: .9; }
.spec-chip:hover .spec-family { text-decoration: underline; text-underline-offset: 3px; }
.spec-body { padding: 22px; }
.spec-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-free, .tag-cat { display: inline-flex; padding: 3px 9px; border-radius: 4px; font-size: .78rem; font-weight: 650; }
.tag-free { background: var(--ink); color: var(--paper); }
.tag-cat { border: 1px solid var(--line-2); color: var(--ink-2); }
.tag-cat:hover { border-color: var(--ink); }
.item-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-stretch: var(--wide); font-weight: 780; letter-spacing: -0.03em; line-height: 1.05; }
.creator { margin-top: 8px; color: var(--muted); }
.creator a { color: var(--ink); font-weight: 650; }
.creator a:hover { text-decoration: underline; text-underline-offset: 3px; }
.download-box { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.download-hint { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.download-hint a { color: var(--ink); font-weight: 600; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.panel-actions .btn { padding-inline: 10px; }
.specs { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .78rem; }
.specs dd { font-weight: 650; font-size: .92rem; font-variant-numeric: tabular-nums; }
.licence-line { display: flex; gap: 10px; margin-top: 18px; color: var(--ink-2); font-size: .86rem; }
.licence-line .icon { flex: none; margin-top: 1px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(241 242 244 / .96); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 4px; box-shadow: var(--lift); }
.lightbox-close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] { animation: lb-in .45s var(--ease); }
    @keyframes lb-in { from { opacity: 0; scale: .97; } }
}

/* ---------------------------------------------------------------- Licence page */

.license-layout { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.license-summary { position: sticky; top: 96px; padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.license-summary h2 { font-size: 1.05rem; margin-bottom: 14px; }
.license-summary ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 9px; font-size: .93rem; }
.license-summary li { display: flex; gap: 10px; align-items: flex-start; }
.license-summary .yes .icon { color: var(--ok); flex: none; }
.license-summary .no { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.license-summary .no .icon { color: var(--danger); flex: none; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; font-stretch: var(--wide); margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose code { background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

/* ---------------------------------------------------------------- Certificate */

.cert-actions { display: flex; justify-content: space-between; margin-bottom: 18px; }
.certificate { padding: clamp(24px, 5vw, 52px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.cert-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.cert-valid { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r); background: #e3f2e5; color: var(--ok); font-weight: 650; font-size: .85rem; }
.cert-code { margin-top: 12px; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; font-stretch: var(--narrow); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.cert-body { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-top: 32px; align-items: start; }
.cert-body img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cert-body dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cert-body dt { color: var(--muted); font-size: .9rem; }
.cert-body dd { font-weight: 600; }
.cert-foot { margin-top: 28px; color: var(--muted); font-size: .85rem; }
.cert-foot .mono { color: var(--ink-2); word-break: break-all; }

@media print {
    .site-header, .site-footer, .no-print, .toasts { display: none !important; }
    body { background: #fff; }
    .certificate { border: 0; padding: 0; }
}

/* ---------------------------------------------------------------- Forms */

.form { display: grid; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 650; font-size: .9rem; }
.field small { color: var(--muted); font-size: .82rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border-radius: var(--r);
    background: var(--paper); border: 1px solid var(--line-2); outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(20 21 23 / .08); }
.field input:user-invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 2px; }
.form-actions { display: flex; justify-content: flex-end; }
.readonly-field { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------------------------------------------------------- Auth */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 69px); }
.auth-form-side { display: grid; place-items: center; padding: 48px var(--gutter); }
.auth-card { width: min(420px, 100%); }
.auth-card .muted { margin-top: 10px; }
.auth-switch { margin-top: 22px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 650; }
.auth-art { position: relative; margin: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.auth-mosaic { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.auth-mosaic div { border-radius: 3px; overflow: hidden; background: var(--c); }
.auth-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.auth-art-caption { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- Checkout */

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.checkout-main .page-title { margin-top: 14px; }
.demo-banner { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); margin-top: 24px; background: var(--paper); border: 1px solid var(--line-2); }
.demo-banner .icon { flex: none; color: var(--focus); }
.demo-banner p { color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.order-summary { padding: 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); position: sticky; top: 96px; }
.order-summary h2 { font-size: 1.4rem; font-stretch: var(--wide); }
.order-summary .plan-features { margin-top: 18px; }
.summary-lines { margin-top: 22px; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-lines div { display: flex; justify-content: space-between; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.summary-lines .total { padding-top: 12px; border-top: 1px solid var(--ink); font-size: 1.15rem; }

/* ---------------------------------------------------------------- Account */

.account-hero { padding: 40px 0 0; }
.account-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-plan { margin-left: auto; }
.tabs { display: flex; gap: 2px; margin-top: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); border-color: var(--ink); }

.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.sub-card { padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.sub-card.is-active { border-color: var(--ink); }
.sub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sub-top h2 { font-size: 1.6rem; font-stretch: var(--wide); }
.sub-meter { margin-top: 22px; }
.meter-head { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.meter { height: 8px; border-radius: 999px; background: var(--ground); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.sub-meter .muted { margin-top: 8px; }
.sub-facts { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sub-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sub-facts dt { color: var(--muted); font-size: .78rem; }
.sub-facts dd { font-weight: 650; }
.sub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.sub-empty { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sub-empty > div { flex: 1; min-width: 220px; }
.sub-empty h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sub-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--ground); }

.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 34px 0 16px; }
.block-head h2 { font-size: 1.3rem; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card { position: relative; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; transition: box-shadow .3s var(--ease); }
.mini-card:hover { box-shadow: var(--lift); }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--c); }
.mini-card span { display: grid; padding: 8px 4px 4px; }
.mini-card strong { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card code { font-size: .74rem; color: var(--muted); }

.side-card { padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); margin-bottom: 16px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.side-card h3 { font-size: 1rem; margin-bottom: 12px; }
.stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-mini div { display: grid; }
.stats-mini strong { font-size: 1.9rem; font-stretch: var(--wide); line-height: 1; font-variant-numeric: tabular-nums; }
.stats-mini span { color: var(--muted); font-size: .85rem; }
.billing-list { list-style: none; margin: 0; padding: 0; }
.billing-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.billing-list li:last-child { border-bottom: 0; }
.billing-list div { display: grid; }
.billing-list span { color: var(--muted); font-size: .8rem; }
.billing-list .amount { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.license-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.license-row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 16px; padding: 8px 14px 8px 8px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.license-thumb { display: block; width: 64px; height: 64px; border-radius: 3px; overflow: hidden; background: var(--c); }
.license-thumb img { width: 100%; height: 100%; object-fit: cover; }
.license-info { display: grid; gap: 2px; min-width: 0; }
.license-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.license-code { padding: 5px 9px; border-radius: 4px; background: var(--ground); font-size: .8rem; }
.license-actions { display: flex; gap: 8px; }
.settings-form { margin-top: 0; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--ink); }
.pagination a.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------------------------------------------------------------- Error */

.error-page { padding: clamp(72px, 12vw, 160px) 0; }
.error-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.04em; line-height: .9; }
.error-page .lead { margin-inline: auto; }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Footer */

.site-footer { margin-top: clamp(32px, 5vw, 64px); background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding: 48px 0 40px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 34ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h2 { font-size: .8rem; font-weight: 700; font-stretch: var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-links a { display: block; padding: 4px 0; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1180px) {
    .header-search { width: 190px; }
    .main-nav > a { padding-inline: 9px; }
    .main-nav > a::after { left: 9px; right: 9px; }
}

@media (max-width: 1024px) {
    .intro-row { grid-template-columns: 1fr; }
    .licence-split, .included { grid-template-columns: 1fr; }
    .item-layout, .checkout-grid, .account-grid, .license-layout { grid-template-columns: 1fr; }
    .item-panel, .license-summary, .order-summary { position: static; }
    .index-row { grid-template-columns: minmax(0, 1fr) auto 24px; }
    .index-desc { display: none; }
    .index-thumbs { grid-column: 2; }
    .index-arrow { grid-column: 3; }
    .filter-inner { flex-direction: column; align-items: stretch; }
    .filter-selects { flex-wrap: wrap; }
    .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .header-search { display: none; }
    .nav-toggle { display: inline-grid; }
    .hide-sm { display: none !important; }
    .main-nav {
        position: fixed; inset: 69px 0 auto; z-index: 60; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--lift);
        opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .2s, translate .3s var(--ease), visibility 0s .3s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s, translate .3s var(--ease); }
    .main-nav > a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .main-nav > a::after { display: none; }
    .nav-mobile-actions { display: grid; gap: 8px; margin-top: 14px; }
    .nav-mobile-actions a:not(.btn) { padding: 8px 4px; color: var(--ink-2); }
    .spectrum-seg { min-width: 30px; }
    .spectrum-name { font-size: .72rem; }
    .spectrum-name span { display: none; }
    .mini-grid { grid-template-columns: 1fr 1fr; }
    .auth { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .license-row { grid-template-columns: 56px 1fr; }
    .license-thumb { width: 56px; height: 56px; }
    .license-code, .license-actions { grid-column: 1 / -1; }
    .license-code { justify-self: start; }
    .sub-facts { grid-template-columns: 1fr; }
    .cert-body { grid-template-columns: 1fr; }
    .cert-body img { max-width: 220px; }
    .how div, .included-list div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
    .intro-title { font-size: clamp(2.3rem, 11vw, 3rem); }
    .search-bar { flex-wrap: wrap; padding: 8px; }
    .search-bar > .icon { display: none; }
    .search-bar input { flex-basis: 100%; padding: 0 8px; }
    .search-bar select { flex: 1; border-left: 0; background: var(--ground); border-radius: var(--r); }
    .search-bar.compact { flex-wrap: nowrap; }
    .search-bar.compact input { flex-basis: auto; }
    .spectrum-band { gap: 2px; }
    .spectrum-seg { min-width: 22px; }
    .spectrum-name { display: none; }
    .masonry { columns: 2 150px; column-gap: 10px; }
    .masonry > .swatch { margin-bottom: 10px; }
    .swatch { padding: 5px 5px 0; }
    .swatch-label { gap: 8px; padding: 9px 2px 10px; }
    .swatch-chip { width: 16px; height: 16px; }
    .swatch-text h3 { font-size: .85rem; }
    .swatch-text p { font-size: .72rem; }
    .swatch-fav { width: 30px; height: 30px; right: 10px; top: 10px; }
    .swatch-free { left: 10px; top: 10px; }
    .index-thumbs span:nth-child(n + 3) { display: none; }
    .index-thumbs span { width: 44px; height: 44px; }
    .field-row { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .plan { padding: 22px; }
    .plan-popular { padding: 21px; }
    .cert-body dl div { grid-template-columns: 1fr; gap: 2px; }
}
