/* ---------- tokens ---------- */
:root {
  --accent: #E11D2A;
  --accent-soft: rgba(225, 29, 42, 0.10);
  --accent-edge: rgba(225, 29, 42, 0.35);
  --max: 1180px;
  --max-narrow: 920px;
  --radius: 8px;
  --radius-lg: 14px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F6;
  --fg: #0A0A0A;
  --muted: #6B7280;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);
  --card: #FFFFFF;
  --code-bg: #F2F2F2;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --fg: #FAFAFA;
  --muted: #9CA3AF;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --card: #141414;
  --code-bg: #181818;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
code, pre { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  background: var(--code-bg);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow-x: auto;
  margin: 0;
  line-height: 1.55;
}
pre code { background: transparent; padding: 0; }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--gutter);
  padding: 0.85rem var(--gutter);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--accent);
}
.brand:hover { color: var(--accent); }
.brand-word { font-size: 1.15rem; font-weight: 500; }
.brand-mark { display: inline-flex; color: var(--accent); }
.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.94rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--fg); }
.site-header__cta {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle__icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--fg) 50%, transparent 50%);
  border: 1px solid var(--fg);
}
@media (max-width: 820px) {
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .site-header__cta .btn__sub { display: none; }
  .site-header__cta { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
}

/* ---------- layout ---------- */
main { display: block; }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}
.section--alt {
  background: var(--bg-alt);
  max-width: none;
}
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { max-width: 720px; margin: 0 0 2.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__lede { margin-left: auto; margin-right: auto; }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.8rem;
  color: var(--fg);
}
.section__lede { color: var(--muted); font-size: 1rem; margin: 0; max-width: 60ch; }
.section__head--invert h2 { color: #fff; }
.section__head--invert .section__lede { color: rgba(255,255,255,0.7); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.hero--centered .hero__inner { text-align: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  color: var(--fg);
}
.hero__lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}
.hero__pre {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 620px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--pill { border-radius: 999px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: #c4101d; color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ---------- generic cards (legacy) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent-edge); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- "three things" narrative cards ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.case {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.case:hover {
  border-color: var(--accent-edge);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.12);
}
.case__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}
.case h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.case p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.case__lede { color: var(--fg) !important; font-size: 0.98rem !important; }
@media (max-width: 880px) {
  .cases { grid-template-columns: 1fr; }
}

/* ---------- "track everything" feature row ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  max-width: 980px;
  margin: 0 auto;
}
.feature { text-align: left; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--fg);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- tiers (How it works) ---------- */
.tiers {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.tier {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.tier__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.tier__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0;
  color: var(--fg);
}
.tier__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.tier__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.tier__arrow {
  align-self: center;
  color: var(--line-strong);
  font-size: 1.4rem;
  font-family: var(--font-mono);
  user-select: none;
}
@media (max-width: 880px) {
  .tiers {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .tier__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ---------- dark band (Your data stays yours) ---------- */
.dark-band {
  background: #0A0A0A;
  color: #FFFFFF;
}
.dark-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.trust h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.trust p {
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .trust-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- hosts (Where your data lives) ---------- */
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
}
.host {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  transition: border-color .15s, transform .15s;
}
.host:hover { border-color: var(--accent-edge); transform: translateY(-2px); }
.host__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.host h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  margin: 0 0 0.45rem;
  color: var(--fg);
}
.host p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .hosts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .hosts-grid { grid-template-columns: 1fr; }
}

/* ---------- access-grid (You control who reads it) ---------- */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.access__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.access h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: var(--fg);
}
.access p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .access-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ---------- download ---------- */
.download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.8rem;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.08);
}
@media (max-width: 820px) {
  .download { grid-template-columns: 1fr; padding: 1.4rem; }
}
.download__primary { display: flex; flex-direction: column; gap: 1rem; }
.download__primary .btn { align-self: flex-start; }
.download__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1.2rem;
  margin: 0;
}
.download__meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.download__meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.download__meta dd { margin: 0; font-size: 0.88rem; }
.download__how h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}
.download__how ol {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.download__how ol li { margin: 0.25rem 0; font-size: 0.92rem; }

/* ---------- status list ---------- */
.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem 1rem;
  max-width: 1080px;
  margin: 0 auto;
}
.status-list li {
  border-left: 2px solid var(--accent);
  padding: 0.55rem 0 0.55rem 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.status-list strong { color: var(--fg); display: block; margin-bottom: 0.15rem; }
.status-list__warn {
  background: var(--accent-soft);
  padding-right: 0.85rem;
}

/* ---------- beta follow-up link ---------- */
.beta__followup {
  margin: 1.4rem auto 0;
  text-align: center;
  max-width: 980px;
}
.beta__followup .link-arrow { margin-left: 0.4rem; }
.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.link-arrow:hover { color: var(--accent); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
}
.site-footer__attr { margin: 0; }

/* ---------- screenshots — fan of phones, 3D-rotated ---------- */
.screens {
  /* Soft red-tinted backdrop so the white phone frames pop against
     the section instead of disappearing into the white surface. */
  background:
    radial-gradient(900px 500px at 50% 80%, var(--accent-soft), transparent 70%),
    var(--bg-alt);
  overflow: hidden;
}
.screens__fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin: 3rem auto 2rem;
  max-width: var(--max);
  perspective: 1600px;
}
.screens__row {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 2rem auto 0;
  max-width: var(--max);
  perspective: 1400px;
  flex-wrap: wrap;
}
.screens__phone {
  margin: 0;
  background: #0A0A0A;
  border-radius: 28px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(10, 10, 10, 0.35),
    0 18px 36px -12px rgba(225, 29, 42, 0.18),
    0 0 0 1px rgba(10, 10, 10, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screens__phone img {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 20px;
  background: var(--bg);
}
.screens__phone figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 0.6rem;
  padding: 0 0.4rem 0.2rem;
  opacity: 0.7;
}
/* Centre phone is the headliner — bigger, no rotation. */
.screens__phone--center {
  z-index: 3;
  transform: translateY(-1rem);
}
.screens__phone--center img { width: 260px; }
/* Left and right phones tilt inward, slightly behind. */
.screens__phone--left {
  z-index: 2;
  transform: rotateY(20deg) rotateZ(-3deg) translateX(1.5rem);
}
.screens__phone--right {
  z-index: 2;
  transform: rotateY(-20deg) rotateZ(3deg) translateX(-1.5rem);
}
/* Mini row sits flat — no rotation, just for variety. */
.screens__phone--mini img { width: 200px; }
.screens__phone:hover {
  transform: translateY(-4px) rotateY(0deg) rotateZ(0deg);
  box-shadow:
    0 40px 80px -20px rgba(10, 10, 10, 0.4),
    0 24px 48px -12px rgba(225, 29, 42, 0.24),
    0 0 0 1px rgba(10, 10, 10, 0.08);
}
@media (max-width: 720px) {
  .screens__fan {
    flex-wrap: wrap;
    gap: 1rem;
  }
  /* On phones, drop the rotation so all three sit upright; user already
     has a phone in their hand. */
  .screens__phone--left,
  .screens__phone--right,
  .screens__phone--center {
    transform: none;
  }
  .screens__phone img { width: 180px; }
  .screens__phone--center img { width: 200px; }
  .screens__phone--mini img { width: 160px; }
}

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

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
