/*
  Komo layout. No colour literals here: every colour is a token from tokens.css,
  shades are color-mix() of those tokens.
  Measured off the reference (computed values): header 64px, container 1152px with
  16px/24px gutters, section rhythm 64/80/96px, hover transitions 150ms on
  cubic-bezier(.4,0,.2,1), header blur 12px, breakpoints 640/768/1024px.
*/
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .15s;
  --hit: 44px;
  --radius-md: .375rem;
  --radius-lg: .5rem;
  --line-60: color-mix(in srgb, var(--line) 60%, transparent);
  --line-70: color-mix(in srgb, var(--line) 70%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--card); border: 1px solid var(--line); padding: .75rem 1rem; border-radius: var(--radius-md); }
.skip:focus { top: .5rem; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

/* ---------- top block: header + CA slot, sticky together ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar { border-bottom: 1px solid var(--line-60); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-height: var(--hit); }
.brand-mark { width: 2rem; height: 2rem; border-radius: .125rem; }
.brand-name { font-family: var(--mono); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .28em; }
.nav { display: flex; align-items: center; gap: .75rem; }
@media (min-width: 40rem) { .nav { gap: 1.5rem; } }
.nav-link, .nav-chip { display: none; align-items: center; min-height: var(--hit); font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .1em; color: var(--muted); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
@media (min-width: 40rem) { .nav-link, .nav-chip { display: inline-flex; } }
.nav-chip { color: var(--accent-ink); padding-inline: .875rem; border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
@media (hover: hover) {
  .nav-link:hover { color: var(--ink); }
  .nav-chip:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
}

/* social icons: top-right at every width, icon only */
.socials { display: flex; align-items: center; gap: 0; margin-right: -.625rem; }
.social { display: inline-flex; align-items: center; justify-content: center; width: var(--hit); height: var(--hit); color: var(--muted); transition: color var(--dur) var(--ease); }
.social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
a.social { color: var(--ink-soft); }
@media (hover: hover) { a.social:hover { color: var(--ink); } }
.social.is-inert { color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: default; }

/* CA slot */
.ca { display: flex; align-items: center; gap: .75rem 1rem; width: 100%; min-height: 3.25rem; padding: .5rem 1rem; text-align: left; border: 0; border-bottom: 1px solid var(--line-60); background: color-mix(in srgb, var(--accent) 5%, transparent); }
@media (min-width: 40rem) { .ca { padding-inline: 1.5rem; } }
.ca-in { display: flex; align-items: center; gap: .75rem 1rem; width: 100%; max-width: 72rem; margin-inline: auto; }
.ca-tag { flex: none; font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .24em; color: var(--accent-ink); }
.ca-value { user-select: text; flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-weight: 500; font-size: clamp(.9375rem, .62rem + 1.25vw, 1.5rem); line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }
.ca-meta { flex: none; font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .05em; color: var(--muted); }
.ca-action { position: relative; flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: var(--hit); padding-inline: .75rem; border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--accent-ink); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.ca-action svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button.ca { cursor: pointer; }
button.ca.is-copied .ca-action { background: var(--accent); color: var(--bg); border-color: var(--accent); }
@media (hover: hover) { button.ca:hover .ca-action { background: color-mix(in srgb, var(--accent) 20%, transparent); } button.ca.is-copied:hover .ca-action { background: var(--accent); } }
.ca.is-inert .ca-value { color: var(--muted); }
.sr-copy { position: fixed; opacity: 0; pointer-events: none; }
.ca-ico { display: inline-flex; }
.ca-ico-check { display: none; }
.is-copied .ca-ico-copy { display: none; }
.is-copied .ca-ico-check { display: inline-flex; }
@media (max-width: 39.99rem) {
  .ca.is-inert .ca-value { font-size: .9375rem; }
  .ca.is-inert .ca-meta { margin-left: auto; }
  .ca.is-live .ca-in { align-items: center; }
  .ca.is-live .ca-action { width: var(--hit); padding-inline: 0; justify-content: center; }
  .ca.is-live .ca-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .3em; color: var(--accent-ink); }
.h1 { margin-top: 1rem; font-size: 2.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
@media (min-width: 40rem) { .h1 { font-size: 3rem; } }
.h2 { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.h2-sm { font-size: 1.5rem; line-height: 2rem; }
.h2-xl { margin-inline: auto; max-width: 42rem; margin-top: 0; }
@media (min-width: 40rem) { .h2-xl { font-size: 2.25rem; line-height: 2.5rem; } }
.h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.h4 { font-family: var(--mono); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .025em; }
.lede, .body { margin-top: 1.5rem; line-height: 1.625; color: var(--muted); text-wrap: pretty; }
.lede { max-width: 28rem; }
.body-wide { margin-top: 1rem; max-width: 42rem; }
.body-panel { margin-top: 1rem; max-width: 48rem; }
.body-center { margin: 1rem auto 0; max-width: 36rem; }
.small { margin-top: .75rem; font-size: .875rem; line-height: 1.625; color: var(--muted); text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--hit); padding: .625rem 1.25rem; border-radius: var(--radius-md); font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .1em; border: 1px solid transparent; cursor: pointer; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg) 40%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-lg { padding: .75rem 1.5rem; }
@media (hover: hover) {
  .btn-primary:hover { opacity: .9; }
  .btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent-ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 92svh; border-bottom: 1px solid var(--line-60); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-logo { position: absolute; top: 50%; right: -18%; width: min(58rem, 96vw); height: auto; aspect-ratio: 1; transform: translateY(-50%); opacity: .38; }
@media (min-width: 48rem) { .hero-logo { right: -4%; width: min(60rem, 62vw); opacity: .95; } }
.veil { position: absolute; pointer-events: none; }
.veil-side { inset: 0; background: linear-gradient(to right, var(--bg), color-mix(in srgb, var(--bg) 30%, transparent), transparent); }
.veil-bottom { inset-inline: 0; bottom: 0; height: 10rem; background: linear-gradient(to top, var(--bg), transparent); }
.veil-top { inset-inline: 0; top: 0; height: 6rem; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 90%, transparent), transparent); }
.hero-in { position: relative; z-index: 1; padding-block: 6rem; }
.hero-copy { max-width: 36rem; }
.hero-card { margin-top: 2rem; padding: .75rem 1rem; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 5%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-card-k { font-family: var(--mono); font-size: .625rem; line-height: 1rem; letter-spacing: .24em; color: var(--accent-ink); }
.hero-card-v { margin-top: .25rem; font-family: var(--mono); font-size: .75rem; line-height: 1.25rem; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .hero-card-v { font-size: .875rem; } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }

/* ---------- bands ---------- */
.band { border-bottom: 1px solid var(--line-60); }
.anchor { scroll-margin-top: 9rem; }
.band-in { padding-block: 4rem; }
.statement { max-width: 48rem; font-size: 1.25rem; line-height: 1.75rem; text-wrap: pretty; }
@media (min-width: 40rem) { .statement { font-size: 1.5rem; line-height: 2rem; } }
.soft { color: var(--muted); }
.split { display: grid; gap: 3rem; padding-block: 5rem; }
@media (min-width: 48rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pad-lg { padding-block: 5rem; }
.pad-md { padding-block: 4rem; }
.stack { display: flex; flex-direction: column; justify-content: center; gap: .75rem; }
.note { padding: .75rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--line-70); background: var(--card); font-size: .875rem; line-height: 1.625; color: var(--muted); }

.cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line-70); background: var(--card); }
.card-head { display: flex; align-items: baseline; gap: .75rem; }
.num { font-family: var(--mono); font-size: .75rem; line-height: 1rem; color: var(--accent-ink); }

.mosaic { display: grid; gap: 1px; margin-top: 2.5rem; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-70); background: var(--line-70); }
@media (min-width: 40rem) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cell { padding: 1.5rem; background: var(--card); }

.flow { display: flex; flex-direction: column; justify-content: center; }
.node { padding: .75rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--line-70); background: var(--card); }
.node.is-komo { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.node-t { font-family: var(--mono); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .025em; }
.node-d { font-size: .875rem; line-height: 1.25rem; color: var(--muted); }
.link { width: 1px; height: 1rem; margin-left: 1.5rem; background: var(--line); }

/* register tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--line-70); background: color-mix(in srgb, var(--card) 70%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color var(--dur) var(--ease); }
a.tile { min-height: var(--hit); }
@media (hover: hover) { a.tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); } }
.dot { flex: none; width: .625rem; height: .625rem; border-radius: 50%; border: 1px solid var(--muted); }
.tile[data-state="stated"] .dot { background: var(--accent); border-color: var(--accent); }
.tile-body { min-width: 0; }
.tile-k { font-family: var(--mono); font-size: .625rem; line-height: 1rem; letter-spacing: .24em; color: var(--muted); }
.tile-v { margin-top: .125rem; font-family: var(--mono); font-size: .75rem; line-height: 1.25rem; letter-spacing: .05em; color: var(--ink); overflow-wrap: anywhere; }
.tile[data-state]:not([data-state="stated"]) .tile-v { color: var(--muted); }
.tile-d { font-family: var(--mono); font-size: .625rem; line-height: 1rem; letter-spacing: .05em; color: var(--muted); }

.check { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line-70); background: var(--card); }
.check-help { margin-top: .5rem; }
.check-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.field { flex: 1 1 16rem; min-width: 0; min-height: var(--hit); padding: .5rem .875rem; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-size: .875rem; transition: border-color var(--dur) var(--ease); }
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--accent); outline: none; }
.check-out { margin-top: 1rem; min-height: 1.5rem; font-size: .875rem; line-height: 1.5rem; color: var(--ink-soft); }
.check-out[data-kind="match"] { color: var(--ink); }
.check-out[data-kind="match"]::before { content: "\2713\00a0"; color: var(--accent-ink); }
.check-out[data-kind="mismatch"]::before { content: "\2715\00a0"; color: var(--ink); }

.panel { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line-70); background: var(--card); }
@media (min-width: 40rem) { .panel { padding: 2.5rem; } }
.panel-banner { width: 100%; height: auto; aspect-ratio: 3 / 1; margin-top: 2rem; border-radius: var(--radius-md); border: 1px solid var(--line-70); object-fit: cover; }

.closer { padding-block: 6rem; text-align: center; }
.closer .btn { margin-top: 2rem; }

.foot { border-top: 1px solid var(--line-60); }
.foot-in { display: flex; flex-direction: column; gap: 1.5rem; padding-block: 2.5rem; }
@media (min-width: 40rem) { .foot-in { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot-brand { display: flex; align-items: center; gap: .75rem; }
.foot-mark { width: 1.75rem; height: 1.75rem; border-radius: .125rem; }
.foot-name { font-family: var(--mono); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .28em; }
.foot-tag { font-size: .75rem; line-height: 1rem; color: var(--muted); }
.foot-meta { font-family: var(--mono); font-size: .75rem; line-height: 1rem; letter-spacing: .1em; color: var(--muted); }

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