/* The site's whole design system, kept in step with the app's theme.ts.
   Two files, one palette — if the app's blue changes, change it here too. */

:root {
  --blue: #1a56f0;
  --blue-dark: #1240b8;
  --blue-light: #e8efff;
  --bolt: #ffc800;
  --bolt-dark: #e0a500;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --fill: #f1f5f9;
  --surface: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---- Header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-weight: 900; font-size: 18px; color: var(--ink); letter-spacing: -0.3px; }

.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--blue); }

/* ---- Hero ---- */

.hero {
  background: linear-gradient(170deg, var(--blue-light) 0%, #fff 70%);
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: var(--blue); }

.hero p.lead { font-size: 19px; color: var(--body); margin-bottom: 32px; }

.hero-art { text-align: center; }
.hero-art img { width: 100%; max-width: 330px; }

.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.badge-note { font-size: 14px; color: var(--faint); margin-top: 12px; }

/* ---- Sections ---- */

section { padding: 72px 0; }
section.tinted { background: var(--surface); }

h2 {
  font-size: 34px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-lead { font-size: 17px; color: var(--muted); margin-bottom: 40px; max-width: 620px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 18px;
  padding: 26px;
}

.card .emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.card h3 { font-size: 17px; color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* ---- Screenshots ---- */

.shots { padding-bottom: 64px; }

/* Scrolls horizontally at every width, and is meant to. Six phones laid out
   as a grid shrink to thumbnails nobody can read; a strip keeps them at a
   size where the words on the screen are words. The scrollbar is left
   visible on desktop — a strip with no indication that it moves is a strip
   most people never scroll. */
.shot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 20px;
  /* Line the first phone up with the heading above it, then let the last one
     have the same air on the right when the strip is scrolled to the end. */
  max-width: 1128px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
  text-align: center;
}

.shot img {
  width: 240px;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  /* The captures come off a phone with a white-ish app background, so the
     frame needs its own edge or the screen bleeds into the page. */
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

/* ---- Steps ---- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; }
.step .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  border-bottom: 4px solid var(--blue-dark);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 16px; color: var(--ink); font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---- Footer ---- */

footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 48px 0 40px;
  font-size: 14px;
}

.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid #1e293b; font-size: 13px; }

/* ---- Legal documents ---- */

.doc { padding: 56px 0 72px; }
.doc h1 { font-size: 36px; color: var(--ink); font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.3px; }
.doc h3 { font-size: 17px; color: var(--ink); margin: 22px 0 8px; font-weight: 800; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--blue); }

.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--surface); font-weight: 800; color: var(--ink); }

.callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .brand span { font-size: 16px; }
  h2 { font-size: 27px; }
  section { padding: 52px 0; }
}

@media (max-width: 560px) {
  .nav { flex-direction: column; justify-content: center; gap: 8px; height: auto; padding: 14px 0; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 14px; }
}
