/* SETT — shared site styles.
   Dark ground because the app is used in a gym at 6am and the screenshots are
   dark; orange is the app's own energy colour, used for the things that matter
   (records, Pro, calls to action) and nothing else. */

@font-face {
  font-family: 'Manrope';
  src: url('/font/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ground: #0A0C0F;
  --surface: #14181D;
  --surface-2: #1B2027;
  --ink: #F2F4F6;
  --muted: #8B93A0;
  --hair: rgba(242, 244, 246, .10);
  --orange: #FF8A3D;
  --orange-deep: #DD5F0D;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }

a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Wordmark ───────────────────────────────────────────────────────────── */
.mark {
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  line-height: 1;
}
.mark span { color: var(--orange); }

/* ── Site chrome ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 15, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.topbar .mark { font-size: 1.4rem; }
.topbar nav { display: flex; gap: 1.6rem; align-items: center; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.topbar nav a:hover { color: var(--ink); }
@media (max-width: 34rem) { .topbar nav a.hide-sm { display: none; } }

footer.site {
  border-top: 1px solid var(--hair);
  margin-top: 6rem;
  padding: 2.5rem 0 4rem;
  color: var(--muted);
  font-size: .95rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ── Type ───────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.03;
  margin: 0 0 1.1rem; text-wrap: balance;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin: 0 0 .9rem; text-wrap: balance;
}
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 34em; }
.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange); margin: 0 0 .9rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--orange); color: #12161A; border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #FFA25F; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair); }
.btn.ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; background: var(--surface-2); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  /* The topbar is sticky, so anchor jumps would otherwise land with the
     heading tucked underneath it. */
  scroll-margin-top: 64px;
}
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 1.5rem;
}

/* ── Phone frame ────────────────────────────────────────────────────────── */
.phone {
  width: 100%; max-width: 300px; height: auto; display: block;
  border-radius: 34px;
  border: 1px solid rgba(242,244,246,.14);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}

/* ── Long-form pages (privacy / support) ────────────────────────────────── */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.doc h2 { font-size: 1.35rem; margin: 2.75rem 0 .6rem; }
.doc h2:first-of-type { margin-top: 2rem; }
.doc p, .doc li { color: #D6DAE0; }
.doc .updated { color: var(--muted); font-size: .95rem; margin: 0 0 2.25rem; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: .45rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.doc th { font-weight: 700; color: var(--ink); }
.doc .scroller { overflow-x: auto; }

.callout {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--orange);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 2rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: .4rem; color: var(--ink); }
