/* =========================================================================
   Relay — developer-infrastructure landing page
   Theme: LOCKED dark. One accent (emerald "signal"). Grotesk + Mono registers.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 5
   ========================================================================= */

:root {
  /* Surfaces (cool near-black, no pure #000) */
  --bg:            #0a0c10;
  --bg-alt:        #0c0f14;
  --surface:       #12161d;
  --surface-2:     #161b23;
  --surface-hi:    #1b212b;

  /* Hairlines */
  --line:          rgba(255,255,255,0.075);
  --line-2:        rgba(255,255,255,0.12);

  /* Text */
  --text:          #e9edf3;
  --text-2:        #9aa4b4;
  --text-3:        #6b7482;

  /* Single accent — emerald signal. Locked across the whole page. */
  --accent:        #34d39a;
  --accent-hi:     #4ee6ae;
  --accent-dim:    #1f8f6a;
  --accent-ink:    #04160f;   /* text on accent fills, high contrast */
  --accent-wash:   rgba(52,211,154,0.10);
  --accent-line:   rgba(52,211,154,0.28);

  --danger:        #f0785f;

  /* Code token colors (restrained) */
  --tok-comment:   #5f6b7a;
  --tok-string:    #7fd6b2;
  --tok-keyword:   #c8d2df;
  --tok-func:      #e9edf3;
  --tok-num:       #d7b26a;

  /* Radius scale — LOCKED: cards 14, buttons/inputs 10, pills full */
  --r-card: 14px;
  --r-ctrl: 10px;
  --r-pill: 999px;

  --maxw: 1200px;
  --shadow: 0 20px 50px -24px rgba(0,0,0,0.7);

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sprite { position: absolute; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--lg { width: 26px; height: 26px; stroke-width: 1.6; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: 0; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-ctrl); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: .95rem; font-weight: 560;
  padding: 10px 18px; border-radius: var(--r-ctrl);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--lg { padding: 13px 24px; font-size: 1rem; }

.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 620; }
.btn--primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--line:hover { border-color: var(--text-3); background: rgba(255,255,255,0.03); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text-2); padding: 9px 14px; }
.btn--ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 66px;
  padding: 0 24px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 640; font-size: 1.14rem; letter-spacing: -0.02em; }
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__word { color: var(--text); }

.nav__links { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.nav__links a { color: var(--text-2); font-size: .93rem; font-weight: 480; transition: color .16s var(--ease); }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
.nav__toggle .icon { width: 24px; height: 24px; }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 22px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mobile-nav a { padding: 13px 0; color: var(--text); border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.mobile-nav__actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav__actions .btn { flex: 1; }

/* ---------------------------------------------------------------- layout */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) 24px;
}
.section--alt { max-width: none; background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .74rem;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 620; margin: 0 0 18px;
}
.section__lead { color: var(--text-2); font-size: 1.075rem; line-height: 1.62; max-width: 62ch; margin: 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px clamp(30px, 5vw, 56px);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 620px; z-index: -1;
  background:
    radial-gradient(680px 380px at 72% 12%, rgba(52,211,154,0.13), transparent 62%),
    radial-gradient(560px 420px at 12% 0%, rgba(52,211,154,0.05), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.03;
  letter-spacing: -0.038em; font-weight: 650; margin: 0 0 22px;
  text-wrap: balance; max-width: 15ch;
}
.accent-word { color: var(--accent); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 46ch; margin: 0 0 30px; line-height: 1.55; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero__facts li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: .94rem; }
.hero__facts .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---------------------------------------------------------------- code block */
.code {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow);
}
.code__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.code__tabs { display: flex; gap: 2px; }
.code__tab {
  background: none; border: 0; color: var(--text-3); font-family: var(--mono);
  font-size: .8rem; padding: 7px 12px; border-radius: 8px; cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.code__tab:hover { color: var(--text-2); }
.code__tab.is-active { color: var(--text); background: var(--surface-hi); }
.code__copy {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line);
  color: var(--text-3); font-size: .78rem; font-family: var(--mono); padding: 6px 11px;
  border-radius: 8px; cursor: pointer; transition: all .16s var(--ease);
}
.code__copy:hover { color: var(--text); border-color: var(--line-2); }
.code__copy .icon { width: 15px; height: 15px; }
.code__copy.is-copied { color: var(--accent); border-color: var(--accent-line); }

.code__body {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font-family: var(--mono); font-size: .855rem; line-height: 1.72;
  color: var(--tok-keyword); tab-size: 2;
}
.code__body:not(.is-active) { display: none; }
.code__body[hidden] { display: none; }
.code__body code { font-family: inherit; }

.tok-c { color: var(--tok-comment); font-style: italic; }
.tok-s { color: var(--tok-string); }
.tok-k { color: var(--tok-keyword); font-weight: 600; }
.tok-f { color: var(--tok-func); }
.tok-n { color: var(--tok-num); }
.tok-u { color: var(--accent); }
.hl { display: inline-block; width: 100%; background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }

/* ---------------------------------------------------------------- clients strip */
.clients { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px clamp(52px, 8vw, 84px); text-align: center; }
.clients__lead { color: var(--text-3); font-size: .9rem; margin: 0 0 26px; }
.clients__row {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px 14px;
}
.clients__row li {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-2); font-size: .92rem; font-weight: 500;
  padding: 9px 16px 9px 10px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); transition: border-color .18s var(--ease), color .18s var(--ease);
}
.clients__row li:hover { border-color: var(--line-2); color: var(--text); }
.dotmark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--surface-hi);
  color: var(--accent); font-family: var(--mono); font-size: .68rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
}

/* ---------------------------------------------------------------- bento (reliability) */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  grid-auto-rows: minmax(180px, auto);
}
.bento__cell {
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.bento__cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bento__cell .icon--lg { color: var(--accent); margin-bottom: 4px; }
.bento__cell h3 { font-size: 1.08rem; font-weight: 580; margin: 0; letter-spacing: -0.02em; }
.bento__cell p { color: var(--text-2); font-size: .92rem; margin: 0; line-height: 1.55; }

.bento__cell--wide { grid-column: span 2; grid-row: span 2; flex-direction: row; gap: 26px; align-items: stretch; }
.bento__cell--wide .cell__text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bento__cell--status { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }

/* routing diagram */
.routing { position: relative; flex: 1.05; min-width: 200px; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.routing__node, .routing__hub { position: relative; z-index: 2; }
.routing__node--src {
  align-self: flex-start; font-family: var(--mono); font-size: .74rem; color: var(--text-2);
  background: var(--surface-hi); border: 1px solid var(--line-2); padding: 8px 11px; border-radius: 8px;
}
.routing__hub {
  align-self: center; margin: 22px 0; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--accent-ink); background: var(--accent); padding: 9px 16px; border-radius: 8px;
}
.routing__upstreams { display: grid; gap: 7px; align-self: flex-end; z-index: 2; }
.up {
  font-family: var(--mono); font-size: .72rem; color: var(--text-2);
  background: var(--surface-hi); border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px;
  display: flex; align-items: center; gap: 7px;
}
.up::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.up--down { color: var(--text-3); opacity: .6; text-decoration: line-through; }
.up--down::before { background: var(--danger); }
.routing__wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .5; }
.routing__wires path { fill: none; stroke: var(--accent-line); stroke-width: 1.2; }
.routing__wires .wire--down { stroke: var(--danger); stroke-dasharray: 3 4; opacity: .5; }

/* status widget */
.statusw { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 16px; margin-bottom: 4px; }
.statusw__top { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 560; margin-bottom: 12px; }
.statusw__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.statusw__list li { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .74rem; color: var(--text-2); }
.statusw__list .ok { color: var(--accent); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,154,0.4); } 70% { box-shadow: 0 0 0 8px rgba(52,211,154,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,154,0); } }

/* ---------------------------------------------------------------- inspector (transparency) */
.inspector { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.inspector__list { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; }
.inspector__list:focus-visible { outline-offset: -2px; }
.inspector__row {
  display: grid; grid-template-columns: 0.8fr 1.2fr 1fr 0.7fr 0.7fr; gap: 10px; align-items: center;
  width: 100%; text-align: left; padding: 13px 18px; background: none; border: 0; cursor: pointer;
  color: var(--text-2); font-size: .84rem; border-bottom: 1px solid var(--line);
  transition: background .14s var(--ease);
}
.inspector__row span:not(.mono) { color: var(--text); font-size: .85rem; }
.inspector__row:hover { background: var(--surface-2); }
.inspector__row.is-selected { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
.inspector__head { cursor: default; color: var(--text-3); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--surface-2); }
.inspector__head span { color: var(--text-3) !important; font-size: .7rem !important; }
.inspector__head:hover { background: var(--surface-2); }
.inspector__row--err .error { color: var(--danger); }
.inspector__note { margin: 0; padding: 11px 18px; color: var(--text-3); font-size: .74rem; font-family: var(--mono); }

.inspector__detail {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 22px; min-height: 260px;
}
.det__model { font-family: var(--mono); font-size: .95rem; color: var(--text); margin: 0 0 4px; }
.det__time { font-family: var(--mono); font-size: .76rem; color: var(--text-3); margin: 0 0 18px; }
.det__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 18px; }
.det__k { font-size: .74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 3px; }
.det__v { font-family: var(--mono); font-size: .95rem; color: var(--text); margin: 0; }
.det__v.accent { color: var(--accent); }
.det__flags { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.det__flag { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--text-2); }
.det__flag .icon { color: var(--accent); width: 17px; height: 17px; }

.guarantees {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 26px;
}
.guarantees li { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: .92rem; }
.guarantees .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---------------------------------------------------------------- protocols */
.protocols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proto { border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.proto__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.proto__badge { font-size: .82rem; font-weight: 580; color: var(--text); }
.proto__path { font-size: .76rem; color: var(--text-3); }
.proto .code__body { font-size: .82rem; }

/* ---------------------------------------------------------------- quickstart */
.quickstart { border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden; background: var(--surface); margin-bottom: 26px; }
.quickstart__langs { display: flex; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ql { background: none; border: 0; color: var(--text-3); font-family: var(--mono); font-size: .82rem; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: all .16s var(--ease); }
.ql:hover { color: var(--text-2); }
.ql.is-active { color: var(--text); background: var(--surface-hi); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 6px; padding: 22px 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__num { color: var(--accent); font-size: 1.05rem; font-weight: 600; padding-top: 2px; }
.step__body h3 { font-size: 1.02rem; font-weight: 560; margin: 0 0 12px; letter-spacing: -0.02em; }
.step__body .code__body { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 15px 17px; font-size: .82rem; }

.dx { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.dx__col { display: flex; flex-direction: column; }
.dx__item { display: flex; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dx__col:last-child .dx__item:last-child { border-bottom: 0; }
.dx__item .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.dx__item h4 { margin: 0 0 4px; font-size: .98rem; font-weight: 560; letter-spacing: -0.015em; }
.dx__item p { margin: 0; color: var(--text-2); font-size: .89rem; line-height: 1.5; }

/* ---------------------------------------------------------------- CTA */
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 110px) 24px; }
.cta__inner {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--accent-line); border-radius: 20px;
  padding: clamp(44px, 7vw, 76px) 28px;
  background:
    radial-gradient(600px 260px at 50% -20%, rgba(52,211,154,0.14), transparent 65%),
    var(--surface);
}
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.03em; font-weight: 640; margin: 0 0 14px; }
.cta__inner p { color: var(--text-2); font-size: 1.08rem; margin: 0 0 30px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 76px) 24px 40px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px;
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__tag { color: var(--text-2); font-size: .92rem; max-width: 30ch; margin: 0 0 20px; }
.statuspill {
  display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px;
  transition: border-color .18s var(--ease); font-family: var(--mono);
}
.statuspill:hover { border-color: var(--accent-line); color: var(--text); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin: 0 0 16px; font-weight: 600; }
.footer__cols a { display: block; color: var(--text-2); font-size: .92rem; padding: 6px 0; transition: color .16s var(--ease); }
.footer__cols a:hover { color: var(--accent); }

.footer__base {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-3); font-size: .82rem;
}
.footer__region { color: var(--text-3); font-size: .76rem; }

/* ---------------------------------------------------------------- reveal motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__code { order: 2; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide { grid-column: span 2; grid-row: auto; }
  .inspector { grid-template-columns: 1fr; }
  .protocols { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav.is-open .mobile-nav { display: flex; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide { grid-column: auto; flex-direction: column; }
  .bento__cell--wide .routing { min-height: 200px; }
  .guarantees { grid-template-columns: 1fr; }
  .dx { grid-template-columns: 1fr; gap: 0; }
  .dx__col:first-child .dx__item:last-child { border-bottom: 1px solid var(--line); }
  .det__grid { grid-template-columns: 1fr 1fr; }
  .inspector__row { grid-template-columns: 0.9fr 1.2fr 1fr; }
  .inspector__row span:nth-child(4), .inspector__row span:nth-child(5),
  .inspector__head span:nth-child(4), .inspector__head span:nth-child(5) { display: none; }
  .step { grid-template-columns: 40px 1fr; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento__cell, .clients__row li { transition: none; }
  .pulse { animation: none !important; }
}
