/* Aurora Tracker website. Mobile first: every rule is written for a phone, and wider screens layer on top.
   Colours come from contracts/tokens.json (dark mode). Serif display like the app's paywall; body is the system font. */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/newsreader.woff2) format("woff2");
}
:root {
  --bg: #0B0C10; --surface: #15171C; --raised: #1D2027; --border: #2A2E36; --border-strong: #6E7583;
  --focus: #8FD6FF; --text: #F4F5F7; --text-2: #B5BAC4; --muted: #8F96A2;
  --aurora: #5BE3A0; --violet: #B29BFF; --on-accent: #0B0C10;
  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* One edge for everything: header, copy, phones, footer all sit on this gutter. */
  --gutter: clamp(20px, 5.5vw, 72px); --page: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aurora); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 34ch; }


/* Header: a floating glass pill. The name on the left, one action on the right. */
.bar { position: fixed; z-index: 50; top: max(10px, env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); max-width: calc(var(--page) - 2 * var(--gutter)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 6px 0 14px; border-radius: 999px;
  background: rgba(21, 23, 28, .55); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.bar-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font: 600 18px/1 var(--serif); letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; color: var(--aurora); flex: none; }
.bar-get { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--on-accent); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; }
.bar-get:hover { background: var(--aurora); }
.bar-nav { display: none; }

/* App Store badge */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid #A6A6A6; text-decoration: none; }
.store svg { width: 24px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; letter-spacing: .02em; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

/* Sky canvases (the app's renderer) */
.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-bolt { pointer-events: none; }
.sky-fallback { background: radial-gradient(120% 70% at 60% 15%, rgba(91, 227, 160, .28), transparent 60%), radial-gradient(90% 60% at 30% 5%, rgba(178, 155, 255, .18), transparent 60%), #0B0C10; }

/* 1. From space to your street. Without JS (or with Reduce Motion) it is one screen: the picture with all four lines on it. */
.orbit { position: relative; }
.orbit-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.orbit-frames, .orbit-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.orbit-frames { opacity: 0; transition: opacity .6s; }
.orbit.has-frames .orbit-frames { opacity: 1; }
.orbit.has-frames .orbit-fallback { display: none; }
.orbit-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0, rgba(11, 12, 16, .72) 26%, rgba(11, 12, 16, 0) 62%), linear-gradient(to bottom, rgba(11, 12, 16, .5), rgba(11, 12, 16, 0) 18%); }
.orbit-lines { width: 100%; max-width: var(--page); margin: 0 auto; padding: 120px var(--gutter) 56px; display: grid; gap: 18px; }
.ol { margin: 0; font: 500 clamp(26px, 6.6vw, 30px)/1.08 var(--serif); letter-spacing: -.02em; color: var(--text-2); text-shadow: 0 2px 24px rgba(11, 12, 16, .8); }
.ol span { display: inline; }
.ol-last { margin-top: 10px; color: var(--text); }
.ol-last h1 { font-size: clamp(46px, 12.5vw, 150px); line-height: .92; letter-spacing: -.035em; max-width: 11ch; margin-bottom: 28px; text-shadow: 0 2px 40px rgba(11, 12, 16, .7); }
.orbit-hint { display: none; }
/* With motion: pinned for four screens of scroll; one line at a time, the Earth turns beneath. */
.js .orbit { height: 420vh; height: 420svh; }
.js .orbit-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.js .orbit-lines { display: block; position: relative; height: 100%; }
.js .ol { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; max-width: 16ch; opacity: 0; will-change: opacity, transform, filter;
  font-size: clamp(40px, 10.5vw, 104px); line-height: .98; letter-spacing: -.03em; color: var(--text); }
.js .ol span { display: block; }
.js .ol-last { max-width: none; }
.js .ol-last h1 { font-size: inherit; line-height: inherit; }
.js .orbit-hint { display: block; position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.js .orbit-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--muted), transparent); animation: hint 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Masked words (headings split by site.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }

/* 2. The moment: a giant line split around one phone. Phone first: the line sits above, and the phone overlaps its foot. */
.moment { position: relative; }
.moment-stage { --pw: min(250px, 62vw, calc((100svh - 366px) * .46)); position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: end center; overflow: hidden; isolation: isolate; padding: 96px var(--gutter) 88px; }
.moment-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 45% at 50% 60%, rgba(91, 227, 160, .14), transparent 70%); }
.moment-time { position: absolute; top: 88px; left: 0; right: 0; margin: 0; text-align: center; font: 600 14px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--aurora); font-variant-numeric: tabular-nums; }
.moment-word { position: absolute; z-index: -1; left: 0; right: 0; top: 112px; text-align: center; margin: 0;
  font: 600 clamp(72px, 25vw, 160px)/.84 var(--serif); letter-spacing: -.05em; color: transparent;
  background: linear-gradient(180deg, #F4F5F7 0%, #F4F5F7 45%, rgba(91, 227, 160, .9) 100%); -webkit-background-clip: text; background-clip: text; }
.moment-word span { display: block; padding: 0 .08em; }
.moment .phone { --w: var(--pw); box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.moment-say { position: absolute; bottom: 32px; left: var(--gutter); right: var(--gutter); margin: 0 auto; max-width: 34ch; text-align: center; font-size: 16px; color: var(--text-2); }
.js .moment { height: 300vh; height: 300svh; }
.js .moment-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }

/* 3. Three promises, each one a whole screen. Desktop: they slide past sideways. */
.promises { position: relative; }
.track { display: grid; }
.card-p { min-height: 86vh; min-height: 86svh; display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter); max-width: var(--page); margin: 0 auto; width: 100%; border-top: 1px solid var(--border); }
.card-p:first-child { border-top: 0; }
.glyph { width: clamp(56px, 14vw, 96px); height: auto; color: var(--aurora); margin-bottom: 28px; }
.card-p:nth-child(2) .glyph { color: var(--violet); }
.card-p h3 { font-size: clamp(52px, 14vw, 168px); line-height: .9; letter-spacing: -.04em; max-width: 9ch; }
.card-p p { margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--text-2); max-width: 30ch; }

/* The phone: Lock Screen and Live Activity over the Tonight screen */
.phone { --w: min(320px, 78vw); position: relative; width: var(--w); flex: none; aspect-ratio: 1206 / 2622; margin: 0; padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .165); background: linear-gradient(145deg, #3a3d45, #16171b 40%, #2b2d33);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px #000; }
.phone::before { content: ""; position: absolute; z-index: 5; top: calc(var(--w) * .058); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * .088); border-radius: 999px; background: #000; }
.phone .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: #0B0C10; }
.screen-app, .lock { position: absolute; inset: 0; }
.screen-app img { width: 100%; height: 100%; object-fit: cover; }
.lock { z-index: 3; background: #0B0C10; will-change: transform; }
.lock-time { position: absolute; top: 15%; left: 0; right: 0; text-align: center; color: #F4F5F7; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.lock-time span { display: block; font-weight: 600; font-size: calc(var(--w) * .055); }
.lock-time b { display: block; font: 600 calc(var(--w) * .25)/1 var(--sans); letter-spacing: -.02em; }
.activity { position: absolute; left: 4%; right: 4%; bottom: 12%; padding: calc(var(--w) * .04) calc(var(--w) * .05); border-radius: calc(var(--w) * .08);
  background: rgba(16, 18, 23, .92); color: #F4F5F7; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.act-top, .act-main { display: flex; justify-content: space-between; align-items: center; }
.act-top { font-size: calc(var(--w) * .042); color: #B5BAC4; }
.act-top span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.act-top .mark { width: calc(var(--w) * .06); height: calc(var(--w) * .06); }
.act-main { margin-top: calc(var(--w) * .02); font-weight: 700; white-space: nowrap; gap: 8px; }
.act-main span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: calc(var(--w) * .062); }
.act-main span:last-child { font-size: calc(var(--w) * .046); color: #D7DBE1; font-weight: 600; }
.act-main i { width: calc(var(--w) * .04); height: calc(var(--w) * .04); border-radius: 50%; background: var(--aurora); }
/* Clean tab bar over the screenshot (no data-source line) */
.tb { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 13%; display: flex; align-items: flex-end;
  background: linear-gradient(to bottom, rgba(11, 12, 16, 0), #0B0C10 42%); padding: 0 calc(var(--w) * .04) calc(var(--w) * .05); pointer-events: none; }
.tb-bar { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); padding: calc(var(--w) * .012); border-radius: 999px;
  background: rgba(44, 47, 54, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tb-i { display: flex; flex-direction: column; align-items: center; gap: calc(var(--w) * .006); padding: calc(var(--w) * .018) 0 calc(var(--w) * .014);
  border-radius: 999px; color: #F4F5F7; font-size: calc(var(--w) * .03); font-weight: 600; line-height: 1; white-space: nowrap; }
.tb-i svg { width: calc(var(--w) * .07); height: calc(var(--w) * .07); }
.tb-i.on { background: #16181D; color: var(--aurora); }
.phone-sky { position: absolute; z-index: 1; left: 0; right: 0; top: 0; width: 100%; height: 21%; mix-blend-mode: screen; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 70%, transparent); }


/* FAQ */
.faq { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { color: var(--text-2); margin: 0 0 22px; max-width: 60ch; }

/* Finale: the storm. The title catches each lightning strike. */
.finale { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.finale > .sky, .finale > .sky-bolt { z-index: -2; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--bg), rgba(11, 12, 16, .35) 22%, rgba(11, 12, 16, .45) 78%, var(--bg)); }
.finale h2 { --flash: 0; font-size: clamp(60px, 15vw, 200px); line-height: .88; letter-spacing: -.04em; max-width: 10ch; margin-bottom: 36px;
  text-shadow: 0 0 calc(var(--flash) * 60px) rgba(200, 212, 255, calc(var(--flash) * .9)), 0 2px 30px rgba(11, 12, 16, .6); }

/* Footer: links, then the name set huge on the page edge */
.foot { padding: 64px 0 32px; color: var(--muted); font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.giant { margin: 40px 0 24px; font: 600 calc((min(100vw, var(--page)) - 2 * var(--gutter)) / 7.4)/.9 var(--serif); letter-spacing: -.02em; white-space: nowrap; color: transparent;
  background: linear-gradient(180deg, #F4F5F7 30%, rgba(91, 227, 160, .5)); -webkit-background-clip: text; background-clip: text; }
.credits { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.credits a { color: var(--text-2); }
.foot-in { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Text pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 128px var(--gutter) 48px; }
.doc h1 { font-size: clamp(48px, 10vw, 88px); letter-spacing: -.03em; line-height: .95; margin-bottom: 16px; }
.doc h2 { font-family: var(--sans); font-size: 21px; font-weight: 650; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .summary { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); margin: 28px 0 8px; }
.doc .summary p { color: var(--text); margin: 0; }
.cards { display: grid; gap: 16px; margin: 28px 0; }
.cards a, .cards div { display: block; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.cards a:hover { border-color: var(--border-strong); }
.cards b { display: block; margin: 10px 0 4px; font-size: 17px; }
.cards span { color: var(--text-2); font-size: 15px; }
.ico { width: 24px; height: 24px; flex: none; color: var(--aurora); }

/* Reveal on scroll (motion.dev); visible without JS and with Reduce Motion */
.js .reveal { opacity: 0; }
#faq { scroll-margin-top: 80px; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .credits { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 860px) {
  .bar { top: 16px; height: 60px; padding-left: 18px; }
  .bar-nav { display: flex; gap: 4px; margin-left: auto; }
  .bar-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--text-2); text-decoration: none; font-size: 15px; }
  .bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--text); }
  .orbit-lines { padding-bottom: 88px; }
  .ol { font-size: 34px; }
  .js .ol { bottom: 96px; font-size: clamp(56px, 7.4vw, 116px); }
  /* Desktop: "Go out" left of the phone, "now." right of it, on one line through its middle. */
  .moment-stage { --pw: min(340px, calc((100svh - 250px) * .46)); place-items: center; padding: 0 var(--gutter); }
  .moment-word { top: 50%; translate: 0 -50%; display: flex; justify-content: center; align-items: center; gap: calc(var(--pw) + 56px); font-size: clamp(72px, 10vw, 190px); white-space: nowrap; }
  .moment-word span { flex: 1 1 0; text-align: right; }
  .moment-word span + span { text-align: left; }
  .moment-time { top: calc(50% - var(--pw) * 1.087 - 34px); }
  .moment-say { top: calc(50% + var(--pw) * 1.087 + 24px); bottom: auto; font-size: 18px; }
  /* Promises ride sideways: three full screens on a horizontal track. */
  .js .promises { height: 320vh; }
  .js .promises .track { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; width: 300vw; will-change: transform; }
  .js .card-p { flex: 0 0 100vw; max-width: none; min-height: 0; height: 100%; border-top: 0; padding: 0 max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); }
  .section { padding: 140px 0; }
  #faq .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  #faq .faq { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after, .orbit-frames { transition: none; }
  .js .reveal { opacity: 1; }
}
