/* Dawn palette, shared with the app. */
:root {
  --night: #14110F;
  --ember: #241E19;
  --dawn: #FF9F45;
  --dawn-deep: #E07B1F;
  --paper: #F5EDE3;
  --ash: #A8998A;
  --morning: #FBF7F2;
  --ink: #1B1612;
  --clay: #6E6258;
  --track: #3A322B;

  --bg: var(--morning); --surface: #FFFFFF; --text: var(--ink); --muted: var(--clay);
  --accent: var(--dawn-deep); --line: #E9E1D7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night); --surface: var(--ember); --text: var(--paper); --muted: var(--ash);
    --accent: var(--dawn); --line: var(--track);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1080px; }

/* Header and footer */
.site-header { padding: 28px 0 8px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }

/* Document pages (privacy, support) */
.doc { padding: 24px 0 48px; }
.doc h1 { font-size: 38px; font-weight: 300; line-height: 1.15; margin: 16px 0 8px; letter-spacing: -0.5px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.doc ul { padding-left: 22px; }
.muted, .updated { color: var(--muted); }
.updated { font-size: 15px; margin-top: 0; }
.card { background: var(--surface); border-radius: 18px; padding: 18px 22px; margin: 24px 0; }
.card p { margin: 0; }
.contact { font-size: 20px; font-weight: 600; }

/* Promo page: night until the horizon, morning after it. */
body.promo {
  --bg: var(--night); --surface: var(--ember); --text: var(--paper); --muted: var(--ash);
  --accent: var(--dawn); --line: var(--track);
}
.promo main { overflow: hidden; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.equation {
  margin: 0 0 20px; font-weight: 200; font-size: clamp(56px, 7vw, 92px); line-height: 1;
  letter-spacing: -2px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--paper);
}
.equation .answer { color: var(--dawn); }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; line-height: 1.15; letter-spacing: -0.4px; margin: 0 0 16px; max-width: 18ch; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.app-store { display: inline-block; line-height: 0; border-radius: 10px; }
.app-store img { display: block; height: 54px; width: auto; }

.phone {
  margin: 0; justify-self: center; width: min(340px, 100%);
  border-radius: 13.6% / 6.3%; overflow: hidden; box-shadow: 0 0 0 1px var(--track);
}
.phone img { width: 100%; height: auto; }

/* The answer is typed in digit by digit. No widths involved, so it can't clip with any font. */
@media (prefers-reduced-motion: no-preference) {
  .equation .answer span { opacity: 0; animation: type-digit 0.01s linear forwards; }
  .equation .answer span:nth-child(1) { animation-delay: 0.9s; }
  .equation .answer span:nth-child(2) { animation-delay: 1.15s; }
  @keyframes type-digit { to { opacity: 1; } }
}

.section { padding-top: 24px; padding-bottom: 88px; }
.section h2 { font-size: 30px; font-weight: 300; letter-spacing: -0.3px; margin: 0 0 32px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 720px; }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.timeline time { font-size: 34px; font-weight: 200; font-variant-numeric: tabular-nums; color: var(--dawn); line-height: 1; }
.timeline h3, .features h3 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.timeline p, .features p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin: 0; max-width: 900px; }
.features div { padding-left: 18px; border-left: 2px solid var(--track); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* The horizon: the app icon's sun rising over a line, where the page turns to morning. */
.horizon { display: block; width: 100%; height: auto; background: var(--night); }
.morning-section {
  --bg: var(--morning); --text: var(--ink); --muted: var(--clay); --accent: var(--dawn-deep);
  background: var(--morning); color: var(--ink); padding: 72px 0 96px;
}
.morning-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.morning-section h2 { font-size: clamp(44px, 6vw, 72px); font-weight: 300; letter-spacing: -1px; line-height: 1.05; margin: 0 0 20px; color: var(--ink); }
.morning-section p { font-size: 19px; color: var(--clay); margin: 0 0 16px; max-width: 36ch; }
.morning-section ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.morning-section li { padding-left: 26px; position: relative; color: var(--ink); }
.morning-section li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--dawn-deep); }
.morning-section .phone { box-shadow: none; width: min(300px, 100%); }
.morning-links { margin-top: 28px; font-size: 15px; display: flex; gap: 20px; }
.morning-links a { color: var(--clay); }

.promo .site-footer { border-top: 1px solid #E9E1D7; }
.promo-footer { background: var(--morning); color: var(--clay); }
.promo-footer a { color: var(--clay); }

@media (max-width: 820px) {
  .hero, .morning-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 24px; padding-bottom: 64px; }
  .equation { font-size: clamp(44px, 14vw, 96px); letter-spacing: -1px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 8px; }
  .shots li { flex: 0 0 72%; scroll-snap-align: start; }
  .timeline li { grid-template-columns: 84px minmax(0, 1fr); }
  .timeline time { font-size: 28px; }
}
