/* The News Bakery. One stylesheet; build.mjs appends the per-app accent colors. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --text: #1a1714;
  --muted: #57534e;
  --line: rgba(26, 23, 20, .10);
  --brand: #b45309;
  --brand-text: #9a3f07;
  --brand-btn: #9a3f07;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(26, 23, 20, .05), 0 8px 24px -8px rgba(26, 23, 20, .12), 0 24px 48px -24px rgba(26, 23, 20, .14);
  --shadow-lg: 0 2px 6px rgba(26, 23, 20, .06), 0 24px 60px -20px rgba(26, 23, 20, .28);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Per-app values. The site-wide defaults fall back to the brand. */
  --a: var(--brand);
  --a-text: var(--brand-text);
  --a-btn: var(--brand-btn);
  --a-on: var(--on-brand);
  --a-tint: rgba(180, 83, 9, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --bg-2: #161412;
    --surface: #1b1917;
    --text: #f5f3ef;
    --muted: #b3ada6;
    --line: rgba(245, 243, 239, .10);
    --brand: #f59e0b;
    --brand-text: #fbbf24;
    --brand-btn: #fbbf24;
    --on-brand: #1a1210;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px -20px rgba(0, 0, 0, .8);
    --a-tint: rgba(245, 158, 11, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--a-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--a-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); letter-spacing: -.035em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 650; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--a-text); margin-bottom: 18px; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px; z-index: 50; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 10px 12px; border-radius: 999px; transition: background .2s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg-2); }
@media (max-width: 460px) {
  .brand { gap: 8px; }
  .brand span { font-size: .92rem; }
  .brand svg { width: 30px; height: 30px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 7px; font-size: .88rem; }
}
@media (max-width: 384px) { .site-nav .hide-xs { display: none; } }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.band { background: var(--bg-2); }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.btn-primary { background: var(--a-btn); color: var(--a-on); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s var(--ease); }
.store:hover { transform: translateY(-1px); }
.store img { height: 48px; width: auto; }
.stores.sm .store img { height: 40px; }
.soon { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--text) 35%, transparent); color: var(--muted); font-weight: 600; font-size: .92rem; }
.stores.sm .soon { height: 40px; font-size: .85rem; padding: 0 12px; }
.soon svg { width: 16px; height: 16px; }
.price { font-weight: 600; color: var(--text); }

/* Home hero */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(60% 50% at 75% 20%, var(--a-tint), transparent 70%), radial-gradient(40% 40% at 10% 0%, color-mix(in srgb, var(--a) 7%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks svg { width: 16px; height: 16px; color: var(--a-text); flex: none; }
.fan { position: relative; height: clamp(380px, 46vw, 560px); }
.fan figure { position: absolute; margin: 0; width: 46%; top: 50%; left: 50%; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.fan figure:nth-child(1) { transform: translate(-108%, -46%) rotate(-7deg); }
.fan figure:nth-child(2) { transform: translate(-50%, -54%); z-index: 2; }
.fan figure:nth-child(3) { transform: translate(8%, -46%) rotate(7deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .fan { height: clamp(300px, 92vw, 460px); margin-top: 8px; }
  .fan figure { width: 42%; }
}

/* App cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(180deg, var(--a-tint), transparent); pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card > * { position: relative; }
.card-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--a) 60%, transparent); }
.card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--a-text); }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .stores { position: relative; z-index: 2; }
.card .more { font-weight: 650; color: var(--a-text); font-size: .95rem; }
.card-soon { justify-content: center; align-items: flex-start; border-style: dashed; box-shadow: none; background: transparent; }
.card-soon::before { display: none; }

/* Why pay once */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.price-box { border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); }
.price-box .big { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 10px 0 8px; }
.price-box.them .big { color: var(--muted); }
.price-box.us { background: linear-gradient(160deg, color-mix(in srgb, var(--a) 14%, var(--surface)), var(--surface) 70%); box-shadow: var(--shadow); }
.price-box .label { font-weight: 650; font-size: .95rem; }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.points li { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.points strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: .97rem; }
.pt-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--a-tint); color: var(--a-text); margin-bottom: 14px; }
.pt-icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* App page */
.app-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, var(--a-tint), transparent 70%), linear-gradient(180deg, var(--a-tint), transparent 60%); z-index: -1; pointer-events: none; }
.app-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--a) 70%, transparent); margin-bottom: 24px; }
.app-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem); }
.app-hero .price { margin: 0 0 24px; }
.app-hero-shot { justify-self: center; width: min(320px, 78%); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
@media (max-width: 820px) {
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-hero-shot { display: none; }
}

.shots-wrap { position: relative; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 8px var(--gutter) 28px; margin: 0; list-style: none; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.shots li { flex: 0 0 auto; width: clamp(220px, 64vw, 280px); scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); background: var(--bg-2); aspect-ratio: 1290 / 2796; }
.shots figcaption { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.shots figcaption strong { display: block; color: var(--text); font-weight: 650; }
.shots-nav { display: none; gap: 8px; justify-content: flex-end; margin-top: -8px; }
.js .shots-nav { display: flex; }
.shots-nav button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.shots-nav button:hover { transform: translateY(-1px); }
.shots-nav button:disabled { opacity: .4; cursor: default; transform: none; }
.shots-nav svg { width: 20px; height: 20px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.features li { padding: 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.features h3 { margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: .97rem; }
.features .dot { width: 10px; height: 10px; border-radius: 99px; background: var(--a); margin-bottom: 16px; box-shadow: 0 0 0 6px var(--a-tint); }

.private { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.private li { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.private strong { display: block; margin-bottom: 4px; }
.private span { color: var(--muted); font-size: .95rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq .answer p:last-child { margin: 0; }

.note { border-radius: var(--radius-sm); padding: 20px 22px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.note strong { color: var(--text); }
.note.crisis { background: var(--a-tint); color: var(--text); }

.more-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.more-apps a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.more-apps a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.more-apps img { width: 44px; height: 44px; border-radius: 11px; }
.more-apps small { display: block; color: var(--muted); font-weight: 450; font-size: .85rem; }

/* Text pages: support, privacy, 404 */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-top: 2em; letter-spacing: -.02em; }
.prose h3 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.mail-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: linear-gradient(160deg, var(--a-tint), var(--surface) 70%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mail-card .addr { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 750; letter-spacing: -.02em; word-break: break-all; }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.policy-list a { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; }
.policy-list a:hover { box-shadow: var(--shadow); }
.policy-list img { width: 40px; height: 40px; border-radius: 10px; }
.policy .muted { font-size: .95rem; }
.moved { font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .95rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Motion: a gentle rise on load and on scroll, only for people who are fine with motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) both; }
  .rise-2 { animation-delay: .08s; }
  .rise-3 { animation-delay: .16s; }
  .fan figure { animation: float-in 1s var(--ease) both; }
  .fan figure:nth-child(1) { animation-delay: .15s; }
  .fan figure:nth-child(2) { animation-delay: .05s; }
  .fan figure:nth-child(3) { animation-delay: .25s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes float-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* Small utilities (no inline styles: the CSP blocks them) */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 22px; }
.mt-l { margin-top: 30px; }
.h-sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.shots-section { padding-top: clamp(32px, 5vw, 64px); }
.wrap.shots-wrap { padding: 0; }
.policy { padding-top: clamp(48px, 8vw, 96px); }
.site-footer .brand { display: inline-flex; color: var(--text); padding: 0; }
.site-footer .brand:hover { text-decoration: none; }

/* Per-app accents, generated by build.mjs with contrast checked to 4.5:1 */
.app-blood-pressure{--a:#1d4ed8;--a-text:#1d4ed8;--a-btn:#1d4ed8;--a-on:#ffffff;--a-tint:rgba(29,78,216,.10)}
@media (prefers-color-scheme: dark){.app-blood-pressure{--a:#60a5fa;--a-text:#60a5fa;--a-btn:#60a5fa;--a-on:#111111;--a-tint:rgba(96,165,250,.13)}}
.app-blood-sugar{--a:#14b8a6;--a-text:#0d796e;--a-btn:#0e8478;--a-on:#ffffff;--a-tint:rgba(20,184,166,.10)}
@media (prefers-color-scheme: dark){.app-blood-sugar{--a:#2dd4bf;--a-text:#2dd4bf;--a-btn:#2dd4bf;--a-on:#111111;--a-tint:rgba(45,212,191,.13)}}
.app-migraine{--a:#7c3aed;--a-text:#7c3aed;--a-btn:#7c3aed;--a-on:#ffffff;--a-tint:rgba(124,58,237,.10)}
@media (prefers-color-scheme: dark){.app-migraine{--a:#c084fc;--a-text:#c084fc;--a-btn:#c084fc;--a-on:#111111;--a-tint:rgba(192,132,252,.13)}}
.app-pain{--a:#DC2626;--a-text:#ca2323;--a-btn:#dc2626;--a-on:#ffffff;--a-tint:rgba(220,38,38,.10)}
@media (prefers-color-scheme: dark){.app-pain{--a:#EF4444;--a-text:#f15a5a;--a-btn:#ef4444;--a-on:#111111;--a-tint:rgba(239,68,68,.13)}}
.app-mood{--a:#6D28D9;--a-text:#6d28d9;--a-btn:#6d28d9;--a-on:#ffffff;--a-tint:rgba(109,40,217,.10)}
@media (prefers-color-scheme: dark){.app-mood{--a:#A78BFA;--a-text:#a78bfa;--a-btn:#a78bfa;--a-on:#111111;--a-tint:rgba(167,139,250,.13)}}
