/* ------------------------------------------------------------------
   Cadence — site design system
   Inter (UI) + JetBrains Mono (technical). Light and dark themes.
   Restraint is the aesthetic: hairlines, whitespace, one accent.
------------------------------------------------------------------- */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --border: #e5e5ea;
  --accent: #5856d6;
  --accent-ink: #ffffff;
  --success: #34c759;
  --error: #ff3b30;
  --accent-soft: rgba(88, 86, 214, 0.08);
  --success-soft: rgba(52, 199, 89, 0.12);
  --shadow-1: 0 1px 2px rgba(29, 29, 31, 0.04);
  --shadow-2: 0 12px 40px -12px rgba(29, 29, 31, 0.12);

  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.26rem + 0.55vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --step-4: clamp(2.375rem, 1.9rem + 2.4vw, 4rem);

  --container: 1120px;
  --nav-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1c1c1e;
  --surface: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #aeaeb2;
  --border: #3a3a3c;
  --accent: #7d7aff;
  --accent-ink: #16161a;
  --success: #30d158;
  --error: #ff453a;
  --accent-soft: rgba(125, 122, 255, 0.12);
  --success-soft: rgba(48, 209, 88, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 40px -12px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

/* ---------- layout primitives ---------- */

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 11vh, 122px);
}

.section + .section {
  padding-top: 0;
}

.prose {
  max-width: 66ch;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display {
  font-size: var(--step-4);
  font-weight: 650;
  letter-spacing: -0.032em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.muted {
  color: var(--text-2);
}

.overline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.overline .tick,
.muted .tick {
  color: var(--accent);
}

.section-head {
  margin-bottom: clamp(36px, 6vh, 56px);
}

.section-head .overline {
  display: block;
  margin-bottom: 14px;
}

.section-head p {
  margin-top: 12px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--step--1);
  font-weight: 500;
}

.nav-links a {
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: var(--step--1);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cta:hover {
  border-color: var(--text-2);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

.theme-toggle .sun {
  display: none;
}

@media (max-width: 720px) {
  .nav-links span.sep,
  .nav-cta .label {
    display: none;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-cta {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 22px;
  border-radius: 99px;
  font-size: var(--step-0);
  font-weight: 550;
  letter-spacing: -0.005em;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s,
    box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--text-2);
}

.btn svg {
  width: 17px;
  height: 17px;
}

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

.hero {
  padding-top: clamp(72px, 13vh, 140px);
  padding-bottom: clamp(56px, 9vh, 104px);
  text-align: center;
}

.hero .overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero h1 {
  margin-inline: auto;
}

.br-lg {
  display: none;
}

@media (min-width: 880px) {
  .br-lg {
    display: inline;
  }
}

.hero .lede {
  max-width: 52ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* live waveform strip */

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 64px;
  margin-top: clamp(48px, 8vh, 88px);
}

.waveform i {
  width: 3px;
  border-radius: 99px;
  background: var(--accent);
  height: calc(var(--h) * 1%);
  opacity: calc(0.35 + var(--h) / 130);
  animation: sing 2.6s var(--ease) calc(var(--d) * -1s) infinite alternate;
  transform-origin: center;
}

@keyframes sing {
  from {
    transform: scaleY(0.45);
  }

  to {
    transform: scaleY(1);
  }
}

/* ---------- app vignette ---------- */

.vignette {
  margin-top: clamp(40px, 7vh, 72px);
}

.window {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  text-align: left;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--border);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.window-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.window-controls {
  display: flex;
  gap: 14px;
  color: var(--text-2);
  opacity: 0.7;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.window-controls span:first-child {
  border-width: 0 0 1.5px 0;
  border-radius: 0;
  height: 6px;
  align-self: flex-end;
}

.window-controls span:last-child {
  position: relative;
  border: 0;
}

.window-controls span:last-child::before,
.window-controls span:last-child::after {
  content: "";
  position: absolute;
  inset: 4px -1px;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.window-controls span:last-child::after {
  transform: rotate(-45deg);
}

.window-body {
  padding: clamp(24px, 5vw, 44px);
}

.prompt-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}

.prompt-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 18px 20px;
  font-size: var(--step-0);
  color: var(--text);
  line-height: 1.5;
}

.prompt-box .caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.window-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--success);
}

.dot.pulse {
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--success-soft);
  }

  70% {
    box-shadow: 0 0 0 7px transparent;
  }
}

.generate-btn {
  height: 40px;
  padding-inline: 20px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 550;
  font-size: var(--step--1);
  pointer-events: none;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.window-status .bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}

.window-status .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: inherit;
  background: var(--accent);
  animation: progress 3.2s var(--ease) infinite;
}

@keyframes progress {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(280%);
  }
}

/* ---------- cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

a.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-2);
  font-size: var(--step--1);
  line-height: 1.65;
}

.card .glyph {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.step .num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.step h3 {
  font-size: var(--step-0);
  margin-bottom: 8px;
}

.step p {
  font-size: var(--step--1);
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- stack strip ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-2);
}

/* ---------- status band ---------- */

.band {
  border-block: 1px solid var(--border);
  padding-block: 26px;
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.band .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.band a {
  font-weight: 500;
  font-size: var(--step--1);
  color: var(--accent);
}

.band a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- CTA panel ---------- */

.cta-panel {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(48px, 8vw, 88px) 24px;
  box-shadow: var(--shadow-1);
}

.cta-panel h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-panel p {
  margin: 16px auto 32px;
  max-width: 48ch;
  color: var(--text-2);
}

.cta-panel .hero-actions {
  margin-top: 0;
}

/* ---------- roadmap timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

@media (max-width: 680px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.phase-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.phase-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.tag.shipped {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  background: var(--success-soft);
}

/* Committed to, but not started: the accent without the fill. */
.tag.planned {
  color: color-mix(in srgb, var(--accent) 85%, var(--text-2));
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.tag.next {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}

.phase h3 {
  margin-bottom: 8px;
}

.phase > div:last-child > p {
  color: var(--text-2);
  font-size: var(--step--1);
  margin-bottom: 14px;
}

.phase ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: var(--step--1);
}

.phase li::marker {
  color: var(--accent);
}

.phase.done {
  border-left: 3px solid var(--success);
}

.phase.active {
  border-left: 3px solid var(--accent);
}

/* Committed to but not started: the accent, hollow. Reads as a step on the
   path without claiming the activity of the phase actually underway. */
.phase.planned {
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.phase.planned::before {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Work still being weighed reads quieter than work that is committed to. */
.phase.later {
  border-left: 3px dashed color-mix(in srgb, var(--text-2) 40%, transparent);
  /* Sits back into the page rather than on it. Mixing surface with bg looks
     identical to surface in light mode, where the two are a few units apart;
     dropping to bg outright reads in both themes. */
  background: var(--bg);
  box-shadow: none;
}

/* The spine runs down a gutter beside the cards, with a node per phase.
   It shades from shipped green through in-progress accent to a muted grey,
   so the eye reads the state of the project before any of the words. */
.timeline {
  padding-left: 34px;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--success) 0%,
    var(--accent) 26%,
    color-mix(in srgb, var(--accent) 45%, var(--border)) 60%,
    var(--border) 100%
  );
}

.phase::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 32px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.phase.done::before {
  background: var(--success);
  border-color: var(--success);
}

.phase.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.phase.later::before {
  background: var(--bg);
  border-style: dashed;
}

.phase:hover {
  box-shadow: var(--shadow-2);
}

.phase:hover::before {
  transform: scale(1.15);
}

/* A phase's own heading gets room to breathe from its bullets. */
.phase h3 {
  font-size: var(--step-1);
}

@media (max-width: 680px) {
  .timeline {
    padding-left: 22px;
  }
  .timeline::before {
    left: 5px;
  }
  .phase::before {
    left: -22px;
    top: 26px;
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase::before,
  .phase:hover::before {
    transition: none;
    transform: none;
  }
}

/* ---------- setup page ---------- */

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: var(--step--1);
  line-height: 1.6;
}

.callout svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.req-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-2);
}

.req-table td:first-child {
  font-weight: 550;
  white-space: nowrap;
}

.req-table td:last-child {
  color: var(--text-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.setup-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-block: 30px;
}

.setup-step + .setup-step {
  border-top: 1px solid var(--border);
}

.setup-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  background: var(--surface);
}

.setup-step h3 {
  margin-bottom: 8px;
}

.setup-step > div > p {
  color: var(--text-2);
  font-size: var(--step--1);
  margin-bottom: 14px;
  max-width: 62ch;
}

/* code blocks */

.code {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.code + .code {
  margin-top: 12px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--border);
}

.code-head span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.copy-btn.copied {
  color: var(--success);
}

.code pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text);
}

.code .c {
  color: var(--text-2);
}

/* inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.36em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  word-break: break-word;
}

/* ---------- support / faq ---------- */

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 550;
  font-size: var(--step-0);
  cursor: pointer;
  transition: background 0.2s;
}

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

.faq summary:hover {
  background: var(--accent-soft);
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details > div {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: var(--step--1);
  line-height: 1.7;
  max-width: 68ch;
}

.faq details > div a,
.prose a,
.setup-step p a,
.callout a {
  color: var(--accent);
  font-weight: 500;
}

.faq details > div a:hover,
.prose a:hover,
.setup-step p a:hover,
.callout a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  padding-top: clamp(56px, 9vh, 96px);
  padding-bottom: clamp(36px, 6vh, 64px);
}

.page-hero .overline {
  display: block;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: var(--step-3);
  letter-spacing: -0.026em;
}

.page-hero .lede {
  margin-top: 16px;
  max-width: 56ch;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding-block: 44px;
  margin-top: clamp(72px, 11vh, 122px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer .brand {
  margin-right: 0;
  font-size: 0.9375rem;
}

.footer .brand svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: var(--step--1);
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-credit {
  font-size: var(--step--1);
  color: var(--text-2);
}

.footer-credit a {
  color: var(--text);
  font-weight: 500;
}

.footer-credit a:hover {
  color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  padding-block: 80px;
}

.notfound .mono {
  font-family: var(--font-mono);
  color: var(--text-2);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- motion preferences ---------- */

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

  .waveform i,
  .dot.pulse,
  .window-status .bar::after,
  .prompt-box .caret {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn,
  a.card,
  .btn:active {
    transition: none;
    transform: none;
  }
}
