/* =========================================================================
   Design system for embarazo.com.py.

   THE :root TOKENS BLOCK BELOW IS THE THEME. It is copied verbatim from
   design/tokens.css (D0); change values there first, then mirror them here.
   ========================================================================= */

:root {
  /* ---- Brand ground -------------------------------------------------- */
  --bg: #FBF7F1;              /* cream — the page */
  --surface: #FFFFFF;         /* cards, islands, the sheet */
  --surface-sunken: #F5EFE6;  /* wells inside a card (result rows, code) */
  --ink: #322E29;             /* body text — 12.6:1 on --bg */
  --muted: #6E675D;           /* meta, captions — 5.2:1 on --bg (see AA note) */
  --line: #EDE5DA;            /* hairlines, card borders */
  --line-strong: #DFD3C3;     /* dividers that must read at 360 px */

  /* ---- Structure (petrol) -------------------------------------------- */
  --petrol: #2F5D50;          /* headings, header bar, footer — 7.0:1 on --bg */
  --petrol-dark: #24463D;     /* pressed/hover, footer ground */
  --petrol-tint: #E8EFEC;     /* petrol at ~8 % — quiet section ground */
  --on-petrol: #FBF7F1;       /* cream on petrol — 6.9:1 */

  /* ---- Accent (terracotta) — the ONLY CTA colour --------------------- */
  --accent: #B5553A;          /* brand terracotta, the app's own value since it
                                 darkened #C96342 for contrast: rings, icons,
                                 underlines, tints, the progress arc. 4.5:1 on
                                 --bg; still decorative + large only here. */
  --accent-text: #B24A2A;     /* terracotta-700: CTA fill, links, eyebrows.
                                 5.0:1 on --bg, 5.4:1 on --surface,
                                 5.4:1 against white text. AA everywhere. */
  --accent-dark: #93381C;     /* :hover / :active on the CTA fill */
  --accent-tint: #F7E4DC;     /* CTA halo, selected chip */
  --on-accent: #FFFFFF;       /* label on --accent-text — 5.4:1 */
  /* RULE: --accent-text is a text colour on --bg and --surface ONLY. On the
     pastel tones below it lands at 4.0–4.3:1, under AA, so text on a tint uses
     --petrol (or --tone-arena-text on arena). It also keeps terracotta
     meaning exactly one thing: this goes to the app. */

  /* ---- Pastel section tones (app palette) ---------------------------- */
  --tone-rosa: #F3DAD4;
  --tone-celeste: #D9E5EC;
  --tone-salvia: #DFE8D8;
  --tone-lavanda: #E6E0F0;
  --tone-arena: #F8E2CB;
  --tone-arena-text: #8A5A2E; /* 4.7:1 on --tone-arena */

  /* ---- Semantic ------------------------------------------------------ */
  --sage: #6F8A66;            /* "sí / seguro" marks, decorative */
  --sage-text: #4C6544;       /* 5.3:1 on --bg */
  --rose: #E0A4A0;            /* decorative only, never a state */
  --alert: #A4362A;           /* señales de alarma, "no es normal" — 6.0:1 */
  --alert-bg: #FBEBE7;
  --whatsapp: #0F7F43;        /* brand mark only — the app's value */
  --whatsapp-text: #0E7A3C;   /* 4.6:1 — the share button's fill */

  /* ---- Focus --------------------------------------------------------- */
  --focus: #1C4C9C;           /* deliberately NOT terracotta: a focus ring the
                                 same hue as the CTA is invisible on the CTA */
  --focus-width: 3px;
  --focus-offset: 2px;

  /* ---- Type ---------------------------------------------------------- */
  /* Nunito Sans self-hosted (T0 drops woff2 into assets/fonts/ and declares
     @font-face with font-display:swap). The fallback stack is metric-close
     enough that swap costs no measurable CLS. Display == body by decision:
     brand-exact with the app; editorial voice comes from scale, not a
     second face. */
  --font-body: "Nunito Sans", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* Type scale — major third (1.25), base 16 px. Mobile ceiling is
     --step-4; --step-5 exists for desktop display only. */
  --step--2: 0.64rem;    /* 10.24 — overline, legal micro */
  --step--1: 0.8rem;     /* 12.80 — meta, sources, captions */
  --step-0:  1rem;       /* 16.00 — UI, labels */
  --step-1:  1.125rem;   /* 18.00 — body copy (long-form reads at 18) */
  --step-2:  1.25rem;    /* 20.00 — lead, H4 */
  --step-3:  1.5625rem;  /* 25.00 — H3 */
  --step-4:  1.9531rem;  /* 31.25 — H2, mobile H1 */
  --step-5:  2.4414rem;  /* 39.06 — desktop H1, big-type hub */
  --step-6:  3.0518rem;  /* 48.83 — desktop hero H1 / the number in a week card */

  --leading-tight: 1.15;
  --leading-heading: 1.22;
  --leading-body: 1.65;
  --measure: 34rem;      /* ~68 characters at --step-1 */
  --measure-narrow: 26rem;

  /* ---- Space — 4 px base --------------------------------------------- */
  --space-3xs: 0.25rem;  /*  4 */
  --space-2xs: 0.5rem;   /*  8 */
  --space-xs:  0.75rem;  /* 12 */
  --space-s:   1rem;     /* 16 */
  --space-m:   1.5rem;   /* 24 */
  --space-l:   2rem;     /* 32 */
  --space-xl:  3rem;     /* 48 */
  --space-2xl: 4rem;     /* 64 */
  --space-3xl: 5rem;     /* 80 — desktop section rhythm */

  --gutter: var(--space-s);      /* 16 px at 360; page edge padding */
  --wrap: 72rem;                 /* 1152 — full-width container */
  --wrap-text: 40rem;            /* 640 — article column */

  /* ---- Radii --------------------------------------------------------- */
  --radius-xs: 6px;
  --radius-s: 10px;
  --radius-tile: 14px;   /* app value */
  --radius-card: 16px;   /* app value */
  --radius-l: 22px;      /* phone frame, hero panel */
  --radius-pill: 999px;

  /* ---- Elevation ----------------------------------------------------- */
  --shadow-soft:
    0 1px 3px rgba(42, 39, 36, 0.06),
    0 1px 2px rgba(42, 39, 36, 0.04);           /* app value */
  --shadow-lift:
    0 6px 16px rgba(42, 39, 36, 0.10),
    0 2px 4px rgba(42, 39, 36, 0.06);
  --shadow-bar:
    0 -2px 12px rgba(42, 39, 36, 0.10);          /* sticky CTA bar, upward */

  /* ---- Motion — one per screen, all reduced-motion aware -------------- */
  --dur-fast: 120ms;
  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* ---- Layout constants ---------------------------------------------- */
  --tap: 44px;              /* minimum tap target — never smaller */
  --header-h: 56px;
  --ctabar-h: 64px;

  color-scheme: light;      /* the brand has no dark mode — see §Decisions */
}


*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; }
body { margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0 0 var(--space-s);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
  color: var(--petrol);
  text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: var(--leading-tight); letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); margin-top: var(--space-l); }
h3 { font-size: var(--step-2); margin-top: var(--space-m); color: var(--ink); }
h4 { font-size: var(--step-1); margin-top: var(--space-m); color: var(--ink); }
p { margin: 0 0 var(--space-s); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--space-s); padding-left: 1.25em; }
li { margin-bottom: var(--space-2xs); }
li:last-child { margin-bottom: 0; }
strong { font-weight: var(--weight-bold); }
small { font-size: var(--step--1); }
hr { border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-l) 0; }
:focus-visible { outline: var(--focus-width) solid var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs); }
::selection { background: var(--accent-tint); color: var(--ink); }
.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; }
.skip-link { position: absolute;
  left: var(--space-2xs);
  top: -100px;
  z-index: 100;
  background: var(--petrol);
  color: var(--on-petrol);
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: var(--weight-bold);
  transition: top var(--dur-fast) var(--ease); }
.skip-link:focus { top: var(--space-2xs); color: var(--on-petrol); }
.wrap { width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.section--surface { background: var(--surface); }
.stack > * + * { margin-top: var(--space-s); }
.grid { display: grid;
  gap: var(--space-s);
  grid-template-columns: 1fr; }
@media (min-width: 45rem) {
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(2, 1fr); }
.grid { gap: var(--space-m); }
}
@media (min-width: 64rem) {
.grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.eyebrow { display: block;
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2xs); }
.lead { font-size: var(--step-2);
  line-height: 1.5;
  color: var(--ink);
  max-width: var(--measure); }
.btn { display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--tap);
  padding: var(--space-xs) var(--space-m);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--step-0);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-text);
  color: var(--on-accent);
  border-color: var(--accent-text);
  box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn--secondary { background: transparent;
  color: var(--petrol);
  border-color: var(--petrol); }
.btn--secondary:hover { background: var(--petrol); color: var(--on-petrol); }
.btn--wa { background: var(--whatsapp-text);
  color: #fff;
  border-color: var(--whatsapp-text); }
.btn--wa:hover { background: #0a5f2e; border-color: #0a5f2e; color: #fff; }
.btn--lg { min-height: 52px; font-size: var(--step-1); padding-inline: var(--space-l); }
.btn[aria-disabled="true"],
.btn:disabled { opacity: 0.5; pointer-events: none; }
.link-arrow { display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-weight: var(--weight-bold);
  text-decoration: none;
  min-height: var(--tap); }
.link-arrow::after { content: "→"; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.header { position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line); }
.header__bar { display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--header-h); }
.brand { display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: var(--space-2xs);
  font-weight: var(--weight-bold);
  font-size: var(--step-2);
  color: var(--petrol);
  text-decoration: none;
  letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-text);
  display: grid; place-items: center;
  color: #fff; font-size: var(--step--1); font-weight: var(--weight-bold);
  flex: none; }
.nav { position: static; }
.nav > summary { list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  min-width: var(--tap);
  min-height: var(--tap);
  padding-inline: var(--space-2xs);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--petrol);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  cursor: pointer; }
.nav > summary::-webkit-details-marker { display: none; }
.nav__burger { width: 18px; height: 2px; background: currentColor; position: relative; flex: none; }
.nav__burger::before,
.nav__burger::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav__burger::before { top: -6px; }
.nav__burger::after { top: 6px; }
.nav[open] .nav__burger { background: transparent; }
.nav[open] .nav__burger::before { top: 0; transform: rotate(45deg); }
.nav[open] .nav__burger::after { top: 0; transform: rotate(-45deg); }
.nav__sheet { position: absolute;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: var(--space-2xs) 0 var(--space-s); }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; border-bottom: 1px solid var(--line); }
.nav__list li:last-child { border-bottom: 0; }
.nav__list a { display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: var(--space-2xs) var(--gutter);
  color: var(--ink);
  text-decoration: none;
  font-weight: var(--weight-medium); }
.nav__list a:hover { background: var(--petrol-tint); color: var(--petrol); }
.nav__list a[aria-current="page"] { color: var(--accent-text);
  font-weight: var(--weight-bold);
  box-shadow: inset 3px 0 0 var(--accent-text); }
@media (min-width: 64rem) {
.nav > summary { display: none; }
.nav { display: contents; }
.nav__sheet { position: static;
    display: flex;
    align-items: center;
    gap: var(--space-m);
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0; }
.nav__list { display: flex; gap: var(--space-m); }
.nav__list li { border: 0; }
.nav__list a { padding: 0;
    min-height: var(--tap);
    font-size: var(--step-0); }
.nav__list a:hover { background: none; }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent-text); }
}
.ctabar-switch { position: absolute; opacity: 0; pointer-events: none; }
.ctabar { position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: var(--ctabar-h);
  padding: var(--space-2xs) var(--gutter);
  padding-bottom: calc(var(--space-2xs) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow-bar); }
.ctabar__text { flex: 1 1 auto;
  min-width: 0;
  font-size: var(--step--1);
  line-height: 1.3;
  color: var(--muted); }
.ctabar__text b { display: block; color: var(--ink); font-size: var(--step-0); }
.ctabar .btn { flex: none; padding-inline: var(--space-s); }
.ctabar__close { flex: none;
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border: 0; background: none;
  color: var(--muted);
  font-size: var(--step-2);
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-pill); }
.ctabar__close:hover { background: var(--surface-sunken); color: var(--ink); }
.ctabar-switch:checked ~ .ctabar { display: none; }
.ctabar-switch:checked ~ .ctabar-spacer { display: none; }
.ctabar-spacer { height: calc(var(--ctabar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 45rem) {
.ctabar, .ctabar-spacer { display: none; }
}
.cta-primary { background: var(--petrol);
  color: var(--on-petrol);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  text-align: center; }
.cta-primary h2,
.cta-primary h3 { color: var(--on-petrol); margin-top: 0; }
.cta-primary p { color: #E3EAE7; max-width: var(--measure-narrow); margin-inline: auto; }
.cta-primary .btn--primary { margin-top: var(--space-s); }
.cta-week { display: flex;
  gap: var(--space-s);
  align-items: flex-start;
  background: var(--tone-arena);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  border: 1px solid rgba(138, 90, 46, 0.18); }
.cta-week__n { flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent-text);
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  line-height: 1;
  box-shadow: var(--shadow-soft); }
.cta-week__body { min-width: 0; }
.cta-week h3 { margin: 0 0 var(--space-3xs); font-size: var(--step-2); color: var(--tone-arena-text); }
.cta-week p { color: var(--tone-arena-text); font-size: var(--step-0); }
.cta-week .btn { margin-top: var(--space-xs); }
.cta-tool { background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-card);
  padding: var(--space-m); }
.cta-tool h2,
.cta-tool h3 { margin-top: 0; font-size: var(--step-2); color: var(--ink); }
.cta-tool p { color: var(--muted); font-size: var(--step-0); }
.cta-tool .btn { margin-top: var(--space-s); }
.trust-strip { display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: var(--space-s) 0 0;
  padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
  text-align: center; }
.trust-strip li { margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs); }
.trust-strip li::before { content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex: none; }
.cta-primary .trust-strip { color: #C9D6D1; }
.cta-primary .trust-strip li::before { background: var(--rose); }
.card { background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  box-shadow: var(--shadow-soft); }
.card > :first-child { margin-top: 0; }
.card h3 { margin-top: 0; }
.week-card { display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  padding: var(--space-s);
  text-decoration: none;
  color: var(--ink);
  min-height: var(--tap);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.week-card:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); color: var(--ink); }
.week-card__n { display: block;
  font-size: var(--step-3);
  font-weight: var(--weight-bold);
  color: var(--petrol);
  line-height: 1; }
.week-card__size { display: block; font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3xs); }
.week-card[aria-current="page"] { border-color: var(--accent-text); background: var(--accent-tint); }
.week-grid { display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xs);
  list-style: none; margin: 0; padding: 0; }
.week-grid li { margin: 0; }
@media (min-width: 45rem) {
.week-grid { grid-template-columns: repeat(6, 1fr); gap: var(--space-xs); }
}
@media (min-width: 64rem) {
.week-grid { grid-template-columns: repeat(7, 1fr); }
}
.hub-card { display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  min-height: 100%; }
.hub-card:hover { color: var(--ink); border-color: rgba(50, 46, 41, 0.14); }
.hub-card h3 { margin: 0; font-size: var(--step-2); color: var(--petrol); }
.hub-card p { font-size: var(--step-0); color: var(--ink); margin: 0; opacity: 0.85; }
.hub-card--petrol { background: var(--petrol-tint); }
.article-card { display: flex;
  gap: var(--space-s);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-s);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease); }
.article-card:hover { border-color: var(--accent); color: var(--ink); }
.article-card__thumb { flex: none;
  width: 72px; height: 72px;
  border-radius: var(--radius-s);
  background: var(--tone-celeste);
  display: grid; place-items: center;
  color: var(--petrol);
  font-size: var(--step-3);
  overflow: hidden; }
.article-card__body { min-width: 0; }
.article-card h3 { margin: 0 0 var(--space-3xs); font-size: var(--step-1); color: var(--petrol); }
.article-card p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.phone { width: 236px;
  max-width: 100%;
  margin-inline: auto;
  padding: 8px;
  border-radius: 30px;
  background: var(--petrol-dark);
  box-shadow: var(--shadow-lift);
  flex: none; }
.phone__screen { aspect-ratio: 9 / 19;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column; }
.phone__mock { padding: var(--space-s) var(--space-xs); display: flex; flex-direction: column; gap: var(--space-xs); height: 100%; }
.phone__status { display: flex; justify-content: space-between;
  font-size: 9px; color: var(--muted); font-weight: var(--weight-bold); }
.phone__ring { width: 104px; height: 104px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid; place-items: center;
  
  background:
    conic-gradient(var(--accent) 0 50%, var(--line) 50% 100%); }
.phone__ring > span { width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center; align-content: center;
  text-align: center;
  line-height: 1.1; }
.phone__wk { font-size: 10px; color: var(--muted); display: block; }
.phone__wkn { font-size: 30px; font-weight: var(--weight-bold); color: var(--petrol); display: block; }
.phone__card { background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ink); }
.phone__card b { display: block; color: var(--petrol); font-size: 11px; }
.phone__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.phone__chip { font-size: 9px; font-weight: var(--weight-bold);
  padding: 4px 7px; border-radius: 999px;
  background: var(--tone-celeste); color: var(--petrol); }
.phone__chip:nth-child(2) { background: var(--tone-rosa); }
.phone__chip:nth-child(3) { background: var(--tone-salvia); }
.phone__chip:nth-child(4) { background: var(--tone-lavanda); }
.phone__tabs { display: flex; justify-content: space-around;
  border-top: 1px solid var(--line);
  padding: 6px 0 2px;
  font-size: 8px; color: var(--muted); }
.phone__tabs span:first-child { color: var(--accent-text); font-weight: var(--weight-bold); }
.hero { padding-block: var(--space-l) var(--space-xl); }
.hero__inner { display: flex; flex-direction: column; gap: var(--space-l); }
.hero__copy { max-width: var(--measure); }
.hero h1 { margin-bottom: var(--space-s); }
.hero .lead { color: var(--ink); margin-bottom: var(--space-m); }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-2xs); }
.hero__art { display: flex; justify-content: center; }
@media (min-width: 45rem) {
.hero__inner { flex-direction: row; align-items: center; gap: var(--space-xl); }
.hero__copy { flex: 1 1 56%; }
.hero__art { flex: 1 1 44%; }
.hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.hero .trust-strip { justify-content: flex-start; text-align: left; }
}
@media (min-width: 64rem) {
.hero h1 { font-size: var(--step-6); }
.phone { width: 268px; }
}
.size-panel { background: var(--tone-arena);
  border-radius: var(--radius-l);
  padding: var(--space-l) var(--space-m);
  text-align: center;
  color: var(--tone-arena-text); }
.size-panel__n { display: block; font-size: var(--step-6); font-weight: var(--weight-bold); line-height: 1; }
.size-panel__what { display: block; font-size: var(--step-3); font-weight: var(--weight-bold); margin-top: var(--space-2xs); }
.size-panel__sub { display: block; font-size: var(--step-0); margin-top: var(--space-2xs); }
.bento { display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s); }
.bento__tile { border-radius: var(--radius-card);
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  text-decoration: none;
  color: var(--ink);
  min-height: 140px;
  border: 1px solid rgba(50, 46, 41, 0.06);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.bento__tile:hover { color: var(--ink); box-shadow: var(--shadow-lift); }
.bento__tile h3 { margin: 0; font-size: var(--step-2); color: var(--petrol); }
.bento__tile p { margin: 0; font-size: var(--step-0); opacity: 0.88; }
.bento__tile .link-arrow { margin-top: auto; padding-top: var(--space-2xs); color: var(--petrol); }
.bento__icon { font-size: var(--step-3); line-height: 1; }
.bento__tile--rosa { background: var(--tone-rosa); }
.bento__tile--celeste { background: var(--tone-celeste); }
.bento__tile--salvia { background: var(--tone-salvia); }
.bento__tile--lavanda { background: var(--tone-lavanda); }
.bento__tile--arena { background: var(--tone-arena); }
@media (min-width: 45rem) {
.bento { grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.bento__tile--wide { grid-column: span 2; }
}
@media (min-width: 64rem) {
.bento { grid-template-columns: repeat(3, 1fr); }
.bento__tile--wide { grid-column: span 2; }
}
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary { list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  min-height: var(--tap);
  padding: var(--space-xs) 0;
  cursor: pointer;
  font-weight: var(--weight-bold);
  font-size: var(--step-1);
  color: var(--petrol); }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--accent-text);
  font-size: var(--step-2);
  line-height: 1; }
.faq__item[open] > summary::after { content: "–"; }
.faq__item > summary:hover { color: var(--accent-text); }
.faq__answer { padding: 0 0 var(--space-s); color: var(--ink); max-width: var(--measure); }
.faq__answer > :first-child { margin-top: 0; }
.disclaimer { display: flex;
  gap: var(--space-xs);
  border-radius: var(--radius-card);
  padding: var(--space-s) var(--space-m);
  font-size: var(--step-0);
  line-height: 1.55;
  border: 1px solid transparent; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: var(--space-2xs); }
.disclaimer b { display: block; }
.disclaimer__icon { flex: none; font-size: var(--step-2); line-height: 1.2; }
.disclaimer--medical { background: var(--tone-celeste); color: var(--petrol-dark); border-color: rgba(47, 93, 80, 0.16); }
.disclaimer--legal { background: var(--tone-lavanda); color: #3C3350; border-color: rgba(60, 51, 80, 0.14); }
.disclaimer__reviewer { font-weight: var(--weight-bold); }
.disclaimer__pending { font-style: italic; opacity: 0.9; }
.sources { border-top: 1px solid var(--line);
  padding-top: var(--space-s);
  font-size: var(--step--1);
  color: var(--muted); }
.sources h2 { font-size: var(--step-1); color: var(--ink); margin: 0 0 var(--space-2xs); }
.sources ol { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: var(--space-2xs); line-height: 1.5; }
.sources cite { font-style: normal; color: var(--ink); }
.sources a { word-break: break-word; }
.updated { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-s); }
.wa-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-s); }
.wa-share__label { font-size: var(--step--1); color: var(--muted); }
.week-nav { display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xs); }
.week-nav__link { display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: var(--tap);
  justify-content: center;
  padding: var(--space-2xs) var(--space-s);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-tile);
  background: var(--surface);
  text-decoration: none;
  color: var(--petrol); }
.week-nav__link:hover { border-color: var(--accent); color: var(--petrol); }
.week-nav__link small { font-size: var(--step--1); color: var(--muted); }
.week-nav__link b { font-size: var(--step-0); }
.week-nav__link--next { text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-m); position: relative; }
.timeline::before { content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--line-strong); }
.timeline li { position: relative; margin: 0 0 var(--space-m); padding-left: var(--space-2xs); }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: "";
  position: absolute;
  left: calc(-1 * var(--space-m) + 2px);
  top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg); }
.timeline__wk { display: inline-block;
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text); }
.timeline__what { display: block; color: var(--ink); }
/* Growth plan item 3 — the months table on /mes/. */
.month-table { width: 100%; border-collapse: collapse; }
.month-table th, .month-table td { text-align: left; padding: var(--space-2xs) var(--space-xs); border-bottom: 1px solid var(--line); vertical-align: top; }
.month-table thead th { color: var(--muted); font-size: .875rem; }
/* Growth plan items 1 and 2 — verdict chips, the food and name lists. */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin: var(--space-s) 0; }
.chip { display: inline-block; padding: 2px var(--space-xs); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 700; text-decoration: none; }
.food-list, .name-list { list-style: none; margin: 0; padding: 0; }
.food-list li, .name-list li { padding: var(--space-2xs) 0; border-bottom: 1px solid var(--line); }
.gn { background: var(--tone-salvia);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: var(--space-s) var(--space-m); }
.gn dl { margin: 0; }
.gn dt { font-weight: var(--weight-bold); color: var(--petrol-dark); }
.gn dd { margin: 0 0 var(--space-2xs); color: var(--ink); }
.gn dd:last-child { margin-bottom: 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); padding-block: var(--space-s) 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: var(--space-3xs); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current="page"] { color: var(--ink); }
.prose { max-width: var(--measure); }
.prose > h2 { margin-top: var(--space-xl); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: var(--space-l); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { line-height: var(--leading-body); }
.prose table { width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
  margin-bottom: var(--space-s); }
.prose th, .prose td { text-align: left;
  padding: var(--space-2xs) var(--space-xs);
  border-bottom: 1px solid var(--line);
  vertical-align: top; }
.prose th { background: var(--surface-sunken); color: var(--petrol); font-weight: var(--weight-bold); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--space-s); }
.steps { list-style: none; counter-reset: step; margin: 0 0 var(--space-s); padding: 0; }
.steps li { counter-increment: step;
  position: relative;
  padding-left: var(--space-l);
  margin-bottom: var(--space-s); }
.steps li::before { content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-text);
  color: var(--on-accent);
  display: grid; place-items: center;
  font-size: var(--step--1);
  font-weight: var(--weight-bold); }
.keyfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.keyfacts li { display: flex; justify-content: space-between; gap: var(--space-s);
  padding: var(--space-2xs) 0;
  border-bottom: 1px solid var(--line);
  margin: 0; }
.keyfacts li:last-child { border-bottom: 0; }
.keyfacts b { color: var(--petrol); text-align: right; }
.os { border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.os + .os { margin-top: var(--space-s); }
.os > summary { list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-s);
  min-height: 56px;
  padding: var(--space-xs) var(--space-m);
  cursor: pointer;
  font-weight: var(--weight-bold);
  font-size: var(--step-2);
  color: var(--petrol);
  background: var(--surface-sunken); }
.os > summary::-webkit-details-marker { display: none; }
.os > summary::after { content: "▾"; color: var(--accent-text); }
.os[open] > summary::after { content: "▴"; }
.os__body { padding: var(--space-m); }
.os__body > :first-child { margin-top: 0; }
.footer { background: var(--petrol-dark);
  color: #D8E2DE;
  padding-block: var(--space-xl) var(--space-l);
  font-size: var(--step-0); }
.footer a { color: #FBF7F1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h2 { font-size: var(--step-0);
  color: #9FB8B0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2xs); }
.footer__cols { display: grid; gap: var(--space-l); grid-template-columns: 1fr; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--space-3xs); }
.footer li a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer__brand .brand { color: #FBF7F1; }
.footer__legal { margin-top: var(--space-l);
  padding-top: var(--space-s);
  border-top: 1px solid rgba(251, 247, 241, 0.16);
  font-size: var(--step--1);
  color: #9FB8B0; }
@media (min-width: 45rem) {
.footer__cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important; }
}
@media print {
.header, .ctabar, .ctabar-spacer, .cta-primary, .cta-week, .cta-tool,
  .wa-share, .footer, .skip-link { display: none !important; }
body { font-size: 11pt; background: #fff; }
a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* Stage B: content labels, native details navigation, and editorial rhythm. */
a { color: var(--petrol); }
a:hover { color: var(--petrol-dark); }
.eyebrow, .timeline__wk { color: var(--petrol); }
.brand__mark, .steps li::before { background: var(--petrol); }
.cta-week__n { color: var(--petrol); }
.nav__list a[aria-current="page"] { color: var(--petrol); box-shadow: inset 3px 0 0 var(--petrol); }
.nav__close, .nav[open] .nav__open { display: none; }
.nav[open] .nav__close { display: inline; }
.nav__guides > summary { min-height: var(--tap); padding: var(--space-2xs) var(--gutter); cursor: pointer; font-size: var(--step-0); }
.nav__guides ul { list-style: none; margin: 0; padding: 0; }
.nav__sheet { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.crumbs a, .sources a, .timeline__wk { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs { margin-bottom: var(--space-m); }
.size-panel { margin-block: var(--space-m); }
.cta-week, .cta-tool { margin-block: var(--space-l); }
.hub-hero { padding-block: var(--space-m); }
.hub-hero h1 { max-width: 18ch; }
.phone__ring { background: conic-gradient(var(--accent) 0 var(--progress), var(--line) var(--progress) 100%); }
.ctabar { min-height: 80px; }
.ctabar-spacer { height: calc(80px + env(safe-area-inset-bottom, 0px)); }
.ctabar-switch:focus-visible ~ .ctabar .ctabar__close { outline: var(--focus-width) solid var(--focus); }
.faq__item > summary::after, .faq__item > summary:hover, .os > summary::after { color: var(--petrol); }
@media (min-width: 64rem) {
  :root { --gutter: var(--space-l); --space-3xl: 7rem; --step-1: 1.1875rem; --header-h: 72px; }
  h1 { font-size: var(--step-5); }
  .hub-hero h1 { font-size: var(--step-6); }
  .nav::details-content { content-visibility: visible; }
  .nav:not([open]) > .nav__sheet { display: flex; }
  .nav__sheet { overflow: visible; }
  .nav__guides { position: relative; }
  .nav__guides > summary { padding-inline: 0; }
  .nav__guides ul { position: absolute; min-width: 12rem; background: var(--surface); border: 1px solid var(--line); padding: var(--space-s); }
}

.gn__label { font-size: var(--step--1); color: var(--sage-text); }

@media (min-width: 45rem) { .ctabar-switch { display: none; } }

/* == t1 layout fix == grid items must be allowed to shrink below their min-content,
   otherwise the week teaser stretches its section past the viewport at 375 px. */
.grid > *, .week-grid > li { min-width: 0; }
.week-card__size { overflow-wrap: anywhere; }

/* == S4 tools == */
.calc {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  box-shadow: var(--shadow-soft);
}
.calc__modes { display: flex; gap: 0; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--space-m); }
.calc__mode {
  flex: 1;
  min-height: var(--tap);
  border: 0; background: none;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: var(--step-0); font-weight: var(--weight-bold);
  color: var(--muted);
  cursor: pointer;
}
.calc__mode[aria-selected="true"] { background: var(--surface); color: var(--petrol); box-shadow: var(--shadow-soft); }

.field { display: block; margin-bottom: var(--space-s); }
.field__label { display: block; font-weight: var(--weight-bold); font-size: var(--step-0); margin-bottom: var(--space-3xs); color: var(--ink); }
.field__hint { display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-2xs); }
.field input[type="date"] {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-2xs) var(--space-xs);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-family: inherit;
  font-size: var(--step-1);
  color: var(--ink);
}
.field input[type="date"]:focus-visible { border-color: var(--focus); }
.field[data-invalid="true"] input[type="date"] { border-color: var(--alert); }

.calc__error {
  display: flex; gap: var(--space-2xs);
  background: var(--alert-bg);
  border-radius: var(--radius-s);
  padding: var(--space-2xs) var(--space-xs);
  color: var(--alert);
  font-size: var(--step-0);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-s);
}
.calc__error[hidden] { display: none; }

.calc__result { margin-top: var(--space-m); }
.calc__result[hidden] { display: none; }
.result-card {
  background: var(--tone-arena);
  border-radius: var(--radius-card);
  padding: var(--space-m);
  text-align: center;
  color: var(--tone-arena-text);
}
.result-card__wk { display: block; font-size: var(--step-6); font-weight: var(--weight-bold); line-height: 1; color: var(--tone-arena-text); }
.result-card__wk small { display: block; font-size: var(--step-0); font-weight: var(--weight-regular); }
.result-card__rows { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; gap: var(--space-2xs); text-align: left; }
.result-card__rows li {
  display: flex; justify-content: space-between; gap: var(--space-s);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-s);
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--step-0);
  margin: 0;
}
.result-card__rows b { font-weight: var(--weight-bold); text-align: right; }

.tool-page .wrap { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }
.tool-page .hero { padding-bottom: 0; }
.calc input[type="number"] { width: 100%; min-height: var(--tap); padding: var(--space-2xs); font: inherit; border: 2px solid var(--line-strong); border-radius: var(--radius-s); }
.calc input { min-width: 0; }
.calc__notice { padding: var(--space-s); background: var(--alert-bg); color: var(--alert); border: 2px solid currentColor; border-radius: var(--radius-s); }
.calc button:disabled { opacity: .65; cursor: default; }
.calc__result .cta-tool { margin-block: var(--space-s); }
@media (max-width: 25rem) { .result-card__rows li { flex-direction: column; gap: var(--space-3xs); } .result-card__rows b { text-align: left; } }

/* == images == illustrations from docs/imagery-manifest.json, rendered by picture() */
.pic { display: block; width: 100%; height: auto; border-radius: var(--radius-l); background: var(--surface-sunken); }
.home-band { margin-block: var(--space-l); }
.hub-figure { margin: var(--space-m) 0; }
.article-figure, .week-figure { margin: var(--space-m) 0; }
.article-card__thumb picture, .article-card__thumb .article-card__img { display: block; width: 100%; height: 100%; }
.article-card__thumb .article-card__img { object-fit: cover; border-radius: 0; }
.week-figure .pic { max-width: 30rem; margin-inline: auto; }

/* Contact channels: one button per configured channel (partials/contact-channels.php).
   Full width on a phone so the number is the easiest thing on the screen to hit,
   side by side once there is room for it. */
.channels { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-m) 0 var(--space-s); }
.channels__btn { flex: 1 1 16rem; flex-direction: column; gap: 2px; padding-block: var(--space-xs); text-align: center; }
.channels__label { font-size: var(--step--1); font-weight: var(--weight-regular); opacity: 0.85; }
.channels__value { font-size: var(--step-1); font-weight: var(--weight-bold); }
.channels__note { font-size: var(--step--1); color: var(--muted); }
