/* zyqiko.com — values from the Zyqiko kit release 2026-11-28-6a2f09d8 (brand.json), dark theme. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-var.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  /* Theme roles: dark */
  --bg: #0E0F12;        /* graphite-900 */
  --surface: #1C1E23;   /* carbon-800 */
  --text: #F5F2EA;      /* bone-50 */
  --muted: #8A8F98;     /* ash-400 */
  --accent: #F2B705;    /* solar-500 */
  --rule: #2A2D33;
  --on-accent: #0E0F12; /* allowed pair: graphite-900 on solar-500 */

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-sm: 0.875rem;   --lh-sm: 1.25rem;
  --text-base: 1rem;     --lh-base: 1.5rem;
  --text-lg: 1.25rem;    --lh-lg: 1.75rem;
  --text-xl: 1.5625rem;  --lh-xl: 2rem;
  --text-2xl: 1.9375rem; --lh-2xl: 2.25rem;
  --text-3xl: 2.4375rem; --lh-3xl: 2.75rem;
  --text-4xl: 3.0625rem; --lh-4xl: 3.25rem;
  --text-5xl: 3.8125rem; --lh-5xl: 4rem;
  --track-tight: -0.01em;
  --track-caps: 0.14em;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px; --space-9: 128px;
  --radius-control: 6px;
  --radius-surface: 12px;
  --motion-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --gutter: 24px;
  --prose-max: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:where(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: min(var(--container-max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* ---- Top bar ---- */
.topbar { padding-block: var(--space-4); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: block; width: 140px; }
.brand img { display: block; width: 100%; height: auto; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.topbar nav a, footer nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); font-size: var(--text-sm); text-decoration: none;
}
.topbar nav a:hover, footer nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Hero ---- */
.hero { padding-block: var(--space-9) var(--space-8); }
.hero h1 {
  max-width: 18ch; margin: 0;
  font-size: var(--text-5xl); line-height: var(--lh-5xl);
  font-weight: 600; letter-spacing: var(--track-tight); text-wrap: balance;
}
.action { margin: var(--space-6) 0 0; }
.button, .signup-form button {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-control);
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--text-base)/var(--lh-base) var(--font);
  text-decoration: none; cursor: pointer;
  transition: filter var(--motion-fast);
}
.button:hover, .signup-form button:hover { filter: brightness(1.08); text-decoration: underline; text-underline-offset: 4px; }
.signup-form button:disabled { opacity: 0.6; cursor: progress; }

/* ---- Bands ---- */
.band { padding-block: var(--space-8); border-top: 1px solid var(--rule); }
.band h2 {
  margin: 0; color: var(--accent);
  font-size: var(--text-sm); line-height: var(--lh-sm);
  font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase;
}
.lead {
  max-width: 24ch; margin: var(--space-3) 0 0;
  font-size: var(--text-3xl); line-height: var(--lh-3xl);
  font-weight: 500; letter-spacing: var(--track-tight);
}
.lead-wide { max-width: 32ch; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-5); align-items: start; }
.split-head { grid-column: 1 / span 5; }
.split > .points { grid-column: 7 / -1; }

.points { margin: 0; padding: 0; list-style: none; }
.points li { padding-block: var(--space-3); border-top: 1px solid var(--rule); color: var(--muted); max-width: 60ch; }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points strong { color: var(--text); font-weight: 600; }
.points-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.points-grid li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }

/* ---- Six layers: the question each layer answers ---- */
.table-wrap { margin-top: var(--space-6); overflow-x: auto; }
.layers { width: 100%; border-collapse: collapse; }
.layers thead th {
  padding: 0 var(--space-3) var(--space-3) 0; text-align: left;
  color: var(--muted); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.layers tbody th, .layers td { padding: var(--space-4) var(--space-4) var(--space-4) 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--rule); }
.layers tbody th { width: 24%; font-weight: 600; }
.layers td { color: var(--muted); }
.layers td.q { width: 38%; color: var(--text); font-size: var(--text-lg); line-height: var(--lh-lg); }
.layers .n {
  display: inline-block; min-width: 1.75em; color: var(--accent);
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.layers tbody tr { transition: background-color var(--motion-fast); }
.layers tbody tr:hover { background: var(--surface); }

/* ---- Early access ---- */
.signup { max-width: 720px; padding: var(--space-6); background: var(--surface); border-radius: var(--radius-surface); }
.signup-form { margin-top: var(--space-5); }
.signup-form label { display: block; margin-bottom: var(--space-2); font-weight: 500; }
.signup-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.signup-row input {
  flex: 1 1 260px; min-height: 48px; padding: 0 var(--space-3);
  border: 1px solid var(--muted); border-radius: var(--radius-control);
  background: var(--bg); color: var(--text); font: var(--text-base) var(--font);
}
.signup-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: var(--lh-base); margin: var(--space-3) 0 0; font-weight: 500; }
.status span { display: none; }
.status span.show, .status span:target { display: inline; }
.note { max-width: 60ch; margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: var(--lh-sm); }

/* ---- Footer ---- */
footer { padding-block: var(--space-6); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); }
footer p { margin: 0; font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }

/* ---- Phones and small tablets ---- */
@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-block: var(--space-7) var(--space-6); }
  .hero h1 { font-size: var(--text-3xl); line-height: var(--lh-3xl); }
  .band { padding-block: var(--space-7); }
  .lead { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
  .split-head, .split > .points { grid-column: 1 / -1; }
  .points-grid { grid-template-columns: 1fr; }
  .points-grid li:nth-last-child(2) { border-bottom: 0; }
  .layers thead { display: none; }
  .layers, .layers tbody, .layers tr, .layers th, .layers td { display: block; width: auto !important; }
  .layers tr { padding-block: var(--space-3); border-bottom: 1px solid var(--rule); }
  .layers tbody th, .layers td { padding: var(--space-1) 0; border: 0; }
  .signup { padding: var(--space-5) var(--space-4); }
}
@media (max-width: 520px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .brand { width: 120px; }
}

/* ---- Diagrams: Zyqiko's graph language (logo: graph nodes, edges, one gold core) ---- */
.art { display: block; width: 100%; height: auto; overflow: visible; }
.art * { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art .ring { stroke: var(--rule); }
.art .ring:nth-of-type(odd) { stroke: #3A3E46; }
.art .edge, .art .spoke, .art .plan, .art .ext-link { stroke: var(--muted); }
.art .node { fill: var(--text); stroke: none; }
.art .core { stroke: var(--accent); stroke-width: 6; }
.art .core-dot { fill: var(--accent); stroke: none; }
.art .doc { stroke: var(--muted); fill: var(--surface); }
.art .doc-line { stroke: var(--muted); stroke-opacity: 0.6; }
.art .ghost { stroke: var(--muted); stroke-dasharray: 3 5; }
.art .drift { stroke: var(--accent); stroke-dasharray: 2 4; }
.art .run { stroke: var(--text); stroke-opacity: 0.85; }
.art .plan { stroke-dasharray: 4 6; }
.art .ext { stroke: var(--accent); fill: var(--bg); }
.art .plate path { stroke: var(--muted); fill: var(--surface); transition: stroke var(--motion-fast), fill var(--motion-fast); }
.art .plate text { fill: var(--accent); stroke: none; font: 500 15px var(--font); font-variant-numeric: tabular-nums; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.art-hero { max-width: 460px; justify-self: end; }
.split-head .art { max-width: 460px; margin-top: var(--space-6); padding: var(--space-5) var(--space-4); background: var(--surface); border-radius: var(--radius-surface); }
.layers-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-6); align-items: center; }
.art-stack { max-width: 320px; justify-self: end; }

/* Pointing at a layer's row lights its plate in the stack. */
#layers:has(tbody tr:nth-child(1):hover) .plate-1 path,
#layers:has(tbody tr:nth-child(2):hover) .plate-2 path,
#layers:has(tbody tr:nth-child(3):hover) .plate-3 path,
#layers:has(tbody tr:nth-child(4):hover) .plate-4 path,
#layers:has(tbody tr:nth-child(5):hover) .plate-5 path,
#layers:has(tbody tr:nth-child(6):hover) .plate-6 path { stroke: var(--accent); fill: #2A2610; }

@media (max-width: 860px) {
  .hero-grid, .layers-head { grid-template-columns: 1fr; }
  .art-hero { max-width: 320px; justify-self: start; }
  .art-stack { max-width: 260px; justify-self: start; }
  .split-head .art { max-width: 340px; margin-top: var(--space-5); }
}
