/* ───────── Tokens ───────── */
:root {
  --canvas: #0c0d0c;
  --surface: #16181a;
  --surface-2: #1d1f21;
  --border: #2e3033;
  --border-2: #25272a;
  --text: #eeeeec;
  --text-soft: #b8b9b3;
  --text-dim: #8d8e88;
  --text-faint: #6a6b66;
  --accent-200: #a4d8cd;
  --accent-300: #6fc0b1;
  --accent-400: #3fa593;
  --accent-600: #157062;
  --accent-700: #10584e;
  --tile-light: #f4f4f3;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  background: var(--canvas);
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  min-height: 100dvh;
  overflow-x: hidden;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}

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

/* ───────── Layout shell ───────── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Hero wash — single soft teal bloom anchored top-left.
   Low opacity + single fade so the canvas stays clean. */
.page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    ellipse 720px 1080px at -12% -12%,
    rgba(63, 165, 147, 0.22) 0%,
    rgba(63, 165, 147, 0.08) 38%,
    transparent 68%
  );
  background-repeat: no-repeat;
  z-index: 0;
}
.page > * {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.topbar {
  padding: 20px 0 0;
}
@media (min-width: 768px) {
  .topbar {
    padding: 32px 0 0;
  }
}
.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .split {
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 88px;
  }
}

/* ───────── Logo lockup ───────── */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.lockup img {
  display: block;
  width: 32px;
  height: 32px;
}
.wordmark {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #f4f4f3;
}
.wordmark-dim {
  color: var(--text-dim);
}

/* ───────── Eyebrow ───────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 26px;
  border-radius: 999px;
  background: rgba(16, 88, 78, 0.22);
  border: 1px solid rgba(16, 88, 78, 0.65);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-200);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-400);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ───────── Headline + body ───────── */
h1.headline {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 20px 0 0;
  text-wrap: balance;
  color: #f4f4f3;
}
h1.headline .accent {
  color: var(--accent-300);
}
p.lede {
  font-size: clamp(15px, 1.2vw, 16.5px);
  color: var(--text-soft);
  margin: 20px 0 0;
  max-width: 500px;
  text-wrap: pretty;
  line-height: 1.55;
}

/* ───────── Email form ───────── */
.signup {
  margin-top: 28px;
  max-width: 460px;
}
.signup .field {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.signup input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  border-radius: 8px;
}
.signup input::placeholder {
  color: var(--text-faint);
}
.signup input:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}
.signup button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-600);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 120ms ease;
}
.signup button:hover {
  background: var(--accent-700);
}
.signup button:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}
.signup .note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.signup .success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.signup.is-done .field,
.signup.is-done .note {
  display: none;
}
.signup.is-done .success {
  display: flex;
}
.signup .success .check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(16, 88, 78, 0.3);
  border: 1px solid var(--accent-700);
  display: grid;
  place-items: center;
  flex: none;
}
.signup .success .body {
  display: flex;
  flex-direction: column;
}
.signup .success strong {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.signup .success span {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ───────── Orbit ───────── */
.orbit-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.orbit-wrap > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hub img {
  display: block;
  width: 86px;
  height: 86px;
}
.chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 6px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.chip.is-future {
  background: rgba(22, 24, 26, 0.6);
  border-style: dashed;
  border-color: #3a3c3f;
  box-shadow: none;
}
.chip .tile {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tile-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.chip .tile img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.chip.is-future .tile {
  background: transparent;
  border: 1px dashed #4a4b46;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 14px;
}
.chip .name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.chip.is-future .name {
  color: var(--text-dim);
  font-size: 12.5px;
}
/* Hub tile (centre logo) */
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 136px;
  height: 136px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
}
.hub::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  background: rgba(63, 165, 147, 0.16);
  filter: blur(18px);
  z-index: -1;
}

/* ───────── Footer ───────── */
footer.foot {
  padding: 28px 0 32px;
  border-top: 1px solid var(--border-2);
  margin-top: auto;
}
footer.foot .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
footer.foot .row .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #3a3c3f;
}
footer.foot .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer.foot a:hover {
  color: var(--text);
}
footer.foot a {
  text-decoration: none;
  transition: color 120ms ease;
}

/* ───────── Mobile form: stack vertically on narrow viewports ───────── */
@media (max-width: 480px) {
  .signup .field {
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .signup input {
    display: block;
    width: 100%;
    padding: 14px 16px; /* iOS ignores height on inputs; use padding instead */
    height: auto;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    font-size: 16px; /* prevents iOS zoom on focus */
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .signup button {
    display: flex;
    width: 100%;
    padding: 14px 18px;
    height: auto;
    border-radius: 10px;
    justify-content: center;
    font-size: 15px;
  }
}

/* --- FAQ section --- */
.faq-section {
  padding-top: 48px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border-2);
}
.faq-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f4f4f3;
  margin: 0 0 32px;
  line-height: 1.15;
}
.faq-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.faq-item {
  border-top: 1px solid var(--border-2);
  padding: 20px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border-2);
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.faq-a {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
  max-width: 740px;
}
@media (min-width: 768px) {
  .faq-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .faq-title {
    margin-bottom: 40px;
  }
  .faq-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
  }
  .faq-item:nth-child(even) {
    border-top: 1px solid var(--border-2);
  }
}

/* ───────── Mobile orbit scaling ───────── */
@media (max-width: 540px) {
  .orbit-wrap {
    max-width: 360px;
  }
  .chip {
    height: 36px;
    padding: 0 12px 0 5px;
  }
  .chip .tile {
    width: 24px;
    height: 24px;
  }
  .chip .tile img {
    width: 15px;
    height: 15px;
  }
  .chip .name {
    font-size: 12.5px;
  }
  .hub {
    width: 100px;
    height: 100px;
  }
  .hub img {
    width: 64px;
    height: 64px;
  }
}
