/* The public site: the landing page (/), the user guide (/guide/), support
   and privacy. Plain CSS, no build step; Django serves it from
   backend/static/site/ (collectstatic, then the proxy's /static/). */

:root {
  color-scheme: light dark;
  --bg: #f5f3f2;
  --surface: #ffffff;
  --band: #ece8e6;
  --ink: #15181b;
  --muted: #5d6166;
  --line: #dcd7d4;
  --red: #b71227;
  --red-ink: #ffffff;
  --red-soft: #f8e3e6;
  --dark: #1c1719;
  --dark-ink: #f2eeee;
  --dark-muted: #b9b0b2;
  --shadow: 0 18px 40px -18px rgba(30, 10, 15, 0.35);
  --radius: 18px;
  --wrap: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0e;
    --surface: #1b1819;
    --band: #161314;
    --ink: #f0eded;
    --muted: #a8a1a3;
    --line: #2e2a2b;
    --red: #e0405a;
    --red-soft: #3a1519;
    --dark: #070606;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top-nav a { color: var(--ink); text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--red); }
.top-nav .top-signin {
  color: var(--red-ink); background: var(--red); padding: 7px 16px; border-radius: 999px; font-weight: 600;
}
.top-nav .top-signin:hover { color: var(--red-ink); filter: brightness(1.08); }
@media (max-width: 640px) {
  .top-nav { gap: 14px; font-size: 0.88rem; }
  .top-nav a[href="/#features"] { display: none; }
  .brand span { display: none; }
}

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; font-size: 0.92rem; color: var(--muted); }
.foot-row { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-brand strong { display: block; color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--red); }
.foot-copy { grid-column: 1 / -1; margin: 0; }
.foot-copy a { color: inherit; }
.foot-copy .release { margin-left: 10px; font-size: 0.68rem; opacity: 0.5; white-space: nowrap; }
@media (max-width: 640px) { .foot-row { grid-template-columns: 1fr; } }

/* Buttons, badges */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.98rem;
}
.btn-red { background: var(--red); color: var(--red-ink); }
.btn-red:hover { filter: brightness(1.08); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.store-badge img { height: 44px; width: auto; }
.soon {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9rem;
}

/* Landing: hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 0.95rem; }
.ticks li { display: flex; gap: 8px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--red); font-weight: 800; }
.phone {
  border-radius: 40px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid #111; background: #111;
}
.phone img { border-radius: 32px; }

/* A screenshot with a promo video in front of it, both tilted. */
.stage { position: relative; height: 620px; width: 100%; max-width: 520px; margin: 0 auto; }
.stage .phone { position: absolute; }
.stage .back { width: 250px; left: 0; top: 60px; transform: rotate(-7deg); }
.stage .vid { width: 300px; right: 0; top: 0; transform: rotate(4deg); aspect-ratio: 9 / 16; z-index: 1; border-radius: 44px; }
.stage .vid video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #1a1517; }
.sound {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  border: 0; border-radius: 999px; padding: 8px 16px 8px 36px; cursor: pointer;
  font: inherit; font-size: 0.88rem; font-weight: 600; color: #fff;
  background: rgba(20, 16, 18, 0.72) no-repeat 13px 50% / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E");
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sound.on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
}
.sound:hover { background-color: var(--red); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .stage { height: 520px; max-width: 420px; }
  .stage .back { width: 205px; top: 50px; border-radius: 32px; border-width: 6px; }
  .stage .back img { border-radius: 26px; }
  .stage .vid { width: 250px; border-radius: 36px; border-width: 6px; }
  .stage .vid video { border-radius: 30px; }
}
@media (max-width: 420px) {
  .ticks { grid-template-columns: 1fr; }
  .stage { height: 440px; }
  .stage .back { width: 170px; }
  .stage .vid { width: 210px; }
}

/* Landing: sections */
.section { padding: 72px 0; }
.band { background: var(--band); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 0 34px; }
.center { text-align: center; }
.center .section-lead, .section-lead.center { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-copy { order: 2; }
.split-shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.split-shots .phone { width: 240px; }
.split-shots .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .split-copy { order: 0; }
  .split-shots .phone { width: 44%; max-width: 230px; border-radius: 28px; border-width: 6px; }
  .split-shots .phone img { border-radius: 22px; }
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--red); font-weight: 800; }
.checklist strong { color: var(--ink); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.feature .ico { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.devices { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.ipad {
  border-radius: 26px; overflow: hidden; border: 10px solid #111; background: #111; box-shadow: var(--shadow);
}
.ipad img { border-radius: 16px; }
.watches { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.watch {
  width: 31%; max-width: 150px; border-radius: 34px; border: 7px solid #111; background: #000;
  box-shadow: var(--shadow); overflow: hidden;
}
.watch img { border-radius: 26px; }
.device-note { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; text-align: center; }
@media (max-width: 900px) { .devices { grid-template-columns: 1fr; } }

.dark-band { background: var(--dark); color: var(--dark-ink); }
.dark-band .section-lead { color: var(--dark-muted); }
.dark-band a { color: #ff7389; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.trust h3 { margin: 0 0 6px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--dark-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

.buster { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.buster-pic { position: relative; width: 220px; height: 220px; cursor: pointer; border: 0; padding: 0; background: none; }
.buster-pic img { width: 220px; height: 220px; }
.buster-pic video { position: absolute; pointer-events: none; display: none; }
.buster-pic.playing video { display: block; }
.buster h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.buster p { margin: 0 0 10px; color: var(--muted); }
.buster .hint { font-size: 0.85rem; }
@media (max-width: 640px) {
  .buster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.invite {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.invite h2 { margin: 0 0 8px; font-size: 1.7rem; }
.invite p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Guide and the plain pages (support, privacy) */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.doc-nav { position: sticky; top: 84px; align-self: start; font-size: 0.93rem; }
.doc-nav h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.doc-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.doc-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.doc-nav a:hover { background: var(--band); }
.doc-nav a[aria-current] { background: var(--red-soft); color: var(--red); font-weight: 600; }
.doc-body { max-width: 720px; }
.doc-body h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 8px; }
.doc-body .sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 30px; }
.doc-body h2 { font-size: 1.35rem; margin: 42px 0 10px; padding-top: 6px; scroll-margin-top: 80px; }
.doc-body h3 { font-size: 1.08rem; margin: 26px 0 6px; scroll-margin-top: 80px; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; }
.doc-body li { margin-bottom: 6px; }
.doc-body kbd, .ui {
  font-family: inherit; font-weight: 600; font-size: 0.95em; white-space: nowrap;
}
.doc-body .tip, .doc-body .note {
  border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 12px 12px 0;
  padding: 12px 16px; margin: 18px 0;
}
.doc-body .note { border-left-color: var(--muted); }
.doc-body .tip strong:first-child, .doc-body .note strong:first-child { color: var(--red); }
.doc-body .note strong:first-child { color: var(--ink); }
.shots { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 26px; }
.shot { margin: 0; width: 230px; }
.shot img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.45); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.shot.wide { width: 100%; max-width: 640px; }
.shot.wide img { border-radius: 14px; }
.shot.watchshot { width: 150px; }
.shot.watchshot img { border-radius: 30px; background: #000; }
@media (max-width: 560px) { .shot { width: calc(50% - 9px); } .shot.watchshot { width: calc(33% - 12px); } }
.toc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.toc-cards a {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; color: var(--ink); text-decoration: none;
}
.toc-cards a:hover { border-color: var(--red); }
.toc-cards strong { display: block; margin-bottom: 2px; }
.toc-cards span { color: var(--muted); font-size: 0.92rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; }
.pager span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.pager .next { text-align: right; margin-left: auto; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .doc-nav { position: static; }
  .doc-nav ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .doc-nav a { border: 1px solid var(--line); padding: 4px 10px; }
  .toc-cards { grid-template-columns: 1fr; }
}

.page { max-width: 720px; padding-top: 44px; padding-bottom: 40px; }
.page h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.page .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.page h2 { font-size: 1.2rem; margin-top: 2.25rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.doc-nav h2 a { padding: 0; background: none; color: inherit; border: 0; }
