/* Ground State companion pages. Text first, system fonts, no trackers. */
:root {
  /* The Ground palette, exactly as the app defines it (mobile/src/theme/palettes.ts, "ground"). Light only. */
  --bg: #F5F3EF; --surface: #ECE9E3; --raised: #FBFAF7; --line: #DEDAD2;
  --muted: #6B6860; --text: #1C1C1A; --signal: #2A6B5C; --accent: #7EC8B0; --on-signal: #FFFFFF;
  --link: var(--signal);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--surface); }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
header { padding-top: 1.5rem; }
.mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 600; }
.mark svg { width: 2rem; height: 1rem; }
nav ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .95rem; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }
main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1rem 0 .75rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, li { max-width: 36rem; overflow-wrap: anywhere; }
.quiet { color: var(--muted); }
.card { background: var(--surface); border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0; }
.card > :first-child { margin-top: 0; } .card > :last-child { margin-bottom: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.choices a { display: block; text-align: center; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; background: var(--raised); }
@media (max-width: 26rem) { .choices { grid-template-columns: 1fr; } }
dl dt { font-weight: 600; margin-top: 1rem; } dl dd { margin: .25rem 0 0; }
footer { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2.5rem; font-size: .92rem; color: var(--muted); }
/* Support links stay hidden unless site.js decides they may show (never when
   opened from the app on a non-US or unknown App Store storefront). */
[data-support] { display: none !important; }
.show-support [data-support] { display: revert !important; }
.show-support .choices[data-support] { display: grid !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Home page */
.lede { font-size: 1.15rem; }
.button { display: inline-block; background: var(--signal); color: var(--on-signal); padding: .75rem 1.1rem; border-radius: 12px; font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.signed-in { display: none; }
.has-session .signed-in { display: block; }
/* Real app screenshots */
.shot { margin: 1.25rem 0; max-width: 16rem; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--raised); }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1.25rem 0; }
.shots .shot { margin: 0; max-width: none; }
@media (max-width: 34rem) {
  .shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .shots .shot { scroll-snap-align: start; }
  .shot { max-width: 72vw; }
}

