/* Nexus Voice website: tokens, chrome (nav, footer) and shared components.
   Dark liquid glass, the same springs as the island (renderer/island.css). */

:root {
  --bg: #07080b;
  --bg-raise: #0d0e13;
  --ink: rgba(255, 255, 255, 0.94);
  --ink-2: rgba(255, 255, 255, 0.68);
  --ink-3: rgba(255, 255, 255, 0.52);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.07);
  --sel: rgba(255, 255, 255, 0.085);
  /* The brand. --brand is for fills (white text on it is 6.7:1); on the dark
     background it's too dim for text, so links and accents use --brand-2 (5.3:1)
     and its lighter tint. Green, red and amber below are status, not brand. */
  --brand: #1D4ED8;
  --brand-2: #3B82F6;
  --accent: var(--brand-2);
  --accent-2: color-mix(in srgb, var(--brand-2) 45%, #fff);
  --accent-ink: #fff;
  --go: #3ddc84;
  --go-ink: #7ff0b0;
  --stop: #ff5a5f;
  --stop-ink: #ff9a9d;
  --warn: #ffb347;

  /* Fallbacks for browsers without linear(); replaced below. */
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --spring-calm: cubic-bezier(0.25, 1.05, 0.4, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Display", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 24px;
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Damped springs sampled into linear(), straight from the island. */
    --spring: linear(0, 0.06, 0.191, 0.36, 0.539, 0.709, 0.864, 0.979, 1.061, 1.113, 1.139, 1.144, 1.132, 1.112, 1.087,
      1.062, 1.038, 1.017, 1, 0.989, 0.983, 0.98, 0.979, 0.981, 0.984, 0.988, 0.992, 0.995, 0.998, 1, 1.002, 1.003,
      1.003, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1, 1);
    --spring-calm: linear(0, 0.048, 0.154, 0.274, 0.41, 0.528, 0.642, 0.731, 0.811, 0.869, 0.917, 0.949, 0.975, 0.991,
      1.002, 1.008, 1.011, 1.012, 1.012, 1.011, 1.009, 1.008, 1.006, 1.005, 1.004, 1.003, 1.002, 1.001, 1.001, 1, 1);
  }
}
@media (max-width: 640px) { :root { --gutter: 20px; } }
@media (max-width: 400px) { :root { --gutter: 16px; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: 84px;
  background: var(--bg);
}
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.input:focus-visible, .code-input:focus-visible { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: 12px; color: #000; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ brand mark */
.mark { flex: 0 0 auto; display: block; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 650 18px/1 var(--font-display); letter-spacing: -0.015em;
  border-radius: 10px;
}
.brand:hover { color: #fff; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 11, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, background 300ms;
}
.nav.scrolled { border-bottom-color: var(--hair); background: rgba(7, 8, 11, 0.8); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.nav-links { display: flex; gap: 2px; margin: 0 0 0 10px; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--ink); background: var(--glass); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-signin {
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 150ms, background 150ms;
}
.nav-signin:hover { color: var(--ink); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav-in { gap: 12px; } .nav-links { margin-left: 2px; } .nav-links a { padding: 8px 9px; font-size: 14px; } }
@media (max-width: 760px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-in { gap: 8px; } .brand { gap: 8px; font-size: 16.5px; } .nav-signin { padding: 8px 8px; font-size: 14px; } .nav-end .btn-sm { padding: 0 13px; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px; border: 0; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: var(--glass-2);
  box-shadow: inset 0 0 0 1px var(--hair-2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 380ms var(--spring), background 160ms, box-shadow 160ms, opacity 160ms, color 160ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255, 255, 255, 0.11); color: var(--ink); }
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 78%, var(--brand-2)), var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 10px 30px -10px rgba(29, 78, 216, 0.7);
}
.btn-primary:hover { color: var(--accent-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 55%, var(--brand-2)), color-mix(in srgb, var(--brand) 88%, var(--brand-2))); }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 14px; }
.btn-xs { --h: 30px; padding: 0 12px; font-size: 13px; }
.btn-danger { color: #ffd6d7; background: rgba(255, 90, 95, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.36); }
.btn-danger:hover { color: #fff; background: rgba(255, 90, 95, 0.26); }
.btn-quiet { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-quiet:hover { background: var(--glass-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid currentColor; border-color: rgba(255, 255, 255, 0.95) rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.3);
  animation: spin 700ms linear infinite;
}
.btn:not(.btn-primary).busy::after { border-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  border-radius: 4px;
}
.link-btn:hover { color: var(--accent-2); }
.link-btn[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }

/* ------------------------------------------------------------------ keycaps */
kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.75em; height: 1.75em; padding: 0 0.48em;
  border-radius: 0.42em;
  font: 550 0.82em/1 var(--font); letter-spacing: 0; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap; vertical-align: 0.08em;
}

/* ------------------------------------------------------------------ cards, sections */
.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
}
.section { padding: 128px 0 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -0.032em; font-weight: 700; margin-top: 16px; }
.section-head h2:first-child { margin-top: 0; }
.section-head p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 640px) {
  .section { padding-top: 96px; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16.5px; }
}

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.label { font: 600 13.5px/1.2 var(--font); color: var(--ink-2); }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  font: 500 16px/1 var(--font);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow 160ms, background 160ms;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.85), 0 0 0 4px rgba(59, 130, 246, 0.2); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.75), 0 0 0 4px rgba(255, 90, 95, 0.14); }
.input:disabled { opacity: 0.6; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.input option { background: #1b1c22; color: #fff; }
.hint { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.status { min-height: 1.45em; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.status:empty { min-height: 0; }
.status.err { color: var(--stop-ink); }
.status.ok { color: var(--go-ink); }

/* Inline email + button, used by the waitlist forms. */
.inline-form { display: flex; gap: 8px; width: 100%; }
.inline-form .input { flex: 1 1 auto; min-width: 0; border-radius: 999px; padding: 0 20px; }
.inline-form .btn { flex: 0 0 auto; --h: 50px; }
@media (max-width: 480px) {
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
}
.waitlist-done {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px;
  background: rgba(61, 220, 132, 0.09); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.28);
  color: var(--ink); font-size: 15px; text-align: left;
}
.waitlist-done .tick {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #7ff0b0, var(--go) 60%, #1f9a59);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.waitlist-done .tick svg { width: 14px; height: 14px; stroke: #062414; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Avatar bubbles, as in the island. --c comes from a .h-* class. */
.bubble {
  --c: #6b7cff; --lvl: 0;
  position: relative; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  display: grid; place-items: center;
  font: 650 9.5px/1 var(--font); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 60%, var(--c) 0, color-mix(in oklab, var(--c) 70%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.30),
    0 0 0 calc(1px + var(--lvl) * 4px) color-mix(in oklab, var(--c) calc(25% + var(--lvl) * 45%), transparent),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transform: scale(calc(1 + var(--lvl) * 0.28));
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.h-4 { --c: hsl(4 62% 52%); }
.h-28 { --c: hsl(28 62% 52%); }
.h-140 { --c: hsl(140 62% 42%); }
.h-190 { --c: hsl(190 62% 45%); }
.h-212 { --c: hsl(212 62% 52%); }
.h-258 { --c: hsl(258 62% 52%); }
.h-285 { --c: hsl(285 62% 52%); }
.h-325 { --c: hsl(325 62% 52%); }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 128px; border-top: 1px solid var(--hair); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot .brand { font-size: 16px; }
.foot-tag { color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.foot nav a { color: var(--ink-2); text-decoration: none; border-radius: 6px; }
.foot nav a:hover { color: var(--ink); }
.foot-copy { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) {
  .foot { margin-top: 96px; }
  .foot nav { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------------------ simple pages (legal, 404) */
.page-hero { padding: 72px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.page-hero p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 620px; }

.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 32px 0 0; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 179, 71, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.35);
  color: #ffd9a6; font-size: 14.5px; line-height: 1.5;
}
.draft-note strong { color: #ffe7c6; }
.draft-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
.legal-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.legal-toc p { font: 600 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); background: var(--glass); }
.prose { max-width: 700px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; font-weight: 650; margin: 56px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 650; margin: 28px 0 8px; font-family: var(--font); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font: 500 0.88em/1 var(--mono); color: var(--accent-2); background: rgba(59, 130, 246, 0.1); padding: 2px 6px; border-radius: 6px; }
.prose .note { font-size: 14px; color: #ffd9a6; }
.tldr { padding: 26px 28px; margin-bottom: 8px; }
.tldr h2 { margin-top: 0; font-size: 19px; }
.tldr ul { margin-bottom: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 15px; line-height: 1.5; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); }
.data-table th { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.data-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .legal-toc { position: static; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px 6px; }
  .legal-toc a { margin-left: 0; background: var(--glass); }
}
@media (max-width: 560px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .data-table td { border: 0; padding: 2px 0; white-space: normal !important; }
}

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