/* SkyWitness website. Same night-sky look as the app: deep blue, glass panels, risk colors.
   Follows Chrome's modern web guidance: text in rem so it follows the phone's text size, layouts
   that adapt to their container, motion only when people haven't asked for less, no inline styles
   (the site's security policy only allows this file). Always dark, like the app. */
:root {
  color-scheme: dark;
  accent-color: #6fd3ff;
  --bg: #02051a;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(10, 18, 48, 0.55);
  --glass-strong: rgba(6, 11, 32, 0.82);
  --accent: #6fd3ff;
  --clear: #4fe3a1;
  --wet: #ffc857;
  --slick: #ff9f43;
  --danger: #ff6b6b;
  --radius: 1.625rem;
  --wrap: 70rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: rgba(111, 211, 255, 0.38); color: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 0.5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1rem, 3vw, 1.75rem); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--bg); padding: 0.5rem 0.875rem; border-radius: 0.625rem; z-index: 50; }
.skip:focus { left: 0.5rem; }

/* Top bar */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; container-type: inline-size; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 2.125rem; height: 2.125rem; border-radius: 0.5625rem; }
.nav-links { display: flex; align-items: center; gap: 1.625rem; }
.nav-links a { color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-get { background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line); color: var(--ink) !important; padding: 0.5rem 1rem; border-radius: 999px; }
@container (max-width: 45rem) { .nav-links a:not(.nav-get) { display: none; } }

/* Hero, over the live sky */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 6.75rem 0 4rem; container-type: inline-size; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10rem; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 3rem; align-items: center; }
@container (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 0.4375rem 0.875rem; font-size: 0.875rem; color: var(--ink-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--clear); box-shadow: 0 0 0 4px rgba(79, 227, 161, 0.18); }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; margin: 1.25rem 0 1.125rem; font-weight: 850; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffffff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: rgba(255, 255, 255, 0.86); max-width: 34em; margin: 0 0 1.875rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.store-note, .sky-caption { color: rgba(255, 255, 255, 0.86); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); font-size: 0.875rem; }
.store-note { margin: 1rem 0 0; }
.sky-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.375rem; }
.sky-caption { margin: 0; min-height: 1.5em; transition: opacity 0.6s; }
.sky-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-size: 0.8125rem; font-weight: 650; color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 0.375rem 0.75rem 0.375rem 0.625rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sky-toggle:hover { border-color: rgba(255, 255, 255, 0.4); }
.sky-toggle[hidden] { display: none; }
.sky-toggle-icon { width: 0.625rem; height: 0.75rem; border-inline: 0.1875rem solid currentColor; }
.sky-toggle[aria-pressed="true"] .sky-toggle-icon { width: 0; height: 0; border-inline: 0; border-block: 0.375rem solid transparent; border-left: 0.625rem solid currentColor; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store { position: relative; display: inline-flex; align-items: center; gap: 0.6875rem; min-width: 13.375rem; padding: 0.6875rem 1.375rem 0.6875rem 1rem; border-radius: 1rem; background: #000000; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.28); }
.store:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .store { transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
  .store:hover { transform: translateY(-2px); }
}
.store svg { width: 1.75rem; height: 1.75rem; fill: currentColor; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 0.71875rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.store-text strong { font-size: 1.3125rem; font-weight: 650; letter-spacing: -0.01em; }
.soon { position: absolute; top: -0.9375rem; right: -0.5rem; background: var(--wet); color: #1c1300; font-size: 0.65625rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.1875rem 0.5rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.store.is-live .soon { display: none; }
html.os-android .stores .store[data-store="googlePlay"] { order: -1; }
html.os-ios .store[data-store="appStore"], html.os-android .store[data-store="googlePlay"] { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(111, 211, 255, 0.16); }

/* Phones */
.phone { position: relative; width: min(18.75rem, 76vw); aspect-ratio: 390 / 844; border-radius: 2.875rem; padding: 0.5625rem; background: linear-gradient(160deg, #3a4466, #0d1430 45%, #262f52); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12); margin: 0 auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 2.375rem; }
.hero-phone .phone { rotate: 2.5deg; }
@container (min-width: 56rem) { .hero-phone .phone { width: 20rem; } }

/* Sections */
section { position: relative; }
.section { padding: 6rem 0; container-type: inline-size; }
#features.section { padding-top: 1.5rem; }
.section-promise.section { padding-top: 2.5rem; }
.kicker { display: inline-block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.125rem); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 1.125rem; font-weight: 820; }
.section-lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 38em; margin: 0; }
.center { text-align: center; }
.center .section-lede { margin: 0 auto; }
.grid { display: grid; gap: 1rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* How it works */
.steps { counter-reset: step; }
.step { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(111, 211, 255, 0.14); color: var(--accent); font-weight: 850; margin-bottom: 1rem; }
.step h3 { margin: 0 0 0.375rem; font-size: 1.3125rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Features */
.feature { background: linear-gradient(180deg, rgba(18, 28, 68, 0.7), rgba(8, 13, 38, 0.7)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.feature .icon { width: 3rem; height: 3rem; border-radius: 0.875rem; display: grid; place-items: center; margin-bottom: 1.125rem; }
.feature .icon svg { width: 1.625rem; height: 1.625rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-accent { background: rgba(111, 211, 255, 0.14); color: var(--accent); }
.icon-clear { background: rgba(79, 227, 161, 0.14); color: var(--clear); }
.icon-slick { background: rgba(255, 159, 67, 0.14); color: var(--slick); }
.icon-danger { background: rgba(255, 107, 107, 0.14); color: var(--danger); }
.icon-wet { background: rgba(255, 200, 87, 0.14); color: var(--wet); }
.icon-plain { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.feature h3 { margin: 0 0 0.375rem; font-size: 1.25rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Spotlights: side by side when their section is wide enough */
.spot { display: grid; gap: 3.5rem; align-items: center; }
@container (min-width: 56rem) { .spot { grid-template-columns: 1fr 1fr; } .spot.flip .spot-copy { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.875rem; }
.ticks li { --c: var(--accent); display: flex; gap: 0.75rem; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; margin-top: 0.5625rem; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.ticks .tick-danger { --c: var(--danger); }
.ticks .tick-clear { --c: var(--clear); }
.ticks .tick-wet { --c: var(--wet); }
.ticks strong { color: var(--ink); }
.pair { display: flex; justify-content: center; gap: 1.125rem; }
.pair figure { margin: 0; flex: 1; max-width: 17rem; }
.pair .phone { width: 100%; }
.pair figure:last-child { margin-top: 3.5rem; }
.pair figcaption { text-align: center; margin-top: 1rem; font-size: 0.875rem; color: var(--ink-3); }
.pair figcaption b { display: block; font-size: 0.9375rem; }
.text-danger { color: var(--danger); }
.text-clear { color: var(--clear); }
.risk-bar { display: flex; gap: 0.25rem; height: 0.5rem; margin-top: 1.625rem; max-width: 20rem; }
.risk-bar span { flex: 1; border-radius: 0.25rem; }
.bar-clear { background: var(--clear); }
.bar-wet { background: var(--wet); }
.bar-slick { background: var(--slick); }
.bar-danger { background: var(--danger); }

/* Group board, drawn here */
.board { width: 100%; max-width: 25rem; margin: 0 auto; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 2rem; padding: 1.25rem; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.board-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.25rem 0.25rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: 0.875rem; }
.board-head .home { width: 2.75rem; height: 2.75rem; border-radius: 0.8125rem; background: rgba(111, 211, 255, 0.15); display: grid; place-items: center; color: var(--accent); }
.board-head .home svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.board-head b { display: block; font-size: 1.125rem; }
.board-head small { color: var(--ink-3); font-size: 0.8125rem; }
.post { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.125rem; padding: 0.875rem 1rem; margin-top: 0.625rem; font-size: 0.9375rem; }
.post.pinned { border-color: rgba(111, 211, 255, 0.55); }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.375rem; }
.post-meta b { color: var(--ink); font-size: 0.875rem; }
.tag { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.125rem 0.5rem; border-radius: 999px; }
.tag.update { background: rgba(111, 211, 255, 0.15); color: var(--accent); }
.tag.question { background: rgba(255, 200, 87, 0.15); color: var(--wet); }
.tag.poll { background: rgba(79, 227, 161, 0.15); color: var(--clear); }
.tag.event { background: rgba(255, 159, 67, 0.15); color: var(--slick); }
.post p { margin: 0; }
.reply { margin-top: 0.625rem; padding: 0.5625rem 0.75rem; border-radius: 0.75rem; background: rgba(0, 0, 0, 0.25); font-size: 0.875rem; color: var(--ink-2); }
.reply b { color: var(--ink); }
.poll-row { position: relative; margin-top: 0.5rem; border-radius: 0.625rem; overflow: hidden; background: rgba(255, 255, 255, 0.06); font-size: 0.875rem; }
.poll-row span { position: relative; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.4375rem 0.75rem; }
.poll-row i { position: absolute; inset: 0 auto 0 0; background: rgba(79, 227, 161, 0.25); }
.poll-row .share-74 { width: 74%; }
.poll-row .share-26 { width: 26%; }
.going { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--slick); font-weight: 700; }

/* Privacy promise */
.promise div { border-top: 2px solid var(--line); padding-top: 1.125rem; }
.promise b { display: block; font-size: 1.25rem; margin-bottom: 0.25rem; }
.promise p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Download box */
.get { padding: 2.5rem 0 7rem; }
.get-box { position: relative; overflow: hidden; border-radius: 2.25rem; border: 1px solid var(--line); padding: 3.5rem 1.5rem; text-align: center; background: radial-gradient(120% 140% at 50% 0%, #27346e 0%, #0b1440 45%, #050a24 100%); }
.get-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 78% 16%, #fff9, transparent), radial-gradient(1.5px 1.5px at 64% 70%, #fff6, transparent), radial-gradient(1px 1px at 30% 80%, #fff7, transparent), radial-gradient(1px 1px at 88% 58%, #fff8, transparent), radial-gradient(1.2px 1.2px at 45% 35%, #fff5, transparent); pointer-events: none; }
.get-box > * { position: relative; }
.get-box img.app-icon { width: 6rem; height: 6rem; border-radius: 1.375rem; margin: 0 auto 1.375rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.get-box h2 { margin-bottom: 0.625rem; }
.get-box .section-lede { margin: 0 auto 2rem; }
.get-box .stores { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; color: var(--ink-3); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.375rem; }
footer nav a { color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 0.625rem; color: var(--ink-2); }
.foot-brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.4375rem; }

/* "Coming soon" message */
.toast { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 1.25rem; opacity: 0; pointer-events: none; background: #ffffff; color: #0a1230; font-weight: 650; font-size: 0.9375rem; padding: 0.8125rem 1.25rem; border-radius: 1rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); transition: opacity 0.25s, translate 0.25s; z-index: 60; width: max-content; max-width: calc(100vw - 2rem); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity 0.25s; translate: -50% 0; } }

/* Sections rise into view as you scroll, with no script: where the browser can tie an animation
   to scrolling, and only for people who haven't asked for less motion. Everywhere else the content
   is simply there. */
@keyframes rise { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 14rem; }
  }
}
@media print { .reveal { animation: none; } #sky, .sky-row, .toast { display: none; } }

/* Policy pages */
.doc-top { position: relative; padding: 7.5rem 0 3rem; background: radial-gradient(120% 120% at 50% 0%, #1d2a63 0%, #0a1238 50%, var(--bg) 100%); }
.doc-top h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.625rem; }
.doc-top p { color: var(--ink-2); margin: 0; }
.doc { max-width: 47.5rem; margin: 0 auto; padding: 1.5rem 1rem 5rem; }
.doc section { background: var(--glass); border: 1px solid var(--line); border-radius: 1.375rem; padding: 1.375rem 1.5rem; margin-top: 0.875rem; }
.doc h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin: 0 0 0.625rem; }
.doc ul { margin: 0; padding-left: 1.25rem; }
.doc li { color: var(--ink-2); margin: 0.5rem 0; }
.doc li::marker { color: var(--ink-3); }
.doc .updated { text-align: center; color: var(--ink-3); font-size: 0.875rem; margin-top: 1.75rem; }
.doc .callout { border-color: rgba(111, 211, 255, 0.45); }
.doc p { color: var(--ink-2); margin: 0 0 0.625rem; }

/* Page not found */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2.5rem 1rem; }
.lost img { border-radius: 1.25rem; margin: 0 auto 1.5rem; }
.lost p { margin-bottom: 1.5rem; }
.lost .nav-get { display: inline-block; font-weight: 600; padding: 0.625rem 1.25rem; }
.lost .nav-get:hover { text-decoration: none; }
