/* Otto — ottobot.codes
 * Palette from the app icon (navy → periwinkle squircle, mist letterforms) and
 * the mascot's coral status light; the window mock reuses the app's default
 * "Midnight" theme tokens so it looks like Otto in both color schemes. */

:root {
  --bg: #f6f8fc;
  --bg-alt: #edf1f9;
  --surface: #ffffff;
  --ink: #141b36;
  --text: #2c3557;
  --muted: #535d80;
  --line: #dbe1ef;
  --brand: #2e4280;
  --brand-strong: #21305d;
  --brand-soft: #4a70c0;
  --mist: #d4dcf0;
  --accent: #809fff; /* hero accent word, hsl(225deg 100% 75%), same in both schemes */
  --tick: #00cc88; /* problem-card ticks, hsl(160deg 100% 40%), same in both schemes */
  --tick-ink: #12121f; /* the check mark on the green tick, same in both schemes */
  --kicker: #ff1a81; /* section labels, hsl(333deg 100% 55%), same in both schemes */
  /* primary buttons: the robot's royal blue, same in both schemes */
  --primary: #2453ff;
  --primary-hover: #3a66ff;
  --primary-active: #1c3fd6;
  --primary-ink: #ffffff;
  --primary-ring: #2453ff;
  --ghost-border: #c4cde4;
  --icon-bg: #e6ecf8;
  --shadow: 0 1px 2px rgb(20 27 54 / 6%), 0 24px 60px -24px rgb(33 48 93 / 35%);
  --glow: radial-gradient(60% 60% at 70% 30%, rgb(74 112 192 / 22%), transparent 70%);

  /* Midnight (the app's default theme) — used by the mocks in both schemes */
  --m-bg: #1a1a2e;
  --m-side: #16213e;
  --m-card: #1e2a4a;
  --m-line: #2a2a4a;
  --m-text: #e0e0e0;
  --m-muted: #a0a0b0;
  --m-term: #10101c;
  --m-accent: #3b82f6;
  --m-ok: #10b981;
  --m-warn: #f59e0b;
  --m-bad: #ef4444;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'Google Sans Code', 'SF Mono', ui-monospace, Menlo, monospace;

  --radius: 14px;
  --radius-btn: 4px;
  /* the filled CTA with its arrow tile: plain translucent ink */
  --tile-body: rgba(33, 48, 93, 0.07);
  --tile-body-hover: rgba(33, 48, 93, 0.10);
  --tile-box: rgba(33, 48, 93, 0.09);
  --wrap: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --bg-alt: #171729;
    --surface: #1a1a2e;
    --ink: #f0f2fa;
    --text: #c9cfe3;
    --muted: #9aa3c0;
    --line: #2a2a4a;
    --brand: #9fb6df;
    --brand-strong: #c2d4f2;
    --brand-soft: #7d93c8;
    --mist: #2c3c74;
    --primary-ring: #809fff;
    --ghost-border: #3a4c86;
    --tile-body: rgba(255, 255, 255, 0.08);
    --tile-body-hover: rgba(255, 255, 255, 0.11);
    --tile-box: rgba(255, 255, 255, 0.10);
    --icon-bg: #1e2a4a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 30px 80px -30px rgb(0 0 0 / 70%);
    --glow: radial-gradient(60% 60% at 70% 30%, rgb(74 112 192 / 30%), transparent 70%);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--font-mono); font-size: 0.9em; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn);
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .15s, border-color .15s;
}
.btn.btn-primary, .btn.btn-small { background: var(--primary); color: var(--primary-ink); }
.btn.btn-primary:hover, .btn.btn-small:hover, .btn.btn-primary:focus-visible, .btn.btn-small:focus-visible { background: var(--primary-hover); color: var(--primary-ink); }
.btn.btn-primary:hover, .btn.btn-small:hover { transform: translateY(-1px); }
.btn.btn-primary:active, .btn.btn-small:active { background: var(--primary-active); transform: none; }
.btn-primary:focus-visible, .btn-small:focus-visible { outline-color: var(--primary-ring); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
/* filled slab with an arrow tile inset at its right end; .btn.btn-tile so the
   generic link colours (a, a:hover) can never win */
.btn.btn-tile {
  --inset: 6px;
  justify-content: space-between; gap: 14px; padding: var(--inset) var(--inset) var(--inset) 22px;
  background: var(--tile-body); color: var(--ink);
}
.btn.btn-tile:hover, .btn.btn-tile:focus-visible { background: var(--tile-body-hover); color: var(--ink); }
.btn-tile-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 3px;
  background: var(--tile-box); color: var(--ink);
}
.btn-tile-icon svg { display: block; width: 17px; height: 17px; transition: transform .15s; }
.btn-tile:hover .btn-tile-icon svg, .btn-tile:focus-visible .btn-tile-icon svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .btn-tile:hover .btn-tile-icon svg, .btn-tile:focus-visible .btn-tile-icon svg { transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 800 21px/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { margin: -4px; }
nav { margin-left: auto; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
@media (max-width: 760px) {
  nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 80%; height: 120%;
  background: var(--glow); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; margin: 0 0 22px; letter-spacing: -0.025em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--accent); }
/* Otto peeking up from behind the hero's bottom edge (robot-peek.js): .hero clips
   him there, and he's layered in front of the window mock so he peeks over its edge. */
.robot-peek { position: absolute; top: 100%; left: 0; z-index: 2; width: 0; height: 0; pointer-events: none; will-change: transform; }
.hero-grid { z-index: 1; }
@media (min-width: 961px) { .hero { padding-bottom: 128px; } }
.lede { font-size: 19px; max-width: 34em; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 420px) {
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- window mock ---------- */
.mock {
  margin: 0; min-width: 0;
  background: var(--m-bg); color: var(--m-text);
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / 8%);
  box-shadow: var(--shadow), 0 0 0 1px rgb(20 27 54 / 12%);
  font-family: var(--font-body);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
}
@media (max-width: 960px) { .mock { transform: none; } }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #141426; border-bottom: 1px solid var(--m-line); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.mock-title { flex: 1; text-align: center; margin-right: 47px; font-size: 12px; color: var(--m-muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 380px; }

.mock-side { background: var(--m-side); border-right: 1px solid var(--m-line); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.side-label { font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--m-muted); padding: 2px 4px 4px; }
.card { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 9px; padding: 9px 10px; }
.card.is-active { border-color: var(--m-accent); box-shadow: inset 3px 0 0 var(--m-accent); }
.card.is-asleep { opacity: .55; }
.card-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.card-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { font-size: 11px; color: var(--m-muted); margin: 3px 0 0 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { margin-left: auto; flex: none; font: 500 9.5px/1 var(--font-mono); font-style: normal; padding: 3px 6px; border-radius: 5px; background: rgb(255 255 255 / 8%); color: var(--m-muted); }
.badge.warn { background: rgb(245 158 11 / 16%); color: #fbbf24; }
.badge.host { background: rgb(232 90 115 / 18%); color: #f6a0b0; }
.status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status.working { background: var(--m-ok); box-shadow: 0 0 0 3px rgb(16 185 129 / 20%); animation: pulse 2s ease-in-out infinite; }
.status.waiting { background: var(--m-warn); }
.status.remote { background: var(--m-ok); }
.status.asleep { background: transparent; border: 1.5px solid var(--m-muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgb(16 185 129 / 0%); } }
.ctx { height: 3px; margin: 8px 0 0 15px; background: rgb(255 255 255 / 8%); border-radius: 2px; overflow: hidden; }
.ctx span { display: block; height: 100%; width: var(--fill); background: linear-gradient(90deg, #4a70c0, #7d93c8); border-radius: 2px; }
.progress { display: flex; gap: 4px; margin: 8px 0 0 15px; }
.progress span { flex: 1; height: 3px; border-radius: 2px; background: var(--m-ok); }
.progress span.todo { background: rgb(255 255 255 / 12%); }

.mock-term { display: flex; flex-direction: column; min-width: 0; background: var(--m-term); }
.term-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--m-line); background: var(--m-bg); }
.term-tabs span { font-size: 11.5px; color: var(--m-muted); padding: 6px 12px 8px; border-radius: 6px 6px 0 0; }
.term-tabs span.on { color: var(--m-text); background: var(--m-term); box-shadow: inset 0 2px 0 var(--m-accent); }
.term {
  flex: 1; margin: 0; padding: 16px 18px; overflow: hidden;
  font: 400 12.5px/1.65 var(--font-mono); color: var(--m-text); white-space: pre-wrap; word-break: break-word;
}
.term .p { color: #7d93c8; font-weight: 700; }
.term .c { color: var(--m-ok); }
.term .u { color: #c2d4f2; }
.term .add { color: #6ee7b7; }
.term .del { color: #fca5a5; }
.term .ok { color: var(--m-ok); }
.term .dim { color: #e8a0ae; }
.cursor { display: inline-block; width: 7px; height: 1.1em; vertical-align: text-bottom; margin-left: 3px; background: var(--m-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-status { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; font: 500 10.5px/1.4 var(--font-mono); color: var(--m-muted); border-top: 1px solid var(--m-line); background: var(--m-bg); }

@media (max-width: 640px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--m-line); }
  .hide-sm { display: none; }
  .term { font-size: 11.5px; padding: 14px; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } }
.kicker { font: 500 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--kicker); margin-bottom: 16px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.025em; max-width: 18em; }
.section-lede { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 36em; }

/* why */
.why { background: var(--bg-alt); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.why-points > p { font-size: 18px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tick);
}
/* the check mark, drawn through a mask so its colour comes from --tick-ink */
.checks li::after {
  content: ""; position: absolute; left: 21px; top: 23px; width: 12px; height: 12px;
  background: var(--tick-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checks strong { color: var(--ink); display: block; }
@media (max-width: 860px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* features */
.feature-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; transition: border-color .2s, transform .2s;
}
/* fallback first for browsers without color-mix() */
.feature:hover { border-color: var(--brand-soft); border-color: color-mix(in srgb, var(--brand-soft) 60%, var(--line)); transform: translateY(-2px); }
.f-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--icon-bg); color: var(--brand); margin-bottom: 18px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.015em; }
.feature p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* how */
.how { background: var(--bg-alt); border-block: 1px solid var(--line); }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 36px 24px 0 0; border-top: 2px solid var(--line); }
.timeline li::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 3px solid var(--brand-soft);
}
.timeline li.is-active::before { background: var(--primary); border-color: var(--primary); }
.timeline li:focus-visible { outline-offset: 6px; }
.t-time { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.timeline h3 { font-size: 22px; margin: 10px 0 10px; }
.timeline p { font-size: 15.5px; color: var(--muted); }
/* Sunrise Otto (robot-sunrise.js): the slot sits exactly on the timeline's line
   (the horizon); the canvas stands on it, so the scene is clipped at the line. */
.sunrise-slot { position: relative; height: 0; margin-top: 56px; }
.sunrise-slot + .timeline { margin-top: 0; }
.sunrise { position: absolute; bottom: 0; left: 75%; width: min(480px, 46%); height: 214px; transform: translateX(-50%); pointer-events: none; }
.sunrise-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sunrise-slot { height: clamp(160px, 46vw, 240px); margin: 28px 0 32px; border-bottom: 2px solid var(--line); }
  .sunrise { left: 50%; width: min(100%, 460px); height: 100%; }
  .timeline li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 36px 28px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 0; left: -8px; }
}

.arch { margin-top: 80px; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.arch-title { font: 500 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--kicker); margin-bottom: 24px; }
.arch-row { display: flex; align-items: stretch; gap: 0; }
.arch-box { flex: 1 1 0; min-width: 0; padding: 22px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.arch-tag { display: inline-block; font: 500 11px/1 var(--font-mono); padding: 5px 8px; border-radius: 6px; background: var(--icon-bg); color: var(--brand); margin-bottom: 14px; }
.arch-box h4 { font-size: 19px; margin-bottom: 8px; }
.arch-box h4 code { font-size: 0.85em; }
.arch-box p { font-size: 15px; color: var(--muted); }
.arch-link { flex: 0 0 112px; position: relative; display: grid; place-items: center; }
.arch-link::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 2px dashed var(--ghost-border); }
.arch-link span { position: relative; font: 500 10.5px/1.3 var(--font-mono); color: var(--muted); background: var(--surface); padding: 4px 6px; text-align: center; max-width: 100px; }
@media (max-width: 900px) {
  .arch { padding: 20px; }
  .arch-row { flex-direction: column; }
  .arch-link { flex-basis: 56px; }
  .arch-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--ghost-border); }
  .arch-link span { max-width: none; }
}

/* remote */
.remote-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
.remote-copy p:not(.kicker) { margin-top: 20px; font-size: 18px; }
.phone {
  justify-self: center; width: 280px; max-width: 100%; padding: 12px; border-radius: 40px;
  background: linear-gradient(160deg, #2e4280, #21305d); box-shadow: var(--shadow);
}
.phone-screen { background: var(--m-bg); color: var(--m-text); border-radius: 30px; padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 440px; }
.phone-head { display: flex; align-items: center; gap: 8px; font: 700 17px/1 var(--font-display); padding: 0 4px 8px; }
.phone-head img { margin: -3px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--m-card); border: 1px solid var(--m-line); }
.p-row b { display: block; font-size: 13.5px; font-weight: 600; }
.p-row small { display: block; font-size: 11.5px; color: var(--m-muted); }
.p-term { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--m-term); font: 12px/1.5 var(--font-mono); }
.p-term .p { color: #7d93c8; font-weight: 700; }
.p-btn { text-align: center; padding: 12px; border-radius: 12px; background: #c2d4f2; color: #141b36; font-size: 13.5px; font-weight: 600; }
@media (max-width: 860px) { .remote-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

/* closing */
.closing { padding-top: 40px; }
.closing-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 48px 56px; border-radius: 28px;
  background: linear-gradient(135deg, #26305a 0%, #2e4280 55%, #4a70c0 100%);
  color: #dde6f5; position: relative; overflow: hidden;
}
.closing-inner::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgb(212 220 240 / 18%), transparent); pointer-events: none; }
.closing h2 { color: #ffffff; font-size: clamp(30px, 3.6vw, 44px); }
.closing p { margin: 16px 0 28px; font-size: 18px; max-width: 34em; color: #dde6f5; }
.closing .btn-primary { position: relative; z-index: 1; }
.closing .btn-primary:focus-visible { outline-color: #ffffff; }
.closing { scroll-margin-top: 64px; }

/* early-access form (signup.js); the closing card is the same dark gradient in both schemes */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.signup { position: relative; z-index: 1; max-width: 34em; }
.signup-row { display: flex; gap: 10px; }
.signup-input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--radius-btn);
  border: 1px solid rgb(255 255 255 / 28%); background: rgb(255 255 255 / 10%); color: #ffffff;
  font: 400 16px/1 var(--font-body);
}
.signup-input::placeholder { color: rgb(221 230 245 / 65%); }
.signup-input:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; border-color: transparent; }
.signup-input[aria-invalid="true"] { border-color: #ffb4c0; }
.signup-btn { flex: none; }
.signup-btn:disabled { cursor: progress; opacity: 0.85; transform: none; }
.signup-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 40%); border-top-color: #ffffff; animation: signup-spin .8s linear infinite; }
.signup.is-busy .signup-spinner { display: inline-block; }
@keyframes signup-spin { to { transform: rotate(360deg); } }
.signup-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.closing .signup-status { margin: 12px 0 0; min-height: 1.5em; font-size: 15px; color: #dde6f5; }
.closing .signup-status.is-error { color: #ffc2cc; }
.closing .signup-status.is-ok { color: #9ff0cf; font-weight: 600; }
.signup.is-done .signup-row { display: none; }
@media (max-width: 760px) { .signup { margin-inline: auto; } }
@media (max-width: 480px) { .signup-row { flex-direction: column; } .signup-btn { width: 100%; } }
.robot { width: 220px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 30%)); }
.robot-3d { display: block; height: auto; aspect-ratio: 1 / 1; filter: none; position: relative; z-index: 1; }
@media (max-width: 760px) {
  .closing-inner { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; gap: 16px; text-align: center; }
  .closing p { margin-inline: auto; }
  .robot { width: 160px; margin: 0 auto; }
}

/* footer */
.site-footer { padding: 56px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 32px; }
.footer-inner .brand { font-size: 18px; }
.footer-links { margin-left: auto; }
@media (max-width: 640px) { .footer-links { margin-left: 0; } }
