/* ==========================================================================
   Akel Logistics — landing styles
   Tokens mirror the mobile app (lib/core/theme/app_palette.dart) so the site
   and the app read as one product: navy gradient, #F5F5F8 canvas, 26px cards,
   pill controls, Manrope.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  /* Brand — straight from AppPalette */
  --navy: #162874;
  --navy-bright: #0e2db1;
  --blue: #17319f;
  --banner: #12288c;
  --gradient: linear-gradient(135deg, #162874 0%, #0e2db1 100%);

  --orange: #fe5300;
  --orange-bg: #ffe6d9;
  --green: #27ae60;
  --green-bg: #c7f6ce;
  --sky: #2f80ed;
  --sky-bg: #e0edff;

  /* Light surfaces */
  --bg: #f5f5f8;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #1b1b19;
  --text-2: #6e7186;
  --hairline: #e3e4ea;
  --accent-text: var(--navy);
  --accent-soft: rgba(22, 40, 116, 0.07);
  --shadow-sm: 0 1px 2px rgba(19, 25, 60, 0.05), 0 6px 18px rgba(19, 25, 60, 0.05);
  --shadow-md: 0 2px 6px rgba(19, 25, 60, 0.06), 0 18px 44px rgba(19, 25, 60, 0.09);

  /* Geometry — app dimensions */
  --r-card: 26px;
  --r-ctl: 16px;
  --r-pill: 999px;
  --maxw: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(2.75rem, 6vw, 5.25rem);

  --ring: 0 0 0 3px rgba(14, 45, 177, 0.35);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0d0d0d;
  --surface: #1b1a1d;
  --surface-2: #252728;
  --text: #ffffff;
  --text-2: #8e8e93;
  --hairline: #2e2e31;
  --accent-text: #6c93ff;
  --accent-soft: rgba(108, 147, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.55);
  --orange-bg: rgba(254, 83, 0, 0.16);
  --green-bg: rgba(39, 174, 96, 0.18);
  --sky-bg: rgba(47, 128, 237, 0.18);
  --ring: 0 0 0 3px rgba(108, 147, 255, 0.45);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d0d0d;
    --surface: #1b1a1d;
    --surface-2: #252728;
    --text: #ffffff;
    --text-2: #8e8e93;
    --hairline: #2e2e31;
    --accent-text: #6c93ff;
    --accent-soft: rgba(108, 147, 255, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.55);
      --orange-bg: rgba(254, 83, 0, 0.16);
    --green-bg: rgba(39, 174, 96, 0.18);
    --sky-bg: rgba(47, 128, 237, 0.18);
    --ring: 0 0 0 3px rgba(108, 147, 255, 0.45);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  /* The off-canvas drawer sits one screen to the right when closed. With
     `overflow-x: hidden` that area still counts as scrollable, and on mobile it
     inflates the layout viewport (390 -> 725 on an iPhone 14), which lets the whole
     page pan sideways and throws `position: fixed` elements off screen.
     `clip` removes the scrollable area outright; `hidden` stays as the fallback for
     Safari < 16. Both html and body need it — body alone is not enough. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* The app paints a hex wash from the top of every screen; the site does the same —
   but as a live, seamless SVG honeycomb (see .bg-decor) instead of a stretched bitmap. */

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

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.05rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

::selection {
  background: var(--navy);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-ctl) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 45, 177, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(14, 45, 177, 0.38);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.btn-sm {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.94rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Store badges — drawn here, not fetched, so they stay crisp and offline-safe. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-ctl);
  background: #101114;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 54px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
:root[data-theme='dark'] .store-badge {
  background: #ffffff;
  color: #101114;
  border-color: rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .store-badge {
    background: #ffffff;
    color: #101114;
    border-color: rgba(0, 0, 0, 0.1);
  }
}
.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}
.store-badge span {
  display: block;
  line-height: 1.15;
}
.store-badge .sb-top {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.store-badge .sb-main {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
/* The frosted panel lives on a pseudo-element on purpose: `backdrop-filter` on the
   header itself would make it the containing block for `position: fixed`, and the
   off-canvas drawer (a descendant) would then be sized to the header instead of the
   viewport — it collapsed to a ~120px tall white box. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-stuck {
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}
.header-inner > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 40px;
  width: auto;
}
.logo-dark {
  display: none;
}
:root[data-theme='dark'] .logo-light {
  display: none;
}
:root[data-theme='dark'] .logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo-light {
    display: none;
  }
  :root:not([data-theme='light']) .logo-dark {
    display: block;
  }
}

.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent-text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

/* language menu */
.lang {
  position: relative;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--accent-text);
}
.lang-toggle svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.lang[data-open='true'] .lang-toggle svg {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: none;
}
.lang[data-open='true'] .lang-menu {
  display: block;
}
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.lang-menu button:hover {
  background: var(--accent-soft);
}
.lang-menu button[aria-current='true'] {
  color: var(--accent-text);
}
.lang-menu button[aria-current='true']::after {
  content: '✓';
  font-weight: 800;
}

.nav-toggle {
  display: none;
}

/* mobile drawer */
@media (max-width: 1150px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 45;
    width: min(340px, 86vw);
    background: var(--surface);
    border-left: 1px solid var(--hairline);
    padding: 5.5rem 1.25rem 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  body.nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
  }
  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--r-ctl);
    font-size: 1.05rem;
  }
  .main-nav .nav-cta {
    margin-top: 1rem;
  }
  .main-nav .nav-cta a {
    background: var(--gradient);
    color: #fff;
    text-align: center;
  }
}
@media (min-width: 1151px) {
  .main-nav .nav-cta {
    display: none;
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 8, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  border: 0;
  padding: 0;
}

/* --------------------------------------------------------------- sections */
.section {
  padding-block: var(--section-y);
  position: relative;
  z-index: 1;
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
/* the lead is usually last here — its paragraph margin would double the gap */
.section-head > :last-child {
  margin-bottom: 0;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.85rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  max-width: 44rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ------------------------------------------------------------------- hero */
.hero {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}
.hero h1 {
  margin-bottom: 1rem;
  max-width: 16ch;
}
.hero .lead {
  max-width: 36rem;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}
.hero-actions {
  margin-top: 1.75rem;
}
.hero-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--text-2);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
.hero-photo {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 6;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual .hero-phone {
  position: absolute;
  right: 2%;
  bottom: -6%;
  width: 40%;
  max-width: 205px;
}
@media (max-width: 560px) {
  .hero-visual .hero-phone {
    right: -2%;
    width: 48%;
  }
}

/* phone mockup */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #2b2f3a, #101118);
  box-shadow: 0 24px 60px rgba(9, 14, 40, 0.4);
}
.phone::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
.phone img {
  border-radius: 27px;
  width: 100%;
  display: block;
}
.phone .shot-dark {
  display: none;
}
:root[data-theme='dark'] .phone .shot-light {
  display: none;
}
:root[data-theme='dark'] .phone .shot-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .phone .shot-light {
    display: none;
  }
  :root:not([data-theme='light']) .phone .shot-dark {
    display: block;
  }
}

/* ------------------------------------------------------------------ stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
}
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
:root[data-theme='dark'] .stat b {
  background: linear-gradient(135deg, #7ea0ff, #b9c8ff);
  -webkit-background-clip: text;
  background-clip: text;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .stat b {
    background: linear-gradient(135deg, #7ea0ff, #b9c8ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------- services */
.service {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent-text) 35%, var(--hairline));
}
.service .ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 0.35rem;
}
.service .ico svg {
  width: 26px;
  height: 26px;
}
.service h3 {
  margin: 0;
}
.service p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
}

/* ------------------------------------------------------------------ steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  position: relative;
  --badge-top: clamp(1.35rem, 2.4vw, 1.9rem);
  padding-top: calc(var(--badge-top) + 42px + 0.9rem);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: var(--badge-top);
  left: clamp(1.35rem, 2.4vw, 1.9rem);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.step h3 {
  margin-bottom: 0.4rem;
}
.step p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
}

/* -------------------------------------------------------------- app promo */
.app-section {
  position: relative;
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 980px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}
.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.feature-list .ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature-list .ico svg {
  width: 20px;
  height: 20px;
}
.feature-list b {
  display: block;
  font-size: 1rem;
}
.feature-list span {
  color: var(--text-2);
  font-size: 0.93rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1rem);
  align-items: center;
}
.shots .phone:nth-child(2) {
  transform: translateY(-6%) scale(1.06);
  z-index: 2;
}
.shots .phone:nth-child(1),
.shots .phone:nth-child(3) {
  opacity: 0.96;
}
@media (max-width: 520px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .shots .phone:nth-child(3) {
    display: none;
  }
}

/* ------------------------------------------------------------------ cargo */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
}
.chip.forbidden {
  color: var(--orange);
  background: var(--orange-bg);
  border-color: transparent;
}
:root[data-theme='dark'] .chip.forbidden {
  color: #ff8c52;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .chip.forbidden {
    color: #ff8c52;
  }
}
.chip svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------- band/cta */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  color: #fff;
  isolation: isolate;
}
.band img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(13, 22, 66, 0.93) 0%, rgba(14, 45, 177, 0.78) 55%,
    rgba(14, 45, 177, 0.35) 100%);
}
.band-inner {
  padding: clamp(2rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: center;
}
@media (max-width: 780px) {
  .band-inner {
    grid-template-columns: 1fr;
  }
}
.band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 34rem;
}
/* On the navy band the badges are solid white in BOTH themes — that is how the real
   store badges look, and it keeps the light/dark versions of this block identical. */
:root .band .store-badge {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #101114;
}
:root .band .store-badge:hover {
  background: #f3f4f8;
}

/* -------------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 54rem;
  margin-inline: auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 2.4vw, 1.6rem);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2.5px solid var(--accent-text);
  border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq .answer {
  padding: 0 clamp(1.1rem, 2.4vw, 1.6rem) 1.25rem;
  color: var(--text-2);
  margin: 0;
}

/* --------------------------------------------------------------- contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}
.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-item .ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.contact-item .ico svg {
  width: 21px;
  height: 21px;
}
.contact-item small {
  display: block;
  color: var(--text-2);
  font-size: 0.85rem;
}
.contact-item a,
.contact-item b {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.contact-item a:hover {
  color: var(--accent-text);
}
.note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-ctl);
  background: var(--orange-bg);
  color: color-mix(in srgb, var(--orange) 85%, #000);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
:root[data-theme='dark'] .note {
  color: #ffb694;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .note {
    color: #ffb694;
  }
}
.note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2rem, 4vw, 3rem) 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.9rem;
}
.footer-brand p {
  color: var(--text-2);
  max-width: 26rem;
  font-size: 0.95rem;
}
.site-footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.site-footer ul a {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
}
.site-footer ul a:hover {
  color: var(--accent-text);
}
.footer-bottom {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 0.88rem;
}
.socials {
  display: flex;
  gap: 0.5rem;
}
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  color: var(--text);
}
.socials a:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.socials svg {
  width: 18px;
  height: 18px;
}

/* ----------------------------------------------------------- legal pages */
.page-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.5rem);
}
.page-hero .lead {
  max-width: 50rem;
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static !important;
  }
}
.toc {
  position: sticky;
  top: 100px;
}
.toc nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  border-left: 2px solid var(--hairline);
}
.toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.toc a:hover,
.toc a.active {
  color: var(--accent-text);
  border-left-color: var(--accent-text);
  text-decoration: none;
}

.prose {
  max-width: 46rem;
}
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  margin-top: 2.4rem;
  scroll-margin-top: 100px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.6rem;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose strong {
  color: var(--text);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.94rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.prose th {
  color: var(--text);
  font-weight: 700;
}
.prose td {
  color: var(--text-2);
}
.prose .callout {
  padding: 1rem 1.25rem;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-text) 25%, transparent);
  color: var(--text);
  margin: 1.25rem 0;
}
.prose .callout p:last-child {
  margin-bottom: 0;
}

/* numbered instruction steps (delete-account) */
.howto {
  list-style: none;
  counter-reset: howto;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.howto li {
  counter-increment: howto;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-ctl);
  background: var(--surface);
  color: var(--text-2);
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.howto b {
  color: var(--text);
}

/* ----------------------------------------------------------- reveal / a11y */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .nav-scrim {
    display: none !important;
  }
  body::before {
    display: none;
  }
  .prose {
    max-width: none;
  }
}

/* ==========================================================================
   MOTION LAYER
   Everything below is decoration. It is additive: with JS off, or with
   `prefers-reduced-motion: reduce`, the page still reads correctly — the final
   state of every animation is the resting state.
   ========================================================================== */

/* ------------------------------------------------- background decoration */
.bg-decor {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}
.bg-decor .hexes {
  position: absolute;
  inset: -40px -40px auto -40px;
  height: 620px;
  width: calc(100% + 80px);
  color: #1e3a8a;
  opacity: 0.09;
  animation: hexdrift 90s linear infinite;
}
:root[data-theme='dark'] .bg-decor .hexes {
  color: #7f9dff;
  opacity: 0.07;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .bg-decor .hexes {
    color: #7f9dff;
    opacity: 0.07;
  }
}
@keyframes hexdrift {
  to {
    transform: translate3d(-38.1px, -66px, 0);
  }
}

/* Aurora — two slow, blurred brand-coloured masses. They are what makes the
   canvas feel lit rather than flat grey. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob.b1 {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle at 35% 35%, rgba(14, 45, 177, 0.55), transparent 68%);
  animation: float1 26s ease-in-out infinite;
}
.blob.b2 {
  width: 560px;
  height: 560px;
  top: -120px;
  right: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(47, 128, 237, 0.42), transparent 68%);
  animation: float2 32s ease-in-out infinite;
}
.blob.b3 {
  width: 420px;
  height: 420px;
  top: 520px;
  left: 45%;
  background: radial-gradient(circle at 50% 50%, rgba(254, 83, 0, 0.16), transparent 70%);
  animation: float1 38s ease-in-out infinite reverse;
}
:root[data-theme='dark'] .blob {
  opacity: 0.42;
}
@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(70px, 50px, 0) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-60px, 70px, 0) scale(0.92); }
}

/* --------------------------------------------------------- scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #162874, #0e2db1 55%, #2f80ed);
  z-index: 60;
  pointer-events: none;
}

/* ----------------------------------------------------------- entrance/reveal */
/* Staggered entrance for the hero — CSS-only, so it plays before JS even loads. */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to { opacity: 1; transform: none; }
}
.js .rise {
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
  animation-delay: var(--d, 0s);
}

/* Scroll reveal gets an optional per-item delay so grids cascade. */
.reveal {
  transition-delay: var(--d, 0s);
}

/* ------------------------------------------------------------- gradient text */
.grad {
  background: linear-gradient(100deg, #0e2db1 0%, #2f80ed 38%, #162874 62%, #0e2db1 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
:root[data-theme='dark'] .grad {
  background-image: linear-gradient(100deg, #7ea0ff, #b9c8ff 38%, #6c93ff 62%, #7ea0ff);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .grad {
    background-image: linear-gradient(100deg, #7ea0ff, #b9c8ff 38%, #6c93ff 62%, #7ea0ff);
  }
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --------------------------------------------------------------- hero motion */
.hero-photo {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero-phone {
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

/* Pointer tilt: JS writes --rx/--ry, CSS owns the easing. */
.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.28, 1);
  transform-style: preserve-3d;
}

/* ------------------------------------------------------------ card spotlight */
.spot {
  position: relative;
  overflow: hidden;
}
.spot::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent-text) 16%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spot:hover::after {
  opacity: 1;
}
.spot > * {
  position: relative;
}

/* --------------------------------------------------------- magnetic buttons */
.mag {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.25s cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 0.25s ease;
}

/* ------------------------------------------------------------------ marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.1rem;
  border-block: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee-item svg {
  width: 17px;
  height: 17px;
  color: var(--accent-text);
  flex: none;
}
.marquee-item .sep {
  color: color-mix(in srgb, var(--accent-text) 55%, transparent);
}
@keyframes slide {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------------------------------------------------------------- counters */
.stat b {
  font-variant-numeric: tabular-nums;
}
.stat {
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.28, 1);
  transition-delay: var(--d, 0s);
}
.stats.in .stat::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------ app showcase */
.shots .phone {
  will-change: transform;
}
.shots.in .phone {
  animation: dealIn 0.9s cubic-bezier(0.22, 0.8, 0.28, 1) backwards;
}
.shots.in .phone:nth-child(1) { animation-delay: 0.05s; }
.shots.in .phone:nth-child(2) { animation-delay: 0.18s; }
.shots.in .phone:nth-child(3) { animation-delay: 0.31s; }
@keyframes dealIn {
  from { opacity: 0; transform: translate3d(0, 40px, 0) rotate(-4deg); }
}

/* ------------------------------------------------------- step connector line */
.steps {
  position: relative;
}
.step {
  overflow: visible;
}
.step .step-line {
  position: absolute;
  top: calc(var(--badge-top) + 20px);
  left: 100%;
  width: clamp(0.9rem, 1.8vw, 1.35rem);
  height: 2px;
  background: repeating-linear-gradient(90deg,
    color-mix(in srgb, var(--accent-text) 45%, transparent) 0 6px, transparent 6px 12px);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s ease var(--d, 0s);
}
.steps.in .step-line {
  transform: scaleX(1);
}
.step:last-child .step-line {
  display: none;
}
@media (max-width: 1150px) {
  .step .step-line { display: none; }
}

/* ------------------------------------------------------------- hover polish */
.chip {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.chip:hover {
  transform: translateY(-2px);
}
.faq details {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--accent-text) 35%, var(--hairline));
  box-shadow: var(--shadow-sm);
}
.faq .answer {
  animation: rise 0.4s ease;
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-decor .hexes,
  .blob,
  .hero-phone,
  .marquee-track,
  .grad,
  .shots.in .phone,
  .faq .answer {
    animation: none !important;
  }
  .rise {
    opacity: 1;
    animation: none;
  }
  .stats.in .stat::after,
  .steps.in .step-line {
    transition: none;
  }
  .tilt,
  .mag {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Static mode — set on <html> before first paint when the visitor asked for
   reduced motion (or ?motion=off). Nothing animates, and every animated
   element is pinned to its finished state, so the page is never mid-transition.
   -------------------------------------------------------------------------- */
html.static *,
html.static *::before,
html.static *::after {
  transition: none !important;
  animation: none !important;
}
html.static .reveal,
html.static .rise,
html.static .blob {
  opacity: 1 !important;
  transform: none !important;
}
html.static .stat::after,
html.static .step-line {
  transform: scaleX(1) !important;
}
html.static .hero-photo {
  transform: none !important;
}

.band-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------- live status chip (hero)
   Borrows the app's own status vocabulary and badge shape, so the site and the
   product feel like one thing. Decorative — it shows a sample shipment. */
.hero-chip {
  position: absolute;
  left: -4%;
  bottom: 14%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: bob 9s ease-in-out infinite 1.5s;
}
.hero-chip small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-chip b {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  transition: opacity 0.3s ease;
}
.hero-chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--text-2);
  padding-left: 0.7rem;
  border-left: 1px solid var(--hairline);
}
.hero-chip .live {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@media (max-width: 1100px) {
  .hero-chip { left: 0; bottom: 8%; }
  .hero-chip code { display: none; }
}
@media (max-width: 560px) {
  .hero-chip { padding: 0.55rem 0.8rem; border-radius: 15px; }
  .hero-chip b { font-size: 0.92rem; }
}

/* a soft trail so the moving trucks read as motion, not as stray dots */

html.static .hero-chip,
html.static .hero-chip .live {
  animation: none !important;
}

/* ------------------------------------------------------------- why section
   The page is card-heavy by this point; a photo pair breaks the rhythm and
   shows the actual work instead of another six rounded rectangles. */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.why-photos {
  position: relative;
  padding-bottom: 3.5rem;
  padding-right: 3rem;
}
.why-photos figure {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.why-photos .wp-main {
  aspect-ratio: 4 / 5;
}
.why-photos .wp-sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 5px solid var(--bg);
  border-radius: calc(var(--r-card) - 4px);
}
@media (max-width: 900px) {
  .why-photos {
    max-width: 460px;
  }
}

.why-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.why-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.why-list .ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.why-list .ico svg {
  width: 21px;
  height: 21px;
}
.why-list b {
  display: block;
  font-size: 1.04rem;
  margin-bottom: 0.15rem;
}
.why-list li > span:last-child > span {
  color: var(--text-2);
  font-size: 0.97rem;
}

/* app identity row */
.app-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.app-id img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.app-id .eyebrow {
  margin-bottom: 0.15rem;
}
.app-id b {
  display: block;
  font-size: 1.05rem;
}

/* Inner pages get the same honeycomb wash, without the aurora. */
.bg-decor--quiet {
  height: 620px;
}

/* --------------------------------------------------------- very small phones
   Below ~400px the header cannot hold logo + language label + two buttons, so the
   language switcher collapses to its globe and everything tightens up. */
@media (max-width: 420px) {
  .header-inner {
    min-height: 64px;
    gap: 0.5rem;
  }
  .brand img {
    height: 32px;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .lang-toggle {
    padding: 0 0.55rem;
    gap: 0.25rem;
  }
  .lang-toggle [data-lang-label] {
    display: none;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .lang-toggle {
    height: 40px;
  }
  html {
    scroll-padding-top: 76px;
  }
}
@media (max-width: 360px) {
  body {
    font-size: 16px;
  }
  .store-badge {
    padding: 0.5rem 0.85rem;
    min-height: 50px;
  }
  .store-badge .sb-main {
    font-size: 0.98rem;
  }
}


/* ------------------------------------------------------------ back to top
   Appears once the header is well out of sight; sits clear of the page's own
   corners so it never covers content. */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 55;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(14, 45, 177, 0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.8, 0.28, 1),
    box-shadow 0.2s ease;
  pointer-events: none;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: 0 14px 32px rgba(14, 45, 177, 0.45);
  transform: translateY(-2px);
}
.to-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 480px) {
  .to-top {
    width: 44px;
    height: 44px;
  }
  .to-top svg {
    width: 19px;
    height: 19px;
  }
}
@media print {
  .to-top {
    display: none !important;
  }
}

/* ------------------------------------------------------- phone-width polish
   Measured on a 390pt viewport (iPhone 14). */
@media (max-width: 560px) {
  /* The Russian eyebrow is ~380px of uppercase text — it will wrap on any phone,
     so make the two-line pill compact instead of a heavy slab. */
  .eyebrow {
    font-size: 0.74rem;
    line-height: 1.35;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.03em;
  }
  /* Stacked store badges read as buttons only if they share a width. */
  .stores {
    width: 100%;
  }
  .stores .store-badge {
    flex: 1 0 100%;
    justify-content: center;
  }
  .band .stores .store-badge {
    flex: 1 0 auto;
  }
}

/* Close control inside the drawer — the burger sits underneath the open panel, so
   without this the only way out is the scrim. */
.nav-close {
  display: none;
  position: absolute;
  top: 1.1rem;
  right: 1.15rem;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-close svg {
  width: 19px;
  height: 19px;
}
.nav-close:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
@media (max-width: 1150px) {
  .nav-close {
    display: inline-flex;
  }
}


/* ------------------------------------------------------------- warehouses
   Cards are rendered from `GET {API_BASE}/public/warehouses` when the API is
   configured; the markup in index.html is the seeded fallback. */
.wh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}
.wh {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wh:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent-text) 35%, var(--hairline));
}
.wh-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.wh .flag {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.82rem;
}
.wh-tag {
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wh h3 {
  margin: 0;
}
.wh-code {
  margin: 0 0 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.wh-meta {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}
.wh-meta > div {
  display: grid;
  grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}
.wh-meta dt {
  font-size: 0.8rem;
  color: var(--text-2);
}
.wh-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.wh-meta a {
  color: var(--text);
}
.wh-meta a:hover {
  color: var(--accent-text);
}
@media (max-width: 420px) {
  .wh-meta > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
