:root {
  --bg: #0b0e14;
  --bg-elevated: #121622;
  --bg-card: #161b29;
  --border: #242b3d;
  --text: #e8eaf0;
  --text-dim: #9aa3b8;
  --text-faint: #5c6478;
  --accent: #e06952;
  --accent-dim: #e0695233;
  --accent-text: #fdf1ee;
  --good: #34b483;
  --radius: 12px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-color: 10, 6, 5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .brand {
  font-family: var(--font-display);
}

h1, h2, .lede, .section-head p {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--accent);
  color: #1a0d09;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  position: relative;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

nav.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

nav.main-nav a:hover::after {
  right: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #1a0d09;
}

.btn-primary:hover {
  background: #ea7e67;
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-faint);
  text-decoration: none;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 38%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 460px;
  height: 420px;
  background: radial-gradient(ellipse at center, #34b48322, transparent 72%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--good);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* Platform strip */

.platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
}

.platforms .label {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 11px;
  margin-right: 6px;
}

.platforms .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.platforms .chip:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

/* Sections */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16.5px;
  margin: 0;
}

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "a a b c"
      "a a d e"
      "f f f f";
  }

  .grid .card:nth-child(1) {
    grid-area: a;
    padding: 32px;
  }

  .grid .card:nth-child(1) .icon {
    width: 46px;
    height: 46px;
  }

  .grid .card:nth-child(1) .icon svg {
    width: 22px;
    height: 22px;
  }

  .grid .card:nth-child(1) h3 {
    font-size: 20px;
  }

  .grid .card:nth-child(1) p {
    font-size: 15px;
  }

  .grid .card:nth-child(2) { grid-area: b; }
  .grid .card:nth-child(3) { grid-area: c; }
  .grid .card:nth-child(4) { grid-area: d; }
  .grid .card:nth-child(5) { grid-area: e; }

  .grid .card:nth-child(6) {
    grid-area: f;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .grid .card:nth-child(6) .icon {
    margin-bottom: 0;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--text-faint);
  box-shadow: 0 18px 40px -22px rgba(var(--shadow-color), 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex: none;
}

.card h3 {
  position: relative;
  font-size: 16.5px;
  margin: 0 0 8px;
  font-weight: 600;
}

.card p {
  position: relative;
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-left: 46px;
}

@media (min-width: 761px) {
  .step:nth-child(2) {
    margin-top: 32px;
  }
}

.step .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.step p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0;
}

/* Permissions / data use table — important for app-review reviewers */

.perm-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.perm-table th, .perm-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.perm-table th {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11.5px;
  background: var(--bg-elevated);
}

.perm-table tr:last-child td {
  border-bottom: none;
}

.perm-table td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  white-space: nowrap;
}

.perm-table td.dim {
  color: var(--text-dim);
}

/* CTA */

.cta {
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(var(--shadow-color), 0.6);
}

.cta-box h2 {
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-dim);
  margin: 0 0 28px;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-faint);
  font-size: 14px;
}

footer.site .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site nav a {
  color: var(--text-faint);
}

footer.site nav a:hover {
  color: var(--text-dim);
}

/* Legal pages */

.legal {
  padding: 56px 0 96px;
}

.legal .legal-head {
  margin-bottom: 40px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: 8px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p, .legal li {
  color: var(--text-dim);
  font-size: 15.5px;
}

.legal ul {
  padding-left: 22px;
}

.legal strong {
  color: var(--text);
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none;
  }
}

/* Platform status rows */

.platforms-next {
  margin-top: 10px;
}

.chip-live {
  border-color: var(--good);
  color: var(--good);
}

.platforms-next .chip {
  opacity: 0.7;
}

/* Accessibility widget */

.a11y-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #1a0d09;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--shadow-color), 0.5);
  z-index: 1000;
  transition: background 0.2s ease, transform 0.15s ease;
}

.a11y-toggle:hover {
  background: #ea7e67;
}

.a11y-toggle:active {
  transform: scale(0.95);
}

.a11y-toggle svg {
  width: 24px;
  height: 24px;
}

.a11y-panel {
  position: fixed;
  right: 20px;
  bottom: 78px;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(var(--shadow-color), 0.6);
  padding: 18px;
  z-index: 1000;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-size: 15px;
  margin: 0 0 14px;
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.a11y-row:last-of-type {
  margin-bottom: 0;
}

.a11y-row .label {
  font-size: 13.5px;
  color: var(--text-dim);
}

.a11y-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.a11y-stepper button:hover {
  border-color: var(--text-faint);
}

.a11y-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  flex: none;
  padding: 0;
}

.a11y-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.15s, background 0.15s;
}

.a11y-switch[aria-checked="true"] {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.a11y-switch[aria-checked="true"]::after {
  transform: translateX(16px);
  background: var(--accent);
}

.a11y-reset {
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
}

.a11y-reset:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

/* High contrast mode */

html.a11y-contrast {
  --bg: #000000;
  --bg-elevated: #000000;
  --bg-card: #0a0a0a;
  --border: #ffffff;
  --text: #ffffff;
  --text-dim: #f2f2f2;
  --text-faint: #cfcfcf;
  --accent: #ffcc00;
  --accent-dim: #ffcc0033;
  --accent-text: #000000;
}

html.a11y-contrast .btn-primary {
  color: #000000;
}

/* Reduced motion */

html.a11y-reduce-motion,
html.a11y-reduce-motion * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-reduce-motion .hero::before,
html.a11y-reduce-motion .hero::after,
html.a11y-reduce-motion body::after {
  display: none;
}

/* Underline links */

html.a11y-underline-links a {
  text-decoration: underline;
}

/* Font scale */
/* The site's type sizes are set in px, so a root font-size change has nothing
   to cascade into. Zoom the page content itself instead, leaving the
   accessibility control out so it doesn't shift around while open. */

html.a11y-font-1 body > :not(.a11y-toggle):not(.a11y-panel) {
  zoom: 1.125;
}

html.a11y-font-2 body > :not(.a11y-toggle):not(.a11y-panel) {
  zoom: 1.25;
}

html.a11y-font-3 body > :not(.a11y-toggle):not(.a11y-panel) {
  zoom: 1.375;
}
