:root {
  --bg: #070B14;
  --ink: #EAF2FB;
  --mut: #A3B2C7;
  --line: rgba(255, 255, 255, .10);
  --card: rgba(255, 255, 255, .04);
  --mint: #2DD4A0;
  --sky: #38BDF8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font: 100%/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0) 55%, rgba(7, 11, 20, .9) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, .78) 0%, rgba(7, 11, 20, .45) 50%, rgba(7, 11, 20, .2) 100%),
    var(--bg) url("/hero-desktop.jpg") center / cover no-repeat;
}

@media (max-width: 760px) {
  .bg {
    background:
      linear-gradient(180deg, rgba(7, 11, 20, .5), rgba(7, 11, 20, .88)),
      var(--bg) url("/hero-phone.jpg") center top / cover no-repeat;
  }
}

.wrap { max-width: 68rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: .375rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, .62);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .875rem;
  padding-bottom: .875rem;
}
.top-cta { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 480px) { .top-cta .hide-xs { display: none; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  min-height: 2.75rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .75rem 1.375rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  color: #04120D;
  background: linear-gradient(100deg, var(--mint), var(--sky));
  box-shadow: 0 10px 30px -12px rgba(45, 212, 160, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform 100ms ease-out, filter 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}
.btn:hover { color: #04120D; filter: brightness(1.07); box-shadow: 0 14px 38px -12px rgba(56, 189, 248, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:active { transform: scale(.97); filter: brightness(.98); }
.btn .ico { flex: none; transition: transform 150ms ease-out; }
.btn:hover .ico { transform: translateX(3px); }
.btn-small { min-height: 2.75rem; padding: .5rem 1.05rem; font-size: .9375rem; box-shadow: 0 6px 18px -10px rgba(45, 212, 160, .7); }
.btn-lg { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: none;
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .38); box-shadow: none; filter: none; }
@media (max-width: 480px) { .hero .cta .btn-lg, .cta-band .cta .btn-lg { flex: 1 1 100%; } }

main { padding-bottom: 3rem; }

section { padding-top: 3rem; }

.hero { padding-top: clamp(2.5rem, 9vh, 6rem); max-width: 46rem; }

.eyebrow { color: #BFF3E2; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; }

h1 {
  margin-top: .75rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 750;
}

.lede { margin-top: 1.25rem; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink); max-width: 40rem; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 700;
}

h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 650; }

.about, .note { max-width: 44rem; }
.about p, .note p { margin-top: .875rem; color: var(--mut); font-size: 1.0625rem; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.75rem;
}
.trust li {
  font-size: .875rem;
  line-height: 1.35;
  color: #BFF3E2;
  padding: .4rem .8rem;
  border: 1px solid rgba(45, 212, 160, .35);
  background: rgba(45, 212, 160, .08);
  border-radius: 999px;
}

/* "Who it's for": one horizontal row on every screen size. Native scroll + snap: momentum, rubber-banding and
   interruption come from the browser, no script. The rail bleeds to the page edge so the next card peeks in. */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.rail-nav { display: flex; gap: .5rem; }
.rail-nav[hidden] { display: none; }
.rail-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2);
  transition: transform 100ms ease-out, background-color 150ms ease-out, opacity 150ms ease-out;
}
.rail-btn:hover { background: rgba(255, 255, 255, .12); }
.rail-btn:active { transform: scale(.94); }
.rail-btn:disabled { opacity: .35; cursor: default; transform: none; }
.rail-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.rail {
  margin: 1.25rem -1.5rem 0;
  padding: .25rem 1.5rem 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.rail:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 1rem; }
.cards {
  list-style: none;
  display: flex;
  gap: 1rem;
  width: max-content;
}
.cards li {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: min(22rem, 84vw);
  min-height: 15.5rem;
  scroll-snap-align: start;
  padding: 1.75rem 1.625rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.375rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  overflow: hidden;
  transition: border-color 150ms ease-out;
}
.cards li::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  opacity: .85;
}
.cards li:hover { border-color: rgba(45, 212, 160, .45); }
.cards h3 { font-size: 1.3125rem; letter-spacing: -.01em; }
.cards p { margin-top: .625rem; color: var(--mut); font-size: 1.0313rem; line-height: 1.55; }
.card-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.75rem;
  padding-top: 1.25rem;
  font-weight: 650; font-size: 1rem;
  color: #9FF0D6; text-decoration: none;
}
.card-cta:hover { color: #fff; }
.card-cta .ico { transition: transform 150ms ease-out; }
.card-cta:hover .ico { transform: translateX(3px); }

/* Closing call to action. */
.cta-band {
  margin-top: 3.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(45, 212, 160, .28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(45, 212, 160, .16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(56, 189, 248, .16), transparent 55%),
    rgba(255, 255, 255, .03);
}
.cta-band h2 { font-size: clamp(1.875rem, 5vw, 2.75rem); letter-spacing: -.025em; }
.cta-band > p { margin-top: .75rem; color: var(--mut); font-size: 1.0625rem; max-width: 36rem; }
.cta-band .cta { margin-top: 1.5rem; }
.quick { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.quick a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
  font-size: .9375rem; font-weight: 550; text-decoration: none; color: var(--ink);
  transition: transform 100ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.quick a:hover { background: rgba(45, 212, 160, .1); border-color: rgba(45, 212, 160, .5); }
.quick a:active { transform: scale(.97); }
.cta-band .mail { margin-top: 1.25rem; color: var(--mut); font-size: .9375rem; }
.cta-band address { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; }


address { margin-top: 1rem; font-style: normal; color: var(--mut); line-height: 1.7; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: .9375rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot a { color: var(--mut); display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot a:hover { color: var(--ink); }

/* "Get in touch" dialog (invite.js), ported from the old www page. */
html.ivlock, html.ivlock body { overflow: hidden; }
.ivm[hidden] { display: none; }
.ivm {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 6, 12, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.ivm-card {
  position: relative; width: min(35rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto; overscroll-behavior: contain;
  background: #0C1322; border: 1px solid rgba(255, 255, 255, .1); border-radius: 1.375rem;
  padding: 1.75rem 1.625rem 1.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: ivIn .28s ease;
}
@supports (height: 1dvh) { .ivm-card { max-height: calc(100dvh - 2rem); } }
@keyframes ivIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ivm-x {
  position: absolute; right: .625rem; top: .5rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .06); color: #C5D2E4; cursor: pointer; display: grid; place-items: center;
}
.ivm-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ivm-dots { display: flex; gap: 6px; margin: 0 3.25rem 1.125rem 0; }
.ivm-dots i { height: 4px; flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ivm-dots i.on { background: linear-gradient(135deg, var(--mint), var(--sky)); }
.ivm h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .375rem; color: var(--ink); outline: none; }
.ivm .hint { color: var(--mut); font-size: .875rem; margin-bottom: 1.125rem; }
.ivm .opts { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.ivm .opts.one { grid-template-columns: 1fr; }
@media (max-width: 480px) { .ivm .opts { grid-template-columns: 1fr; } .ivm-card { padding: 1.5rem 1.125rem 1.25rem; } }
.ivm .opt {
  text-align: left; min-height: 3.25rem; padding: .8125rem .875rem; border-radius: .875rem;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--ink);
  font-family: inherit; font-weight: 500; font-size: .9375rem; line-height: 1.3; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform 100ms ease-out;
}
.ivm .opt:active { transform: scale(.98); }
.ivm .opt small { display: block; color: var(--mut); font-size: .78rem; font-weight: 400; margin-top: 2px; }
.ivm .opt:hover { border-color: rgba(45, 212, 160, .6); background: rgba(45, 212, 160, .05); }
.ivm .opt.on { border-color: rgba(45, 212, 160, .8); background: rgba(45, 212, 160, .1); }
.ivm button:focus-visible, .ivm a:focus-visible, .ivm input:focus-visible, .ivm select:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.ivm .consent input:focus-visible { outline-offset: 3px; }
.ivm label.f { display: block; margin: .75rem 0 .375rem; color: #C5D2E4; font-size: .85rem; }
.ivm input[type=text], .ivm input[type=email], .ivm .sel {
  width: 100%; min-height: 3rem; padding: .75rem .875rem; border-radius: .75rem;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--ink);
  font-family: inherit; font-size: 1rem;
}
.ivm input[aria-invalid=true] { border-color: #F87171; }
.ivm .sel {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8FA0B8 50%), linear-gradient(135deg, #8FA0B8 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.375rem;
}
.ivm .sel option { color: #0C1322; }
.ivm [hidden] { display: none; }
.ivm .consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem; padding: 4px 0; min-height: 2.75rem; color: #C5D2E4; font-size: .8125rem; line-height: 1.45; cursor: pointer; }
.ivm .consent input { width: 22px; height: 22px; margin-top: 0; accent-color: var(--mint); flex: none; }
.ivm .fine { margin-top: .75rem; color: var(--mut); font-size: .75rem; line-height: 1.5; }
.ivm .fine a { color: #C5D2E4; }
.ivm .err { margin-top: .75rem; color: #FCA5A5; font-size: .85rem; line-height: 1.5; }
.ivm .err:empty { display: none; }
.ivm .err a { color: #FCA5A5; }
.ivm .row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.375rem; gap: .625rem; }
.ivm .back { background: none; border: 0; color: var(--mut); font-family: inherit; font-size: .9375rem; cursor: pointer; min-height: 2.75rem; min-width: 2.75rem; padding: 0 .5rem; border-radius: .625rem; }
.ivm .back:hover { color: var(--ink); }
.ivm .go {
  min-height: 3rem; padding: 0 1.375rem; border: 0; border-radius: .875rem;
  font-family: inherit; font-weight: 650; font-size: .97rem;
  color: #04120D; background: linear-gradient(135deg, var(--mint), var(--sky)); cursor: pointer;
  transition: transform 100ms ease-out;
}
.ivm .go:active { transform: scale(.97); }
.ivm .go:disabled { opacity: .55; cursor: progress; }
.ivm .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ivm .done { text-align: center; padding: .75rem 4px 4px; }
.ivm .ok { width: 3.5rem; height: 3.5rem; margin: 0 auto .875rem; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 212, 160, .14); color: var(--mint); }
.ivm .done p { color: #C5D2E4; margin-top: .5rem; }
.ivm-alt { margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--line); color: var(--mut); font-size: .8125rem; text-align: center; }
.ivm-alt a { color: #C5D2E4; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .ico, .card-cta .ico, .rail-btn, .quick a, .ivm .opt, .ivm .go { transition: none; }
  .btn:active, .rail-btn:active, .quick a:active, .ivm .opt:active, .ivm .go:active { transform: none; }
  .btn:hover .ico, .card-cta:hover .ico { transform: none; }
  .ivm-card { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ivm { background: rgba(3, 6, 12, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --mut: #D7E0EC; --line: rgba(255, 255, 255, .35); }
  .bg { background: var(--bg); }
}

/* Text pages (privacy.html). */
.doc { max-width: 46rem; padding-top: 1.5rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.doc h2 { margin-top: 2rem; font-size: 1.25rem; }
.doc p { margin-top: .875rem; color: var(--mut); }
.doc a { color: var(--ink); }
.doc .updated { margin-top: .5rem; font-size: .9375rem; }

/* Legal pages rendered from the database (src/worker.js). */
.legal h2 { margin-top: 2.25rem; font-size: 1.375rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.125rem; color: var(--ink); }
.legal h4, .legal h5, .legal h6 { margin-top: 1.25rem; font-size: 1rem; color: var(--ink); }
.legal ul { margin-top: .75rem; padding-left: 1.25rem; color: var(--mut); }
.legal li { margin-top: .375rem; }
.legal blockquote { margin-top: 1rem; padding: .75rem 1rem; border-left: 3px solid var(--mint); background: rgba(45, 212, 160, .06); border-radius: .5rem; }
.legal blockquote p { margin-top: 0; color: var(--ink); }
.legal hr { margin: 2rem 0 0; border: 0; border-top: 1px solid var(--line); }
.legal strong { color: var(--ink); }
.about .sub { margin-top: 1.75rem; font-size: 1.125rem; }
