/* Tokens and component values match the app's marketing page (src/routes/index.tsx, src/styles.css). */
:root {
  --brand: #5577f2;
  --night: #3d5fe0;
  --teal: #2db3a3;
  --teal-deep: #16796e;
  --ink: #151b2d;
  --inksoft: #6b7690;
  --body: #4c586d;
  --paper: #f1f4fa;
  --glass-border: rgba(255, 255, 255, 0.6);
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
ul {
  margin: 0;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Background light */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
}
.blob-1 {
  top: -140px;
  left: -120px;
  width: 560px;
  height: 560px;
  background: rgba(85, 119, 242, 0.3);
  filter: blur(80px);
  animation: floaty 14s ease-in-out infinite;
}
.blob-2 {
  top: 260px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: rgba(45, 179, 163, 0.25);
  filter: blur(80px);
  animation: floaty 18s ease-in-out infinite reverse;
}
.blob-3 {
  top: 1500px;
  left: 20%;
  width: 620px;
  height: 620px;
  background: rgba(129, 140, 248, 0.2);
  filter: blur(90px);
  animation: floaty 20s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.topbar {
  position: relative;
  background: var(--ink);
  color: #c3cbe0;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
}

.wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 30px rgba(21, 27, 45, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--inksoft);
}
.nav-link:hover {
  color: var(--ink);
}
@media (min-width: 640px) {
  .nav-link {
    display: inline-block;
  }
}
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover {
  background: rgba(85, 119, 242, 0.9);
}

/* Wordmark: dotless ı with drawn dots so the i's carry the brand + teal pair. */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
@media (max-width: 480px) {
  .nav {
    padding: 10px 10px 10px 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand .mark {
    width: 32px;
    height: 32px;
  }
  .nav .wordmark {
    font-size: 18px;
  }
  .nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }
}
/* tambl: the blue + teal pair sits under the m, spaced like the dots in the mark.
   Measured on Space Grotesk Bold: m advance 0.854em, pair centred under it. The
   zero-size anchor sits on the baseline just after the m (advance minus letter-spacing). */
.tambl .tm-dots {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
}
.tambl .tm-dots::before,
.tambl .tm-dots::after {
  content: '';
  position: absolute;
  top: 0.07em;
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
}
.tambl .tm-dots::before {
  left: -0.562em;
  background: var(--brand);
}
.tambl .tm-dots::after {
  left: -0.382em;
  background: var(--teal);
}
.wordmark.small {
  font-size: 18px;
  color: var(--ink);
}
.wi {
  position: relative;
  display: inline-block;
}
.wi::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.12em;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  transform: translateX(-50%);
}
.wi1::after {
  background: var(--brand);
}
.wi2::after {
  background: var(--teal);
}

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night);
}
.eyebrow.light {
  color: #8ea6ff;
}
h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.lede {
  max-width: 34rem;
  font-size: 19px;
  line-height: 1.625;
  color: var(--body);
}
.body {
  font-size: 17px;
  line-height: 1.625;
  color: var(--body);
}
.body.strong {
  color: var(--ink);
  font-weight: 600;
}
.body.light {
  color: #c3cbe0;
}
.note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--inksoft);
}
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
}

/* Buttons */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(85, 119, 242, 0.35);
}
.btn-primary:hover {
  background: rgba(85, 119, 242, 0.9);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn-primary.center {
  align-self: center;
}
.btn-primary.full {
  width: 100%;
}
.arrow {
  font-size: 18px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
}
.btn-ghost:hover {
  background: #fff;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 88px 0 64px;
}
.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-art {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meetup {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 50px rgba(21, 27, 45, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.meetup img {
  width: 150px;
  height: 150px;
  flex: none;
  border-radius: 18px;
  object-fit: cover;
}
.meetup-body {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meetup h3 {
  font-size: 19px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tiny {
  font-size: 11px;
  color: var(--inksoft);
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--inksoft);
}
.chip-teal {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(45, 179, 163, 0.15);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 600;
}
.chip-teal.sm {
  padding: 2px 8px;
  font-size: 10px;
}
.host {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.name {
  font-weight: 600;
}
.quote {
  font-size: 13px;
  color: var(--body);
}
.ask {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.faces {
  display: flex;
}
.faces span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dfe5fd;
  color: var(--night);
  font-size: 10px;
  font-weight: 700;
}
.faces span + span {
  margin-left: -8px;
}
.pill-dark {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(21, 27, 45, 0.25);
}

/* Split-flap strip */
.board {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 22px 24px;
}
.board-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.board-lead {
  color: #8ea6ff;
}
.board-city {
  color: #8b96ab;
}
.board-tail {
  color: #6ee0d0;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 0;
}
#between {
  padding-top: 112px;
}
.section-head {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.glass {
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(21, 27, 45, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.card > p {
  font-size: 15px;
  line-height: 1.625;
  color: var(--body);
}
.card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--night);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pillar-name {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--night);
}
/* Brand book: teal for live, Night Blue for later. */
.status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.status-live {
  background: rgba(45, 179, 163, 0.15);
  color: var(--teal-deep);
}
.status-later {
  background: rgba(85, 119, 242, 0.12);
  color: var(--night);
}

/* Interface preview */
.preview {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 44px;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}
.preview::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(85, 119, 242, 0.35);
  filter: blur(70px);
}
.preview-copy {
  position: relative;
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.phones {
  position: relative;
  flex: 1 1 380px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.phones img {
  width: min(46%, 240px);
  height: auto;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.phones img + img {
  margin-top: 48px;
}
@media (max-width: 640px) {
  .preview {
    padding: 28px;
  }
}

/* Privacy */
.split {
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 48px;
}
.split .section-head {
  flex: 1 1 340px;
}
.grid-2 {
  flex: 1 1 520px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
}
.tile h3 {
  font-size: 17px;
}
.tile p {
  font-size: 14px;
  line-height: 1.625;
  color: var(--body);
}

/* Waitlist */
.join {
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 112px;
}
.join-copy {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.join-copy h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.form-card {
  flex: 1 1 520px;
  min-width: 0;
  padding: 28px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
label {
  font-size: 14px;
  font-weight: 600;
}
input[type='text'],
input[type='email'],
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(107, 118, 144, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input::placeholder {
  color: #8b96ab;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(85, 119, 242, 0.2);
}
.help {
  font-size: 13px;
  color: var(--inksoft);
}
.vote {
  margin: 0;
  padding: 0;
  border: 0;
}
.vote legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.vote-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vote-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(107, 118, 144, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.vote-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(85, 119, 242, 0.2);
}
.vote-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brand);
}
.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecec;
  color: #a12121;
  font-size: 14px;
}
.success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  outline: none;
}
.success[hidden] {
  display: none;
}
.success p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.success .eyebrow {
  font-size: 13px;
  color: var(--teal-deep);
}
.success-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(45, 179, 163, 0.12);
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid rgba(107, 118, 144, 0.2);
  padding: 28px 24px 96px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--inksoft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal {
  margin-top: 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* Mobile sticky CTA */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 15px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(85, 119, 242, 0.35);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.sticky-cta.away {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
  .footer {
    padding-bottom: 40px;
  }
}
