/* Assinex, home publica.
   Uma unica peca com movimento: a janela do painel no hero, que mostra o
   fluxo real (Pix, saldo, catalogo, pedido, entrega). O resto e estatico. */

@font-face { font-family: "Plex"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f5f7fa;
  --paper-2: #eef2f6;
  --card: #ffffff;
  --ink: #0f1722;
  --ink-2: #3a4556;
  --muted: #5f6b7e;
  --line: #dde3eb;
  --accent: #0a7fc2;
  --accent-deep: #06679e;
  --accent-soft: #e3f1fa;
  --ok: #1a8a58;
  /* Tema escuro do painel real, usado na janela de demonstracao. */
  --p-bg: #10151d;
  --p-surface: #161c26;
  --p-raised: #1c2430;
  --p-line: #273142;
  --p-text: #e6ebf2;
  --p-muted: #8b96a8;
  --p-accent: #3aa8e8;
  --p-ok: #2fb67f;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; }
section { scroll-margin-top: 76px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top .logo img, .foot img { filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(0.85); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: 500 15px/1 "Plex", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.quiet { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.quiet:hover { border-color: #c3ccd8; }

/* ---------- Cabecalho ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-actions .who { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 10px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 34, 0.14); }
.menu-panel a { padding: 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--paper); }
.menu-panel .btn { margin-top: 6px; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.07; max-width: 16ch; }
.lead { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Janela do painel: mesmas cores e componentes do /painel real. */
.demo { margin: 0; display: grid; gap: 14px; }
.dw { position: relative; height: 476px; border-radius: 14px; background: var(--p-bg); color: var(--p-text); border: 1px solid #0c1017; box-shadow: 0 40px 80px -40px rgba(15, 23, 34, 0.55), 0 2px 8px rgba(15, 23, 34, 0.12); overflow: hidden; font-size: 13.5px; }
.dw > * { transition: opacity 0.3s; }
.dw.resetting > * { opacity: 0; }
.dw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--p-line); }
.dw-title { color: var(--p-muted); font-size: 13px; }
.dw-balance { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; border-radius: 8px; transition: background-color 0.4s; }
.dw-balance small { color: var(--p-muted); font-size: 12px; }
.dw-balance b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dw.flash-balance .dw-balance { background: color-mix(in srgb, var(--p-accent) 22%, transparent); }
.dw-toast { position: absolute; right: 16px; top: 62px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: var(--p-raised); border: 1px solid var(--p-line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); font-size: 13px; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }
.dw-toast b { color: var(--p-ok); font-variant-numeric: tabular-nums; }
.dw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-ok); }
.dw[data-step="1"] .dw-toast { opacity: 1; transform: none; }

.dw-body { padding: 14px 18px 18px; display: grid; gap: 8px; }
.dw-label { color: var(--p-muted); font-size: 12px; margin-top: 4px; }
.dw-catalog { list-style: none; margin: 0; padding: 0; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-surface); }
.dw-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--p-line); transition: background-color 0.35s, opacity 0.35s; }
.dw-item:first-child { border-top: 0; border-radius: 10px 10px 0 0; }
.dw-name { display: grid; min-width: 0; font-weight: 500; }
.dw-name small { color: var(--p-muted); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.dw-buy { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--p-line); color: var(--p-text); font-size: 12.5px; font-weight: 500; transition: background-color 0.25s, border-color 0.25s, transform 0.15s, color 0.25s; }
.dw[data-step="2"] .dw-item:not(.is-target), .dw[data-step="3"] .dw-item:not(.is-target) { opacity: 0.45; }
.dw[data-step="2"] .is-target, .dw[data-step="3"] .is-target { background: color-mix(in srgb, var(--p-accent) 10%, var(--p-surface)); }
.dw[data-step="2"] .is-target .dw-buy, .dw[data-step="3"] .is-target .dw-buy { background: var(--p-accent); border-color: var(--p-accent); color: #04121c; }
.dw[data-step="3"] .is-target .dw-buy { transform: scale(0.94); }

.dw-orders { display: grid; }
.dw-orders > * { grid-area: 1 / 1; }
.dw-empty { padding: 13px 12px; border: 1px dashed var(--p-line); border-radius: 10px; color: var(--p-muted); font-size: 12.5px; transition: opacity 0.3s; }
.dw[data-step="3"] .dw-empty, .dw[data-step="4"] .dw-empty, .dw[data-step="5"] .dw-empty { opacity: 0; }
.dw-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-surface); opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.dw-oid { display: grid; font-weight: 500; font-variant-numeric: tabular-nums; }
.dw-oid small { color: var(--p-muted); font-weight: 400; font-size: 12px; }
.dw-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: color-mix(in srgb, var(--p-accent) 16%, transparent); transition: background-color 0.3s; white-space: nowrap; }
.dw-spin { width: 12px; height: 12px; border: 2px solid var(--p-accent); border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.dw-check { display: none; width: 12px; height: 7px; margin-top: -3px; border-left: 2px solid var(--p-ok); border-bottom: 2px solid var(--p-ok); transform: rotate(-45deg); }
.dw[data-step="3"] .dw-order, .dw[data-step="4"] .dw-order, .dw[data-step="5"] .dw-order { opacity: 1; transform: none; }
.dw[data-step="3"] .dw-spin, .dw[data-step="5"] .dw-spin { display: none; }
.dw[data-step="5"] .dw-status { background: color-mix(in srgb, var(--p-ok) 18%, transparent); }
.dw[data-step="5"] .dw-check { display: block; }

.dw-delivery { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--p-ok) 45%, var(--p-line)); background: color-mix(in srgb, var(--p-ok) 8%, var(--p-surface)); opacity: 0; transform: translateY(8px); transition: opacity 0.4s 0.1s, transform 0.4s 0.1s; }
.dw-dl-label { color: var(--p-ok); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.dw-delivery code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--p-text); font-size: 12.5px; }
.dw-copy { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--p-line); font-size: 12px; }
.dw[data-step="5"] .dw-delivery { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Regua de passos: texto real, clicavel, sincronizado com a janela. */
.rail-row { display: flex; align-items: center; gap: 12px; }
.rail { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rail button { width: 100%; display: grid; justify-items: start; gap: 4px; padding: 8px 6px 0; border: 0; border-top: 3px solid var(--line); background: none; color: var(--muted); font: 500 13px/1.3 "Plex", sans-serif; text-align: left; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.rail button:hover { color: var(--ink); }
.rail .n { font-variant-numeric: tabular-nums; font-size: 12px; opacity: 0.75; }
.rail button.is-done { border-top-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink-2); }
.rail button[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); }
.play { flex: none; min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 500 13px/1 "Plex", sans-serif; cursor: pointer; }
.play:hover { color: var(--ink); border-color: #c3ccd8; }

/* ---------- Secoes ---------- */
.how, .catalog, .delivery, .api, .who, .faq { padding: 96px 0; }
.how, .api, .faq { background: var(--card); border-block: 1px solid var(--line); }
.how h2, .catalog h2, .delivery h2, .api h2, .who h2, .faq h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; max-width: 22ch; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 17px; right: 17px; top: 17px; height: 2px; background: var(--line); }
.steps li { position: relative; padding-right: 22px; }
.steps .n { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy > p { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 36em; }
.split-copy > p.fine { font-size: 14px; color: var(--muted); }
.kinds { margin: 26px 0; display: grid; border-top: 1px solid var(--line); }
.kinds div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kinds dt { font-weight: 600; }
.kinds dd { margin: 0; color: var(--ink-2); }

.cat-mock { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(15, 23, 34, 0.35); }
.cm-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cm-balance { font-weight: 500; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cat-mock ul { list-style: none; margin: 0; padding: 0; }
.cat-mock li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 104px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--paper-2); font-size: 15px; }
.cm-name { display: grid; font-weight: 500; min-width: 0; }
.cm-name small { color: var(--muted); font-weight: 400; font-size: 13px; }
.cm-kind { font-size: 13px; color: var(--ink-2); }
.cm-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-state { justify-self: end; font-size: 12.5px; color: var(--muted); }
.cm-state.ok { color: var(--ok); }
.cat-mock figcaption { padding: 10px 18px 12px; font-size: 12.5px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks strong { color: var(--ink); font-weight: 600; }
.checks code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }

.timeline { list-style: none; margin: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.timeline li:last-child::before { display: none; }
.t-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--ok); position: relative; }
.t-dot::after { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.timeline .final .t-dot { background: var(--ok); }
.timeline .final .t-dot::after { border-color: #fff; }
.timeline strong { font-weight: 600; }
.timeline p { color: var(--muted); font-size: 14.5px; }
.timeline time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.t-access code { display: inline-block; margin-top: 4px; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 9%, var(--paper)); color: var(--ink); }

.api-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.api-head p { color: var(--ink-2); font-size: 17px; }
.flow { list-style: none; margin: 44px 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-left: 1px solid var(--line); }
.flow li:first-child { border-left: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--paper); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.flow li:nth-child(2) strong, .flow li:nth-child(4) strong { font-family: var(--mono); font-size: 13.5px; color: var(--accent-deep); }
.flow span { color: var(--muted); font-size: 13.5px; }
.api-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.api-checks { margin-top: 4px; }
.api-more { margin-top: 32px; }
.code { margin: 0; border-radius: 14px; background: var(--p-bg); color: #d9e0ea; overflow: hidden; }
.code figcaption { padding: 11px 18px; background: var(--p-surface); color: var(--p-muted); font-size: 12.5px; border-bottom: 1px solid var(--p-line); }
.code pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 13px/1.65 var(--mono); }
.c-cmd { color: #62bdf0; }
.c-str { color: #9fd89a; }
.c-key { color: #e9c77a; }
.c-num { color: #f0a36b; }
.c-muted { color: #7b879a; }

.who-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.who-grid > div { padding: 26px 28px 0 0; }
.who-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.who-grid h3 { font-size: 19px; }
.who-grid p { margin-top: 10px; color: var(--ink-2); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.faq-side { margin-top: 16px; color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

.closing { padding: 88px 0; }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(26px, 3vw, 36px); max-width: 22ch; }
.closing p { margin-top: 10px; color: var(--ink-2); }
.closing .cta { margin-top: 0; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin-left: auto; }

/* ---------- Pagina de conteudo (fornecedor de assinaturas) ---------- */
.article { padding: 40px 0 96px; }
.article .wrap { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article h1 { margin-top: 18px; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.article .lead { max-width: none; }
.article h2 { margin-top: 48px; font-size: 26px; line-height: 1.2; }
.article h3 { margin-top: 26px; font-size: 19px; }
.article p, .article li { color: var(--ink-2); font-size: 17px; }
.article p { margin-top: 14px; }
.article ul, .article ol { margin: 14px 0 0; padding-left: 22px; }
.article li { margin: 8px 0; }
.article .note { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.article .cta { margin-top: 32px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { max-width: 18ch; }
  .demo { max-width: 640px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .steps .n { grid-row: span 2; }
  .steps h3 { margin-top: 6px; }
  .split, .api-head, .api-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.reverse .split-copy { order: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; }
  .flow li:first-child { border-top: 0; }
  .flow li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -6px; transform: rotate(135deg); }
}
@media (max-width: 760px) {
  .nav, .top-actions { display: none; }
  .menu { display: block; }
  .top-row { min-height: 60px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .hero { padding: 20px 0 56px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 auto; }
  .dw { height: 566px; font-size: 13px; }
  .dw-top { padding: 0 14px; }
  .dw-body { padding: 12px 12px 14px; }
  .dw-item { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .dw-buy { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .dw-price { grid-column: 1; font-size: 13px; }
  .dw-toast { left: 12px; right: 12px; justify-content: center; }
  .dw-delivery { grid-template-columns: minmax(0, 1fr) auto; }
  .dw-dl-label { grid-column: 1 / -1; }
  .rail-row { flex-wrap: wrap; justify-content: flex-end; }
  .rail { flex-basis: 100%; gap: 3px; }
  .rail button { font-size: 11px; padding: 7px 1px 0; letter-spacing: -0.01em; }
  .how, .catalog, .delivery, .api, .who, .faq { padding: 64px 0; }
  .kinds div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cat-mock li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
  .cm-kind { grid-row: 2; color: var(--muted); }
  .cm-state { grid-row: 2; }
  .timeline { padding: 20px 18px; }
  .timeline li { grid-template-columns: 20px minmax(0, 1fr); }
  .timeline time { grid-column: 2; margin-top: -8px; }
  .flow li { grid-template-columns: minmax(0, 1fr); }
  .code pre { font-size: 12px; padding: 16px; }
  .who-grid { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .who-grid > div, .who-grid > div + div { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .closing { padding: 60px 0; }
  .closing .cta { width: 100%; }
  .foot p { margin-left: 0; }
}

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