/* flexcalorie.com. Tokens are the app's (apps/mobile/theme/tokens.ts, gradient.tsx).
   No web fonts and no script: the privacy policy says this site sets no cookies and loads
   nothing from anyone else, and the CSP in _headers enforces it. */
:root {
  --ground: #F5F7F3; --surface: #FFFFFF; --surface2: #EFF2EC;
  --ink: #15211C; --muted: #5E6B64; --hairline: #E3E8DF;
  --brand: #127A5E; --brand-ink: #0C5744;
  --deep-a: #127A5E; --deep-b: #0E8FA8;      /* holds white type */
  --sig-a: #00B1CE; --sig-b: #97E875;        /* the icon; marks only, never under type */
  --shadow: 0 1px 2px rgba(21,33,28,.05), 0 12px 32px rgba(21,33,28,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0C1411; --surface: #141F1A; --surface2: #1B2822;
    --ink: #E9F0EB; --muted: #93A29A; --hairline: #253730;
    --brand: #2FC095; --brand-ink: #4FD6AE;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--sig-a), var(--sig-b)); }
a { color: var(--brand-ink); text-underline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brandmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brandmark img { width: 36px; height: 36px; border-radius: 9px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 18px; }
header.site nav a:hover { color: var(--ink); }

.hero { padding: 48px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero img { width: 168px; height: 168px; border-radius: 38px; box-shadow: var(--shadow); }
.eyebrow { color: var(--brand-ink); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.cta { display: inline-block; padding: 14px 22px; border-radius: 16px; color: #fff; font-weight: 600; text-decoration: none;
  background: linear-gradient(90deg, var(--deep-a), var(--deep-b)); }
.cta.soon { cursor: default; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 16px 0 8px; }
.card { background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.note { margin: 28px 0 8px; padding: 20px 24px; border-radius: 22px; background: var(--surface2); color: var(--muted); font-size: 16px; }
.note strong { color: var(--ink); }

main.doc { padding: 24px 0 48px; }
main.doc h1 { font-size: clamp(30px, 5vw, 40px); }
main.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.01em; scroll-margin-top: 16px; }
main.doc h3 { font-size: 18px; margin: 28px 0 8px; }
main.doc li { margin: 6px 0; }
main.doc blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--hairline); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); }
/* Three columns squeezed into a phone are one word per line; let the table keep a readable
   width and scroll inside its box instead. */
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface2); font-weight: 600; }

footer.site { border-top: 1px solid var(--hairline); margin-top: 40px; padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 4px 0; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero img { width: 112px; height: 112px; border-radius: 26px; order: -1; }
  header.site nav a { margin-left: 14px; }
}
