/* Moonglass waitlist. Dark, Geist, one accent. */

/* Geist and Geist Mono, self-hosted (SIL Open Font License, see /fonts/OFL.txt). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: oklch(0.135 0.008 230);
  --bg-2: oklch(0.155 0.009 230);
  --glass: oklch(0.16 0.01 230 / 0.86);
  --input: oklch(0.17 0.01 230);
  --raise: oklch(1 0 0 / 0.035);
  --raise-hover: oklch(1 0 0 / 0.07);
  --line: oklch(1 0 0 / 0.08);
  --line-strong: oklch(1 0 0 / 0.13);
  --control: oklch(0.53 0.01 225);
  --text: oklch(0.97 0.004 220);
  --live: oklch(0.8 0.15 150);
  --waiting: oklch(0.84 0.14 85);
  --refused: oklch(0.72 0.15 25);
  --muted: oklch(0.74 0.01 225);
  --dim: oklch(0.64 0.01 225);
  --accent: oklch(0.76 0.1 195);
  --accent-hover: oklch(0.84 0.09 195);
  --accent-soft: oklch(0.76 0.1 195 / 0.12);
  --on-accent: oklch(0.16 0.01 230);
  --moonlight: oklch(0.95 0.008 210);
  --moonlight-hover: oklch(0.99 0.004 210);
  --error: oklch(0.76 0.13 25);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 20px;
  --max: 1200px;
}

@media (min-width: 720px) {
  :root {
    --gutter: 40px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
fieldset {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Atmosphere: a wash of moonlight and a faint grid that fades out. */

.sky {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 1100px;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 80% 12%, oklch(0.8 0.03 210 / 0.06), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, oklch(0.6 0.05 240 / 0.07), transparent 70%);
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.nav.is-scrolled {
  background: oklch(0.135 0.008 230 / 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  height: 64px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.mark {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: none;
  gap: 28px;
  font-size: 13.5px;
}

.nav-links a {
  color: var(--muted);
  transition: color 150ms ease;
}

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

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.nav-cta:hover {
  background: var(--raise-hover);
  border-color: var(--muted);
  color: var(--text);
}

/* Hero */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 48px 64px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    min-height: calc(100svh - 64px - 140px);
    padding-block: 48px 56px;
  }
}

.copy {
  max-width: 600px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  color: var(--muted);
  font-size: 12.5px;
}

.badge-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.badge-sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

h1 {
  margin-top: 24px;
  font-size: clamp(44px, min(5.4vw, 8.6vh), 72px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h1-line {
  display: block;
}

h1,
.section-head h2,
.cta h2 {
  color: var(--text);
}

.h1-line {
  color: oklch(0.78 0.012 215);
}

.subline {
  margin-top: 20px;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Form */

.join {
  margin-top: 32px;
}

/* The email field */
.email-field {
  position: relative;
  max-width: 480px;
}

.email-field .email-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--dim);
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 150ms ease;
}

.email-field:focus-within .email-icon {
  color: var(--accent);
}

.email-field input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 18px 0 46px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  box-shadow: 0 12px 32px -12px oklch(0 0 0 / 0.6);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.email-field input::placeholder {
  color: var(--dim);
  opacity: 1;
}

.email-field input:hover {
  border-color: oklch(0.6 0.01 225);
}

.email-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 32px -12px oklch(0 0 0 / 0.6);
}

/* Two equal choices. Neither is the default, so the split is honest. */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 480px;
  margin-top: 12px;
}

.choice {
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 13px 16px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--raise);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.choice:hover:not(:disabled) {
  border-color: oklch(0.95 0.008 210 / 0.55);
  background: var(--raise-hover);
}

.choice:active:not(:disabled) {
  transform: translateY(1px);
}

.choice:disabled {
  cursor: default;
}

.choice.is-picked {
  border-color: var(--moonlight);
  background: oklch(0.95 0.008 210 / 0.08);
}

.choice-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.choice-sub {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 18px;
}

.choice-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 150ms ease, color 150ms ease;
}

.choice:hover:not(:disabled) .choice-arrow {
  color: var(--text);
  transform: translateX(2px);
}

.choice.is-sending .choice-arrow {
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.choice.is-sending .choice-arrow path {
  display: none;
}

.choices.is-asking .choice {
  animation: nudge 420ms var(--ease);
}

.choose-hint {
  max-width: 480px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 18px;
}

.choose-hint.is-asking {
  color: var(--text);
}

@keyframes nudge {
  30% {
    border-color: var(--moonlight);
    transform: translateY(-2px);
  }
}

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

.field-error:not(:empty) {
  margin-top: 8px;
  color: var(--error);
  font-size: 13px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile:not(:empty) {
  margin-top: 12px;
}

.form-message:not(:empty) {
  margin-top: 12px;
  color: var(--error);
  font-size: 14px;
}

.form-message.is-hint:not(:empty) {
  color: var(--muted);
}

noscript .form-message {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

/* Confirmation view */

.confirmation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.confirmation[hidden] {
  display: none;
}

.confirmation-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(0.8 0.15 150 / 0.14);
  color: var(--live);
}

.confirmation-icon svg {
  width: 16px;
  height: 16px;
}

.confirmation h2 {
  align-self: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.confirmation h2:focus {
  outline: none;
}

.confirmation p {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
}

.follow,
.call,
.share {
  grid-column: 2;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.follow[hidden],
.call[hidden],
.share[hidden] {
  display: none;
}

.confirmation .follow-q {
  color: var(--text);
  font-size: 14px;
}

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

.chip,
.call-yes {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.call-yes {
  margin-top: 10px;
  color: var(--text);
}

.call-yes:disabled {
  cursor: default;
  opacity: 0.6;
}

.chip:hover,
.call-yes:hover:not(:disabled) {
  background: var(--raise-hover);
  color: var(--text);
}

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.confirmation .follow-done:not(:empty) {
  margin-top: 10px;
  color: var(--live);
  font-size: 13px;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.share-copy {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--raise);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.share-copy:hover {
  background: var(--raise-hover);
}

.is-entering {
  animation: rise 400ms var(--ease) both;
}

/* Stage: terminal demo card with ambient moonlight aura */

.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

@media (min-width: 1024px) {
  .stage {
    justify-self: end;
  }
}

.moon {
  --moon: clamp(250px, 25vw, 360px);
  position: absolute;
  z-index: 0;
  top: calc(var(--moon) * -0.4);
  right: calc(var(--moon) * -0.28);
  width: var(--moon);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    -24px -8px 90px 0 oklch(0.9 0.03 210 / 0.12),
    0 0 200px 40px oklch(0.76 0.1 195 / 0.06);
  will-change: transform;
  animation:
    moonrise 2.2s var(--ease) 0.1s both,
    drift 11s ease-in-out 2.3s infinite alternate;
}

.moon img {
  display: block;
  width: 100%;
  height: 100%;
}

.glass {
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  backdrop-filter: blur(28px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.08),
    0 28px 72px -20px oklch(0 0 0 / 0.7);
}

.glass-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.crumb {
  color: var(--text);
  font-weight: 500;
}

.crumb-sep {
  margin: 0 4px;
  color: var(--dim);
}

.flow-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 12px var(--accent);
}

#flow-version {
  display: inline-block;
  min-width: 3ch;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

#flow-version.is-out {
  opacity: 0;
  transform: translateY(-4px);
}

/* The flow: requests as light, drawn on a canvas by app.js */

.flow {
  position: relative;
  height: 280px;
  background:
    radial-gradient(60% 70% at 74% 50%, oklch(0.76 0.1 195 / 0.07), transparent 70%),
    linear-gradient(90deg, transparent, oklch(1 0 0 / 0.012) 60%, transparent);
}

.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.07) 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(75% 85% at 62% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(75% 85% at 62% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.flow canvas,
.flow-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow canvas {
  display: block;
}

.flow-on .flow-fallback {
  display: none;
}

@media (max-width: 479px) {
  .flow {
    height: 220px;
  }
}

/* Sections */

.section {
  padding-block: 112px 24px;
}

.section-head {
  max-width: 640px;
}

.section-head h2,
.cta h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Why Moonglass */

.why-grid {
  display: grid;
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.why {
  padding: 28px 26px 30px;
  background: var(--bg-2);
}

.why h3 {
  margin-top: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.why p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 22px;
  text-wrap: pretty;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.checks li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 5px;
  width: 6px;
  height: 3.5px;
  border-bottom: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Steps */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.step-n {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12.5px;
}

.step h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step p:not(.step-n) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.step code {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.step code {
  overflow-x: auto;
  scrollbar-width: none;
}

.step code::-webkit-scrollbar {
  display: none;
}

@media (max-width: 479px) {
  .step code {
    font-size: 11.5px;
  }
}

.step code::before {
  content: "$ ";
  color: var(--dim);
}

.inline-code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}

/* Plans */

.plans {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 800px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg-2);
}

.plan-featured {
  border-color: oklch(0.76 0.1 195 / 0.45);
  background:
    radial-gradient(120% 80% at 100% 0%, oklch(0.76 0.1 195 / 0.1), transparent 60%),
    var(--bg-2);
}

.plan h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.plan-price {
  margin-top: 10px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan-price span {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan .checks {
  flex: 1;
  align-content: start;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 28px;
  border: 1px solid var(--control);
  border-radius: 10px;
  background: var(--raise);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.plan-cta:hover {
  background: var(--raise-hover);
  color: var(--text);
}

.plan-cta-primary {
  border-color: var(--moonlight);
  background: var(--moonlight);
  color: var(--on-accent);
}

.plan-cta-primary:hover {
  border-color: var(--moonlight-hover);
  background: var(--moonlight-hover);
  color: var(--on-accent);
}

.plans-note {
  margin-top: 24px;
  color: var(--dim);
  font-size: 13.5px;
  text-align: center;
}

/* What's free in both */

.included {
  margin-top: 16px;
  padding: 22px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.included-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.included-list {
  grid-template-columns: 1fr;
  gap: 12px 28px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .included-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .included-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 17px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* Coding agents: what each environment allows */

.guard {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.guard-row {
  display: grid;
  grid-template-columns: 12px minmax(110px, 160px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
}

.guard-row + .guard-row {
  border-top: 1px solid var(--line);
}

.guard-where {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.guard-what {
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.guard-shape {
  position: relative;
  width: 10px;
  height: 10px;
}

.guard-shape[data-state="live"] {
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px oklch(0.8 0.15 150 / 0.15);
}

.guard-shape[data-state="waiting"]::before,
.guard-shape[data-state="waiting"]::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--waiting);
}

.guard-shape[data-state="waiting"]::before {
  left: 1px;
}

.guard-shape[data-state="waiting"]::after {
  right: 1px;
}

.guard-shape[data-state="refused"]::before,
.guard-shape[data-state="refused"]::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -1px;
  width: 12px;
  height: 1.75px;
  border-radius: 1px;
  background: var(--refused);
  transform: rotate(45deg);
}

.guard-shape[data-state="refused"]::after {
  transform: rotate(-45deg);
}

@media (max-width: 639px) {
  .guard-row {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 16px 18px;
  }

  .guard-what {
    grid-column: 2;
  }
}

/* Closing call */

.cta {
  margin-block: 112px 96px;
  padding-block: 72px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: var(--line);
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  margin-top: 14px;
  padding-inline: 16px;
  color: var(--muted);
  font-size: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-top: 28px;
  margin-left: 0;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms ease;
}

.cta-button:hover {
  background: oklch(0.86 0.006 220);
  color: var(--bg);
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 18px;
}

.foot-brand {
  display: grid;
  gap: 4px;
}

.foot-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.foot-meta a {
  display: inline-block;
  padding-block: 4px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--control);
  text-underline-offset: 3px;
}

.foot-meta a:hover {
  color: var(--text);
}

/* Entrance and ambient motion */

.reveal {
  animation: reveal 900ms var(--ease) both;
}

.r0 { animation-delay: 60ms; }
.r1 { animation-delay: 140ms; }
.r2 { animation-delay: 260ms; }
.r3 { animation-delay: 380ms; }
.r4 { animation-delay: 560ms; }

.js .in-view {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .in-view.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards in a row arrive one after another. */
.js .in-view.stagger {
  opacity: 1;
  transform: none;
}

.js .stagger > *,
.js .why-grid .why > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--ease) var(--d, 0ms),
    transform 700ms var(--ease) var(--d, 0ms),
    border-color 200ms ease,
    background-color 200ms ease,
    color 200ms ease,
    translate 300ms var(--ease),
    filter 300ms ease;
}

.js .stagger.is-visible > *,
.js .why-grid.is-visible .why > * {
  opacity: 1;
  transform: none;
}

.stagger > :nth-child(2),
.why-grid .why:nth-child(2) > * { --d: 80ms; }
.stagger > :nth-child(3),
.why-grid .why:nth-child(3) > * { --d: 160ms; }
.why-grid .why:nth-child(4) > * { --d: 120ms; }
.why-grid .why:nth-child(5) > * { --d: 200ms; }
.why-grid .why:nth-child(6) > * { --d: 280ms; }

/* The grid's hairlines and cards light up around the pointer. */
@media (hover: hover) and (pointer: fine) {
  .why-grid {
    position: relative;
  }

  .why-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--gx, -999px) var(--gy, -999px), oklch(0.76 0.1 195 / 0.6), transparent 60%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
  }

  .why {
    position: relative;
    z-index: 1;
  }

  .why::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--x, -999px) var(--y, -999px), oklch(0.76 0.1 195 / 0.07), transparent 65%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
  }

  .why-grid:hover::before,
  .why-grid:hover .why::before {
    opacity: 1;
  }

  .step:hover,
  .plan:hover {
    translate: 0 -3px;
    border-color: var(--line-strong);
  }

  .plan-featured:hover {
    border-color: oklch(0.76 0.1 195 / 0.6);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes moonrise {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-8px, 10px);
  }
}

@media (max-width: 1023px) {
  .stage {
    margin-top: 24px;
  }

  .moon {
    --moon: clamp(170px, 46vw, 260px);
    top: calc(var(--moon) * -0.42);
    right: calc(var(--moon) * -0.22);
  }
}


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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .moon {
    opacity: 1;
  }

  .js .in-view,
  .js .stagger > *,
  .js .why-grid .why > * {
    opacity: 1;
    transform: none;
  }
}

/* Blog & Article Typography */

.nav-links a.is-active {
  color: var(--text);
}

.article-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 48px 96px;
}

.article-header {
  margin-bottom: 40px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.article-back:hover {
  color: var(--text);
}

.article-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .article-title {
    font-size: 38px;
    line-height: 1.2;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 13px;
  font-family: var(--mono);
}

.prose {
  color: oklch(0.88 0.005 220);
  font-size: 16px;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 24px;
}

.prose h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prose p {
  color: oklch(0.88 0.005 220);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.prose a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.18em 0.38em;
  border-radius: 4px;
  background: var(--raise-hover);
  border: 1px solid var(--line);
  color: var(--moonlight);
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-top: 16px;
}

.prose ul li {
  margin-top: 8px;
  color: oklch(0.88 0.005 220);
  padding-left: 4px;
}

.prose em {
  font-style: italic;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

/* Blog index */

.blog-intro {
  margin-bottom: 40px;
}

.blog-intro h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .blog-intro h1 {
    font-size: 40px;
  }
}

.blog-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.posts-list {
  display: grid;
  gap: 20px;
}

.post-card {
  display: block;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.post-card:hover {
  background: var(--raise-hover);
  border-color: var(--line-strong);
}

.post-card-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-snippet {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
