/*
 * The marketing site's styles. Colours and fonts come from the console's tokens (theme/tokens.css,
 * copied in at build time), so light and dark follow the device the same way the console does.
 * Sizes here are larger than the console's: this is a page to read, not a workbench.
 */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px / 1.55 var(--font-sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; border-radius: var(--r-1); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg-raised); padding: 8px 12px; border: 1px solid var(--rule-2); }
.mono { font-family: var(--font-mono); font-variation-settings: 'wdth' var(--wdth-mono); letter-spacing: -0.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---- Header --------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 680; font-size: 19px; font-stretch: 82%; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.brand-bg { fill: var(--accent); }
.brand-tree { fill: var(--on-accent); }
.nav { display: flex; gap: 22px; margin-right: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 6px 8px; }
.lang:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .top .wrap { gap: 12px; justify-content: space-between; } .top-actions { margin-left: auto; } }
@media (max-width: 420px) { .top-actions .btn-primary { display: none; } }

/* ---- Buttons -------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--r-4); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule-2); background: var(--bg-raised); color: var(--ink);
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.btn:hover { background: var(--bg-hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---- Hero ----------------------------------------------------------------------------------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); background:
  linear-gradient(to bottom, transparent, var(--bg-rail)),
  repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--rule) 55%, transparent) 79px 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero { padding: 56px 0 48px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 13px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--r-round); padding: 4px 12px 4px 10px; }
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 680; font-stretch: 75%; letter-spacing: -0.025em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 22px 0 0; font-size: 19px; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* The terminal card: the console's dark code surface. */
.term { background: var(--term); color: var(--term-ink); border-radius: 10px; box-shadow: var(--shadow-pop); overflow: hidden; border: 1px solid var(--term-rule); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--term-rule); background: var(--term-2); font-size: 12px; color: var(--term-dim); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-rule); }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px 20px 22px; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--term-live); }
.term .d { color: var(--term-dim); }
.term .ok { color: var(--term-live); }
.term .h { color: var(--term-redact); }

/* ---- Sections ------------------------------------------------------------------------------- */
section { padding: 88px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 60px; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.kicker { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); font-weight: 600; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 680; font-stretch: 78%; letter-spacing: -0.02em; max-width: 20em; text-wrap: balance; }
.sub { margin: 16px 0 0; color: var(--ink-2); max-width: 40em; font-size: 18px; text-wrap: pretty; }
h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 650; font-stretch: 90%; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.cell { padding: 28px 28px 32px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); }
.cell .n { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 18px; }
.cell p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.cell ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-3); }
.cell li { padding: 3px 0 3px 16px; position: relative; }
.cell li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: var(--accent-line); }

/* Sovereignty: a two-column statement on the rail colour. */
.alt { background: var(--bg-rail); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule-2); }
.points svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.points p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.label-out { display: inline-block; font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: var(--r-2); padding: 0 6px; margin: 0 2px; }

/* Audiences */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--rule); border-radius: 8px; padding: 26px 26px 28px; background: var(--bg-raised); display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: var(--r-round); padding: 2px 10px; border: 1px solid var(--accent-line); color: var(--accent-ink); background: var(--accent-wash); }
.tag-later { border-color: var(--rule-2); color: var(--ink-3); background: var(--bg); }

/* Migration */
.migrate { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .migrate { grid-template-columns: 1fr; gap: 32px; } }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; color: var(--accent-ink); border: 1px solid var(--accent-line); background: var(--accent-wash); }

/* Closing call to action */
.final { text-align: center; padding: 96px 0; }
.final h2 { margin: 0 auto; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }

/* ---- Footer --------------------------------------------------------------------------------- */
footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand { font-size: 16px; color: var(--ink); }
footer .brand svg { width: 20px; height: 20px; }

/* ---- 404 ------------------------------------------------------------------------------------ */
.missing { min-height: calc(100vh - 60px); display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.missing p { color: var(--ink-2); }
.missing .cta { justify-content: center; }

/* ---- Contact -------------------------------------------------------------------------------- */
.contact { padding-top: 88px; padding-bottom: 96px; }
.contact > * { max-width: 40em; }
.contact h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-stretch: 78%; letter-spacing: -0.02em; }
.contact .mail { font-size: clamp(22px, 3vw, 28px); font-weight: 650; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; }
