/* ============================================================
   BARMA — promo landing
   Palette, token names and values mirror the app's own design system:
   mobile/src/theme/colors.ts  ("Graphite / liquid-glass dark ·
   soft luminous light · emerald accent"). Keep them in sync.
   ============================================================ */

:root {
  /* ---- carbon surfaces (app: darkColors) ---- */
  --bg: #0C0F14;
  --bg-elevated: #11151B;
  --surface: #161B22;
  --surface-alt: #1C222B;
  --surface-hi: #242C37;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.13);

  /* ---- liquid glass (the app's signature surface) ---- */
  --glass: rgba(26, 32, 42, 0.55);
  --glass-strong: rgba(20, 25, 33, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* ---- text ---- */
  --text: #F5F7FA;
  --text-2: #9AA4B2;
  /* app's textMuted #646E7E only clears AA on large text; lifted for body copy */
  --text-3: #7A8494;

  /* ---- brand accent: emerald ---- */
  --primary: #1FD17B;
  --primary-bright: #34E08C;
  --primary-deep: #10A864;
  --primary-soft: rgba(31, 209, 123, 0.16);
  --on-primary: #04130D;

  /* ---- AI accent: cyan (offers coming back) ---- */
  --ai: #5BC8FF;
  --ai-soft: rgba(91, 200, 255, 0.16);

  /* app's `warning` — the accent its home screen gives the garage metric */
  --warning: #FFC24B;

  /* ---- request modes, same hues the seller cabinet uses ---- */
  --mode-part: #5B8CFF;
  --mode-service: #FF6FA5;
  --mode-car: #9C7CFF;

  --font: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* ---- type scale, ~1.28 ratio, display ceiling 88px ---- */
  --fs-display: clamp(2.3rem, 5.1vw, 4.1rem);
  --fs-h2: clamp(1.6rem, 2.8vw, 2.35rem);
  --fs-h3: clamp(1.1rem, 1.45vw, 1.35rem);
  --fs-lead: clamp(1.02rem, 1.3vw, 1.2rem);
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* ---- fluid spacing ---- */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.5rem;
  --s-4: 2.25rem;
  --s-5: 3.5rem;
  --s-6: clamp(4rem, 7vw, 6.5rem);
  --s-7: clamp(5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  --r-1: 4px;
  --r-2: 10px;
  --r-3: 18px;
  --r-device: 40px;

  --exp: cubic-bezier(0.16, 1, 0.3, 1);
  --quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* ---- semantic z-scale ---- */
  --z-field: 0;
  --z-base: 1;
  --z-raised: 10;
  --z-dock: 40;
  --z-overlay: 60;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65; /* light-on-dark wants the extra leading */
  background: var(--bg);
  color: var(--text-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}

:where(h1, h2, h3, h4) {
  font-family: var(--font);
  color: var(--text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  line-height: 1.28;
}
p {
  text-wrap: pretty;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

.skip {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  z-index: var(--z-overlay);
  padding: 0.7rem 1.1rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: var(--r-2);
  transform: translateY(-180%);
  transition: transform 0.25s var(--exp);
}
.skip:focus-visible {
  transform: translateY(0);
}

.shell {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* numerals and codes only — tabular, never prose */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* a label stays a label; it is not an eyebrow above every heading */
.label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==================== buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-2);
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
  transition: background-color 0.2s var(--quart), color 0.2s var(--quart),
    border-color 0.2s var(--quart), transform 0.14s var(--quart);
}
.btn-signal {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-signal:hover {
  background: var(--primary-bright);
}
.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-3);
  background: var(--bg-elevated);
}
.btn:active {
  transform: scale(0.97);
}
/* the dock CTA tracks the cursor; JS owns its transform, CSS owns the sheen */
.dock-cta {
  position: relative;
  overflow: hidden;
}
.dock-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--exp);
  pointer-events: none;
}
.dock-cta:hover::after {
  transform: translateX(120%);
}

/* ==================== sticky dock ==================== */
.dock {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-dock);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  /* fixed dock + viewport-fit=cover: clear the notch instead of sitting under it */
  padding: calc(0.65rem + env(safe-area-inset-top, 0px)) var(--gutter) 0.65rem;
  /* blur is purposeful here: it reports content sliding underneath */
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--quart), background-color 0.3s var(--quart);
}
.dock[data-lifted="true"] {
  border-bottom-color: var(--hairline);
  background: rgba(12, 15, 20, 0.92);
}
.dock-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}
/* the lockup is 3.7:1, so its letters read much smaller than its box height;
   it needs real height to hold its own against the nav */
.dock-mark img {
  height: 38px;
  width: auto;
}
.foot-mark img {
  height: 54px;
  width: auto;
}
.dock-nav {
  display: flex;
  gap: var(--s-3);
  font-size: var(--fs-small);
}
.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-3);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.dock-nav a:hover {
  color: var(--text);
}
.dock-nav a[aria-current="true"] {
  color: var(--text);
  border-bottom-color: var(--primary);
}
.dock-right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.lang {
  display: flex;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-2);
  overflow: hidden;
}
.lang-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.55rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  transition: color 0.2s, background-color 0.2s;
}
.lang-btn + .lang-btn {
  border-left: 1px solid var(--hairline-strong);
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
}

/* progress rail — native scroll-driven, no JS */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary));
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: rail-grow linear both;
  animation-timeline: scroll(root block);
}
@keyframes rail-grow {
  to {
    transform: scaleX(1);
  }
}

/* ==================== section frame ==================== */
.band {
  position: relative;
  padding-block: var(--s-7);
}
/* Heading left, lead right, baselines aligned — a section opens across the
   page instead of stacking in a narrow left-hand column. */
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-3) var(--s-5);
  align-items: end;
  margin-bottom: var(--s-6);
}
/* ch resolves against the element's own font-size, so it belongs on the h2 */
.band-head h2 {
  max-width: 24ch;
}
.band-head p {
  max-width: 44ch;
  font-size: var(--fs-lead);
  padding-bottom: 0.35rem;
}

/* ==================== hero ==================== */
.hero {
  position: relative;
  padding-block: clamp(6.5rem, 12vh, 8.5rem) var(--s-6);
  overflow: hidden;
}
/* the field is the product idea, not decoration: one request, many answers */
.field {
  position: absolute;
  inset: 0;
  z-index: var(--z-field);
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* fade the emitter field out before it reaches the copy */
  /* the field belongs around the device; the copy column stays quiet */
  mask-image: radial-gradient(
    78% 68% at 80% 42%,
    #000 0%,
    #000 26%,
    transparent 72%
  );
}
.hero-grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s-6) var(--s-5);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-3);
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-kicker i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
/* line masks: each line rides up from behind its own edge */
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.04em;
}
.hero h1 .ln > span {
  display: block;
}
.hero-sub {
  margin-top: var(--s-3);
  max-width: 46ch;
  font-size: var(--fs-lead);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* store badges: real platform lockups, not generic buttons */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.5rem 1.1rem 0.5rem 0.95rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-2);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, transform 0.16s var(--quart);
}
.store:hover {
  border-color: var(--text-3);
  background: var(--surface);
}
.store:active {
  transform: scale(0.98);
}
.store svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.store > span {
  display: block;
}
.store span span {
  display: block;
  font-size: var(--fs-micro);
  line-height: 1.3;
  color: var(--text-3);
}
.store strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* store badges while the app is not published yet */
.store[data-soon="true"] {
  cursor: default;
  border-style: dashed;
  border-color: var(--hairline-strong);
  color: var(--text-2);
}
.store[data-soon="true"] svg { opacity: 0.65; }
.store[data-soon="true"] strong { color: var(--text-2); }
.store[data-soon="true"]:hover {
  background: var(--bg-elevated);
  border-color: var(--hairline-strong);
}
.store-soon {
  align-self: flex-start;
  margin-left: 0.15rem;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.store-note {
  margin-top: var(--s-2);
  max-width: 46ch;
  font-size: var(--fs-small);
  color: var(--text-3);
}
.get .store[data-soon="true"] {
  border-color: rgba(4, 19, 13, 0.3);
  color: rgba(4, 19, 13, 0.75);
}
/* the badge on the drenched fold is dark, so the pill reads emerald here too;
   near-black on near-black was invisible (1.00:1) */
.get .store-soon {
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---- hero stage: device + nameplate ---- */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

/* the hero device carries the perspective; Motion drives .device's transform */
.device-tilt {
  width: min(100%, 20.5rem);
  transform: perspective(1400px) rotateY(-13deg) rotateX(3deg) rotateZ(0.6deg);
}
.device-tilt .device {
  width: 100%;
}

/* the film panel — a hairline frame, not a device shell */
.film-frame {
  position: relative;
  width: min(100%, 24rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.film-frame > video {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  display: block;
  border-radius: var(--r-3);
  border: 1px solid var(--hairline-strong);
  background: var(--bg);
  object-fit: cover;
}
.film-cap {
  display: flex;
  justify-content: center;
}

/* the hero device plays the real film, so the screen is the asset.
   The film is authored 1080x1920 (9:16); the generic device shell is 9:17.8,
   and cover-cropping it would cut the captions the film depends on. Match the
   shell to the footage instead. */
/* `.device` declares 9/17.8 later in the file, so this needs the extra
   specificity to win. The shell takes its height from the screen. */
.device.device-film {
  aspect-ratio: auto;
}
.device.device-film .device-screen {
  aspect-ratio: 9 / 16;
  height: auto;
  padding: 0;
}
.film {
  /* the screen's height comes from aspect-ratio, so a percentage height on the
     video has nothing to resolve against — pin it to the box instead */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
/* motion the viewer did not ask for needs a way out */
.film-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: var(--s-2);
  padding: 0 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: color 0.2s, border-color 0.2s;
}
.film-toggle:hover {
  color: var(--text);
  border-color: var(--text-3);
}
.film-toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--primary);
}
.film-toggle[aria-pressed="false"] .film-toggle-dot {
  border-radius: 50%;
}

/* equipment nameplate — spec, not a hero-metric row */
.plate {
  width: min(100%, 22rem);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-2);
  background: var(--bg-elevated);
  overflow: hidden;
}
.plate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.55rem 0.9rem;
}
.plate-row + .plate-row {
  border-top: 1px solid var(--hairline);
}
.plate-row dt {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.plate-row dd {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.plate-row dd u {
  text-decoration: none;
  color: var(--text-3);
  font-size: 0.7rem;
}

/* ==================== device + app screens ==================== */
.device {
  position: relative;
  width: min(100%, 20.5rem);
  aspect-ratio: 9 / 17.8;
  padding: 9px;
  border-radius: var(--r-device);
  background: linear-gradient(
    160deg,
    #39414d,
    #161b22 38%,
    #2b323c
  );
  box-shadow: 0 2px 0 #454e5b inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px #0a0d12;
}
.device-screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--r-device) - 9px);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.device-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 20px;
  border-radius: 100px;
  background: #07090d;
  z-index: 4;
}

.scr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem 0.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-2);
}
.scr-bar-icons {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.scr-bar-icons i {
  display: block;
  width: 2.5px;
  border-radius: 1px;
  background: var(--text-2);
}
.scr-bar-icons i:nth-child(1) {
  height: 4px;
}
.scr-bar-icons i:nth-child(2) {
  height: 6px;
}
.scr-bar-icons i:nth-child(3) {
  height: 8px;
}
.scr-bar-icons i:nth-child(4) {
  height: 10px;
}

/* stage stack: every screen stays in flow, only opacity changes */
.scr-stack {
  position: relative;
  flex: 1;
  min-height: 0;
}
.scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--quart), visibility 0.4s;
}
.scr[data-on="true"] {
  opacity: 1;
  visibility: visible;
}
.scr-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.02em;
}
.scr-note {
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--text-3);
}

/* vehicle chip inside the app */
.scr-car {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-2);
  background: var(--bg-elevated);
}
.scr-car-badge {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary);
}
.scr-car-badge svg {
  width: 15px;
  height: 15px;
}
.scr-car b {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.scr-car span {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-3);
}

/* part rows */
.scr-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scr-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.44rem 0.55rem;
  border-radius: 7px;
  background: var(--bg-elevated);
  font-size: 0.7rem;
  color: var(--text-2);
}
.scr-item i {
  width: 13px;
  height: 13px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--primary);
  color: var(--on-primary);
}
.scr-item i svg {
  width: 9px;
  height: 9px;
}
.scr-item em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-style: normal;
  color: var(--text-3);
}

/* group label inside the app screen */
.scr-sub {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* completeness meter */
.scr-meter {
  margin-top: auto;
}
.scr-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.62rem;
  color: var(--text-3);
  margin-bottom: 5px;
}
.scr-meter-head b {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--primary);
}
.scr-meter-track {
  height: 3px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}
.scr-meter-fill {
  height: 100%;
  width: 86%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary));
}
.scr-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 650;
}

/* request-kind chooser */
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
  50% {
    height: 24px;
  }
}

/* "Что вам нужно?" — the app's own entry screen */
.scr-ask {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.scr-kinds {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scr-kind {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--glass);
  text-align: left;
  cursor: default;
}
.scr-kind-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}
.scr-kind[data-kind="part"] .scr-kind-dot { background: var(--mode-part); }
.scr-kind[data-kind="service"] .scr-kind-dot { background: var(--mode-service); }
.scr-kind[data-kind="car"] .scr-kind-dot { background: var(--mode-car); }
.scr-kind b {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}
.scr-kind span span {
  display: block;
  font-size: 0.58rem;
  line-height: 1.4;
  color: var(--text-3);
}

/* capability tile: the three request kinds */
.modes {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.modes li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  background: var(--surface);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.modes i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.modes li[data-kind="part"] i { background: var(--mode-part); }
.modes li[data-kind="service"] i { background: var(--mode-service); }
.modes li[data-kind="car"] i { background: var(--mode-car); }

/* offers screen */
.scr-offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 9px;
  background: var(--bg-elevated);
}
.scr-offer[data-best="true"] {
  border-color: var(--ai);
  background: var(--ai-soft);
}
.scr-offer b {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}
.scr-offer-price {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.scr-offer-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  color: var(--text-3);
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ai);
}
.scr-ai {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.63rem;
  line-height: 1.45;
  color: var(--text-2);
}
.scr-ai svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
  color: var(--ai);
}

/* screen page dots */
.scr-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding-bottom: 0.45rem;
}
.scr-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.scr-dots button::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-hi);
  transition: background-color 0.3s, width 0.3s var(--quart);
}
.scr-dots button[data-on="true"]::before {
  width: 16px;
  border-radius: 3px;
  background: var(--primary);
}
.scr-dots button:hover::before {
  background: var(--primary-deep);
}

/* ==================== brand rail ==================== */
.strip {
  border-block: 1px solid var(--hairline);
  padding-block: var(--s-3);
  overflow: hidden;
}
.strip-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.strip-head b {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
/* edges dissolve instead of being cut */
.strip-mask {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.strip-track {
  display: flex;
  gap: var(--s-4);
  width: max-content;
  animation: slide 52s linear infinite;
}
.strip-mask:hover .strip-track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.strip-track span {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.25s;
}
.strip-track span:hover {
  color: var(--text);
}

/* ==================== the inversion ==================== */
.inv-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: var(--s-4);
  align-items: stretch;
}
.inv-col {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-3);
}
.inv-old {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.2);
}
.inv-new {
  background: linear-gradient(
    180deg,
    var(--primary-soft),
    rgba(17, 21, 27, 0) 62%
  );
  border-color: rgba(31, 209, 123, 0.32);
}
.inv-col figcaption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.inv-new figcaption {
  color: var(--primary);
}
.inv-col h3 {
  margin-top: var(--s-2);
  max-width: 22ch;
}
.inv-diagram {
  margin-block: var(--s-4);
  width: 100%;
  overflow: visible;
}
.inv-facts {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}
.inv-facts li {
  display: flex;
  flex-direction: column;
}
.inv-facts b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.inv-new .inv-facts b {
  color: var(--primary);
}
.inv-facts span {
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ==================== process ==================== */
.proc-scene {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.proc-stage {
  position: sticky;
  top: 6.5rem;
  display: flex;
  justify-content: center;
}
.proc-steps {
  display: flex;
  flex-direction: column;
}
.proc-step {
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--hairline);
  transition: opacity 0.45s var(--quart);
}
.proc-step:first-child {
  border-top: 0;
}
.proc-step[data-on="false"] {
  opacity: 0.42;
}
.proc-num {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-3);
  transition: color 0.35s, border-color 0.35s, background-color 0.35s;
}
.proc-step[data-on="true"] .proc-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.proc-step p {
  margin-top: 0.4rem;
  max-width: 44ch;
}
.proc-step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: var(--r-2);
}
.proc-step:hover .proc-num {
  border-color: var(--primary);
  color: var(--primary);
}
.proc-step[data-on="true"]:hover .proc-num {
  color: var(--on-primary);
}

/* ==================== capabilities (art-directed bento) ==================== */
.caps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-2);
}
.cap {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-3);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  overflow: hidden;
}
.cap h3 {
  letter-spacing: -0.025em;
}
.cap p {
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 40ch;
}
.cap-art {
  margin-top: auto;
  padding-top: var(--s-3);
}

.cap-trust {
  grid-column: 1 / 5;
  flex-direction: row;
  align-items: center;
  gap: var(--s-4);
  background: linear-gradient(110deg, var(--glass), var(--primary-soft));
}
.cap-trust .cap-body {
  flex: 1;
}
.cap-trust .cap-art {
  margin: 0;
  padding: 0;
  flex: none;
  width: clamp(8rem, 13vw, 11rem);
}
.cap-modes {
  grid-column: 5 / 7;
}
.cap-summary {
  grid-column: 1 / 3;
  grid-row: 2 / 4;
}
/* This tile is two rows tall; letting `margin-top: auto` run would strand the
   offers at the very bottom. Keep them with the sentence they illustrate. */
.cap-summary .cap-art {
  margin-top: 0;
}
.cap-power {
  grid-column: 3 / 7;
  grid-row: 2;
}
.cap-vin {
  grid-column: 3 / 5;
  grid-row: 3;
}
.cap-dash {
  grid-column: 5 / 7;
  grid-row: 3;
}

/* trust gauge */
.gauge {
  width: 100%;
  overflow: visible;
}
.gauge-track {
  fill: none;
  stroke: var(--surface);
  stroke-width: 7;
  stroke-linecap: round;
}
.gauge-fill {
  fill: none;
  /* trustColor(91) in the app returns the emerald band */
  stroke: var(--primary);
  stroke-width: 7;
  stroke-linecap: round;
  /* Static resting state = the real reading (91 of an arc 157.08 long).
     Motion re-declares this and sweeps the dial up from zero. */
  stroke-dasharray: 142.94 157.08;
}
.gauge-val {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  fill: var(--text);
  letter-spacing: -0.04em;
}
.gauge-cap {
  font-family: var(--font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--text-3);
}
.gauge-ticks line {
  stroke: var(--hairline-strong);
  stroke-width: 1.5;
}

/* powertrain switch */
.power {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.power-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-3);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.power-chip:hover {
  color: var(--text);
  border-color: var(--text-3);
}
.power-chip[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.power-out {
  margin-top: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 2.6rem;
}
.power-out span {
  padding: 0.24rem 0.6rem;
  border-radius: 5px;
  background: var(--surface);
  font-size: 0.7rem;
  color: var(--text-2);
}
.power-out span[hidden] {
  display: none;
}
.power-note {
  margin-top: var(--s-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.power-note b {
  font-family: var(--mono);
  color: var(--primary);
}

/* offer comparison strip inside the summary tile */
.mini-offer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.72rem;
}
.mini-offer + .mini-offer {
  margin-top: 7px;
}
.mini-note {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-3);
}
.mini-offer b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
}
.mini-offer[data-pick="true"] {
  background: var(--ai-soft);
  box-shadow: inset 0 0 0 1px var(--ai);
}
.mini-tag {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ai);
}

/* vin scan frame */
.scan {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2);
  background: var(--surface);
  overflow: hidden;
}
.scan-label {
  position: absolute;
  inset: 18% 0 auto 0;
  text-align: center;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scan-code {
  position: absolute;
  inset: auto 0 20% 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}
.scan-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
}
.scan-bracket:nth-of-type(1) {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.scan-bracket:nth-of-type(2) {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}
.scan-bracket:nth-of-type(3) {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}
.scan-bracket:nth-of-type(4) {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}
.scan-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 12px 2px rgba(31, 209, 123, 0.5);
  animation: beam 3.4s var(--quart) infinite;
}
@keyframes beam {
  0%,
  100% {
    top: 14%;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  50% {
    top: 82%;
  }
}

/* ---- dashboard tile ----
   A miniature of the app's home screen, not an abstract pattern. The three
   metrics are the ones `(tabs)/index.tsx` actually shows — active requests,
   new offers, cars in garage — each with the accent it carries there.

   The card tilts toward the pointer by the same 12deg `Tilt3DCard` uses in
   the app, and its layers sit at different depths, so the parallax the copy
   promises is real 3D rather than a painted highlight.

   What this replaced drew four rectangles in `--surface` on a `--glass`
   card — 1.04:1 against their own background, so the art was invisible. */
.dash {
  perspective: 900px;
}
.dash-card {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2);
  background: linear-gradient(152deg, var(--surface-alt), var(--surface));
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* while the pointer is on the card it leads directly; the transition is only
   there to carry the card back to rest once the pointer leaves */
.dash-card.is-live {
  transition: none;
}
.dash-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.1),
    transparent 62%
  );
}
.dash-card.is-live .dash-sheen {
  opacity: 1;
}

.dash-plate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-1);
  background: var(--surface-hi);
  transform: translateZ(26px);
}
.dash-plate b {
  font-size: var(--fs-small);
  color: var(--text);
  letter-spacing: -0.01em;
}
/* --text-3 reads 3.73:1 on --surface-hi, under AA for text this small */
.dash-plate .num {
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  transform: translateZ(13px);
}
.dash-metrics li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 3px 7px;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-1);
  background: var(--surface);
}
.dash-metrics i {
  position: relative;
  grid-area: 1 / 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
/* The app wakes its bell with a short swing every ~4s while offers sit
   unread. The cyan dot carries that same signal, so the tile has a pulse
   even where there is no pointer to tilt it. */
.dash-metrics li[data-k="offers"] i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ai);
  opacity: 0;
  animation: dash-ping 4s ease-out infinite;
}
@keyframes dash-ping {
  0%,
  70% {
    transform: scale(0.55);
    opacity: 0;
  }
  77% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
.dash-metrics b {
  grid-area: 1 / 2;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}
.dash-metrics span {
  grid-area: 2 / 1 / 3 / -1;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--text-2);
}
.dash-metrics li[data-k="active"] i { background: var(--primary); }
.dash-metrics li[data-k="offers"] i { background: var(--ai); }
.dash-metrics li[data-k="garage"] i { background: var(--warning); }

.dash-hint {
  display: none;
  margin-top: var(--s-2);
  font-size: 0.7rem;
  color: var(--text-2);
}
/* only promise a hover response where there is a pointer to hover with */
@media (hover: hover) and (pointer: fine) {
  .dash-hint { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-card,
  .dash-sheen {
    transition: none;
  }
  .dash-metrics li[data-k="offers"] i::after {
    animation: none;
  }
  .dash-hint { display: none; }
}

/* ==================== the AI ==================== */
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}
/* the seven blocks are a real ordered set the engine produces, so they are
   numbered — the numbers carry information, they are not scaffolding */
.ai-blocks {
  counter-reset: aib;
  border-top: 1px solid var(--hairline);
}
.ai-blocks li {
  counter-increment: aib;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0 var(--s-2);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--hairline);
}
.ai-blocks li::before {
  content: counter(aib, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 0.2rem;
}
.ai-blocks b {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.ai-blocks span {
  grid-column: 2;
  font-size: var(--fs-small);
  color: var(--text-3);
}
.ai-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.ai-note {
  padding: var(--s-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-3);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
}
.ai-note h3 {
  margin-bottom: 0.4rem;
}
.ai-note p {
  font-size: var(--fs-small);
  line-height: 1.6;
}
.ai-signals {
  margin-top: var(--s-2);
  display: grid;
  gap: 0.4rem;
}
.ai-signals li {
  display: grid;
  grid-template-columns: 0.9rem 1fr;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.ai-signals li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55em;
  border-radius: 1px;
  background: var(--primary);
}
.ai-foot {
  margin-top: var(--s-4);
  max-width: 62ch;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

/* ==================== two sides ==================== */
.sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-3);
  overflow: hidden;
}
.side {
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.side + .side {
  border-left: 1px solid var(--hairline-strong);
}
.side-buyer {
  background: linear-gradient(200deg, var(--primary-soft), var(--bg) 70%);
}
.side-seller {
  background: linear-gradient(160deg, var(--ai-soft), var(--bg) 70%);
}
.side-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.side-buyer .side-tag {
  color: var(--primary);
}
.side-seller .side-tag {
  color: var(--ai);
}
.side-tag i {
  width: 18px;
  height: 1px;
  background: currentColor;
}
.side h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.side > p {
  max-width: 40ch;
}
.side-list {
  margin-top: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.side-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.side-list svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}
.side-buyer .side-list svg {
  color: var(--primary);
}
.side-seller .side-list svg {
  color: var(--ai);
}

/* ==================== download — the drenched fold ==================== */
.get {
  position: relative;
  padding-block: var(--s-7);
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
}
/* machined hatch keeps a flat colour field from going dead */
.get::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(4, 19, 13, 0.055) 0 2px,
    transparent 2px 9px
  );
  pointer-events: none;
}
.get-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: center;
}
.get h2 {
  color: var(--on-primary);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  max-width: 24ch;
}
.get p {
  margin-top: var(--s-2);
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: rgba(4, 19, 13, 0.82);
}
.get-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.get .store {
  background: var(--on-primary);
  border-color: rgba(4, 19, 13, 0.35);
  color: var(--primary);
}
.get .store:hover {
  background: #0a2418;
  border-color: var(--on-primary);
}
.get .store span span {
  color: rgba(31, 209, 123, 0.72);
}
.get .store strong {
  color: var(--primary);
}
.get .get-mark {
  margin: 0;
  max-width: none;
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: rgba(4, 19, 13, 0.18);
  user-select: none;
}

/* ==================== footer ==================== */
footer {
  padding-block: var(--s-6) var(--s-4);
  border-top: 1px solid var(--hairline);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: space-between;
}
.foot-mark {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.17em;
  color: var(--text);
}
.foot-lede p {
  margin-top: var(--s-2);
  max-width: 32ch;
  font-size: var(--fs-small);
}
.foot-cols {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.foot-col h4 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-2);
}
.foot-col li {
  font-size: var(--fs-small);
}
/* each link carries its own 44px box; plain list items still need the gap */
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot-col li:not(:has(a)) + li {
  margin-top: 0.45rem;
}
.foot-col a:hover {
  color: var(--text);
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-micro);
  color: var(--text-3);
}

/* ==================== responsive ==================== */
@media (max-width: 1080px) {
  .band-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .band-head h2,
  .band-head p {
    max-width: 46ch;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .device-tilt {
    transform: none;
  }
  .hero-stage {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: var(--s-4);
    flex-wrap: wrap;
  }
    .field {
    mask-image: radial-gradient(
      125% 55% at 50% 20%,
      #000 0%,
      #000 42%,
      transparent 80%
    );
  }
  .caps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cap-trust {
    grid-column: 1 / 5;
    grid-row: 1;
  }
  .cap-modes {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .cap-summary {
    grid-column: 3 / 5;
    grid-row: 2;
  }
  .cap-power {
    grid-column: 1 / 5;
    grid-row: 3;
  }
  .cap-vin {
    grid-column: 1 / 3;
    grid-row: 4;
  }
  .cap-dash {
    grid-column: 3 / 5;
    grid-row: 4;
  }
  .proc-scene {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .ai-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .proc-stage {
    position: static;
  }
  .inv-pair {
    grid-template-columns: 1fr;
  }
  .get-grid {
    grid-template-columns: 1fr;
  }
  .get .get-mark {
    display: none;
  }
}

@media (max-width: 860px) {
  .dock-nav {
    display: none;
  }
  .sides {
    grid-template-columns: 1fr;
  }
  .side + .side {
    border-left: 0;
    border-top: 1px solid var(--hairline-strong);
  }
  .cap-trust {
    flex-direction: column;
    align-items: flex-start;
  }
  .cap-trust .cap-art {
    width: min(100%, 11rem);
    align-self: center;
  }
}

@media (max-width: 620px) {
  :root {
    --s-7: 4rem;
    --s-6: 3rem;
  }
  .dock {
    gap: var(--s-2);
    padding-inline: var(--s-2);
  }
  .dock-mark {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }
  .lang-btn {
    min-width: 44px;
    padding: 0 0.3rem;
  }
  .dock-cta {
    padding: 0.7rem 0.9rem;
  }
  /* a phone-sized device on a phone leaves room for the copy above it */
    .caps {
    grid-template-columns: 1fr;
  }
  .cap,
  .cap-trust,
  .cap-modes,
  .cap-summary,
  .cap-power,
  .cap-vin,
  .cap-dash {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .hero-stage .plate {
    width: 100%;
  }
  .band-head h2 {
    max-width: none;
  }
}

/* Телефон: лого, переключатель языка и кнопка раздела не влезают в одну строку.
   Казахская подпись «Қалай жұмыс істейді» — 160px, и на 320px флекс сжимал
   лого до нуля (`flex-shrink` плюс `img { max-width: 100% }`), то есть зажимал
   именно имя компании. Развожу по строкам: бренд и язык сверху — обе ширины
   от языка не зависят, — а кнопка уходит на свою строку во всю ширину, где
   длина подписи уже ничего не выдавливает. */
@media (max-width: 560px) {
  .dock {
    flex-wrap: wrap;
    row-gap: var(--s-1);
  }
  /* ни лого, ни переключатель не отдают свою ширину: сжатое лого кривит знак */
  .dock-mark,
  .lang {
    flex: 0 0 auto;
  }
  .dock-mark img {
    height: 30px;
    max-width: none;
  }
  /* обёртка перестаёт быть коробкой — кнопка получает собственную строку */
  .dock-right {
    display: contents;
  }
  .dock-cta {
    flex: 1 0 100%;
  }
  /* док стал двухстрочным — hero обязан начинаться ниже него, а не под ним.
     8.5rem = отступ дока 0.65rem×2 + строка языка 2.875rem + зазор 0.5rem
     + кнопка 3rem, плюс воздух. Та же высота нужна якорям: без неё переход по
     «Как работает» ставил заголовок раздела под шапку. */
  .hero {
    padding-top: calc(8.5rem + env(safe-area-inset-top, 0px));
  }
  html {
    scroll-padding-top: calc(8.5rem + env(safe-area-inset-top, 0px));
  }
}

/* Узкий телефон (Galaxy Fold и подобные): те же две строки, но лого и кнопки
   языка ужимаются ещё на шаг, чтобы строка бренда осталась целой. */
@media (max-width: 340px) {
  .dock-mark img {
    height: 26px;
  }
  .lang-btn {
    min-width: 40px;
    padding: 0 0.2rem;
  }
}

/* ==================== reduced motion ==================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* keep screen swaps as crossfades rather than hard snaps */
  .scr {
    transition: opacity 0.2s linear, visibility 0.2s !important;
  }
  .proc-step[data-on="false"] {
    opacity: 1;
  }
  .strip-track {
    animation: none;
  }
  .rail {
    display: none;
  }
}
