/* Usual Health site. System fonts (SF Pro on Apple devices, as in the app),
   the app's palette, no external requests. Placeholder mark until the
   design team's files arrive.
   Layout: full-width bands, each with an inner .wrap; the home hero is a
   dark band whatever the theme, with a week of morning briefs as its picture. */
:root {
  --bg: #F4F7F6; --surface: #FFFFFF; --panel: #EEF3F2; --line: #D3DEDB; --line-soft: #E3EAE9;
  --fg: #0D1719; --fg2: #475854; --fg3: #5F716C;
  --accent: #0F7A5F; --band: rgba(15, 122, 95, 0.12); --notice: #8A5A00;
  /* the dark hero, the same in both themes */
  --ink: #0B1114; --ink-2: #13201F; --ink-3: #192B2A; --ink-line: #243D3C;
  --ink-fg: #ECF2F0; --ink-fg2: #A9BCB7; --ink-teal: #54D6AE; --ink-amber: #E8B45A; --ink-band: rgba(84, 214, 174, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1114; --surface: #13201F; --panel: #192B2A; --line: #243D3C; --line-soft: #1A2C2B;
    --fg: #ECF2F0; --fg2: #94A9A4; --fg3: #7A948E;
    --accent: #54D6AE; --band: rgba(84, 214, 174, 0.14); --notice: #E8B45A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* header and footer */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.site-head nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.site-head nav a { color: var(--fg2); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--accent); }
.page-home .head-band { background: var(--ink); }
.page-home .wordmark { color: var(--ink-fg); }
.page-home .site-head nav a { color: var(--ink-fg2); }
.page-home .m-bg { fill: var(--ink-teal); }
.page-home .m-band, .page-home .m-dot { fill: var(--ink); }
.foot-band { border-top: 1px solid var(--line); margin-top: 96px; }
.site-foot { padding-block: 28px 48px; display: grid; gap: 14px; }
.foot-main { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.foot-brand { font-family: var(--font-display); font-weight: 700; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot nav a { color: var(--fg2); }
.fine { color: var(--fg3); font-size: 0.85rem; max-width: 80ch; }

/* placeholder mark (replace with the design team's symbol) */
.m-bg { fill: var(--accent); }
.m-band { fill: var(--bg); opacity: 0.35; }
.m-dot { fill: var(--bg); }

/* hero */
.hero { background: var(--ink); color: var(--ink-fg); padding-block: 40px 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 4.9rem); font-weight: 800; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--ink-teal); }
.hero .lede { font-size: 1.22rem; color: var(--ink-fg2); max-width: 34ch; margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--ink-teal); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 12px 20px; }
.hero .works { color: var(--ink-fg2); font-size: 0.95rem; }

/* a week of morning briefs, drawn the way the app draws them */
.week { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 34px; padding: 18px; display: grid; gap: 10px; max-width: 430px; justify-self: end; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.week .day { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-fg2); padding: 6px 6px 0; }
.brief { background: var(--ink-3); border: 1px solid var(--ink-line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; }
.brief .t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-teal); }
.brief .s { font-size: 0.88rem; color: var(--ink-fg2); line-height: 1.45; }
.brief.quiet { padding-block: 10px; }
.brief.flag { border-color: rgba(232, 180, 90, 0.55); background: linear-gradient(180deg, rgba(232, 180, 90, 0.10), rgba(232, 180, 90, 0.03)); }
.brief.flag .t { color: var(--ink-amber); font-size: 1.2rem; }
.brief.flag .s { color: var(--ink-fg); font-size: 0.95rem; }
.brief .act { justify-self: start; margin-top: 8px; border: 1px solid var(--ink-line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.85rem; color: var(--ink-teal); }

/* sections */
.section { padding-top: 104px; }
.kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.big { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.06; max-width: 18ch; margin-top: 12px; }
.big em { font-style: normal; color: var(--accent); }
.sub { font-size: 1.15rem; color: var(--fg2); max-width: 58ch; margin-top: 18px; }
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 12px; margin-top: 36px; }
.band svg { width: 100%; height: auto; display: block; }
.b-fill { fill: var(--band); }
.b-edge { stroke: var(--accent); stroke-opacity: 0.35; stroke-dasharray: 4 5; fill: none; }
.b-dot { fill: var(--accent); }
.b-odd { fill: var(--notice); }
.b-text { fill: var(--fg3); font: 600 13px var(--font); }
.b-text-odd { fill: var(--notice); font: 700 13px var(--font); }
.b-gen { stroke: var(--fg3); stroke-opacity: 0.5; stroke-dasharray: 2 6; }

.catches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 40px; }
.catch { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.catch .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--notice); }
.catch h3 { font-size: 1.3rem; line-height: 1.2; }
.catch p { color: var(--fg2); font-size: 0.98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .shot img { width: 100%; max-width: 360px; height: auto; aspect-ratio: 552 / 1200; border-radius: 34px; border: 1px solid var(--line); display: block; margin-inline: auto; background: var(--panel); }
.points { display: grid; gap: 16px; margin-top: 26px; list-style: none; padding: 0; }
.points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; color: var(--fg2); }
.points li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 8px; margin-left: 4px; }
.points strong { color: var(--fg); }
.ask { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-weight: 600; }
.ask span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }

.quiet-band { background: var(--panel); border-radius: 28px; padding: 48px clamp(22px, 5vw, 56px); margin-top: 104px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.tally { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tally i { aspect-ratio: 1; border-radius: 8px; background: var(--accent); opacity: 0.85; display: block; }
.tally i.o { background: var(--notice); opacity: 1; }
.tally-cap { font-size: 0.9rem; color: var(--fg3); margin-top: 10px; }

.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; margin-top: 36px; }
.screens figure { margin: 0; display: grid; gap: 10px; }
.screens img { width: 100%; height: auto; aspect-ratio: 552 / 1200; border-radius: 28px; border: 1px solid var(--line); background: var(--panel); display: block; }
.screens figcaption { font-size: 0.92rem; color: var(--fg2); }
.shots-note { margin-top: 14px; }

.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 36px; }
.privacy-grid div { border-top: 3px solid var(--accent); padding-top: 14px; display: grid; gap: 6px; }
.privacy-grid h3 { font-size: 1.2rem; }
.privacy-grid p { color: var(--fg2); }

.closing { margin-top: 112px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.closing p { color: var(--fg2); font-size: 1.1rem; }
.closing .pill { background: var(--accent); color: var(--bg); }

/* text pages */
.doc { max-width: 700px; padding-block: 40px 0; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.08; }
.doc h2 { font-size: 1.3rem; margin-top: 18px; }
.doc .meta { color: var(--fg3); font-size: 0.95rem; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.contact .addr { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; user-select: all; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p + p { margin-top: 8px; }

@media (max-width: 860px) {
  .hero-grid, .split, .quiet-band { grid-template-columns: minmax(0, 1fr); }
  .week { justify-self: start; }
  .split .shot { order: 2; }
}
@media (max-width: 520px) {
  .site-head { flex-wrap: wrap; }
  .hero { padding-top: 20px; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
