/* FreePhotoBoothTemplates.com — site.css (v2 marketplace brand, 2026-09-27)
   Tokens mirror brand/BRAND.md. No frameworks. Mobile-first-ish: base styles, then breakpoints at the end
   of each block (560 / 880 / 1024 / 1200 / 1380). */

/* ============================================================== tokens */
:root {
  --accent: #5B3DF5;
  --accent-hover: #4A2DDB;
  --accent-press: #3D22BF;
  --accent-tint: #EFECFE;
  --accent-tint-2: #DDD6FE;

  --ink: #0F1222;
  --ink-2: #2E3345;
  --text: #474D62;
  --muted: #6B7185;
  --subtle: #9398AA;
  --line: #E6E8EF;
  --line-2: #D5D8E2;

  --surface: #FFFFFF;
  --surface-2: #F6F7FA;
  --surface-3: #EEF0F4;
  --plate: #EEF0F4;

  --free: #0A7D3E;
  --free-bg: #E7F8EE;
  --premium-bg: #14122B;
  --premium-2: #221D52;
  --danger: #C4320A;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-display: clamp(34px, 4.4vw, 58px);
  --fs-h1: clamp(26px, 2.6vw, 36px);
  --fs-h2: clamp(21px, 1.9vw, 26px);
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15, 18, 34, .06);
  --sh-2: 0 1px 3px rgba(15, 18, 34, .06), 0 6px 16px -6px rgba(15, 18, 34, .10);
  --sh-3: 0 18px 40px -12px rgba(15, 18, 34, .28);
  --sh-pop: 0 2px 6px rgba(15, 18, 34, .06), 0 24px 56px -12px rgba(15, 18, 34, .28);
  --ring: 0 0 0 3px rgba(91, 61, 245, .28);

  --gutter: 32px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
kbd { font-family: var(--font); }
[hidden] { display: none !important; }
::selection { background: var(--accent-tint-2); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.i { flex: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1440px; }
.wrap--read { max-width: 820px; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--grid { padding: 36px 0 56px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--subtle)); flex: none; }

/* ============================================================== buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 15px; font-weight: 650; line-height: 1.1; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
  text-decoration: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 52px; padding: 0 24px; font-size: 16px; }
.btn--xl { --h: 60px; padding: 0 22px; font-size: 17px; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(45, 25, 160, .25), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:active { background: var(--accent-press); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--light { background: var(--surface-3); color: var(--ink); }
.btn--light:hover { background: #E3E6EE; color: var(--ink); }
.btn--outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--accent-tint); color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 650; font-size: 15px; }
.btn-link:hover { color: var(--accent-hover); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--surface-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; color: var(--ink); white-space: nowrap; }
.link-arrow .i { transition: transform .15s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ============================================================== badges & pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.badge--free { background: rgba(255, 255, 255, .96); color: var(--free); box-shadow: 0 1px 2px rgba(15, 18, 34, .12); }
.badge--flat { background: var(--free-bg); box-shadow: none; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px rgba(18, 183, 106, .18); }
.badge--premium { background: rgba(255, 255, 255, .10); color: #D9D2FF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pill:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.is-active .pill__count { color: rgba(255, 255, 255, .6); }
.pill .i { color: var(--muted); }
.pill.is-active .i { color: #fff; }
.pill__count { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.catpill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 650; }
.catpill:hover { background: #E3E6EE; color: var(--ink); }

/* ============================================================== header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(15, 18, 34, .22); }
.bar { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto auto; align-items: center; gap: 24px; height: var(--header-h); }
.bar__search-toggle, .bar__menu-toggle { display: none; }
.bar__menu-toggle .i-close { display: none; }
.bar__menu-toggle[aria-expanded="true"] .i-open { display: none; }
.bar__menu-toggle[aria-expanded="true"] .i-close { display: block; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 38px; height: 38px; }
.logo__word { display: flex; flex-direction: column; line-height: 1.02; letter-spacing: -.025em; font-size: 16.5px; }
.logo__word b { font-weight: 800; color: var(--ink); }
.logo__word span { font-weight: 600; color: var(--muted); }

.search { position: relative; justify-self: center; width: 100%; max-width: 580px; display: flex; align-items: center; }
.search__icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; height: 44px; padding: 0 44px 0 42px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--surface-3); color: var(--ink); font-size: 15px; font-weight: 500;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: var(--muted); }
.search__input:hover { background: #E8EAF0; }
.search__input:focus { background: #fff; border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__kbd { position: absolute; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; pointer-events: none; }
.search__input:focus ~ .search__kbd, .search__input:not(:placeholder-shown) ~ .search__kbd { display: none; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-pop); padding: 8px; }
.suggest__h { padding: 6px 10px 4px; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.suggest img { width: 36px; height: 45px; border-radius: 6px; object-fit: cover; background: var(--plate); }
.suggest b { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.suggest small { display: block; color: var(--muted); font-size: 12.5px; }
.suggest__all { justify-content: space-between; font-weight: 650; font-size: 14px; color: var(--accent) !important; }
.suggest__none { padding: 10px; color: var(--muted); font-size: 14px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 11px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.nav__link:hover { background: var(--surface-3); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--accent); }
.menu { position: relative; }
.menu__btn .i { color: var(--muted); transition: transform .2s var(--ease); }
.menu__btn[aria-expanded="true"] { background: var(--surface-3); color: var(--ink); }
.menu__btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.menu__panel {
  position: absolute; right: -8px; top: calc(100% + 12px); z-index: 60; width: 540px; display: grid; grid-template-columns: 1.25fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-pop); overflow: hidden;
}
.menu__col { padding: 14px; }
.menu__col--alt { background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.menu__h { padding: 4px 10px 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu__list a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; color: var(--ink); }
.menu__list a:hover { background: var(--surface-2); color: var(--ink); }
.menu__col--alt .menu__list a:hover { background: #fff; }
.menu__list b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.menu__list small { display: block; font-size: 12.5px; color: var(--muted); }
.menu__thumb { width: 32px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--plate); flex: none; display: grid; place-items: center; }
.menu__thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu__icon { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex: none; }
.menu__all { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px; border-radius: 10px; font-weight: 650; font-size: 14px; }
.menu__all:hover { background: #fff; }

.bar__cta .i { margin-left: -2px; }
@media (min-width: 880px) {
  .search { transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .page-home .site-header.hero-search-visible .search { opacity: 0; transform: translateY(-4px); pointer-events: none; }
}

/* category strip */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar__list { display: flex; align-items: center; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catbar__list::-webkit-scrollbar { display: none; }
.catbar__list li { flex: none; }
.catbar__sep { width: 1px; height: 24px; background: var(--line-2); margin: 0 6px; }

/* ============================================================== hero (home) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 76px 0 68px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(91, 61, 245, .10), transparent 70%),
    linear-gradient(180deg, #FBFAFF 0%, #fff 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 16px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink-2); font-size: 13px; font-weight: 650; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 4px rgba(18, 183, 106, .16); }
.hero h1 { margin: 20px 0 14px; font-size: var(--fs-display); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; }
.hero__sub { max-width: 560px; margin: 0 auto; color: var(--text); font-size: 18px; line-height: 1.55; }

.hero-search { position: relative; display: flex; align-items: center; margin: 30px auto 0; max-width: 640px; height: 62px; padding: 6px 6px 6px 0; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 2px 4px rgba(15, 18, 34, .04), 0 18px 40px -16px rgba(15, 18, 34, .22); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: var(--ring), 0 18px 40px -16px rgba(15, 18, 34, .22); }
.hero-search__icon { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.hero-search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 54px; border: 0; background: transparent; color: var(--ink); font-size: 17px; font-weight: 500; -webkit-appearance: none; appearance: none; }
.hero-search__input::placeholder { color: var(--muted); }
.hero-search__input:focus { outline: none; }
.hero-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search__btn { height: 50px; min-height: 50px; padding: 0 24px; border-radius: 13px; font-size: 16px; }
.hero-search__btn-icon { display: none; }

.popular { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.popular__label { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.popular ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pop { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-transform: lowercase; transition: border-color .15s, color .15s, background-color .15s; }
.pop:hover { border-color: var(--accent); color: var(--accent); background: #fff; }

.hero__mosaic { position: absolute; top: -36px; bottom: -36px; z-index: 1; display: none; gap: 16px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.hero__mosaic--l { right: calc(50% + 392px); }
.hero__mosaic--r { left: calc(50% + 392px); }
.mosaic__col { display: flex; flex-direction: column; gap: 16px; width: 168px; }
.hero__mosaic--l .mosaic__col:first-child, .hero__mosaic--r .mosaic__col:last-child { margin-top: 58px; }
.hero__mosaic--l .mosaic__col:last-child, .hero__mosaic--r .mosaic__col:first-child { margin-top: -26px; }
.mosaic__tile { display: block; overflow: hidden; border-radius: 4px; background: var(--plate); box-shadow: 0 1px 2px rgba(15, 18, 34, .08), 0 16px 32px -14px rgba(15, 18, 34, .35); flex: none; }
.mosaic__tile picture, .mosaic__tile img { width: 100%; height: 100%; }
.mosaic__tile img { object-fit: cover; }
.mosaic__tile--strip { aspect-ratio: 1 / 3; width: 76%; align-self: center; }
.mosaic__tile--print { aspect-ratio: 3 / 2; }
.mosaic__tile--overlay { aspect-ratio: 9 / 16; border-radius: 8.4% / 4.7%; }
.mosaic__col:nth-child(odd) .mosaic__tile { transform: rotate(-2deg); }
.mosaic__col:nth-child(even) .mosaic__tile { transform: rotate(1.5deg); }

/* ============================================================== grid */
.grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.grid-head h2, .grid-head h1 { font-size: 22px; letter-spacing: -.02em; }
.grid-head__count { margin-top: 2px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid-head__active { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 14px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-press); font-size: 14px; font-weight: 650; }
.chip-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--accent-press); }
.chip-x:hover { background: rgba(91, 61, 245, .14); }

.grid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 30px 20px; }
.grid__item { min-width: 0; }

.card { position: relative; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--plate); aspect-ratio: 4 / 5;
  box-shadow: inset 0 0 0 1px rgba(15, 18, 34, .05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card__media picture, .card__media img { width: 100%; height: 100%; }
.card__media img { object-fit: cover; transition: transform .4s var(--ease); }
.grid--strip .card__media { aspect-ratio: 1 / 2; }
.grid--print .card__media { aspect-ratio: 7 / 5; }
.grid--overlay .card__media { aspect-ratio: 7 / 11; }
.card .badge--free { position: absolute; top: 10px; left: 10px; z-index: 2; }
.card__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; overflow: hidden; align-items: flex-end; min-height: 76px; padding: 12px 58px 12px 12px;
  background: linear-gradient(180deg, rgba(15, 18, 34, 0) 0%, rgba(15, 18, 34, .72) 100%); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.card__formats { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 650; }
.card__formats span { margin-left: 4px; white-space: nowrap; }
.card__dl {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 18, 34, .2);
  opacity: 0; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .15s, color .15s;
}
.card__dl:hover { background: var(--accent); color: #fff; }
.card__body { padding: 12px 2px 0; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__link { color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-md); }
.card:hover .card__link { color: var(--accent); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.card__meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.card__sep { color: var(--line-2); }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media { transform: translateY(-4px); box-shadow: var(--sh-3); }
  .card:hover .card__media img { transform: scale(1.03); }
  .card:hover .card__bar, .card:hover .card__dl { opacity: 1; transform: none; }
}

/* premium (TemplatesBooth native) card */
.premium {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; box-shadow: none;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(124, 92, 255, .55) 0%, rgba(124, 92, 255, 0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(236, 72, 153, .22) 0%, rgba(236, 72, 153, 0) 60%),
    var(--premium-bg);
}
.premium .badge--premium { position: absolute; top: 12px; left: 12px; }
.premium__art { position: absolute; top: 12%; right: -6%; width: 58%; height: 46%; }
.premium__art i { position: absolute; top: 0; width: 34%; height: 100%; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)); }
.premium__art i::before { content: ""; position: absolute; inset: 9% 12% 34%; border-radius: 4px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .20) 0 28%, transparent 28% 36%); }
.premium__art i:nth-child(1) { left: 4%; transform: rotate(-10deg); }
.premium__art i:nth-child(2) { left: 32%; transform: rotate(2deg); border-color: rgba(255, 255, 255, .34); }
.premium__art i:nth-child(3) { left: 60%; transform: rotate(12deg); }
.premium__body { position: relative; }
.premium__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #B9AEFF; }
.premium__title { margin: 6px 0 6px; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.premium__text { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.5; }
.premium__btn { margin-top: 14px; pointer-events: none; }
.card--premium:hover .premium__btn { background: var(--accent-tint); }
.card--premium:hover .card__title { color: var(--accent); }
.grid--print .premium__art, .grid--card .premium__art { display: none; }
.grid--strip .premium { padding: 14px; }
.grid--strip .premium__kicker { font-size: 10.5px; }
.grid--strip .premium__title { font-size: 18px; }
.grid--strip .premium__text { font-size: 13px; }
.grid--strip .premium__btn { white-space: normal; text-align: left; line-height: 1.25; padding: 8px 12px; height: auto; }
.grid--card .premium__art { display: block; height: 38%; }

.grid-empty { max-width: 560px; margin: 8px auto 0; padding: 40px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.grid-empty__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.grid-empty h3 { font-size: 19px; margin-bottom: 8px; }
.grid-empty p { color: var(--text); font-size: 15px; }
.grid-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.grid-more__text { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.grid-more__text::before, .grid-more__text::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }

/* ============================================================== section blocks */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 15.5px; max-width: 640px; }

/* occasion tiles */
.otiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.otile { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--plate); aspect-ratio: 4 / 4.2; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15, 18, 34, .05); }
.otile__media, .otile__media picture, .otile__media img { width: 100%; height: 100%; }
.otile__media img { object-fit: cover; object-position: 50% 22%; transition: transform .4s var(--ease); }
.otile__media > .mark { width: 48px; height: 48px; margin: 40% auto 0; }
.otile__label { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.otile__label b { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otile__label small { width: 100%; padding-left: 16px; font-size: 12.5px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.otile:hover { color: var(--ink); }
.otile:hover .otile__media img { transform: scale(1.04); }
.otile:hover .otile__label b { color: var(--accent); }

/* layout tiles */
.ltiles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ltile { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.ltile:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-3); transform: translateY(-2px); }
.ltile__media { position: relative; display: block; height: 236px; background: var(--plate); overflow: hidden; }
.fan__item { position: absolute; left: 50%; bottom: -18%; display: block; box-shadow: 0 1px 2px rgba(15, 18, 34, .1), 0 18px 30px -12px rgba(15, 18, 34, .4); transition: transform .35s var(--ease); }
.fan__item img { width: 100%; height: auto; display: block; border-radius: inherit; }
.fan--strip .fan__item { width: 21%; border-radius: 3px; }
.fan--strip .fan__item--1 { transform: translateX(-150%) rotate(-9deg); bottom: -30%; }
.fan--strip .fan__item--2 { transform: translateX(-50%) rotate(0deg); z-index: 2; bottom: -22%; }
.fan--strip .fan__item--3 { transform: translateX(50%) rotate(9deg); bottom: -30%; }
.fan--print .fan__item { width: 58%; border-radius: 3px; }
.fan--print .fan__item--1 { transform: translate(-78%, -46%) rotate(-6deg); bottom: auto; top: 50%; }
.fan--print .fan__item--2 { transform: translate(-22%, -38%) rotate(4deg); bottom: auto; top: 50%; z-index: 2; }
.fan--overlay .fan__item { width: 27%; border-radius: 8.4% / 4.7%; overflow: hidden; }
.fan--overlay .fan__item--1 { transform: translateX(-146%) rotate(-8deg); bottom: -34%; }
.fan--overlay .fan__item--2 { transform: translateX(-50%); z-index: 2; bottom: -22%; }
.fan--overlay .fan__item--3 { transform: translateX(46%) rotate(8deg); bottom: -34%; }
.ltile:hover .fan--strip .fan__item--1, .ltile:hover .fan--overlay .fan__item--1 { transform: translateX(-160%) rotate(-12deg); }
.ltile:hover .fan--strip .fan__item--3 { transform: translateX(60%) rotate(12deg); }
.ltile:hover .fan--overlay .fan__item--3 { transform: translateX(56%) rotate(12deg); }
.ltile:hover .fan--strip .fan__item--2, .ltile:hover .fan--overlay .fan__item--2 { transform: translateX(-50%) translateY(-6px); }
.ltile:hover .fan--print .fan__item--1 { transform: translate(-82%, -50%) rotate(-8deg); }
.ltile:hover .fan--print .fan__item--2 { transform: translate(-18%, -36%) rotate(6deg); }
.ltile__text { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ltile__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.ltile__text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ltile__text small { display: block; font-size: 13.5px; color: var(--muted); }
.ltile__arrow { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.ltile:hover .ltile__arrow { color: var(--accent); transform: translateX(3px); }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.step__n { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: #E3E5EC; }
.step__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--sh-1); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--text); }

/* premium band */
.band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(124, 92, 255, .55), rgba(124, 92, 255, 0) 60%),
    radial-gradient(50% 80% at 0% 110%, rgba(236, 72, 153, .20), rgba(236, 72, 153, 0) 60%),
    var(--premium-bg);
}
.band h2 { margin: 14px 0 10px; color: #fff; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.12; }
.band p { color: rgba(255, 255, 255, .78); font-size: 15.5px; max-width: 640px; }
.band__facts { display: grid; grid-template-columns: 1fr; gap: 8px 22px; margin-top: 18px; }
.band__facts li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: #fff; }
.band__facts .i { color: #B9AEFF; }
.band__cta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.band__price { display: flex; align-items: baseline; gap: 4px; color: #fff; }
.band__price b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.band__price span { font-size: 15px; color: rgba(255, 255, 255, .7); }
.band__note { font-size: 13.5px !important; margin-bottom: 12px; }
.band__by { font-size: 12.5px !important; color: rgba(255, 255, 255, .55) !important; margin-top: 4px; }
.band__art { position: absolute; right: 26%; top: -30px; bottom: -30px; width: 280px; z-index: -1; opacity: .5; display: none; }
.band__art i { position: absolute; width: 76px; height: 220px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .18); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)); }
.band__art i::before { content: ""; position: absolute; inset: 10px 10px 60px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .14) 0 30%, transparent 30% 36%); border-radius: 6px; }
.band__art i:nth-child(1) { left: 0; top: 40px; transform: rotate(-12deg); }
.band__art i:nth-child(2) { left: 70px; top: 10px; transform: rotate(-3deg); }
.band__art i:nth-child(3) { left: 140px; top: 50px; transform: rotate(7deg); }
.band__art i:nth-child(4) { left: 210px; top: 20px; transform: rotate(15deg); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr; gap: 24px; }
.faq__head p { margin-top: 8px; color: var(--muted); }
.faq__head .faq__contact { font-size: 14.5px; margin-top: 16px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 4px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 650; font-size: 16px; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { color: var(--muted); transition: transform .2s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--accent); }
.faq__a { padding: 0 44px 18px 4px; color: var(--text); font-size: 15.5px; }

/* callout */
.callout { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.callout__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.callout h2 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.015em; }
.callout p { font-size: 15px; color: var(--text); }

/* ============================================================== listing header (category + hubs) */
.listing-head { padding: 22px 0 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 6px 0 2px; border-right: 1.5px solid var(--subtle); border-top: 1.5px solid var(--subtle); transform: rotate(45deg); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }
.listing-head__row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }
.listing-head h1 { font-size: var(--fs-h1); letter-spacing: -.03em; line-height: 1.12; }
.intro { margin-top: 12px; color: var(--text); font-size: 16px; max-width: 760px; }
.intro p + p { margin-top: 10px; }
.js .intro.is-collapsed { max-height: calc(1.6em * 3); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.intro__toggle { margin-top: 4px; }
.intro__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.listing-head__stats { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); align-self: start; }
.listing-head__stats li { display: flex; align-items: center; gap: 12px; padding: 6px; }
.listing-head__stats .i { color: var(--accent); }
.listing-head__stats b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.listing-head__stats small { display: block; font-size: 13px; color: var(--muted); }
.kw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kw { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.kw .i { color: var(--muted); }
.kw__arrow { margin-left: -2px; }
.kw:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================== template (asset) page */
.wrap--asset .crumbs { padding: 18px 0 14px; }
.asset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.asset__gallery, .asset__details { min-width: 0; }

.gallery { min-width: 0; }
.stage { position: relative; display: block; aspect-ratio: 4 / 3.3; max-height: 660px; width: 100%; border-radius: var(--r-lg); background: var(--plate); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 18, 34, .05); }
.stage picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s var(--ease); }
.stage.is-loading img { opacity: .35; }
.stage__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--sh-2); opacity: 0; transition: opacity .2s, background-color .15s; }
.stage__nav--prev { left: 14px; }
.stage__nav--next { right: 14px; }
.stage:hover .stage__nav, .stage__nav:focus-visible { opacity: 1; }
.stage__nav:hover { background: #fff; color: var(--accent); }
.stage__caption { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(15, 18, 34, .78); color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin-left: -3px; margin-right: -3px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--muted); }
.thumb__img { display: block; aspect-ratio: 1; border-radius: var(--r-md); background: var(--plate); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(15, 18, 34, .06); transition: box-shadow .15s var(--ease); }
.thumb__img img { width: 100%; height: 100%; object-fit: contain; }
.thumb__img--card img { object-fit: cover; }
.thumb__label { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb:hover .thumb__img { box-shadow: inset 0 0 0 2px var(--line-2); }
.thumb.is-active .thumb__img { box-shadow: 0 0 0 2px var(--accent); }
.thumb.is-active .thumb__label { color: var(--ink); }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible .thumb__img { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent); }

.asset__section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); }
.asset__section:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
@media (min-width: 1024px) { .asset__section:first-of-type { margin-top: 40px; } }
.asset__section h2 { font-size: 21px; margin-bottom: 14px; }
.asset__lede { font-size: 18px; font-weight: 600; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.prose { color: var(--text); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink-2); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-tint-2); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--accent); }
.incs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.inc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.inc__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.inc b { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.inc span:not(.inc__icon) { font-size: 13px; color: var(--muted); }
.works { margin-top: 20px; }
.works h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.howto { display: grid; grid-template-columns: 1fr; gap: 12px; }
.howto__step { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); }
.howto__n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
.howto__step h3 { font-size: 15.5px; margin-bottom: 4px; }
.howto__step p { font-size: 14.5px; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; font-weight: 550; }
.tag:hover { border-color: var(--ink); color: var(--ink); }

/* download panel */
.panel { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh-2); }
.panel__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.panel__lic { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.panel__title { font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }
.panel__title small { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--muted); line-height: 1.35; }
.panel__dl { justify-content: flex-start; gap: 14px; padding: 0 20px; }
.panel__dl span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.panel__dl b { font-size: 17px; font-weight: 750; }
.panel__dl small { font-size: 12.5px; font-weight: 550; opacity: .82; letter-spacing: 0; }
.panel__fine { margin-top: -4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.panel__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 8px 4px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 650; }
.act:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.act .i { color: var(--ink); }
.act.is-done { color: var(--free); border-color: #B7E8CB; background: var(--free-bg); }
.act.is-done .i { color: var(--free); }
.licence-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.licence-line .i { color: var(--free); margin-top: 1px; }
.licence-line b { color: var(--ink); font-weight: 700; }
.panel__block { border-top: 1px solid var(--line); padding-top: 12px; }
.panel__h { margin-bottom: 6px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.files li { display: flex; align-items: center; gap: 10px; min-height: 31px; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.files li:last-child { border-bottom: 0; }
.files__icon { color: var(--muted); display: grid; }
.files__name { color: var(--ink); font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files__meta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel__fonts { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.panel__fonts .i { color: var(--muted); margin-top: 1px; }
.panel__fonts b { color: var(--ink); }
.panel__fonts small { color: var(--muted); font-size: 12.5px; }

.side-premium { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: var(--r-md); color: #fff; overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(124, 92, 255, .55), rgba(124, 92, 255, 0) 60%), var(--premium-bg); }
.side-premium .badge { align-self: flex-start; margin-bottom: 2px; }
.panel .side-premium .badge { position: absolute; top: 12px; right: 12px; height: 22px; font-size: 10px; }
.panel .side-premium b { padding-right: 96px; }
.side-premium b { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.side-premium > span:not(.badge):not(.side-premium__cta) { font-size: 13px; color: rgba(255, 255, 255, .74); line-height: 1.45; }
.side-premium__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: #C9BEFF; }
.side-premium:hover { color: #fff; }
.side-premium:hover .side-premium__cta { color: #fff; }
.side-premium--wide { margin-top: 24px; padding: 24px; }
.side-premium--wide b { font-size: 19px; }

.mobile-dl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15, 18, 34, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mobile-dl__info { min-width: 0; flex: 1; }
.mobile-dl__info b { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.mobile-dl__info span { display: block; font-size: 12.5px; color: var(--muted); }

/* ============================================================== modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 34, .56); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.modal__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--sh-pop); animation: pop .24s var(--ease); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--ink); }
.modal__close:hover { background: #E3E6EE; }
.modal__item { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 48px 20px 0; border-radius: var(--r-md); background: var(--surface-2); }
.modal__item img { width: 44px; height: 55px; border-radius: 8px; object-fit: cover; background: var(--plate); flex: none; }
.modal__item b { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.modal__item > div > span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.modal__item .badge { height: 20px; padding: 0 7px; font-size: 10px; }
.modal h2 { font-size: 24px; letter-spacing: -.03em; }
.modal__sub { margin-top: 8px; color: var(--text); font-size: 15px; line-height: 1.55; }
.modal form { margin-top: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 650; color: var(--ink); }
.field__control { position: relative; }
.field__icon { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--muted); pointer-events: none; }
.field input { width: 100%; height: 52px; padding: 0 14px 0 42px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.field .error { display: none; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--danger); }
.field.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(196, 50, 10, .14); }
.field.has-error .error { display: block; }
.form-error { display: none; margin-top: 16px; padding: 10px 12px; border-radius: var(--r-sm); background: #FEF3F2; color: var(--danger); font-size: 14px; font-weight: 600; }
.form-error.is-visible { display: block; }
.consent { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.modal__success { display: none; text-align: center; padding-top: 8px; }
.modal.is-done .modal__form { display: none; }
.modal.is-done .modal__success { display: block; }
.tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--free-bg); color: var(--free); box-shadow: 0 0 0 8px rgba(18, 183, 106, .08); }
.dl-link { font-weight: 700; }
.modal__promo { margin-top: 22px; padding: 20px; border-radius: var(--r-lg); text-align: left; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(124, 92, 255, .55), rgba(124, 92, 255, 0) 60%), var(--premium-bg); }
.modal__promo h3 { margin: 10px 0 6px; color: #fff; font-size: 17px; }
.modal__promo p { font-size: 13.5px; color: rgba(255, 255, 255, .76); margin-bottom: 14px; }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ============================================================== static pages */
.doc-head { padding: 28px 0 8px; }
.doc-head h1 { margin-top: 18px; font-size: var(--fs-h1); letter-spacing: -.03em; }
.section--doc { padding: 24px 0 72px; }
.prose--doc { font-size: 16.5px; }
.prose--doc h2 { margin: 36px 0 12px; font-size: 21px; }
.prose--doc h3 { margin: 24px 0 8px; }
.prose--doc ul, .prose--doc ol { margin: 12px 0; padding-left: 22px; list-style: disc; }
.prose--doc ol { list-style: decimal; }
.prose--doc li + li { margin-top: 6px; }
.prose .lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.done { text-align: center; padding: 40px 24px; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--line); }
.done h1 { font-size: var(--fs-h1); margin-bottom: 12px; letter-spacing: -.03em; }
.done .prose { max-width: 560px; margin: 0 auto 24px; }
.nf { padding: 64px 0 24px; text-align: center; }
.nf__code { font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.nf h1 { margin: 10px 0 12px; font-size: var(--fs-h1); letter-spacing: -.03em; }
.nf__body { color: var(--text); max-width: 540px; margin: 0 auto; }

/* ============================================================== footer */
.site-footer { margin-top: 24px; background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__brand p { margin: 16px 0; max-width: 360px; color: var(--text); font-size: 14.5px; }
.footer__madeby { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: 13.5px; }
.footer__madeby:hover { border-color: var(--line-2); color: var(--accent); }
.footer__madeby .mark { width: 22px; height: 22px; }
.footer__h { font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer__col li + li { margin-top: 2px; }
.footer__col a { display: inline-block; padding: 5px 0; color: var(--text); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ============================================================== responsive */
@media (min-width: 560px) {
  .otiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .incs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__facts { grid-template-columns: repeat(2, auto); justify-content: start; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 880px) {
  .grid--card, .grid--overlay { --cols: 3; }
  .grid--strip { --cols: 4; }
  .grid--print { --cols: 3; }
  .ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .incs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-head__row { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; }
  .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px; gap: 40px; }
  .band__art { display: block; }
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 1024px) {
  .asset { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gallery side" "details side"; grid-template-rows: auto 1fr; gap: 0 40px; }
  .asset__gallery { grid-area: gallery; }
  .asset__side { grid-area: side; }
  .asset__details { grid-area: details; }
  .otiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .asset__side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}

@media (min-width: 1100px) {
  .hero__mosaic { display: flex; }
  .hero { padding: 84px 0 76px; }
}

@media (min-width: 1200px) {
  .grid--card, .grid--overlay { --cols: 4; }
  .grid--strip { --cols: 5; }
}

@media (min-width: 1380px) {
  .grid--card, .grid--overlay { --cols: 5; }
  .grid--strip { --cols: 6; }
  .grid--print { --cols: 4; }
}

/* header: medium — nav collapses into the menu toggle */
@media (max-width: 1179px) {
  .bar { grid-template-columns: auto minmax(160px, 1fr) auto auto; gap: 16px; }
  .bar__menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(15, 18, 34, .3); max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .site-header.nav-open .nav { display: flex; }
  .nav__link { height: 48px; padding: 0 8px; font-size: 16px; border-radius: 10px; justify-content: space-between; }
  .menu__btn { width: 100%; }
  .menu__panel { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border-radius: var(--r-md); margin: 4px 0 8px; }
  .menu__col--alt { border-left: 0; border-top: 1px solid var(--line); }
  .menu__list a { min-height: 48px; }
}

/* header: small — search collapses behind an icon */
@media (max-width: 879px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .bar { grid-template-columns: 1fr auto auto; gap: 4px; }
  .bar__cta { display: none; }
  .bar__search-toggle { display: inline-grid; }
  .logo .mark { width: 34px; height: 34px; }
  .logo__word { font-size: 15px; }
  .search { display: none; grid-column: 1 / -1; order: 5; max-width: none; margin: 0 0 12px; }
  .site-header.search-open .bar { height: auto; padding-top: 8px; row-gap: 8px; }
  .site-header.search-open .search { display: flex; }
  .search__input { height: 46px; font-size: 16px; }
  .search__kbd { display: none; }
  .bar > .logo, .bar > .icon-btn { height: 44px; }
  .site-header.search-open .bar > .logo, .site-header.search-open .bar > .icon-btn { margin-top: 0; }

  .catbar__list { padding: 8px 0; gap: 6px; }
  .pill { min-height: 44px; padding: 0 14px; }
  .pop { height: 40px; }

  .section { padding: 44px 0; }
  .section--tight { padding: 28px 0; }
  .section--grid { padding: 24px 0 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }

  .hero { padding: 36px 0 32px; }
  .hero h1 { margin: 16px 0 10px; }
  .hero__sub { font-size: 16px; }
  .hero-search { height: 56px; margin-top: 22px; border-radius: 16px; padding: 5px 5px 5px 0; }
  .hero-search__input { padding-left: 48px; font-size: 16px; }
  .hero-search__icon { left: 16px; }
  .hero-search__btn { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 12px; }
  .hero-search__btn span { display: none; }
  .hero-search__btn-icon { display: block; }
  .eyebrow { font-size: 12px; }
  .listing-head__row { gap: 14px; }
  .listing-head__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; background: none; border: 0; }
  .listing-head__stats li { padding: 0; gap: 6px; }
  .listing-head__stats .i { width: 16px; height: 16px; }
  .listing-head__stats b { font-size: 13px; font-weight: 650; color: var(--ink-2); }
  .listing-head__stats small { display: none; }
  .kw-pills { flex-wrap: nowrap; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .kw-pills::-webkit-scrollbar { display: none; }
  .kw-pills li { flex: none; }

  .grid { gap: 22px 12px; }
  .grid-head { flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
  .grid-head h2, .grid-head h1 { font-size: 19px; }
  .grid__item--promo { grid-column: 1 / -1; }
  .grid__item--promo .card__media { aspect-ratio: auto; min-height: 220px; }
  .grid__item--promo .premium__art { display: block; width: 44%; height: 70%; right: -4%; top: 14%; }
  .grid__item--promo .premium__body { max-width: 64%; padding-top: 34px; }
  .card__title { font-size: 14.5px; }
  .card__meta { font-size: 12.5px; }
  .card__sep, .card__n { display: none; }
  .otile__label { padding: 8px 10px; left: 8px; right: 8px; bottom: 8px; }
  .otile__label b { font-size: 14px; }
  .popular { flex-wrap: nowrap; justify-content: flex-start; margin: 16px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .popular::-webkit-scrollbar { display: none; }
  .popular ul { flex-wrap: nowrap; }
  .popular li { flex: none; }
  .popular__label { flex: none; }
  .eyebrow__long { display: none; }
  .card .badge--free { top: 8px; left: 8px; height: 22px; padding: 0 8px; font-size: 10px; }

  .stage { aspect-ratio: 1 / 1.05; border-radius: var(--r-md); }
  .stage__nav { opacity: 1; width: 40px; height: 40px; margin-top: -20px; }
  .stage__nav--prev { left: 8px; }
  .stage__nav--next { right: 8px; }
  .thumbs { grid-auto-columns: 86px; }
  .panel { padding: 18px; box-shadow: none; }
  .panel__title { font-size: 23px; }
  .band { padding: 28px 22px; border-radius: var(--r-lg); }
  .faq__a { padding-right: 8px; }
  .callout { flex-direction: column; }
  .site-footer { padding-top: 40px; }
  .footer__col a { padding: 9px 0; }
}

@media (max-width: 1023px) {
  .page-template .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .mobile-dl { display: none !important; }
}

@media (max-width: 380px) {
  .logo__word { font-size: 14px; }
}
@media (max-width: 559px) {
  .otiles { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .otiles::-webkit-scrollbar { display: none; }
  .otiles li { flex: 0 0 44%; scroll-snap-align: start; }
}
@media (pointer: coarse) {
  .pop, .tag, .kw { min-height: 44px; height: auto; }
  .footer__col a { padding: 11px 0; }
  .stage__nav { width: 44px; height: 44px; margin-top: -22px; }
  .intro__toggle { min-height: 44px; }
  /* invisible 44px hit areas for small inline controls */
  .catpill, .link-arrow, .crumbs a, .logo, .footer__madeby { position: relative; }
  .catpill::after, .link-arrow::after, .crumbs a::after, .logo::after, .footer__madeby::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%); }
}
@media not all and (hover: hover) { .card__dl { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* success-card CTA: never overflow the card on narrow screens */
.modal__promo .side-premium__cta,
.side-premium--wide .side-premium__cta { display: inline-flex; max-width: 100%; box-sizing: border-box; white-space: normal; text-align: left; }
@media (max-width: 480px) {
  .modal__promo .side-premium__cta,
  .side-premium--wide .side-premium__cta { width: 100%; justify-content: space-between; }
}
