/* GLP-1 Tracker — one stylesheet, no framework, no web fonts.
 *
 * No web font is a performance decision and a privacy one: a Google Fonts
 * request would be the only third-party call this site makes, on a site whose
 * whole argument is that nothing about you is sent anywhere.
 *
 * The palette is taken from the app icon so the site and the App Store listing
 * read as the same product. */

:root {
  --bg: #08312e;
  --bg-2: #0b3d3a;
  --card: #0f4a46;
  --card-2: #11534e;
  --line: #17605a;
  --ink: #eefdf6;
  --body: #cdeade;
  --sub: #9ed3c3;
  --accent: #5ee8bc;
  --accent-ink: #06302c;
  --radius: 16px;
  --wrap: 1080px;
  --prose: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

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

/* Keyboard users land here first; it stays out of the way otherwise. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; z-index: 10;
}
.skip:focus { left: 0; }

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

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

header.site {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 22px 0 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { width: 44px; height: 44px; border-radius: 11px; }

nav[aria-label="Main"] a {
  color: var(--sub); text-decoration: none; font-weight: 600;
  margin-left: 20px; font-size: 15px;
}
nav[aria-label="Main"] a:hover { color: var(--accent); }
nav[aria-label="Main"] a[aria-current="page"] {
  color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
@media (max-width: 560px) {
  nav[aria-label="Main"] a { margin: 0 18px 0 0; }
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(31px, 5.2vw, 46px); line-height: 1.12;
  letter-spacing: -0.028em; color: var(--ink); margin: 26px 0 14px;
}
h2 {
  font-size: clamp(22px, 3vw, 28px); line-height: 1.22;
  letter-spacing: -0.02em; color: var(--ink); margin: 52px 0 14px;
}
h3 { font-size: 18px; color: var(--accent); margin: 0 0 8px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-underline-offset: 3px; }

.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--sub); line-height: 1.55; }
.fine { font-size: 14px; color: var(--sub); line-height: 1.6; }
.byline { font-size: 14px; color: var(--sub); margin: 0 0 22px; }

ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

blockquote {
  margin: 22px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--ink);
}
blockquote p { margin: 0 0 10px; font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

dl { margin: 0 0 20px; }
dt { color: var(--accent); font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; }

.formula {
  background: #062825; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-size: 16px; color: var(--ink);
  overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); }
th { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

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

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; padding: 15px 30px; border-radius: 12px;
  text-decoration: none; font-size: 17px; letter-spacing: -0.01em;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 11px 22px; font-size: 15px; }
.cta { margin: 26px 0 12px; }

/* ---------- home ---------- */

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 26px 0 8px;
}
.hero-shot { text-align: center; }
.hero-shot img {
  border-radius: 26px; box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-shot img { max-width: 260px; }
}

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.grid p { margin: 0; font-size: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 42px;
  align-items: center; margin: 56px 0;
}
.feature.reverse { grid-template-columns: 1fr 300px; }
.feature.reverse img { order: 2; }
.feature img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
.feature h2 { margin-top: 0; }
@media (max-width: 820px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse img { order: 0; }
  .feature img { max-width: 240px; }
}

.quiet, .closing {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px; margin: 52px 0;
}
.quiet h2, .closing h2 { margin-top: 0; }
.closing { text-align: center; }
.closing p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { margin: 56px 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--ink);
  list-style: none; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* ---------- blog ---------- */

.crumbs { font-size: 14px; color: var(--sub); margin: 18px 0 0; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.post { max-width: var(--prose); margin: 0 auto; }
.post h2 { margin-top: 44px; }
.post-hero {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  margin: 8px 0 30px; display: block;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin: 20px 0;
}
.card h2 { margin: 0 0 4px; font-size: 22px; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { color: var(--accent); }
.card p:last-child { margin-bottom: 0; }

.note {
  background: #062825; border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 22px; margin: 44px 0 0;
}
.note p { margin: 0; font-size: 15px; color: var(--sub); }

/* ---------- footer ---------- */

footer.site {
  margin-top: 76px; padding-top: 28px; border-top: 1px solid var(--line);
}
footer.site .fine { margin-bottom: 14px; }
footer.site a { color: var(--sub); }
footer.site a:hover { color: var(--accent); }
footer.site .btn { color: var(--accent-ink); }

/* The support and privacy pages were written as .card blocks; keep them
 * readable at prose width rather than letting them span the full grid. */
main > .card, main > h1, main > h2, main > p, main > ul, main > ol, main > table {
  max-width: var(--prose);
}

/* ---------- product video ---------- */

.showreel { margin: 60px 0; }
.showreel h2 { margin-bottom: 8px; }
.showreel .lede { margin-bottom: 22px; }
.reel {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
}
