/* Glowstick's site. One dark world, as the app is: an ink night under a stage light from the top right, poster
   type for the big things, matte cards, one crew color, and a glow only on what is "on" (docs/PROJECT.md,
   section 7). Anton stands in for the app's SF Compressed, which the web can't use. */
:root {
  color-scheme: dark;
  --ink: #0B0A13;
  --ink-2: #12111C;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.6);
  --text-3: rgba(255, 255, 255, 0.4);
  --crew: #0CC4F3;
  --on-crew: #05151B;
  --poster: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
:focus-visible { outline: 2px solid var(--crew); outline-offset: 2px; }

/* The night and its stage light. */
.stage {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(12, 196, 243, 0.42) 0%, rgba(12, 196, 243, 0.12) 32%, rgba(12, 196, 243, 0) 62%),
    var(--ink);
}
header.top .wrap { display: flex; align-items: center; gap: 10px; padding-block: 18px; }
header.top img { width: 34px; height: 34px; }
header.top .name { font-family: var(--poster); font-size: 22px; letter-spacing: 0.01em; }
header.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; color: var(--text-2); }
header.top nav a { text-decoration: none; }
header.top nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: var(--poster); font-weight: 400; line-height: 0.98; margin: 0; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: clamp(54px, 13vw, 132px); letter-spacing: -0.005em; }
h2 { font-size: clamp(34px, 6vw, 56px); }
h3 { font-size: 30px; line-height: 1.02; }
.lit { color: var(--crew); text-shadow: 0 0 28px rgba(12, 196, 243, 0.55); }
.lead { color: var(--text-2); font-size: clamp(17px, 2.2vw, 20px); max-width: 34ch; margin: 0; }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--crew); color: var(--on-crew);
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.button svg { width: 20px; height: 20px; }
.note { color: var(--text-3); font-size: 13px; margin: 0; }

.phone {
  aspect-ratio: 506 / 1100;
  border-radius: 13% / 6%;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 6px #000, 0 0 0 7px var(--surface-strong);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The poster. Words left; on a wide screen the crew's screen right. */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding-block: 40px 56px; }
.hero .words { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.hero .phone { justify-self: center; width: min(280px, 100%); }

/* The reel: one feature a card, swiped sideways, a card snapping into place. */
.reel-head .wrap { display: flex; align-items: flex-end; gap: 16px; padding-block: 8px 20px; }
.reel-head .arrows { margin-left: auto; display: flex; gap: 8px; }
.reel-head button {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.reel-head button:disabled { color: var(--text-3); cursor: default; }
.reel-head button svg { width: 20px; height: 20px; }
.reel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter-l);
  padding-left: max(var(--gutter-l), calc((100% - 1000px) / 2));
  padding-right: max(var(--gutter-r), calc((100% - 1000px) / 2));
  padding-block: 12px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 auto;
  width: min(72vw, 264px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* A phone no taller than about half the screen, so the card's words are on the same screen. */
.card .phone { width: auto; height: min(52vh, 480px); align-self: flex-start; max-width: 100%; }
.card p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.dots { display: flex; justify-content: center; gap: 6px; padding-block: 16px 56px; }
.dots button {
  width: 24px; height: 4px; border-radius: 2px; border: 0; padding: 0;
  background: var(--surface-strong); cursor: pointer;
  /* 44 pt to tap, 4 to look at. */
  position: relative;
}
.dots button::after { content: ""; position: absolute; inset: -20px -3px; }
.dots button[aria-current="true"] { background: var(--crew); }

/* What it keeps private. */
.care { background: var(--ink-2); }
.care .wrap { display: flex; flex-direction: column; gap: 24px; padding-block: 56px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { background: var(--surface); border-radius: 24px; padding: 24px; }
.fact h4 { font: 600 18px/1.25 var(--body); margin: 0 0 8px; }
.fact p { margin: 0; color: var(--text-2); font-size: 15px; }

footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-block: 28px 44px; color: var(--text-2); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--text); }

/* Beside the phone the poster has half the page: smaller letters, so it stays two lines each. */
@media (min-width: 761px) { h1 { font-size: clamp(60px, 8.4vw, 124px); } }
@media (max-width: 760px) {
  header.top nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 12px 40px; }
  /* The reel right under it opens on the same screen. */
  .hero .phone { display: none; }
  .reel-head .arrows { display: none; }
  .facts { grid-template-columns: 1fr; }
  footer .links { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) { .reel { scroll-behavior: smooth; } }

/* The reading pages: privacy, terms, support. */
.page .wrap { max-width: 760px; padding-block: 24px 72px; }
.page h1 { font-size: clamp(40px, 8vw, 72px); margin-bottom: 8px; }
.page .dated { color: var(--text-3); font-size: 14px; margin: 0 0 32px; }
.page h2 { font: 600 20px/1.3 var(--body); text-transform: none; margin: 40px 0 12px; }
.page p, .page li { color: var(--text-2); font-size: 16px; max-width: 68ch; }
.page p { margin: 0 0 12px; }
.page ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.page strong { color: var(--text); font-weight: 600; }
.page a { color: var(--crew); }
header.top a.home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
