:root {
  /* Rule V3: day palette (option A) - CSS custom properties only, no inline colours in JS. */
  --accent: #52B788;
  --accent-deep: #2E7D5B;
  --accent-text: #14261E;
  --text: #14261E;
  --text-secondary: #3C5449;
  --bg: #F7FBF9;
  --card-bg: #FFFFFF;
  --tint-bg: #EEF7F1;
  --line: #DCEBE2;
  --line-strong: #C8E0D1;
  --error: #B3441F;
  /* R12: warm accent tokens for tickets/rewards and seasonal garden accents - palette stays
     green-first (CLAUDE.md Brand: all-green, no other hues); warm is used sparingly, as a small
     accent. */
  --warm-accent: #C77D3A;
  --warm-tint: #F6E9DB;
  /* Visual pass (2026-10-03): the warm accent is decorative only (4:1 at best); warm TEXT uses this
     darker amber, 5.1:1 on the warm tint and 5.6:1 on white. Night keeps --warm-accent (7:1+). */
  --warm-text: #8A5220;
  /* C-63 design polish (orchestrator brief): the Visual guide's title band is always a dark
     filled block (never the plain page background), so its own colour does not simply follow
     --bg/--accent-deep the way the rest of the page does - teal-deep in day, forest-2 in night
     (neither of which is --accent-deep's own night value, mint). QA polish (PR #119 follow-up):
     the night value was originally --bg's own forest #0F2A20, which made the band invisible
     against the page (no edge at all); forest-2 #143527 is distinct from both --bg (#0F2A20) and
     --card-bg (also #143527, so it reads as a normal card-level surface, not a special colour) -
     contrast against the white title is 13.4:1 and against the mint promise text 8.6:1, both well
     over the 4.5:1 minimum. */
  --vguide-band-bg: #2E7D5B;
  /* Rule V17: the five Play domains (after play.igrow.co) - an icon stroke colour, a darker text
     colour (at least 4.5:1 on the card colour) and a soft tint. Recovery is a sage green here, not
     the games hub's own cooler hue (CLAUDE.md Brand: all-green family). */
  --dom-energy: #C77D3A; --dom-energy-text: #9A5B22; --dom-energy-tint: #F6E9DB;
  --dom-calm: #52B788; --dom-calm-text: #1C5F43; --dom-calm-tint: #E3F4EA;
  --dom-recovery: #5B8A83; --dom-recovery-text: #3F6861; --dom-recovery-tint: #E4EFEC;
  --dom-focus: #2D6A4F; --dom-focus-text: #2D6A4F; --dom-focus-tint: #DCEDE3;
  --dom-connection: #B5546A; --dom-connection-text: #9C3F55; --dom-connection-tint: #F6E6EA;
  --dom-learn: #5B6B62; --dom-learn-text: #4A5A51; --dom-learn-tint: #EDF1EE;
}

/* Rule V3: night palette (option C), selected by prefers-color-scheme under Auto, or forced by
   data-theme="night" (the Me switch, rule V3). data-theme="day" forces the day palette back on
   even when the OS prefers dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --accent: #52B788;
    --accent-deep: #8FE0B4;
    --accent-text: #0F2A20;
    --text: #F6FBF8;
    --text-secondary: #C8E0D1;
    --bg: #0F2A20;
    --card-bg: #143527;
    --tint-bg: #143527;
    --line: #1C5F43;
    --line-strong: #1C5F43;
    --error: #E0A08A;
    --warm-accent: #E0A08A;
    --warm-text: #E0A08A;
    --warm-tint: #2A3A2C;
    --vguide-band-bg: #143527;
    --dom-energy: #E3A96B; --dom-energy-text: #E8B27A; --dom-energy-tint: #3A2E1F;
    --dom-calm: #8FE0B4; --dom-calm-text: #8FE0B4; --dom-calm-tint: #1D4A36;
    --dom-recovery: #9CC9C0; --dom-recovery-text: #A9D2C9; --dom-recovery-tint: #1D423C;
    --dom-focus: #7FC8A0; --dom-focus-text: #8ED3AC; --dom-focus-tint: #1A4632;
    --dom-connection: #E59AAB; --dom-connection-text: #EBA8B7; --dom-connection-tint: #43292F;
    --dom-learn: #C8E0D1; --dom-learn-text: #C8E0D1; --dom-learn-tint: #1E3D30;
  }
}
:root[data-theme="night"] {
  --accent: #52B788;
  --accent-deep: #8FE0B4;
  --accent-text: #0F2A20;
  --text: #F6FBF8;
  --text-secondary: #C8E0D1;
  --bg: #0F2A20;
  --card-bg: #143527;
  --tint-bg: #143527;
  --line: #1C5F43;
  --line-strong: #1C5F43;
  --error: #E0A08A;
  --warm-accent: #E0A08A;
  --warm-text: #E0A08A;
  --warm-tint: #2A3A2C;
  --vguide-band-bg: #143527;
  --dom-energy: #E3A96B; --dom-energy-text: #E8B27A; --dom-energy-tint: #3A2E1F;
  --dom-calm: #8FE0B4; --dom-calm-text: #8FE0B4; --dom-calm-tint: #1D4A36;
  --dom-recovery: #9CC9C0; --dom-recovery-text: #A9D2C9; --dom-recovery-tint: #1D423C;
  --dom-focus: #7FC8A0; --dom-focus-text: #8ED3AC; --dom-focus-tint: #1A4632;
  --dom-connection: #E59AAB; --dom-connection-text: #EBA8B7; --dom-connection-tint: #43292F;
  --dom-learn: #C8E0D1; --dom-learn-text: #C8E0D1; --dom-learn-tint: #1E3D30;
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
/* clip, not hidden, on body: overflow-x hidden on body makes it a scroll container and breaks the sticky top bar. */
html { overflow-x: hidden; }
body { overflow-x: clip; }
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2 { font-family: Georgia, "Iowan Old Style", Palatino, serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent-deep); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 16px; }

/* Sticky top bar (Ben, 2026-10-01: sign in was not obvious enough). In dark mode the logo's dark
   green would vanish, so it sits on a small white rounded backing. */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
/* Brand names keep their casing inside an uppercase eyebrow (house rule: iGROWFIT, never IGROWFIT). */
.eyebrow-brand { text-transform: none; }
.logo-img { display: block; width: 140px; height: auto; }
.topbar .btn-compact { padding: 8px 22px; min-height: 44px; font-size: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) .logo-img { background: #FFFFFF; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
}
:root[data-theme="night"] .logo-img { background: #FFFFFF; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }

.hero { position: relative; overflow: hidden; background: var(--tint-bg); padding: 96px 20px 56px; }
.hero .banner-svg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 170px; }
.hero #banner-hills-svg { top: 62px; height: 108px; }
.hero-text { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 38px; margin-bottom: 14px; }
.hero-sub { color: var(--text-secondary); font-size: 18px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; min-height: 52px; }
.btn-primary { background: var(--accent-deep); color: var(--bg); font-size: 18px; }
.btn-secondary { background: transparent; color: var(--accent-deep); border: 2px solid var(--accent-deep); }
.hero-note { color: var(--text-secondary); font-size: 14px; margin-top: 14px; }
.cta-band { background: var(--tint-bg); text-align: center; }
.cta-band h2 { font-size: 28px; margin-bottom: 20px; }
.cta-band .hero-actions { max-width: 480px; }

.band { padding: 48px 20px; }
.band > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.band.tint { background: var(--tint-bg); }
.private-list, .tiles, .people { list-style: none; padding: 0; margin: 0 auto; }
.private-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.private-list li:last-child { border-bottom: none; }
.ico { flex-shrink: 0; display: inline-flex; color: var(--accent-deep); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.tile .ico { margin-bottom: 10px; }
.tile h2 { font-size: 20px; margin-bottom: 4px; }
.tile p { color: var(--text-secondary); font-size: 15px; }

/* Ben, 2026-10-01: small, subtle circles rather than large portraits. */
.people { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 12px; }
.people li { display: flex; align-items: center; gap: 12px; }
.people img { display: block; width: 56px; height: 56px; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--tint-bg); }
.people p { margin: 0; font-size: 14px; font-weight: 600; max-width: 200px; }
.team-line { color: var(--text-secondary); margin-bottom: 16px; }
.boilerplate { margin-bottom: 18px; }
.stats { font-family: Georgia, "Iowan Old Style", Palatino, serif; font-size: 20px; font-weight: 600; color: var(--accent-deep); }
.rating { color: var(--text-secondary); margin-top: 4px; margin-bottom: 20px; }
.hpb { border-left: 3px solid var(--accent); background: var(--tint-bg); border-radius: 6px; padding: 14px 16px; font-size: 15px; }

.faq details { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 48px; }
.faq details p { padding: 0 16px 16px; color: var(--text-secondary); }
.crisis { background: var(--card-bg); border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 16px; margin-top: 24px; }
.crisis h2 { font-size: 20px; margin-bottom: 10px; }
.crisis p { margin-bottom: 8px; }
.need-help-contact-card { margin: 0 0 12px; }
.need-help-contact-heading { font-weight: 600; color: var(--text); margin: 0 0 4px; }
.need-help-contact-line { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.need-help-contact-line:last-child { border-bottom: none; }
.need-help-contact-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-bg); color: var(--accent-deep); }
.danger-line { display: flex; align-items: flex-start; gap: 6px; color: var(--error); font-weight: 400; font-size: 16px; }
.danger-line svg { flex-shrink: 0; margin-top: 1px; }

.foot { padding: 28px 20px 40px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.foot-brand { font-weight: 600; margin-bottom: 6px; }

.tour-link { margin-top: 12px; font-weight: 600; }
.tour-link a { display: inline-block; padding: 12px 0; min-height: 44px; }

a:focus-visible, summary:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (min-width: 760px) {
  .topbar { padding: 10px 32px; }
  .logo-img { width: 160px; }
  .hero { padding: 80px 32px 88px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: auto; }
  .cta-band .hero-actions { justify-content: center; max-width: none; }
  .hero .banner-svg { height: 100%; inset: 0; }
  .hero #banner-hills-svg { top: auto; bottom: 0; height: 140px; }
  .hero h1 { font-size: 56px; }
  .hero-text { max-width: 880px; padding-right: 32%; }
  .band { padding: 72px 32px; }
  .band > * { max-width: 880px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }

}
