/* vs Atlas and Health Atlas: the website's one stylesheet. System fonts only, no scripts needed, no trackers.
   vs Atlas is violet (the app's Aurora field); body.ha switches to Health Atlas's deep water teal. Dark by default, light under prefers-color-scheme. */
:root {
  color-scheme: dark light;
  --bg: #1b1157; --bg-2: #2a1a7e; --glow: #5330c9;
  --surface: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .16);
  --ink: #ffffff; --ink-2: rgba(255, 255, 255, .86); --muted: rgba(255, 255, 255, .72);
  --accent: #e2daff; --btn: #ffffff; --btn-ink: #1b1157; --mint: #5cf2d0;
  --shadow: 0 30px 60px -24px rgba(8, 3, 40, .8);
  --r: 28px;
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}
body.ha {
  --bg: #021c24; --bg-2: #052d39; --glow: #0a596a;
  --accent: #b9f5ee; --btn-ink: #021c24; --mint: #6ff0e0; --rose: #ff4f7b;
  --shadow: 0 30px 60px -24px rgba(0, 10, 14, .85);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ff; --bg-2: #ebe6ff; --glow: #d9d0ff;
    --surface: #ffffff; --line: rgba(27, 17, 87, .14);
    --ink: #1b1157; --ink-2: #3a2f7a; --muted: #55508a;
    --accent: #4a28b8; --btn: #3e25a6; --btn-ink: #ffffff; --mint: #0b7d68;
    --shadow: 0 26px 50px -26px rgba(40, 20, 120, .45);
  }
  body.ha {
    --bg: #effafa; --bg-2: #dff3f3; --glow: #b5e6e6;
    --ink: #052d39; --ink-2: #124655; --muted: #3d6571;
    --accent: #0a596a; --btn: #0a596a; --btn-ink: #ffffff; --mint: #0b7a73; --rose: #d81b55;
    --shadow: 0 26px 50px -26px rgba(5, 60, 80, .4);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav a:hover { background: var(--surface); }

/* hero */
.hero { position: relative; background: radial-gradient(120% 70% at 50% -10%, var(--glow), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2)); padding-bottom: 56px; }
.hero-in { display: grid; gap: 36px; align-items: center; padding-top: 18px; }
h1 { font-size: clamp(38px, 9vw, 68px); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.lead { font-size: clamp(18px, 3.4vw, 21px); color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.store[aria-disabled="true"] { cursor: default; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.store[aria-disabled="true"]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 25%, transparent); }
.kicker { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.store svg { width: 22px; height: 22px; flex: none; }
.small { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(280px, 72vw); border-radius: 42px; padding: 9px; background: #0b0820; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.hero .phone { transform: rotate(3deg); }

/* sections */
section.s { padding: 64px 0; }
section.s.alt { background: var(--bg-2); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 800; }
.s p { color: var(--ink-2); margin: 0 0 14px; max-width: 34em; }
.split { display: grid; gap: 30px; align-items: center; }
.art { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.art img { width: 100%; }
.nine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.nine figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.nine img { width: 100%; height: 100%; object-fit: cover; }
/* (2026-12-02) the ninth tile is words: eight challenges are filmed, four more come from Apple Health */
.nine .more { display: grid; place-items: center; background: linear-gradient(155deg, #4a35c9, #1a1250); }
.nine .more figcaption { position: static; background: none; padding: 8px; text-align: center; font-size: 14px; line-height: 1.25; }
.nine figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(to top, rgba(10, 5, 40, .78), transparent); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mint) 22%, transparent); }
.cards { display: grid; gap: 14px; margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3, .card h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* the pointer to the other app */
.other { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); border-radius: 32px; padding: 28px; }
.other img { width: 72px; height: 72px; border-radius: 18px; }
.other h2 { font-size: clamp(26px, 5.4vw, 36px); margin-bottom: 8px; }
.btn2 { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 700; text-decoration: none; }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { cursor: pointer; padding: 14px 20px; min-height: 52px; font-weight: 700; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--mint); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); max-width: none; }

/* footer */
footer.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 12px 0; display: inline-block; min-height: 44px; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 46em; }

/* plain text pages (support) */
.page { max-width: 760px; margin: 0 auto; padding: 8px 20px 72px; }
.page h1 { font-size: clamp(34px, 7vw, 48px); }
.page .card { margin-bottom: 14px; }
.page .card p + p { margin-top: 10px; }
.page ol { margin: 8px 0 0; padding-left: 22px; color: var(--ink-2); }
.page li { margin-bottom: 6px; }

@media (min-width: 820px) {
  .hero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 40px; }
  .hero .phone { width: 320px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .nine { grid-template-columns: repeat(9, 1fr); gap: 12px; }
  .nine figcaption { font-size: 12px; padding: 18px 6px 6px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split .cards { grid-template-columns: 1fr; }
  .other { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 44px; }
  .other > div { display: flex; gap: 24px; align-items: center; }
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  section.s { padding: 96px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .store:not([aria-disabled="true"]):hover, .btn2:hover { transform: translateY(-1px); }
  .store, .btn2 { transition: transform .15s ease; }
}
