/* The site's own pages (landing, mobile app, support, privacy). Tokens and base controls come from
   theme.css, shared with the apps; the header and footer come from partials/. */
:root {
  --wrap: 1160px;
  --gutter: 20px;
  --glow: rgb(178 221 163 / 14%);
  --hairline: rgb(244 245 241 / 8%);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
}
.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: rgb(5 5 5 / 78%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 8px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-nav a,
.header-menu nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-compact);
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}
.header-nav a:hover,
.header-menu nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.header-nav a[aria-current='page'],
.header-menu nav a[aria-current='page'] {
  color: var(--accent);
}
.header-nav .icon {
  width: 18px;
  height: 18px;
}
.header-cta.button-link {
  min-height: var(--touch-compact);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}
.header-menu {
  display: none;
  position: relative;
}
.header-menu summary {
  justify-content: center;
  width: var(--touch-compact);
  min-height: var(--touch-compact);
  border-radius: 999px;
  background: var(--surface-raised);
}
.header-menu summary::before {
  display: none;
}
.header-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(0 0 0 / 60%);
}
.header-menu nav a {
  min-height: var(--touch);
  padding: 0 14px;
  color: var(--text);
}
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .header-menu {
    display: block;
  }
  .header-inner {
    gap: 10px;
  }
}
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
  .header-cta {
    display: none;
  }
  .header-menu {
    margin-left: auto;
  }
  .hero .actions .button-link {
    flex: 1 1 100%;
  }
  .card,
  .callout {
    padding: 20px;
  }
}
.brand,
.header-cta {
  white-space: nowrap;
}

/* Shared type and building blocks */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.display {
  margin: 0 0 20px;
  font-size: clamp(40px, 7.4vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display em,
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  margin: 0 0 32px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section + .section {
  border-top: 1px solid var(--hairline);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-inline: auto;
}
.section-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head .lead {
  margin-bottom: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.actions .button-link {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
}
.button-link.secondary {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.button-link.accent {
  background: var(--accent);
  color: var(--on-accent);
}
.button-link .icon {
  width: 18px;
  height: 18px;
}
.spaced-top {
  margin-top: 24px;
}
.actions.spaced {
  margin: 32px 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--touch-compact);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}
.text-link:hover .icon {
  transform: translateX(3px);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pills li {
  padding: 7px 14px;
  border: 1px solid rgb(178 221 163 / 28%);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.card {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-muted);
  line-height: 1.6;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgb(178 221 163 / 10%);
  color: var(--accent);
}
.card-icon .icon {
  width: 24px;
  height: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.split.media-first {
  grid-template-columns: 1.35fr 1fr;
}
@media (max-width: 860px) {
  .split,
  .split.media-first {
    grid-template-columns: 1fr;
  }
}
.checks {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.checks li strong {
  color: var(--text);
}
.checks .icon {
  margin-top: 2px;
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  z-index: -1;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center, var(--glow), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgb(244 245 241 / 7%) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.hero-copy .pills {
  margin-top: 36px;
}
.hero-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.5;
}
.hero-note strong {
  color: var(--text-muted);
  font-weight: 600;
}
.hero-art {
  margin: 0 -40px 0 0;
}
.hero-art img {
  display: block;
  width: 100%;
  mask-image: radial-gradient(ellipse 62% 60% at 55% 52%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 55% 52%, #000 45%, transparent 100%);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}
.status-chip:hover {
  color: var(--text);
}
.status-chip .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: var(--on-bubble-out);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Store buttons. Until launch they say "Coming soon" and link nowhere; at launch, replace each with
   the store's official badge and listing link. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.store .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.store span {
  display: grid;
  line-height: 1.2;
}
.store small {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store b {
  font-size: 17px;
  font-weight: 700;
}
.store.is-soon small {
  color: var(--warn);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Phone gallery */
.phones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.phones figure {
  margin: 0;
  text-align: center;
}
.phones img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 55%));
}
.phones figcaption {
  margin-top: 18px;
}
.phones figcaption b {
  display: block;
  color: var(--accent);
  font-size: 17px;
}
.phones figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .phones {
    display: flex;
    gap: 20px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar {
    display: none;
  }
  .phones li {
    flex: 0 0 min(62vw, 240px);
    scroll-snap-align: center;
  }
}

/* How it works */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
  list-style: none;
}
.flow li {
  display: contents;
}
.flow-node {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 132px;
  text-align: center;
}
.flow-node .card-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgb(178 221 163 / 22%);
}
.flow-node .card-icon .icon {
  width: 28px;
  height: 28px;
}
.flow-node b {
  font-size: 15px;
}
.flow-node small {
  color: var(--text-faint);
}
.flow-link {
  flex: 1;
  max-width: 120px;
  min-width: 32px;
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-bottom: 40px;
  color: var(--text-faint);
  font-size: 12px;
  text-align: center;
}
.flow-link::before {
  content: '';
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-mid), var(--border));
}
.flow-link.radio::before {
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
}
@media (max-width: 760px) {
  .flow {
    flex-direction: column;
  }
  .flow-node {
    width: auto;
  }
  .flow-link {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: none;
    min-height: 56px;
    margin: 8px 0;
  }
  .flow-link::before {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, var(--border), var(--accent-mid), var(--border));
  }
  .flow-link.radio::before {
    background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px);
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps .card {
  height: 100%;
}
.steps .card::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

/* Download and web app blocks */
.app-stack {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.app-stack::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  z-index: -1;
  background: radial-gradient(circle, var(--glow), transparent 65%);
}
.app-stack img {
  width: min(46%, 250px);
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 60%));
}
.app-stack img + img {
  margin-left: -8%;
  margin-top: 64px;
}
.browser-shot {
  position: relative;
  isolation: isolate;
}
.browser-shot::before {
  content: '';
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  background: radial-gradient(ellipse, var(--glow), transparent 68%);
}
.browser-shot img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgb(0 0 0 / 70%));
}
.board-card .meta {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.board-card .meta li {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12px;
}
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgb(235 187 95 / 30%);
  border-radius: var(--radius-card);
  background: rgb(235 187 95 / 6%);
}
.callout > .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--warn);
}
.callout.good {
  border-color: rgb(178 221 163 / 28%);
  background: rgb(178 221 163 / 6%);
}
.callout.good > .icon {
  color: var(--accent);
}
.callout h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.callout p {
  color: var(--text-muted);
  line-height: 1.6;
}
.callout p + p {
  margin-top: 8px;
}
.callout a {
  font-weight: 600;
}
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid rgb(178 221 163 / 18%);
  border-radius: 32px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(39 89 26 / 55%), transparent 60%), var(--surface);
  text-align: center;
}
.cta-band .section-title {
  margin-inline: auto;
  max-width: 720px;
}
.cta-band .lead {
  margin-inline: auto;
}
.cta-band .actions {
  justify-content: center;
}
.cta-band img {
  margin-bottom: 20px;
}

/* Document pages (support, privacy) */
.doc-hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--hairline);
  background: radial-gradient(ellipse at 80% -40%, var(--glow), transparent 60%);
}
.doc-hero .display {
  font-size: clamp(36px, 6vw, 56px);
}
.doc-hero .lead {
  margin-bottom: 0;
}
.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(64px, 8vw, 96px);
}
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 2px;
}
.toc b {
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc a {
  padding: 7px 12px;
  border-left: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}
.toc a:hover {
  border-color: var(--accent);
  color: var(--text);
}
@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
}
.prose h2 {
  margin: 48px 0 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.prose > :first-child,
.prose section:first-child > h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}
.prose p,
.prose li {
  color: var(--text-muted);
  line-height: 1.7;
}
.prose p {
  margin: 0 0 14px;
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.prose .card,
.prose .callout {
  margin: 0 0 16px;
}
.prose .card h2,
.prose .callout h2 {
  margin-top: 0;
}
.prose .card > :last-child {
  margin-bottom: 0;
}
.prose details {
  border-bottom: 1px solid var(--hairline);
}
.prose details summary {
  min-height: 60px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}
.prose details > :not(summary) {
  padding-left: 17px;
}
.prose details[open] > :last-child {
  margin-bottom: 20px;
}
.prose section {
  scroll-margin-top: 96px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: #0a0b09;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer-about p {
  max-width: 300px;
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 2px;
}
.site-footer h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
}
.site-footer nav a:hover,
.site-footer nav a[aria-current='page'] {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 13px;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}
