/* Curevity content pages (feature pages, free tools, guides).
   Same colours and fonts as the home page; one stylesheet for every page, styled by role class. */
:root {
  --bg: #f1f6f6;
  --surface: #ffffff;
  --ink: #102a31;
  --muted: #4b656c;
  --line: #d3e1e2;
  --link: #1b6876;
  --btn-bg: #1d5566;
  --btn-ink: #ffffff;
  --signal: #cf5a33;
  --ok: #22816a;
  --warn: #a8661b;
  --band: #16495a;
  --band-deep: #103b49;
  --on-band: #eef8f7;
  --on-band-muted: #b5d2d2;
  --mint: #7ed8cf;
  --chip: #e2eeee;
  --store-bg: #0b1214;
  --store-ink: #ffffff;
  --bezel: #0e1518;
  /* result bands for the tools: low / in range / borderline / high / urgent */
  --r-low-bg: #e4eefb;   --r-low: #2a5ea8;
  --r-ok-bg: #e1f3ec;    --r-ok: #1d7258;
  --r-mid-bg: #fbf0dc;   --r-mid: #8f5a12;
  --r-high-bg: #fbe5dc;  --r-high: #b2462a;
  --r-urgent-bg: #f7d9d9; --r-urgent: #a02525;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.97rem + 0.22vw, 1.14rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.7vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.7rem);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(56px, 4vw + 36px, 112px);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09181d; --surface: #0f242b; --ink: #e3efef; --muted: #98b2b6; --line: #1f3d45;
    --link: #7ed8cf; --btn-bg: #7ed8cf; --btn-ink: #072329; --signal: #f08b63; --ok: #4fc89e; --warn: #e6b062;
    --band: #0c3440; --band-deep: #092a33; --on-band: #eef8f7; --on-band-muted: #a9c8c8;
    --mint: #7ed8cf; --chip: #17343c; --store-bg: #000000; --store-ink: #ffffff;
    --r-low-bg: #142a45; --r-low: #9cc2f5; --r-ok-bg: #11332a; --r-ok: #7fdcb9; --r-mid-bg: #3a2c12; --r-mid: #f0c27a;
    --r-high-bg: #3d1f16; --r-high: #f5a083; --r-urgent-bg: #451616; --r-urgent: #ff9b9b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09181d; --surface: #0f242b; --ink: #e3efef; --muted: #98b2b6; --line: #1f3d45;
  --link: #7ed8cf; --btn-bg: #7ed8cf; --btn-ink: #072329; --signal: #f08b63; --ok: #4fc89e; --warn: #e6b062;
  --band: #0c3440; --band-deep: #092a33; --on-band: #eef8f7; --on-band-muted: #a9c8c8;
  --mint: #7ed8cf; --chip: #17343c; --store-bg: #000000; --store-ink: #ffffff;
  --r-low-bg: #142a45; --r-low: #9cc2f5; --r-ok-bg: #11332a; --r-ok: #7fdcb9; --r-mid-bg: #3a2c12; --r-mid: #f0c27a;
  --r-high-bg: #3d1f16; --r-high: #f5a083; --r-urgent-bg: #451616; --r-urgent: #ff9b9b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* type roles */
.page-title, .section-title, .card-title, .brand-name { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
.page-title { font-size: var(--step-4); line-height: 1.04; font-weight: 750; font-variation-settings: "opsz" 96; }
.section-title { font-size: var(--step-3); line-height: 1.1; font-weight: 720; font-variation-settings: "opsz" 72; }
.card-title { font-size: var(--step-1); line-height: 1.25; font-weight: 680; }
.eyebrow { font: 600 var(--step--1)/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); margin: 0; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 60ch; margin: 0; text-wrap: pretty; }
.copy { color: var(--muted); max-width: 66ch; margin: 0; }
.small { font-size: var(--step--1); color: var(--muted); margin: 0; }
.head { display: grid; gap: 14px; max-width: 780px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* long-form text (guides and the explanation parts of tools) */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 720 var(--step-2)/1.2 var(--display); letter-spacing: -0.015em; margin-top: 1.8em; text-wrap: balance; }
.prose h3 { font: 680 var(--step-1)/1.3 var(--display); margin-top: 1.5em; }
/* the title of a long-text section: same look whatever its tag (h2, h3 or div) */
.prose .prose-title { font: 720 var(--step-2)/1.2 var(--display); letter-spacing: -0.015em; margin-top: 0; text-wrap: balance; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--band-deep) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--on-band); border-bottom: 1px solid color-mix(in srgb, var(--on-band) 12%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; }
.nav a { color: var(--on-band-muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-band); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 700 var(--step--1)/1 var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-mint { background: var(--mint); color: #072329; }
.btn-mint:hover { filter: brightness(1.06); }
.btn-solid { background: var(--btn-bg); color: var(--btn-ink); }
.btn-solid:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--line); }
.menu { display: none; margin-inline-start: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--on-band); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; } .menu summary span::after { top: 6px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -20px rgba(0,0,0,.35); }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--chip); }
.menu-panel .menu-label { font: 600 0.72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; order: 3; margin-inline-start: 0; }
  .site-head .head-cta { margin-inline-start: auto; }
}
@media (max-width: 420px) { .site-head .head-cta { padding-inline: 14px; } }

/* breadcrumbs */
.crumbs { font-size: var(--step--1); color: var(--on-band-muted); margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { color: var(--on-band-muted); }
.crumbs [aria-current] { color: var(--on-band); }

/* store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; min-width: 196px; border-radius: 14px; background: var(--store-bg); color: var(--store-ink); text-decoration: none; border: 1px solid color-mix(in srgb, var(--store-ink) 22%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 0.72rem; opacity: .8; letter-spacing: .02em; }
.store b { font: 700 1.2rem/1.1 var(--display); letter-spacing: -0.01em; }
.is-android .store-ios { order: 2; }
.store-note { margin: 0; font-size: var(--step--1); color: var(--on-band-muted); }
.store-alt { display: none; margin: 0; font-size: var(--step--1); }
.store-alt a { color: inherit; }
@media (max-width: 760px) {
  .is-ios .store-play, .is-android .store-ios { display: none; }
  .is-ios .store-row .store, .is-android .store-row .store { flex: 1 1 100%; justify-content: center; }
  .is-ios .store-alt .alt-ios, .is-android .store-alt .alt-play { display: none; }
  .is-ios .store-alt, .is-android .store-alt { display: block; }
}

/* page hero: deep teal band, copy left and the app screen right */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--mint) 18%, var(--band)) 0%, var(--band) 45%, var(--band-deep) 100%); color: var(--on-band); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-block: clamp(28px, 2vw + 20px, 56px) clamp(48px, 4vw + 24px, 96px); }
.hero-copy { display: grid; gap: 20px; min-width: 0; align-content: start; }
.hero .eyebrow { color: var(--mint); }
.hero .lead { color: var(--on-band-muted); }
.hero .page-title .soft { color: var(--mint); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--on-band-muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--mint); }
.hero-visual { display: grid; place-items: center; min-width: 0; }
.phone { position: relative; width: min(290px, 80%); padding: 3.2%; border-radius: 15% / 7.2%; background: var(--bezel); box-shadow: 0 0 0 1.5px #2b3940 inset, 0 30px 60px -24px rgba(0,0,0,.55), 0 12px 24px -12px rgba(0,0,0,.35); rotate: 3deg; }
.phone .screen { border-radius: 12.5% / 5.9%; overflow: hidden; background: #e7f1f1; }
.phone img { width: 100%; }
.hero.compact .wrap { grid-template-columns: minmax(0, 1fr); padding-block: clamp(28px, 2vw + 20px, 48px) clamp(96px, 6vw + 60px, 140px); }
.hero.compact .hero-copy { max-width: 820px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual .phone { width: min(240px, 66%); }
}

/* the tool card sits half over the hero band */
.tool-sec { margin-top: calc(-1 * clamp(72px, 5vw + 40px, 112px)); position: relative; z-index: 2; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.5vw, 36px); box-shadow: 0 30px 60px -36px rgba(8, 40, 50, .45); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.tool-form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; min-width: 0; }
.tool-form > * { min-width: 0; }
.field > label, .field > .label { font-weight: 700; }
.field .hint { font-size: var(--step--1); color: var(--muted); margin: 0; }
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input { flex: 1 1 0; width: 100%; min-width: 0; font: 600 1.5rem/1.2 var(--display); padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 35%, transparent); }
.unit { display: grid; place-items: center; padding-inline: 14px; border-radius: 12px; background: var(--chip); font: 600 var(--step--1)/1 var(--mono); color: var(--muted); white-space: nowrap; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { font-weight: 700; margin-bottom: 0; padding: 0; float: left; width: 100%; }
.tool > * { min-width: 0; }
.seg legend.sr-only { float: none; width: 1px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); font-size: var(--step--1); font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }
.result { border-radius: 18px; padding: clamp(18px, 2vw, 28px); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-height: 100%; }
.result .r-label { font: 600 var(--step--1)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.result .r-big { font: 750 clamp(2.4rem, 2rem + 2vw, 3.6rem)/1 var(--display); letter-spacing: -0.03em; margin: 0; }
.result .r-big small { font: 600 var(--step-0)/1 var(--body); color: var(--muted); letter-spacing: 0; margin-inline-start: 6px; }
.result .r-text { margin: 0; color: var(--muted); }
.result .r-text strong { color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: var(--step--1); background: var(--chip); color: var(--ink); }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.band-low { background: var(--r-low-bg); color: var(--r-low); }
.band-ok { background: var(--r-ok-bg); color: var(--r-ok); }
.band-mid { background: var(--r-mid-bg); color: var(--r-mid); }
.band-high { background: var(--r-high-bg); color: var(--r-high); }
.band-urgent { background: var(--r-urgent-bg); color: var(--r-urgent); }
.nudge { display: grid; gap: 10px; margin-top: 6px; padding: 16px 18px; border-radius: 14px; background: var(--band); color: var(--on-band); }
.nudge p { margin: 0; color: var(--on-band-muted); font-size: var(--step--1); }
.nudge b { color: var(--on-band); font-size: var(--step-0); }
.nudge .btn { justify-self: start; }
.scale { display: grid; gap: 6px; margin-top: 4px; }
.scale-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
.scale-bar i { display: block; height: 100%; }
.scale-marks { position: relative; height: 18px; font: 600 0.72rem/1 var(--mono); color: var(--muted); }
.scale-pin { position: relative; height: 0; }
.scale-pin b { position: absolute; top: -26px; width: 3px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); transition: left .4s ease; }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 520px; }
caption { text-align: left; padding: 16px 18px 0; font-weight: 700; color: var(--ink); caption-side: top; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 0.74rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--chip) 60%, var(--surface)); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); }
td .badge { white-space: nowrap; }
.num { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* feature-page blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .media { display: grid; place-items: center; }
.split .media .phone { rotate: -2deg; width: min(280px, 76%); }
.split.flip .media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .media, .split.flip .media { order: -1; }
  .split .media .phone { width: min(230px, 62%); }
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; position: relative; color: var(--muted); }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--link) 45%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 6px; border-left: 2.4px solid var(--link); border-bottom: 2.4px solid var(--link); transform: rotate(-45deg); }
.ticks b { color: var(--ink); }
.steps { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.alt .steps li, .alt .card { background: var(--bg); }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--band); color: var(--mint); font: 750 1.2rem/1 var(--display); }
.steps p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 3vw, 44px); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { margin: 0; color: var(--muted); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--link); }
.card .ic svg { width: 24px; height: 24px; }
.tag { display: inline-block; justify-self: start; padding: 4px 10px; border-radius: 999px; font: 600 0.7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--chip); color: var(--link); }
.tag.paid { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); }
@media (max-width: 960px) { .steps, .cards { grid-template-columns: minmax(0, 1fr); } .cards.two { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 600px) and (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* honest free / paid note */
.plan-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: clamp(24px, 3vw, 40px); }
.plan-note > div { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.plan-note > div:first-child { background: var(--band); color: var(--on-band); border-color: transparent; }
.plan-note > div:first-child .ticks li { color: var(--on-band-muted); }
.plan-note > div:first-child .ticks li::after { border-color: var(--mint); }
.plan-note > div:first-child .ticks li::before { background: color-mix(in srgb, var(--mint) 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mint) 55%, transparent); }
.plan-note h3, .plan-note .plan-title { margin: 0; font: 700 var(--step-1)/1.2 var(--display); }
@media (max-width: 760px) { .plan-note { grid-template-columns: minmax(0, 1fr); } }

/* "talk to your doctor" box, on every page */
.care-note { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--signal) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 30%, var(--line)); }
.care-note .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal); }
.care-note .ic svg { width: 24px; height: 24px; }
.care-note p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.care-note b { color: var(--ink); font-size: var(--step-0); display: block; margin-bottom: 4px; }
.urgent-note { border-left: 4px solid var(--r-urgent); background: var(--r-urgent-bg); color: var(--ink); padding: 16px 18px; border-radius: 12px; }
.urgent-note p { margin: 0; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: clamp(24px, 3vw, 40px); }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.alt .faq details { background: var(--bg); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.4px solid var(--link); border-bottom: 2.4px solid var(--link); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 20px 20px; color: var(--muted); max-width: 90ch; }
.faq .a p { margin: 0; }
.faq .a p + p { margin-top: .7em; }

/* related pages */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.related a { display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.related b { font: 700 var(--step-0)/1.3 var(--display); }
.related span { color: var(--muted); font-size: var(--step--1); }
.related .k { font: 600 0.7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
@media (max-width: 860px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* closing call to action */
.cta { background: radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--mint) 16%, var(--band)) 0%, var(--band) 50%, var(--band-deep) 100%); color: var(--on-band); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta .section-title { color: var(--on-band); }
.cta .lead { color: var(--on-band-muted); margin-top: 12px; }
.cta .store-alt { color: var(--on-band-muted); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } }
/* QR next to the store buttons: shown only on a computer with a mouse, where scanning with a phone is the easy way */
.cta-get { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); }
.cta-qr { display: none; margin: 0; width: 176px; flex: none; flex-direction: column; align-items: center; gap: 12px; padding: 14px 14px 16px; border-radius: 20px; text-align: center; background: color-mix(in srgb, var(--band-deep) 60%, transparent); border: 1px solid color-mix(in srgb, var(--on-band) 16%, transparent); transition: transform .25s ease, border-color .25s ease; }
.cta-qr img { width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #ffffff; }
.cta-qr figcaption { font-size: 0.8rem; line-height: 1.35; color: var(--on-band-muted); }
.cta-qr b { display: block; color: var(--on-band); font-size: var(--step--1); margin-bottom: 2px; }
.cta-stores { display: grid; gap: 12px; }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .cta-qr { display: flex; }
  .cta-stores .store-row { flex-direction: column; }
  .cta-qr:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--mint) 55%, transparent); }
}

/* sources */
.sources { font-size: var(--step--1); color: var(--muted); }
.sources ol { padding-left: 1.2em; margin: 8px 0 0; }
.sources li + li { margin-top: 6px; }
.reviewed { font: 500 var(--step--1)/1.4 var(--mono); color: var(--muted); margin: 0; }

/* footer */
.foot { padding-block: clamp(40px, 4vw, 64px) 32px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.foot .wrap { display: grid; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot .brand { color: var(--ink); }
.foot h2 { font: 600 0.74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--link); text-decoration: underline; }
.foot p { margin: 0; max-width: 80ch; }
.foot-base { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > :first-child { grid-column: 1 / -1; } }

/* hover on every card: it lifts a little, the border turns teal and the icon gives a small nudge */
.card, .steps li, .plan-note > div, .related a { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .card:hover, .steps li:hover, .plan-note > div:hover, .related a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--link) 45%, var(--line)); box-shadow: 0 18px 34px -24px rgba(10, 40, 50, .5); }
  .plan-note > div:first-child:hover { border-color: color-mix(in srgb, var(--mint) 55%, transparent); box-shadow: 0 22px 40px -24px rgba(5, 25, 32, .8); }
  .card:hover .ic svg, .care-note:hover .ic svg { animation: nudge .6s ease; }
  .steps li:hover::before { animation: nudge .6s ease; }
  a.card:hover .card-title { color: var(--link); }
}
@keyframes nudge { 40% { transform: scale(1.18) rotate(-6deg); } }

/* blog: topic chips, the large first card and the grid on the list; cover, article and side panel on a post */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2vw, 28px); }
/* the list is pulled up over the hero like a tool card, and needs the usual section space below it */
.post-list { padding-bottom: var(--section); }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: clamp(18px, 2vw, 28px); }
.blog-tools .chips { margin: 0; flex: 1 1 320px; min-width: 0; }
.blog-search { flex: 0 1 440px; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(8, 40, 50, .5); transition: border-color .2s ease, box-shadow .2s ease; }
.blog-search:focus-within { border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 35%, transparent); }
.blog-search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.blog-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 var(--step--1)/1.2 var(--body); padding: 9px 0; }
.blog-search input::placeholder { color: var(--muted); opacity: .85; }
.blog-search input:focus { outline: none; }
.blog-search .btn { padding: 10px 18px; }
.blog-empty { max-width: 720px; }
.chip { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); transition: border-color .2s ease, background .2s ease; }
.chip:hover { border-color: var(--link); }
.chip[aria-current], .chip.chip-on { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.tool-sec .chips .chip { box-shadow: 0 10px 24px -18px rgba(8, 40, 50, .5); }
.pagination { margin: clamp(28px, 3vw, 44px) 0 0; justify-content: center; }
.post-feature, .post-card { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; min-width: 0; }
.post-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); box-shadow: 0 30px 60px -36px rgba(8, 40, 50, .45); }
.post-media { display: block; background: var(--band); min-height: 100%; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-media img { aspect-ratio: 16 / 9; height: auto; } /* cards in a grid line up */
.post-noimg { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--mint); }
.post-noimg svg { width: 48px; height: 48px; }
.post-body { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 2.4vw, 32px); }
.post-feature .post-body { align-content: center; gap: 16px; padding: clamp(24px, 3.2vw, 48px); }
.post-body .tag { justify-self: start; }
.post-feature .post-title { font-size: var(--step-2); line-height: 1.15; }
.post-excerpt { color: var(--muted); }
.post-meta { font: 500 var(--step--1)/1.4 var(--mono); color: var(--muted); margin: 0; }
.post-body .btn { justify-self: start; margin-top: 4px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature .post-media img { aspect-ratio: 16 / 9; height: auto; }
}
/* two columns: an odd last card takes the full row, laid out like the large card */
@media (min-width: 641px) and (max-width: 1000px) {
  .post-grid > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .post-grid > .post-card:last-child:nth-child(odd) .post-media img { height: 100%; aspect-ratio: auto; }
}
/* phones: compact cards with a small square picture, so a page of ten stays short; topics scroll sideways */
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .post-grid .post-card { grid-template-columns: 104px minmax(0, 1fr); border-radius: 16px; }
  .post-grid .post-card .post-media img, .post-grid .post-card .post-noimg { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .post-grid .post-card .post-noimg svg { width: 32px; height: 32px; }
  .post-grid .post-card .post-body { padding: 14px 16px; gap: 6px; }
  .post-grid .post-card .post-title { font-size: var(--step-0); line-height: 1.3; }
  .post-grid .post-card .post-excerpt { display: none; }
  .post-grid .post-card .tag { font-size: 0.64rem; padding: 3px 8px; }
  .chips:not(.pagination) { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); padding-bottom: 4px; scrollbar-width: none; }
  .chips:not(.pagination)::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
  .blog-search, .blog-tools .chips { flex-basis: 100%; }
}

.post-hero .hero-copy { max-width: 860px; }
.hero .post-meta { color: var(--on-band-muted); }
.post-cover .wrap { max-width: 1120px; }
.post-figure { margin: 0; border-radius: 24px; overflow: hidden; background: var(--band); box-shadow: 0 30px 60px -36px rgba(8, 40, 50, .5); }
.post-figure img { width: 100%; }
.post-figure figcaption { padding: 10px 16px; font-size: var(--step--1); color: var(--muted); background: var(--surface); }
.post-sec { padding-top: clamp(40px, 4vw, 72px); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.post-content { max-width: 70ch; min-width: 0; }
.post-content > :first-child { margin-top: 0; }
.post-content h2 { scroll-margin-top: 96px; }
.post-content a { color: var(--link); }
.post-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mint); }
.post-content blockquote p { color: var(--ink); margin: 0; }
.post-content blockquote p + p { margin-top: .6em; }
.post-content figure { margin: 1.6em 0; }
.post-content img { border-radius: 14px; }
.post-content figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.post-content .wp-block-table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-content .wp-block-table table { min-width: 520px; }
.post-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.toc { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.toc-title, .toc summary { font: 600 0.74rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: var(--step--1); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.toc-mobile { display: none; }
.toc-mobile summary { cursor: pointer; margin: 0; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary { margin-bottom: 12px; }
.app-card { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--mint) 16%, var(--band)) 0%, var(--band) 55%, var(--band-deep) 100%); color: var(--on-band); }
.app-card img { border-radius: 11px; }
.app-card-title { margin: 0; font: 700 var(--step-1)/1.25 var(--display); letter-spacing: -0.01em; }
.app-card-text { margin: 0; font-size: var(--step--1); color: var(--on-band-muted); }
.app-card .store-row { flex-direction: column; gap: 8px; }
.app-card .store { min-width: 0; width: 100%; }
@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; }
  .toc-side { display: none; }
  .toc-mobile { display: block; }
  .app-card .store-row { flex-direction: row; }
  .app-card .store { width: auto; }
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.share-label { font: 600 0.74rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-inline-end: 6px; }
@media (hover: hover) {
  .post-feature:hover, .post-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--link) 45%, var(--line)); box-shadow: 0 18px 34px -24px rgba(10, 40, 50, .5); }
  .post-feature:hover .post-title, .post-card:hover .post-title { color: var(--link); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* print: the diet chart and medicine chart print cleanly */
@media print {
  .site-head, .foot, .cta, .related-sec, .no-print, .hero .store-row, .store-alt, .menu { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: none; color: #000; }
  .hero .lead, .hero .eyebrow, .crumbs { color: #333; }
}
