/* Nocturnal marketing site. Same night palette as the app. */
:root {
  --bg: #07070b;
  --surface: #0e0e15;
  --raised: #15151f;
  --ink: #f2f2f7;
  --muted: rgba(242, 242, 247, 0.66);
  --faint: rgba(242, 242, 247, 0.45);
  --line: rgba(255, 255, 255, 0.09);
  --acc: #6c63ff;
  --acc-2: #8a63ff;
  --lilac: #b3adff;
  --hot: #ff6ec7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--lilac);
}
a:hover {
  color: #d6d3ff;
}
:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
}
h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--raised);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(760px, 100% - 32px);
}
section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--acc);
  color: #fff;
}
.btn--primary:hover {
  background: #7d75ff;
  color: #fff;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 7, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 9px;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav nav a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav nav {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.28), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 7.5vw, 86px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.lede {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  max-width: 540px;
}
.hero__ctas {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--faint);
}
.hero__video {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 11, 0.7);
  color: var(--ink);
  font: 600 14px var(--font);
  cursor: pointer;
}
@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .hero__video {
    aspect-ratio: 9 / 16;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Cards */
.cards {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}
.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 880px) {
  .cards--3,
  .cards--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card {
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card p {
  margin-top: 10px;
  color: var(--muted);
}
.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.card li {
  position: relative;
  padding-left: 22px;
}
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lilac);
}

/* How it works */
.step {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.step--flip .step__copy {
  order: 2;
}
.step__copy p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 480px;
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: rgba(108, 99, 255, 0.18);
  border: 1px solid rgba(108, 99, 255, 0.45);
  color: var(--lilac);
  font-weight: 700;
}
.step__media--phone img {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 34px;
  border: 10px solid #1a1a22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.step__media--desktop img,
.split img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
@media (max-width: 880px) {
  .step,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .step--flip .step__copy,
  .split--flip .split__copy {
    order: 0;
  }
}

/* Features splits */
.split {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--flip .split__copy {
  order: 2;
}
.split__copy p {
  margin-top: 12px;
  color: var(--muted);
}

.trust {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.trust .card {
  background: var(--bg);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-of-type {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--lilac);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

/* CTA + footer */
.cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta__inner img {
  border-radius: 16px;
}
.cta p {
  color: var(--muted);
  max-width: 460px;
}
.cta .btn {
  margin-top: 8px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 15px;
  color: var(--faint);
}
.footer__inner {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Phone: the feature splits stack (must come after the .split base rule). */
@media (max-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip .split__copy {
    order: 0;
  }
}

/* Privacy policy page */
.legal {
  padding: clamp(40px, 6vw, 72px) 0;
  color: var(--muted);
  font-size: 16.5px;
}
.legal h1 {
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.legal__updated {
  margin-top: 8px;
  color: var(--faint);
  font-size: 15px;
}
.legal section {
  margin-top: 36px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.legal p {
  margin-top: 10px;
}
.legal ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.legal li + li {
  margin-top: 6px;
}
.legal b {
  color: var(--ink);
  font-weight: 600;
}
.legal table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 0;
  border-top: 1px solid var(--line);
}
.legal th {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal td:first-child {
  width: 52%;
  color: var(--ink);
}
.legal__note {
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 15px;
}
@media (max-width: 560px) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
    width: 100% !important;
  }
  .legal thead {
    display: none;
  }
  .legal tr {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .legal td {
    border: 0;
    padding: 2px 0;
  }
}
