/*
  Shared stylesheet for the intent pages (/private-fitness-tracker/ and its
  siblings). The landing page keeps its own inline <style>: it is one file that
  has to paint immediately, and these are four files that share a skeleton, so
  they pull the opposite way.

  The tokens below are a copy of index.html's, deliberately. There is no build
  step to share them through, and a page whose colours drift from the landing
  page is a worse outcome than two lists that have to be edited together. If a
  token changes there, change it here.

  Paths are relative to this file at the site root, so `fonts/` resolves for a
  page sitting in any subdirectory.
*/

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500.woff2) format('woff2');
}

:root {
  color-scheme: dark;

  --bg: #0A0B09;
  --bg-soft: #0F110D;

  --text: #EDEEEA;
  --subtext: #A9ACA1;
  --muted: #8C8F86;
  --faint: #6E7167;
  --dim: #5C6054;
  --list: #C9CBC2;

  --border: #22251F;
  --border-soft: #262A20;
  --border-strong: #2F3628;
  --border-btn: #333A2C;
  --rule: #46521F;

  --brand: #95C11F;
  --brand-hi: #B4DC48;
  --on-brand: #0A0B09;

  --card: #0F110D;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 32px);
  --wrap: 1180px;
  /* Narrower than --wrap. These pages are mostly prose, and prose set to
     1180px is unreadable however good the type is. */
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, li, figure, dl, dt, dd, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hi); }
::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.read { max-width: var(--read); }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 9, .84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
header .wrap {
  padding-top: 12px; padding-bottom: 12px;
  min-height: 66px;
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: nowrap;
}
.brand {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand img { height: 26px; width: auto; }

.nav {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(13px, 2.2vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Same rule as the landing page: below this the links cannot fit beside the
   wordmark and the button, and a scrolled nav just shows its own middle. Only
   the ones that leave the page are kept. */
@media (max-width: 720px) {
  .nav a:not(.keep) { display: none; }
}

.cta-sm {
  flex: none;
  background: var(--brand); color: var(--on-brand);
  padding: 9px 15px; border-radius: 4px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.cta-sm:hover { background: var(--brand-hi); color: var(--on-brand); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(44px, 7vw, 78px); }

.crumb {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--text); }

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.04; letter-spacing: -.034em; font-weight: 600;
  text-wrap: balance;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--brand); }

.lede {
  margin-top: 24px;
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55;
  color: var(--subtext);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores.center { justify-content: center; }

.store {
  display: flex; flex-direction: column; gap: 1px;
  padding: 13px 24px; border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  text-align: left;
}
.store b {
  font-family: var(--sans);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  text-transform: none;
}
.store-primary { background: var(--brand); color: var(--on-brand); }
.store-primary:hover { background: var(--brand-hi); color: var(--on-brand); }
.store-secondary { color: var(--text); border: 1px solid var(--border-btn); }
.store-secondary:hover { border-color: var(--brand); color: var(--text); }

.fineprint {
  margin-top: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  letter-spacing: .02em;
}

/* ---------- prose body ---------- */
.prose { padding-top: clamp(50px, 7vw, 84px); }
.prose + .prose { padding-top: clamp(38px, 5vw, 60px); }

.prose h2 {
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.1; letter-spacing: -.028em; font-weight: 600;
  text-wrap: balance;
  max-width: 24ch;
}
.prose h3 {
  margin-top: 34px;
  font-size: 20px; font-weight: 600; letter-spacing: -.015em;
}
.prose p {
  margin-top: 18px;
  font-size: 17px; line-height: 1.62;
  color: var(--subtext);
  text-wrap: pretty;
}
.prose h2 + p { margin-top: 22px; }
.prose a { border-bottom: 1px solid var(--rule); }

/* Bulleted lists keep a mono rule rather than a disc: the site has no discs
   anywhere else, and one list would be the only place a browser default shows
   through. */
.prose ul { margin-top: 20px; display: grid; gap: 11px; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px; line-height: 1.58;
  color: var(--list);
  text-wrap: pretty;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px;
  background: var(--rule);
}

/* ---------- a stated limitation ---------- */
.note {
  margin-top: 30px;
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: var(--bg-soft);
  padding: 22px 24px;
}
.note .k {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.note p { margin-top: 11px; font-size: 16px; line-height: 1.6; color: var(--subtext); }

/* ---------- comparison table ---------- */
.cmp-scroll { margin-top: 30px; overflow-x: auto; }
.cmp {
  width: 100%; min-width: 520px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.cmp caption {
  caption-side: bottom;
  margin-top: 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--faint); text-align: left;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.cmp thead th {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
  border-bottom-color: var(--border-strong);
}
.cmp tbody th { font-weight: 500; color: var(--text); width: 34%; }
.cmp td { color: var(--muted); }
.cmp td.yes { color: var(--brand); }

/* ---------- questions ---------- */
.faq { padding-top: clamp(52px, 8vw, 88px); }
.faq h2 {
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.1; letter-spacing: -.028em; font-weight: 600;
}
.faq dl {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 40px 56px;
}
.faq dl > div { min-width: 0; border-top: 1px solid var(--border); padding-top: 22px; }
.faq dt { font-size: 19px; font-weight: 600; letter-spacing: -.012em; }
.faq dd { margin: 12px 0 0; font-size: 16px; line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.faq dd + dd { margin-top: 12px; }
.faq a { border-bottom: 1px solid var(--rule); }

/* ---------- links to the sibling pages ---------- */
.more { padding-top: clamp(52px, 8vw, 88px); }
.more h2 {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); font-weight: 400;
}
.more ul {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.more li { background: var(--bg); }
.more li a {
  display: block; height: 100%;
  padding: 24px 24px 28px;
  color: var(--text);
  border-bottom: 0;
}
.more li a:hover { background: var(--bg-soft); color: var(--text); }
.more .t { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.more .d { margin-top: 9px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- closing call to action ---------- */
.get { margin-top: clamp(72px, 10vw, 108px); }
.get .panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 20px;
  background: var(--bg-soft);
  padding: clamp(52px, 8vw, 80px) clamp(22px, 4vw, 40px);
  text-align: center;
}
/* Light rising off the bottom edge, clipped by the panel's overflow. */
.get .panel::before {
  content: "";
  position: absolute; inset: auto -10% -60% -10%; height: 70%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(149, 193, 31, .18), transparent 70%);
  pointer-events: none;
}
.get h2, .get p, .get .stores { position: relative; }
.get h2 {
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.04; letter-spacing: -.032em; font-weight: 600;
  text-wrap: balance;
}
.get .lede { margin: 22px auto 0; max-width: 50ch; font-size: clamp(16.5px, 2.1vw, 19px); line-height: 1.56; }
.get .stores { margin-top: 34px; }
.get .fineprint { margin-top: 22px; }

/* ---------- footer ---------- */
footer { margin-top: 100px; border-top: 1px solid var(--border); }
footer .wrap {
  padding-top: 36px; padding-bottom: 52px;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
footer .who { display: flex; align-items: center; gap: 10px; }
footer .who img { height: 20px; width: auto; opacity: .7; }
footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--faint); }
footer a:hover { color: var(--text); }
