/* BOSI website (feature 029), in the app's dark Signal theme (feature 032).
   Palette: mobile/constants/theme.ts. Logo: mobile/assets/brand/wordmark.json. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); }

:root {
  --bg: #0B0910;
  --bg-raised: #14101B;
  --surface: #1B1623;
  --line: #2E2638;
  --text: #F4EEF8;
  --text-soft: #B3ADB8;
  --text-muted: #8E8696;
  --lavender: #B49CFF;
  --coral: #FF8A73;
  --gold: #F2B85E;
  --gold-text: #F6D7A0;
  --mint: #7FD9A8;

  --heading: var(--text);
  --accent: var(--lavender);      /* links, eyebrows, buttons, focus: 7.7:1 or more */
  --accent-text: var(--bg);       /* text on lavender: 8.6:1 */
  --glass: rgb(27 22 35 / 0.72);  /* --surface, translucent */
  --shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(60vw 60vw at 0% 0%, rgb(255 138 115 / 0.12), transparent 70%),
    radial-gradient(60vw 60vw at 100% 0%, rgb(180 156 255 / 0.12), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 600; color: var(--heading); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Surfaces: solid by default, glass where the browser supports it */
.site-header, .card, .step, .points li, .download-card, .moved, .callout, .android-soon {
  background: var(--surface);
  border: 1px solid var(--line);
}
.site-header { background: var(--bg); border-width: 0 0 1px; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card, .step, .points li, .download-card, .moved, .callout, .android-soon {
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .site-header {
    background: rgb(11 9 16 / 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .card, .step, .points li, .download-card, .moved, .callout, .android-soon {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 28px; width: auto; }
.store-cta--compact { font-size: 0.9375rem; padding: 9px 16px; }

/* Buttons and store CTA */
.btn, .store-cta--compact, .store-cta--text {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-text);
  border-radius: 999px; padding: 14px 24px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  box-shadow: 0 8px 24px rgb(180 156 255 / 0.25);
}
.btn:hover, .store-cta--compact:hover, .store-cta--text:hover { filter: brightness(1.08); }
.store-cta--text { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 26px 11px; min-height: 52px; }
.store-cta--text small { font-size: 0.75rem; font-weight: 500; opacity: 0.92; }
.store-cta--text span { font-weight: 600; font-size: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.android-note { font-size: 0.875rem; color: var(--text-soft); margin: 10px 0 0; }
.android-soon { display: inline-block; color: var(--text); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.9375rem; }
.qr { display: none; margin: 0; text-align: center; }
.qr img { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 8px; }
.qr figcaption { font-size: 0.8125rem; color: var(--text-soft); margin-top: 6px; max-width: 128px; }
@media (min-width: 900px) { .qr { display: block; } }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: rgb(20 16 27 / 0.7); border-block: 1px solid var(--line); }
.eyebrow { font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.lead { font-size: 1.1875rem; color: var(--text-soft); max-width: 40em; }
.section-head { max-width: 680px; margin-bottom: 36px; }

/* Hero: the app's silk wisps behind the phone, level with the orb in the Home screenshot (as in the app) */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 span { color: var(--coral); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; left: 50%; top: 31%; width: 170%; aspect-ratio: 740 / 330;
  transform: translate(-50%, -50%); background: url("/images/signal-wisps.png") center / contain no-repeat;
  pointer-events: none;
}
.hero-visual .device { position: relative; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Moved banner */
.moved { border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 20px; margin: 0 0 24px; box-shadow: var(--shadow); }
.moved p { margin: 0 0 10px; font-weight: 600; color: var(--heading); }
.moved[hidden] { display: none; }

/* Device frame for screenshots */
.device { margin: 0 auto; max-width: 300px; border-radius: 40px; padding: 10px; background: #0E0B13; border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 0 80px rgb(180 156 255 / 0.18); }
.device img { border-radius: 30px; width: 100%; height: auto; }
.hero .device { max-width: 260px; }
@media (min-width: 900px) { .hero .device { max-width: 320px; } }

/* Steps */
.steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-num { font-weight: 600; color: var(--gold-text); font-size: 0.95rem; }
.icon-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgb(180 156 255 / 0.14); color: var(--accent); flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.step p, .card p { color: var(--text-soft); margin: 0; }

/* Feature cards */
.features { display: grid; gap: 28px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.card .device { max-width: 220px; padding: 7px; border-radius: 30px; }
.card .device img { border-radius: 24px; }

/* Stage + privacy */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.points li p { margin: 0; }
.points strong { color: var(--heading); display: block; }

/* Final CTA */
.download { text-align: center; }
.download .cta-row { justify-content: center; }
.download-card { border-radius: 28px; padding: 48px 24px; box-shadow: var(--shadow); }
.download-card img.mark { height: 48px; width: auto; margin: 0 auto 20px; }

/* Legal pages */
.doc { padding: 48px 0 72px; }
.doc .container { max-width: 760px; }
.doc .updated { color: var(--text-soft); font-size: 0.9375rem; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc h3 { font-size: 1.125rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.table-wrap { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--heading); }
.callout { border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; margin: 1em 0; }

/* 404 */
.notfound { text-align: center; padding: 72px 0 96px; }
.notfound img.mark { height: 72px; width: auto; margin: 0 auto 24px; }
.notfound .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.9375rem; color: var(--text-soft); }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer img { height: 24px; width: auto; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text); font-weight: 500; }
.disclaimer { margin-top: 20px; font-size: 0.8125rem; max-width: 60em; }

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

.lead.center { margin: 0 auto 20px; }

/* Print: a plain light page; the logo keeps a dark backing so its white letters show */
@media print {
  html, body { background: #fff !important; color: #000; }
  body, .hero { background-image: none !important; }
  .hero-visual::before { display: none; }
  h1, h2, h3, .points strong, .moved p, .doc th { color: #000; }
  .lead, .step p, .card p, .site-footer, .android-note, .doc .updated { color: #333; }
  a { color: #000; }
  .site-header { position: static; }
  .site-header, .card, .step, .points li, .download-card, .moved, .callout, .android-soon, .section-alt {
    background: #fff !important; border: 1px solid #ccc; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .device { box-shadow: none; }
  .brand img, .site-footer img, img.mark { background: #0B0910; padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }
  .qr, .skip-link, .store-cta--compact { display: none !important; }
}
