/* Drone Shop Lab — shared styles. Tokens live in tokens.css. RTL-first: logical properties only. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--s-16)); }
body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-15);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); }

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: var(--r-6);
}

.skip-link {
  position: absolute; inset-inline-start: var(--s-16); top: -100px; z-index: 100;
  padding: var(--s-10) var(--s-16); border-radius: var(--r-10);
  background: var(--c-ink); color: var(--c-surface); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-12); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding: var(--sec-pad) var(--pad); }
.container--1120 { max-width: 1120px; }
.container--1050 { max-width: 1050px; }
.container--960 { max-width: 960px; }
.container--flush-top { padding-block-start: 0; }

.grid { display: grid; gap: var(--s-16); }
ul.grid, ol.grid { list-style: none; margin: 0; padding: 0; }
.grid--gap-12 { gap: var(--s-12); }
.grid--gap-14 { gap: var(--s-14); }
.grid--gap-18 { gap: var(--s-18); }
.cols-drones { grid-template-columns: repeat(2, 1fr); }
.cols-gear { grid-template-columns: repeat(2, 1fr); }
.cols-cats { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .cols-gear { grid-template-columns: repeat(3, 1fr); }
  .cols-cats { grid-template-columns: repeat(3, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cols-drones { grid-template-columns: repeat(3, 1fr); }
  .cols-gear { grid-template-columns: repeat(4, 1fr); }
  .cols-cats { grid-template-columns: repeat(6, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Two-column page shells: content + sticky side panel */
.split { display: block; }
.split > * + * { margin-block-start: var(--s-22); }
@media (min-width: 560px) {
  .split { display: grid; gap: var(--s-22); align-items: start; }
  .split > * + * { margin-block-start: 0; }
  .split--filters { grid-template-columns: 220px 1fr; }
  .split--cart { grid-template-columns: 1fr 300px; }
  .split--form { grid-template-columns: 1fr 280px; }
  .split--track { grid-template-columns: 1fr 280px; }
  .split--account { grid-template-columns: 200px 1fr; }
}
@media (min-width: 1000px) {
  .split--filters { grid-template-columns: 260px 1fr; }
  .split--cart { grid-template-columns: 1fr 340px; }
  .split--form { grid-template-columns: 1fr 320px; }
}
/* Product and article only split on desktop */
.split--product, .split--post { display: block; }
@media (min-width: 560px) {
  .split--product > * + *, .split--post > * + * { margin-block-start: var(--s-28); }
}
@media (min-width: 1000px) {
  .split--product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-36); align-items: start; }
  .split--post { display: grid; grid-template-columns: 1fr 260px; gap: var(--s-40); align-items: start; }
  .split--product > * + *, .split--post > * + * { margin-block-start: 0; }
}

.stack { display: flex; flex-direction: column; gap: var(--s-20); }
ul.stack, ol.stack { list-style: none; margin: 0; padding: 0; }
.stack--12 { gap: var(--s-12); }
.stack--16 { gap: var(--s-16); }
.sticky { position: sticky; top: calc(var(--nav-h) + var(--s-16)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--c-border);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-14);
  height: var(--nav-h); padding-inline: var(--pad);
}
.brand { display: flex; align-items: center; gap: var(--s-10); text-decoration: none; color: var(--c-text); }
.brand__logo { width: 40px; height: 40px; flex-shrink: 0; }
/* Wordmark echoes the logo lettering: uppercase, heavy "DRONE SHOP", lighter blue "LAB" */
.brand__name { font-weight: 800; font-size: var(--fs-19); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; direction: ltr; color: var(--c-ink); }
.brand__accent { font-weight: 500; color: var(--c-blue-deep); }
@media (min-width: 560px) and (max-width: 1059px) {
  .brand__name { font-size: var(--fs-17); }
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: var(--s-8) var(--s-10); border-radius: var(--r-10);
  font-size: var(--fs-14); font-weight: 600; color: var(--c-muted); text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--c-blue-deep); background: var(--c-blue-tint); }
.main-nav a[aria-current="page"] { background: var(--c-blue-tint); color: var(--c-blue-deep); }
/* Logo + six links need ~880px ("DRONE SHOP LAB" is wider than the old wordmark). Below that the menu button takes over (no clipped, scrolling nav). */
@media (min-width: 880px) {
  .main-nav { display: block; min-width: 0; }
}
@media (min-width: 880px) and (max-width: 1059px) {
  .main-nav a { padding: var(--s-8); font-size: var(--fs-13); }
  .site-header__bar { gap: var(--s-8); }
}
@media (min-width: 1060px) {
  .main-nav a { padding: var(--s-10) var(--s-14); }
}

.header-actions { display: flex; align-items: center; gap: var(--s-6); flex-shrink: 0; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--r-10);
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-muted);
  display: grid; place-items: center; text-decoration: none;
}
.icon-btn:hover { border-color: var(--c-blue-border); color: var(--c-blue-deep); }
.icon-btn--strong { color: var(--c-text); }
.icon-btn__count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 18px; height: 18px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  background: var(--c-blue); color: var(--c-surface);
  font-size: var(--fs-10); font-weight: 800; display: grid; place-items: center;
}
.search-btn { display: none; }
.menu-toggle { display: grid; }
@media (min-width: 560px) {
  .search-btn { display: grid; }
}
@media (min-width: 880px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  border-block-start: 1px solid var(--c-border);
  padding: var(--s-8) var(--pad) var(--s-16);
  background: var(--c-surface);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu a {
  display: block; padding: var(--s-12) var(--s-14); border-radius: var(--r-10);
  font-weight: 600; color: var(--c-text); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { background: var(--c-blue-tint); color: var(--c-blue-deep); }
@media (min-width: 880px) { .mobile-menu { display: none !important; } }

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  padding: var(--s-8) var(--s-4) calc(var(--s-8) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-start: 1px solid var(--c-border);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
  padding: var(--s-4); color: var(--c-subtle); text-decoration: none;
  font-size: var(--fs-11); font-weight: 600;
}
.tabbar a[aria-current="page"] { color: var(--c-blue); }
body { padding-block-end: var(--s-64); }
@media (min-width: 560px) {
  .tabbar { display: none; }
  body { padding-block-end: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-surface); border-block-start: 1px solid var(--c-section-rule); }
.site-footer__inner {
  max-width: 1200px; margin-inline: auto; padding: var(--s-40) var(--pad) var(--s-24);
  display: grid; gap: var(--s-28); grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .site-footer__inner { grid-template-columns: repeat(4, 1fr); }
  .site-footer__inner > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .site-footer__inner { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .site-footer__inner > :first-child { grid-column: auto; }
}
.site-footer p { font-size: var(--fs-14); color: var(--c-muted); margin-block-start: var(--s-12); max-width: 300px; }
.site-footer h2 { font-size: var(--fs-14); font-weight: 800; color: var(--c-ink); margin-block-end: var(--s-12); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-8); }
.site-footer ul a { font-size: var(--fs-14); color: var(--c-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--c-blue-deep); text-decoration: underline; }
.site-footer__legal {
  max-width: 1200px; margin-inline: auto; padding: var(--s-16) var(--pad) var(--s-24);
  border-block-start: 1px solid var(--c-sunken); font-size: var(--fs-12); color: var(--c-subtle);
}

/* ---------- Type helpers ---------- */
.breadcrumb { font-size: var(--fs-12); color: var(--c-subtle); margin-block-end: var(--s-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: var(--s-4); }
.breadcrumb a { color: var(--c-subtle); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-blue-deep); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-text-2); }
.breadcrumb--spaced { margin-block-end: var(--s-18); }

.page-title { font-size: var(--h1); font-weight: 800; line-height: 1.15; color: var(--c-ink); }
.page-lead { font-size: var(--fs-14); color: var(--c-muted); margin-block: var(--s-6) var(--s-20); }
.section-title { font-size: var(--h2); font-weight: 800; color: var(--c-ink); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-12); margin-block-end: var(--s-18); }
.card-title { font-weight: 800; color: var(--c-ink); font-size: var(--fs-15); margin-block-end: var(--s-14); }
.meta { font-size: var(--fs-12); color: var(--c-subtle); }
.price { font-weight: 800; color: var(--c-ink); }

.link-arrow {
  /* blue-deep, not blue: #1d6fe0 on the page background is 4.44:1 — under AA */
  font-size: var(--fs-14); font-weight: 700; color: var(--c-blue-deep); text-decoration: none;
  background: none; border: 0; padding: var(--s-4) 0;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: 44px; padding: var(--s-12) var(--s-24); border-radius: var(--r-12);
  border: 1px solid transparent; font-size: var(--fs-15); font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn--primary { background: var(--c-blue); color: var(--c-surface); box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--c-blue-deep); }
.btn--secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-divider); }
.btn--secondary:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn--soft { background: var(--c-blue-tint); color: var(--c-blue-deep); border-color: var(--c-blue-border); }
.btn--soft:hover { background: var(--c-blue-tint-hover); }
.btn--white { background: var(--c-surface); color: var(--c-blue-deep); }
.btn--lg { min-height: 50px; padding-block: 0; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: var(--s-8) var(--s-14); font-size: var(--fs-13); border-radius: var(--r-10); }
.btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.hero__cta { padding-block: var(--s-14); }

/* ---------- Pills, badges, status ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: var(--s-6) var(--s-14); border-radius: var(--r-pill);
  background: var(--c-blue-tint); color: var(--c-blue-deep);
  font-size: var(--fs-12); font-weight: 700; margin-block-end: var(--s-14);
}
.eyebrow--solid { background: var(--c-blue); color: var(--c-surface); }
.eyebrow--outline { background: var(--c-surface); border: 1px solid var(--c-blue-border); color: var(--c-blue); }

.tag {
  position: absolute; z-index: 2; top: var(--s-12); inset-inline-start: var(--s-12);
  padding: var(--s-4) var(--s-10); border-radius: var(--r-pill);
  background: var(--c-blue); color: var(--c-surface); font-size: var(--fs-11); font-weight: 700;
  pointer-events: none;
}
.tag--light { background: rgba(255, 255, 255, .94); color: var(--c-blue-deep); top: auto; bottom: var(--s-12); }

.status {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: var(--s-4) var(--s-12); border-radius: var(--r-pill);
  font-size: var(--fs-12); font-weight: 700; white-space: nowrap;
}
.status--warn { background: var(--c-warn-tint); color: var(--c-warn); }
.status--ok { background: var(--c-ok-tint); color: var(--c-ok); }
.status--lg { padding: var(--s-8) var(--s-16); font-size: var(--fs-13); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-warn-signal); animation: dl-pulse 1.6s infinite; }

.check-pill {
  display: inline-flex; align-items: center; gap: var(--s-6);
  padding: var(--s-6) var(--s-12); border-radius: var(--r-pill);
  border: 1px solid var(--c-blue-border); background: var(--c-surface);
  color: var(--c-blue); font-size: var(--fs-12); font-weight: 600;
}
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-8); margin: 0 0 var(--s-24); padding: 0; list-style: none; }

/* ---------- Chips (toggle buttons) ---------- */
.chips { display: flex; gap: var(--s-8); overflow-x: auto; padding-block-end: var(--s-14); margin-block-end: var(--s-18); }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; }
.chip {
  flex-shrink: 0; min-height: 36px; padding: var(--s-8) var(--s-16); border-radius: var(--r-pill);
  border: 1px solid var(--c-control); background: var(--c-surface); color: var(--c-text-2);
  font-size: var(--fs-13); font-weight: 600;
}
.chip:hover { border-color: var(--c-blue); }
.chip[aria-pressed="true"] { border-color: var(--c-blue); background: var(--c-blue-tint); color: var(--c-blue-deep); }

/* ---------- Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-16); }
.card--pad { padding: var(--s-22); }
.card--pad-18 { padding: var(--s-18); }
.card--raised { box-shadow: var(--sh-card); }
.card--tint { background: var(--c-blue-tint); border-color: var(--c-blue-border); }
.card--clip { overflow: hidden; }

.lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lift:hover, .lift:focus-within { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: var(--c-blue-border); }

/* Whole-card links: the heading link stretches over the card */
.card-link { position: relative; }
.card-link__target { text-decoration: none; color: inherit; }
.card-link__target::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link__target:focus-visible { outline: none; }
.card-link:has(.card-link__target:focus-visible) { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.card-link .above { position: relative; z-index: 2; }

/* ---------- Media + placeholder ---------- */
.media {
  display: block; position: relative; overflow: hidden;
  background: var(--c-sunken) url("../img/drone-placeholder.svg") center / auto 56% no-repeat;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media img.is-missing { visibility: hidden; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--21x9 { aspect-ratio: 21 / 9; border-radius: var(--r-18); border: 1px solid var(--c-border); }
.media--icon { background-image: none; background: linear-gradient(160deg, var(--c-surface), var(--c-sunken)); display: grid; place-items: center; }
.product-card--gear .media--icon { border-block-end: 1px solid var(--c-sunken); }
.buy-row .qty button { height: 50px; }
.chips--mobile-only { margin-block-end: var(--s-6); }
.media--icon svg { width: 40%; height: auto; color: var(--c-control); }

/* ---------- Product cards ---------- */
.product-card { border-radius: var(--r-16); overflow: hidden; }
.product-card__body { padding: var(--s-16); }
.product-card__cat { font-size: var(--fs-12); font-weight: 600; color: var(--c-blue); margin-block-end: var(--s-6); }
.product-card__name { font-size: var(--fs-15); font-weight: 700; color: var(--c-text); margin-block-end: var(--s-12); line-height: 1.35; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.product-card__price { font-size: var(--fs-19); font-weight: 800; color: var(--c-ink); }
.product-card--compact .product-card__body { padding: var(--s-14); }
.product-card--compact .product-card__cat { font-size: var(--fs-11); }
.product-card--compact .product-card__name { font-size: var(--fs-14); min-height: 2.7em; margin-block-end: var(--s-10); }
.product-card--compact .product-card__price { font-size: var(--fs-17); }
.product-card--gear .product-card__body { padding: var(--s-12) var(--s-14) var(--s-14); }
.product-card--gear .product-card__name { font-size: var(--fs-13); font-weight: 600; min-height: 2.7em; margin-block-end: var(--s-8); }
.product-card--gear .product-card__price { font-size: var(--fs-15); }
.product-card__kind {
  position: absolute; top: var(--s-10); inset-inline-start: var(--s-10);
  font-size: var(--fs-10); font-weight: 700; letter-spacing: .05em; color: var(--c-subtle);
}

.add-btn {
  min-height: 36px; padding: var(--s-8) var(--s-16); border-radius: var(--r-10);
  border: 0; background: var(--c-blue-tint); color: var(--c-blue-deep);
  font-size: var(--fs-13); font-weight: 700;
}
.add-btn:hover { background: var(--c-blue-tint-hover); }
.add-btn--icon { width: 36px; padding: 0; font-size: var(--fs-20); display: grid; place-items: center; }
.add-btn--solid { background: var(--c-blue); color: var(--c-surface); }
.add-btn--solid:hover { background: var(--c-blue-deep); }
.add-btn--sm { width: 32px; min-height: 32px; font-size: var(--fs-18); border-radius: var(--r-8); }
.add-btn.is-added { background: var(--c-ok-tint); color: var(--c-ok); }

/* ---------- Icon well ---------- */
.icon-well {
  width: 40px; height: 40px; border-radius: var(--r-10); flex-shrink: 0;
  background: var(--c-blue-tint); color: var(--c-blue);
  display: grid; place-items: center;
}
.icon-well--lg { width: 46px; height: 46px; border-radius: var(--r-12); }
.icon-well--sm { width: 36px; height: 36px; }
.icon-well--on-blue { background: rgba(255, 255, 255, .18); color: var(--c-surface); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s-40) var(--pad);
  background: linear-gradient(180deg, var(--c-hero-wash), var(--c-page));
  border-block-end: 1px solid var(--c-section-rule);
}
@media (min-width: 560px) { .hero { padding-block: var(--s-64); } }
.hero__art {
  position: absolute; z-index: 0; top: 50%; inset-inline-end: 4%;
  width: min(44vw, 520px); translate: 0 -50%; opacity: .9;
  animation: dl-float 7s ease-in-out infinite;
}
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--c-ink) center / cover no-repeat; }
.hero__pause {
  position: absolute; z-index: 3; bottom: var(--s-16); inset-inline-end: var(--s-16);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(12, 21, 36, .6); color: var(--c-surface); display: grid; place-items: center;
}
.hero__pause:hover { background: rgba(12, 21, 36, .8); }
.hero__play-icon, .hero__pause[aria-pressed="true"] .hero__pause-icon { display: none; }
.hero__pause[aria-pressed="true"] .hero__play-icon { display: block; }
.hero__video[hidden] { display: none; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  min-width: 100%; min-height: 100%; aspect-ratio: 16 / 9; border: 0; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.hero__video.is-playing iframe { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Canvas used .94 → .7 at 26% → .12 at 54%; the lead text sat over ~25% scrim (≈2.3:1 on dark frames).
     Held at ≥ .92 under the text column so body copy stays ≥ 4.5:1 on any frame. */
  background: linear-gradient(to left, rgba(245, 247, 250, .94) 0%, rgba(245, 247, 250, .92) 46%, rgba(245, 247, 250, .4) 64%, rgba(245, 247, 250, 0) 84%);
}
.hero__inner { position: relative; z-index: 2; max-width: 1200px; margin-inline: auto; }
@media (max-width: 999px) {
  .hero__art { opacity: .16; width: 70vw; }
  .hero__scrim { background: rgba(245, 247, 250, .86); }
}
.hero__copy { max-width: 560px; }
.hero h1 { font-size: var(--h1-hero); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--c-ink); margin-block-end: var(--s-18); }
.hero h1 span { color: var(--c-blue); }
.hero__lead { font-size: var(--lead); color: var(--c-muted); max-width: 470px; margin-block-end: var(--s-28); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.hero .eyebrow { margin-block-end: var(--s-22); }
.stats { display: flex; flex-wrap: wrap; gap: var(--s-36); margin: var(--s-36) 0 0; }
.stats div { margin: 0; }
.stats dt { font-size: var(--fs-12); color: var(--c-subtle); }
.stats dd { margin: 0; font-size: var(--fs-26); font-weight: 800; color: var(--c-ink); order: -1; }
.stats > div { display: flex; flex-direction: column; }
.stats small { font-size: var(--fs-16); }
.star { color: var(--c-star); }

/* ---------- Home: categories, services, trust ---------- */
.cat-card {
  display: block; padding: var(--s-18) var(--s-16); border-radius: var(--r-14);
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); text-decoration: none;
}
.cat-card .icon-well { width: 46px; height: 46px; margin-block-end: var(--s-12); }
.cat-card__name { display: block; font-weight: 700; font-size: var(--fs-14); }
.cat-card__count { display: block; font-size: var(--fs-12); color: var(--c-subtle); }
.lift-sm { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lift-sm:hover, .lift-sm:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, .08); border-color: var(--c-blue-border); }

.service-card { position: relative; padding: var(--s-32); border-radius: var(--r-18); background: var(--c-surface); border: 1px solid var(--c-border); overflow: hidden; }
.service-card h3 { font-size: var(--fs-20); font-weight: 800; color: var(--c-ink); margin-block: var(--s-16) var(--s-8); }
.service-card p { font-size: var(--fs-14); color: var(--c-muted); margin-block-end: var(--s-16); }
.service-card__more { font-size: var(--fs-14); font-weight: 700; color: var(--c-blue); }
.service-card--premium { background: linear-gradient(150deg, var(--c-blue), var(--c-blue-deep)); border-color: var(--c-blue); }
.service-card--premium h3, .service-card--premium p, .service-card--premium .service-card__more { color: var(--c-surface); }
.service-card--premium.lift:hover { box-shadow: var(--sh-premium); border-color: var(--c-blue); }

.trust { background: var(--c-surface); border-block-start: 1px solid var(--c-section-rule); padding: var(--s-28) var(--pad); }
.trust ul { max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: var(--s-18); }
@media (min-width: 560px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
.trust li { display: flex; align-items: center; gap: var(--s-12); }
.trust strong { display: block; font-size: var(--fs-14); color: var(--c-text); }
.trust span { font-size: var(--fs-12); color: var(--c-subtle); }

/* ---------- Store: toolbar + filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-10); margin-block-end: var(--s-22); }
.toolbar__side { display: flex; align-items: center; gap: var(--s-10); }
.select {
  min-height: 40px; padding: var(--s-8) var(--s-12); border-radius: var(--r-10);
  border: 1px solid var(--c-control); background: var(--c-surface); font-size: var(--fs-13);
}
.filters { padding: var(--s-20); }
.filters--desktop { display: none; }
@media (min-width: 560px) {
  .filters--desktop { display: block; }
  .chips--mobile-only { display: none; }
}
.filters__title { display: flex; align-items: center; gap: var(--s-8); font-size: var(--fs-15); font-weight: 800; color: var(--c-ink); margin-block-end: var(--s-18); }
.filters fieldset { border: 0; margin: 0 0 var(--s-22); padding: 0; min-width: 0; }
.filters fieldset:last-child { margin-block-end: 0; }
.filters legend { font-size: var(--fs-13); font-weight: 700; color: var(--c-muted); margin-block-end: var(--s-10); padding: 0; }
.check {
  display: flex; align-items: center; gap: var(--s-10); padding: var(--s-4) 0;
  font-size: var(--fs-14); color: var(--c-text-2); cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: var(--r-6);
  border: 1.5px solid var(--c-control); background: var(--c-surface); display: grid; place-items: center;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--c-blue); border-color: var(--c-blue); }
.check input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--c-surface); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -1px; }
.check input[type="radio"]:checked { background: var(--c-surface); border-color: var(--c-blue); }
.check input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue); }
.check__count { margin-inline-start: auto; font-size: var(--fs-12); color: var(--c-subtle); }
.range { position: relative; height: 4px; border-radius: 4px; background: var(--c-border); margin-block: var(--s-8); }
.range__fill { position: absolute; inset-block: 0; inset-inline-start: 10%; inset-inline-end: 35%; background: var(--c-blue); border-radius: 4px; }
.range__fill::before, .range__fill::after {
  content: ""; position: absolute; top: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-blue); border: 2px solid var(--c-surface); box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
}
.range__fill::before { inset-inline-start: -8px; }
.range__fill::after { inset-inline-end: -8px; }
.range__labels { display: flex; justify-content: space-between; margin-block-start: var(--s-10); font-size: var(--fs-12); font-weight: 600; color: var(--c-subtle); }

/* ---------- Product page ---------- */
.gallery__main { border-radius: var(--r-18); border: 1px solid var(--c-border); box-shadow: var(--sh-media); }
.gallery__main .tag { top: var(--s-16); inset-inline-start: var(--s-16); font-size: var(--fs-12); padding-inline: var(--s-12); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-10); margin: var(--s-12) 0 0; padding: 0; list-style: none; }
.thumb { width: 100%; padding: 0; border-radius: var(--r-12); border: 1.5px solid var(--c-border); background: none; overflow: hidden; }
.thumb[aria-pressed="true"] { border-color: var(--c-blue); }
.thumb .media { border-radius: 0; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-10); margin-block-end: var(--s-18); font-size: var(--fs-13); color: var(--c-subtle); }
.price-row { display: flex; align-items: baseline; gap: var(--s-12); margin-block-end: var(--s-24); }
.price-row__now { font-size: var(--fs-34); font-weight: 800; color: var(--c-ink); }
.price-row__was { font-size: var(--fs-16); color: var(--c-subtle); text-decoration: line-through; }
.option-group { border: 0; margin: 0 0 var(--s-20); padding: 0; }
.option-group legend { font-size: var(--fs-13); font-weight: 700; color: var(--c-muted); margin-block-end: var(--s-10); padding: 0; }
.variants { display: flex; flex-wrap: wrap; gap: var(--s-10); }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.variant span {
  display: block; padding: var(--s-10) var(--s-16); border-radius: var(--r-10);
  border: 1.5px solid var(--c-control); background: var(--c-surface);
  font-size: var(--fs-14); font-weight: 600; color: var(--c-muted);
}
.variant input:checked + span { border-color: var(--c-blue); background: var(--c-blue-tint); color: var(--c-blue-deep); font-weight: 700; }
.variant input:focus-visible + span { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.buy-row { display: flex; gap: var(--s-12); margin-block-end: var(--s-14); }
.buy-row .btn { flex: 1; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-control); border-radius: var(--r-12); background: var(--c-surface); overflow: hidden; }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: var(--fs-20); color: var(--c-text); }
.qty button:hover { background: var(--c-blue-tint); }
.qty output { width: 40px; text-align: center; font-weight: 700; }
.qty--sm { border-radius: var(--r-10); }
.qty--sm button { width: 32px; height: 32px; font-size: var(--fs-16); }
.qty--sm output { width: 30px; font-size: var(--fs-13); font-weight: 600; }

.spec-table { border: 1px solid var(--c-border); border-radius: var(--r-14); overflow: hidden; background: var(--c-surface); }
.spec-table__head { padding: var(--s-14) var(--s-16); font-weight: 800; font-size: var(--fs-14); color: var(--c-ink); background: var(--c-surface-alt); border-block-end: 1px solid var(--c-sunken); margin: 0; }
.spec-table dl { margin: 0; }
.spec-table dl > div { display: flex; justify-content: space-between; gap: var(--s-14); padding: var(--s-12) var(--s-16); font-size: var(--fs-13); border-block-end: 1px solid var(--c-hairline); }
.spec-table dl > div:last-child { border-block-end: 0; }
.spec-table dt { color: var(--c-subtle); }
.spec-table dd { margin: 0; font-family: var(--f-mono); font-weight: 500; color: var(--c-text); text-align: end; }
.spec-table--prose dd { font-family: var(--f-sans); font-weight: 600; }
.spec-table--prose dl > div { font-size: var(--fs-14); }

/* ---------- Cart & summaries ---------- */
.line-item { display: flex; gap: var(--s-14); padding: var(--s-14); border-radius: var(--r-14); }
.line-item__thumb { width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--r-12); border: 1px solid var(--c-sunken); }
.line-item__body { flex: 1; min-width: 0; }
.line-item__name { font-weight: 700; font-size: var(--fs-14); color: var(--c-text); margin-block-end: var(--s-2); }
.line-item__meta { font-size: var(--fs-12); color: var(--c-subtle); margin-block-end: var(--s-10); }
.line-item__controls { display: flex; align-items: center; gap: var(--s-12); }
.line-item__price { font-weight: 800; font-size: var(--fs-15); color: var(--c-ink); white-space: nowrap; }
.text-btn { background: none; border: 0; padding: var(--s-4); font-size: var(--fs-12); color: var(--c-subtle); text-decoration: underline; }
.text-btn:hover { color: var(--c-text); }

.summary { padding: var(--s-22); }
.summary__title { font-weight: 800; color: var(--c-ink); margin-block-end: var(--s-16); }
.summary dl { margin: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: var(--s-12); padding: var(--s-8) 0; font-size: var(--fs-14); color: var(--c-muted); }
.summary dd { margin: 0; color: var(--c-text); font-weight: 600; text-align: end; }
.summary dd.is-ok { color: var(--c-ok); font-weight: 700; }
.summary dd.is-accent { color: var(--c-blue); font-weight: 700; }
.summary__rule { height: 1px; background: var(--c-sunken); margin: var(--s-12) 0; border: 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-block-end: var(--s-18); }
.summary__total span:first-child { font-weight: 800; color: var(--c-ink); }
.summary__total-value { font-size: var(--fs-24); font-weight: 800; color: var(--c-ink); }
.summary__total-value--sm { font-size: var(--fs-22); }
.summary__note { font-size: var(--fs-11); color: var(--c-subtle); text-align: center; margin-block-start: var(--s-10); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: var(--s-6); margin-block-start: var(--s-12); font-size: var(--fs-12); color: var(--c-subtle); }
.inline-form { display: flex; gap: var(--s-8); margin-block-end: var(--s-14); }
.inline-form .field { flex: 1; min-width: 0; }
.form-status { font-size: var(--fs-12); color: var(--c-muted); min-height: 1.5em; margin-block-start: var(--s-4); }

/* ---------- Forms ---------- */
.field {
  width: 100%; min-height: 44px; padding: var(--s-12) var(--s-14); border-radius: var(--r-10);
  border: 1px solid var(--c-control); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-14);
}
.field::placeholder { color: var(--c-subtle); opacity: 1; }
.field:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 1px; border-color: var(--c-blue); }
textarea.field { min-height: 96px; resize: vertical; }
.form-label { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--c-text-2); margin-block-end: var(--s-6); }
.form-grid { display: grid; gap: var(--s-12); grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid + .form-row, .form-row + .form-row { margin-block-start: var(--s-12); }
.field-error { font-size: var(--fs-12); color: var(--c-warn); margin-block-start: var(--s-4); }
.field[aria-invalid="true"] { border-color: var(--c-warn); }

/* Radio option cards */
.options { display: grid; gap: var(--s-10); border: 0; margin: 0; padding: 0; min-width: 0; }
.options--2 { grid-template-columns: 1fr 1fr; }
.option {
  position: relative; display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-14); border-radius: var(--r-12);
  border: 1.5px solid var(--c-control); background: var(--c-surface); cursor: pointer;
}
.option--stack { display: block; }
.option input {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-control);
  display: grid; place-items: center; background: var(--c-surface);
}
.option--stack input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.option input:checked { border-color: var(--c-blue); }
.option input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-blue); }
.option:has(input:checked) { border-color: var(--c-blue); background: var(--c-blue-tint); }
.option:has(input:focus-visible) { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.option__text { flex: 1; }
.option__title { display: block; font-weight: 700; font-size: var(--fs-14); color: var(--c-text); }
.option__desc { display: block; font-size: var(--fs-12); color: var(--c-subtle); }
.option:has(input:checked) .option__desc { color: var(--c-muted); }
.option__price { font-weight: 800; font-size: var(--fs-14); color: var(--c-ink); white-space: nowrap; }

/* ---------- Lab: progress steps ---------- */
.steps { display: flex; margin: 0 0 var(--s-28); padding: 0; list-style: none; overflow-x: auto; }
.steps li { display: flex; align-items: flex-start; flex-shrink: 0; }
.steps__item { display: flex; flex-direction: column; align-items: center; gap: var(--s-8); }
.steps__num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: var(--fs-14);
  border: 1.5px solid var(--c-control); background: var(--c-surface); color: var(--c-subtle);
}
.steps__label { font-size: var(--fs-12); font-weight: 600; color: var(--c-subtle); white-space: nowrap; }
.steps [aria-current="step"] .steps__num { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-surface); }
.steps [aria-current="step"] .steps__label { color: var(--c-blue); }
.steps__line { width: 24px; height: 2px; background: var(--c-divider); margin: 16px var(--s-4) 0; }
@media (min-width: 560px) { .steps__line { width: 40px; } }
@media (min-width: 1000px) { .steps__line { width: 90px; } }

/* ---------- Mobile repair: map ---------- */
.map { position: relative; height: 180px; background: linear-gradient(160deg, #eaf1fb, #f5f8fc); border-block-end: 1px solid var(--c-sunken); }
.map::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 111, 224, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 111, 224, .07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map__pin {
  position: absolute; top: calc(50% - 9px); inset-inline-start: calc(40% - 9px);
  width: 18px; height: 18px; border-radius: 50%; background: var(--c-blue);
  box-shadow: 0 0 0 6px rgba(29, 111, 224, .2); animation: dl-pulse 2s infinite;
}
.map__label {
  position: absolute; bottom: var(--s-12); inset-inline-start: var(--s-12);
  padding: var(--s-6) var(--s-12); border-radius: var(--r-8); background: var(--c-surface);
  font-size: var(--fs-12); font-weight: 600; box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}

/* ---------- People ---------- */
.person { display: flex; align-items: center; gap: var(--s-12); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-deep));
  color: var(--c-surface); font-weight: 800; display: grid; place-items: center;
}
.avatar--sm { width: 34px; height: 34px; font-size: var(--fs-12); }
.avatar--md { width: 42px; height: 42px; font-size: var(--fs-13); }
.avatar--lg { width: 54px; height: 54px; font-size: var(--fs-18); }
.person__name { font-weight: 700; font-size: var(--fs-14); color: var(--c-text); }
.person__role { font-size: var(--fs-12); color: var(--c-subtle); }
.person--divided { padding-block-end: var(--s-16); margin-block-end: var(--s-16); border-block-end: 1px solid var(--c-sunken); }

/* ---------- Tracker: timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; gap: var(--s-14); }
.timeline__rail { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--c-control); background: var(--c-surface); color: var(--c-surface);
  display: grid; place-items: center;
}
.timeline__line { width: 2px; flex: 1; min-height: 22px; background: var(--c-border); }
.timeline li:last-child .timeline__line { background: transparent; }
.timeline__body { padding-block-end: var(--s-20); }
.timeline__title { font-weight: 700; font-size: var(--fs-14); color: var(--c-subtle); }
.timeline__date { font-size: var(--fs-12); color: var(--c-subtle); }
.timeline .is-done .timeline__dot { background: var(--c-blue); border-color: var(--c-blue); }
.timeline .is-done .timeline__line { background: var(--c-blue); }
.timeline .is-done .timeline__title,
.timeline .is-active .timeline__title { color: var(--c-text); }
.timeline .is-active .timeline__dot { background: var(--c-warn-tint); border-color: var(--c-warn-signal); }
.eta { padding: var(--s-18); }
.eta__label { font-size: var(--fs-12); color: var(--c-muted); margin-block-end: var(--s-4); }
.eta__value { font-size: var(--fs-22); font-weight: 800; color: var(--c-blue-deep); }
.eta__note { font-size: var(--fs-12); color: var(--c-muted); margin-block-start: var(--s-4); }
.notice { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-12) var(--s-14); border-radius: var(--r-12); font-size: var(--fs-12); color: var(--c-muted); }
.notice svg { color: var(--c-blue); flex-shrink: 0; }
.label-sm { font-size: var(--fs-12); color: var(--c-subtle); margin-block-end: var(--s-6); }

/* ---------- Account ---------- */
.account-head { display: flex; align-items: center; gap: var(--s-14); margin-block-end: var(--s-24); }
.account-head .page-title { margin: 0; }
.account-nav { padding: var(--s-10); display: flex; gap: var(--s-6); overflow-x: auto; margin-block-end: var(--s-16); scrollbar-width: none; }
.account-nav::-webkit-scrollbar, .chips::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
.chips, .steps { scrollbar-width: none; }
@media (min-width: 560px) { .account-nav { display: block; margin-block-end: 0; } }
.account-nav button {
  display: block; width: 100%; min-height: 44px; padding: var(--s-10) var(--s-14);
  border: 0; border-radius: var(--r-10); background: transparent;
  font-size: var(--fs-14); font-weight: 600; color: var(--c-muted); text-align: center; white-space: nowrap;
}
@media (max-width: 559px) { .account-nav button { flex: 1; width: auto; } }
@media (min-width: 560px) { .account-nav button { text-align: start; margin-block-end: var(--s-2); } }
.account-nav button:hover { color: var(--c-blue-deep); }
.account-nav button[aria-selected="true"] { background: var(--c-blue-tint); color: var(--c-blue-deep); }
.row-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-10);
  padding: var(--s-14); border: 1px solid var(--c-sunken); border-radius: var(--r-12);
}
.row-card__title { font-weight: 700; font-size: var(--fs-14); color: var(--c-text); }
.row-card__end { display: flex; align-items: center; gap: var(--s-14); }
.asset { display: flex; gap: var(--s-12); padding: var(--s-14); border: 1px solid var(--c-sunken); border-radius: var(--r-12); }
.asset .media { width: 52px; height: 52px; border-radius: var(--r-10); border: 1px solid var(--c-sunken); flex-shrink: 0; }
.asset .status { margin-block-start: var(--s-8); font-size: var(--fs-11); padding: var(--s-2) var(--s-10); }
.empty { text-align: center; padding: var(--s-28) var(--s-16); color: var(--c-muted); font-size: var(--fs-14); }
.empty .btn { margin-block-start: var(--s-14); }

/* ---------- Blog ---------- */
.post-feature { display: block; border-radius: var(--r-18); overflow: hidden; margin-block-end: var(--s-32); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
@media (min-width: 1000px) { .post-feature { display: grid; grid-template-columns: 1.1fr .9fr; } }
.post-feature .media { min-height: 240px; }
.post-feature .tag { top: var(--s-14); inset-inline-start: var(--s-14); padding: var(--s-6) var(--s-12); }
.post-feature__body { padding: var(--s-32); display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-size: var(--h3); font-weight: 800; line-height: 1.25; color: var(--c-ink); margin-block-end: var(--s-10); text-wrap: pretty; }
.post-feature p { font-size: var(--fs-14); color: var(--c-muted); line-height: 1.6; margin-block-end: var(--s-18); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-10); margin-block-end: var(--s-12); }
.cat-pill { padding: var(--s-4) var(--s-12); border-radius: var(--r-pill); background: var(--c-blue-tint); color: var(--c-blue-deep); font-size: var(--fs-12); font-weight: 700; }
.post-card { border-radius: var(--r-16); overflow: hidden; }
.post-card__body { padding: var(--s-18); }
.post-card__title { font-weight: 700; font-size: var(--fs-15); line-height: 1.4; color: var(--c-text); min-height: 2.8em; text-wrap: pretty; }
.post-card .meta { margin-block-end: var(--s-8); }
.newsletter {
  margin-block-start: var(--s-32); padding: var(--s-28); border-radius: var(--r-18);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16);
}
.newsletter__title { font-weight: 800; font-size: var(--fs-18); color: var(--c-ink); margin-block-end: var(--s-4); }
.newsletter__text { font-size: var(--fs-13); color: var(--c-muted); }
.newsletter > :last-child { flex: 0 1 360px; }
.newsletter .inline-form { margin: 0; }

/* ---------- Article ---------- */
.article-head { max-width: 760px; }
.article-head h1 { font-size: var(--h1-hero); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--c-ink); margin-block-end: var(--s-16); text-wrap: pretty; }
@media (min-width: 1000px) { .article-head h1 { font-size: var(--fs-52); } }
.article-head__lead { font-size: var(--lead); color: var(--c-muted); line-height: 1.65; margin-block-end: var(--s-22); }
.byline { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-16) 0; border-block: 1px solid var(--c-sunken); margin-block-end: var(--s-28); }
.byline > div { flex: 1; }
.figure { margin: 0 0 var(--s-32); }
.figure figcaption { font-size: var(--fs-12); color: var(--c-subtle); margin-block-start: var(--s-12); }
.prose { max-width: 760px; font-size: var(--body-long); line-height: 1.75; color: var(--c-body); }
/* Direct children only, so nested components (callout, spec table, cards) keep their own styles */
.prose > h2 { font-size: var(--h3); font-weight: 800; color: var(--c-ink); margin: var(--s-32) 0 var(--s-12); line-height: 1.3; }
.prose > h2:first-child { margin-block-start: 0; }
.prose > h3 { font-size: var(--fs-18); font-weight: 800; color: var(--c-ink); margin: var(--s-28) 0 var(--s-14); }
.prose > p { margin: 0 0 var(--s-16); }
.callout { padding: var(--s-18) var(--s-20); border-radius: var(--r-14); margin: var(--s-24) 0; }
.callout--warn { background: var(--c-warn-tint); color: var(--c-ink); font-size: var(--fs-14); }
/* A detail the client still has to supply; must not reach a public launch */
.to-complete { background: var(--c-warn-tint); color: var(--c-ink); font-weight: 700; padding: 0 var(--s-4); }
.callout__title { font-weight: 700; font-size: var(--fs-14); color: var(--c-blue-deep); margin-block-end: var(--s-6); }
.callout__text { font-size: var(--fs-15); line-height: 1.6; }
.prose .spec-table { margin: var(--s-24) 0; }
.use-case { padding: var(--s-18); border-radius: var(--r-14); }
.use-case .icon-well { margin-block-end: var(--s-12); }
.use-case__title { font-weight: 700; font-size: var(--fs-15); color: var(--c-text); margin-block-end: var(--s-6); line-height: 1.4; }
.use-case__text { font-size: var(--fs-13); color: var(--c-muted); line-height: 1.55; }
.prose .grid { margin: 0 0 var(--s-24); }
.list-check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-8); }
.list-check li { display: flex; gap: var(--s-8); font-size: var(--fs-13); line-height: 1.5; color: var(--c-body); }
.list-check svg { flex-shrink: 0; margin-block-start: var(--s-4); }
.list-title { font-weight: 800; font-size: var(--fs-14); margin-block-end: var(--s-10); }
.list-title--pro { color: var(--c-blue-deep); }
.list-title--con { color: var(--c-muted); }
.cta-banner { padding: var(--s-24); border-radius: var(--r-16); margin-block-start: var(--s-32); background: linear-gradient(150deg, var(--c-blue), var(--c-blue-deep)); color: var(--c-surface); }
.cta-banner__title { font-weight: 800; font-size: var(--fs-18); margin-block-end: var(--s-6); }
.cta-banner__text { font-size: var(--fs-14); margin-block-end: var(--s-16); }
.toc ol, .related ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-10); }
.toc a { font-size: var(--fs-13); color: var(--c-muted); text-decoration: none; line-height: 1.45; }
.toc a:hover { color: var(--c-blue-deep); text-decoration: underline; }
.related li { position: relative; display: flex; gap: var(--s-10); }
.related .media { width: 52px; height: 52px; border-radius: var(--r-10); flex-shrink: 0; background-size: 60%; }
.related a { font-size: var(--fs-13); font-weight: 600; line-height: 1.4; color: var(--c-text); text-decoration: none; }
.related a:hover { color: var(--c-blue-deep); text-decoration: underline; }
.related .meta { font-size: var(--fs-11); margin-block-start: var(--s-2); }
.side-title { font-weight: 800; font-size: var(--fs-14); color: var(--c-ink); margin-block-end: var(--s-12); }

/* ---------- Motion ---------- */
@keyframes dl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes dl-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.rise { animation: dl-rise .6s var(--ease) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .13s; }
.rise-3 { animation-delay: .22s; }
.rise-4 { animation-delay: .32s; }
.rise-5 { animation-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities (scale values only) ---------- */
.mt-12 { margin-block-start: var(--s-12); }
.mt-24 { margin-block-start: var(--s-24); }
.mb-12 { margin-block-end: var(--s-12); }
.mb-24 { margin-block-end: var(--s-24); }
.mb-0 { margin-block-end: 0; }
.w-full { width: 100%; }

/* ---- Catalog and cart rendered by shop.js ---- */
/* Hold the page height while products load, so the footer does not jump (CLS) */
[data-catalog-grid]:empty, [data-product]:empty { min-block-size: 100vh; }
.grid > .empty { grid-column: 1 / -1; }
.add-btn:disabled, .btn:disabled { background: var(--c-sunken); color: var(--c-subtle); border-color: var(--c-border); box-shadow: none; cursor: not-allowed; }
.variant input:disabled { cursor: not-allowed; }
.variant input:disabled + span { background: var(--c-sunken); color: var(--c-subtle); text-decoration: line-through; }
.line-item__name a { color: inherit; text-decoration: none; }
.line-item__name a:hover { text-decoration: underline; }

/* ---- Account and checkout ---- */
.auth-card { max-inline-size: 28rem; margin-inline: auto; }
.auth-card__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-8); margin-block-start: var(--s-12); }
.account-head__action { margin-inline-start: auto; }
[data-checkout-done]:focus, [data-form-done]:focus { outline: none; }

/* ---- Popup dialog ---- */
.dialog { inline-size: calc(100% - 2 * var(--s-16)); max-inline-size: 26rem; padding: var(--s-24); border: 1px solid var(--c-border); border-radius: var(--r-16); background: var(--c-surface); color: var(--c-body); box-shadow: var(--sh-lift); }
.dialog::backdrop { background: rgba(15, 23, 42, .5); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-12); margin-block-end: var(--s-8); }
