/* App redesign, hand-off v1 (2026-12-03).
   Values come from the package's reference/all-screens (the design page) and
   content/design-tokens.json. Sizes are points on the 390 x 844 design screen;
   here they are plain px, which is what the design means on the web.

   The package draws each screen with absolute positions inside a 390 x 664 (tab
   pages) or 390 x 748 (inner pages) frame. Real pages have variable content, so
   these rules keep the design's spacing and type but lay pages out in flow. */

:root {
  --rd-ink: #332d2b;
  --rd-ink-reading: #3d342e;
  --rd-ink-soft: #5b4d44;
  --rd-ink-muted: #7a6c61;
  --rd-ink-label: #8a7a6c;
  --rd-bone: #f6f0e6;
  --rd-paper: #f4eee3;
  --rd-paper-white: #faf7f1;
  --rd-sheet: #fbf6ee;
  --rd-journal-page: #fcf9f3;
  --rd-accent: #a06a2e;
  --rd-accent-underline: #d9b48a;
  --rd-ochre: #b97b3c;
  --rd-ochre-plate: #cf9a52;
  --rd-highlight: #f0c8a2;
  --rd-label-on-photo: #f6d2b8;
  --rd-hairline: rgba(51, 45, 43, 0.14);
  --rd-rust: #b9552f;
  --rd-sans: 'Jost', system-ui, sans-serif;
  --rd-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --rd-grain: url("/assets/rd/graphics/grain-tile-1e7a1776.svg");

  /* Layout: one gutter and one spacing scale for every redesign page.
     Nothing in a page block should invent its own horizontal margin or padding — use
     --rd-gutter for the screen edge and the scale for vertical rhythm, so the pages
     line up with each other. (The package draws each screen on a 390-wide canvas with
     32-34px insets; that is too fat on a phone, so the edge is 20px everywhere.) */
  --rd-gutter: 20px;
  --rd-space-2xs: 4px;
  --rd-space-xs: 8px;
  --rd-space-s: 12px;
  --rd-space-m: 16px;
  --rd-space-l: 24px;
  --rd-space-xl: 32px;
  --rd-space-2xl: 48px;

  /* Measures: a centred display statement keeps a short line (the design's step-two
     page sets its opening sentence about 21 characters wide), long-form copy reads at
     roughly 30. Typographic constants, not per-page tuning. */
  --rd-measure-lede: 21ch;
  --rd-measure-body: 30ch;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/jost-latin-var-16fbc9c4.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/cormorant-garamond-latin-var-a7e1075e.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/cormorant-garamond-latin-italic-var-68caabcf.woff2") format('woff2');
}

/* ---------- base ---------- */

.rd {
  font-family: var(--rd-sans);
  font-weight: 300;
  color: var(--rd-ink);
  -webkit-font-smoothing: antialiased;
}

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

.rd :where(p, ul, ol, h1, h2, h3, figure, blockquote) {
  margin: 0;
}

/* Every redesigned page is its own full-height field. flow-root keeps a page's
   top margin inside it (margin collapsing otherwise pushes the background down
   and leaves a gap under the banner).
   The page shell owns the gutter: a page block sets vertical spacing only, and a
   full-bleed photo or carousel escapes with .rd-bleed. */
.rd-page {
  display: flow-root;
  /* inner pages: the banner holds only the back arrow (40), so the page fills the rest */
  min-height: calc(100dvh - 2.5rem);
  background: var(--rd-bone);
  padding: var(--rd-space-m) var(--rd-gutter) var(--rd-space-2xl);
}
/* tab pages keep the banner's title (48 at sm, 56 at lg) and the tab bar (128) */
.rd-page--tab { min-height: calc(100dvh - 3rem - 8rem); }
@media (min-width: 1024px) {
  .rd-page--tab { min-height: calc(100dvh - 3.5rem - 8rem); }
}
/* A page whose content is itself a full-bleed grid (Explore) opts out entirely. */
.rd-page--flush { padding: 0; }

/* The one documented way out of the gutter. A photo or carousel that must reach the
   screen edge pulls out by exactly the gutter, never by a hand-picked number. */
.rd-bleed { margin-inline: calc(var(--rd-gutter) * -1); }
.rd-bleed--top {
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
}

/* Structure shared by the pages: use these instead of a per-page margin. */
.rd-page-head + * { margin-top: var(--rd-space-l); }
.rd-page-lead {
  margin-top: var(--rd-space-s);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.22;
  color: var(--rd-ink-soft);
  text-wrap: pretty;
}
.rd-section { margin-top: var(--rd-space-l); }
.rd-section + .rd-section { margin-top: var(--rd-space-xl); }

/* Film grain over coloured fields: 55% opacity, Overlay, as the tokens specify. */
.rd-grain {
  position: relative;
}
.rd-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: var(--rd-grain);
  background-size: 200px 200px;
}

/* Fields (design-tokens -> fields) */
.rd-field-stories {
  background:
    radial-gradient(80% 44% at 100% 0%, rgba(255, 232, 200, 0.5), rgba(255, 232, 200, 0) 70%),
    linear-gradient(170deg, #b48a6c, #9c8072 45%, #857c92);
}
.rd-field-ai {
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(255, 226, 196, 0.42), rgba(255, 226, 196, 0) 70%),
    linear-gradient(172deg, #8c7468, #786d7c 60%, #6a637a);
}
.rd-field-training {
  background: linear-gradient(170deg, #8d8176, #847c86 70%, #7a7488);
}
.rd-field-partner {
  background: linear-gradient(175deg, #7d6a5c, #6f6470 70%, #665f74);
}
.rd-field-subscription {
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(255, 232, 200, 0.5), rgba(255, 232, 200, 0) 70%),
    linear-gradient(172deg, #c08a4a, #b07f62 55%, #96808a);
}
.rd-card-ochre { background: linear-gradient(160deg, #cc9350, #b7835f); }
.rd-card-clay { background: linear-gradient(160deg, #b28a78, #9b7f77); }
.rd-card-lavender { background: linear-gradient(160deg, #958da2, #7d768f); }

/* ---------- type atoms (design-tokens -> type) ---------- */

/* Page title in the banner: Jost 300, 22, capitals, 0.24em. The app's own top bar
   renders interior titles, so this is only used where a page draws its own. */
.rd-page-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.32;
}
.rd-page-title--long { font-size: 18px; letter-spacing: 0.2em; }

.rd-label {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.3;
}
.rd-label--accent { color: var(--rd-accent); }
.rd-label--muted { color: var(--rd-ink-label); }

.rd-display {
  font-family: var(--rd-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 66px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.rd-h2 {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.08;
  margin: 0;
}

.rd-serif-body {
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
}

.rd-body {
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 300;
}

.rd-link {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--rd-accent);
  border-bottom: 1px solid var(--rd-accent-underline);
  padding-bottom: 2px;
  text-decoration: none;
}

/* Buttons are pills (radius 30, 44-56 high): solid white on dark fields,
   solid ink on paper, or outlined. */
.rd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 30px;
  font-family: var(--rd-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
}
.rd-pill--white { background: #fff; color: var(--rd-ink); }
.rd-pill--ink { background: var(--rd-ink); color: var(--rd-bone); }
.rd-pill--outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
}
.rd-pill--outline-accent {
  background: transparent;
  color: var(--rd-accent);
  box-shadow: inset 0 0 0 1px var(--rd-accent);
  height: 40px;
  padding: 0 18px;
  font-size: 11.5px;
}
.rd-pill svg { flex: none; }

.rd-title-on-photo {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* ---------- 5 · Explore ----------
   2 x 3 photographs, 2 pt gaps, each name in white capitals bottom left over a
   soft dark gradient. The grid fills the space between the bars. */

.rd-explore {
  --rd-top-bar: 3rem;
  height: calc(100dvh - var(--rd-top-bar) - 8rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  background: var(--rd-bone);
}
@media (min-width: 1024px) {
  .rd-explore { --rd-top-bar: 3.5rem; }
}
.rd-explore__tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.rd-explore__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rd-explore__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(60, 40, 28, 0) 42%, rgba(60, 40, 28, 0.6));
}
.rd-explore__name {
  position: absolute;
  z-index: 1;
  left: var(--rd-space-s);
  right: var(--rd-space-s);
  bottom: var(--rd-space-s);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.35;
  text-wrap: balance;
}
/* the last tile's name clears the AI launcher */
.rd-explore__tile:last-child .rd-explore__name { right: 70px; }

/* ---------- 10 · Supplies ---------- */

.rd-supplies { background: var(--rd-bone); }
.rd-supplies__pic {
  position: relative;
  height: 214px;
  overflow: hidden;
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
}
.rd-supplies__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 70%;
}
.rd-supplies__pic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(50, 34, 22, 0) 55%, rgba(50, 34, 22, 0.55));
}
.rd-supplies__pic .rd-page-title {
  position: absolute;
  z-index: 1;
  left: var(--rd-gutter);
  bottom: var(--rd-space-s);
  color: #fff;
}
.rd-supplies__lead {
  margin-top: var(--rd-space-s);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.22;
  color: var(--rd-ink-soft);
  text-wrap: pretty;
}
.rd-supplies__list {
  margin-top: var(--rd-space-l);
  display: grid;
  gap: var(--rd-space-m);
}
.rd-supplies__group {
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  margin-top: var(--rd-space-s);
}
.rd-supplies__item b,
.rd-supplies__heading {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-accent);
}
.rd-supplies__item p {
  margin-top: var(--rd-space-2xs);
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.25;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-supplies a.rd-inline-link {
  text-decoration: none;
  color: var(--rd-accent);
  font-weight: 500;
  border-bottom: 1px solid var(--rd-accent);
}
.rd-supplies__buttons {
  display: flex;
  gap: var(--rd-space-xs);
  margin-top: var(--rd-space-xs);
}

/* ---------- 14 · Video Lessons ---------- */

.rd-lessons { background: var(--rd-bone); }
.rd-lessons__head p {
  margin-top: var(--rd-space-xs);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--rd-ink-soft);
}
.rd-lessons__list {
  margin: 24px 22px 0;
  display: grid;
  gap: 10px;
}
.rd-lessons__card {
  position: relative;
  display: block;
  height: 132px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.rd-lessons__wave {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  width: calc(100% - 28px);
  height: 52px;
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.75;
}
.rd-lessons__card b {
  position: absolute;
  left: 18px;
  right: 86px;
  bottom: 14px;
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.06;
  text-wrap: balance;
}
.rd-lessons__play {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
}

/* ---------- 11 · Stories ---------- */

.rd-stories {
  color: #fff;
  padding: var(--rd-space-l) var(--rd-gutter) var(--rd-space-2xl);
}
.rd-stories__head .rd-display { font-size: 66px; }
.rd-stories__head .rd-label {
  margin: var(--rd-space-xs) 0 0;
  letter-spacing: 0.34em;
  font-size: 15px;
}
.rd-stories__videos-head { margin-top: var(--rd-space-xl); }
.rd-stories__list {
  margin-top: var(--rd-space-l);
  display: grid;
  gap: var(--rd-space-l);
}
.rd-stories__head + .rd-stories__list { margin-top: var(--rd-space-xl); }
.rd-stories__item {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rd-stories__item b {
  display: block;
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.05;
}
.rd-stories__item span {
  display: block;
  margin-top: var(--rd-space-2xs);
  font-size: 14.5px;
  line-height: 1.4;
  opacity: 0.95;
}
.rd-stories__item small {
  display: block;
  margin-top: var(--rd-space-xs);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---------- 12 · a story ---------- */

.rd-story { background: var(--rd-bone); }
.rd-story__top {
  position: relative;
  height: 268px;
  color: #fff;
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
}
.rd-story__top .rd-display {
  position: absolute;
  left: var(--rd-gutter);
  right: var(--rd-gutter);
  bottom: var(--rd-space-2xl);
  font-size: 56px;
  line-height: 0.94;
}
.rd-story__top small {
  position: absolute;
  left: var(--rd-gutter);
  bottom: var(--rd-space-l);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.rd-story__body {
  margin-top: var(--rd-space-l);
}
.rd-story__body p {
  margin-bottom: var(--rd-space-s);
  font-family: var(--rd-serif);
  font-size: 19.5px;
  line-height: 1.34;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-story__body p:first-child::first-letter {
  font-size: 58px;
  line-height: 0.8;
  float: left;
  padding: 6px 8px 0 0;
  color: var(--rd-ochre);
  font-weight: 400;
}

/* ---------- 13 · FAQs ---------- */

.rd-faq { background: var(--rd-paper-white); }
.rd-faq__section {
  margin-top: var(--rd-space-m);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1;
}
.rd-faq > .rd-page-title { margin-bottom: var(--rd-space-l); }
.rd-faq__section--spaced { margin-top: var(--rd-space-xl); }
.rd-faq__section mark {
  background: linear-gradient(transparent 46%, var(--rd-highlight) 46%, var(--rd-highlight) 92%, transparent 92%);
  color: inherit;
  padding: 0 6px 0 2px;
}
.rd-faq details {
  border-top: 1px solid var(--rd-hairline);
}
.rd-faq details:first-of-type { border-top: 0; }
.rd-faq summary {
  display: grid;
  grid-template-columns: 1fr 26px;
  align-items: start;
  gap: var(--rd-space-s);
  padding: var(--rd-space-s) 0;
  cursor: pointer;
  list-style: none;
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary b {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 19.5px;
  line-height: 1.2;
  text-wrap: balance;
}
.rd-faq summary i {
  font-style: normal;
  font-weight: 200;
  font-size: 26px;
  line-height: 0.9;
  text-align: right;
  color: var(--rd-ochre);
}
.rd-faq details[open] summary i { transform: rotate(45deg); }
.rd-faq .rd-faq__answer {
  padding: 0 var(--rd-space-l) var(--rd-space-m) 0;
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
}

/* ---------- 15/22 · Find an OM Partner ---------- */

.rd-partner { color: #fff; min-height: 100%; }
.rd-partner__pic {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
  -webkit-mask-image: linear-gradient(#000 66%, transparent);
  mask-image: linear-gradient(#000 66%, transparent);
}
.rd-partner__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.rd-partner__text {
  margin-top: calc(var(--rd-space-xl) * -1);
  text-align: center;
}
.rd-partner__text h2 {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 37px;
  line-height: 1.02;
  text-wrap: balance;
}
.rd-partner__text p {
  margin-top: var(--rd-space-m);
  margin-inline: auto;
  max-width: var(--rd-measure-body);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.88;
  text-wrap: pretty;
}
.rd-partner__actions {
  margin-top: var(--rd-space-l);
  display: grid;
  gap: var(--rd-space-s);
}
.rd-partner__actions .rd-pill { width: 100%; }

/* ---------- Invite your OM partner (invite-partner-v1, 2026-12-04) ----------
   One screen on the OM AI panel's field: the airplane, one serif sentence, the email pill
   and the two actions. Numbers are the package's, on a 390-wide screen; the side inset is
   the app's 20px gutter rather than the render's 34, to match the rest of the app. */
.rd-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* the package measures from the content top and lets the field run to the bottom of the
     screen; the page must fill the viewport or the bone body shows through under it */
  min-height: 100dvh;
  padding-top: 0;
}
.rd-invite__art {
  margin-top: 132px; /* 148 from the content top, less the page's own 16 */
}
.rd-invite__plane {
  display: block;
  width: 220px;
  height: 150px;
  filter: drop-shadow(0 0 10px rgba(255, 236, 214, 0.45));
}
.rd-invite__lede {
  margin-top: 40px;
  max-width: 21em;
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.16;
  color: #fff;
  text-align: center;
  text-wrap: balance;
}
.rd-invite__form {
  width: 100%;
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
/* The app's own field rule is `#frontend [type='text']` — id plus attribute — so a lone
   class loses to it. Matching that specificity is the only way to win without !important.
   Both screens that draw this pill share the rule: the invitation, and the last of the
   no-partner-yet steps (`.rd-tips`, which reuses the field rather than restyling it). */
#frontend :is(.rd-invite, .rd-tips) .rd-invite__field,
#frontend :is(.rd-invite, .rd-tips) .rd-invite__field:focus,
#frontend :is(.rd-invite, .rd-tips) .rd-invite__field:hover {
  width: 100%;
  height: 56px;
  padding: 0 var(--rd-space-l);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  color: #fff;
  caret-color: #fff;
  font-family: var(--rd-sans);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  outline: none;
  -webkit-text-fill-color: #fff;
}
#frontend :is(.rd-invite, .rd-tips) .rd-invite__field::placeholder {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
}
.rd-invite__submit {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4d4350;
  font-family: var(--rd-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.rd-invite__submit:hover { box-shadow: 0 2px 12px rgba(30, 18, 10, 0.28); }
.rd-invite__submit:active { background: rgba(255, 255, 255, 0.88); }
.rd-invite__submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rd-invite__later {
  margin-top: 26px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  font-family: var(--rd-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.rd-invite__later:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- 26 · No partner yet (no-partner-yet-v1, 2026-12-04) ----------
   The six steps after "No, I don't have a partner yet": one white-line drawing and the app's
   own words on the OM AI field, with no photograph. Numbers are the package's, on a 390 x 844
   screen and measured from the content top; the side inset stays the render's 34 because these
   six are one drawing-led set. The block is centred in the space above Next, so a taller screen
   keeps the margins. The design's close mark is not drawn here — see tips1. */
.rd-page.rd-tips {
  display: flex;
  flex-direction: column;
  /* the package's own figures: the block starts 56 below the top and leaves 150 above the
     bottom, with Next pinned to the bottom of that space. 90 left Next only 88 from the
     bottom, which put it on top of the Ask OM AI launcher and made the last slide read as
     if the page had been cut short. */
  padding: 56px 34px 150px;
  color: #fff;
}
/* The package draws a 390-wide screen: on anything wider the block keeps its 322 and
   centres (Next with it) instead of stretching to the app's 640 shell, so the design's
   line breaks hold at every width. */
.rd-tips > * {
  width: 100%;
  max-width: 322px;
  margin-inline: auto;
}
.rd-tips__body {
  margin-block: auto; /* centred in the space above Next */
  text-align: center;
}
.rd-tips__drawing {
  display: block;
  width: 176px;
  height: 120px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 10px rgba(255, 236, 214, 0.45));
}
.rd-tips__big {
  padding: 0; /* the base h2 rule pads 12 top and bottom */
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.14;
  text-wrap: balance;
}
.rd-tips__mid {
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.26;
  text-wrap: balance;
}
.rd-tips__head {
  padding: 0; /* the base h2 rule pads 12 top and bottom */
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  text-wrap: balance;
}
.rd-tips__small {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.88;
  text-wrap: balance;
}
/* a clarifier that leads the block (slides 4 and 6) sits above what follows instead */
.rd-tips__small--lead {
  margin-top: 0;
  margin-bottom: 20px;
}
.rd-tips__quote {
  font-family: var(--rd-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.28;
  text-wrap: balance;
}
.rd-tips__keep { white-space: nowrap; }
/* Next: the pill's own fill and outline, at the design's 54, capitals and 0.24em */
.rd-tips__next {
  flex: none;
  height: 54px;
  letter-spacing: 0.24em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.rd-tips__next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* slide 2: the block starts at the top, and the six questions are a numbered worksheet */
.rd-tips--questions { padding-top: 34px; }
.rd-tips--questions .rd-tips__body { margin-block: 0; }
/* the block no longer claims the space, so Next holds the bottom on its own */
.rd-tips--questions .rd-tips__next { margin-top: auto; }
.rd-tips--questions .rd-tips__drawing {
  width: 120px;
  height: 82px;
  margin-bottom: 12px;
}
.rd-tips--questions .rd-tips__head { font-size: 28px; }
/* The app's own list rule is `#frontend ol` — id plus element — so the worksheet has to
   match that specificity to set its own margin and drop the markers. */
#frontend .rd-tips .rd-tips__questions {
  /* the rows run 6 wider each side than the block, as the package draws them */
  margin: 14px -6px 0;
  display: grid;
  list-style: none;
  padding: 0;
  text-align: left;
}
.rd-tips__questions li {
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.rd-tips__questions li:first-child { border-top: 0; }
.rd-tips__questions i {
  font-style: normal;
  font-family: var(--rd-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--rd-label-on-photo);
}
.rd-tips__questions span {
  font-size: 15px;
  line-height: 1.38;
  text-wrap: pretty;
}

/* slide 4: the suggested words, in a smaller drawing's frame */
.rd-tips--quote { padding-top: 40px; }
.rd-tips--quote .rd-tips__drawing {
  width: 132px;
  height: 90px;
  margin-bottom: 16px;
}

/* slide 6: the invite form, with no Next */
.rd-tips--invite {
  padding-top: 40px;
  padding-bottom: 60px;
}
.rd-tips--invite .rd-tips__drawing { margin-bottom: 22px; }
.rd-tips--invite .rd-tips__small--lead { font-size: 15.5px; }
.rd-tips--invite .rd-tips__head { margin-bottom: 18px; }
.rd-tips__form {
  display: grid;
  gap: 12px;
}
/* Maybe later sits 22 under the submit, and needs a box for that margin to count */
.rd-tips .rd-invite__later {
  display: inline-block;
  margin-top: 22px;
}

/* ---------- 4 · Private Training ---------- */

.rd-training { color: #fff; min-height: 100%; }
.rd-training__pic {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.rd-training__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.rd-training__text {
  margin-top: calc(var(--rd-space-2xl) * -1);
}
.rd-training__text em {
  display: block;
  font-family: var(--rd-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(60, 40, 30, 0.4);
}
.rd-training__text h1 {
  margin: var(--rd-space-xs) 0 var(--rd-space-m);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.rd-training__text p {
  margin-bottom: var(--rd-space-xs);
  font-size: 15.5px;
  line-height: 1.45;
  text-wrap: pretty;
}
.rd-training__cta { margin-top: var(--rd-space-l); }

/* ---------- 3 · Science: findings and videos ---------- */

.rd-science__head p {
  margin-top: var(--rd-space-2xs);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--rd-ink-soft);
}
.rd-science__row {
  margin-top: var(--rd-space-m);
  display: flex;
  gap: var(--rd-space-s);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rd-gutter);
  -webkit-overflow-scrolling: touch;
  /* the findings run to both edges; the row keeps the gutter as its inner padding */
  margin-inline: calc(var(--rd-gutter) * -1);
  padding-inline: var(--rd-gutter);
  padding-bottom: var(--rd-space-2xs);
}
.rd-science__row::-webkit-scrollbar { display: none; }
.rd-science__card {
  position: relative;
  flex: none;
  width: 246px;
  height: 296px;
  padding: 20px 22px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}
.rd-science__card small {
  position: relative;
  display: block;
  height: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.rd-science__card b {
  position: relative;
  display: block;
  margin-top: 2px;
  font-weight: 200;
  font-size: 104px;
  line-height: 1;
  letter-spacing: -0.02em;
}
/* The percent sign hangs off its OWN em (not the parent's line box, whose top depends
   on the font's ascent): with vertical-align:top the design's 14px nudge resolved about
   18px too high once the self-hosted Jost replaced the designer's build. */
.rd-science__card b sup {
  font-size: 42px;
  vertical-align: baseline;
  position: relative;
  top: -1.05em;
  margin-left: 3px;
}
.rd-science__card img.rd-science__mark {
  position: relative;
  display: block;
  width: 150px;
  height: 88px;
  margin: 10px 0 8px -4px;
  filter: brightness(0) invert(1);
}
.rd-science__card span {
  position: relative;
  display: block;
  margin-top: 12px;
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  text-wrap: balance;
}
.rd-science__read {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rd-science__dots { margin-top: var(--rd-space-xs); display: flex; align-items: center; gap: 6px; }
.rd-science__dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cdbfb0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: width 180ms ease-out, background-color 180ms ease-out, border-radius 180ms ease-out;
}
.rd-science__dot:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 3px; }
.rd-science__dot.is-active { width: 16px; border-radius: 3px; background: var(--rd-ink); }

.rd-science__watch { margin-top: var(--rd-space-xl); }
.rd-science__watch > .rd-label { color: var(--rd-accent); letter-spacing: 0.3em; font-size: 12px; }
.rd-science__videos { margin-top: var(--rd-space-s); display: grid; gap: var(--rd-space-m); }
.rd-science__video { display: block; }
.rd-science__video-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rd-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rd-science__video-open:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 4px; }
.rd-science__video-card {
  position: relative;
  height: 178px;
  overflow: hidden;
  color: #fff;
}
.rd-science__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-science__video q {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  quotes: none;
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.16;
  text-wrap: balance;
}
.rd-science__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rd-ink);
  display: grid;
  place-items: center;
}
.rd-science__video--quote .rd-science__play {
  left: 22px;
  top: auto;
  bottom: 18px;
  width: 48px;
  height: 48px;
  margin: 0;
}
.rd-science__video b {
  display: block;
  margin-top: var(--rd-space-xs);
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 19.5px;
  line-height: 1.1;
  text-wrap: balance;
}

/* The video overlay. The card is a photograph or a quote; tapping it opens this,
   which holds the same video-player element the rest of the app uses. */
.rd-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--rd-gutter);
  background: rgba(16, 13, 11, 0.94);
}
.rd-video-overlay[hidden] { display: none; }
.rd-video-overlay__stage { width: 100%; max-width: 720px; }
.rd-video-overlay__close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + var(--rd-space-s));
  right: var(--rd-space-m);
  display: flex;
  align-items: center;
  gap: var(--rd-space-xs);
  padding: var(--rd-space-xs) var(--rd-space-s);
  border: 0;
  background: none;
  color: #f6efe6;
  font-family: var(--rd-sans);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.rd-video-overlay__close:focus-visible { outline: 2px solid #f6efe6; outline-offset: 4px; }
.rd-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.rd-video-player__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-video-player__frame iframe { width: 100%; height: 100%; border: 0; }
html.rd-video-open,
html.rd-video-open body { overflow: hidden; }

/* ---------- 6 · a science finding ---------- */

.rd-finding { background: var(--rd-paper); }
.rd-finding__card-field { position: absolute; inset: 0; }
.rd-finding__pic {
  position: relative;
  height: 250px;
  overflow: hidden;
  margin-inline: calc(var(--rd-gutter) * -1);
  margin-top: calc(var(--rd-space-m) * -1);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}
.rd-finding__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 24% 64%;
}
.rd-finding__num {
  position: absolute;
  left: var(--rd-gutter);
  bottom: 96px;
  font-weight: 200;
  font-size: 150px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 30px rgba(120, 80, 40, 0.35);
}
.rd-finding__num sup {
  font-size: 58px;
  vertical-align: baseline;
  position: relative;
  top: -1.05em;
  margin-left: 4px;
}
.rd-finding__body { margin-top: var(--rd-space-m); }
.rd-finding__body h2 { font-size: 27px; line-height: 1.08; text-wrap: balance; }
.rd-finding__byline {
  display: block;
  margin: var(--rd-space-xs) 0 var(--rd-space-s);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rd-accent);
}
.rd-finding__body p {
  margin-bottom: var(--rd-space-xs);
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-finding__link {
  display: inline-flex;
  align-items: center;
  gap: var(--rd-space-xs);
  margin-top: var(--rd-space-xs);
  height: 44px;
  padding: 0 22px;
  border-radius: 30px;
  background: var(--rd-ink);
  color: var(--rd-bone);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

/* The Ask OM AI launcher is fixed to the viewport, so inner pages keep a strip of
   clearance at the bottom; otherwise it sits over the last line or the last button. */
.rd-page { padding-bottom: calc(var(--rd-space-2xl) + var(--rd-space-xl) + var(--rd-space-xs)); }
