/* ─────────────────────────────────────────────────────────
   Radian — landing page
   Dark, calm, surgical accent. No gradients. One motion budget.
   ───────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Geist';
  src: url('assets/Geist-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/GeistMono-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────── */

:root {
  /* Slate Titanium — from CLAUDE.md + macOS theme */
  --bg:            #0a0b0d;
  --surface:       #15161a;
  --surface-2:     #1d1e22;
  --surface-3:     #262730;

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text:          rgba(255, 255, 255, 0.95);
  --text-2:        rgba(255, 255, 255, 0.55);
  --text-3:        rgba(255, 255, 255, 0.32);

  --accent:        #4ea8ff;
  --success:       #30d158;
  --warning:       #ff9f0a;
  --critical:      #ff453a;

  /* Typography */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, 'Menlo', monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --container: 1120px;
  --container-narrow: 760px;
}

/* ── Reset & base ────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss03', 'cv11';
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--accent);
  color: var(--bg);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  z-index: 200;
  font-weight: 500;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

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

/* ── Container ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}
.container-narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container { padding-left: var(--s-7); padding-right: var(--s-7); }
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-glyph {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.nav-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-wordmark { font-size: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--surface-2);
  color: var(--text) !important;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.nav-cta:hover { background: var(--surface-3); border-color: rgba(255,255,255,0.22); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 150ms var(--ease-out),
    background 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
  background: transparent;
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
  background: #65b4ff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 18px rgba(78,168,255,0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); background: var(--surface); }

.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 10vw, 128px);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-9);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--s-10);
  }
}

.hero-copy { max-width: 720px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: var(--s-7);
  text-transform: lowercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(78, 168, 255, 0.45);
  animation: breathing 6s var(--ease-in-out) infinite;
}

@keyframes breathing {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(78,168,255,0.45); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(78,168,255,0);    }
}

.hero-headline {
  margin: 0 0 var(--s-7);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
  hyphens: none;
}

.hero-sub {
  margin: 0 0 var(--s-7);
  max-width: 56ch;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.hero-meta {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── Phone mockup (hero) ─────────────────────────────────── */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: 300px;
  aspect-ratio: 9 / 19;
  background: #0d0e12;
  border-radius: 38px;
  padding: 8px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 8px 28px -6px rgba(0,0,0,0.5);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: var(--r-pill);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, #1c2030 0%, #0b0c12 60%, #06070b 100%);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  padding: 60px 14px 16px;
  display: flex;
  flex-direction: column;
}

.phone-time {
  text-align: center;
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.95);
  font-feature-settings: 'tnum';
  margin-bottom: 2px;
  line-height: 1;
}
.phone-time.small { font-size: 28px; }

.phone-date {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--s-5);
}

.phone-hint {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.02em;
}

/* iOS-style notification card */
.notif {
  background: rgba(40, 42, 52, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.95);
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.notif-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-app-icon {
  width: 16px;
  height: 16px;
  background: var(--bg);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent);
}
.notif-app-icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

.notif-app-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.notif-time {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.notif-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.notif-title code {
  background: rgba(255,255,255,0.08);
  border: none;
  font-size: 12px;
  padding: 1px 5px;
  color: rgba(255,255,255,0.95);
}

.notif-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255,69,58,0.18);
  color: #ff7d72;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.notif-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  margin: 2px 0 4px;
}

.notif-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.notif-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  cursor: default;
}

.notif-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.notif-btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.notif-mini .notif-body { display: none; }
.notif-mini .notif-title { font-size: 12px; }

/* ── Sections (shared) ───────────────────────────────────── */

.section {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 0 0 var(--s-3);
}

.section-headline {
  margin: 0 0 var(--s-6);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
  text-wrap: balance;
}

.section-sub {
  margin: 0 0 var(--s-8);
  color: var(--text-2);
  max-width: 620px;
  font-size: 17px;
}

/* ── The Loop ────────────────────────────────────────────── */

.section-loop { background: var(--bg); }

.chapters {
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-7);
  counter-reset: chapter;
}

@media (min-width: 768px) {
  .chapters { gap: var(--s-9); }
}

.chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .chapter {
    grid-template-columns: 220px 1fr;
    gap: var(--s-7);
    padding-top: var(--s-6);
  }
}

.chapter-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-2);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  font-feature-settings: 'tnum';
}

.chapter-glyph {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: var(--text-2);
}

.chapter-title {
  margin: 0 0 var(--s-3);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.chapter-copy {
  margin: 0;
  color: var(--text-2);
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
}

/* ── Two devices ─────────────────────────────────────────── */

.section-system { background: var(--bg); }

.pairing {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  justify-items: center;
}

@media (min-width: 900px) {
  .pairing {
    grid-template-columns: 1fr auto auto;
    gap: var(--s-7);
    justify-items: stretch;
  }
}

/* Mac window mockup */

.mac-window {
  width: 100%;
  max-width: 520px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -20px rgba(0,0,0,0.55);
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.mac-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-3);
}
.mac-dot-r { background: #ff5f56; }
.mac-dot-y { background: #ffbd2e; }
.mac-dot-g { background: #27c93f; }

.mac-title {
  margin-left: var(--s-3);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.mac-body {
  padding: var(--s-7) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-ring {
  width: 96px;
  height: 96px;
  position: relative;
  margin-bottom: var(--s-4);
}

.status-ring-outer,
.status-ring-inner,
.status-ring-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.status-ring-outer {
  width: 96px; height: 96px;
  border: 1px solid rgba(78,168,255,0.18);
}

.status-ring-inner {
  width: 64px; height: 64px;
  background: rgba(78,168,255,0.08);
  animation: ring-breath 6s var(--ease-in-out) infinite;
}

.status-ring-core {
  width: 16px; height: 16px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(78,168,255,0.4);
  animation: breathing 6s var(--ease-in-out) infinite;
}

@keyframes ring-breath {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1;   }
}

.mac-label {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-5);
}

.mac-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}

.mac-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--text-2);
}

.mac-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  font-feature-settings: 'tnum';
  min-width: 36px;
}
.mac-row code {
  background: var(--surface-3);
  border-color: var(--border);
  font-size: 11px;
  padding: 1px 5px;
}

/* Pairing connector */

.pairing-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  width: 80px;
}

.pairing-link svg { color: var(--text-3); }

.pairing-link-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 899px) {
  .pairing-link {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }
  .pairing-link svg { display: none; }
}

.phone-small {
  width: 200px;
}
.phone-small .phone-screen { padding: 42px 10px 12px; }
.phone-small .phone-notch  { width: 70px; height: 20px; top: 12px; }

/* ── Audience section ────────────────────────────────────── */

.section-audience { background: var(--bg); }

.audience-list {
  list-style: none;
  margin: var(--s-7) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.audience-list li {
  font-size: 19px;
  color: var(--text);
  line-height: 1.5;
  padding-left: var(--s-5);
  position: relative;
}

.audience-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.audience-not {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 15px;
  max-width: 620px;
}

/* ── CTA ─────────────────────────────────────────────────── */

.section-cta {
  background: var(--bg);
  text-align: center;
}

.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .section-headline { text-align: center; max-width: none; }

.cta-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s-5);
}

.cta-fine {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-7) 0;
  color: var(--text-3);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-2);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

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

/* ── Modal ───────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 200ms var(--ease-out);
}

.modal-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--s-7);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  animation: rise-in 280ms var(--ease-out);
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.modal-close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
  border-radius: 50%;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }

.modal-title {
  margin: 0 0 var(--s-3);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.modal-sub {
  margin: 0 0 var(--s-5);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.modal-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  width: 100%;
  transition: border-color 150ms var(--ease-out);
}
.modal-input::placeholder { color: var(--text-3); }
.modal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78,168,255,0.15);
}
.modal-input[aria-invalid="true"] {
  border-color: #ff6b6b;
}
.modal-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255,107,107,0.18);
}

.modal-submit { width: 100%; }
.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-success {
  margin: var(--s-3) 0 0;
  color: var(--text);
  font-size: 14px;
  background: rgba(48,209,88,0.08);
  border: 1px solid rgba(48,209,88,0.2);
  padding: 12px 14px;
  border-radius: var(--r-sm);
}
.modal-success code {
  background: rgba(255,255,255,0.06);
  border: none;
}

/* ── Reduced motion ──────────────────────────────────────── */

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