/* ============================================
   Hara Regenerative Medicine — the rebuild's new sections (Dec 2026)
   The client's mockup changes how the Regen side presents its information (nine need-based programs, a page per
   program and per treatment, Doc Dean's credentials) while the site keeps its look: these blocks use only the
   site's own tokens (the five brand colours, IvyPresto Display and HK Grotesk, css/variables.css), its buttons
   (.btn) and section headers, and the Regen side's warm taupe shadows. Shown behind the preview link until launch
   (js/shared/regen-look.js).
     rl-*        the new Home sections (hero with Doc Dean, credentials bar, programs, Meet your doctor)
     .rl-page    the program and treatment pages (js/regen/*, rendered by js/pages/wellness/regen-page.js)
   ============================================ */

/* Awesome Serif (the client's licensed font) for the smaller headings, next to the site's IvyPresto for the large
   ones: the two designs, married. Its "+" is drawn small and low ("NAD+" read as "NAD ·"), so the plus sign alone
   comes from Open Sauce (a later rule wins for the characters in its unicode-range). */
@font-face { font-family: 'Awesome Serif'; src: url('../fonts/AwesomeSerif-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Awesome Serif'; src: url('../fonts/OpenSauceSans-Regular.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+002B; }

:root { --rl-line: rgba(58, 69, 52, 0.15); --rl-serif: 'Awesome Serif', Georgia, 'Times New Roman', serif; }

/* the smaller headings on the Regen side in the new design */
body[data-regen-look="new"][data-brand="wellness"] .signature__name,
body[data-regen-look="new"][data-brand="wellness"] .section--editorial .glass-card h4 { font-family: var(--rl-serif); font-weight: 500; letter-spacing: -0.01em; }

/* The entrance announcement card (bottom right) in the client's Deep Teal, its headline in Awesome Serif: preview
   only, on the Regen side (the card is shared; its own colours are tokens in css/lux-notification.css) */
body[data-regen-look="new"][data-brand="wellness"] .lux-notif {
  --lux-bg: rgba(35, 61, 64, 0.9);
  --lux-border: rgba(136, 162, 154, 0.28);
  --lux-ink: #e4e5e1;
  --lux-ink-soft: rgba(228, 229, 225, 0.74);
  --lux-eyebrow: rgba(136, 162, 154, 0.95);
  --lux-rule: rgba(136, 162, 154, 0.35);
}
body[data-regen-look="new"][data-brand="wellness"] .lux-notif__headline { font-family: var(--rl-serif); font-weight: 500; font-style: normal; letter-spacing: -0.005em; }

/* No hairline before an eyebrow (it reads as an em dash): the Hara leaf takes its place, tinted to the label, as on
   the landing pages (css/landing-pages.css, lp__eyebrow). Section labels (The Hara Difference, Featured) and the
   announcement card's label. Preview only, on the Regen side. */
body[data-regen-look="new"][data-brand="wellness"] .section-header__rule,
body[data-regen-look="new"][data-brand="wellness"] .lux-notif__eyebrow-text::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask: url("../assets/images/ICON%20WHITE.png") center / contain no-repeat;
          mask: url("../assets/images/ICON%20WHITE.png") center / contain no-repeat;
}
body[data-regen-look="new"][data-brand="wellness"] .lux-notif__eyebrow-text::before { top: calc(50% - 7px); background: var(--lux-eyebrow); }
body[data-regen-look="new"][data-brand="wellness"] .lux-notif__eyebrow-text { padding-left: 22px; }
/* every label with a leaf lays it out the same way (the Featured label is not flex by default) */
body[data-regen-look="new"][data-brand="wellness"] .section-header__label:has(> .section-header__rule) { display: inline-flex; align-items: center; gap: var(--space-sm); }

/* ---- Hero: Doc Dean with a patient, and the "Your protocol" note ---- */
.rl-hero { padding: calc(var(--space-5xl) + 8px) 0 var(--space-3xl); }
.rl-hero__grid { display: flex; flex-wrap: wrap; gap: var(--space-3xl); align-items: center; }
.rl-hero__copy { flex: 1 1 460px; display: flex; flex-direction: column; align-items: flex-start; }
.rl-hero__copy .hero-chip { margin-bottom: var(--space-lg); }
.rl-hero__copy .hero__actions { margin-top: 0; }
.rl-hero__media { flex: 1 1 420px; position: relative; }
.rl-hero__note {
  position: absolute;
  left: -28px;
  bottom: 40px;
  width: 250px;
  padding: 20px 22px;
  background: rgba(241, 235, 223, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -24px rgba(88, 70, 50, 0.34), 0 8px 24px -16px rgba(120, 95, 65, 0.2);
}
.rl-hero__note-label { margin: 0 0 8px; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.rl-hero__note-text { margin: 0; font-family: var(--rl-serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--text-primary); }

/* Photo blocks: the hero photo fills its block; the portrait stands on Stone */
.rl-photo { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: var(--radius-xl); background: var(--stone); }
.rl-photo img { display: block; }
.rl-photo--cover { height: 540px; }
.rl-photo--cover img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.rl-photo--portrait { flex: 1 1 380px; height: 520px; }
.rl-photo--portrait img { height: 94%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom; }

/* ---- Credentials bar ---- */
.rl-creds { padding: 0 0 var(--space-3xl); }
.rl-creds__row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rl-line); border-bottom: 1px solid var(--rl-line); }
.rl-creds__item { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-left: 1px solid var(--rl-line); }
.rl-creds__item:first-child { padding-left: 0; border-left: 0; }
.rl-creds__item:last-child { padding-right: 0; }
.rl-creds__title { font-family: var(--rl-serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--text-primary); }
.rl-creds__text { font-size: var(--text-sm); line-height: 1.5; color: var(--text-secondary); }
a.rl-creds__text { text-decoration: underline; text-underline-offset: 3px; }
a.rl-creds__text:hover { color: var(--text-primary); }

/* ---- Programs: "Choose where to start", the nine boxes ----
   The client's box (a colour tile with the program's icon) made with care: the client's tile colours, a mat line,
   paper grain, the name on the tile in Awesome Serif; the icon has its own area above the text, so a long name never
   reaches it. Motion (js/components/regen-sections.js setupRegenTiles): each icon draws itself once on screen and
   again on hover, and a soft light follows the pointer. */
.rl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-lg); margin-bottom: var(--space-3xl); }
.rl-head .section-header__title { margin-bottom: 0; }
.rl-head__note { margin: 0; max-width: 380px; color: var(--text-secondary); }
.rl-programs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.rl-tile { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: var(--tile); color: var(--ink); }
.rl-tile::before {                                    /* the mat line */
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  border-radius: 18px;
  opacity: 0.2;
  pointer-events: none;
}
.rl-tile::after {                                     /* paper grain */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 240px 240px;
}
.rl-tile__light {                                     /* the light that follows the pointer */
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.rl-tile:hover .rl-tile__light { opacity: 1; }
.rl-tile__art { display: flex; align-items: center; justify-content: center; }
.rl-tile__icon { width: 140px; height: 140px; overflow: visible; }
/* line weights in the icon's own units (48 wide), about 1.4px at each size; a fixed-pixel stroke
   (vector-effect: non-scaling-stroke) would break the draw, which measures the line in these units */
.rl-tile__line { stroke-width: 0.48; }
.rl-tile--hero .rl-tile__line { stroke-width: 0.4; }
/* The draw (setupRegenTiles): once on screen and again on hover, each icon draws itself stroke by stroke like one
   pen, and a point of light (a bright core over a soft halo) rides the tip of the stroke being drawn, fading at its
   end. Line and light share the stroke's timing, so the light stays on the tip: the line shows (1 - offset) of
   itself and the light's short dash sits just behind that edge. */
:root { --draw-time: 1.5s; --draw-ease: cubic-bezier(0.45, 0, 0.55, 1); }
.rl-tile__spark, .rl-tile__halo { stroke: var(--spark, #fff); opacity: 0; stroke-dasharray: 0.06 2; stroke-dashoffset: 0.06; }
.rl-tile__spark { stroke-width: 0.85; }
.rl-tile__halo { stroke-width: 2.6; }
.rl-program[data-slug="skin-and-hair"] { --spark: #49797e; }
.rl-tile--armed .rl-tile__line { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.rl-tile--armed.is-drawn .rl-tile__line { stroke-dashoffset: 0; }
.rl-tile.is-drawing .rl-tile__line {
  animation: rl-draw var(--seg-time, var(--draw-time)) var(--draw-ease) calc(var(--draw-delay, 0s) + var(--seg-delay, 0s)) both;
}
.rl-tile.is-drawing .rl-tile__spark {
  animation: rl-tip var(--seg-time, var(--draw-time)) var(--draw-ease) calc(var(--draw-delay, 0s) + var(--seg-delay, 0s)) both,
             rl-tip-glow var(--seg-time, var(--draw-time)) linear calc(var(--draw-delay, 0s) + var(--seg-delay, 0s)) both;
}
.rl-tile.is-drawing .rl-tile__halo {
  animation: rl-tip var(--seg-time, var(--draw-time)) var(--draw-ease) calc(var(--draw-delay, 0s) + var(--seg-delay, 0s)) both,
             rl-halo-glow var(--seg-time, var(--draw-time)) linear calc(var(--draw-delay, 0s) + var(--seg-delay, 0s)) both;
}
@keyframes rl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rl-tip { from { stroke-dashoffset: 0.06; } to { stroke-dashoffset: -0.94; } }
@keyframes rl-tip-glow { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rl-halo-glow { 0% { opacity: 0; } 12% { opacity: 0.3; } 82% { opacity: 0.3; } 100% { opacity: 0; } }

/* One grid across each row of boxes, so the row lines up at any width: every box spans four rows of the section's
   grid (subgrid), so the icons, the names (sitting on one baseline), the lines under them and the arrows share
   their row heights with the other boxes in the row, whatever wraps. */
.rl-program {
  display: grid;
  grid-template-rows: 230px auto auto 1fr;
  text-decoration: none;
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
@supports (grid-template-rows: subgrid) {
  .rl-program { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
.rl-program .rl-tile__art { height: 230px; padding-top: 28px; }
.rl-program__foot, .rl-program__text { display: contents; }
.rl-program__name {
  align-self: end;
  padding: 26px 34px 0;
  font-family: var(--rl-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--label, var(--ink));
}
.rl-program__line { align-self: start; padding: 10px 34px 0; font-size: var(--text-sm); line-height: 1.5; color: var(--label, var(--ink)); opacity: 0.8; }
.rl-program__arrow {
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 18px 34px 34px;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  color: var(--label, var(--ink));
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.rl-program:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(88, 70, 50, 0.5); }
.rl-program:hover .rl-program__arrow { opacity: 1; transform: translateX(4px); }
.rl-program:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .rl-program, .rl-program__arrow, .rl-tile__light { transition: none; }
  .rl-program:hover, .rl-program:hover .rl-program__arrow { transform: none; }
}

/* ---- Meet your doctor ---- */
.rl-doctor__grid { display: flex; flex-wrap: wrap; gap: var(--space-3xl); align-items: center; }
.rl-doctor__copy { flex: 1 1 460px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.rl-doctor__copy .section-header__label,
.rl-doctor__copy .section-header__title { margin: 0; }
.rl-doctor__bio { margin: 0; color: var(--text-secondary); }
.rl-doctor__certs { align-self: stretch; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); line-height: 1.5; color: var(--text-primary); }
.rl-doctor__certs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rl-line); }
.rl-doctor__certs li:last-child { border-bottom: 1px solid var(--rl-line); }
.rl-doctor__year { color: var(--text-secondary); }

/* The Hara Difference (Home, preview): the product photo tinted into the client's palette. The photo goes grey and
   is multiplied over a Mist-to-sage wash, so the cloth reads Mist and the bottles a deep teal grey; text and cards
   take the teal family. The section above it and the hero stay Hara ivory. */
body[data-regen-look="new"][data-brand="wellness"] .rl-difference.section--editorial {
  --editorial-blend: multiply;
  --editorial-opacity: 0.92;
  --editorial-filter: grayscale(1) contrast(1.08) brightness(1.05);
  --text-secondary: #3f6266;
  --accent: #49797e;
  --olive: #49797e;
  --glass-border: rgba(35, 61, 64, 0.14);
  background: linear-gradient(180deg, #dfe7e4 0%, #c8d8d3 50%, #b2c8c2 100%);
  color: #233d40;
}
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .section-header__title,
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .glass-card h4 { color: #233d40; }
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .section-header__label { color: #49797e; }
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .section-editorial__caption { color: #3f6266; }
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .glass-card { background: rgba(250, 250, 243, 0.7); border-color: rgba(35, 61, 64, 0.12); }
body[data-regen-look="new"][data-brand="wellness"] .rl-difference .glass-card p { color: #3f6266; }

/* ============ Home, lower half: the client's own palette and headings ============
   Personalized medicine opens it as a Deep Teal band, the sections after it sit on Mist with Awesome Serif headings
   in Teal, and the closing call closes it as a second Deep Teal band before the footer. The kept components inside
   (reviews, partners, the Clinic teaser) follow through their tokens. */
.rl-label { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); }

.rl-band { background: #233d40; color: #e4e5e1; }
.rl-band .rl-label { color: #88a29a; }
.rl-band__title { margin: 0; font-family: var(--rl-serif); font-weight: 500; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em; color: #e4e5e1; }
.rl-band__text { margin: 24px 0 0; max-width: 46ch; font-size: var(--text-base); line-height: 1.65; color: rgba(228, 229, 225, 0.78); }
.rl-band__note { margin: 0; font-size: var(--text-sm); color: rgba(228, 229, 225, 0.6); }

/* Personalized medicine: the two patients' rows line up across both cards (one grid); the shared numbers sit quiet,
   the goals carry the weight */
.rl-personal { padding: 112px 0; }
.rl-personal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.rl-patients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto) auto; column-gap: 16px; }
.rl-patient { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: 26px 26px 12px; border: 1px solid rgba(228, 229, 225, 0.16); border-radius: 22px; background: rgba(255, 255, 255, 0.03); }
.rl-patient__head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.rl-patient__mark { font-family: var(--rl-serif); font-weight: 500; font-size: 44px; line-height: 0.8; color: #88a29a; }
.rl-patient__name { font-family: var(--rl-serif); font-weight: 500; font-size: 20px; color: #e4e5e1; }
.rl-patient__rows { display: contents; }
.rl-patient__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 11px 0; border-top: 1px solid rgba(228, 229, 225, 0.14); font-size: 14px; }
.rl-patient__row dt { color: #88a29a; }
.rl-patient__row dd { margin: 0; text-align: right; color: #e4e5e1; }
.rl-patient__row.is-same dd { color: rgba(228, 229, 225, 0.7); }
.rl-patient__row.is-goal, .rl-patient__row:last-child { flex-direction: column; align-items: flex-start; gap: 6px; }
.rl-patient__row.is-goal dd { text-align: left; font-family: var(--rl-serif); font-weight: 500; font-size: 21px; line-height: 1.2; color: #fafaf3; }
.rl-patient__row:last-child dd { text-align: left; }
.rl-patients__note { grid-column: 1 / -1; margin: 14px 0 0; font-size: 12px; color: rgba(228, 229, 225, 0.55); }

/* the Mist part */
.rl-mist {
  --text-primary: #233d40;
  --text-secondary: #3f6266;
  --accent: #49797e;
  --bg-primary: #e4e5e1;
  --dark: #233d40;
  --gray: #3f6266;
  --olive: #49797e;
  --stone: #88a29a;
  --glass-bg: rgba(250, 250, 243, 0.6);
  --glass-border: rgba(35, 61, 64, 0.14);
  --rl-line: rgba(35, 61, 64, 0.18);
  background: #e4e5e1;
  color: var(--text-primary);
}
.rl-mist .section-header__title, .rl-mist__title { font-family: var(--rl-serif); font-weight: 500; letter-spacing: -0.01em; color: #49797e; }
.rl-mist__title { margin: 0; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem); line-height: 1.08; }
/* the Hara Clinic teaser: the client's paper card here, so it does not sit as a second dark block before the closing band */
.rl-mist .cross-brand-cta .cross-brand-cta__card { background: #f1ebdf; border-color: transparent; border-radius: 28px; box-shadow: none; }
.rl-mist .cross-brand-cta .cross-brand-cta__card:hover { background: #f1ebdf; }
.rl-mist .cross-brand-cta__label { color: #3f6266; }
.rl-mist .cross-brand-cta__title { font-family: var(--rl-serif); font-weight: 500; font-style: normal; letter-spacing: -0.01em; color: #49797e; }
.rl-mist .cross-brand-cta__text { color: #3f6266; }
.rl-mist .cross-brand-cta .btn--outline { color: #233d40; border-color: #233d40; }
.rl-mist .cross-brand-cta .btn--outline:hover { background: rgba(35, 61, 64, 0.08); color: #233d40; }

/* How it works: one line runs through the four steps and draws itself when it comes into view */
.rl-how { padding-top: 112px; }
.rl-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); column-gap: 32px; margin: 56px 0 0; padding: 0; list-style: none; }
.rl-steps::before, .rl-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.rl-steps::before { background: var(--rl-line); }
.rl-steps::after { background: #233d40; transform-origin: left; }
.rl-steps.is-armed::after { transform: scaleX(0); transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1); }
.rl-steps.is-armed.is-in::after { transform: scaleX(1); }
.rl-step { position: relative; grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; padding-top: 30px; }
.rl-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #233d40; background: #233d40; }
.rl-steps.is-armed .rl-step::before { background: #e4e5e1; transition: background-color 0.3s ease calc(var(--i) * 0.45s + 0.1s); }
.rl-steps.is-armed.is-in .rl-step::before { background: #233d40; }
.rl-step__num { font-family: var(--rl-serif); font-weight: 500; font-size: 40px; line-height: 1; color: #49797e; }
.rl-step__title { align-self: end; margin-top: 14px; font-weight: 500; font-size: var(--text-base); line-height: 1.35; color: #233d40; }
.rl-step__text { align-self: start; margin-top: 6px; font-size: var(--text-sm); line-height: 1.5; color: #3f6266; }

/* the peptide promise: the client's paper card */
.rl-promise { padding: 0 0 var(--space-4xl); }
.rl-promise__card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 56px; border-radius: 28px; background: #f1ebdf; }
.rl-promise__title { margin: 0; font-family: var(--rl-serif); font-weight: 500; font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; color: #49797e; }
.rl-promise__side p { margin: 0 0 24px; color: #3f6266; }

/* Tests: light tiles in the program boxes' family; name, line and arrow line up across the row (one grid) */
.rl-tests__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 20px; }
.rl-test { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; text-decoration: none; transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.rl-test .rl-tile__art { height: 150px; padding-top: 20px; }
.rl-test .rl-tile__icon { width: 96px; height: 96px; }
.rl-test .rl-tile__line { stroke-width: 0.7; }
.rl-test__name { align-self: end; padding: 8px 30px 0; font-family: var(--rl-serif); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--ink); }
.rl-test__line { align-self: start; padding: 10px 30px 0; font-size: var(--text-sm); line-height: 1.5; color: #3f6266; }
.rl-test .rl-program__arrow { margin: 18px 30px 30px; }
.rl-test:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(35, 61, 64, 0.4); }
.rl-test:hover .rl-program__arrow { opacity: 1; transform: translateX(4px); }

/* the closing call */
.rl-final { padding: 112px 0; text-align: center; }
.rl-final__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rl-final .rl-band__title { max-width: 27ch; }
.rl-final__btn { background: #e4e5e1; color: #233d40; border: 1px solid #e4e5e1; }
.rl-final__btn:hover { background: #fafaf3; border-color: #fafaf3; color: #233d40; }

@media (max-width: 1023px) {
  .rl-personal__grid { grid-template-columns: 1fr; gap: 48px; }
  .rl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); row-gap: 40px; }
  .rl-steps::before, .rl-steps::after { display: none; }
  .rl-step { border-top: 1px solid var(--rl-line); }
  .rl-promise__card { grid-template-columns: 1fr; gap: 28px; padding: 48px 40px; }
  .rl-tests__grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; }
  .rl-test { grid-row: auto; grid-template-rows: 150px auto auto auto; }
}
@media (max-width: 700px) {
  .rl-personal, .rl-final { padding: 72px 0; }
  .rl-how { padding-top: 72px; }
  .rl-patients { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; }
  .rl-patient { grid-row: auto; grid-template-rows: none; }
  .rl-steps { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 28px; }
  .rl-step { grid-row: auto; grid-template-rows: none; }
  .rl-promise__card { padding: 36px 24px; }
}

/* ============ Program and treatment pages ============ */
/* the pages carry their layout inline (from the mockup, in the site's tokens); these are the shared bits */
.rl-page { padding-top: calc(var(--space-4xl) + 4px); }
.rl-page a:not(.btn):not([data-booking]) { color: var(--text-primary); }
.rl-page .card .arrow, .rl-page .tile, .rl-page .rg-treat { transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
.rl-page .card:hover .tile { transform: translateY(-4px); }
.rl-page .card:hover .arrow { background: var(--dark) !important; color: var(--ivory) !important; }
.rl-page .btn-dark:hover { background: var(--gray) !important; }
.rl-page .btn-ghost:hover { background: rgba(58, 69, 52, 0.08) !important; }
.rl-page .rg-photo { padding: 0 !important; align-items: flex-end !important; overflow: hidden; }
.rl-page .rg-photo img { display: block; height: 94%; width: auto; max-width: 90%; object-fit: contain; object-position: bottom; }
.rl-page .rg-photo--cover img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 45% 50%; }
.rl-page .rg-treat:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(88, 70, 50, 0.38); }
.rl-page .rg-treat:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.rl-page .rg-treat__more { margin-top: auto; padding-top: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); }
.rl-page .rg-body a { text-underline-offset: 3px; }
.rl-page .rg-list { margin: 0; padding: 0; list-style: none; font-size: var(--text-lg); line-height: 1.5; }
.rl-page .rg-list li { padding: 14px 0; border-top: 1px solid var(--rl-line); }
.rl-page .rg-list li:last-child { border-bottom: 1px solid var(--rl-line); }
.rl-page .rg-qa { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rl-line); }
.rl-page p { line-height: 1.65; }
/* a paragraph with no colour of its own takes its card's (light text on the dark and olive tiles); the site's base
   grey for every p would otherwise win and leave it unreadable */
.rl-page p:not([style*="color"]) { color: inherit; }
.rl-page .rg-body a { text-decoration: underline; text-decoration-thickness: 1px; }
/* their card, section and question headings in Awesome Serif (the large ones stay IvyPresto) */
.rl-page h3, .rl-page .rl-card-title { font-family: var(--rl-serif) !important; font-weight: 500 !important; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .rl-page .card .arrow, .rl-page .tile, .rl-page .rg-treat { transition: none; }
  .rl-page .card:hover .tile, .rl-page .rg-treat:hover { transform: none; }
}

/* ---- Tablets ---- */
@media (max-width: 1023px) {
  .rl-programs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-creds__row { grid-template-columns: repeat(2, 1fr); }
  .rl-creds__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .rl-creds__item:nth-child(n + 3) { border-top: 1px solid var(--rl-line); }
  .rl-creds__item:nth-child(2) { padding-right: 0; }
}

/* ---- Phones ---- */
@media (max-width: 700px) {
  .rl-hero { padding: calc(var(--space-4xl) + 12px) 0 var(--space-2xl); }
  .rl-hero__grid { gap: var(--space-2xl); }
  .rl-photo--cover, .rl-photo--portrait { height: 420px; }
  .rl-hero__note { left: 12px; bottom: 16px; width: 220px; }
  .rl-creds__row { grid-template-columns: 1fr; }
  .rl-creds__item, .rl-creds__item:nth-child(n) { padding: 20px 0; border-left: 0; }
  .rl-creds__item + .rl-creds__item { border-top: 1px solid var(--rl-line); }
  .rl-programs__grid { grid-template-columns: 1fr; }
  .rl-program .rl-tile__art { height: 190px; }
  .rl-tile__icon { width: 120px; height: 120px; }
  .rl-program .rl-tile__line { stroke-width: 0.56; }
  .rl-program__name { padding: 18px 28px 0; }
  .rl-program__line { padding: 8px 28px 0; }
  .rl-program__arrow { margin: 18px 28px 28px; }
  .rl-doctor__grid { gap: var(--space-2xl); }

  /* the program and treatment pages: the mockup's phone sizes */
  .rl-page [style*="max-width: 1200px"] { padding-left: 20px !important; padding-right: 20px !important; }
  .rl-page [style*="padding: 88px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  .rl-page h1 { font-size: 46px !important; }
  .rl-page h2 { font-size: 32px !important; line-height: 1.12 !important; }
  .rl-page h3 { font-size: 24px !important; }
  .rl-page [style*="height: 560px"], .rl-page [style*="height: 520px"] { height: 420px !important; }
  .rl-page [style*="height: 420px"] { height: 280px !important; }
  .rl-page [style*="height: 300px"] { height: 220px !important; }
  .rl-page [style*="padding: 64px 56px"] { padding: 36px 24px !important; gap: 24px !important; }
  .rl-page [style*="padding: 88px 48px"], .rl-page [style*="padding: 72px 48px"] { padding: 52px 22px !important; }
  .rl-page [style*="padding: 56px; display: flex"] { padding: 32px 24px !important; gap: 20px !important; }
  .rl-page [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
  .rl-page [style*="font-size: 22px; line-height: 1.5"] { font-size: 19px !important; }
}
