/* Waypoint marketing site.
 *
 * The palette is lifted straight from the app's TrailColors so the site and the
 * product read as one thing: forest greens for progress, a trail-blaze orange
 * for streaks and calls to action, parchment and bark for the calm reading
 * surface. Dark mode mirrors the app's night-trail theme. */

:root {
  --forest: #2e5d3e;
  --forest-deep: #234a30;
  --moss: #7ba05b;
  --blaze: #e07a3f;
  --ember: #d4552b;
  --brick: #9e3b2e;
  --bark: #4a3b2f;
  --stone: #8a8580;

  --bg: #faf6ef;
  --bg-raised: #ffffff;
  --bg-sunken: #f2ece1;
  --ink: #241d16;
  --ink-soft: #5f574c;
  --line: #e4dccd;

  --blaze-ui: var(--ember); /* the app drops to ember on light for contrast */
  --shadow: 0 1px 2px rgba(36, 29, 22, .06), 0 12px 32px rgba(36, 29, 22, .10);
  --shadow-soft: 0 1px 2px rgba(36, 29, 22, .05), 0 6px 18px rgba(36, 29, 22, .07);
  --radius: 20px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --forest: #3f7a53;
    --forest-deep: #2e5d3e;
    --moss: #7ba05b;
    --bg: #14181a;
    --bg-raised: #1b2023;
    --bg-sunken: #101516;
    --ink: #f2ede4;
    --ink-soft: #a9a49b;
    --line: #2c3336;
    --blaze-ui: #f2915a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 40px rgba(0, 0, 0, .45);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- waypoint mark ----------------------------------------------------- */
/* The pin body uses the app's own forest green (theme-aware, so it brightens
 * in dark mode exactly as the app does), and the cross is punched in the app's
 * background colour so it reads as cut out of the reading surface. */

.wp-pin-body { fill: var(--forest); }
/* Always the light (parchment) cross, in both themes — it reads cleanly on the
 * green in dark mode where the app-background colour would have gone muddy. */
.wp-pin-cross { fill: #faf6ef; }

/* The Android robot's eyes show the card behind it. */
.and-eye { fill: var(--bg-raised); }

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
/* :not(.btn) so the "Get the app" button keeps its own dark-on-orange text —
 * otherwise `.nav a` outweighs `.btn-primary` and the label goes muted grey,
 * which is unreadable on the blaze fill. */
.nav a:not(.btn) { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--blaze) 0%, var(--ember) 100%);
  color: #1e1408;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 24px rgba(224, 122, 63, .32);
}
.btn-primary:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 14px 30px rgba(224, 122, 63, .42); }
.btn-ghost {
  background: var(--bg-raised);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn svg { width: 20px; height: 20px; }

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 0%, color-mix(in srgb, var(--moss) 22%, transparent), transparent 70%),
    radial-gradient(50% 55% at 5% 20%, color-mix(in srgb, var(--blaze) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest);
  background: color-mix(in srgb, var(--moss) 22%, var(--bg));
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; color: var(--stone); font-size: .9rem; }
.hero-art { display: flex; justify-content: center; }

/* ---- sections ---------------------------------------------------------- */

section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--forest) 16%, var(--bg));
  color: var(--forest);
}
.card .ico svg { width: 24px; height: 24px; }
.card.blaze .ico { background: color-mix(in srgb, var(--blaze) 20%, var(--bg)); color: var(--ember); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---- screenshot gallery ------------------------------------------------ */

.gallery-band { background: var(--bg-sunken); border-block: 1px solid var(--line); }
.gallery {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
}
.shot { text-align: center; }
.shot .cap {
  margin-top: 18px;
  font-weight: 700;
  color: var(--ink);
}
.shot .cap span { display: block; font-weight: 500; color: var(--ink-soft); font-size: .9rem; }

/* ---- screenshots (real device captures) -------------------------------- */

.shot-img {
  display: block;
  width: 250px;
  max-width: 72vw;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  line-height: 0;
}
.shot-img img { display: block; width: 100%; height: auto; }
.hero-shot { width: 288px; }

/* ---- CTA + footer ------------------------------------------------------ */

.cta {
  text-align: center;
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #f4f1e8;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 64px) 28px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; }
.cta p { color: color-mix(in srgb, #fff 78%, transparent); font-size: 1.1rem; max-width: 44ch; margin: 0 auto 28px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--stone);
  font-size: .9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer .nav-links { margin-left: auto; display: flex; gap: 22px; }
.site-footer a { color: var(--ink-soft); }

/* ---- downloads --------------------------------------------------------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.dl-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.dl-card .platform { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dl-card .platform svg { width: 30px; height: 30px; }
.dl-card h3 { margin: 0; font-size: 1.3rem; }
.dl-card .meta { color: var(--stone); font-size: .85rem; margin: 2px 0 16px; }
.dl-card p { color: var(--ink-soft); margin: 0 0 22px; flex: 1; }
.dl-card .btn { width: 100%; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--blaze) 18%, var(--bg));
  color: var(--ember);
}
.steps {
  max-width: 780px; margin: 44px auto 0;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.steps h3 { margin-top: 0; }
.steps ol { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.steps li { margin: 8px 0; }
.steps code {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: .86em;
  color: var(--ink);
}

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { margin-top: 20px; }
  .features { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
