/* SPDX-License-Identifier: Apache-2.0 */

/* Design tokens read off the shipped aideploy.co surface so the public command
   builder is visibly the same product, not a lookalike. Self-hosted Inter keeps
   the page's "no network requests" promise true. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-latin-400-normal.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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/inter-latin-500-normal.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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-latin-600-normal.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 {
  --bg: #030611;
  --ink: #ffffff;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;

  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);

  --cyan: #67e8f9;
  --cyan-ink: #cffafe;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --pink: #f472b6;
  --amber: #fcd34d;

  --radius-card: 20px;
  --radius-tile: 16px;
  --radius-pill: 9999px;

  --shell: 1150px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient depth: a top glow, a faint 112px grid, and a vignette. Pseudo-elements
   keep this out of the DOM so nothing here is focusable or readable by AT. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(86, 120, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(232, 121, 249, 0.12), transparent 38%),
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 0),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 112px 112px, 112px 112px;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.98) 55%, transparent);
  mask-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.98) 55%, transparent);
}

body::after {
  background: radial-gradient(circle, transparent 42%, rgba(2, 6, 23, 0.45) 100%);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan-ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 12px;
  translate: -50% -200%;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #0b1220;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  z-index: 20;
  transition: translate 0.15s ease;
}

.skip-link:focus-visible {
  translate: -50% 0;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- header ---------- */

.site-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--cyan-ink);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: linear-gradient(rgba(8, 18, 38, 0.88), rgba(11, 16, 32, 0.82));
  color: var(--ink) !important;
}

.nav-cta:hover {
  border-color: rgba(125, 211, 252, 0.45);
}

/* ---------- hero ---------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 56px 0 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.hero-deck {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--body);
}

.privacy-proof {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.15rem;
  border-radius: 12px;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.25);
  color: var(--cyan);
}

.privacy-proof > span:last-child {
  display: grid;
  gap: 5px;
}

.privacy-proof strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.privacy-proof small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ---------- builder shell ---------- */

.builder-shell {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.builder-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 32px 26px;
  border-bottom: 1px solid var(--line);
}

.step-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: linear-gradient(rgba(8, 18, 38, 0.88), rgba(11, 16, 32, 0.82));
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
}

.step-rail a:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: var(--ink);
}

.step-rail a > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: rgba(103, 232, 249, 0.14);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 600;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.choice-stack {
  padding: 8px 32px 32px;
  border-right: 1px solid var(--line);
}

/* ---------- choice sections ---------- */

.choice-section {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 26px 0;
}

.choice-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 6px;
}

.choice-section legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 500;
}

.choice-section legend > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.choice-section > p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 62ch;
}

.choice-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-tile);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.choice-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-indicator {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.choice-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background 0.16s ease;
}

.choice-card:has(input:checked) {
  border-color: rgba(103, 232, 249, 0.45);
  background: rgba(103, 232, 249, 0.07);
}

.choice-card:has(input:checked) .choice-indicator {
  border-color: var(--cyan);
}

.choice-card:has(input:checked) .choice-indicator::after {
  background: var(--cyan);
}

.choice-card:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.choice-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.choice-title {
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}

.choice-description {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- badges ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.25);
  color: var(--cyan-ink);
  white-space: nowrap;
}

.status-badge.is-default {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
  color: #ddd6fe;
}

.status-badge.is-pending {
  background: rgba(252, 211, 77, 0.1);
  border-color: rgba(252, 211, 77, 0.25);
  color: #fef3c7;
}

/* ---------- hosted options ---------- */

.hosted-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-tile);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.hosted-options > span:first-child {
  color: var(--faint);
  font-size: 0.8rem;
}

.hosted-options ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hosted-options li {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.hosted-options a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- region select ---------- */

.select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
}

.select-wrap {
  position: relative;
}

.select-wrap > svg {
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  width: 100%;
  padding: 14px 46px 14px 16px;
  border-radius: var(--radius-tile);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.select-wrap select option,
.select-wrap select optgroup {
  background: #0b1220;
  color: var(--body);
}

.field-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ---------- command panel ---------- */

.command-panel {
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.command-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ready-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.ready-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
}

.command-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.terminal {
  border-radius: var(--radius-tile);
  border: 1px solid var(--line);
  background: #060b18;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #314058;
}

.terminal-bar strong {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  padding: 18px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal code,
.future-command code {
  color: #d9fff9;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.8;
  word-break: break-word;
  /* Keep every `--flag` readable as two hyphens. SF Mono and several other
     default monospace faces ligate `--` into a single long dash, which reads
     as an em dash to anyone retyping the command instead of copying it. */
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
}

.terminal pre code::before {
  content: '$ ';
  color: #4ade80;
}

/* ---------- copy button ---------- */

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(
    135deg,
    rgba(117, 64, 238, 0.95),
    rgba(68, 103, 255, 0.92),
    rgba(255, 143, 233, 0.9)
  );
  box-shadow: 0 18px 45px rgba(76, 95, 255, 0.35);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: translate 0.16s ease, box-shadow 0.16s ease;
}

.copy-button svg {
  width: 18px;
  height: 18px;
}

.copy-button:hover:not(:disabled) {
  translate: 0 -1px;
  box-shadow: 0 22px 55px rgba(76, 95, 255, 0.45);
}

.copy-button:disabled {
  cursor: default;
  opacity: 0.75;
}

.copy-button[data-state='copied'] {
  background-image: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.32);
}

.copy-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- command facts ---------- */

.command-facts {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.command-facts dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.command-facts dl > div {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.command-facts dt {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.safety-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.safety-list li > span {
  color: var(--cyan);
}

/* ---------- npm disclosure ---------- */

.future-command {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.future-command summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--body);
  font-size: 0.88rem;
  list-style: none;
}

.future-command summary::-webkit-details-marker {
  display: none;
}

.future-command summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  rotate: -45deg;
  transition: rotate 0.16s ease;
}

.future-command[open] summary::before {
  rotate: 45deg;
}

.future-command code {
  display: block;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #060b18;
  border: 1px solid var(--line);
  color: var(--faint);
}

/* ---------- readiness ---------- */

.readiness {
  padding: 76px 0 0;
}

.readiness-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.readiness-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.readiness-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.readiness-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.readiness-list > li:last-child {
  border-bottom: 0;
}

.readiness-number {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.readiness-list h3 {
  font-size: 1rem;
  font-weight: 500;
}

.readiness-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.link-cluster {
  grid-row: span 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.link-cluster a {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- hosted CTA ---------- */

.hosted-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 76px;
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(167, 139, 250, 0.22);
  background:
    radial-gradient(circle at 12% 20%, rgba(117, 64, 238, 0.16), transparent 60%),
    radial-gradient(circle at 88% 80%, rgba(255, 143, 233, 0.12), transparent 55%),
    var(--surface);
}

.hosted-cta h2 {
  margin: 12px 0 14px;
}

.hosted-cta p {
  margin: 0;
  max-width: 56ch;
  color: var(--body);
}

.hosted-cta > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(
    135deg,
    rgba(117, 64, 238, 0.95),
    rgba(68, 103, 255, 0.92),
    rgba(255, 143, 233, 0.9)
  );
  box-shadow: 0 18px 45px rgba(76, 95, 255, 0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  transition: translate 0.16s ease, box-shadow 0.16s ease;
}

.hosted-cta > a:hover {
  translate: 0 -1px;
  box-shadow: 0 22px 55px rgba(76, 95, 255, 0.45);
  color: #ffffff;
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 30px 40px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-footer nav a:hover {
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 48px;
  }

  .builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-stack {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .command-panel {
    position: static;
  }

  .readiness-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .hosted-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    padding-inline: 22px;
  }

  main {
    padding: 0 22px 56px;
  }

  .builder-header,
  .choice-stack,
  .command-panel {
    padding-inline: 20px;
  }

  .readiness-list > li {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px 20px;
  }

  .link-cluster {
    grid-row: auto;
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .command-facts,
  .safety-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hosted-cta {
    padding: 28px 22px;
  }

  .hosted-cta > a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- safety states ---------- */

/* Framed (clickjacking) and JS-disabled both end with the same hazard: a
   visible command that does not match what the controls say. In both states
   the command and its copy control are removed and a warning takes their
   place, so there is nothing misleading left to copy. */

[data-framed='true'] .terminal,
[data-framed='true'] .copy-button,
[data-framed='true'] .future-command,
[data-framed='true'] .command-facts {
  display: none;
}

.framed-warning,
.noscript-warning {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08);
  color: #fef3c7;
  font-size: 0.92rem;
  line-height: 1.55;
}

.framed-warning,
.noscript-warning {
  display: none;
  margin: 0 0 18px;
}

[data-framed='true'] .framed-warning {
  display: block;
}

.no-js .noscript-warning {
  display: block;
}

.no-js .terminal,
.no-js .copy-button,
.no-js .copy-status,
.no-js .future-command,
.no-js .command-facts,
.no-js .choice-section,
.no-js .step-rail {
  display: none;
}
