:root {
  --bg: #0f1419;
  --surface: #1a2228;
  --surface-muted: #232d35;
  --border: #2e3a44;
  --text: #e8eaec;
  --text-muted: #8a9aa8;
  --text-subtle: #5a6a78;
  --accent-red: #b8342b;
  --accent-blue: #3a6f8f;
  --accent-amber: #c7922b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Monaco", monospace;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Nav ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-brand .reticle {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.nav-brand .reticle svg { width: 22px; height: 22px; display: block; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent-red); }

/* ── Layout ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.container.wide { max-width: 960px; }

/* ── Hero (index only) ── */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.hero-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.badge-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Get the App CTA ── */
.cta-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 1.75rem auto 1rem;
  width: fit-content;
  max-width: 100%;
}

.cta-cell.cta-cell-left { margin-left: 0; }

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-primary:hover { background: #a02c24; color: #fff; }

.btn-secondary {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { background: var(--surface); border-color: var(--accent-blue); color: var(--text); }

.beta-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  max-width: 480px;
  margin: 0 auto;
}

.beta-note strong { color: var(--text-muted); }

/* ── Screenshots ── */
.screenshot-row {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.screenshot-item {
  width: 260px;
  position: relative;
}

.screenshot-item img {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: block;
}

.screenshot-item:first-child img {
  border-radius: 14px 0 0 14px;
}

.screenshot-item:last-child img {
  border-radius: 0 14px 14px 0;
}

.screenshot-item figcaption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.1rem 0;
}

.ss-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--accent-amber);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.screenshot-item h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.55rem 0 0.3rem;
  line-height: 1.25;
}

.screenshot-item h3 .accent {
  color: var(--accent-amber);
}

.screenshot-item figcaption p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Link cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  display: block;
}

.card:hover {
  border-color: var(--accent-blue);
  background: var(--surface-muted);
  text-decoration: none;
}

.card-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Policy pages ── */
.policy-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.policy-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-header .breadcrumb a { color: var(--text-subtle); }
.policy-header .breadcrumb a:hover { color: var(--text-muted); }

.policy-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.policy-header .effective {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.policy-header .effective span {
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

/* ── Doc body ── */
.doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.doc h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.doc p { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 0.9375rem; }

.doc ul, .doc ol {
  margin: 0.5rem 0 0.9rem 1.5rem;
}

.doc li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.doc strong { color: var(--text); font-weight: 600; }

.doc .highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-red);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.doc .highlight-box p { margin: 0; }

/* ── Contact / footer strip ── */
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-strip p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-strip a {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 4rem;
}

footer a { color: var(--text-subtle); margin: 0 0.5rem; }
footer a:hover { color: var(--text-muted); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .container { padding: 2rem 1.25rem 4rem; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .contact-strip { flex-direction: column; align-items: flex-start; }

  .screenshot-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.875rem;
    margin: 0 -1.25rem 1rem;
    padding: 0 1.25rem 0.5rem;
    scrollbar-width: none;
  }

  .screenshot-row::-webkit-scrollbar { display: none; }

  .screenshot-item,
  .screenshot-item:first-child,
  .screenshot-item:last-child {
    width: 68vw;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .screenshot-item img,
  .screenshot-item:first-child img,
  .screenshot-item:last-child img {
    border-radius: 14px;
  }
}
