@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Special+Elite&display=swap');

:root {
  --bg: #1c1c20;
  --panel: #202026;
  --panel-soft: #26262d;
  --field: #222228;
  --border: rgba(132, 132, 160, 0.28);
  --border-soft: rgba(168, 145, 229, 0.24);
  --violet: #9c5cff;
  --violet-2: #6f37ee;
  --violet-3: #bc7cff;
  --text-primary: #f5f2ff;
  --text-secondary: #f5f2ff;
  --text-muted: #f5f2ff;
  --success: #8be0a8;
  --error: #ff8f9d;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --content-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, rgba(98, 79, 148, 0.16), transparent 24%),
    linear-gradient(180deg, #19191d 0%, #1f1f24 100%);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

button, a, input { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 255, 0.34);
}

a:hover { color: var(--violet-3); }

p { margin: 0; }

.shell {
  max-width: 1540px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
  height: 100vh;
}

.landing-card {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 38% 62%;
  grid-template-rows: 1fr auto;
  background: linear-gradient(180deg, rgba(31, 31, 37, 0.98), rgba(26, 26, 31, 1));
  border: 1px solid rgba(130, 130, 146, 0.24);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.landing-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 36px;
  left: 29%;
  width: 320px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 28, 33, 0) 0%, rgba(31, 31, 37, 0.12) 10%, rgba(36, 36, 42, 0.24) 24%, rgba(42, 42, 48, 0.34) 42%, rgba(42, 42, 48, 0.3) 58%, rgba(34, 34, 39, 0.14) 76%, rgba(28, 28, 33, 0) 100%);
  filter: blur(20px);
  z-index: 3;
}

.landing-copy {
  position: relative;
  z-index: 2;
  padding: clamp(52px, 6.6vh, 78px) 30px clamp(38px, 4.8vh, 52px) clamp(34px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 28, 32, 0.96) 0%, rgba(30, 30, 35, 0.94) 50%, rgba(34, 34, 39, 0.8) 68%, rgba(39, 37, 45, 0.48) 82%, rgba(39, 37, 45, 0.1) 100%);
  justify-content: center;
}

.landing-copy::after {
  content: none;
}

.landing-copy > :not(.firefly-layer-copy):not(.firefly-layer-mobile-page) {
  position: relative;
  z-index: 1;
}

.brand-block {
  margin-bottom: clamp(18px, 2.4vh, 28px);
  padding-top: 18px;
  width: 100%;
  max-width: 500px;
}

.brand-block h1 {
  margin: 0 0 6px;
  font-family: "General Sans", -apple-system, BlinkMacSystemFont,
               system-ui, sans-serif;
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f2ff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.tagline {
  color: var(--text-primary);
  font-size: clamp(18px, 1.6vw, 26px);
  letter-spacing: -0.03em;
  font-weight: 400;
}

.intro {
  max-width: 520px;
  color: rgba(240, 242, 255, 0.94);
  font-size: clamp(13px, 1.18vw, 15px);
  line-height: 1.95;
  margin-bottom: 23px;
  width: 100%;
  font-family: "Special Elite", "Courier New", ui-monospace, monospace;
  position: relative;
  z-index: 1;
}

.intro-secondary {
  max-width: 560px;
}

.intro-note {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 0 14px;
  padding: 24px 28px 18px 34px;
  border-radius: 16px;
  border: 1px solid rgba(174, 150, 230, 0.24);
  background:
    linear-gradient(180deg, rgba(28, 29, 39, 0.96), rgba(32, 33, 45, 0.93)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 30px,
      rgba(131, 151, 215, 0.24) 30px,
      rgba(131, 151, 215, 0.24) 31px
    );
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(124, 82, 220, 0.08);
}

.intro-note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  background: rgba(195, 132, 170, 0.28);
}

.intro-note .intro:last-of-type {
  margin-bottom: 0;
}

form.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  width: 100%;
}

form.signup .field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.field {
  width: 100%;
}

.with-icon {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  z-index: 1;
}

.field-icon.pin {
  width: 15px;
  height: 15px;
  border-radius: 50% 50% 50% 0;
  transform: translateY(-56%) rotate(-45deg);
  background: linear-gradient(180deg, #a95bff 0%, #7b46f7 100%);
}

.field-icon.pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #160c31;
}

form.signup input[type="tel"],
form.signup input[type="text"],
form.signup input[type="email"] {
  width: 100%;
  height: clamp(48px, 5.3vh, 56px);
  padding: 0 20px 0 54px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: rgba(8, 7, 21, 0.94);
  color: var(--text-primary);
  font: 400 14px/1.2 "Inter", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  outline: none;
}

form.signup input::placeholder {
  color: rgba(245, 242, 255, 0.56);
}

form.signup input:focus {
  border-color: rgba(156, 92, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(156, 92, 255, 0.14);
}

form.signup button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: clamp(52px, 5.8vh, 60px);
  margin-top: 2px;
  border: 1px solid rgba(154, 92, 255, 0.72);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(10, 8, 24, 0.96), rgba(7, 6, 18, 0.96));
  color: #f7f3ff;
  font: 500 clamp(15px, 1.3vw, 18px)/1 "Inter", sans-serif;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(169, 91, 255, 0.18),
    0 0 18px rgba(124, 82, 220, 0.34),
    0 0 34px rgba(124, 82, 220, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

form.signup button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(188, 124, 255, 0.26),
    0 0 22px rgba(124, 82, 220, 0.42),
    0 0 42px rgba(124, 82, 220, 0.2);
}

form.signup button[type="submit"] span {
  font-size: 24px;
  line-height: 0.8;
}

.rollout-copy {
  max-width: 420px;
  margin-top: 10px;
  color: var(--text-primary);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.5;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.privacy-note {
  max-width: 430px;
  margin-top: 12px;
  padding-top: 0;
  padding-bottom: 18px;
  color: var(--text-primary);
  font-size: 12.5px;
  line-height: 1.62;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.signup-status {
  display: none;
  max-width: 412px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
}

.signup-status.success {
  display: block;
  background: rgba(139, 224, 168, 0.1);
  border: 1px solid rgba(139, 224, 168, 0.22);
  color: var(--success);
}

.signup-status.error {
  display: block;
  background: rgba(255, 143, 157, 0.08);
  border: 1px solid rgba(255, 143, 157, 0.22);
  color: var(--error);
}

.landing-scene {
  position: relative;
  min-height: 0;
  margin: 96px 116px 96px 58px;
  border-radius: 34px;
  border: 1px solid rgba(154, 92, 255, 0.48);
  background:
    linear-gradient(90deg, rgba(29, 29, 34, 0.3) 0%, rgba(29, 29, 34, 0.12) 16%, rgba(29, 29, 34, 0) 30%),
    url("assets/hero-scene-crop.png") center center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(169, 91, 255, 0.14),
    0 0 22px rgba(124, 82, 220, 0.24),
    0 0 44px rgba(124, 82, 220, 0.12);
  overflow: hidden;
}

.firefly-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.firefly-layer-copy {
  inset: -10% 4% -8% -16%;
  opacity: 1;
}

.firefly-layer-mobile {
  display: none;
}

.firefly-layer-mobile-page {
  display: none;
}

.firefly {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 192, 1) 0%, rgba(255, 220, 118, 0.92) 38%, rgba(255, 220, 118, 0.18) 72%, transparent 100%);
  box-shadow:
    0 0 8px rgba(255, 224, 130, 0.95),
    0 0 18px rgba(255, 208, 95, 0.52),
    0 0 32px rgba(255, 208, 95, 0.2);
  opacity: 0.45;
  will-change: transform, opacity;
  animation:
    firefly-drift 16s ease-in-out infinite,
    firefly-pulse 4.8s ease-in-out infinite;
}

.firefly-layer-copy .firefly {
  width: 6px;
  height: 6px;
  opacity: 0.26;
  box-shadow:
    0 0 7px rgba(255, 224, 130, 0.78),
    0 0 18px rgba(255, 208, 95, 0.34);
}

.f1 {
  left: 10%;
  top: 22%;
  animation-duration: 18s, 4.4s;
  animation-delay: -5s, -0.8s;
}

.f2 {
  left: 22%;
  top: 66%;
  width: 10px;
  height: 10px;
  animation-duration: 20s, 5.2s;
  animation-delay: -9s, -1.7s;
}

.f3 {
  left: 36%;
  top: 40%;
  width: 6px;
  height: 6px;
  animation-duration: 15s, 4s;
  animation-delay: -2.5s, -2.2s;
}

.f4 {
  left: 48%;
  top: 74%;
  animation-duration: 19s, 5.6s;
  animation-delay: -11s, -0.2s;
}

.f5 {
  left: 63%;
  top: 28%;
  width: 7px;
  height: 7px;
  animation-duration: 17s, 4.6s;
  animation-delay: -7s, -2.8s;
}

.f6 {
  left: 76%;
  top: 58%;
  width: 11px;
  height: 11px;
  animation-duration: 22s, 6s;
  animation-delay: -13s, -1.1s;
}

.f7 {
  left: 84%;
  top: 18%;
  width: 6px;
  height: 6px;
  animation-duration: 14s, 3.8s;
  animation-delay: -6s, -0.9s;
}

.f8 {
  left: 90%;
  top: 80%;
  width: 9px;
  height: 9px;
  animation-duration: 21s, 5s;
  animation-delay: -15s, -2.4s;
}

.fc1 {
  left: 8%;
  top: 18%;
  animation-duration: 17s, 5.4s;
  animation-delay: -3s, -1.4s;
}

.fc2 {
  left: 76%;
  top: 14%;
  width: 5px;
  height: 5px;
  animation-duration: 13s, 4.2s;
  animation-delay: -8s, -0.5s;
}

.fc3 {
  left: 18%;
  top: 56%;
  width: 7px;
  height: 7px;
  animation-duration: 19s, 6s;
  animation-delay: -10s, -2.1s;
}

.fc4 {
  left: 82%;
  top: 70%;
  width: 4px;
  height: 4px;
  animation-duration: 15s, 4.6s;
  animation-delay: -6s, -1.8s;
}

.fc5 {
  left: 46%;
  top: 84%;
  width: 6px;
  height: 6px;
  animation-duration: 18s, 5.8s;
  animation-delay: -12s, -2.7s;
}

.fc6 {
  left: 4%;
  top: 38%;
  width: 5px;
  height: 5px;
  animation-duration: 16s, 4.8s;
  animation-delay: -4s, -1.6s;
}

.fc7 {
  left: 64%;
  top: 32%;
  width: 4px;
  height: 4px;
  animation-duration: 14s, 4.2s;
  animation-delay: -9s, -2.3s;
}

.fc8 {
  left: 26%;
  top: 74%;
  width: 7px;
  height: 7px;
  animation-duration: 20s, 6.2s;
  animation-delay: -14s, -0.9s;
}

.fc9 {
  left: 88%;
  top: 54%;
  width: 5px;
  height: 5px;
  animation-duration: 17s, 5.1s;
  animation-delay: -7s, -2.8s;
}

.fc10 {
  left: 12%;
  top: 8%;
  width: 4px;
  height: 4px;
  animation-duration: 15s, 4.4s;
  animation-delay: -5s, -1.2s;
}

.fc11 {
  left: 58%;
  top: 20%;
  width: 7px;
  height: 7px;
  animation-duration: 18s, 5.3s;
  animation-delay: -11s, -2.4s;
}

.fc12 {
  left: 32%;
  top: 44%;
  width: 5px;
  height: 5px;
  animation-duration: 13s, 4s;
  animation-delay: -6s, -0.7s;
}

.fc13 {
  left: 72%;
  top: 62%;
  width: 6px;
  height: 6px;
  animation-duration: 20s, 6.4s;
  animation-delay: -15s, -3s;
}

.fc14 {
  left: 14%;
  top: 88%;
  width: 8px;
  height: 8px;
  animation-duration: 19s, 5.7s;
  animation-delay: -9s, -1.9s;
}

.fm1 { left: 8%; top: 12%; width: 5px; height: 5px; animation-duration: 15s, 4.5s; animation-delay: -3s, -1.2s; }
.fm2 { left: 18%; top: 48%; width: 7px; height: 7px; animation-duration: 18s, 5.8s; animation-delay: -9s, -2.2s; }
.fm3 { left: 34%; top: 26%; width: 5px; height: 5px; animation-duration: 14s, 4.1s; animation-delay: -6s, -0.8s; }
.fm4 { left: 52%; top: 66%; width: 8px; height: 8px; animation-duration: 20s, 6.4s; animation-delay: -12s, -3.1s; }
.fm5 { left: 68%; top: 18%; width: 6px; height: 6px; animation-duration: 16s, 4.9s; animation-delay: -7s, -1.7s; }
.fm6 { left: 78%; top: 52%; width: 7px; height: 7px; animation-duration: 19s, 5.5s; animation-delay: -14s, -2.6s; }
.fm7 { left: 88%; top: 30%; width: 5px; height: 5px; animation-duration: 13s, 4s; animation-delay: -4s, -0.9s; }
.fm8 { left: 60%; top: 84%; width: 9px; height: 9px; animation-duration: 21s, 6.1s; animation-delay: -15s, -2.9s; }

.fp1 { left: 6%; top: 10%; width: 5px; height: 5px; animation-duration: 14s, 4.4s; animation-delay: -3s, -0.7s; }
.fp2 { left: 86%; top: 14%; width: 6px; height: 6px; animation-duration: 17s, 5.1s; animation-delay: -8s, -2.2s; }
.fp3 { left: 14%; top: 34%; width: 7px; height: 7px; animation-duration: 19s, 6s; animation-delay: -12s, -1.8s; }
.fp4 { left: 78%; top: 42%; width: 5px; height: 5px; animation-duration: 15s, 4.2s; animation-delay: -5s, -1.1s; }
.fp5 { left: 10%; top: 58%; width: 6px; height: 6px; animation-duration: 18s, 5.6s; animation-delay: -10s, -2.4s; }
.fp6 { left: 88%; top: 68%; width: 8px; height: 8px; animation-duration: 21s, 6.4s; animation-delay: -14s, -3.1s; }
.fp7 { left: 18%; top: 78%; width: 5px; height: 5px; animation-duration: 16s, 4.8s; animation-delay: -6s, -0.9s; }
.fp8 { left: 72%; top: 84%; width: 7px; height: 7px; animation-duration: 20s, 5.9s; animation-delay: -11s, -2.7s; }
.fp9 { left: 46%; top: 92%; width: 6px; height: 6px; animation-duration: 18s, 5.2s; animation-delay: -9s, -1.6s; }

@keyframes firefly-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  25% {
    transform: translate3d(18px, -26px, 0) scale(1);
  }
  50% {
    transform: translate3d(-14px, 16px, 0) scale(0.88);
  }
  75% {
    transform: translate3d(26px, -10px, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
}

@keyframes firefly-pulse {
  0%, 100% {
    opacity: 0.26;
  }
  35% {
    opacity: 0.72;
  }
  60% {
    opacity: 0.48;
  }
}

/* Inline hero image — only shown when the layout collapses to a single
   column (mobile/tablet). Sits between the wordmark and the intro copy. */
.scene-mobile { display: none; }

.landing-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(27, 27, 32, 0.94);
  color: var(--text-primary);
  font-size: 13px;
}

.landing-footer .footer-mark {
  letter-spacing: 0.02em;
}

.landing-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.landing-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  border-bottom: 0;
  font-size: 13px;
  transition: color 140ms ease, opacity 140ms ease;
}

.landing-footer .footer-socials a:hover {
  color: var(--violet-3);
}

.landing-footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.92;
}

.landing-footer .social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-footer .social-icon .fill-dot {
  fill: currentColor;
  stroke: none;
}

.landing-footer .footer-links {
  display: flex;
  gap: 22px;
}

.landing-footer a {
  color: var(--text-primary);
  border-bottom: 0;
  transition: color 140ms ease;
}

.landing-footer a:hover {
  color: var(--violet-3);
}

/* Country / dial-code picker — replaces the static flag icon on the
   phone field with a clickable trigger and a searchable panel. */
.phone-field { position: relative; }

/* Flag stays at the same spot the static .field-icon used to sit, so
   the phone input keeps its original left padding. The button is sized
   to its content (the flag emoji) and gets a subtle hover ring to
   signal it's clickable. */
.country-trigger {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  transition: background 140ms ease;
  z-index: 2;
}
.country-trigger:hover,
.country-trigger:focus-visible { background: rgba(124, 82, 220, 0.16); outline: none; }
.country-trigger[aria-expanded="true"] { background: rgba(124, 82, 220, 0.22); }

.country-trigger .flag-emoji {
  font-size: 22px;
  line-height: 1;
}

.country-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  background: rgba(10, 8, 26, 0.98);
  border: 1px solid rgba(124, 82, 220, 0.42);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(2, 1, 12, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.country-panel[hidden] { display: none; }

.country-search {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(8, 7, 21, 0.94);
  color: var(--text-primary);
  font: 400 14px/1 "Inter", sans-serif;
  outline: none;
}
.country-search:focus {
  border-color: rgba(156, 92, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(156, 92, 255, 0.14);
}
.country-search::placeholder { color: rgba(231, 223, 249, 0.42); }

.country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 82, 220, 0.5) transparent;
}
.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb {
  background: rgba(124, 82, 220, 0.4);
  border-radius: 6px;
}

.country-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.country-list li.active,
.country-list li:hover {
  background: rgba(124, 82, 220, 0.18);
  color: var(--text-primary);
}
.country-list li.empty {
  cursor: default;
  color: var(--text-muted);
  font-style: italic;
}
.country-list li.empty:hover { background: transparent; }

.country-list .cflag { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.country-list .cname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-list .cdial {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

/* Inline error state for invalid form fields. */
.field.invalid input {
  border-color: rgba(255, 143, 157, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 143, 157, 0.14) !important;
}

/* City autocomplete dropdown */
.city-field {
  position: relative;
}

.city-suggestions {
  /* Fixed positioning lets the dropdown escape any clipped ancestor.
     The actual top/left/width are set inline by JS on each render. */
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  z-index: 1000;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(10, 8, 26, 0.98);
  border: 1px solid rgba(124, 82, 220, 0.42);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(2, 1, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-height: 260px;
  overflow-y: auto;
}

.city-suggestions[hidden] { display: none; }

.city-suggestions li {
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.city-suggestions li.active,
.city-suggestions li:hover {
  background: rgba(124, 82, 220, 0.18);
  color: var(--text-primary);
}

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

/* Legal pages opt out of the landing page's no-scroll viewport. */
body.legal-page {
  height: auto;
  overflow: auto;
}

.legal-page .shell {
  max-width: 1080px;
  padding: 28px 24px 48px;
}

.legal-page main {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Legal-page nav (top) */
.legal-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 36px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.legal-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 0;
}

.legal-page .wordmark {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
               BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-transform: lowercase;
}

.legal-page .radar-mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.25px solid rgba(124, 82, 220, 0.55);
  background: rgba(8, 7, 21, 0.6);
}
.legal-page .radar-mark::before,
.legal-page .radar-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1.25px solid rgba(124, 82, 220, 0.55);
  transform: translate(-50%, -50%);
}
.legal-page .radar-mark::before { width: 16px; height: 16px; }
.legal-page .radar-mark::after { width: 6px; height: 6px; }
.legal-page .radar-mark .center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet-3);
  transform: translate(-50%, -50%);
}

.legal-page .nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.legal-page .nav-links a {
  color: var(--text-muted);
  border-bottom: 0;
  transition: color 140ms ease;
}
.legal-page .nav-links a:hover {
  color: var(--violet-3);
}

/* Legal-page footer (bottom) */
.legal-page .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--content-width);
  margin: 56px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(124, 82, 220, 0.2);
  color: var(--text-muted);
  font-size: 13px;
}
.legal-page .site-footer a {
  color: var(--text-secondary);
  border-bottom: 0;
}
.legal-page .site-footer a:hover { color: var(--violet-3); }
.legal-page .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.legal-page .effective {
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 42px 0 12px;
  font-size: 28px;
  line-height: 1.05;
}

.legal-page h3 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.legal-page strong {
  color: var(--text-primary);
}

.legal-page ul {
  margin: 0 0 1em;
  padding-left: 20px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page .lead {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 18px;
}

.legal-page .toc,
.legal-page .callout {
  background: rgba(10, 9, 24, 0.88);
  border: 1px solid rgba(124, 82, 220, 0.22);
  border-radius: var(--radius-lg);
}

.legal-page .toc {
  margin: 24px 0 32px;
  padding: 20px 24px;
}

.legal-page .toc h4 {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page .toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
}

.legal-page .toc li {
  break-inside: avoid;
}

.legal-page .toc a {
  color: var(--text-secondary);
  border-bottom: 0;
}

.legal-page .callout {
  margin: 24px 0;
  padding: 18px 22px;
}

@media (max-width: 1100px) {
  /* Below the desktop breakpoint, the layout stacks (copy on top,
     scene below). Re-enable native scrolling so both are reachable. */
  body {
    height: auto;
    overflow: auto;
  }
  .shell { height: auto; }
  .landing-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .landing-copy {
    padding: 56px 24px 36px;
    overflow: visible;
    background: linear-gradient(180deg, rgba(28, 28, 32, 0.96), rgba(31, 31, 36, 0.88));
    display: block;
  }

  .landing-card::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 96px;
    transform: none;
    background: linear-gradient(180deg, rgba(28, 28, 32, 0) 0%, rgba(37, 37, 42, 0.28) 35%, rgba(43, 43, 48, 0.42) 55%, rgba(28, 28, 32, 0) 100%);
    filter: blur(12px);
  }

  .landing-copy::after,
  .firefly-layer-copy {
    display: none;
  }

  .firefly-layer-mobile-page {
    display: block;
    inset: 0;
    z-index: 0;
  }

  .firefly-layer-mobile-page .firefly {
    width: 8px;
    height: 8px;
    opacity: 0.42;
    box-shadow:
      0 0 10px rgba(255, 224, 130, 0.92),
      0 0 22px rgba(255, 208, 95, 0.48),
      0 0 34px rgba(255, 208, 95, 0.18);
  }

  .brand-block,
  .intro,
  form.signup,
  .rollout-copy,
  .privacy-note,
  .signup-status {
    max-width: 100%;
  }

  .privacy-note { margin-top: 40px; }

  form.signup .field-row {
    grid-template-columns: 1fr;
  }

  /* On mobile/tablet the side scene panel is replaced by an inline
     hero image rendered between the wordmark and the intro paragraph. */
  .landing-scene {
    display: none;
    margin-left: 0;
  }

  .scene-mobile {
    position: relative;
    display: block;
    width: min(88%, 420px);
    aspect-ratio: 16 / 10;
    margin: 4px auto 26px;
    border-radius: 24px;
    border: 1.25px solid rgba(154, 92, 255, 0.58);
    background: url("assets/hero-scene-crop.png") center center / cover no-repeat;
    box-shadow:
      0 18px 40px rgba(2, 1, 12, 0.34),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(169, 91, 255, 0.14),
      0 0 22px rgba(124, 82, 220, 0.24),
      0 0 40px rgba(124, 82, 220, 0.1);
  }

  .firefly-layer-mobile {
    display: block;
    inset: 0;
  }

  .landing-footer {
    padding: 14px 24px max(14px, env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 12px;
  }
  .landing-footer .footer-socials {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 16px;
  }
  .landing-footer .footer-links { gap: 18px; flex-wrap: wrap; }
}

@media (min-width: 1101px) and (max-height: 920px) {
  .landing-copy {
    padding: 34px 30px 22px clamp(34px, 4vw, 60px);
  }

  .brand-block {
    margin-bottom: 14px;
    padding-top: 8px;
  }

  .intro-note {
    margin-bottom: 10px;
    padding: 20px 24px 14px 30px;
  }

  .intro {
    margin-bottom: 16px;
    line-height: 1.72;
  }

  form.signup {
    gap: 8px;
  }

  form.signup input[type="tel"],
  form.signup input[type="text"],
  form.signup input[type="email"] {
    height: 46px;
  }

  form.signup button[type="submit"] {
    height: 50px;
  }

  .rollout-copy {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.42;
  }

  .privacy-note {
    margin-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .landing-scene {
    margin: 74px 96px 74px 52px;
  }
}

@media (max-width: 760px) {
  .landing-copy {
    padding: clamp(48px, 8vh, 64px) 22px 40px;
  }

  .brand-block {
    margin-bottom: 18px;
    padding-top: 14px;
  }

  .scene-mobile {
    aspect-ratio: 4 / 3;
    margin: 2px 0 22px;
    border-radius: 18px;
    width: min(86%, 360px);
    margin-left: auto;
    margin-right: auto;
  }

  .intro-note {
    padding: 22px 18px 18px 28px;
    border-radius: 14px;
  }

  .intro-note::before {
    left: 18px;
  }

  .brand-block h1 {
    font-size: clamp(46px, 13.5vw, 64px);
    letter-spacing: -0.045em;
  }

  .tagline {
    font-size: clamp(20px, 5.6vw, 30px);
  }

  .intro {
    margin-bottom: 23px;
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.9;
  }

  form.signup {
    gap: 12px;
  }

  form.signup input[type="tel"],
  form.signup input[type="text"],
  form.signup input[type="email"] {
    height: 60px;
    font-size: 16px; /* keep ≥16 to prevent iOS zoom on focus */
    padding: 0 22px 0 60px;
  }

  form.signup button[type="submit"] {
    height: 64px;
    font-size: 18px;
    margin-top: 6px;
  }

  .field-icon { left: 17px; font-size: 24px; }
  .field-icon.pin { left: 22px; }

  .rollout-copy {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.55;
  }

  .privacy-note {
    margin-top: 36px;
    font-size: 13px;
    line-height: 1.65;
  }

  /* Make autocomplete rows easier to tap (≥44pt). */
  .city-suggestions li {
    padding: 14px 16px;
    font-size: 15.5px;
  }

  .legal-page .shell {
    padding: 22px 18px 40px;
  }

  .legal-page .nav {
    padding: 4px 0 24px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .legal-page .wordmark { font-size: 24px; }
  .legal-page .nav-links { font-size: 13px; gap: 16px; }

  .legal-page h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .legal-page h2 {
    margin-top: 36px;
    font-size: 22px;
  }
  .legal-page h3 { font-size: 18px; margin-top: 22px; }
  .legal-page p, .legal-page li { font-size: 15.5px; line-height: 1.7; }
  .legal-page .lead { font-size: 16.5px; }

  .legal-page .toc ol {
    columns: 1;
  }
  .legal-page .toc { padding: 16px 18px; }

  .legal-page .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
  .legal-page .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .landing-copy {
    padding: 36px 20px 28px;
  }

  .brand-block {
    margin-bottom: 14px;
  }

  .scene-mobile {
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .brand-block h1 {
    font-size: clamp(42px, 14.5vw, 56px);
  }

  .tagline {
    font-size: clamp(19px, 5.4vw, 26px);
  }

  .intro {
    margin-bottom: 22px;
    font-size: 16.5px;
  }

  .privacy-note {
    margin-top: 28px;
    gap: 12px;
  }

  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 22px max(18px, env(safe-area-inset-bottom));
    font-size: 12.5px;
  }

  .landing-footer .footer-socials {
    gap: 10px 14px;
  }
}

/* Landscape phones — keep things compact and readable. */
@media (max-width: 1100px) and (max-height: 520px) and (orientation: landscape) {
  .landing-copy { padding: 28px 24px 24px; }
  .brand-block { margin-bottom: 12px; }
  .scene-mobile { aspect-ratio: 21 / 9; margin-bottom: 18px; }
  .intro { margin-bottom: 18px; }
  .privacy-note { margin-top: 20px; }
}

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

  .firefly {
    opacity: 0.35;
  }
}
