
/* Company base stylesheet. Shared by all four sites.
   This file holds the color values, the type scale, the spacing,
   and the shared components: buttons, cards, pills, top banner
   structure, footer structure, share row, breadcrumbs, FAQ block,
   quote block, download buttons, and the H2 gold bar. It also holds
   the "Skip to main content" link style and the stretched title
   link pattern for cards.
   Nothing in this file is for one site only. Site differences live
   in that site's theme stylesheet, which loads after this file. */

:root {
  --color-gold: #fdb515;
  --color-gold-light: #ffc83d;
  --color-gold-pale: #ffd635;
  --color-slate: #1f2a37;
  --color-navy: #1a2430;
  --color-footer-navy: #111a26;
  --color-red: #e01e4e;
  --color-red-dark: #be1a42;
  --color-red-deep: #a3123a;
  --color-blue: #138cce;
  --color-blue-deep: #0d6fa8;
  --color-blue-bright: #00b2e8;
  --color-link: #0a5f92;
  --color-pale-blue: #e8f0fb;
  --color-light-blue: #f3f8fc;
  --color-cream: #fff8e8;
  --color-pale-yellow: #fff4d1;
  --color-pale-pink: #fdeef2;
  --color-pale-teal: #eaf4fb;
  --color-ink: #1f2a37;
  --color-ink-soft: #5e5e5e;
  --color-muted: #5b6470;
  --color-surface: #ffffff;
  --color-line: rgba(0, 0, 0, 0.08);
  --color-border: #e1e7ef;
  --color-primary: #fdb515;
  --color-primary-deep: #0d6fa8;
  --pill-teal: #6bc2bc;
  --pill-yellow: #fde689;
  --pill-pink: #efa7a8;
  --pill-green: #ccd963;
  --shadow-soft: 0 12px 32px rgba(19, 140, 206, 0.1);
  --shadow-card: 0 20px 50px rgba(19, 140, 206, 0.14);
  --shadow-large: 0 28px 70px rgba(19, 140, 206, 0.2);
  --radius-card: 20px;
  --radius-sm: 0.85rem;
  --radius-lg: 1.35rem;
  --max-content: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-slate);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-blue-bright);
}

/* Content column. At most 1120 pixels wide on every site. */
.wrap,
.r2m-wrap {
  width: min(100% - 2rem, var(--max-content));
  margin-inline: auto;
}

/* Sections carry 48 pixels of padding above and below. */
.section,
.r2m-section {
  padding: 48px 0;
}

/* Headings. One type scale for all sites. */
h1,
h2,
h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  color: var(--color-slate);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(28px, 3.5vw, 41px);
  line-height: 1.18;
  margin: 0 0 1rem;
}

/* A sub-section H2 that follows a cards grid directly, in the
   middle of a section, has 2.5rem of space above it, the same
   as H3. An H2 at the start of a section takes no extra space
   above; the section padding gives it room. */
.cards + h2 {
  margin-top: 2.5rem;
}

/* Short gold bar under every H2: 64 pixels wide, 6 pixels tall. */
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--color-gold);
}

/* A centered H2 gets a centered gold bar. */
.text-center h2::after,
h2.text-center::after,
.share-row h2:not(.text-left)::after {
  margin-inline: auto;
}

/* No gold bar on the H2 inside a call to action band. */
.cta-band h2::after,
.r2m-final h2::after {
  display: none;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.lead,
.r2m-lead {
  font-size: 18px;
}

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

.text-left {
  text-align: left;
}

/* Text only a screen reader should read. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link. Off screen until it receives keyboard focus. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  border: 2px solid var(--color-link);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-slate);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Small label above a heading. Red, bold, uppercase. */
.eyebrow,
.kicker {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons. One primary button: red, fully rounded, at least
   48 pixels tall. Button copy is written in Title Case. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-red-dark);
  color: #ffffff;
}

/* Secondary button: transparent with a blue outline. */
.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--color-link);
  border-radius: 999px;
  color: var(--color-link);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--secondary:hover {
  background: var(--color-link);
  border-color: var(--color-link);
  color: #ffffff;
}

/* Gold button: a secondary style, gold with dark text. */
.btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-slate);
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--gold:hover {
  background: var(--color-gold-light);
  color: var(--color-slate);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* App download buttons. Black badges, 44 pixels tall, same
   style and size wherever they appear. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.store-badges a {
  display: inline-flex;
  border-radius: 0.55rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.store-badges a:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 24px rgba(19, 140, 206, 0.22);
}

.store-badges img {
  height: 44px;
  width: auto;
  border-radius: 0.55rem;
}

.store-badges--sm img {
  height: 36px;
}

/* Price note under the store badges in a download band. */
.price-note,
.r2m-price-note {
  font-size: 21px;
  font-weight: 600;
}

/* Pills. Small rounded labels, no border, no shadow, no dot.
   Colors cycle teal, light yellow, light pink, light green. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: var(--pill-teal);
  color: var(--color-slate);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pill--teal {
  background: var(--pill-teal);
}

.pill--yellow {
  background: var(--pill-yellow);
}

.pill--pink {
  background: var(--pill-pink);
}

.pill--green {
  background: var(--pill-green);
}

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

.pills li {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.pills li:nth-child(4n + 1) {
  background: var(--pill-teal);
}

.pills li:nth-child(4n + 2) {
  background: var(--pill-yellow);
}

.pills li:nth-child(4n + 3) {
  background: var(--pill-pink);
}

.pills li:nth-child(4n + 4) {
  background: var(--pill-green);
}

/* Cards. White, light border, rounded corners, 20 pixels of
   padding, a 6 pixel top border that cycles through the four
   pill colors. Fully clickable through the stretched title link:
   the title link covers the whole card, the description stays
   plain text outside the link. Never wrap a whole card in one link. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Book-card grids on collection pages: three across at desktop,
   so the blue cover panel is a wider rectangle and a long title
   wraps to fewer lines. Scoped with :has(.cover-row), so the
   collections index and blog grids keep the shared rule above.
   At a 1120px column the cards are 360px wide; at an 880px
   column they are 280px wide. At phone width the grid still
   collapses to one column. */
.cards:has(.cover-row) {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--pill-teal);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.cards > .card:nth-child(4n + 2) {
  border-top-color: var(--pill-yellow);
}

.cards > .card:nth-child(4n + 3) {
  border-top-color: var(--pill-pink);
}

.cards > .card:nth-child(4n + 4) {
  border-top-color: var(--pill-green);
}

.card--teal {
  border-top-color: var(--pill-teal);
}

.card--yellow {
  border-top-color: var(--pill-yellow);
}

.card--pink {
  border-top-color: var(--pill-pink);
}

.card--green {
  border-top-color: var(--pill-green);
}

.card__title {
  margin-top: 0;
}

/* A card title directly under a cover row gets breathing room
   above it. Scoped with the adjacent selector, so other card
   titles are unchanged. */
.cover-row + .card__title {
  margin-top: 1rem;
}

/* A card title directly under a pills row gets the same
   breathing room above it. Blog cards carry pills, not a cover
   row, so they never got that margin. */
.pills + .card__title {
  margin-top: 1rem;
}

.card__title a {
  color: var(--color-slate);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-red);
}

/* Stretched title link: the link covers the whole card. Any
   other link inside the card needs position relative and a
   higher stacking order so it stays clickable. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card a:not(.card__title a) {
  position: relative;
  z-index: 2;
}

.card__desc {
  margin-bottom: 0;
}

/* The "See this book" button inside a book card gets space
   above it. Scoped to buttons inside cards only, so buttons
   elsewhere on the page are unchanged. */
.card .btn {
  margin-top: 1rem;
}

/* Facts line inside a book card on a collection page. */
.card .facts {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Cold, hot, and "Just Right" cards. A trio of three cards:
   audio only is too cold, animation is too hot, narrated
   picture books are "Just Right". */
.grid--three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 22px 0;
}

.card--cold {
  border-top-color: var(--color-blue);
  background: var(--color-pale-teal);
}

.card--cold h3 {
  color: var(--color-link);
}

.card--hot {
  border-top-color: var(--color-red);
  background: var(--color-pale-pink);
}

.card--hot h3 {
  color: var(--color-red-deep);
}

.card--justright {
  border-top-color: var(--color-gold);
  background: var(--color-pale-yellow);
  transform: translateY(-6px);
}

.card--justright h3 {
  color: #7a5200;
}

/* Top banner. Sticky. Logo at the left, navigation links.
   No dropdown menus in the banner. */
.site-header,
.r2m-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-primary);
  box-shadow: 0 4px 24px rgba(19, 140, 206, 0.28);
}

.site-header__inner,
.r2m-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.site-header__inner > a,
.r2m-header__inner > a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.site-logo,
.r2m-logo {
  height: 48px;
  width: auto;
  background: transparent;
}

.site-nav,
.r2m-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a,
.r2m-nav a {
  padding: 0.35rem 0;
  color: var(--color-slate);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

/* The link for the page you are on gets a pale tinted background. */
.site-nav a.is-active,
.r2m-nav a.is-active {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.site-header .store-badges img,
.r2m-header .store-badges img {
  height: 36px;
}

/* Hamburger menu button. An icon button with three bars.
   Hidden on desktop, shown at 820 pixels and below. */
.menu-toggle {
  display: none;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(31, 42, 55, 0.12);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-slate);
}

.menu-toggle span + span {
  margin-top: 5px;
}

/* Footer. Dark navy background, white text, centered.
   Four parts in order: tagline, links, Follow line with the
   social row, legal line. */
.site-footer,
.r2m-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 2rem;
  background: var(--color-footer-navy);
  color: #ffffff;
  text-align: center;
}

.site-footer__tagline {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.site-footer__links,
.r2m-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0 1rem;
  list-style: none;
}

.site-footer__links li,
.r2m-footer__nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.r2m-footer__nav a {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer__links a:hover,
.r2m-footer__nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__follow {
  margin: 1.25rem 0 0.75rem;
  color: #ffffff;
  font-size: 15px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Social circles: 44 pixels wide, page primary color, white
   letter inside, white outline ring around the circle. */
.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.social-circle:hover {
  color: #ffffff;
}

.site-footer__legal,
.r2m-footer__copy {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}

/* Share row. At the very bottom of the main content, before
   the footer. Plain share links, no third party widgets. */
.share-row {
  padding: 2rem 0 3rem;
  text-align: center;
}

.share-row__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.share-row__links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-link,
.share-row__copy {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--color-link);
  border-radius: 999px;
  background: transparent;
  color: var(--color-link);
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  /* Explicit line height, the body value. The links inherit it
     from the body, but a button falls back to the browser
     default, so without this the Copy link pill renders
     shorter than the link pills. */
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
}

/* The Copy link button carries no native button chrome. */
.share-row__copy {
  appearance: none;
}

.share-link:hover,
.share-row__copy:hover {
  background: var(--color-pale-blue);
  color: var(--color-link);
}

/* Breadcrumbs. One primary path at the top of the main
   content. The visible trail must match the schema. */
.breadcrumbs {
  font-size: 15px;
  color: var(--color-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-link);
}

/* FAQ block. Sits inside a section and a content column,
   never outside them. Each question is a heading followed
   by its answer. An open question gets a border in the
   page primary color. */
.faq,
.r2m-faq {
  max-width: 760px;
  margin: 1.75rem auto 0;
}

.faq details,
.r2m-faq details {
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--color-line);
}

.faq details[open],
.r2m-faq details[open] {
  margin: 0 -0.75rem;
  padding: 0.15rem 0.75rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
}

.faq summary,
.r2m-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--color-slate);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker,
.r2m-faq summary::-webkit-details-marker {
  display: none;
}

/* Plus sign in a 30 pixel circle in the page primary color. */
.faq summary::after,
.r2m-faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.35s var(--ease-spring);
}

.faq details[open] summary::after,
.r2m-faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq__a,
.r2m-faq__a {
  padding: 0 0 1.25rem;
  color: var(--color-ink-soft);
  text-align: left;
}

.faq__a p,
.r2m-faq__a p {
  margin: 0 0 0.75rem;
  text-align: left;
}

/* Call to action band. Dark blue #0a5f92, white text, centered,
   rounded corners, heading, one short line of text, and a
   button. The H2 inside it carries no gold bar. */
.cta-band,
.r2m-final {
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 30px;
  background: #0a5f92;
  color: #ffffff;
  text-align: center;
}

.cta-band h2,
.r2m-final h2 {
  color: #ffffff;
}

.cta-band p,
.r2m-final p {
  color: rgba(255, 255, 255, 0.92);
}

/* Hero. First thing on the page: heading, lead text, call to
   action, visual beside the text on desktop. Stacks to one
   column on a phone: heading, lead, call to action, visual. */
.hero,
.r2m-hero {
  position: relative;
  padding: 48px 0;
}

.hero__grid,
.r2m-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1,
.r2m-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.12;
}

.hero__lead,
.r2m-hero__lead {
  font-size: 18px;
  color: var(--color-slate);
}

.hero__cta,
.r2m-hero__cta {
  margin-top: 1.5rem;
}

.hero__visual,
.r2m-hero__visual {
  position: relative;
}

/* Hero answer box. White box with a gold left border that
   answers the visitor's question in plain words. */
.hero__answer {
  padding: 18px 22px;
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 18px;
}

/* Hero trust list. Row of pills under the answer box. */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.hero__trust li:nth-child(4n + 1) {
  background: var(--pill-teal);
}

.hero__trust li:nth-child(4n + 2) {
  background: var(--pill-yellow);
}

.hero__trust li:nth-child(4n + 3) {
  background: var(--pill-pink);
}

.hero__trust li:nth-child(4n + 4) {
  background: var(--pill-green);
}

/* Four-color stripe. Teal, yellow, pink, green, each a
   quarter of the stripe, in that order. */
.stripe--four,
.r2m-color-stripe {
  display: flex;
  width: 100%;
  height: 6px;
  overflow: hidden;
  position: relative;
}

.stripe--four span,
.r2m-color-stripe span {
  flex: 1;
  height: 100%;
  transition: flex 0.5s var(--ease-out);
}

.stripe--four:hover span:hover,
.r2m-color-stripe:hover span:hover {
  flex: 1.6;
}

.stripe--four .stripe--teal,
.r2m-color-stripe .stripe--teal {
  background: var(--pill-teal);
}

.stripe--four .stripe--yellow,
.r2m-color-stripe .stripe--yellow {
  background: var(--pill-yellow);
}

.stripe--four .stripe--pink,
.r2m-color-stripe .stripe--pink {
  background: var(--pill-pink);
}

.stripe--four .stripe--green,
.r2m-color-stripe .stripe--green {
  background: var(--pill-green);
}

/* Quote block. White gradient card, yellow left border,
   giant faint quote mark top right, 60 percent of the page
   width and centered. Full width on a phone. */
.quote,
.r2m-quote {
  position: relative;
  width: 60%;
  margin: 1.75rem auto;
  padding: 2.15rem 1.35rem 1.85rem;
  overflow: hidden;
  border-left: 4px solid var(--color-gold-pale);
  border-radius: 20px;
  background: linear-gradient(165deg, #ffffff 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.quote::before,
.r2m-quote::before {
  content: "\201C";
  position: absolute;
  top: 0.15rem;
  right: 0.75rem;
  color: rgba(19, 140, 206, 0.1);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.quote:hover,
.r2m-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(19, 140, 206, 0.14);
}

.quote p,
.r2m-quote p {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: var(--color-slate);
  font-size: clamp(19px, 2.2vw, 22px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

.quote cite,
.r2m-quote cite {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

/* Pull-quote line. A plain paragraph, no card, no quote mark,
   no attribution. Gold left border, 22 pixel bold text. */
.quote--line {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 4px solid var(--color-gold);
  color: var(--color-navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

/* Split layout. Text on one side, image on the other. */
.split,
.r2m-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.split--reverse > :first-child,
.r2m-split--reverse > :first-child {
  order: 2;
}

/* Figure with caption. Image full width, caption below it
   in soft grey. */
figure {
  margin: 0;
}

figcaption {
  color: #666666;
}

.shot img {
  border-radius: 14px;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 14px;
}

/* Link list. Plain list of links in a white box with a gold
   left border. Used by "Keep exploring" on collection pages. */
.link-list {
  padding: 16px 22px;
  margin-top: 32px;
  border-left: 4px solid var(--color-gold);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.link-list h2 {
  margin-bottom: 16px;
}

.link-list ul {
  margin: 0;
  padding-left: 1.25rem;
}

.link-list li {
  margin-bottom: 10px;
}

/* How to use this list. Heading and numbered list in a
   white box with a gold left border. */
.how-to {
  padding: 8px 22px;
  border-left: 4px solid var(--color-gold);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.how-to h2 {
  margin-bottom: 16px;
}

/* Stats band. Four numbers, big number on top, short label
   under it. Colors come from theme variables so each site
   keeps its own rendering. */
.stats,
.r2m-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.stat,
.r2m-stat {
  display: block;
  padding: 1.65rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-slate);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.stat strong,
.r2m-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-gold);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.stat span,
.r2m-stat span {
  font-size: 0.9rem;
}

/* Scroll reveal. Content fades and moves into place as the
   visitor scrolls to it. The script adds is-visible when
   12 percent of the element is in view. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered groups. Children rise in one after another. */
.stagger > .reveal,
.stagger > .r2m-step,
.stagger > .r2m-stat,
.stagger > .r2m-age,
.stagger > .r2m-flow__item,
.stagger > .r2m-journey__item,
.stagger > .r2m-safety li,
.stagger > .stat,
.stagger > .card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.stagger.is-visible > .reveal,
.stagger.is-visible > .r2m-step,
.stagger.is-visible > .r2m-stat,
.stagger.is-visible > .r2m-age,
.stagger.is-visible > .r2m-flow__item,
.stagger.is-visible > .r2m-journey__item,
.stagger.is-visible > .r2m-safety li,
.stagger.is-visible > .stat,
.stagger.is-visible > .card {
  opacity: 1;
  transform: none;
}

.stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.12s;
}

.stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.19s;
}

.stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.26s;
}

.stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.33s;
}

.stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.4s;
}

.stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.47s;
}

/* Hero load animation. Eyebrow, heading, lead, call to action,
   and pills fade in and rise 20 pixels on load. */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Reduced motion. Every element is shown at once, with no motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Phones. Hero and split stack to one column. The quote block
   goes full width. The cold, hot, and "Just Right" trio stacks,
   and the "Just Right" card loses its raise. */
@media (max-width: 960px) {
  .hero__grid,
  .r2m-hero__grid,
  .split,
  .r2m-split {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child,
  .r2m-split--reverse > :first-child {
    order: 0;
  }

  .stats,
  .r2m-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav,
  .r2m-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 4px;
  }

  .site-nav.open,
  .r2m-nav.open {
    display: flex;
  }

  .site-nav a,
  .r2m-nav a {
    padding: 10px 14px;
  }

  .grid--three {
    grid-template-columns: 1fr;
  }

  .card--justright {
    transform: none;
  }

  .quote,
  .r2m-quote {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .stats,
  .r2m-stats {
    grid-template-columns: 1fr;
  }
}

