/* SHUNT site. Tokens are copied from the app (src/renderer/src/styles/tokens.css) so the page and the program
 * look like one thing: near-black hull, 1px wires, indigo for the interface, amber only for the tunnel. */

@font-face {
  font-family: 'Tektur Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/tektur-cyrillic-wght.woff2) format('woff2-variations'), url(fonts/tektur-cyrillic-wght.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Tektur Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/tektur-latin-wght.woff2) format('woff2-variations'), url(fonts/tektur-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --void: #06070a;
  --hull: #0b0d12;
  --plate: #11141b;
  --plate-2: #171b24;
  --plate-3: #1d2230;
  --wire: #1f2430;
  --wire-2: #2b3140;

  /* ink */
  --ink: #eceef4;
  --ink-2: #a2a7b8;
  --ink-3: #626879;
  --ink-4: #454a59;

  /* semantic */
  --ui: #7c7cff;
  --ui-2: #4b4bd6;
  --live: #ffa630;
  --live-2: #ff5f1f;
  --direct: #8a8fa3;
  --good: #5ee3a8;
  --warn: #ffc857;
  --bad: #ff5c6c;
  --on-ui: #0a0a1f;

  /* type: Tektur for display only; the body uses the system face (Segoe UI on Windows) */
  --f-display: 'Tektur Variable', 'Tektur', system-ui, sans-serif;
  --f-body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: ui-monospace, 'Cascadia Mono', 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 12px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 520px at 78% -8%, color-mix(in oklab, var(--live) 6%, transparent), transparent 70%),
    radial-gradient(900px 600px at 0% 0%, color-mix(in oklab, var(--ui) 5%, transparent), transparent 70%),
    var(--hull);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
code,
kbd {
  font-family: var(--f-mono);
}
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ui);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─────────────── brand ─────────────── */

.nmark__d {
  fill: var(--live);
}
.mark-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--plate);
  border: 1px solid var(--wire-2);
  color: var(--ink);
}
.mark-tile svg {
  width: 22px;
  height: 22px;
}
.mark-tile--lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 56px color-mix(in oklab, var(--live) 18%, transparent);
}
.mark-tile--lg svg {
  width: 46px;
  height: 46px;
}

/* SHU·N·T: Tektur 800 metrics (cap height 0.70em, N ink box 0.60em wide) — same as the app's wordmark. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.wordmark__n {
  flex: none;
  width: 0.61em;
  height: 0.7em;
  margin: 0 calc(0.04em + 0.18em) 0 0.045em;
  overflow: visible;
}

/* ─────────────── header ─────────────── */

.top {
  border-bottom: 1px solid var(--wire);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.top__nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.top__nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 7px;
}
.top__nav a:hover {
  color: var(--ink);
  background: var(--plate-2);
}
@media (max-width: 560px) {
  .top__nav {
    display: none;
  }
}

/* ─────────────── buttons ─────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    filter 140ms ease;
}
.btn--primary {
  background: var(--ui);
  color: var(--on-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--ghost {
  background: var(--plate);
  border-color: var(--wire-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--plate-2);
  border-color: var(--ink-4);
}
.btn--sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 7px;
}
.btn svg {
  flex: none;
}
.btn[data-copied] {
  border-color: color-mix(in oklab, var(--good) 55%, transparent);
  color: var(--good);
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-4);
  text-underline-offset: 3px;
}
.link:hover {
  text-decoration-color: var(--ink);
}

/* The big one: shaped like the app's «Включить маршрут» button (icon, display title, mono sub-line). */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  min-width: min(100%, 340px);
  padding: 12px 26px 12px 20px;
  border-radius: 12px;
  background: var(--ui);
  color: var(--on-ui);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 40px -12px color-mix(in oklab, var(--ui) 70%, transparent);
  transition:
    filter 140ms ease,
    transform 140ms var(--ease);
}
.cta:hover {
  filter: brightness(1.08);
}
.cta:active {
  transform: translateY(1px);
}
.cta[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.6);
  box-shadow: none;
}
.cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 10, 31, 0.14);
}
.cta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cta__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta__sub {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}
.cta__ico--soon {
  display: none;
}

/* No release yet: an intentional «coming soon» plate instead of a dead indigo button. It still leads somewhere real
   (the public repository), but reads as a status, not as a download. */
.dl[data-state='none'] .cta {
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--wire-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 40px -18px color-mix(in oklab, var(--ui) 45%, transparent);
}
.dl[data-state='none'] .cta:hover {
  filter: none;
  background: var(--plate-2);
  border-color: var(--ink-4);
}
.dl[data-state='none'] .cta__icon {
  background: color-mix(in oklab, var(--ui) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--ui) 35%, transparent);
}
.dl[data-state='none'] .cta__ico--get {
  display: none;
}
.dl[data-state='none'] .cta__ico--soon {
  display: block;
}
.dl[data-state='none'] .cta__sub {
  color: var(--ink-3);
  opacity: 1;
}
.dl[data-state='none'] .dl__meta {
  max-width: 30em;
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.soon__ring {
  fill: none;
  stroke: var(--wire-2);
  stroke-width: 2;
}
.soon__arc {
  fill: none;
  stroke: var(--ui);
  stroke-width: 2;
  stroke-linecap: round;
}
.soon__hands {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────── hero ─────────────── */

.hero {
  display: grid;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 64px;
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
    padding-top: 88px;
    padding-bottom: 96px;
  }
}
.hero__title {
  margin-top: 16px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--ink-3);
}
.hero__lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.dl {
  margin-top: 34px;
}
/* The other platform's button: the same shape as a quiet plate (download.js swaps the two on an Android phone). */
.dl[data-alt] {
  margin-top: 26px;
}
.dl[data-alt] .cta {
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--wire-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dl[data-alt] .cta:hover {
  filter: none;
  background: var(--plate-2);
  border-color: var(--ink-4);
}
.dl[data-alt] .cta__icon {
  color: var(--ui);
  background: color-mix(in oklab, var(--ui) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--ui) 35%, transparent);
}
.dl[data-alt] .cta__sub {
  color: var(--ink-3);
  opacity: 1;
}
.dl__meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.dl__meta a {
  color: var(--ink-2);
}
.dl__hash {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  max-width: 560px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--wire);
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--plate) 70%, transparent);
}
.dl__hash-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.dl__hash code {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  word-break: break-all;
  user-select: all;
}
@media (max-width: 560px) {
  .dl__hash {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dl__hash code {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.dl__links {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.callout {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--wire-2);
  border-left: 2px solid var(--ui);
  border-radius: var(--r-md);
  background: var(--plate);
  font-size: 15px;
  color: var(--ink-2);
}
.callout strong {
  color: var(--ink);
  font-weight: 600;
}
.callout--warn {
  border-left-color: var(--warn);
}
.callout .btn {
  justify-self: start;
}

/* ─────────────── route illustration ─────────────── */

.trace {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--wire);
  border-radius: 16px;
  background: color-mix(in oklab, var(--plate) 82%, transparent);
  overflow: hidden;
}
.trace::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--wire) 1px, transparent 1px),
    linear-gradient(90deg, var(--wire) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 80%);
  pointer-events: none;
}
.trace > * {
  position: relative;
}
@media (max-width: 560px) {
  .trace {
    padding: 14px 12px 12px;
  }
}
.trace__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trace__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.trace__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
}
.trace svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 4px;
}
.trace__caption {
  font-size: 14px;
  color: var(--ink-3);
}
.tr-grid {
  stroke: var(--wire-2);
}
.tr-tunnel-glow {
  fill: none;
  stroke: var(--live);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.12;
}
.tr-tunnel {
  fill: none;
  stroke: var(--live);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.tr-direct {
  fill: none;
  stroke: var(--direct);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
  opacity: 0.75;
  animation: dash-run 1.6s linear infinite;
}
@keyframes dash-run {
  to {
    stroke-dashoffset: -18;
  }
}
.tr-pkt {
  fill: var(--live);
}
.tr-pkt--direct {
  fill: var(--direct);
}
.tr-node-you {
  fill: var(--ink);
}
.tr-node-ring {
  fill: var(--hull);
  stroke: var(--live);
  stroke-width: 2;
}
.tr-node-core {
  fill: var(--live);
}
.tr-node-end {
  fill: var(--plate-2);
  stroke: var(--ink-2);
  stroke-width: 1.5;
}
.tr-node-net {
  fill: var(--hull);
  stroke: var(--direct);
  stroke-width: 1.5;
}
.tr-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  fill: var(--ink);
}
.tr-label--dim {
  fill: var(--ink-2);
}
.tr-note {
  font-family: var(--f-mono);
  font-size: 15px;
  fill: var(--ink-2);
}
.tr-note--live {
  fill: var(--live);
}
.tr-note--dim {
  fill: var(--ink-3);
}

/* ─────────────── sections ─────────────── */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--wire);
}
.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section__lead {
  max-width: 40em;
  color: var(--ink-2);
}

/* Install steps: a vertical trace — numbered stations joined by a 1px wire. */
.steps {
  display: grid;
  gap: 0;
  max-width: 820px;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 30px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--wire-2);
}
.step:last-child::before {
  display: none;
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--wire-2);
  background: var(--plate);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.step__body {
  padding-top: 8px;
  min-width: 0;
}
.step__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.step__text {
  margin-top: 8px;
  color: var(--ink-2);
}
.step__text + .step__text {
  margin-top: 8px;
}
.step__text strong {
  color: var(--ink);
  font-weight: 600;
}
.step__text--dim {
  font-size: 14.5px;
  color: var(--ink-3);
}

/* A command to copy: one mono line (wraps on phones) with its copy button. */
.cmd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--wire);
  border-radius: var(--r-md);
  background: var(--void);
}
.cmd__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cmd + .step__text {
  margin-top: 10px;
}
.step .callout {
  margin-top: 14px;
}

.path {
  display: inline;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--plate-2);
  border: 1px solid var(--wire-2);
  color: var(--ink);
  font-size: 0.94em;
  white-space: nowrap;
}
.kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--wire-2);
  border-bottom-width: 2px;
  background: var(--plate-2);
  font-family: var(--f-mono);
  font-size: 0.82em;
  color: var(--ink);
}
.code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.steps__head {
  margin: 44px 0 18px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.note-line {
  margin-top: 34px;
  max-width: 820px;
  padding: 14px 16px;
  border: 1px solid var(--wire);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 15px;
}
.note-line strong {
  color: var(--ink);
}

/* Requirements: an instrument spec sheet. */
.specs {
  display: grid;
  max-width: 820px;
  border: 1px solid var(--wire);
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--plate) 70%, transparent);
}
.specs__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 14px 18px;
}
.specs__row + .specs__row {
  border-top: 1px solid var(--wire);
}
.specs dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.specs dd {
  color: var(--ink);
}
.specs dd span {
  color: var(--ink-2);
}
@media (max-width: 560px) {
  .specs__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */
.faq {
  display: grid;
  max-width: 820px;
  border-top: 1px solid var(--wire);
}
.faq details {
  border-bottom: 1px solid var(--wire);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 180ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq summary:hover {
  color: var(--ink);
}
.faq__body {
  display: grid;
  gap: 10px;
  padding: 0 2px 20px;
  max-width: 44em;
  color: var(--ink-2);
}

/* ─────────────── footer ─────────────── */

.foot {
  padding: 34px 0 44px;
  border-top: 1px solid var(--wire);
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.foot a {
  color: var(--ink-2);
}

/* ─────────────── /open/ and 404: one centred card ─────────────── */

.solo {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
}
.solo__card {
  width: 100%;
  max-width: 520px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
}
.solo__brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.solo__brand .wordmark {
  font-size: 18px;
}
.solo__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.solo__text {
  margin-top: 12px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.solo__summary {
  margin: -6px 0 22px;
  padding: 6px 12px;
  border: 1px solid var(--wire-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.solo__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.solo__status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 13px;
  color: var(--good);
}
.solo__hint {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-wrap: pretty;
}
.solo__more {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-3);
}
.manual {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--void);
  border: 1px solid var(--wire-2);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 12px;
}
.manual:focus {
  outline: none;
  border-color: var(--ui);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ui) 18%, transparent);
}
.fallback {
  width: 100%;
  margin-top: 30px;
  padding: 22px 20px;
  border: 1px solid var(--wire-2);
  border-radius: 14px;
  background: var(--plate);
  animation: rise 320ms var(--ease) both;
}
.fallback__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fallback__sep {
  height: 1px;
  margin: 20px 0 16px;
  background: var(--wire);
}
.fallback .solo__text {
  margin-top: 8px;
  font-size: 15px;
}
.fallback .solo__actions {
  margin-top: 16px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.mark-tile--charging .nmark__d {
  animation: n-charge 1.1s ease-in-out infinite alternate;
}
@keyframes n-charge {
  from {
    opacity: 0.35;
  }
}
.mark-tile--error .nmark__d {
  fill: var(--bad);
}
.mark-tile--error {
  box-shadow: 0 0 56px color-mix(in oklab, var(--bad) 16%, transparent);
}
.mark-tile--idle .nmark__d {
  fill: var(--ui);
}
.mark-tile--idle {
  box-shadow: 0 0 56px color-mix(in oklab, var(--ui) 16%, transparent);
}

.big-code {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
}

@media (max-width: 560px) {
  .cta {
    width: 100%;
  }
  .solo__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .solo__actions .btn {
    width: 100%;
  }
  .callout .btn {
    justify-self: stretch;
  }
}

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