:root {
  --bg: #eef2ff;
  --bg-deep: #e4e9fb;
  --text: #1c1f2e;
  --muted: #5c6478;
  --faint: #8b93a7;
  --accent: #5b6cff;
  --accent-soft: #8b9bff;
  --accent-warm: #ff8f7a;
  --lilac: #c4b5fd;
  --sky: #a5c8ff;
  --mint: #9fe8d4;
  --frost: rgba(255, 255, 255, 0.55);
  --frost-strong: rgba(255, 255, 255, 0.72);
  --frost-border: rgba(255, 255, 255, 0.7);
  --line: rgba(28, 31, 46, 0.08);
  --shadow: 0 10px 40px rgba(91, 108, 255, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --nav-h: 56px;
  --pad: clamp(1.15rem, 4vw, 2.25rem);
  --max: 1160px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html.touch-ui {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* ——— Soft Spline-like atmosphere ——— */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% 15%, rgba(165, 200, 255, 0.85), transparent 55%),
    radial-gradient(800px 500px at 10% 20%, rgba(196, 181, 253, 0.7), transparent 50%),
    radial-gradient(700px 480px at 50% 90%, rgba(255, 143, 122, 0.28), transparent 55%),
    radial-gradient(600px 400px at 70% 60%, rgba(159, 232, 212, 0.35), transparent 50%),
    linear-gradient(165deg, #f4f6ff 0%, #eef2ff 40%, #e8ecfb 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
  animation: drift 20s ease-in-out infinite;
  mix-blend-mode: multiply;
}

.orb-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  right: -8%;
  background: #b8c9ff;
}

.orb-b {
  width: min(45vw, 440px);
  height: min(45vw, 440px);
  bottom: 5%;
  left: -12%;
  background: #d4c4ff;
  animation-delay: -7s;
}

.orb-c {
  width: min(35vw, 340px);
  height: min(35vw, 340px);
  top: 45%;
  left: 45%;
  background: #ffc4b8;
  opacity: 0.45;
  animation-delay: -12s;
}

.frost {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(238, 242, 255, 0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) 0
    max(var(--pad), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo-dot {
  color: var(--accent);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.82rem !important;
  box-shadow: 0 8px 24px rgba(91, 108, 255, 0.3);
}

.nav-cta:hover {
  filter: brightness(1.06);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  border-radius: 12px;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.nav-burger span + span {
  margin-top: 5px;
}

.nav-toggle:checked + .nav-burger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle:checked + .nav-burger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  transition: transform 0.15s var(--ease), filter 0.15s, background 0.15s,
    box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(91, 108, 255, 0.28);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.08);
}

.btn.ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.9;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

/* Watch-only demo — auto-play, no manual interaction */
.phone-shell,
.phone-shell * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.phone {
  cursor: default;
}

.api-replay {
  display: none !important;
}

.cursor {
  display: none !important;
}

.mirror-stage .ripple {
  width: calc(100cqw * 16px / var(--phone-w, 220px));
  height: calc(100cqw * 16px / var(--phone-w, 220px));
  margin: calc(100cqw * -8px / var(--phone-w, 220px)) 0 0 calc(100cqw * -8px / var(--phone-w, 220px));
  background: rgba(91, 108, 255, 0.45);
}

/* ——— Hero: interactive mirrored iPhone ——— */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad) 1rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.5rem 1rem;
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 0.5rem;
  animation: rise 0.7s var(--ease) both;
}

.chip {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(91, 108, 255, 0.08);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  max-width: 14ch;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.lede {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.92rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
}

.cta-primary,
.cta-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.cta-note {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.btn-lg {
  min-height: 48px;
  padding: 0.85rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.meta {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.hero-live {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: min(68vh, 620px);
  display: grid;
  place-items: center;
  animation: float-in 1s 0.1s var(--ease) both;
  perspective: 900px;
}

.mirror-stage {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  place-items: center;
  gap: 0.75rem;
  touch-action: pan-y;
  user-select: none;
}

.demo-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

/* Phone mockup — single bezel clip, explicit px radii via cqw */
.phone-shell {
  --phone-w: 220px;
  width: 220px;
  aspect-ratio: 9 / 19.4;
  margin-inline: auto;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  font-size: calc(100cqw * 16px / var(--phone-w));
  container-type: inline-size;
  container-name: phone;
}

.phone-scale {
  width: 100%;
  height: 100%;
}

.phone-shell .phone {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  flex-shrink: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
  cursor: default;
  touch-action: manipulation;
}

.phone-side {
  position: absolute;
  inset: 2% 0;
  border-radius: calc(100cqw * 36px / var(--phone-w));
  background: linear-gradient(90deg, #c8cedd, #e8ecf8 40%, #b8c0d4);
  transform: translateZ(-8px);
  box-shadow: 0 30px 60px rgba(60, 70, 120, 0.28);
  pointer-events: none;
}

.phone-glass {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  border-radius: calc(100cqw * 34px / var(--phone-w));
  padding: calc(100cqw * 9px / var(--phone-w));
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(220, 226, 245, 0.65) 45%,
    rgba(255, 255, 255, 0.85)
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 calc(100cqw * 20px / var(--phone-w)) calc(100cqw * 50px / var(--phone-w)) rgba(80, 90, 150, 0.22);
}

.island {
  position: absolute;
  top: calc(100cqw * 16px / var(--phone-w));
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: calc(100cqw * 10px / var(--phone-w));
  border-radius: calc(100cqw * 10px / var(--phone-w));
  background: #0f1218;
  z-index: 5;
}

.screen {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  border-radius: calc(100cqw * 26px / var(--phone-w));
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(165, 200, 255, 0.45), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(196, 181, 253, 0.35), transparent 45%),
    linear-gradient(165deg, #f7f8ff, #e8ecfb 60%, #dde5fb);
}

.status {
  position: absolute;
  top: calc(100cqw * 14px / var(--phone-w));
  left: calc(100cqw * 14px / var(--phone-w));
  right: calc(100cqw * 14px / var(--phone-w));
  z-index: 6;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.75;
}

.status-icons {
  letter-spacing: 0.08em;
  font-size: 0.45rem;
}

.home-layer {
  position: absolute;
  inset: 0;
  padding: 2.625rem 0.875rem 0.875rem;
  transition: opacity 0.25s, transform 0.25s;
}

.home-layer.dimmed {
  opacity: 0.35;
  transform: scale(0.96);
  pointer-events: none;
}

.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem 0.375rem;
}

.app {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--muted);
  cursor: inherit;
  pointer-events: auto;
}

.app span {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: var(--c, #5b6cff);
  box-shadow: 0 6px 14px rgba(28, 31, 46, 0.12);
}

.app.pulse span,
.web-cta.pulse {
  animation: app-pulse 0.28s var(--ease);
}

.dock {
  position: absolute;
  left: calc(100cqw * 12px / var(--phone-w));
  right: calc(100cqw * 12px / var(--phone-w));
  bottom: calc(100cqw * 14px / var(--phone-w));
  height: calc(100cqw * 42px / var(--phone-w));
  border-radius: calc(100cqw * 16px / var(--phone-w));
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  overflow: hidden;
}

.dock span {
  width: calc(100cqw * 26px / var(--phone-w));
  height: calc(100cqw * 26px / var(--phone-w));
  border-radius: calc(100cqw * 8px / var(--phone-w));
  background: var(--c);
  box-shadow: 0 4px 10px rgba(28, 31, 46, 0.12);
}

/* App sheets */
.app-sheet {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #f0f3ff);
  transform: translateY(108%);
  transition: transform 0.32s var(--ease);
}

.app-sheet.open {
  transform: translateY(0);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2.25rem 0.75rem 0.625rem;
  border-bottom: 1px solid var(--line);
}

.app-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0;
  pointer-events: none;
}

.app-nav strong {
  font-family: var(--font);
  font-size: 0.85rem;
}

.app-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.75rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.mock-safari {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.5rem;
}

.mock-safari .urlbar {
  flex-shrink: 0;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  background: rgba(28, 31, 46, 0.06);
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webcard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(91, 108, 255, 0.08);
  border: 1px solid rgba(91, 108, 255, 0.15);
}

.webcard strong {
  font-family: var(--font);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.webcard p {
  margin: 0 0 0.625rem;
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.35;
}

.web-cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4375rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.62rem;
  align-self: flex-start;
  max-width: 100%;
}

.mock-msgs {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  height: 100%;
}

.bubble {
  max-width: 88%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.875rem;
  font-size: 0.62rem;
  line-height: 1.35;
}

.bubble.in {
  background: rgba(28, 31, 46, 0.08);
  justify-self: start;
}

.bubble.out {
  background: #34c759;
  color: #fff;
  justify-self: end;
  min-height: 1.2em;
}

.composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  border-radius: 1rem;
  background: rgba(28, 31, 46, 0.06);
  font-size: 0.62rem;
  color: var(--text);
  min-height: 2rem;
}

.composer i {
  width: 0.5rem;
  height: 0.875rem;
  background: var(--accent);
  animation: blink-caret 1s step-end infinite;
}

.mock-mail label {
  display: block;
  font-size: 0.55rem;
  color: var(--faint);
  margin: 6px 0 2px;
}

.mock-mail .field,
.mail-body {
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(28, 31, 46, 0.05);
  font-size: 0.62rem;
  min-height: 1.5em;
  color: var(--text);
}

.mail-body {
  min-height: 4.5em;
  margin-top: 8px;
}

.mock-settings .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
}

.mock-settings b.on {
  color: #34c759;
}

.mock-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 100%;
}

.mock-photos i {
  display: block;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd1c7, #c4b5fd);
  min-height: 48px;
}

.mock-photos i:nth-child(2n) {
  background: linear-gradient(135deg, #a5c8ff, #9fe8d4);
}

.mock-music {
  text-align: center;
  padding-top: 8px;
}

.mock-music .art {
  width: 72%;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff375f, #c4b5fd);
}

.mock-music strong {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
}

.mock-music span {
  font-size: 0.58rem;
  color: var(--muted);
}

.seek {
  margin: 14px 8px 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(28, 31, 46, 0.1);
  overflow: hidden;
}

.seek em {
  display: block;
  width: 35%;
  height: 100%;
  background: #ff375f;
  border-radius: 4px;
  transition: width 0.2s;
}

.mock-maps {
  position: relative;
  height: 100%;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    #c8e6c0;
  background-size: 18px 18px, 18px 18px, auto;
  overflow: hidden;
}

.mock-maps .pin {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #ff375f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: left 0.25s, top 0.25s;
}

.mock-maps p {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin: 0;
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 8px;
}

.mock-xcode code {
  display: block;
  font-size: 0.62rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.mock-xcode .build {
  padding: 10px;
  border-radius: 10px;
  background: rgba(28, 31, 46, 0.88);
  color: #9fe8d4;
  font-size: 0.6rem;
}

.home-bar {
  position: absolute;
  left: 50%;
  bottom: calc(100cqw * 5px / var(--phone-w));
  transform: translateX(-50%);
  width: 34%;
  height: calc(100cqw * 3px / var(--phone-w));
  border-radius: calc(100cqw * 3px / var(--phone-w));
  background: rgba(28, 31, 46, 0.25);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

.cursor {
  position: absolute;
  z-index: 8;
  width: calc(100cqw * 18px / var(--phone-w));
  height: calc(100cqw * 18px / var(--phone-w));
  margin: calc(100cqw * -9px / var(--phone-w)) 0 0 calc(100cqw * -9px / var(--phone-w));
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(91, 108, 255, 0.35);
  box-shadow:
    0 0 0 calc(100cqw * 4px / var(--phone-w)) rgba(91, 108, 255, 0.15),
    0 calc(100cqw * 6px / var(--phone-w)) calc(100cqw * 16px / var(--phone-w)) rgba(91, 108, 255, 0.35);
  pointer-events: none;
}

.cursor.down {
  transform: scale(0.72);
  background: rgba(91, 108, 255, 0.55);
}

.ripple {
  position: absolute;
  z-index: 7;
  width: calc(100cqw * 12px / var(--phone-w));
  height: calc(100cqw * 12px / var(--phone-w));
  margin: calc(100cqw * -6px / var(--phone-w)) 0 0 calc(100cqw * -6px / var(--phone-w));
  border-radius: 50%;
  background: rgba(91, 108, 255, 0.35);
  pointer-events: none;
  opacity: 0;
}

.ripple.pop {
  animation: ripple 0.45s var(--ease) forwards;
}

/* API console */
.api-console {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem 0.7rem;
  min-width: 220px;
  width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  max-height: 360px;
}

.api-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
}

.api-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
  animation: soft-blink 1.6s ease-in-out infinite;
}

.api-head code {
  color: var(--muted);
  font-size: 0.65rem;
}

.api-mode {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.api-mode.recording {
  color: #fff;
  background: #e74c3c;
  animation: soft-blink 1s ease-in-out infinite;
}

.api-mode.playing {
  color: var(--accent);
  background: rgba(91, 108, 255, 0.12);
}

.api-path-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
}

.api-path-label {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.55rem;
}

.api-path-name {
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  min-height: 1.35rem;
}

.wf-step {
  font-size: 0.55rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wf-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

.wf-step.done {
  opacity: 0.5;
}

.api-replay {
  margin-left: 0.35rem;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  cursor: pointer;
}

.api-feed {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  font-size: 0.6rem;
  line-height: 1.35;
  scrollbar-width: thin;
}

.api-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.15rem 0.4rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: rgba(28, 31, 46, 0.88);
  color: #d7deef;
  animation: rise 0.25s var(--ease) both;
}

.api-line .m {
  color: #9fe8d4;
  font-weight: 600;
}

.api-line .p {
  color: #b8c9ff;
  word-break: break-all;
}

.api-line .b {
  grid-column: 1 / -1;
  color: #ffd1c7;
  opacity: 0.9;
}

.api-line .s {
  grid-column: 1 / -1;
  color: #86efac;
  font-size: 0.55rem;
}

.api-caption {
  margin: 0.5rem 0 0;
  font-size: 0.58rem;
  color: var(--faint);
}

.control-hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--faint);
  text-align: center;
  letter-spacing: 0.02em;
}

@keyframes ripple {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(6);
  }
}

@keyframes app-pulse {
  50% {
    transform: scale(0.9);
  }
}

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

@keyframes soft-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ——— Note / features ——— */
.note {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

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

.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 1.15rem;
}

.feature-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.feature-card h2,
.pricing-head h2,
.start h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-weight: 650;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature-card > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 52ch;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  color: var(--muted);
}

.features-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.features-grid .feature-card h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.features-grid .feature-card > p {
  font-size: 0.84rem;
  margin-bottom: 1rem;
}

.feature-pro {
  background: linear-gradient(
      165deg,
      rgba(91, 108, 255, 0.1),
      rgba(255, 255, 255, 0.65)
    ),
    var(--frost);
  border-color: rgba(91, 108, 255, 0.22);
}

.feature-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.feature-link:hover {
  text-decoration: underline;
}

.note-compact {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.78rem;
}

.conv-band {
  padding-top: 0.25rem;
  padding-bottom: 1.75rem;
}

.conv-band .waitlist-shell {
  background: linear-gradient(
      135deg,
      rgba(91, 108, 255, 0.12) 0%,
      rgba(196, 181, 253, 0.14) 40%,
      rgba(255, 255, 255, 0.72) 100%
    ),
    var(--frost-strong);
  border-color: rgba(91, 108, 255, 0.25);
  box-shadow: 0 16px 48px rgba(91, 108, 255, 0.14);
}

.waitlist-form-title {
  margin: 0 0 0.15rem;
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.waitlist-form-compact .waitlist-submit {
  font-weight: 600;
}

.waitlist-more {
  font-size: 0.78rem;
  color: var(--muted);
}

.waitlist-more summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  list-style: none;
  padding: 0.15rem 0;
}

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

.waitlist-more[open] summary {
  margin-bottom: 0.5rem;
}

.plan-note {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  color: var(--faint);
  text-align: center;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(238, 242, 255, 0.92);
  border: 1px solid var(--frost-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(91, 108, 255, 0.2);
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta .btn {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

@media (max-width: 734px) {
  body {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .sticky-cta {
    left: var(--pad);
    right: var(--pad);
    width: auto;
    transform: none;
    border-radius: 18px;
    padding: 0.5rem;
    gap: 0.45rem;
  }

  .sticky-cta .btn {
    flex: 1;
    min-height: 44px;
    font-size: 0.76rem;
    padding: 0.5rem 0.55rem;
    justify-content: center;
    text-align: center;
  }
}

.start-conv {
  margin-bottom: 5rem;
}

.start-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.start-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.start-cta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: min(100%, 240px);
}

.start-cta .btn {
  width: 100%;
}

.terminal {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(28, 31, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8c9ff;
  font-size: 0.78rem;
  line-height: 1.75;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow);
}

.terminal .prompt {
  color: #7a8499;
  user-select: none;
}

/* ——— Pricing ——— */
.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 1rem;
}

.pricing-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pricing-head p:not(.kicker) {
  margin: 0 auto 1rem;
  color: var(--muted);
  max-width: 40ch;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 122, 0.45);
  color: #d4654f;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 143, 122, 0.12);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(91, 108, 255, 0.16);
}

.plan.featured {
  background: linear-gradient(
      165deg,
      rgba(91, 108, 255, 0.14),
      rgba(196, 181, 253, 0.18) 45%,
      rgba(255, 255, 255, 0.65)
    ),
    var(--frost-strong);
  border-color: rgba(91, 108, 255, 0.28);
}

.badge {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price {
  margin: 0 0 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price span {
  font-family: var(--font);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price small {
  color: var(--faint);
  font-size: 0.75rem;
}

.plan-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  min-height: 2.6em;
}

.plan ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.plan li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.plan .btn {
  width: 100%;
}

/* ——— Start ——— */
.start {
  max-width: 640px;
  margin: 2rem auto 3rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
}

.start h2 {
  margin-bottom: 1.25rem;
}

.start ol {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.start li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.start li > span {
  font-family: var(--font);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.start strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.start p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.start code {
  color: var(--accent);
  font-size: 0.85em;
}

/* ——— Footer ——— */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) calc(1.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.75rem;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--muted);
}

.foot-legal {
  margin-top: 0.45rem;
}

.foot-legal a {
  color: var(--faint);
}

/* ——— Legal pages ——— */
.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--pad) 3rem;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
}

.legal-doc h1 {
  font-family: var(--font);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.15;
}

.legal-doc h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-meta {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 1.25rem;
}

.legal-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.legal-doc a {
  color: var(--accent);
}

.waitlist-fine a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2.5%, 3%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .hero-live {
    order: 1;
    min-height: auto;
    height: auto;
    padding: 0.25rem 0 0.75rem;
    animation: none;
    perspective: none;
  }

  .hero-copy {
    order: -1;
    padding-top: 0;
    padding-bottom: 0.25rem;
  }

  .demo-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.85rem;
    width: 100%;
    max-width: min(100%, 380px);
    margin-inline: auto;
  }

  .api-console {
    width: 100%;
    max-width: none;
    max-height: min(42vh, 280px);
    min-width: 0;
  }

  .phone-shell {
    --phone-max-h: min(30dvh, 320px);
    --phone-max-w: min(64vw, 210px);
    width: min(var(--phone-max-w), calc(var(--phone-max-h) * 9 / 19.4));
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .lede {
    max-width: none;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .start-inner {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .plan.featured {
    order: -1;
  }
}

@media (max-width: 734px) {
  .nav-burger {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    background: rgba(238, 242, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
  }

  .nav-links a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .cta {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }

  .cta .btn,
  .cta-primary .btn,
  .cta-secondary .btn {
    width: 100%;
  }

  .waitlist-shell {
    display: flex;
    flex-direction: column;
  }

  .waitlist-form {
    order: -1;
  }

  .hero-live {
    min-height: auto;
    padding-bottom: 0.25rem;
  }

  .phone-shell {
    --phone-max-h: min(26dvh, 260px);
    --phone-max-w: min(58vw, 190px);
  }

  .mirror-stage {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    touch-action: auto;
  }

  .phone {
    touch-action: auto;
    pointer-events: auto;
  }

  .control-hint {
    font-size: 0.62rem;
    line-height: 1.4;
    padding-inline: 0.25rem;
  }

  .api-console {
    max-height: min(38vh, 240px);
  }

  .api-caption {
    display: none;
  }

  .plans {
    display: flex;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .plans::-webkit-scrollbar {
    display: none;
  }

  .plan {
    flex: 0 0 min(86vw, 300px);
    scroll-snap-align: center;
  }

  .plan.featured {
    order: 0;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .note {
    margin-inline: var(--pad);
  }
}

/* Touch devices: no 3D hero motion, stable layout */
html.touch-ui .workflow-steps {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

html.touch-ui .workflow-steps::-webkit-scrollbar {
  display: none;
}

html.touch-ui .api-line {
  grid-template-columns: minmax(36px, 42px) 1fr;
  font-size: 0.58rem;
}

html.touch-ui .hero-live {
  animation: none;
  perspective: none;
  min-height: auto;
  padding-top: 0.5rem;
}

html.touch-ui .control-hint {
  display: block;
  font-size: 0.62rem;
  line-height: 1.4;
  padding-inline: 0.25rem;
  text-align: center;
}

html.touch-ui .demo-row {
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0.75rem;
  max-width: min(100%, 380px);
  margin-inline: auto;
}

html.touch-ui .phone-shell {
  --phone-max-h: min(34dvh, 320px);
  --phone-max-w: min(68vw, 228px);
  width: min(var(--phone-max-w), calc(var(--phone-max-h) * 9 / 19.4));
}

html.touch-ui .app-nav {
  padding-top: 2rem;
}

html.touch-ui .app-body {
  padding: 0.5rem 0.625rem 0.625rem;
}

html.touch-ui .api-console {
  width: 100%;
  max-width: none;
  max-height: min(38vh, 280px);
  min-width: 0;
  pointer-events: auto;
}

html.touch-ui .api-feed {
  max-height: min(22vh, 160px);
}

html.touch-ui .phone-shell .phone {
  will-change: transform;
}

html.touch-ui .phone-side {
  display: none;
}

html.touch-ui .mirror-stage {
  touch-action: auto;
}

html.touch-ui .orb {
  display: none;
}

html.touch-ui .hero-copy {
  animation: none;
}

html.touch-ui .hero {
  min-height: auto;
  padding-bottom: 1rem;
}

html.touch-ui .plans {
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

/* ——— Waitlist ——— */
.waitlist-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
}

.waitlist-shell {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  align-items: start;
}

.waitlist-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.waitlist-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
}

.waitlist-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.84rem;
}

.waitlist-perks li::before {
  content: "→ ";
  color: var(--accent);
}

.waitlist-form {
  display: grid;
  gap: 0.75rem;
}

.waitlist-field {
  display: grid;
  gap: 0.35rem;
}

.waitlist-field span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.waitlist-field small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
}

.waitlist-field input,
.waitlist-field select,
.waitlist-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.waitlist-field input:focus,
.waitlist-field select:focus,
.waitlist-field textarea:focus {
  outline: none;
  border-color: rgba(91, 108, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.12);
}

.waitlist-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.waitlist-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.waitlist-status[data-state="success"] {
  color: #1a7f4b;
}

.waitlist-status[data-state="error"] {
  color: #c0392b;
}

.waitlist-status[data-state="loading"] {
  color: var(--muted);
}

.waitlist-fine {
  margin: 0;
  font-size: 0.72rem;
  color: var(--faint);
}

.waitlist-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-captcha {
  margin: 0.15rem 0 0.35rem;
  min-height: 78px;
}

.waitlist-captcha iframe {
  max-width: 100%;
}

.waitlist-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.waitlist-dialog[hidden] {
  display: none !important;
}

body.waitlist-open {
  overflow: hidden;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 31, 46, 0.35);
  backdrop-filter: blur(4px);
}

.waitlist-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  z-index: 1;
}

.waitlist-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 700;
}

.waitlist-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
}

.waitlist-close:hover {
  background: rgba(91, 108, 255, 0.1);
  color: var(--text);
}

button.btn {
  cursor: pointer;
  font: inherit;
}

@media (max-width: 820px) {
  .waitlist-shell {
    grid-template-columns: 1fr;
  }
}
