:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --rule: #d2d2d7;
  --link: #0066cc;
  --ios-blue: #007aff;
  /* The app's own zone colours, from Helpers.swift. */
  --zone1: #38a3f7;
  --zone2: #3ff1e5;
  --zone3: #bcfd0b;
  --zone4: #ff810a;
  --zone5: #fe1473;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #424245;
    --link: #2997ff;
    --ios-blue: #0a84ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
header img { width: 48px; height: 48px; border-radius: 11px; }
header a { color: var(--text); text-decoration: none; font-weight: 600; }
h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 4px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
a { color: var(--link); }
.updated { color: var(--muted); margin: 0 0 24px; }
.summary { border-left: 3px solid var(--rule); padding: 4px 0 4px 16px; color: var(--muted); }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

/* The five zone colours as a rule across the top: the app's whole idea in one line. */
.zonebar { display: flex; height: 6px; }
.zonebar span { flex: 1; }
.zonebar span:nth-child(1) { background: var(--zone1); }
.zonebar span:nth-child(2) { background: var(--zone2); }
.zonebar span:nth-child(3) { background: var(--zone3); }
.zonebar span:nth-child(4) { background: var(--zone4); }
.zonebar span:nth-child(5) { background: var(--zone5); }

/* Home page */
.hero { padding: 8px 0 4px; }
.hero-title { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.hero .app-icon { width: 104px; height: 104px; border-radius: 23px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.hero h1 { font-size: 34px; margin: 0 0 4px; }
.tagline { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
/* The same download button as videotag.app: a centred iOS-blue pill. */
.cta { text-align: center; margin: 24px 0 10px; }
.badge { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--ios-blue); color: #fff;
  font-weight: 600; font-size: 18px; text-decoration: none; }
.badge:hover { opacity: 0.9; }
.badge-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.features { list-style: none; padding: 0; margin: 0; }
.features li { margin: 0 0 20px; }
.features strong { display: block; font-size: 19px; }
.caption { color: var(--muted); font-size: 14px; text-align: center; margin: -4px 0 28px; }

/* Screenshots sit at roughly phone size rather than stretched across the column. */
.shots { display: flex; gap: 16px; justify-content: center; margin: 20px 0 8px; }
.shots img { width: 100%; max-width: 210px; border-radius: 18px; display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16); }
@media (max-width: 420px) { .shots { gap: 10px; } }
.watchshot { display: block; width: 160px; margin: 20px auto 8px; border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16); }

/* A plain-language note that is true but easy to miss, e.g. the one-workout limit. */
.note { border-left: 3px solid var(--zone4); padding: 2px 0 2px 14px; color: var(--muted); margin: 12px 0; }

/* "I made this" - a person talking, so the photo stands beside the words
   rather than having them wrap underneath it. Same photo as sessioncam.app. */
.about { display: flex; align-items: flex-start; gap: 20px; margin: 16px 0; }
.about > div { flex: 1; min-width: 0; }
.about p:first-child { margin-top: 0; }
.mug { flex: none; width: 150px; height: 200px; border-radius: 14px; object-fit: cover; }
@media (max-width: 420px) { .about { gap: 14px; } .mug { width: 108px; height: 144px; } }

.faq dt { font-weight: 600; margin: 20px 0 2px; }
.faq dd { margin: 0; color: var(--text); }

@media (max-width: 420px) {
  .hero-title { gap: 14px; }
  .hero .app-icon { width: 84px; height: 84px; border-radius: 19px; }
  .hero h1 { font-size: 30px; }
  .tagline { font-size: 16px; }
}

/* The zone 5 and zone 3 screenshots, side by side. They carried hand-drawn
   speech bubbles until Oct 2026; those are now only on the App Store panels,
   so these are plain framed screenshots built by scripts/website_images.py. */
.pairshots { display: flex; gap: 8px; justify-content: center; align-items: flex-start; margin: 18px 0 4px; }
/* min-width:0 matters: as flex items these default to min-width:auto, which
   refuses to shrink below the intrinsic size, so the pair stayed 600px wide
   and scrolled the page sideways on every phone. */
/* height:auto is required, not cosmetic: the markup carries width/height
   attributes so the browser reserves the right space before the image loads,
   and without it that height attribute wins and the phones render stretched. */
.pairshots img { width: 100%; max-width: 300px; min-width: 0; height: auto; display: block; }
@media (max-width: 420px) { .pairshots { gap: 0; } }

/* The watch is a concession for people whose watch is their only monitor, not
   a headline feature, so it sits beside its paragraph rather than taking a
   screen of its own. */
.haswatch { overflow: hidden; }
.watchfloat { float: right; width: 92px; margin: 0 0 8px 16px; border-radius: 18px; }
@media (max-width: 420px) { .watchfloat { width: 84px; margin-left: 12px; } }

/* The generated "Try Stan's other apps" block carries its own side gutter,
   for sites where it sits full-width. Inside our main, which already pads
   16px, that double-pads and the block sits 20px right of everything else.
   Cancel the block's gutter rather than editing the block: it is generated
   by ~/Developer/stan-apps-footer and any edit there is lost next build.
   Selector is "main .sj-apps" on purpose: the block inlines its own <style>
   further down the document, so an equal-specificity rule here would lose
   on source order. */
main .sj-apps { padding-left: 0; padding-right: 0; }
