/*
 * Copyright (c) t3ra Project Contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 *
 * Landing page styles, from the t3ra design system: one face, paper and ink
 * themes, three accents, 1px rules, zero radius, no motion.
 */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
/* Paper theme by default; ink theme from the system or the switch. */

:root {
  --ink: #141414;
  --paper: #ece6da;
  --fluoro-pink: #ff3d9a;
  --riso-blue: #2b4cff;
  --signal-amber: #ffa23e;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-rgb: 20, 20, 20;
  --idx: var(--riso-blue);
  --bg-rgb: 236, 230, 218;

  --font-mono: 'IBM Plex Mono', monospace;
  --gutter: 48px;
  --measure: 1200px;
  --ls-caption: 0.16em;
  --ls-heading: -0.02em;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: var(--ink);
    --fg: var(--paper);
    --fg-rgb: 236, 230, 218;
    --idx: var(--paper);
    --bg-rgb: 20, 20, 20;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-rgb: 236, 230, 218;
  --idx: var(--paper);
  --bg-rgb: 20, 20, 20;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

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

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cap {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}

/* Domain marks: a square node in the domain's ink. */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 1px solid var(--fg);
}
.dot-compute {
  background: var(--riso-blue);
}
.dot-storage {
  background: var(--fluoro-pink);
}
.dot-network {
  background: var(--signal-amber);
}
.dot-platform {
  background: var(--bg);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
/* Hover inverts; no transforms, no transitions. */

.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn-solid {
  background: var(--fg);
  color: var(--bg);
}

.btn-solid:hover {
  background: transparent;
  color: var(--fg);
}

/* ── Top bar ──────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.15);
}

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.bar-mark {
  display: block;
  line-height: 0;
  margin-right: auto;
}

.bar-mark svg {
  width: 64px;
  height: auto;
  fill: currentColor;
}

.bar nav ul {
  display: flex;
  gap: 28px;
}

.bar nav a {
  text-decoration: none;
  color: rgba(var(--fg-rgb), 0.7);
}

.bar nav a:hover {
  color: var(--fg);
}

/* Theme switch: auto / light / dark, a three-cell segmented control. */
.theme {
  display: flex;
  border: 1px solid rgba(var(--fg-rgb), 0.3);
}

.theme button {
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: rgba(var(--fg-rgb), 0.7);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme button + button {
  border-left: 1px solid rgba(var(--fg-rgb), 0.3);
}

.theme button[aria-pressed='true'] {
  background: var(--fg);
  color: var(--bg);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* The design system's Hero: words bottom-left, block mesh top-right.
   The art is identical on both themes; only the ground flips. */

.hero {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.hero-in {
  position: relative;
  min-height: clamp(476px, 70vh, 640px);
  display: flex;
  align-items: flex-end;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 510 / 476;
  display: block;
}

.hero-compute {
  fill: var(--riso-blue);
}
.hero-network {
  fill: var(--signal-amber);
}
.hero-storage {
  fill: var(--fluoro-pink);
}
.hero-line {
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-line.is-faint {
  opacity: 0.18;
}
.hero-node {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-node.is-active {
  fill: var(--signal-amber);
}

.hero-words {
  position: relative;
  width: 50%;
  padding: 64px 32px 72px max(var(--gutter), calc((100cqw - var(--measure)) / 2));
}

.hero-name {
  line-height: 0;
}

.hero-name svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  fill: currentColor;
}

.hero-sub {
  margin: 28px 0 0 2px;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-tag {
  margin: 10px 0 0 2px;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ls-heading);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@container (max-width: 860px) {
  .hero-in {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-art {
    position: static;
    width: 100%;
    height: 240px;
    aspect-ratio: auto;
  }
  .hero-words {
    width: 100%;
    padding: 40px var(--gutter) 56px;
  }
  .hero-sub {
    font-size: 1.0625rem;
  }
}

/* ── Proof band ───────────────────────────────────────────────────────── */
/* The one full-bleed accent beat: network amber, ink text, both themes. */

.band {
  background: var(--signal-amber);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.band ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.band li {
  padding: 28px 24px;
}

.band li:first-child {
  padding-left: 0;
}

.band li + li {
  border-left: 1px solid var(--ink);
}

.band strong {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.band span {
  display: block;
  margin-top: 10px;
  font-size: 0.9375rem;
}

.band .cap {
  margin: 0 0 14px;
  font-size: 0.75rem;
}

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

.section {
  padding: 112px 0;
}

.section + .section {
  border-top: 1px solid rgba(var(--fg-rgb), 0.15);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head .cap {
  color: rgba(var(--fg-rgb), 0.7);
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

.section-head h2 em {
  font-style: normal;
  color: rgba(var(--fg-rgb), 0.55);
}

.section-head p:not(.cap) {
  margin-top: 20px;
  font-size: 1.0625rem;
}

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

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* The deck's sub-heading: bold caption behind a signal-amber bar. */
.sub-head {
  display: inline-block;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--signal-amber);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
}

/* What we do: the first words after the hero. */
.intro {
  padding: 96px 0 72px;
}

.intro .cap {
  color: rgba(var(--fg-rgb), 0.7);
}

.intro h2 {
  max-width: 22ch;
  margin-top: 16px;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

.intro p:not(.cap) {
  max-width: 60ch;
  margin-top: 24px;
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Three columns under a solid rule. */
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.cols > li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--fg);
}

.cols .cap {
  color: rgba(var(--fg-rgb), 0.7);
}

.statement {
  margin-top: 48px;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: var(--ls-heading);
}

/* How it works: steps beside the entry point. */
.how {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.how-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  font-size: 1.0625rem;
}

.boxed {
  padding: 12px 20px;
  border: 1px solid var(--fg);
  font-size: 1.25rem;
  font-weight: 700;
}

.ledger li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.ledger li:first-child {
  border-top: 1px solid rgba(var(--fg-rgb), 0.18);
}

.ledger .idx {
  font-weight: 500;
  color: var(--idx);
}

.ledger b {
  font-size: 1.125rem;
}

.ledger p {
  grid-column: 2;
  color: rgba(var(--fg-rgb), 0.7);
}

.pillars {
  margin-top: 72px;
}

.pillars h3 {
  font-size: 1.125rem;
}

.pillars ul li::before {
  content: '▸ ';
  color: var(--idx);
}

/* Start small: four steps, touching boxes share one stroke. */
.story {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--fg);
}

.story li + li {
  border-left: 0;
}

.story .idx {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-heading);
  color: var(--idx);
}

.story .cap {
  color: rgba(var(--fg-rgb), 0.7);
}

/* ── Command center preview ───────────────────────────────────────────── */
/* A static rendering of the operator UI, in the system's own terms. */

.frame {
  border: 1px solid var(--fg);
  font-size: 0.75rem;
  line-height: 1.45;
}

.frame-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--fg);
}

.frame-chrome i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: 1px solid var(--fg);
}

.app {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 260px;
  min-height: 460px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-right: 1px solid rgba(var(--fg-rgb), 0.25);
}

.app-nav .cap {
  padding: 0 14px 12px;
  font-size: 0.625rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.app-nav li {
  padding: 7px 14px;
  border-left: 2px solid transparent;
}

.app-nav li.is-on {
  border-left-color: var(--fg);
  font-weight: 700;
}

.app-nav .app-foot {
  margin-top: auto;
  padding: 12px 14px 0;
  border-top: 1px solid rgba(var(--fg-rgb), 0.25);
  color: rgba(var(--fg-rgb), 0.7);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.25);
}

.app-tabs {
  display: flex;
}

.app-tabs span {
  padding: 2px 10px;
  border: 1px solid rgba(var(--fg-rgb), 0.3);
}

.app-tabs span + span {
  border-left: 0;
}

.app-tabs .is-on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.app-canvas {
  flex: 1;
  padding: 12px 16px;
}

.app-canvas .cap {
  font-size: 0.625rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.app-canvas svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 8px auto 0;
  color: var(--fg);
}

.t-edge {
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.t-edge.is-faint {
  opacity: 0.18;
}
.t-node {
  fill: var(--bg);
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.t-node.is-active {
  fill: var(--signal-amber);
}
.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: currentColor;
  opacity: 0.6;
}
.t-label.is-active {
  opacity: 1;
  font-weight: 700;
}

.app-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 16px;
  border-top: 1px solid rgba(var(--fg-rgb), 0.25);
}

.app-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-left: 1px solid rgba(var(--fg-rgb), 0.25);
}

.app-panel .cap {
  margin-top: 6px;
  font-size: 0.625rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.app-panel .entity {
  padding: 10px;
  border: 1px solid rgba(var(--fg-rgb), 0.3);
}

.app-panel dl div {
  display: grid;
  grid-template-columns: 40px 1fr;
}

.app-panel dt {
  color: rgba(var(--fg-rgb), 0.6);
}

.warn {
  font-weight: 700;
}

.warn::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--signal-amber);
  border: 1px solid var(--fg);
}

.preview-caption {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(var(--fg-rgb), 0.7);
}

.ui-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.ui-points li {
  padding-top: 16px;
  border-top: 1px solid var(--fg);
}

.ui-points b {
  display: block;
  margin-bottom: 6px;
}

.ui-points p {
  font-size: 0.9375rem;
}

/* ── Roadmap ──────────────────────────────────────────────────────────── */

.roadmap li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 14rem) minmax(0, 1fr) 7rem;
  gap: 4px 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.roadmap li:first-child {
  border-top: 1px solid rgba(var(--fg-rgb), 0.18);
}

.roadmap .idx {
  font-weight: 500;
  color: var(--idx);
}

.roadmap b {
  font-size: 1.0625rem;
}

.roadmap p {
  font-size: 0.9375rem;
}

.roadmap .status {
  text-align: right;
  color: rgba(var(--fg-rgb), 0.7);
}

.roadmap li.is-now .status {
  color: var(--fg);
  font-weight: 700;
}

.roadmap li.is-now .status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--signal-amber);
  border: 1px solid var(--fg);
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
/* The deck's model: three ways in, then commitment and edition side by side. */

.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ways li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--fg);
}

.ways li + li {
  border-left: 0;
}

.ways .cap {
  color: var(--idx);
}

.ways p:not(.cap) {
  color: rgba(var(--fg-rgb), 0.7);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  margin-top: 64px;
}

.terms {
  width: 100%;
  border-collapse: collapse;
}

.terms th {
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.18);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--ls-caption);
  text-align: left;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), 0.7);
}

.terms td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.18);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
}

/* Discounts: ink on signal-amber, readable on both themes. */
.off {
  padding: 2px 10px;
  background: var(--signal-amber);
  color: var(--ink);
}

.terms th:last-child,
.terms td:last-child {
  text-align: right;
}

.terms td:last-child {
  font-weight: 700;
}

.terms tr:last-child td {
  border-bottom: 0;
}

.editions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editions > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 32px;
  border: 1px solid var(--fg);
}

.editions h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.15);
  font-size: 1.625rem;
}

.editions p:not(.tier) {
  padding-top: 4px;
  opacity: 0.7;
}

/* Premium inverts the ground, as on the deck. */
.editions .premium {
  --fg-rgb: var(--bg-rgb);
  background: var(--fg);
  color: var(--bg);
}

.tier {
  align-self: flex-start;
  padding-left: 10px;
  border-left: 4px solid var(--signal-amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}

.price-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--fg-rgb), 0.18);
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
}

.signup {
  display: flex;
  max-width: 560px;
  margin-top: 32px;
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--fg);
  border-right: 0;
  background: transparent;
  color: var(--fg);
  font: 400 1rem/1.3 var(--font-mono);
}

.signup input::placeholder {
  color: rgba(var(--fg-rgb), 0.55);
}

.signup button:disabled {
  opacity: 0.5;
  cursor: progress;
}

.signup input[aria-invalid='true'] {
  border-color: var(--fluoro-pink);
}

/* Honeypot: off-screen rather than display:none, as Infomaniak's embed ships it. */
.signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: rgba(var(--fg-rgb), 0.7);
}

.signup-note[data-state] {
  color: var(--fg);
}

.signup-note[data-state='error']::before {
  content: 'error: ';
  color: var(--fluoro-pink);
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.facts li:first-child {
  border-top: 1px solid rgba(var(--fg-rgb), 0.18);
}

.facts .cap {
  color: rgba(var(--fg-rgb), 0.7);
}

.facts a {
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot-bar {
  padding: 48px 0;
  border-top: 1px solid rgba(var(--fg-rgb), 0.15);
  font-size: 0.875rem;
}

.foot-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.foot-bar svg {
  display: block;
  width: 96px;
  height: auto;
  margin-bottom: 12px;
  fill: currentColor;
}

/* ── Interactive command center ───────────────────────────────────────── */
/* Rendered by command-center.js into #cc; the static preview is its fallback. */

.cc-demo {
  padding: 2px 8px;
  border: 1px solid var(--fg);
  font-size: 0.625rem;
}

.cc-app {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: 620px;
}

.cc-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-right: 1px solid rgba(var(--fg-rgb), 0.25);
}

.cc-nav .cap {
  padding: 0 14px 12px;
  font-size: 0.625rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-nav button {
  display: block;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cc-nav button:hover {
  background: rgba(var(--fg-rgb), 0.06);
}

.cc-nav button[aria-current='page'] {
  border-left-color: var(--fg);
  font-weight: 700;
}

.cc-foot {
  margin-top: auto;
  padding: 12px 14px 0;
  border-top: 1px solid rgba(var(--fg-rgb), 0.25);
  color: rgba(var(--fg-rgb), 0.7);
}

.cc-main {
  overflow: auto;
  padding: 18px 20px 24px;
}

.cc-crumb {
  margin-bottom: 6px;
  color: rgba(var(--fg-rgb), 0.7);
}

.cc-h {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.cc-h:focus {
  outline: none;
}

.cc-sub {
  margin-top: 4px;
  color: rgba(var(--fg-rgb), 0.7);
}

.cc-label {
  margin: 18px 0 8px;
  font-size: 0.625rem;
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(var(--fg-rgb), 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.cc-link:hover {
  text-decoration-color: currentColor;
}

.cc-dim {
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-st {
  white-space: nowrap;
}

.cc-st::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: 1px solid var(--fg);
  background: var(--fg);
}

.cc-st.is-dim::before {
  background: transparent;
}

.cc-st.is-warn::before {
  background: var(--signal-amber);
}

.cc-st.is-bad::before {
  background: linear-gradient(45deg, transparent 44%, var(--fg) 44% 56%, transparent 56%);
}
.cc-st.is-dim {
  color: rgba(var(--fg-rgb), 0.6);
}
.cc-st.is-warn,
.cc-st.is-bad {
  font-weight: 700;
}

.cc-warn {
  font-weight: 700;
}

.cc-warn::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--signal-amber);
  border: 1px solid var(--fg);
}

.cc-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

.cc-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.cc-table th {
  padding: 0 14px 8px 0;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.18);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--ls-caption);
  text-align: left;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-table td {
  padding: 8px 14px 8px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.cc-table tr:last-child td {
  border-bottom: 0;
}

.cc-mesh {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--fg-rgb), 0.18);
}

.cc-big {
  margin-bottom: 4px;
  font-size: 1.125rem;
}

.cc-big span:last-child {
  margin-left: 8px;
  font-weight: 700;
}

.cc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 24px;
}

.cc-topo {
  display: block;
  width: 100%;
  height: auto;
  color: var(--fg);
  overflow: visible;
}

.cc-node {
  cursor: pointer;
}

.cc-node:hover .t-node,
.cc-node:focus .t-node {
  stroke-width: 3;
}

.cc-node:focus {
  outline: none;
}

.cc-alert {
  padding-left: 20px;
  border-left: 1px solid rgba(var(--fg-rgb), 0.25);
}

.cc-alert > p:not(.cap) {
  margin-bottom: 6px;
}

.cc-list li {
  padding: 4px 0;
}

.cc-log li {
  display: grid;
  grid-template-columns: 64px 64px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.cc-log li > .cc-dim:last-child {
  grid-column: 3;
}

.cc-alert .cc-log li {
  grid-template-columns: 56px minmax(0, 1fr);
}

.cc-alert .cc-log .cc-k {
  display: none;
}

.cc-alert .cc-log li > .cc-dim:last-child {
  grid-column: 2;
}

.cc-log-full li {
  grid-template-columns: 80px 72px minmax(0, 1fr) 80px;
}

.cc-log-full li > .cc-dim:last-child {
  grid-column: auto;
}

.cc-t,
.cc-k {
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-kv {
  margin-top: 14px;
}

.cc-kv div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(var(--fg-rgb), 0.22);
}

.cc-kv dt {
  color: rgba(var(--fg-rgb), 0.6);
}

.cc-kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cc-bar {
  display: inline-block;
  width: 80px;
  height: 8px;
  margin-right: 6px;
  border: 1px solid var(--fg);
  vertical-align: 0;
}

.cc-bar i {
  display: block;
  height: 100%;
  background: var(--fg);
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.cc-actions .btn {
  padding: 6px 12px;
  font-size: 0.625rem;
}

.cc-actions .btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
  color: var(--fg);
}

.cc-soon {
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px dashed rgba(var(--fg-rgb), 0.4);
}

.cc-soon .cap {
  margin-right: 8px;
  font-size: 0.625rem;
  font-weight: 700;
}

code {
  font-family: var(--font-mono);
  font-size: inherit;
}

/* ── Narrow screens ───────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .app {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .app-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }
  .bar nav {
    display: none;
  }
  .how,
  .contact,
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story li:nth-child(3) {
    border-left: 1px solid var(--fg);
  }
  .story li:nth-child(n + 3) {
    border-top: 0;
  }
  .ui-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .roadmap li {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .roadmap p,
  .roadmap .status {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding: 72px 0;
  }
  .intro {
    padding: 64px 0 48px;
  }
  .intro p:not(.cap) {
    font-size: 1.0625rem;
  }
  .band ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .band li,
  .band li:first-child {
    padding: 24px 0;
  }
  .band li + li {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .cols,
  .ways,
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .ways li + li,
  .story li + li {
    border-left: 1px solid var(--fg);
    border-top: 0;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-panel {
    border-left: 0;
    border-top: 1px solid rgba(var(--fg-rgb), 0.25);
  }
  .app-top .app-tabs {
    display: none;
  }
  .signup {
    flex-direction: column;
  }
  .signup input {
    border-right: 1px solid var(--fg);
    border-bottom: 0;
  }
  .bar .wrap {
    gap: 16px;
  }
  .bar .btn {
    display: none;
  }
}

@media (max-width: 900px) {
  .cc-app {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .cc-nav {
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--fg-rgb), 0.25);
  }
  .cc-nav .cap,
  .cc-foot {
    display: none;
  }
  .cc-nav ul {
    display: flex;
  }
  .cc-nav button {
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .cc-nav button[aria-current='page'] {
    border-bottom-color: var(--fg);
  }
  .cc-main {
    height: 560px;
  }
  .cc-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .cc-alert {
    padding-left: 0;
    border-left: 0;
  }
  .cc-log-full li {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .cc-log-full li .cc-k {
    display: none;
  }
  .cc-log-full li > .cc-dim:last-child,
  .cc-log li > .cc-dim:last-child {
    grid-column: 2;
  }
  .cc-log li {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .cc-log .cc-k {
    display: none;
  }
}

.cc-hit {
  fill: transparent;
  pointer-events: all;
}
