/* ==========================================================================
   Peri Happy: design system v2
   Premium editorial. Mobile-first. No build step.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #fbf7f1;
  --paper-deep: #f3ebe0;
  --white: #fffdfa;
  --ink: #29211f;
  --ink-soft: #6f6157;
  --plum: #46223e;
  --plum-deep: #331731;
  --plum-wash: #f6eef4;
  --coral: #c05b33;
  --coral-deep: #9e4423;
  --sage: #5c7355;
  --sage-deep: #465c40;
  --sage-wash: #eef1ea;
  --gold: #c79a4b;
  --gold-wash: #f7efdd;
  --line: #e7dccc;

  /* Depth */
  --shadow-s: 0 1px 2px rgba(41, 33, 31, 0.06), 0 4px 12px rgba(41, 33, 31, 0.06);
  --shadow-m: 0 2px 4px rgba(41, 33, 31, 0.05), 0 12px 32px rgba(41, 33, 31, 0.1);
  --shadow-l: 0 4px 8px rgba(41, 33, 31, 0.06), 0 24px 56px rgba(41, 33, 31, 0.16);

  /* Shape */
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--plum);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coral);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

img, svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

ul, ol {
  padding-left: 1.3em;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchor targets clear the sticky header */
[id] {
  scroll-margin-top: 96px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--flush-top { padding-top: 0; }

.section--tint { background: var(--paper-deep); }
.section--plum { background: var(--plum); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-cta {
  margin-top: 40px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--r-s) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

/* Scroll reveal (only active when JS present) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  transition: transform 0.18s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(192, 91, 51, 0.32);
}

.btn--primary:hover {
  background: var(--coral-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 91, 51, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: rgba(70, 34, 62, 0.35);
}

.btn--ghost:hover {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-s);
}

.btn--light:hover {
  color: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--plum);
  color: #e9d5e2;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: center;
  padding: 9px var(--gutter);
  letter-spacing: 0.02em;
}

.announce a {
  color: var(--white);
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(41, 33, 31, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--plum);
  text-decoration: none;
}

.logo:hover { color: var(--plum); }

.logo__peri { color: var(--coral); font-style: italic; font-weight: 500; }
.logo__dot { color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-s);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  padding: 14px var(--gutter) 24px;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--plum);
  text-decoration: none;
  border-radius: var(--r-s);
}

.site-nav a:hover {
  background: var(--paper-deep);
  color: var(--coral-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--coral-deep);
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }

  .site-nav a {
    padding: 9px 16px;
    font-size: 0.95rem;
    position: relative;
  }

  .site-nav a:hover {
    background: none;
  }

  .site-nav a:not(.nav-cta a)::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-nav .nav-cta a {
    background: var(--plum);
    color: var(--white);
    border-radius: 999px;
    padding: 12px 24px;
    margin-left: 14px;
  }

  .site-nav .nav-cta a::after { content: none; }

  .site-nav .nav-cta a:hover {
    background: var(--coral-deep);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(199, 154, 75, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 55% at 0% 100%, rgba(92, 115, 85, 0.1), transparent 60%),
    var(--paper);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 26px;
  max-width: 12em;
}

.hero__lede {
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 34px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero__trust svg {
  flex-shrink: 0;
  color: var(--sage-deep);
}

.hero__media {
  position: relative;
}

.hero__photo {
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 5 / 4;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__stat-card {
  position: absolute;
  left: -12px;
  bottom: -26px;
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-l);
  padding: 18px 24px;
  display: flex;
  gap: 24px;
}

.hero__stat-card > div {
  text-align: center;
}

.hero__stat-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral-deep);
  line-height: 1.2;
}

.hero__stat-card .lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__stat-card .lbl a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__photo {
    aspect-ratio: 4 / 4.4;
  }

  .hero__stat-card {
    left: -40px;
    bottom: 40px;
    flex-direction: column;
    gap: 16px;
    text-align: left;
  }

  .hero__stat-card > div {
    text-align: left;
  }
}

/* ---------- Stats band ---------- */

.stats-band {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stats-band__item {
  padding: 28px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.stats-band__item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stats-band__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--plum);
  line-height: 1.15;
}

.stats-band__lbl {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .stats-band__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-band__item {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 40px 20px;
  }

  .stats-band__item:last-child {
    border-right: none;
  }
}

/* ---------- Pillars (numbered editorial) ---------- */

.pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 34px 4px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.pillar__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--coral);
  line-height: 1;
  padding-top: 4px;
  min-width: 52px;
}

.pillar h3 {
  margin-bottom: 8px;
}

.pillar p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 52em;
}

@media (min-width: 880px) {
  .pillar {
    grid-template-columns: 120px 1fr 1.6fr;
    padding: 44px 4px;
  }

  .pillar h3 { margin: 0; }
}

/* ---------- Photo cards ---------- */

.card-grid {
  display: grid;
  gap: clamp(22px, 3vw, 32px);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pcard__media {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-s);
  margin-bottom: 18px;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pcard:hover .pcard__media img {
  transform: scale(1.05);
}

.pcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(4px);
  color: var(--plum);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-s);
}

.pcard h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.pcard h3 a {
  color: inherit;
  text-decoration: none;
}

.pcard h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pcard:hover h3 a {
  color: var(--coral-deep);
}

.pcard__desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 14px;
  flex-grow: 1;
}

.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pcard__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pcard__meta svg {
  color: var(--sage-deep);
}

.science-tag {
  display: inline-block;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ---------- Feature split (recipe of the week) ---------- */

.feature {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.feature__media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 3;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover .feature__media img {
  transform: scale(1.04);
}

.feature__body .eyebrow { margin-bottom: 14px; }

.feature__body h2 { max-width: 12em; }

.feature__body > p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 36em;
}

.feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
}

.feature__facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum);
  padding: 8px 18px;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: 1.1fr 1fr;
  }

  .feature--flip .feature__media { order: 2; }
  .feature--flip .feature__body { order: 1; }
}

/* ---------- Full-bleed circle band ---------- */

.circle-band {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-l);
}

.circle-band__bg {
  position: absolute;
  inset: 0;
}

.circle-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.circle-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(51, 23, 49, 0) 30%, rgba(51, 23, 49, 0.82) 78%);
}

.circle-band__content {
  position: relative;
  padding: clamp(28px, 5vw, 64px);
  max-width: 620px;
}

.circle-band__content .eyebrow {
  color: var(--gold);
}

.circle-band__content .eyebrow::before {
  background: var(--gold);
}

.circle-band__content h2 {
  color: var(--white);
}

.circle-band__content p {
  color: rgba(244, 232, 239, 0.92);
  font-size: 1.05rem;
}

/* ---------- Pull quote ---------- */

.pullquote {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.pullquote blockquote {
  margin: 0;
}

.pullquote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--plum);
}

.pullquote figcaption {
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pullquote figcaption strong {
  color: var(--coral-deep);
}

/* ---------- Supermarket strip ---------- */

.market-strip {
  text-align: center;
}

.market-strip p.lead {
  color: var(--ink-soft);
  max-width: 42em;
  margin-inline: auto;
}

.market-strip__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.market-strip__logos li {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum-soft, #6d4463);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  opacity: 0.85;
}

.market-strip__note {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Newsletter ---------- */

.newsletter-card {
  background: var(--plum);
  border-radius: var(--r-l);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}

.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 90% 10%, rgba(192, 91, 51, 0.35), transparent 60%),
    radial-gradient(ellipse 45% 60% at 5% 95%, rgba(199, 154, 75, 0.22), transparent 60%);
  pointer-events: none;
}

.newsletter-card > * {
  position: relative;
}

.newsletter-card .eyebrow {
  color: var(--gold);
  justify-content: center;
}

.newsletter-card .eyebrow::before { background: var(--gold); }

.newsletter-card h2 {
  color: var(--white);
  max-width: 18em;
  margin-inline: auto;
}

.newsletter-card > p {
  color: #e9d5e2;
  max-width: 36em;
  margin-inline: auto;
}

.newsletter-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 30px auto 0;
}

.newsletter-card input[type="email"] {
  font: inherit;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 100%;
}

.newsletter-card input[type="email"]::placeholder {
  color: rgba(233, 213, 226, 0.7);
}

.newsletter-card input[type="email"]:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.newsletter-card .form-note {
  font-size: 0.83rem;
  color: rgba(233, 213, 226, 0.75);
  margin: 16px auto 0;
  text-align: center;
}

.newsletter-card form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 560px) {
  .newsletter-card form {
    flex-direction: row;
  }

  .newsletter-card input[type="email"] { flex-grow: 1; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(ellipse 60% 70% at 95% 0%, rgba(199, 154, 75, 0.13), transparent 60%),
    var(--paper);
}

.page-hero p.lede {
  color: var(--ink-soft);
  max-width: 620px;
  font-size: 1.12rem;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.84rem;
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "·";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}

/* Featured (wide) category card */
@media (min-width: 980px) {
  .pcard--wide {
    grid-column: span 2;
  }

  .pcard--wide .pcard__media {
    aspect-ratio: 16 / 7.2;
  }
}

/* ---------- Recipe page ---------- */

.recipe-hero {
  position: relative;
}

.recipe-hero__media {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.recipe-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep the top of the photo in frame when the subject (faces) sits high in the image */
.recipe-hero--top-crop .recipe-hero__media img {
  object-position: 50% 8%;
}

.recipe-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(51, 23, 49, 0.02) 30%, rgba(41, 20, 39, 0.88) 88%);
}

.recipe-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(88px, 12vw, 120px);
}

.recipe-hero__content .breadcrumb,
.recipe-hero__content .breadcrumb a {
  color: rgba(244, 232, 239, 0.85);
}

.recipe-hero__content .breadcrumb li + li::before {
  color: rgba(244, 232, 239, 0.4);
}

.recipe-hero__content h1 {
  color: var(--white);
  max-width: 14em;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}

.recipe-hero__lede {
  color: rgba(244, 232, 239, 0.92);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 38em;
  margin-bottom: 22px;
}

.recipe-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-hero__tags a {
  display: inline-block;
  background: rgba(255, 253, 250, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 253, 250, 0.3);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.recipe-hero__tags a:hover {
  background: rgba(255, 253, 250, 0.28);
  color: var(--white);
}

/* Meta card overlapping hero */
.recipe-meta-wrap {
  margin-top: -64px;
  position: relative;
  z-index: 2;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  margin: 0;
}

.recipe-meta__item {
  padding: 22px 16px;
  text-align: center;
}

.recipe-meta__item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.recipe-meta__item:nth-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.recipe-meta__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.recipe-meta__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0;
}

@media (min-width: 720px) {
  .recipe-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .recipe-meta__item {
    border-right: 1px solid var(--line);
    border-bottom: none !important;
    padding: 28px 20px;
  }

  .recipe-meta__item:last-child {
    border-right: none;
  }
}

/* Action row (print / share / save) */
.recipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.recipe-actions button,
.recipe-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.recipe-actions button:hover,
.recipe-actions a:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
  transform: translateY(-1px);
}

/* Science panel */
.science-panel {
  background: var(--sage-wash);
  border: 1px solid rgba(92, 115, 85, 0.25);
  border-radius: var(--r-m);
  padding: clamp(26px, 4vw, 40px);
}

.science-panel h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--sage-deep);
}

.science-panel__lead {
  margin: 14px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(92, 115, 85, 0.25);
  line-height: 1.7;
}

.science-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.science-panel li {
  margin-bottom: 14px;
}

.science-panel li:last-child { margin-bottom: 0; }

.science-panel .ref {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* Recipe layout */
.recipe-layout {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(40px, 6vw, 64px);
}

@media (min-width: 940px) {
  .recipe-layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }

  .recipe-layout__aside {
    position: sticky;
    top: 96px;
  }
}

/* Full-width band under the recipe layout: nutrition + planner promo */
.recipe-extras {
  display: grid;
  gap: clamp(24px, 3.5vw, 36px);
  margin-top: clamp(32px, 5vw, 56px);
}

@media (min-width: 880px) {
  .recipe-extras {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
}

.recipe-extras .nutrition {
  margin-top: 0;
}

.recipe-extras .planner-promo {
  align-content: center;
}

/* Ingredients */
.ingredients {
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 36px);
}

.ingredients h2 { font-size: 1.5rem; }

.ingredients ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredients li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.ingredients li:last-child { border-bottom: none; }

.ingredients label {
  display: flex;
  gap: 13px;
  align-items: baseline;
  cursor: pointer;
}

.ingredients input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--coral);
  flex-shrink: 0;
  transform: translateY(3px);
  cursor: pointer;
}

.ingredients input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.ingredients .subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--plum);
  padding-top: 20px;
  border-bottom: none;
}

/* Shop the ingredients (affiliate-ready) */
.shop-block {
  background: var(--gold-wash);
  border: 1px solid rgba(199, 154, 75, 0.35);
  border-radius: var(--r-m);
  padding: clamp(24px, 4vw, 32px);
  margin-top: 24px;
}

.shop-block h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-block p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.shop-block__stores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-block__stores a {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 13px 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-block__stores a:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-s);
  transform: translateY(-2px);
}

.shop-block__note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* Full-width variant below the ingredients/method columns */
.shop-block--wide {
  margin-top: clamp(32px, 5vw, 56px);
}

@media (min-width: 720px) {
  .shop-block--wide .shop-block__stores {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Method */
.method h2 { font-size: 1.7rem; }

.method ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.method li {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
  margin-bottom: 34px;
}

.method li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--coral);
}

.method li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  bottom: -26px;
  width: 1px;
  background: var(--line);
  margin-left: 16px;
}

.method li:last-of-type::after { content: none; }

.method li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 6px;
}

.method li p {
  margin: 0;
  color: var(--ink-soft);
}

.tip-box {
  background: var(--gold-wash);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 18px 22px;
  font-size: 0.95rem;
  margin-top: 14px;
}

.tip-box strong { color: var(--plum); }

/* Nutrition */
.nutrition {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: clamp(24px, 4vw, 36px);
  margin-top: 24px;
}

.nutrition h2 { font-size: 1.4rem; }

.nutrition table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.nutrition caption {
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.nutrition th,
.nutrition td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.nutrition td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--plum);
}

.nutrition tr:last-child th,
.nutrition tr:last-child td { border-bottom: none; }

/* ---------- Science hub ---------- */

a.chip {
  text-decoration: none;
  display: inline-block;
}

.science-section .prose {
  max-width: 720px;
}

.science-section .prose p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.science-section .prose p strong {
  color: var(--ink);
}

.science-section .science-panel {
  max-width: 860px;
  margin: 32px 0;
}

.science-section .science-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--sage-deep);
}

.plate-box {
  background: var(--gold-wash);
  border: 1px solid rgba(199, 154, 75, 0.35);
  border-radius: var(--r-m);
  padding: clamp(22px, 3.5vw, 32px);
  max-width: 860px;
  margin-bottom: 28px;
}

.plate-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: var(--coral-deep);
}

.plate-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.plate-box li {
  margin-bottom: 8px;
  color: var(--ink);
}

.plate-box li:last-child {
  margin-bottom: 0;
}

.science-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.science-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral-deep);
  text-decoration: none;
}

.science-link:hover {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep secondary links clickable above the card's stretched link */
.pcard .science-link {
  position: relative;
  z-index: 2;
}

.evidence-note {
  background: var(--plum-wash);
  border: 1px solid rgba(70, 34, 62, 0.15);
  border-radius: var(--r-m);
  padding: clamp(22px, 3.5vw, 32px);
  max-width: 860px;
}

.evidence-note h2 {
  font-size: 1.3rem;
}

.evidence-note p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.evidence-note p:last-child {
  margin-bottom: 0;
}

/* Science hub topic cards */

.sci-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .sci-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sci-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sci-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}

.sci-card .eyebrow {
  margin-bottom: 0;
}

.sci-card h2 {
  font-size: 1.28rem;
  margin: 0;
}

.sci-card h2 a {
  color: inherit;
  text-decoration: none;
}

.sci-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.sci-card:hover h2 a {
  color: var(--coral-deep);
}

.sci-card p {
  margin: 0;
  flex-grow: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.sci-card .science-link {
  margin-top: 2px;
}

/* Category science promo (recipes index, shown when a category is active) */

.science-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  background: var(--sage-wash);
  border: 1px solid rgba(70, 92, 64, 0.18);
  border-radius: var(--r-m);
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 30px);
  margin-bottom: clamp(24px, 4vw, 36px);
}

.science-promo__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 6px;
}

.science-promo h2 {
  font-size: 1.18rem;
  margin: 0 0 4px;
}

.science-promo p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 58ch;
}

.science-promo .btn {
  flex-shrink: 0;
}

/* "More of the science" cross-links on science pages */

.more-science {
  margin-bottom: clamp(36px, 6vw, 56px);
}

.more-science h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* Science page FAQ */

.sci-faq {
  max-width: 720px;
}

.sci-faq h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.sci-faq p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- Blog ---------- */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

.post-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.post-figure {
  margin: 0 0 clamp(32px, 5vw, 48px);
}

.post-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
}

.post-figure figcaption {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.post-body {
  max-width: 720px;
}

.post-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.post-body p strong {
  color: var(--ink);
}

.post-body h2 {
  font-size: 1.55rem;
  margin-top: clamp(32px, 5vw, 44px);
}

.post-body ul {
  padding-left: 1.2em;
}

.post-body ul li {
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 28px 0;
  padding: 4px 0 4px 22px;
}

.post-body blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--plum);
  margin: 0;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px 24px;
  max-width: 720px;
  margin-top: clamp(36px, 5vw, 48px);
}

.author-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.author-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.author-card p strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

/* ---------- Peri Planner ---------- */

.planner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: clamp(26px, 4.5vw, 48px);
  max-width: 860px;
}

.planner-card__step {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 10px;
}

.planner-card h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 14px;
}

.planner-card fieldset {
  border: none;
  padding: 0;
  margin: 0 0 34px;
}

.planner-card textarea {
  font: inherit;
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 18px 22px;
  border-radius: var(--r-m);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.planner-card textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.planner-card .chip-row {
  margin-top: 14px;
}

.household-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .household-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.house-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.house-btn:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
}

.house-btn[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

.house-btn .house-btn__note {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 3px;
}

/* Cycle step */
.cycle-hint {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: -4px 0 18px;
}

.cycle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
}

.cycle-date span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 7px;
}

.cycle-date input[type="date"] {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 16px;
  min-width: 200px;
}

.cycle-date input[type="date"]:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.cycle-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

/* Cycle-aware note in the generated plan */
.plan-cycle {
  background: var(--gold-wash);
  border: 1px solid rgba(199, 154, 75, 0.35);
  border-radius: var(--r-m);
  padding: 14px 20px;
  font-size: 0.93rem;
  color: var(--ink);
  margin: 0 0 20px;
}

.plan-cycle strong {
  color: var(--coral-deep);
}

.planner-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.planner-submit .note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Generated week */
.plan-week {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.plan-day {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 14px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.plan-day:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.plan-day__img {
  width: 86px;
  height: 86px;
  border-radius: var(--r-s);
  object-fit: cover;
}

.plan-day__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 3px;
}

.plan-day h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.plan-day h3 a {
  color: inherit;
  text-decoration: none;
}

.plan-day h3 a:hover {
  color: var(--coral-deep);
}

.plan-day__why {
  display: inline-block;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

.plan-day__meta {
  display: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .plan-day {
    grid-template-columns: 86px 1fr auto;
  }

  .plan-day__meta {
    display: block;
  }
}

.plan-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.plan-result__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.plan-result__serves {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sage-deep);
  background: var(--sage-wash);
  border-radius: 999px;
  padding: 7px 16px;
}

/* Chat panel */
.plan-panel__note {
  margin: 18px 2px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.btn--small {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.chat-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel__head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-panel__head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.chat-panel__head svg {
  color: var(--coral);
  flex-shrink: 0;
}

.chat-thread {
  list-style: none;
  margin: 0;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.chat-msg--user {
  justify-self: end;
  background: var(--plum);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.chat-msg--ai {
  justify-self: start;
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  font: inherit;
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.chat-input button {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--coral);
  color: var(--white);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.chat-input button:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

/* Save / sign-in card */
.save-card {
  background: var(--plum);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  padding: clamp(26px, 4vw, 36px);
  position: relative;
  overflow: hidden;
}

.save-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 90% 5%, rgba(192, 91, 51, 0.35), transparent 60%);
  pointer-events: none;
}

.save-card > * {
  position: relative;
}

.save-card h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.save-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.save-card li {
  display: flex;
  gap: 11px;
  align-items: baseline;
  color: #e9d5e2;
  font-size: 0.94rem;
  padding: 7px 0;
}

.save-card li svg {
  flex-shrink: 0;
  color: var(--gold);
  transform: translateY(2px);
}

.save-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.save-card__note {
  font-size: 0.8rem;
  color: rgba(233, 213, 226, 0.75);
  margin: 16px 0 0;
}

/* Planner promo band (reusable) */
.planner-promo {
  position: relative;
  overflow: hidden;
  background: var(--plum);
  border-radius: var(--r-m);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-m);
}

.planner-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 95% 10%, rgba(192, 91, 51, 0.4), transparent 60%),
    radial-gradient(ellipse 40% 60% at 5% 90%, rgba(199, 154, 75, 0.25), transparent 60%);
  pointer-events: none;
}

.planner-promo > * {
  position: relative;
}

.planner-promo__body h2,
.planner-promo__body h3 {
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 8px;
}

.planner-promo__body p {
  color: #e9d5e2;
  font-size: 0.98rem;
  margin: 0;
  max-width: 44em;
}

.planner-promo__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--plum-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

@media (min-width: 880px) {
  .planner-promo:not(.planner-promo--stack) {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }
}

.planner-promo--stack .btn {
  justify-self: start;
}

/* Homepage planner feature: mock plan preview */
.mock-plan {
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-l);
  padding: 22px;
  position: relative;
}

.mock-plan__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.mock-plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mock-plan li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.mock-plan img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.mock-plan .day {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.mock-plan .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
  line-height: 1.25;
}

.mock-plan__bubble {
  position: absolute;
  right: -10px;
  bottom: -18px;
  max-width: 78%;
  background: var(--plum);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 12px 18px;
  border-radius: 16px 16px 6px 16px;
  box-shadow: var(--shadow-m);
}

/* ---------- Say this, not that (circle page) ---------- */

.saythis {
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .saythis {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.saythis__col {
  border-radius: var(--r-m);
  padding: clamp(26px, 4vw, 38px);
}

.saythis__col--do {
  background: var(--sage-wash);
  border: 1px solid rgba(92, 115, 85, 0.25);
}

.saythis__col--dont {
  background: #f8e9e3;
  border: 1px solid rgba(192, 91, 51, 0.25);
}

.saythis__col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

.saythis__col--do h3 { color: var(--sage-deep); }
.saythis__col--dont h3 { color: var(--coral-deep); }

.saythis__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.saythis__col li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed rgba(41, 33, 31, 0.12);
}

.saythis__col li:last-child { border-bottom: none; }

.saythis__col li::before {
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 700;
}

.saythis__col--do li::before {
  content: "✓";
  color: var(--sage-deep);
}

.saythis__col--dont li::before {
  content: "✕";
  color: var(--coral-deep);
}

.saythis__col li em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--plum);
}

/* ---------- Recipe index toolbar ---------- */

.toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.search-field {
  position: relative;
  max-width: 560px;
}

.search-field svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.search-field input {
  font: inherit;
  width: 100%;
  padding: 15px 22px 15px 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-field input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.chip:hover {
  border-color: var(--coral);
  color: var(--coral-deep);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

.toolbar__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.select-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.select-field select {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 38px 10px 18px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2346223e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.select-field select:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.results-bar__count {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}

.results-bar__count strong {
  color: var(--plum);
}

.link-clear {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--coral-deep);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
}

.link-clear:hover {
  color: var(--coral);
}

.no-results {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-m);
}

.no-results h2 {
  font-size: 1.5rem;
}

.no-results p {
  color: var(--ink-soft);
  max-width: 32em;
  margin-inline: auto;
}

.pcard.is-hidden {
  display: none;
}

@media (min-width: 880px) {
  .toolbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .toolbar .search-field {
    grid-column: 1;
  }

  .toolbar__selects {
    grid-column: 2;
    justify-content: flex-end;
  }

  .toolbar .chip-row {
    grid-column: 1 / -1;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--plum-deep);
  color: #cfb3c6;
  padding-block: clamp(56px, 8vw, 88px) 36px;
}

.site-footer .logo {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 16px;
}

.site-footer__grid {
  display: grid;
  gap: 40px;
  margin-bottom: 52px;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
  }

  /* Brand blurb gets its own row until the grid is wide enough for four columns */
  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (min-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
  }

  .site-footer__grid > div:first-child {
    grid-column: auto;
    max-width: none;
  }
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 10px; }

.site-footer a {
  color: #cfb3c6;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__note {
  font-size: 0.83rem;
  color: #a6809b;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  line-height: 1.7;
}

/* ---------- Planner app (planner-app.html) ---------- */

.app-body {
  background: var(--paper);
  height: 100dvh;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100dvh;
}

/* Left rail */
.app-rail {
  background: var(--plum);
  color: #e9d5e2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 16px;
  overflow-y: auto;
  width: 264px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.22s ease, visibility 0.22s ease;
}

.app-rail.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: var(--shadow-l);
}

.app-scrim {
  position: fixed;
  inset: 0;
  background: rgba(41, 33, 31, 0.45);
  z-index: 55;
}

.app-rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}

.app-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-s);
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.app-iconbtn:hover {
  background: rgba(255, 253, 250, 0.12);
}

.app-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.16s ease;
}

.app-new:hover {
  background: var(--coral-deep);
}

.app-rail__nav {
  flex: 1;
}

.app-rail__nav h2 {
  font-family: var(--font-body, inherit);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 213, 226, 0.55);
  margin: 22px 0 8px;
}

.app-rail__nav h2:first-child {
  margin-top: 0;
}

.app-rail__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.app-rail__nav a,
.app-rail__nav button {
  font: inherit;
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: none;
  border-radius: var(--r-s);
  padding: 10px 12px;
  text-decoration: none;
  cursor: pointer;
}

.app-rail__nav a:hover,
.app-rail__nav button:hover {
  background: rgba(255, 253, 250, 0.1);
}

.app-rail__nav .is-active {
  background: rgba(255, 253, 250, 0.14);
  color: var(--white);
}

.app-rail__nav .is-disabled {
  opacity: 0.5;
  cursor: default;
}

.app-rail__nav .is-disabled:hover {
  background: transparent;
}

.app-rail__nav span {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(233, 213, 226, 0.65);
  margin-top: 2px;
}

.app-rail__foot {
  border-top: 1px solid rgba(233, 213, 226, 0.2);
  padding-top: 16px;
}

.app-rail__foot p {
  font-size: 0.8rem;
  color: rgba(233, 213, 226, 0.75);
  margin: 0 0 12px;
}

/* Main area */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 2.5vw, 26px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.app-topbar .app-iconbtn {
  color: var(--plum);
}

.app-topbar .app-iconbtn:hover {
  background: var(--paper-deep);
}

.app-topbar__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
}

.app-topbar__title h1 {
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
}

.app-serves {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage-deep);
  background: var(--sage-wash);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}

.app-serves--diet {
  color: var(--coral-deep);
  background: #f8e9e3;
}

.app-view-toggle {
  display: inline-flex;
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 3px;
}

.app-view-toggle button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.app-view-toggle button.is-active {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-s);
}

.app-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

/* Chat column */
.app-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--paper);
}

.app-thread {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 14px;
  align-content: start;
  flex: 1;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(18px, 3vw, 28px) 12px;
}

.app-input {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 14px clamp(18px, 3vw, 28px);
}

/* Plan / list panel */
.app-doc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--white);
  border-left: 1px solid var(--line);
}

.app-doc__tabs {
  display: flex;
  gap: 4px;
  padding: 12px clamp(16px, 2.5vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}

.app-doc__tabs button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
}

.app-doc__tabs button:hover {
  color: var(--plum);
}

.app-doc__tabs button.is-active {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
}

.app-doc__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 2.5vw, 24px);
}

.app-doc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px clamp(16px, 2.5vw, 24px);
  background: var(--paper);
}

.app-doc__foot p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum);
}

/* Shopping list */
.app-list__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.app-list__intro {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 44ch;
}

.app-list__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.app-list__actions .btn {
  gap: 7px;
}

/* Icons lead the label here, so skip the trailing-arrow nudge */
.app-list__actions .btn:hover svg {
  transform: none;
}

.app-list__status {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin: -8px 0 14px;
  min-height: 1.2em;
}

.app-list__group {
  margin-bottom: 22px;
}

.app-list__group h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.app-list label {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 0.94rem;
  padding: 7px 10px;
  border-radius: var(--r-s);
  cursor: pointer;
}

.app-list label:hover {
  background: var(--paper);
}

.app-list input[type="checkbox"] {
  accent-color: var(--coral);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: translateY(2px);
}

.app-list li:has(input:checked) label {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(111, 97, 87, 0.5);
}

.app-list em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--sage-deep);
  font-weight: 600;
}

.app-list__note {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

/* Recipe slide-over */
.app-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.24s ease, visibility 0.24s ease;
}

.app-sheet.is-open {
  transform: translateX(0);
  visibility: visible;
}

.app-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(41, 33, 31, 0.4);
}

.app-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.app-sheet__head .app-iconbtn {
  color: var(--plum);
  flex-shrink: 0;
}

.app-sheet__head .app-iconbtn:hover {
  background: var(--paper-deep);
}

.app-sheet__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 4px;
}

.app-sheet__head h2 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.app-sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 24px;
}

.app-sheet__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.app-sheet__inner {
  padding: 20px;
}

.app-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.app-sheet__meta span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

.app-sheet__why {
  background: var(--sage-wash);
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 20px;
}

.app-sheet__why strong {
  color: var(--sage-deep);
}

.app-sheet h3 {
  font-size: 1.02rem;
  margin: 0 0 10px;
}

.app-sheet__body ul,
.app-sheet__body ol {
  margin: 0 0 22px;
  padding-left: 20px;
}

.app-sheet__body li {
  font-size: 0.92rem;
  margin-bottom: 7px;
  line-height: 1.55;
}

.app-sheet__body ul {
  list-style: none;
  padding-left: 0;
}

.app-sheet__body ul li {
  padding-left: 18px;
  position: relative;
}

.app-sheet__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.app-sheet__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  background: var(--paper);
}

.app-sheet__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Plan cards open the slide-over */
.app-doc .plan-day {
  cursor: pointer;
}

/* Narrow screens: the top bar is tight, and the chat opener names the diet anyway */
@media (max-width: 719.98px) {
  .app-serves--diet {
    display: none;
  }
}

/* Mobile: one pane at a time, toggled from the top bar */
@media (max-width: 979.98px) {
  .app-main.view-doc .app-chat { display: none; }
  .app-main:not(.view-doc) .app-doc { display: none; }
}

/* Desktop: rail docked, chat and doc side by side */
@media (min-width: 980px) {
  .app-shell {
    grid-template-columns: 264px minmax(0, 1fr);
    transition: grid-template-columns 0.22s ease;
  }

  .app-rail {
    position: static;
    transform: none;
    visibility: visible;
    transition: none;
    width: auto;
  }

  /* The rail leaves the flow when collapsed, so pin the main area to column 2 */
  .app-main {
    grid-column: 2;
  }

  #rail-open,
  .app-scrim,
  .app-view-toggle {
    display: none;
  }

  .app-columns {
    grid-template-columns: minmax(360px, 5fr) minmax(0, 6fr);
  }

  /* Collapsed: rail slides out, hamburger returns to the top bar */
  .app-shell.rail-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .rail-collapsed .app-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 264px;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s ease;
  }

  .rail-collapsed #rail-open {
    display: inline-grid;
  }
}

/* ---------- Join / auth page (join.html) ---------- */

.auth-body {
  background: var(--paper);
  min-height: 100dvh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
}

/* Brand panel */
.auth-brand {
  display: none;
  background:
    linear-gradient(rgba(255, 253, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 250, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(192, 91, 51, 0.25), transparent 60%),
    var(--plum);
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: #e9d5e2;
  padding: clamp(28px, 4vw, 56px);
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.auth-brand__logo {
  color: var(--white);
}

.auth-brand__logo:hover {
  color: var(--white);
}

.auth-brand__middle h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  max-width: 12em;
}

.auth-brand__middle h1 em {
  color: var(--gold);
}

.auth-brand__middle p {
  max-width: 42ch;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.auth-brand__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-brand__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-brand__points svg {
  flex-shrink: 0;
  color: var(--plum);
  background: var(--gold);
  border-radius: 50%;
  padding: 4px;
  width: 24px;
  height: 24px;
}

.auth-brand__foot {
  font-size: 0.8rem;
  color: rgba(233, 213, 226, 0.6);
  margin: 0;
}

/* Form panel */
.auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 56px);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.auth-tabs button,
.auth-tabs a {
  display: inline-block;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 12px 4px;
  margin-right: 28px;
  cursor: pointer;
  text-decoration: none;
}

.auth-tabs button:hover,
.auth-tabs a:hover {
  color: var(--plum);
}

.auth-tabs button.is-active,
.auth-tabs a.is-active {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
}

.auth-card h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 7px;
}

.auth-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auth-forgot {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral-deep);
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-field input {
  font: inherit;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-s);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-password button:hover {
  color: var(--plum);
  background: var(--paper-deep);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.auth-note {
  background: var(--gold-wash);
  border: 1px solid rgba(199, 154, 75, 0.35);
  border-radius: var(--r-s);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin: 16px 0 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social {
  display: grid;
  gap: 10px;
}

.auth-social button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-social button:hover {
  border-color: var(--plum);
  box-shadow: var(--shadow-s);
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 22px 0 0;
}

.auth-switch a {
  color: var(--coral-deep);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-terms {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 16px 0 0;
  line-height: 1.6;
}

.auth-terms a {
  color: var(--coral-deep);
}

@media (min-width: 880px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .auth-brand {
    display: flex;
  }
}

/* ---------- Sign-up flow (signup.html) ---------- */

.signup-body {
  background: var(--paper);
  min-height: 100dvh;
}

.signup-top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.signup-top__inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 14px clamp(18px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signup-top p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.signup-top p a {
  color: var(--coral-deep);
  font-weight: 600;
  text-decoration: none;
}

.signup-top p a:hover {
  text-decoration: underline;
}

/* Stepper */
.signup-steps {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(18px, 4vw, 32px);
}

.signup-steps ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 460px;
}

.signup-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-steps__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--paper-deep);
  color: var(--ink-soft);
  flex-shrink: 0;
}

.is-current .signup-steps__num {
  background: var(--plum);
  color: var(--white);
}

.is-done .signup-steps__num {
  background: var(--sage-deep);
  color: var(--white);
}

.signup-steps__label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.signup-steps__label small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.signup-steps__line {
  flex: 0 1 90px;
  height: 1.5px;
  background: var(--line);
}

/* Main column */
.signup-main {
  max-width: 440px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) 18px 64px;
}

.signup-main h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.auth-optional {
  font-weight: 500;
  color: var(--ink-soft);
}

.auth-select {
  font: inherit;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.auth-select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

/* Social buttons in a row (stack on narrow screens) */
.auth-social--row {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 479.98px) {
  .auth-social--row {
    grid-template-columns: 1fr;
  }
}

/* Step 2: complete */
.signup-done {
  text-align: center;
  padding-top: clamp(12px, 3vw, 32px);
}

.signup-done__badge {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-deep);
  margin-bottom: 20px;
}

.signup-done h1 {
  margin-bottom: 10px;
}

.signup-done h1:focus {
  outline: none;
}

.signup-done p {
  color: var(--ink-soft);
  max-width: 40ch;
  margin-inline: auto;
}

.signup-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0;
}

.signup-done__note {
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Account dashboard (account.html) ---------- */

.acct-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 5vw, 52px) 0;
}

.acct-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.acct-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.acct-hero h1 em {
  color: var(--coral-deep);
}

.acct-hero__sub {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

.acct-stats {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
}

.acct-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--plum);
  line-height: 1.1;
}

.acct-stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.acct-section {
  padding-top: clamp(28px, 4vw, 44px);
}

.acct-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.acct-main,
.acct-side {
  display: grid;
  gap: 22px;
  min-width: 0;
}

@media (min-width: 940px) {
  .acct-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

/* Cards */
.acct-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  padding: clamp(20px, 3vw, 28px);
}

.acct-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.acct-card__head h2 {
  font-size: 1.2rem;
  margin: 0;
}

.acct-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.acct-badge--sage {
  color: var(--sage-deep);
  background: var(--sage-wash);
  border-color: transparent;
}

.acct-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.acct-card__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* Insights */
.acct-insights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.acct-insights li {
  display: flex;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.acct-insights strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.acct-insight__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.acct-insight__icon--sleep { background: var(--plum-wash); color: var(--plum); }
.acct-insight__icon--cycle { background: var(--gold-wash); color: var(--coral-deep); }
.acct-insight__icon--time { background: var(--sage-wash); color: var(--sage-deep); }

/* Past plans */
.acct-past {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-past li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.acct-past li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.acct-past strong {
  display: block;
  color: var(--plum);
  font-size: 0.95rem;
}

.acct-past span {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* Preferences */
.acct-edit {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--coral-deep);
  text-decoration: none;
}

.acct-edit:hover {
  text-decoration: underline;
}

.acct-prefs {
  margin: 0;
  display: grid;
  gap: 12px;
}

.acct-prefs dt {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.acct-prefs dd {
  margin: 2px 0 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.acct-log {
  margin-top: 18px;
}

/* Loved recipes */
.acct-loved {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.acct-loved a {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.acct-loved img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-s);
  display: block;
  margin-bottom: 6px;
}

.acct-loved span {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.acct-loved a:hover span {
  color: var(--coral-deep);
}

.acct-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--coral-deep);
  text-decoration: none;
}

.acct-more:hover {
  text-decoration: underline;
}

/* Disliked */
.acct-nope {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-nope li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.acct-nope li:last-child {
  border-bottom: none;
}

.acct-nope span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--coral-deep);
  background: #f8e9e3;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Account admin */
.acct-admin {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acct-admin li {
  border-bottom: 1px solid var(--line);
}

.acct-admin li:last-child {
  border-bottom: none;
}

.acct-admin a {
  display: block;
  padding: 11px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.acct-admin a:hover {
  color: var(--coral-deep);
}

.acct-disclaimer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ---------- Print ---------- */

/* ============================================================
   Daily check-in
   ============================================================ */

.container--narrow { max-width: 820px; }

.acct-checkin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--plum-wash), var(--white) 65%);
}

.acct-checkin h2 { margin-bottom: 0.3rem; }

.acct-checkin p { color: var(--ink-soft); font-size: 0.9rem; max-width: 46ch; }

.acct-checkin .btn { flex-shrink: 0; }

.checkin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.checkin-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.checkin-card__head h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0.35rem 0 0.5rem;
}

.checkin-card__sub {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 44ch;
}

.checkin-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--plum-wash);
  color: var(--plum);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rate-row {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.rate-row h2,
.rate-row > label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.7rem;
  display: block;
}

.rate-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.rate-scale button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.75rem 0.25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.rate-scale button span {
  font-size: 0.68rem;
  font-weight: 550;
  color: var(--ink-soft);
}

.rate-scale button:hover { border-color: var(--plum); transform: translateY(-1px); }

.rate-scale button[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

.rate-scale button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.85); }

.rate-row--note textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.rate-row--note textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.checkin-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.checkin-actions .note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0;
}

.checkin-done {
  text-align: center;
  max-width: 560px;
}

.checkin-done h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1rem 0 0.75rem; }

.checkin-done p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.25rem; }

@media (max-width: 560px) {
  .checkin-card__head { flex-direction: column-reverse; }
  .rate-scale button span { display: none; }
}

/* ============================================================
   Planner app: supermarket baskets
   ============================================================ */

.app-basket {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-s);
  background: var(--paper);
}

.app-basket__label {
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
}

.app-basket__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.app-basket__status {
  font-size: 0.78rem;
  color: var(--coral-deep);
  margin-top: 0.6rem;
  min-height: 1em;
}

/* ============================================================
   GP appointment report
   ============================================================ */

.report-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.report-toolbar h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0.35rem 0 0.5rem; }

.report-toolbar__sub { color: var(--ink-soft); font-size: 0.95rem; max-width: 52ch; }

.report-toolbar__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.report {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.report__head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}

.report__brand {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.report__head h2 { font-size: 1.5rem; margin-bottom: 0.3rem; }

.report__meta { font-size: 0.85rem; color: var(--ink-soft); }

.report__facts {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  font-size: 0.85rem;
  min-width: 240px;
}

.report__facts div { display: flex; gap: 0.5rem; }

.report__facts dt { font-weight: 700; min-width: 84px; }

.report__facts dd { color: var(--ink-soft); }

.report__section { margin-bottom: 1.5rem; }

.report__section h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--plum);
  margin-bottom: 0.8rem;
}

.report-bars { list-style: none; display: grid; gap: 0.6rem; }

.report-bars li {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) 3fr minmax(90px, auto);
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.report-bars__label { font-weight: 600; }

.report-bars__track {
  background: var(--paper-deep);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.report-bars__fill {
  display: block;
  height: 100%;
  background: var(--plum);
  border-radius: 999px;
}

.report-bars__val { color: var(--ink-soft); text-align: right; }

.report__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.report-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.report__note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }

.report-list { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; }

.report-list li {
  padding-left: 1.1rem;
  position: relative;
}

.report-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plum);
}

.report__foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.report-preview-note { text-align: center; margin-top: 1.25rem; }

@media (max-width: 640px) {
  .report__cols { grid-template-columns: 1fr; }
  .report-bars li { grid-template-columns: 1fr; gap: 0.25rem; }
  .report-bars__val { text-align: left; }
}

/* ============================================================
   Health profile
   ============================================================ */

.health-head { max-width: 620px; margin-bottom: 2rem; }

.health-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0.4rem 0 0.75rem; }

.health-head p { color: var(--ink-soft); }

.health-form { display: grid; gap: 1.25rem; }

.health-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.health-card legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  float: left;
  width: 100%;
}

.health-card__step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.health-choice {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.health-choice button {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.health-choice button strong { font-size: 0.92rem; }

.health-choice button span { font-size: 0.78rem; color: var(--ink-soft); }

.health-choice button:hover { border-color: var(--plum); }

.health-choice button[aria-pressed="true"] {
  border-color: var(--plum);
  background: var(--plum-wash);
}

.health-choice--row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.health-note {
  clear: both;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  max-width: 60ch;
}

.health-note--lead { margin: 0 0 1rem; }

.health-checks { clear: both; display: grid; gap: 0.65rem; }

.health-checks label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.health-checks input {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  accent-color: var(--plum);
  flex-shrink: 0;
}

.health-checks span { color: var(--ink-soft); }

.health-checks strong { color: var(--ink); }

.health-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.4rem;
}

.health-card input[type="text"],
.health-card textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.health-card input[type="text"]:focus,
.health-card textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(192, 91, 51, 0.14);
}

.health-card .chip-row { clear: both; margin-bottom: 0; }

.health-integrations { list-style: none; display: grid; gap: 0.6rem; clear: both; }

.health-integrations li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper);
}

.health-integrations strong { display: block; font-size: 0.92rem; }

.health-integrations div span { font-size: 0.78rem; color: var(--ink-soft); }

.health-integrations .btn { flex-shrink: 0; }

.health-status { font-size: 0.82rem; color: var(--plum); margin-top: 0.75rem; min-height: 1.2em; }

.health-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.health-actions .note { font-size: 0.85rem; color: var(--sage-deep); margin: 0; }

/* ============================================================
   Community
   ============================================================ */

.community-rules {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--paper-deep);
  border-radius: var(--r-m);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.community-rules svg { flex-shrink: 0; color: var(--plum); margin-top: 0.1rem; }

.community-rules p { max-width: 75ch; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: 1.5rem;
}

.story-card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.story-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.story-tag--win { background: var(--plum-wash); color: var(--plum); }

.story-tag--dont { background: #f8e9e1; color: var(--coral-deep); }

.kb-block {
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 840px) {
  .kb-block {
    grid-template-columns: 1fr 320px;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
  }
}

.kb-block__do h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  margin: 0.7rem 0 0.9rem;
}

.kb-block__do p { color: var(--ink-soft); }

.kb-block__do p + p { margin-top: 0.85rem; }

.kb-block__dont {
  background: #fbf1ea;
  border-radius: var(--r-m);
  padding: 1.4rem 1.5rem;
}

.kb-block__dont h3 {
  font-size: 1rem;
  margin: 0.7rem 0 0.5rem;
}

.kb-block__dont p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.kb-block__dont p + p { margin-top: 0.7rem; }

.kb-toppers-head { margin-top: clamp(3rem, 7vw, 5rem); }

/* Work with us: partnerships page */
.partner-quote {
  max-width: 780px;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.partner-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--plum);
  margin-bottom: 0.9rem;
}

.partner-quote figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.partner-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 920px) {
  .partner-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.partner-who h2 { margin: 0.6rem 0 1.2rem; }

.tick-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin-bottom: 1.4rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-11"/></svg>') center / 10px no-repeat,
    var(--gold);
}

.partner-who__no {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: var(--r-m);
  padding: 1.1rem 1.3rem;
}

.partner-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.partner-form-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }

.partner-form-card > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }

.partner-form { display: grid; gap: 1rem; }

.partner-form__row { display: grid; gap: 0.35rem; }

.partner-form__row label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
}

.partner-form__row input,
.partner-form__row textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.partner-form__row input:focus,
.partner-form__row textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: 1px;
  border-color: var(--plum);
}

.partner-form .btn { justify-self: start; }

.partner-form__status {
  font-size: 0.9rem;
  color: var(--plum);
  font-weight: 500;
}

.partner-form__alt {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Community: stars, board, threads, recipe reviews */
.stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.board-grid {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 640px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }

.board-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: rgba(70, 34, 62, 0.25);
}

.board-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
  color: var(--plum);
}

.board-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.board-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.thread-demo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.thread-demo__head { margin-bottom: 1.5rem; }

.thread-demo__head h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 0.4rem; }

.thread-demo__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.thread-demo__meta a { color: var(--coral-deep); }

.post {
  display: flex;
  gap: 0.9rem;
  padding-block: 1rem;
}

.post .story-card__avatar { flex-shrink: 0; }

.post__body { min-width: 0; }

.post__who {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.post__who span { color: var(--ink-soft); font-size: 0.8rem; }

.post__body > p:not(.post__who):not(.post__actions) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.post__actions {
  display: flex;
  gap: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral-deep);
}

.post__replies {
  margin-left: clamp(1.2rem, 4vw, 2.6rem);
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.thread-demo__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.thread-demo__cta p { font-size: 0.85rem; color: var(--ink-soft); max-width: 40ch; }

/* Recipe page: ratings & comments */
.reviews {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 880px) {
  .reviews { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
}

.reviews__summary {
  background: var(--paper-deep);
  border-radius: var(--r-m);
  padding: 1.6rem;
  text-align: center;
}

.reviews__score {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}

.reviews__summary .stars { font-size: 1.1rem; }

.reviews__count {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 1rem;
}

.reviews__bars {
  display: grid;
  gap: 6px;
  margin-bottom: 1.3rem;
  text-align: left;
}

.reviews__bars > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
}

.reviews__bars dt { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }

.reviews__bars dd {
  height: 7px;
  background: rgba(41, 33, 31, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.reviews__bars dd span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.reviews__note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

.reviews__list h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }

.reviews__list .post + .post,
.reviews__list .post__replies + .post {
  border-top: 1px solid var(--line);
}

.reviews__more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--coral-deep);
}

/* For Your Circle: split hero */
.circle-hero {
  background:
    radial-gradient(ellipse 55% 65% at 100% 0%, rgba(199, 154, 75, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(70, 34, 62, 0.06), transparent 65%),
    var(--paper);
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.circle-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 920px) {
  .circle-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.circle-hero__copy .eyebrow { display: inline-block; margin-top: 1.4rem; }

.circle-hero__copy h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  max-width: 12em;
  margin-bottom: 20px;
}

.circle-hero__lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 1.8rem;
}

.circle-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.circle-hero__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
}

.circle-hero__proof li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-left: 1.4rem;
}

.circle-hero__proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-11"/></svg>') center / 9px no-repeat,
    var(--gold);
}

.circle-hero__visual {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}

.circle-hero__frame {
  border-radius: 999px 999px var(--r-l) var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  aspect-ratio: 4 / 4.6;
}

.circle-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.circle-hero__chip {
  position: absolute;
  display: grid;
  gap: 1px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-m);
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.circle-hero__chip strong {
  display: block;
  font-size: 0.84rem;
  color: var(--plum);
}

.circle-hero__chip--1 { top: 12%; left: -7%; }
.circle-hero__chip--2 { top: 38%; right: -9%; }
.circle-hero__chip--3 { top: 66%; left: -9%; }

.circle-hero__quote {
  position: absolute;
  right: 4%;
  bottom: -7%;
  max-width: 250px;
  background: var(--plum);
  color: rgba(244, 232, 239, 0.95);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  padding: 1rem 1.2rem;
}

.circle-hero__quote blockquote {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 0.4rem;
}

.circle-hero__quote figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 232, 239, 0.6);
}

@media (max-width: 919px) {
  .circle-hero__visual { max-width: 420px; }
  .circle-hero__chip--1 { left: 0; top: 10%; }
  .circle-hero__chip--2 { right: 0; }
  .circle-hero__chip--3 { left: 0; }
  .circle-hero__quote { right: 0; bottom: -9%; }
}

/* Own It merch page */
.merch {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .merch {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.merch__media {
  display: grid;
  gap: 12px;
  align-content: start;
}

.merch__gallery {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.merch__gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.merch-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.merch-strip img {
  flex: 0 0 auto;
  width: min(62%, 300px);
  height: auto;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  box-shadow: var(--shadow-s);
}

.merch__details h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 0.6rem 0 0.4rem;
}

.merch__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.merch__price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.merch__blurb {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.merch__option { margin-bottom: 1.4rem; }

.merch__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.merch__label span { font-weight: 500; color: var(--ink-soft); }

.merch__swatches { display: flex; gap: 0.6rem; }

.merch-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.merch-swatch:hover { transform: scale(1.08); }

.merch-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--plum);
}

.merch__sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.merch-size {
  min-width: 46px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.merch-size:hover { border-color: var(--plum); }

.merch-size[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

.merch__size-guide {
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--plum);
  text-decoration: underline;
  cursor: pointer;
}

.merch__size-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: var(--r-s);
  padding: 0.8rem 1rem;
}

.merch__buy { margin: 1.6rem 0 1.4rem; }

.merch__status {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.merch__facts {
  list-style: none;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.merch__facts li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 1.3rem;
  position: relative;
}

.merch__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.story-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  flex-grow: 1;
}

.story-card footer { display: grid; gap: 0.9rem; }

.story-card__who { display: flex; align-items: center; gap: 0.7rem; }

.story-card__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.story-card__who strong { display: block; font-size: 0.9rem; }

.story-card__who div span { font-size: 0.76rem; color: var(--ink-soft); }

.story-card__recipes { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.workwith-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.workwith-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.workwith-card h2 { font-size: 1.25rem; }

.workwith-card h3 { font-size: 1.12rem; }

.reading-author { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.reading-author:last-of-type { margin-bottom: 0; }

.reading-note {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.reading-note h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.reading-note p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.workwith-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex-grow: 1;
}

/* References page */
.ref-group {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.ref-group h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.ref-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 1.25rem;
}

.ref-list li::marker {
  font-weight: 600;
  color: var(--gold);
}

.ref-cite {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.ref-why {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Methodology page */
.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.method-step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.method-step h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin-bottom: 0.55rem;
}

.method-step p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .announce, .site-header, .site-footer, .recipe-actions,
  .shop-block, .newsletter-card, .recipe-hero__tags,
  .planner-promo, .report-toolbar, .report-preview-note,
  .skip-link { display: none !important; }

  body { background: #fff; }

  .recipe-hero__media { min-height: 0; }
  .recipe-hero__media::after { content: none; }
  .recipe-hero__content h1 { color: #000; }

  .report { border: none; box-shadow: none; padding: 0; }
  .report-bars__fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .section { padding: 0; }
}
