/*
 * impost.com.ua — the public site's one stylesheet (quick 261129-ril).
 *
 * Light glass in Impost's OWN colours by default (owner, 29.11.2026: no lime anywhere): the
 * ground, ink, indigo and factory-green values are copied from apps/web globals.css and the logo;
 * nothing is imported from apps/web. Dark only through the ☾/☀ button (html[data-theme="dark"]).
 * The factory page carries data-accent="factory" and switches the accent to the factory green.
 *
 * Contrast: #6366f1 / #0fa24c and coral are decoration and focus rings only, never text. Text
 * links and accent text use the hover step (#4d4ad3, factory #086d31); buttons with white text and
 * large text use the primary (#5d5ee9, factory #0c813c).
 *
 * No overflow-x on html/body on purpose: the walk measures real overflow and must see it.
 */

:root {
  color-scheme: light;
  --font: Urbanist, Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ground: #f4f5f7;
  --ink: #172546;
  --muted: #475467;
  --brand: #6366f1;
  --primary: #5d5ee9;
  --primary-hover: #4d4ad3;
  --on-primary: #ffffff;
  --link: #4d4ad3;
  --ring: #6366f1;
  --coral: #ff9a7c;
  --sky: #8cb4ff;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.75);
  --panel: rgba(255, 255, 255, 0.94);
  --inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(23, 37, 70, 0.05), 0 18px 40px -18px rgba(23, 37, 70, 0.22);
  --hairline: rgba(23, 37, 70, 0.08);
  --skeleton: rgba(23, 37, 70, 0.1);
  --accent-soft: rgba(99, 102, 241, 0.12);
  --pill-track: rgba(23, 37, 70, 0.05);
  --pill-active-bg: #172546;
  --pill-active-fg: #ffffff;
  --solid-bg: #172546;
  --solid-fg: #ffffff;

  --glow-a: rgba(99, 102, 241, 0.2);
  --glow-b: rgba(140, 180, 255, 0.26);
  --glow-c: rgba(255, 154, 124, 0.22);

  /* The drawn TSD screen keeps the app's own light colours in both site themes. */
  --tsd-accent: #5d5ee9;
  --tsd-accent-text: #4d4ad3;
  --tsd-accent-soft: rgba(99, 102, 241, 0.12);

  --radius: 22px;
  --radius-sm: 14px;
  --t-fast: 0.18s;
  --t-mid: 0.32s;
  --gutter: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111827;
  --ink: #f3f4f6;
  --muted: #b6bfcc;
  --brand: #a5b0ff;
  --primary: #a5b0ff;
  --primary-hover: #bec7ff;
  --on-primary: #2b3150;
  --link: #a5b0ff;
  --ring: #a5b0ff;

  --glass: rgba(31, 41, 55, 0.5);
  --glass-strong: rgba(31, 41, 55, 0.78);
  --glass-border: rgba(255, 255, 255, 0.15);
  --panel: rgba(17, 24, 39, 0.96);
  --inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --hairline: rgba(255, 255, 255, 0.1);
  --skeleton: rgba(255, 255, 255, 0.14);
  --accent-soft: rgba(165, 176, 255, 0.14);
  --pill-track: rgba(255, 255, 255, 0.06);
  --pill-active-bg: rgba(255, 255, 255, 0.16);
  --pill-active-fg: #f3f4f6;
  --solid-bg: #f3f4f6;
  --solid-fg: #111827;

  --glow-a: rgba(99, 102, 241, 0.26);
  --glow-b: rgba(76, 96, 200, 0.18);
  --glow-c: rgba(255, 154, 124, 0.14);
}

html[data-accent="factory"] {
  --brand: #0fa24c;
  --primary: #0c813c;
  --primary-hover: #086d31;
  --link: #086d31;
  --ring: #0fa24c;
  --accent-soft: rgba(15, 162, 76, 0.12);
  --glow-a: rgba(15, 162, 76, 0.16);
  --tsd-accent: #0c813c;
  --tsd-accent-text: #086d31;
  --tsd-accent-soft: rgba(15, 162, 76, 0.12);
}

html[data-theme="dark"][data-accent="factory"] {
  --brand: #65c77e;
  --primary: #65c77e;
  --primary-hover: #92d4a0;
  --on-primary: #1f3a25;
  --link: #65c77e;
  --ring: #65c77e;
  --accent-soft: rgba(101, 199, 126, 0.14);
  --glow-a: rgba(101, 199, 126, 0.16);
}

/* ── Base ──────────────────────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* The glows: one fixed layer behind everything (not background-attachment: fixed). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 6%, var(--glow-a), transparent 70%),
    radial-gradient(38% 34% at 88% 14%, var(--glow-b), transparent 70%),
    radial-gradient(46% 40% at 78% 96%, var(--glow-c), transparent 72%),
    radial-gradient(30% 30% at 8% 80%, var(--glow-b), transparent 70%);
}

html[data-theme="dark"] body::before {
  background:
    radial-gradient(60% 40% at 50% -6%, var(--glow-a), transparent 72%),
    radial-gradient(36% 30% at 92% 10%, var(--glow-b), transparent 70%),
    radial-gradient(56% 36% at 50% 108%, var(--glow-c), transparent 72%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

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

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--solid-bg);
  color: var(--solid-fg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ── Glass, buttons, chips ─────────────────────────────────────────────────────────────── */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--inset-light), var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-fast) ease,
    background-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -12px var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-glass {
  background-color: var(--glass-strong);
  border-color: var(--glass-border);
  color: var(--ink);
  box-shadow:
    var(--inset-light),
    0 6px 18px -12px rgba(23, 37, 70, 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--t-fast) ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: var(--inset-light);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.dot-brand {
  background: var(--brand);
}

.dot-sky {
  background: var(--sky);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.sk {
  display: block;
  flex: none;
  height: 10px;
  border-radius: 999px;
  background: var(--skeleton);
}

/* ── Header and the pill navigation ────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 12px;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 8px;
}

.logo img {
  width: auto;
  height: 36px;
}

.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pills {
  position: relative;
  margin-inline: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--pill-track);
}

.pill-list {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-mid) ease;
}

.pill[aria-current] {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

.pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--pill-left, 4px);
  right: var(--pill-right, 100%);
  z-index: 0;
  border-radius: 999px;
  background: var(--pill-active-bg);
  opacity: 0;
  pointer-events: none;
}

.pills.has-indicator .pill[aria-current] {
  background: transparent;
  color: var(--ink);
}

.pills.has-indicator .pill.is-lit {
  color: var(--pill-active-fg);
}

.pills.has-indicator .pill-indicator.is-on {
  opacity: 1;
}

/* Direction-dependent edges: the leading edge is fast, the trailing one follows (site.js). */
.pills.is-animated .pill-indicator {
  transition:
    left var(--pill-dur-left, 0.36s) cubic-bezier(0.3, 0.7, 0.2, 1),
    right var(--pill-dur-right, 0.36s) cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity var(--t-fast) ease;
}

.header-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -5px;
}

.menu-bars::after {
  top: 5px;
}

/* ── Sections ──────────────────────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h2 {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split > * {
  min-width: 0;
}

.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--brand) 0 3px, transparent 3.5px), var(--accent-soft);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.features-col {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  min-width: 0;
  padding: 24px;
  transition: transform var(--t-mid) ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1875rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9875rem;
}

.card .eyebrow {
  margin-bottom: 12px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.125rem, 4.4vw, 3.75rem);
  line-height: 1.06;
}

.hero-lead {
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-sub {
  max-width: 52ch;
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
}

.page-hero .hero-text {
  max-width: 820px;
}

/* ── Drawn panels (mock screens: no data, no digits outside a data-unconfirmed sample) ──── */

.mock {
  position: relative;
  min-width: 0;
}

.mock-window {
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--skeleton);
}

.mock-bar span:first-child {
  background: var(--coral);
}

.mock-bar span:nth-child(2) {
  background: var(--brand);
}

.mock-app {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 340px;
}

.mock-side {
  display: grid;
  gap: 2px;
  align-content: start;
  margin: 0;
  padding: 14px 10px;
  border-right: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}

.mock-side li {
  padding: 7px 12px;
  border-radius: 10px;
}

.mock-side .is-on {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

.mock-main {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 16px;
}

.mock-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
}

.mock-lines {
  display: grid;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--sky));
}

.avatar.alt {
  background: linear-gradient(135deg, var(--coral), #ffc9a8);
}

.status {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 600;
}

.w30 {
  width: 30%;
}

.w45 {
  width: 45%;
}

.w60 {
  width: 60%;
}

.w75 {
  width: 75%;
}

.w-bar {
  width: 56px;
}

.mock-compare {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.cmp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.cmp-window {
  flex: none;
  width: 34px;
  height: 40px;
  border: 3px solid var(--brand);
  border-radius: 5px;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 3px 100% no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 100% 3px no-repeat;
}

.cmp-window.is-door {
  width: 26px;
  background: radial-gradient(circle at 75% 55%, var(--brand) 0 2.5px, transparent 3px);
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mock-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
}

.mock-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--accent-soft);
}

.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--glass-strong);
}

.cmp-row.is-best {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cmp-name {
  font-weight: 600;
}

.cmp-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.cmp-chip.is-empty {
  visibility: hidden;
}

/* ── The dealer cycle ──────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  min-width: 0;
  padding: 22px;
  counter-increment: step;
  transition: transform var(--t-mid) ease;
}

.step:hover {
  transform: translateY(-2px);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-family: Urbanist, var(--font);
  font-size: 0.875rem;
  font-weight: 600;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  line-height: 1.25;
}

.step p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ── The TSD showcase ──────────────────────────────────────────────────────────────────── */

.tsd {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tsd > * {
  min-width: 0;
}

.tsd-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  isolation: isolate;
}

.tsd-stage::before {
  content: "";
  position: absolute;
  inset: 6% 0 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(24px);
}

.tsd-device {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 612px;
  padding: 34px 14px 38px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2b3552 0%, #161c2f 55%, #0e1322 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 0 0 5px #1c2338,
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 34px 60px -24px rgba(23, 37, 70, 0.6),
    0 0 0 12px rgba(23, 37, 70, 0.06);
}

/* The scan window on the top edge, and the grip line at the bottom. */
.tsd-device::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 40%;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a2134, #3b4770 50%, #1a2134);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.tsd-device::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 24%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-50%);
}

.tsd-key {
  position: absolute;
  width: 6px;
  border-radius: 4px;
}

.tsd-key-scan {
  top: 34%;
  height: 66px;
  background: linear-gradient(#ffb8a3, var(--coral));
}

.tsd-key-l {
  left: -5px;
}

.tsd-key-r {
  right: -5px;
}

.tsd-key-vol {
  top: 18%;
  height: 40px;
  background: #3b4770;
}

.tsd-glass {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f5f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.tsd-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
  color: #172546;
  font-family: Manrope, var(--font);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6%);
  transition:
    opacity var(--t-mid) ease,
    transform var(--t-mid) ease,
    visibility 0s linear var(--t-mid);
}

.tsd-screen.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--t-mid) ease,
    transform var(--t-mid) ease,
    visibility 0s;
}

.tsd-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 2px;
}

.tsd-status .sk {
  width: 30px;
  height: 7px;
  background: rgba(23, 37, 70, 0.22);
}

.tsd-icons {
  display: flex;
  gap: 4px;
}

.tsd-icons span {
  width: 12px;
  height: 7px;
  border-radius: 2px;
  background: rgba(23, 37, 70, 0.3);
}

.tsd-appbar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 4px 2px;
}

.tsd-appbar b {
  font-size: 15px;
  font-weight: 600;
}

.tsd-appbar small {
  color: #475467;
  font-size: 10.5px;
}

.tsd-back {
  color: #475467;
  font-size: 15px;
}

.tsd-card {
  padding: 10px;
  border: 1px solid rgba(23, 37, 70, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.tsd-scan {
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: var(--tsd-accent);
  box-shadow: 0 0 0 3px var(--tsd-accent-soft);
}

.tsd-barcode {
  flex: none;
  width: 30px;
  height: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--tsd-accent) 0 2px,
    transparent 2px 4px,
    var(--tsd-accent) 4px 5px,
    transparent 5px 7px
  );
}

.tsd-scan b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.tsd-scan small,
.tsd-tile small,
.tsd-row small,
.tsd-meta {
  color: #475467;
  font-size: 10px;
}

.tsd-today {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--tsd-accent-soft);
  color: var(--tsd-accent-text);
  font-size: 10.5px;
  font-weight: 600;
}

.tsd-today .sk {
  width: 64px;
  height: 7px;
  background: var(--tsd-accent-soft);
}

.tsd-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tsd-tile {
  display: grid;
  gap: 2px;
  align-content: start;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(23, 37, 70, 0.08);
  border-radius: 12px;
  background: #ffffff;
}

.tsd-tile b {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
}

.tsd-tile.is-main {
  border-color: var(--tsd-accent);
}

.tsd-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  padding: 8px 6px 2px;
  border-top: 1px solid rgba(23, 37, 70, 0.08);
}

.tsd-tabbar span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(23, 37, 70, 0.14);
}

.tsd-tabbar .is-raised {
  width: 42px;
  height: 42px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--tsd-accent);
  box-shadow: 0 8px 16px -8px var(--tsd-accent);
}

.tsd-progress {
  display: grid;
  gap: 5px;
}

.tsd-progress-bar {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(var(--tsd-accent), var(--tsd-accent)) left / 64% 100% no-repeat,
    rgba(23, 37, 70, 0.1);
}

.tsd-rows {
  display: grid;
  gap: 6px;
}

.tsd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(23, 37, 70, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.tsd-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.tsd-row b {
  font-size: 11.5px;
  font-weight: 600;
}

.tsd-check {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 2.5px, transparent 3px), var(--tsd-accent);
}

.tsd-check.is-open {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(23, 37, 70, 0.25);
}

.tsd-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tsd-accent-soft);
  color: var(--tsd-accent-text);
  font-size: 10px;
  font-weight: 600;
}

.tsd-badge.is-missing {
  background: rgba(255, 154, 124, 0.22);
  color: #8a3a22;
}

.tsd-row.is-open {
  flex-wrap: wrap;
  border-color: var(--coral);
}

.tsd-actions {
  display: grid;
  flex-basis: 100%;
  gap: 5px;
}

.tsd-btn {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(23, 37, 70, 0.16);
  color: #172546;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
}

.tsd-btn.is-filled {
  border-color: var(--tsd-accent);
  background: var(--tsd-accent);
  color: #ffffff;
}

.tsd-bottom {
  margin-top: auto;
}

.tsd-big {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.tsd-big .sk {
  display: inline-block;
  width: 72px;
  height: 11px;
  margin-right: 4px;
  vertical-align: middle;
  background: rgba(23, 37, 70, 0.18);
}

.tsd-field {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(23, 37, 70, 0.08);
}

.tsd-field:last-child {
  border-bottom: 0;
}

.tsd-field b {
  font-size: 12px;
  font-weight: 600;
}

.tsd-field .sk {
  height: 8px;
  background: rgba(23, 37, 70, 0.12);
}

.tsd-field .sk.is-name {
  width: 70%;
  height: 12px;
  background: rgba(23, 37, 70, 0.2);
}

.tsd-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

html:not(.js) .tsd-tabs {
  display: none;
}

.tsd-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.tsd-tab[aria-pressed="true"] {
  border-color: var(--pill-active-bg);
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

.tsd-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsd-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 18px;
}

.tsd-points .dot {
  grid-row: span 2;
  margin-top: 0.55em;
}

.tsd-points h3 {
  font-size: 1.0625rem;
}

.tsd-points p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Prices ────────────────────────────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.price-num {
  color: var(--primary);
  font-family: Urbanist, var(--font);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-unit {
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 600;
}

.price-word {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
}

/* ── Closing band, factory panels, 404 ─────────────────────────────────────────────────── */

.cta-band {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 154, 124, 0.12)), var(--glass);
  text-align: center;
}

.cta-band .cta-row {
  justify-content: center;
}

.cta-band .lead {
  max-width: 56ch;
}

.request {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.request-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

.request-input {
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--glass-strong);
  box-shadow: inset 0 1px 2px rgba(23, 37, 70, 0.06);
}

.request-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawn-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.drawn-btn.is-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.ops {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.ops-grid > * {
  min-width: 0;
}

.h3-tsd {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.signin-line {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.signin-line p {
  color: var(--muted);
}

.not-found {
  display: grid;
  justify-items: start;
  gap: 18px;
  min-height: 46vh;
  align-content: center;
}

/* ── Footer and the contacts placeholder ───────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(32px, 5vw, 56px);
  padding-block: 44px 28px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-grid > * {
  min-width: 0;
}

[data-placeholder] {
  outline: 2px dashed var(--coral);
  outline-offset: 4px;
}

.contacts {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
}

.contacts h2 {
  font-size: 1.25rem;
}

.contacts p {
  color: var(--muted);
}

.footer-nav h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-bottom img {
  width: 24px;
  height: 24px;
}

/* ── Blog ──────────────────────────────────────────────────────────────────────────────── */

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-list > * {
  min-width: 0;
}

.post-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.post-card .eyebrow {
  margin-bottom: 0;
}

.post-card h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card a:hover,
.post-card a:focus-visible {
  text-decoration: underline;
}

.post-card time,
.post-meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.container-narrow {
  width: min(860px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumbs li {
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "›" / "";
  margin-inline: 4px 8px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs [aria-current] {
  color: var(--ink);
}

.post-head {
  display: grid;
  gap: 16px;
}

.post-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.post-body {
  min-width: 0;
  padding: clamp(20px, 4vw, 48px);
}

.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + *,
.prose .faq > * + *,
.prose .summary-box > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.6rem;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.2rem;
  line-height: 1.3;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
}

.prose .faq {
  margin-top: 2em;
}

.prose .faq h2 {
  margin-top: 0;
}

.summary-box {
  padding: 20px;
  border-left: 4px solid var(--brand);
  border-radius: 18px;
  background: var(--glass-strong);
}

.summary-box .summary-title {
  font-weight: 600;
}

.post-product {
  padding-left: 16px;
  border-left: 3px solid var(--coral);
}

.related {
  display: grid;
  gap: 14px;
}

.related h2 {
  font-size: 1.375rem;
}

.related ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related a {
  font-weight: 600;
  text-decoration: none;
}

.related a:hover,
.related a:focus-visible {
  text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────────────────────────────── */

/* The header folds into a menu earlier than the grids: its row needs ≈ 850 px. */
@media (max-width: 1024px) {
  .header-bar {
    border-radius: var(--radius);
    padding: 8px 8px 8px 16px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .js .site-header.is-open .site-menu {
    display: flex;
  }

  html:not(.js) .header-bar {
    flex-wrap: wrap;
  }

  html:not(.js) .site-menu {
    flex-basis: 100%;
    flex-wrap: wrap;
    order: 3;
  }

  .pills {
    margin: 0;
    padding: 0;
    background: none;
  }

  .pill-list {
    flex-direction: column;
    gap: 4px;
  }

  .pill {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .pill-indicator {
    display: none;
  }

  .pills.has-indicator .pill[aria-current] {
    background: var(--pill-active-bg);
    color: var(--pill-active-fg);
  }

  .pills.has-indicator .pill.is-lit:not([aria-current]) {
    color: var(--ink);
  }

  .header-actions {
    flex-direction: column;
  }
}

@media (max-width: 880px) {
  .hero-grid,
  .split,
  .tsd,
  .price-grid,
  .ops-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .mock-app {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .mock-side {
    padding-inline: 6px;
  }

  .mock-side li {
    padding-inline: 8px;
  }

  .cmp-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cmp-row .sk {
    display: none;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }
}

/* Every transition and animation to ~0 for people who asked the system for less motion. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0s;
    --t-mid: 0s;
  }

  html {
    scroll-behavior: auto;
  }

  .pills .pill-indicator,
  .pills.is-animated .pill-indicator,
  .tsd-screen,
  .tsd-screen.is-shown {
    transition: none;
  }

  .btn:hover,
  .icon-btn:hover,
  .card:hover,
  .step:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0s;
    animation-iteration-count: 1;
  }
}
