/* Site styles. Every value is a token from theme.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: var(--font-arabic); letter-spacing: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink-900); }
p { margin: 0; }

.visually-hidden {
  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-link {
  position: absolute; inset-inline-start: var(--space-4); top: -60px; z-index: 100;
  background: var(--surface-100); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-4); }

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

.overline {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--brand-700); margin-bottom: var(--space-3); display: block;
}
.display-2xl { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.025em; }
.display-l { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.015em; }
.display-m { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.heading-m { font-size: 18px; line-height: 26px; font-weight: 600; }
.heading-s { font-size: 16px; line-height: 22px; font-weight: 600; }
.body-l { font-size: 18px; line-height: 32px; color: var(--ink-600); }
.body-s { font-size: 14px; line-height: 22px; color: var(--ink-500); }
.numeric { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-500); }

@media (min-width: 900px) {
  .display-2xl { font-size: 64px; line-height: 68px; letter-spacing: -0.03em; }
  .display-l { font-size: 36px; line-height: 42px; letter-spacing: -0.02em; }
  .display-m { font-size: 28px; line-height: 34px; letter-spacing: -0.015em; }
}

/* ------------------------------------------------------------- Layout */

.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--space-5));
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 900px) {
  .container { max-width: calc(var(--content-max) + 2 * var(--space-7)); padding-inline: var(--space-7); }
}

.section { padding-block: var(--space-8); }
@media (min-width: 900px) { .section { padding-block: var(--space-9); } }
.section--tint { background: var(--brand-050); }
.section--wash { background: var(--gradient-wash); }
.section--tight { padding-block: var(--space-7); }

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head .body-l { margin-top: var(--space-3); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid { gap: var(--space-6); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface-100) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 64px; }
@media (min-width: 900px) { .site-header__inner { min-height: 72px; } }

.brand-link { display: inline-flex; flex: none; }
.brand-link img { width: 120px; height: auto; }
@media (min-width: 900px) { .brand-link img { width: 140px; } }

.nav { display: none; margin-inline-start: auto; align-items: center; gap: var(--space-1); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-3); color: var(--ink-900); text-decoration: none;
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.005em;
}
.nav a:hover { color: var(--brand-700); }
.nav a[aria-current="page"] { color: var(--brand-700); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: var(--space-3); bottom: 6px; height: 2px;
  background: var(--brand-500); border-radius: 2px;
}
.nav .btn { margin-inline-start: var(--space-3); }


.nav-toggle {
  margin-inline-start: auto; width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--surface-100); color: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Seven items need ~1010px, so the full menu starts above the 900px layout breakpoint. */
@media (min-width: 1080px) { .nav { display: flex; } .nav-toggle { display: none; } }
.nav a, .btn { white-space: nowrap; }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--overlay);
  display: none;
}
.drawer.is-open { display: block; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(320px, 86vw);
  background: var(--surface-100); padding: var(--space-5); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-2);
  animation: drawer-in var(--dur-slow) var(--ease-enter);
}
.drawer__panel a:not(.btn) {
  color: var(--ink-900); text-decoration: none; padding: var(--space-3) 0; font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer__panel a[aria-current="page"] { color: var(--brand-700); }
.drawer__close { align-self: flex-end; }
@keyframes drawer-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------- Button */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.005em;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 36px; padding: 0 var(--space-3); }
.btn--full { width: 100%; }

.btn--primary { background: var(--brand-500); color: var(--on-brand); border-color: var(--brand-700); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-600); box-shadow: var(--shadow-brand); transform: translateY(-2px); }
.btn--primary:active { background: var(--brand-700); color: #ffffff; box-shadow: var(--shadow-sm); transform: none; }

.btn--secondary { background: var(--surface-100); color: var(--ink-900); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-200); border-color: var(--ink-600); }

.btn--ghost { background: transparent; color: var(--brand-700); }
.btn--ghost:hover { background: var(--brand-100); }

.btn--danger { background: var(--danger-500); color: #ffffff; }
.btn--danger:hover { filter: brightness(0.92); }

.btn--on-dark { background: transparent; color: var(--ink-inverse); border-color: var(--ink-inverse); }
.btn--on-dark:hover { background: rgba(247, 247, 247, 0.1); }

[dir="rtl"] .btn { font-weight: 400; letter-spacing: 0; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* -------------------------------------------------------------- Badge */

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2);
  border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--neutral { background: var(--surface-400); color: var(--ink-900); }
.badge--brand { background: var(--brand-100); color: var(--brand-700); }
.badge--success { background: var(--success-100); color: var(--success-500); }
.badge--danger { background: var(--danger-100); color: var(--danger-500); }
.badge--warning { background: var(--warning-100); color: var(--warning-500); }

/* --------------------------------------------------------------- Card */

.card {
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface-200); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-4); color: var(--ink-900); text-decoration: none;
}
@media (min-width: 900px) { .card { padding: var(--space-5); } }
a.card, .card--interactive {
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}
a.card:hover, .card--interactive:hover { border-color: var(--brand-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tile { border-radius: var(--radius-xl); }
.tile__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-100); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.tile__icon svg { width: 20px; height: 20px; }

.card__foot {
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand-700);
}
.card__foot svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- Hero */

.hero { background: var(--gradient-wash); padding-block: var(--space-8) var(--space-8); }
@media (min-width: 900px) { .hero { padding-block: var(--space-10); } }
.hero__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { max-width: 14ch; }
.hero .body-l { margin-top: var(--space-5); max-width: 56ch; }
.hero__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__panel {
  background: var(--surface-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: var(--space-5); box-shadow: var(--shadow-md);
}
.hero__panel ul { list-style: none; margin: 0; padding: 0; }
.hero__panel li {
  display: flex; gap: var(--space-3); align-items: flex-start; padding-block: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}
.hero__panel li:last-child { border-bottom: 0; }
.hero__panel li svg { width: 20px; height: 20px; color: var(--brand-700); flex: none; margin-top: 4px; }

.page-hero { background: var(--gradient-wash); padding-block: var(--space-8) var(--space-7); border-bottom: 1px solid var(--border-subtle); }
.page-hero .body-l { margin-top: var(--space-3); max-width: 64ch; }
.breadcrumb { font-size: 14px; line-height: 20px; margin-bottom: var(--space-4); color: var(--ink-500); }
.breadcrumb a { color: var(--ink-600); }

/* ------------------------------------------------ Statement hero + mark */

/* The hero ends right after its button; the section that follows supplies the
   breathing room, trimmed so the two read as one opening. */
.hero--statement { background: var(--surface-100); padding-block: var(--space-7) 0; overflow-x: clip; }
@media (min-width: 900px) { .hero--statement { padding-block: var(--space-9) 0; } }
.hero--statement + .section { padding-top: var(--space-7); }
.hero--statement .hero__inner { gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .hero--statement .hero__inner { grid-template-columns: 1.4fr 1fr; } }
.hero--statement h1 { max-width: 11ch; }
.hero--statement .hero__actions { margin-top: var(--space-6); }
.hero__mark { position: relative; justify-self: center; width: min(240px, 60vw); color: var(--brand-500); }
@media (max-width: 899px) { .hero__mark { width: 140px; justify-self: start; order: -1; } }

/* Living molecule: motion is driven by site.js ([data-mark-live]). The viewBox has a
   20-unit margin so drifting atoms are never clipped. */
.mark-live { position: relative; z-index: 1; }
.mark-live__svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Trusted-by band at the foot of the hero: the client carousel, compact and in
   greyscale so it supports the headline rather than competing with it. */
.hero__trust {
  display: flex; align-items: center; gap: var(--space-5);
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle);
}
@media (min-width: 900px) { .hero__trust { margin-top: var(--space-9); } }
.hero__trust-label {
  flex: none; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--ink-500); text-decoration: none;
}
.hero__trust-label:hover { color: var(--brand-700); }
.hero__trust .logo-carousel { flex: 1; min-width: 0; }
.hero__trust .logo-carousel__track { gap: var(--space-7); padding: var(--space-2) 0; }
.hero__trust .logo-carousel__item { height: 48px; }
.hero__trust .logo-carousel__item img {
  max-height: 40px; max-width: 140px; filter: grayscale(1); opacity: 0.65;
  transition: filter var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
}
.hero__trust .logo-carousel__item img:hover { filter: none; opacity: 1; }
@media (max-width: 599px) { .hero__trust { flex-direction: column; align-items: flex-start; gap: var(--space-3); } .hero__trust .logo-carousel { width: 100%; } }

/* -------------------------------------------------------- Chips (industries) */

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill); background: var(--surface-100); border: 1px solid var(--border-default);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-900);
}
.chip svg { width: 18px; height: 18px; color: var(--brand-700); }

/* ------------------------------------------------------- Partner cards */

.partner-card__name { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.partner-card__logo { height: 40px; width: auto; object-fit: contain; object-position: left center; }
.partner-card .body-s { flex: 1; }

/* ------------------------------------------------------ Product cards */

.product-card { padding: 0; overflow: hidden; gap: 0; background: var(--surface-100); }
.product-card__media {
  aspect-ratio: 4 / 3; background: var(--surface-200); display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border-subtle); color: var(--ink-400);
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); }
.product-card__media svg { width: 40px; height: 40px; }
.product-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card__body .card__foot { color: var(--ink-900); }

.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-900); }

/* ------------------------------------------------------------- Clients */

.client-group + .client-group { margin-top: var(--space-7); }

.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-grid li {
  display: flex; align-items: center; justify-content: center; min-height: 112px; padding: var(--space-4);
  background: var(--surface-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  text-align: center;
}
.logo-grid img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }

/* Logo carousel: a continuous, seamless loop (the track holds the list twice and
   moves by half its width). Pauses on hover, on keyboard focus and via the toggle;
   under reduced motion it becomes a static, manually scrollable row. */
.logo-carousel { position: relative; }
.logo-carousel__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-carousel__track {
  list-style: none; margin: 0; padding: var(--space-3) 0;
  display: flex; align-items: center; gap: var(--space-8); width: max-content;
  animation: logo-scroll var(--carousel-duration, 40s) linear infinite;
}
.logo-carousel__item { flex: none; display: flex; align-items: center; height: 72px; }
.logo-carousel__item img { max-height: 64px; width: auto; max-width: 200px; object-fit: contain; }
.logo-carousel:hover .logo-carousel__track,
.logo-carousel:focus-within .logo-carousel__track { animation-play-state: paused; }
[dir="rtl"] .logo-carousel__track { animation-direction: reverse; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--space-8) / 2)); } }

/* Reduced motion slows the carousel to half speed instead of stopping it (the
   class selector outranks the global `*` reduced-motion rule). */
@media (prefers-reduced-motion: reduce) {
  .logo-carousel__track {
    animation-duration: calc(var(--carousel-duration, 40s) * 2) !important;
    animation-iteration-count: infinite !important;
  }
}

/* ------------------------------------------------------------- Filters */

.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4);
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); color: var(--ink-900);
  text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500;
}
.tabs a:hover { background: var(--surface-200); }
.tabs a[aria-current="true"] { background: var(--brand-100); border-color: var(--brand-700); color: var(--brand-700); }

/* --------------------------------------------------------- Product detail */

.detail { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.detail__media {
  background: var(--surface-200); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; color: var(--ink-400);
}
.detail__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-6); }
.detail__media svg { width: 64px; height: 64px; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.specs li {
  display: flex; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--border-subtle);
  color: var(--ink-600);
}
.specs li svg { width: 18px; height: 18px; color: var(--brand-700); flex: none; margin-top: 5px; }
.price-box {
  background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
}
.price-box .price { font-size: 28px; line-height: 34px; }

/* --------------------------------------------------------------- Table */

.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-100); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.table th {
  text-align: start; background: var(--surface-200); color: var(--ink-900); font-size: 12px; line-height: 16px;
  font-weight: 500; letter-spacing: 0.02em; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); color: var(--ink-600); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-200); }
.table td.num, .table th.num { text-align: end; }
.table .strong { color: var(--ink-900); font-weight: 500; }
.table-group td { background: var(--brand-050); color: var(--brand-700); font-weight: 600; }

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

.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label, .field .label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-900); }
.field .req { color: var(--danger-500); margin-inline-start: 2px; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 28px; color: var(--ink-900);
  background: var(--surface-100); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3); min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-600); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--focus-ring); }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.textarea { min-height: 120px; resize: vertical; }
.input.input-validation-error, .select.input-validation-error, .textarea.input-validation-error { border-color: var(--danger-500); }
.field-validation-error, .validation-summary-errors { color: var(--danger-500); font-size: 14px; line-height: 22px; }
.validation-summary-errors ul { margin: 0; padding-inline-start: var(--space-5); }
.validation-summary-valid { display: none; }
.hint { font-size: 14px; line-height: 22px; color: var(--ink-500); }
.check { display: flex; gap: var(--space-2); align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-700); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4);
  border-radius: var(--radius-lg); font-size: 14px; line-height: 22px;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--success { background: var(--success-100); color: var(--ink-900); }
.alert--success svg { color: var(--success-500); }
.alert--danger { background: var(--danger-100); color: var(--ink-900); }
.alert--danger svg { color: var(--danger-500); }
.alert--info { background: var(--brand-100); color: var(--ink-900); }
.alert--info svg { color: var(--brand-700); }

/* ------------------------------------------------------------ CTA band */

.cta-band { background: var(--gradient-brand); color: var(--ink-inverse); border-radius: var(--radius-2xl); padding: var(--space-7) var(--space-5); }
@media (min-width: 900px) { .cta-band { padding: var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); } }
.cta-band h2 { color: var(--ink-inverse); }
.cta-band p { color: var(--ink-inverse); margin-top: var(--space-3); max-width: 52ch; }
.cta-band .row { margin-top: var(--space-5); }
@media (min-width: 900px) { .cta-band .row { margin-top: 0; flex: none; } }

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

.site-footer { background: var(--surface-inverse); color: var(--ink-inverse); padding-block: var(--space-8) var(--space-6); margin-top: var(--space-9); }
.site-footer a { color: var(--ink-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { color: var(--ink-inverse); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 22px; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer p { font-size: 14px; line-height: 22px; }
.site-footer__logo { width: 140px; margin-bottom: var(--space-4); }
.site-footer__base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid #3a3a3a; font-size: 14px; line-height: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

/* ----------------------------------------------------------- Empty state */

.empty { text-align: center; padding: var(--space-8) var(--space-5); color: var(--ink-500); border: 1px dashed var(--border-default); border-radius: var(--radius-lg); }

/* -------------------------------------------------------------- Admin */

.admin-body { background: var(--surface-200); }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 240px 1fr; } }
.admin-side { background: var(--surface-inverse); color: var(--ink-inverse); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.admin-side img { width: 120px; }
.admin-side nav { display: flex; flex-direction: column; gap: var(--space-1); }
@media (max-width: 899px) { .admin-side nav { flex-direction: row; flex-wrap: wrap; } }
.admin-side nav a {
  color: var(--ink-inverse); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  font-size: 14px; line-height: 20px; font-weight: 500; display: flex; align-items: center; gap: var(--space-2);
}
.admin-side nav a svg { width: 18px; height: 18px; }
.admin-side nav a:hover { background: rgba(247, 247, 247, 0.08); }
.admin-side nav a[aria-current="page"] { background: var(--brand-800); }
.admin-side__foot { margin-top: auto; font-size: 14px; line-height: 22px; }
.admin-side__foot button { background: none; border: 0; padding: 0; color: var(--ink-inverse); text-decoration: underline; cursor: pointer; font: inherit; }
.admin-main { padding: var(--space-5); min-width: 0; }
@media (min-width: 900px) { .admin-main { padding: var(--space-7); } }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.admin-card { background: var(--surface-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); }
.stat { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--font-sans); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: end; margin-bottom: var(--space-4); }
.toolbar .field { min-width: 160px; }
.table .input, .table .select { min-height: 36px; padding: var(--space-1) var(--space-2); font-size: 14px; line-height: 22px; }
.table .input--price { width: 110px; text-align: end; font-family: var(--font-mono); }
.thumb { width: 44px; height: 44px; object-fit: contain; background: var(--surface-200); border-radius: var(--radius-sm); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-5); background: var(--gradient-wash); }
.login-card { width: 100%; max-width: 420px; background: var(--surface-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-md); }
.login-card img { width: 140px; margin-bottom: var(--space-5); }

/* ------------------------------------------------------ Reduced motion */

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