/* ==========================================================================
   TESORIN — shared marketing sections (class prefix: ms-)

   Link AFTER every other stylesheet on the page:
   <link id="tesorin-marketing-sections-css" rel="stylesheet" href="/assets/marketing-sections.css?v=20261004-1" />

   Relies on tokens from bright.css, assets/theme.css, assets/editorial-type.css
   and assets/surface-system.css (all have fallbacks). Phone media also needs
   assets/device-mockup.css. Does NOT need faq.css, home.css or review-meta.*.

   Components
     1  Eyebrow + heading group ...... .ms-hgroup, .ms-eyebrow
     2  Section shell + head ......... .ms-section, .ms-head, .ms-h1/.ms-h2/.ms-h3
     3  Text + media split ........... .ms-split, .ms-device, .ms-photo
     4  How-it-works steps ........... .ms-steps, .ms-step
     5  Principle / feature cards .... .ms-cards, .ms-card
     6  FAQ preview .................. .ms-faq
     7  CTA band ..................... .ms-cta
     8  Static review wall ........... .ms-reviews, .ms-review
     9  Static review drop ........... .ms-review-drop
     10 Two-column comparison ........ .ms-compare, .ms-footnote
     11 Utilities .................... .ms-actions, .ms-lede, .ms-prose,
                                       .ms-pills, .ms-definition, .ms-sr-only
   ========================================================================== */

:root {
  /* Olive deepened slightly so 12px labels pass WCAG AA (5.2:1 on white). */
  --ms-eyebrow-color: #68713F;
  --ms-body-color: var(--ink-2, #575149);
  --ms-rule: var(--hair-2, rgba(11, 11, 11, .14));

  --ms-section-pad: clamp(72px, 8vw, 116px);
  --ms-gap: clamp(40px, 6vw, 96px);

  --ms-title-1: clamp(40px, 5vw, 68px);
  --ms-title-2: clamp(32px, 3.7vw, 52px);
  --ms-title-3: clamp(24px, 2.3vw, 32px);
  --ms-title-4: clamp(21px, 1.9vw, 26px);

  --ms-ours-tint: transparent;
  --ms-ours-line: rgba(115, 124, 71, .38);
  --ms-review-bg: rgba(255, 255, 255, .8);
  --ms-review-border: rgba(115, 124, 71, .13);
  --ms-review-shadow: 0 18px 44px -34px rgba(11, 11, 11, .38);
  --ms-faq-bg: #ffffff;
  --ms-cta-bg: #191714;
  --ms-photo-line: rgba(11, 11, 11, .06);
}

html[data-theme="dark"] {
  --ms-eyebrow-color: #A6AF78;
  --ms-ours-tint: rgba(115, 124, 71, .17);
  --ms-ours-line: transparent;
  --ms-review-bg: rgba(27, 27, 27, .88);
  --ms-review-border: rgba(255, 255, 255, .10);
  --ms-review-shadow: 0 22px 50px -34px rgba(0, 0, 0, .82);
  --ms-faq-bg: var(--paper, #1B1B1B);
  --ms-cta-bg: #0B0B0B;
  --ms-photo-line: rgba(255, 255, 255, .07);
}


/* --------------------------------------------------------------------------
   1. Eyebrow + heading group
   <hgroup class="ms-hgroup"><p class="ms-eyebrow">Meet TESORIN</p><h2>…</h2></hgroup>
   (.micro and .hero-meta are hidden site-wide by bright.css; never reuse them.)
   -------------------------------------------------------------------------- */
.ms-hgroup {
  display: block;
  margin: 0;
}

.ms-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-sans, var(--sans));
  font-size: 12.5px;
  font-weight: 650;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-eyebrow-color);
}

.ms-eyebrow::before {
  content: "";
  flex: 0 0 22px;
  height: 1px;
  background: var(--accent-terracotta, #BD6038);
}

.ms-head--center .ms-eyebrow,
.ms-cta:not(.ms-cta--left) .ms-eyebrow,
.ms-eyebrow--center {
  justify-content: center;
}

.ms-hgroup > :is(h1, h2, h3) {
  margin: 0;
}


/* --------------------------------------------------------------------------
   2. Section shell, section head and heading scale
   -------------------------------------------------------------------------- */
.ms-section {
  position: relative;
  padding-block: var(--ms-section-pad);
}

.ms-section--tight { padding-block: clamp(48px, 5.5vw, 80px); }
/* First section of a page: clears the fixed navigation (like .pg-head). */
.ms-section--hero { padding-top: clamp(128px, 12vw, 164px); }
.ms-section--flush-top { padding-top: 0; }
.ms-section--flush-bottom { padding-bottom: 0; }

.ms-h1,
.ms-h2,
.ms-h3,
.ms-head :is(h1, h2),
.ms-split__text :is(h1, h2),
.ms-faq__head h2,
.ms-cta h2 {
  font-family: var(--font-serif, var(--serif));
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
}

.ms-h1 {
  max-width: 17ch;
  font-size: var(--ms-title-1);
  line-height: 1.02;
  letter-spacing: -.028em;
}

.ms-h2,
.ms-head :is(h1, h2),
.ms-faq__head h2 {
  max-width: 20ch;
  font-size: var(--ms-title-2);
  line-height: 1.05;
  letter-spacing: -.024em;
}

.ms-head :is(h1.ms-h1, h1) {
  font-size: var(--ms-title-1);
  line-height: 1.02;
  max-width: 17ch;
}

.ms-h3 {
  font-size: var(--ms-title-3);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.ms-head {
  max-width: 780px;
}

.ms-head:not(:last-child) {
  margin-bottom: clamp(36px, 4.5vw, 60px);
}

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

.ms-head--center :is(h1, h2, p) {
  margin-inline: auto;
}

.ms-head--center :is(h2) { max-width: 24ch; }

.ms-head > p:not(.ms-eyebrow),
.ms-head > .ms-lede {
  max-width: 58ch;
  margin-top: 22px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  letter-spacing: -.008em;
  color: var(--ms-body-color);
}

.ms-head > p:not(.ms-eyebrow) + p {
  margin-top: 14px;
}


/* --------------------------------------------------------------------------
   3. Text + media split
   <div class="ms-split [ms-split--flip]">
     <div class="ms-split__text">…</div>
     <div class="ms-split__media">.ms-device | .ms-photo</div>
   </div>
   -------------------------------------------------------------------------- */
.ms-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ms-gap);
  align-items: center;
}

.ms-split + .ms-split {
  margin-top: clamp(80px, 10vw, 140px);
}

.ms-split__text {
  min-width: 0;
  max-width: 560px;
}

.ms-split--flip .ms-split__text {
  justify-self: end;
}

.ms-split__media {
  min-width: 0;
  display: grid;
  justify-items: center;
}

.ms-split--flip .ms-split__media {
  order: -1;
}

.ms-split__text :is(h1, h2) {
  max-width: 16ch;
  font-size: var(--ms-title-2);
  line-height: 1.05;
  letter-spacing: -.024em;
}

.ms-split__text > p:not(.ms-eyebrow) {
  max-width: 50ch;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ms-body-color);
}

.ms-split__text > p:not(.ms-eyebrow) + p {
  margin-top: 14px;
}

/* Phone slot: wraps the shared device-mockup markup.
   Defaults the screen ratio to the 2026-09-26 screenshots (1206 x 2622). */
.ms-device {
  --tesorin-feature-media-ratio: 1206 / 2622;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: 8px 28px;
  isolation: isolate;
}

.ms-device::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 2%;
  width: min(520px, 100%);
  height: 34%;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(115, 124, 71, .2), rgba(115, 124, 71, 0));
  filter: blur(14px);
  pointer-events: none;
}

html[data-theme="dark"] .ms-device::before {
  background: radial-gradient(closest-side, rgba(115, 124, 71, .16), rgba(115, 124, 71, 0));
}

html body .ms-device .tesorin-device-stage {
  width: min(var(--ms-phone-width, 300px), 70vw);
  margin-inline: auto;
}

html body .ms-device .tesorin-device-stage > .tesorin-device-viewport {
  aspect-ratio: var(--tesorin-feature-media-ratio);
}

/* Shows the top of the phone and fades it out: keeps tall phones compact. */
.ms-device--peek::before { display: none; }

.ms-device--peek {
  max-height: var(--ms-peek-height, 560px);
  overflow: hidden;
  align-items: start;
  padding-bottom: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* Photo slot: <figure class="ms-photo"><img … width height alt loading="lazy"></figure> */
.ms-photo {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: var(--ms-photo-ratio, 4 / 3);
  overflow: hidden;
  border-radius: var(--r-xl, 32px);
  background: rgba(11, 11, 11, .04);
  box-shadow: 0 30px 68px -52px rgba(11, 11, 11, .4);
}

.ms-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--ms-photo-line);
  pointer-events: none;
}

.ms-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ms-photo-position, 50% 50%);
}

.ms-photo--wide { --ms-photo-ratio: 16 / 10; }
.ms-photo--portrait { --ms-photo-ratio: 4 / 5; }
.ms-photo--square { --ms-photo-ratio: 1 / 1; }

html[data-theme="dark"] .ms-photo > img {
  filter: brightness(.93);
}

@media (max-width: 760px) {
  .ms-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .ms-split--flip .ms-split__media {
    order: 0;
  }

  .ms-split--flip .ms-split__text {
    justify-self: start;
  }

  .ms-split__text {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .ms-photo { border-radius: var(--site-card-radius, 26px); }
  .ms-photo--portrait { --ms-photo-ratio: 1 / 1; }
  html body .ms-device .tesorin-device-stage { width: min(var(--ms-phone-width, 300px), 66vw); }
}


/* --------------------------------------------------------------------------
   4. How-it-works steps
   <ol class="ms-steps"><li class="ms-step">…</li></ol>
   The visible 01–04 numbers are aria-hidden; the <ol> carries the order.
   -------------------------------------------------------------------------- */
.ms-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 88px) clamp(40px, 6vw, 96px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-step {
  min-width: 0;
  padding-top: 26px;
  border-top: 1px solid var(--ms-rule);
}

.ms-step__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 26px;
}

.ms-step__num {
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  color: var(--accent-terracotta, #BD6038);
}

.ms-step__sketch {
  width: auto;
  height: clamp(86px, 8vw, 118px);
  max-width: 55%;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.ms-step :is(h2, h3) {
  max-width: 19ch;
  font-family: var(--font-serif, var(--serif));
  font-size: var(--ms-title-3);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ms-step > p {
  max-width: 48ch;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ms-body-color);
}

@media (max-width: 760px) {
  .ms-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .ms-step > p { font-size: 16px; }
}


/* --------------------------------------------------------------------------
   5. Principle / feature cards
   <div class="ms-cards [ms-cards--2|--4] [ms-cards--flat]"><article class="ms-card">…</article></div>
   -------------------------------------------------------------------------- */
.ms-cards {
  --ms-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--ms-cols), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-cards--2 { --ms-cols: 2; }
.ms-cards--4 { --ms-cols: 4; }

.ms-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 36px);
  border: 1px solid var(--site-card-border, var(--hair));
  border-radius: var(--site-card-radius, 32px);
  background: var(--site-card-bg, var(--paper));
  box-shadow: var(--site-card-shadow, none);
}

.ms-card__art {
  width: auto;
  height: 92px;
  max-width: 72%;
  margin-bottom: 30px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.ms-card h3 {
  font-family: var(--font-serif, var(--serif));
  font-size: var(--ms-title-4);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ms-card > p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ms-body-color);
}

.ms-card > .ms-actions { margin-top: auto; padding-top: 24px; }

.ms-cards--flat .ms-card {
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--ms-rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.ms-cards--flat {
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: clamp(40px, 4.5vw, 56px);
}

@media (max-width: 1080px) {
  .ms-cards--4 { --ms-cols: 2; }
}

@media (max-width: 860px) {
  .ms-cards { --ms-cols: 1; }
  .ms-cards--2,
  .ms-cards--4 { --ms-cols: 2; }
}

/* Single-column 3-up cards on tablet: sketch sits beside the text. */
@media (min-width: 561px) and (max-width: 860px) {
  .ms-cards:not(.ms-cards--2, .ms-cards--4) > .ms-card:has(> .ms-card__art) {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 30px;
    align-content: center;
  }

  .ms-cards:not(.ms-cards--2, .ms-cards--4) > .ms-card:has(> .ms-card__art) > .ms-card__art {
    grid-row: 1 / span 3;
    align-self: center;
    width: 100%;
    max-width: none;
    height: 96px;
    margin: 0;
    object-position: center;
  }

  .ms-cards:not(.ms-cards--2, .ms-cards--4) > .ms-card:has(> .ms-card__art) > :not(.ms-card__art) {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .ms-cards--2,
  .ms-cards--4 { --ms-cols: 1; }
}


/* --------------------------------------------------------------------------
   6. FAQ preview (same look as the FAQ page's .q items; no faq.css needed)
   <div class="ms-faq [ms-faq--stacked]">
     <div class="ms-faq__head"><h2>FAQs</h2></div>
     <div class="ms-faq__list"><details class="ms-faq__item"><summary>…</summary><div class="ms-faq__a">…</div></details></div>
     <div class="ms-faq__more"><a class="btn btn-ghost" href="/faq.html">More FAQs <span class="arrow">→</span></a></div>
   </div>
   -------------------------------------------------------------------------- */
.ms-faq {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr);
  grid-template-areas:
    "head list"
    "more list";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.ms-faq__head { grid-area: head; min-width: 0; }
.ms-faq__head > p:not(.ms-eyebrow) {
  max-width: 36ch;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ms-body-color);
}

.ms-faq__list {
  grid-area: list;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ms-faq__more {
  grid-area: more;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 30px;
}

.ms-faq__item {
  padding: 0 28px;
  border: 1px solid var(--site-card-border, var(--hair));
  border-radius: var(--site-compact-radius, 20px);
  background: var(--ms-faq-bg);
  box-shadow: var(--site-compact-shadow, none);
}

.ms-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans, var(--sans));
  font-size: clamp(17px, 1.55vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
}

.ms-faq__item > summary::-webkit-details-marker { display: none; }

.ms-faq__item > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-serif, var(--serif));
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-olive, #737C47);
  transition: transform .25s var(--ease-standard, ease);
}

.ms-faq__item[open] > summary::after { transform: rotate(45deg); }

.ms-faq__item > summary:focus-visible {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 4px;
  border-radius: 10px;
}

.ms-faq__a {
  max-width: 72ch;
  padding: 0 42px 24px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ms-body-color);
}

.ms-faq__a a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ms-faq--stacked {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "list" "more";
  grid-template-rows: none;
  max-width: 860px;
  margin-inline: auto;
}

.ms-faq--stacked .ms-faq__head { text-align: center; }
.ms-faq--stacked .ms-faq__head :is(h2, p) { margin-inline: auto; }
.ms-faq--stacked .ms-faq__head > p:not(.ms-eyebrow) { max-width: 56ch; }
.ms-faq--stacked .ms-faq__list { margin-top: clamp(32px, 4vw, 48px); }
.ms-faq--stacked .ms-faq__more { justify-content: center; margin-top: 32px; }

@media (max-width: 880px) {
  .ms-faq {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "list" "more";
    grid-template-rows: none;
  }

  .ms-faq__list { margin-top: 32px; }
}

@media (max-width: 560px) {
  .ms-faq__item { padding: 0 20px; }
  .ms-faq__item > summary { gap: 18px; padding: 20px 0; font-size: 16px; }
  .ms-faq__a { padding: 0 30px 21px 0; font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-faq__item > summary::after { transition: none; }
}


/* --------------------------------------------------------------------------
   7. CTA band — ink panel in BOTH themes (never derived from --ink, which
   turns light in dark mode). Place inside .container.
   -------------------------------------------------------------------------- */
.ms-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl, 32px);
  background: var(--ms-cta-bg);
  color: #F5F2EC;
  text-align: center;
}

.ms-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background:
    radial-gradient(circle at 26% 28%, rgba(189, 96, 56, .15), transparent 28%),
    radial-gradient(circle at 74% 70%, rgba(115, 124, 71, .17), transparent 28%);
  pointer-events: none;
}

.ms-cta::after {
  content: "TESORIN";
  position: absolute;
  z-index: -1;
  right: -1vw;
  bottom: -.2em;
  font-family: var(--font-brand, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(76px, 12vw, 172px);
  line-height: .8;
  letter-spacing: .06em;
  color: rgba(245, 242, 236, .03);
  pointer-events: none;
}

html[data-theme="dark"] .ms-cta {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.ms-cta h2 {
  max-width: 19ch;
  margin-inline: auto;
  font-size: var(--ms-title-2);
  line-height: 1.05;
  letter-spacing: -.024em;
  color: #F5F2EC;
}

.ms-cta p:not(.ms-eyebrow) {
  max-width: 54ch;
  margin: 22px auto 0;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: rgba(245, 242, 236, .76);
}

.ms-cta .ms-eyebrow { color: #C3CA96; }
.ms-cta .ms-actions { justify-content: center; margin-top: 36px; }

.ms-cta--left { text-align: left; }
.ms-cta--left :is(h2, p:not(.ms-eyebrow)) { margin-inline: 0; }
.ms-cta--left .ms-actions { justify-content: flex-start; }

html body .ms-cta .btn-primary {
  border-color: #F5F2EC;
  background: #F5F2EC;
  color: #191714;
  box-shadow: none;
}

html body .ms-cta .btn-primary:hover {
  border-color: #fff;
  background: #fff;
  color: #191714;
}

html body .ms-cta .btn-ghost {
  border-color: rgba(245, 242, 236, .32);
  background: transparent;
  color: #F5F2EC;
  box-shadow: none;
}

html body .ms-cta .btn-ghost:hover {
  border-color: #F5F2EC;
  background: #F5F2EC;
  color: #191714;
}

html body .ms-cta .btn:focus-visible {
  outline: 2px solid #F5F2EC;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .ms-cta { border-radius: 24px; }
}


/* --------------------------------------------------------------------------
   8. Static review wall (and the shared review card)
   <div class="ms-reviews"><figure class="ms-review">…</figure></div>
   Icons are inline SVG (never the U+F8FF Apple glyph).
   -------------------------------------------------------------------------- */
.ms-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Masonry option for longer review bodies. */
.ms-reviews--masonry {
  display: block;
  columns: 3 280px;
  column-gap: 20px;
}

.ms-reviews--masonry > .ms-review {
  break-inside: avoid;
  margin: 0 0 20px;
}

@media (max-width: 980px) {
  .ms-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ms-reviews { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ms-reviews--masonry > .ms-review { margin-bottom: 14px; }
}

.ms-review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 24px 24px 20px;
  border: 1px solid var(--ms-review-border);
  border-radius: 24px;
  background: var(--ms-review-bg);
  box-shadow: var(--ms-review-shadow);
  color: var(--ink);
  text-align: left;
}

.ms-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin-bottom: 12px;
}

/* Opening quote mark for reviews without a star rating (e.g. Reddit). */
.ms-review__mark {
  display: block;
  height: 22px;
  font-family: var(--font-serif, var(--serif));
  font-size: 52px;
  line-height: 1;
  color: var(--accent-terracotta, #BD6038);
  overflow: visible;
}

.ms-review__stars {
  font-size: 14px;
  line-height: 1;
  letter-spacing: .12em;
  white-space: nowrap;
  color: var(--ink);
}

.ms-review__place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 9px 4px 7px;
  border: 1px solid var(--hair, rgba(11, 11, 11, .1));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
}

.ms-review__place svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: var(--accent-terracotta, #BD6038);
}

.ms-review blockquote {
  flex: 1 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
}

.ms-review__title {
  margin: 0 0 8px;
  font-family: var(--font-serif, var(--serif));
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}

.ms-review__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ms-body-color);
}

.ms-review__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hair, rgba(11, 11, 11, .08));
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ms-review__author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-review__source {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ms-review__source svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}


/* --------------------------------------------------------------------------
   9. Static review drop — phone flanked by fading review columns.
   Add .ms-review-drop--drift for the slow vertical loop (each track then
   holds its cards twice; the second set is aria-hidden). Motion pauses on
   hover / focus, via the optional pause toggle, and is removed entirely under
   prefers-reduced-motion and at <=900px (cards become swipeable rows).
   -------------------------------------------------------------------------- */
.ms-review-drop {
  --ms-drop-gap: 18px;
  --ms-drop-card: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "left phone right";
  align-items: stretch;
  gap: clamp(28px, 4.6vw, 84px);
  max-width: 1180px;
  margin-inline: auto;
}

.ms-review-drop__phone {
  --ms-phone-width: 320px;
  grid-area: phone;
  align-self: center;
}

.ms-review-drop__rail {
  position: relative;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
}

.ms-review-drop__rail--left { grid-area: left; }
.ms-review-drop__rail--right { grid-area: right; }

/* Absolutely placed so the cards never stretch the row past the phone. */
.ms-review-drop__track {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ms-drop-gap);
  width: min(var(--ms-drop-card), 100%);
}

.ms-review-drop__rail--left .ms-review-drop__track {
  right: 0;
  transform: translate3d(0, 7%, 0);
}

.ms-review-drop__rail--right .ms-review-drop__track {
  left: 0;
  transform: translate3d(0, -2%, 0);
}

.ms-review-drop .ms-review {
  padding: 20px 20px 18px;
  border-radius: 22px;
}

.ms-review-drop .ms-review__top { margin-bottom: 12px; }
.ms-review-drop .ms-review__title { margin-bottom: 7px; font-size: 19px; }
.ms-review-drop .ms-review__body { font-size: 14px; line-height: 1.5; }
.ms-review-drop .ms-review__meta {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  font-size: 10.5px;
  letter-spacing: .065em;
}

/* Static by default: duplicated loop cards stay hidden. */
.ms-review-drop:not(.ms-review-drop--drift) .ms-review[aria-hidden="true"] {
  display: none;
}

.ms-review-drop--drift .ms-review-drop__rail--left .ms-review-drop__track {
  animation: ms-drift-up 48s linear infinite;
}

.ms-review-drop--drift .ms-review-drop__rail--right .ms-review-drop__track {
  animation: ms-drift-down 54s linear infinite;
}

.ms-review-drop--drift:hover .ms-review-drop__track,
.ms-review-drop--drift:focus-within .ms-review-drop__track,
.ms-review-drop--drift:has(.ms-review-drop__pause input:checked) .ms-review-drop__track {
  animation-play-state: paused;
}

@keyframes ms-drift-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-50% - var(--ms-drop-gap) / 2), 0); }
}

@keyframes ms-drift-down {
  from { transform: translate3d(0, calc(-50% - var(--ms-drop-gap) / 2), 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* Optional pause toggle (native checkbox; shown only while motion can run). */
.ms-review-drop__pause {
  display: none;
}

.ms-review-drop--drift .ms-review-drop__pause {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--hair, rgba(11, 11, 11, .1));
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ms-review-drop__pause input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent-olive, #737C47);
  cursor: pointer;
}

.ms-review-drop__pause:hover { color: var(--ink); }
.ms-review-drop__pause:has(input:focus-visible) {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .ms-review-drop { gap: 28px; }

  .ms-review-drop__phone { --ms-phone-width: 280px; }
}

@media (max-width: 900px) {
  .ms-review-drop {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "phone" "left" "right";
    gap: 6px;
  }

  .ms-review-drop__phone {
    --ms-phone-width: 270px;
    margin-bottom: 18px;
  }

  /* Each column becomes a swipeable row that bleeds to the screen edge.
     Requires the drop to sit inside .container (gutter padding). */
  .ms-review-drop__rail {
    margin-inline: calc(var(--gutter, 18px) * -1);
    padding: 6px var(--gutter, 18px) 26px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter, 18px);
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ms-review-drop__rail::-webkit-scrollbar { display: none; }

  .ms-review-drop .ms-review-drop__rail .ms-review-drop__track {
    position: static;
    flex-direction: row;
    gap: 14px;
    width: max-content;
    transform: none;
    animation: none;
  }

  .ms-review-drop .ms-review {
    flex: 0 0 auto;
    width: min(78vw, 300px);
    scroll-snap-align: start;
  }

  .ms-review-drop .ms-review[aria-hidden="true"],
  .ms-review-drop--drift .ms-review-drop__pause {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-review-drop .ms-review-drop__track { animation: none !important; }
  .ms-review-drop .ms-review[aria-hidden="true"],
  .ms-review-drop--drift .ms-review-drop__pause { display: none; }
}


/* --------------------------------------------------------------------------
   10. Two-column comparison (semantic table) + footnote
   TESORIN cells: td.ms-compare__ours. Every td needs data-label="…" (used as
   the block label when rows restack at <=760px).
   -------------------------------------------------------------------------- */
.ms-compare {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}

.ms-compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ms-body-color);
}

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

.ms-compare__table :is(th, td) {
  padding: 26px 28px;
  border: 0;
  border-bottom: 1px solid var(--hair, rgba(11, 11, 11, .09));
  background: transparent;
  text-align: left;
  vertical-align: top;
}

/* theme.css paints every thead th / tbody td in dark mode; keep ours clear. */
html[data-theme="dark"] .ms-compare__table thead th,
html[data-theme="dark"] .ms-compare__table tbody th,
html[data-theme="dark"] .ms-compare__table tbody td {
  background: transparent;
}

.ms-compare__table thead th {
  padding-top: 30px;
  padding-bottom: 22px;
  border-bottom-color: var(--ms-rule);
  vertical-align: bottom;
  font-family: var(--font-sans, var(--sans));
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.005em !important;
  color: var(--ink-2);
}

.ms-compare__table thead th:first-child { width: 22%; }
.ms-compare__table thead th.ms-compare__ours { width: 45%; }

.ms-compare__brand {
  display: block;
  font-family: var(--font-brand, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .095em;
  color: var(--ink);
}

.ms-compare__rival {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-2);
}

.ms-compare__table tbody th {
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}

.ms-compare__table td.ms-compare__ours,
.ms-compare__table th.ms-compare__ours,
html[data-theme="dark"] .ms-compare__table td.ms-compare__ours,
html[data-theme="dark"] .ms-compare__table th.ms-compare__ours {
  background: var(--ms-ours-tint);
}

.ms-compare__table td.ms-compare__ours {
  border-bottom-color: rgba(115, 124, 71, .18);
  box-shadow: inset 1px 0 0 var(--ms-ours-line, transparent), inset -1px 0 0 var(--ms-ours-line, transparent);
  color: var(--ink);
}

.ms-compare__table thead th.ms-compare__ours {
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 3px 0 var(--accent-olive, #737C47), inset 1px 0 0 var(--ms-ours-line, transparent), inset -1px 0 0 var(--ms-ours-line, transparent);
}

.ms-compare__table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.ms-compare__table tbody tr:last-child td.ms-compare__ours {
  border-radius: 0 0 24px 24px;
  box-shadow: inset 1px 0 0 var(--ms-ours-line, transparent), inset -1px 0 0 var(--ms-ours-line, transparent), inset 0 -1px 0 var(--ms-ours-line, transparent);
}

.ms-compare__table td > * + * { margin-top: 12px; }
.ms-compare__table td strong { font-weight: 650; color: var(--ink); }

.ms-compare__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-compare__list li {
  position: relative;
  padding-left: 24px;
}

.ms-compare__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .5em;
  width: 11px;
  height: 6px;
  border-bottom: 1.7px solid var(--accent-olive, #737C47);
  border-left: 1.7px solid var(--accent-olive, #737C47);
  transform: rotate(-45deg);
}

html[data-theme="dark"] .ms-compare__list li::before { border-color: #A6AF78; }

.ms-footnote {
  max-width: 80ch;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.ms-footnote a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ms-compare .ms-footnote { padding-inline: 28px; }

@media (max-width: 760px) {
  .ms-compare__table,
  .ms-compare__table tbody,
  .ms-compare__table tr,
  .ms-compare__table th,
  .ms-compare__table td {
    display: block;
    width: auto;
  }

  .ms-compare__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ms-compare__table tbody tr {
    padding: 30px 0;
    border-top: 1px solid var(--ms-rule);
  }

  .ms-compare__table tbody tr:first-child { padding-top: 0; border-top: 0; }
  .ms-compare__table tbody tr:last-child { padding-bottom: 0; }

  .ms-compare__table tbody th {
    padding: 0 0 14px;
    border: 0;
    font-size: 25px;
  }

  .ms-compare__table td,
  .ms-compare__table tbody tr:last-child td {
    padding: 18px 20px 20px;
    border: 1px solid var(--hair, rgba(11, 11, 11, .09));
    border-radius: 20px;
  }

  .ms-compare__table td.ms-compare__ours,
  .ms-compare__table tbody tr:last-child td.ms-compare__ours {
    border-color: var(--ms-ours-line, transparent);
    border-radius: 20px;
    box-shadow: inset 3px 0 0 var(--accent-olive, #737C47);
  }

  .ms-compare__table td + td { margin-top: 10px; }

  .ms-compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .ms-compare__table td.ms-compare__ours::before { color: var(--ms-eyebrow-color); }
  .ms-compare__table td > * + * { margin-top: 10px; }
  .ms-compare .ms-footnote { padding-inline: 0; }
}

@media (max-width: 340px) {
  .ms-compare__list { grid-template-columns: minmax(0, 1fr); }
}


/* --------------------------------------------------------------------------
   11. Utilities
   -------------------------------------------------------------------------- */
.ms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 34px;
}

.ms-actions--center { justify-content: center; }

/* Dark theme: editorial-type.css gives .btn-ghost a translucent paper fill
   that turns into a grey pill on the ink background. Keep ghost buttons
   inside ms- components outlined instead (CTA keeps its own rules). */
html[data-theme="dark"] :where(.ms-section, .ms-head, .ms-split, .ms-faq, .ms-cards) .btn-ghost {
  border-color: var(--hair-2, rgba(255, 255, 255, .16));
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] :where(.ms-section, .ms-head, .ms-split, .ms-faq, .ms-cards) .btn-ghost:hover {
  border-color: #F2F2F2;
  background: #F2F2F2;
  color: #111111;
}
.ms-head--center .ms-actions { justify-content: center; }

.ms-lede {
  max-width: 56ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--ms-body-color);
}

* + .ms-lede { margin-top: 22px; }

.ms-prose {
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ms-body-color);
}

.ms-prose > * + * { margin-top: 1em; }
.ms-prose strong { font-weight: 600; color: var(--ink); }
.ms-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* In-page jump links, e.g. Tracking / Budgeting / Planning / Simplifying. */
.ms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--site-card-border, var(--hair-2));
  border-radius: 999px;
  background: var(--site-card-bg, var(--paper));
  font-family: var(--font-serif, var(--serif));
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ms-pills a:hover {
  border-color: var(--accent-olive, #737C47);
}

.ms-pills a:focus-visible {
  outline: 2px solid var(--accent-olive, #737C47);
  outline-offset: 3px;
}

/* Dictionary-style name entry (About: “TESORIN means to treasure…”). */
.ms-definition {
  margin: 0;
}

.ms-definition__term {
  display: block;
  font-family: var(--font-brand, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: .06em;
  color: var(--ink);
}

.ms-definition__say {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono, var(--mono));
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ms-definition__meaning {
  max-width: 46ch;
  margin: 18px 0 0;
  font-family: var(--font-serif, var(--serif));
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
}

.ms-definition__meaning em {
  font-style: normal;
  color: var(--accent-terracotta, #BD6038);
}

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

@media (max-width: 560px) {
  .ms-h2,
  .ms-head :is(h2),
  .ms-split__text :is(h1, h2),
  .ms-faq__head h2,
  .ms-cta h2 {
    font-size: clamp(30px, 8.4vw, 38px);
    line-height: 1.07;
  }

  .ms-h1,
  .ms-head h1 {
    font-size: clamp(38px, 10.6vw, 48px);
  }

  .ms-actions .btn { white-space: normal; text-align: center; }
}

/* ==========================================================================
   12  Scroll-linked motion
   Quiet, editorial motion tied to scroll position rather than timers:
   headings wipe up out of a mask, product phones settle into place, photos
   drift inside their frames. CSS scroll-driven animations only, so browsers
   without support (and anyone preferring reduced motion) see the static page.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :is(.ms-head, .ms-split__text, .ms-faq__head, .features-group__title, .pricing-promise__inner) > :is(h2, h3),
    :is(.ms-split__text, .ms-head) > .ms-hgroup > :is(h2, h3) {
      animation: ms-heading-wipe linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 75%;
    }

    .ms-split__media > .ms-device,
    .features-tile__media > .ms-device {
      animation: ms-device-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .ms-photo > img {
      animation: ms-photo-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .ms-reviews > .ms-review,
    .ms-cards > .ms-card {
      animation: ms-card-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes ms-heading-wipe {
  from { opacity: .25; translate: 0 .32em; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1;   translate: 0 0;     clip-path: inset(-.25em 0 -.25em 0); }
}

@keyframes ms-device-settle {
  from { opacity: .3; translate: 0 56px; scale: .94; }
  to   { opacity: 1;  translate: 0 0;    scale: 1; }
}

@keyframes ms-photo-drift {
  from { scale: 1.12; translate: 0 -4%; }
  to   { scale: 1.12; translate: 0 4%; }
}

@keyframes ms-card-rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Comparison tables: the column headings stay in view while the long table
   scrolls past, and the row under the pointer is gently marked. */
@media (min-width: 761px) {
  .ms-compare__table thead th {
    position: sticky;
    top: 12px;
    z-index: 2;
    background: var(--bg, #fff);
  }

  .ms-compare__table thead th.ms-compare__ours {
    background: var(--bg, #fff);
  }

  html[data-theme="dark"] .ms-compare__table thead th,
  html[data-theme="dark"] .ms-compare__table thead th.ms-compare__ours {
    background: var(--bg, #111);
  }

  .ms-compare__table tbody tr :is(th, td) {
    transition: background-color .2s ease;
  }

  .ms-compare__table tbody tr:hover :is(th, td:not(.ms-compare__ours)) {
    background-color: rgba(11, 11, 11, .025);
  }

  .ms-compare__table tbody tr:hover td.ms-compare__ours {
    background-color: rgba(115, 124, 71, .06);
  }

  html[data-theme="dark"] .ms-compare__table tbody tr:hover :is(th, td:not(.ms-compare__ours)) {
    background-color: rgba(255, 255, 255, .03);
  }
}

/* Typographic finish: no orphans in running text, and figures that line up. */
:is(.ms-section, .ms-cta, .ms-compare) p {
  text-wrap: pretty;
}

:is(.ms-compare, .ms-review, .ms-footnote) {
  font-variant-numeric: lining-nums tabular-nums;
}
