/* The app's own palette, so the page and the product look like one thing. */
:root {
  --bg: #12141a;
  --bg-raised: #1b2132;
  --surface: #1c202b;
  --surface-high: #262b39;
  --accent: #5b8cff;
  --success: #3dd68c;
  --text: #edf0f7;
  --muted: #8a91a5;
  --radius: 16px;
  --measure: 62ch;
}

*, *::before, *::after { 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(--text);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.5rem 0;
}
.site-head img { width: 34px; height: 34px; border-radius: 9px; }
.site-head strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.site-head nav { margin-left: auto; display: flex; gap: 1.25rem; font-size: .95rem; }
.site-head nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-head nav a:hover { color: var(--text); }

/* On a phone the name alone is three lines, and the App Store link makes a
   third destination to fit beside it — so below this width the nav takes a row
   of its own instead of squeezing the title into a column of single words. */
@media (max-width: 34rem) {
  .site-head { flex-wrap: wrap; row-gap: .75rem; padding-bottom: 1.25rem; }
  /* The name shares its row with the icon rather than pushing it onto one of
     its own, which is what a flex item at its full min-content width does. */
  .site-head strong { flex: 1 1 0; min-width: 0; }
  .site-head nav { width: 100%; margin-left: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 0 auto 0; height: 70%;
  background: radial-gradient(closest-side, rgba(91,140,255,.22), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero p.lead {
  margin: 0 auto 2rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--surface-high);
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
}

/* The app is out, so the badge is the App Store link — in the hero and again
   at the foot of the page, where someone who read the whole thing ends up. */
a.badge { color: var(--text); text-decoration: none; border-color: var(--accent); }
a.badge:hover { background: var(--surface); }

/* ---------- shots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 1rem;
}
.shots img {
  width: 100%;
  /* The width/height attributes on these are there to reserve the space before
     the file arrives, but they also land on the element as presentational
     hints — so height stays pinned at 900px unless it is handed back to auto,
     and the picture is squeezed narrow to reach it. */
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--surface-high);
  background: var(--bg);
  display: block;
}

/* ---------- modes ---------- */
section { padding: 3.5rem 0; }
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}
.modes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mode {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.mode h3 {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 .5rem; font-size: 1.1rem;
}
.mode h3 svg { flex: none; width: 22px; height: 22px; fill: var(--accent); }
.mode p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- promises ---------- */
.promises { display: grid; gap: .75rem; padding: 0; margin: 0; list-style: none; }
.promises li {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.promises b { color: var(--text); font-weight: 600; }
.promises span { color: var(--muted); }
.tick { flex: none; width: 20px; height: 20px; margin-top: .18rem; fill: var(--success); }

/* ---------- long-form pages ---------- */
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin: 2rem 0 .35rem; }
.doc .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; }
.doc p, .doc li { color: #cdd3e0; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }
.callout {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
}
.callout p { margin: 0; }

/* ---------- closing call to action ---------- */
.get { text-align: center; }
.get h2 { margin-bottom: .6rem; }
.get p { max-width: 34ch; margin: 0 auto 1.75rem; color: var(--muted); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--surface-high);
  margin-top: 3rem; padding: 2rem 0 3rem;
  color: var(--muted); font-size: .92rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
}
footer nav { margin-left: auto; display: flex; gap: 1.25rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
