/* ==========================================================================
   Armonic — landing
   Los estilos inline del diseño original quedaron acá como clases.
   Los valores (colores, tamaños, espaciados) son los mismos.
   ========================================================================== */

:root {
  --bg: #0B0D1A;
  --rail: #080A14;
  --side: #0E1123;
  --panel: #141830;
  --panelHigh: #161A30;
  --hover: #11142A;
  --sel: #152246;
  --chip: #182347;
  --accent: #4C86F6;
  --onAccent: #07142E;
  --accentSoft: #8AB4FF;
  --accentPale: #BCD4FF;
  --accentDeep: #24406F;
  --tp: #EEF2FF;
  --tb: #CCD3E8;
  --ts: #A2AAC6;
  --tm: #8D96B4;
  --tf: #6C7596;
  --mention: #FF5A8A;
  --warning: #F2B04A;
  --border: rgba(255, 255, 255, 0.078);
  --glow1: rgba(76, 134, 246, 0.22);
  --glow2: rgba(76, 134, 246, 0.09);
  --glow3: rgba(0, 0, 0, 0.18);
  --waveOp: 0.42;
  --ok: #4C86F6;

  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1240px;
}

html[data-theme="light"] {
  --bg: #F7F8FC;
  --rail: #ECEEF6;
  --side: #FFFFFF;
  --panel: #FFFFFF;
  --panelHigh: #F2F4FB;
  --hover: #EEF1FA;
  --sel: #DFE8FF;
  --chip: #E6ECFD;
  --accent: #1F51BE;
  --onAccent: #FFFFFF;
  --accentSoft: #2F63D6;
  --accentPale: #173059;
  --accentDeep: #DFE8FF;
  --tp: #0B0D1A;
  --tb: #1E2440;
  --ts: #3E4664;
  --tm: #4E5675;
  --tf: #5A6280;
  --mention: #C01458;
  --warning: #8A560D;
  --border: rgba(11, 13, 26, 0.16);
  --glow1: rgba(76, 134, 246, 0.10);
  --glow2: rgba(76, 134, 246, 0.05);
  --glow3: rgba(0, 0, 0, 0);
  --waveOp: 0.3;
  --ok: #1F51BE;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tb);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 180ms ease, color 180ms ease;
}

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

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

button svg, a svg { display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--panel);
  color: var(--tp);
  padding: 12px 18px;
  border-radius: 9px;
}
.skip-link:focus { left: 12px; top: 12px; }

@keyframes armDrift { from { transform: translateX(0); } to { transform: translateX(-400px); } }
@keyframes armDrift2 { from { transform: translateX(0); } to { transform: translateX(400px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- layout -- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section { border-bottom: 1px solid var(--border); }
.section--alt {
  background: var(--side);
  transition: background-color 180ms ease;
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0 0 18px;
}

.h2 {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.9px;
  color: var(--tp);
  margin: 0;
}

.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ts);
  margin: 20px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 180ms ease;
}

.hdr {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--tp);
}
.brand:hover { color: var(--tp); }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}
.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  font-size: 14.5px;
  color: var(--ts);
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav__link:hover { background: var(--hover); color: var(--tp); }

.prefs {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seg {
  display: flex;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--side);
}
.seg__btn {
  width: 38px;
  height: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  background: transparent;
  color: var(--tf);
  transition: background-color 150ms ease;
}
.seg__btn.is-active { background: var(--sel); color: var(--tp); }

.divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--side);
  color: var(--accentSoft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.icon-btn:hover { background: var(--hover); color: var(--accent); }

.hdr__spacer { flex: 1; }

.hdr__gh {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--tb);
}
.hdr__gh:hover { background: var(--hover); color: var(--tp); }

.burger {
  display: none;
  width: 36px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--side);
  color: var(--tb);
  place-items: center;
  cursor: pointer;
}
.burger:hover { background: var(--hover); color: var(--tp); }

.hdr-panel {
  border-top: 1px solid var(--border);
  background: var(--side);
  padding: 16px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hdr-panel__link {
  font-size: 16px;
  color: var(--tb);
  padding: 12px 10px;
  border-radius: 9px;
}
.hdr-panel__link:hover { background: var(--hover); color: var(--tp); }
.hdr-panel__gh {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tb);
  padding: 12px 10px;
  border-radius: 9px;
}
.hdr-panel__gh:hover { background: var(--hover); color: var(--tp); }
.hdr-panel__prefs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 0;
  padding: 14px 10px 0;
  border-top: 1px solid var(--border);
}
.hdr-panel__prefs .seg,
.hdr-panel__prefs .icon-btn { background: var(--bg); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow1) 0%, var(--glow2) 26%, transparent 58%, var(--glow3) 100%);
  pointer-events: none;
}

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  height: 76%;
  opacity: var(--waveOp);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 32px 108px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--tf);
  margin: 0 0 26px;
}

.hero__title {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -1.6px;
  color: var(--tp);
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--tp);
  margin: 24px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--onAccent);
}
.btn--primary:hover { filter: brightness(1.08); color: var(--onAccent); }
.btn--outline {
  border: 1px solid var(--accentSoft);
  color: var(--tp);
}
.btn--outline:hover { background: var(--hover); border-color: var(--accent); color: var(--tp); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
}
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accentPale);
  background: var(--chip);
  border-radius: 6px;
  padding: 7px 11px;
}

.fork-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.fork-wrap {
  width: 100%;
  height: 440px;
  min-height: 440px;
}
.fork-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0;
  text-align: center;
}

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 52px 0 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  transition: background-color 150ms ease;
}
.card:hover { background: var(--hover); }
.card__icon { margin-bottom: 20px; }
.card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--tp);
  margin: 0 0 10px;
}
.card__body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ts);
  margin: 0;
  text-wrap: pretty;
}

.what__title { max-width: 24ch; }

/* ----------------------------------------------------------------- acts -- */

.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 52px 0 0;
}
.act {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
}
.act__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accentDeep);
  color: var(--accentPale);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.act__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--tp);
  margin: 22px 0 10px;
  letter-spacing: -0.2px;
}
.act__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ts);
  margin: 0;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- diagram -- */

.diagram {
  margin: 34px 0 0;
  background: var(--panelHigh);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 26px;
}
.diagram__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  justify-content: center;
}
.diagram__step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stage {
  min-width: 224px;
  background: var(--side);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px 22px;
}
.stage__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0 0 9px;
}
.stage__label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--tp);
  margin: 0;
}
.stage__sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--tm);
  margin: 6px 0 0;
}
.diagram__arrow {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--accent);
}
.diagram__legend {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 26px 0 0;
  text-align: center;
}

/* ------------------------------------------------------------ descargas -- */

.cli__title {
  font-size: 34px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--tp);
  margin: 0;
}
.cli__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ts);
  margin: 20px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 44px 0 0;
}
.dl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-card__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--tp);
  margin: 0;
}
.dl-card__format {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0;
}
.dl-card__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ts);
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.dl-card__cta {
  justify-content: center;
  padding: 0 20px;
  font-size: 14.5px;
}
.cli__ver {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--tm);
  margin: 22px 0 0;
}
.cli__ver strong {
  color: var(--accentSoft);
  font-weight: 600;
}
.cli__foot {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tm);
  margin: 24px 0 0;
  max-width: 70ch;
}

/* --------------------------------------------------------------- manual -- */

.man__body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ts);
  margin: 20px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 38px 0 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.tab {
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  background: transparent;
  color: var(--ts);
  transition: background-color 150ms ease;
}
.tab.is-active {
  border-color: transparent;
  background: var(--sel);
  color: var(--tp);
}

.manual-grid {
  display: grid;
  grid-template-columns: minmax(200px, 244px) minmax(0, 1fr);
  gap: 52px;
  margin: 40px 0 0;
  align-items: start;
}
.manual-index {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.manual-index__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0 0 14px;
}
.manual-index__link {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ts);
  padding: 9px 12px;
  border-radius: 9px;
}
.manual-index__link:hover { background: var(--hover); color: var(--tp); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.article__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.article__head--tight { margin-bottom: 8px; }
.article__head--loose { margin-bottom: 22px; }
.article__num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accentDeep);
  color: var(--accentPale);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}
.article__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--tp);
  margin: 0;
}
.article__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tb);
  margin: 0;
  text-wrap: pretty;
}
.note {
  margin: 18px 0 0;
  background: var(--panelHigh);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
}
.note p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tb);
  margin: 0;
}

/* ------------------------------------------------------- tabla de config -- */

.cfg__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ts);
  margin: 0 0 22px;
}
.table-scroll { overflow-x: auto; }
.cfg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.cfg-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cfg-table th:last-child { padding-right: 0; }
.cfg-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tb);
}
.cfg-table td:last-child { padding-right: 0; }
.cfg-table code {
  font-family: var(--mono);
  font-size: 12.5px;
}
.cfg-table .cfg-key { color: var(--accentSoft); white-space: nowrap; }
.cfg-table .cfg-def { color: var(--tm); }

/* ------------------------------------------------------------- checklist -- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.check-card {
  background: var(--panelHigh);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.check-card--ok { border-left: 2px solid var(--ok); }
.check-card--bad { border-left: 2px solid var(--mention); }
.check-card__title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.check-card--ok .check-card__title { color: var(--ok); }
.check-card--bad .check-card__title { color: var(--mention); }
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tb);
}
.check-list svg {
  flex: none;
  margin-top: 3px;
}

/* ---------------------------------------------------------------- limits -- */

.limits {
  background: var(--panelHigh);
  border: 1px solid var(--border);
  border-left: 2px solid var(--warning);
  border-radius: 10px;
  padding: 22px;
}
.limits__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.limits__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--warning);
  margin: 0;
}
.limits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 26px;
}
.limits__list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--tb);
}
.limits__dash {
  flex: none;
  color: var(--warning);
  font-family: var(--mono);
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--rail);
  transition: background-color 180ms ease;
}
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand-col {
  max-width: 38ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tp);
}
.footer__brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
}
.footer__brand span {
  font-size: 15px;
  font-weight: 600;
}
.footer__thanks {
  font-size: 14px;
  line-height: 1.55;
  color: var(--tm);
  margin: 0;
  text-wrap: pretty;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col--prefs { gap: 14px; }
.footer__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0;
}
.footer__label--spaced { margin: 14px 0 0; }
.footer__link {
  font-size: 14.5px;
  color: var(--accentSoft);
}
.footer__ver {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tm);
  margin-left: 6px;
}

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 1000px) {
  .nav,
  .hdr .prefs,
  .hdr__gh { display: none !important; }
  .burger { display: grid !important; }
}

@media (min-width: 1001px) {
  .hdr-panel { display: none !important; }
}

@media (max-width: 860px) {
  .manual-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }
  .manual-index {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 700px) {
  .hero__grid {
    padding: 56px 22px 64px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .hero__title {
    font-size: 36px !important;
    letter-spacing: -1px !important;
    max-width: none !important;
  }
  .hero__sub { font-size: 17px !important; }
  .fork-col { order: -1; }
  .fork-wrap {
    height: 300px !important;
    min-height: 300px !important;
  }
  .hdr-panel__prefs .seg { height: 44px !important; }
  .hdr-panel__prefs .seg__btn { min-width: 48px !important; }
  .hdr-panel__prefs .icon-btn {
    width: 48px !important;
    height: 44px !important;
  }
  .tab {
    padding: 12px 18px !important;
    min-height: 44px !important;
  }
  .section__inner { padding: 56px 22px !important; }
  .h2, .cli__title {
    font-size: 27px !important;
    letter-spacing: -0.6px !important;
  }
  .hdr { padding: 0 20px !important; }
  .diagram { padding: 24px 18px !important; }
  .stage {
    min-width: 0 !important;
    width: 100% !important;
  }
  .diagram__step {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .diagram__arrow {
    align-self: center;
    width: auto;
    transform: rotate(90deg);
  }
  .card, .act, .dl-card, .article {
    padding: 22px 20px !important;
  }
  .footer { padding: 48px 22px !important; }
}

/* ------------------------------------------------------------------ docs -- */

.doc-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.doc-hdr {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.doc-hdr__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--tf);
}
.doc-hdr__spacer { flex: 1; }
.doc-hdr__back {
  font-size: 14px;
  color: var(--ts);
  padding: 8px 12px;
  border-radius: 9px;
}
.doc-hdr__back:hover { background: var(--hover); color: var(--tp); }

.doc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.doc-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--glow1) 0%, var(--glow2) 26%, transparent 58%, var(--glow3) 100%);
}
.doc-hero .doc-inner { position: relative; padding-top: 76px; padding-bottom: 64px; }
.doc-hero__title {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--tp);
  margin: 0;
  max-width: 20ch;
}
.doc-hero__lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ts);
  margin: 22px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.doc-h2 {
  font-size: 32px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--tp);
  margin: 0 0 30px;
}

.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.doc-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accentPale);
  background: var(--chip);
  border-radius: 6px;
  padding: 7px 11px;
}
.doc-chip--plain {
  color: var(--tf);
  background: transparent;
  border: 1px solid var(--border);
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.doc-tab {
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ts);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.doc-tab:hover { background: var(--hover); color: var(--tp); }
.doc-tab.is-active { background: var(--sel); color: var(--tp); border-color: transparent; }

.doc-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
}
.doc-route__title { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; color: var(--tp); margin: 0; }
.doc-route__body { font-size: 16px; line-height: 1.55; color: var(--ts); margin: 16px 0 0; text-wrap: pretty; }
.doc-route__cta { margin: 26px 0 0; }
.doc-note {
  margin: 24px 0 0;
  background: var(--panelHigh);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
}
.doc-note p { font-size: 14.5px; line-height: 1.5; color: var(--tb); margin: 0; }

.doc-cmds { background: var(--panelHigh); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.doc-cmd { padding: 16px; border-bottom: 1px solid var(--border); }
.doc-cmd:last-child { border-bottom: 0; }
.doc-cmd__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tf);
  margin: 0 0 10px;
}
.doc-cmd__row { display: flex; align-items: flex-start; gap: 12px; }
.doc-cmd__row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--accentSoft);
  word-break: break-all;
}
.doc-cmd__copy {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--tm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.doc-cmd__copy:hover { background: var(--hover); color: var(--tp); }
.doc-cmd__copy.is-copied { color: var(--accent); border-color: var(--accent); }

.doc-after { border-bottom: 1px solid var(--border); }
.doc-after .doc-inner { padding-top: 72px; padding-bottom: 72px; }
.doc-after__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.doc-step { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 26px 24px; }
.doc-step__n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accentDeep);
  color: var(--accentPale);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
}
.doc-step__title { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; color: var(--tp); margin: 20px 0 10px; }
.doc-step__body { font-size: 14.5px; line-height: 1.5; color: var(--ts); margin: 0; text-wrap: pretty; }

.doc-foot { background: var(--rail); }
.doc-foot__inner {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.doc-foot__note { font-size: 14px; line-height: 1.55; color: var(--tm); margin: 0; max-width: 52ch; }

@media (max-width: 700px) {
  .doc-inner, .doc-hdr { padding-left: 20px; padding-right: 20px; }
  .doc-hdr__kicker, .doc-hdr__back { display: none; }
}
