@charset "UTF-8";
/* ==========================================================================
   NSW Book Publishers — homepage
   One block per fold, in the order they appear on the page.
   ========================================================================== */

/* --- Fold 1 · Hero -------------------------------------------------------- */
/* Reproduces ukpublishinghouse.co.uk's hero measurement for measurement:
   80/90px band padding, 1320px shell, 580px min-height grid, Fraunces 500
   clamp(40px,3.2vw,72px) title, Inter 500 14.5px/1.7 lede, three-book fan. */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

/* Hero photograph plus the white veil that keeps the copy readable.
   The photo is the top background layer; the radial wash sits underneath so a
   missing file degrades to the previous look rather than a flat panel. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("../img/hero/hime_bg.webp"),
    radial-gradient(46% 52% at 82% 62%, rgba(201, 162, 39, .55) 0%, rgba(201, 162, 39, 0) 68%),
    radial-gradient(34% 40% at 44% 88%, rgba(163, 40, 51, .28) 0%, rgba(163, 40, 51, 0) 70%),
    radial-gradient(30% 36% at 96% 96%, rgba(22, 38, 92, .38) 0%, rgba(22, 38, 92, 0) 72%);
  background-size: cover, auto, auto, auto;
  background-position: center 58%, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  background-color: rgba(251, 247, 240, .35);
}
/* Two stacked white gradients: heavy on the left where the copy sits, lighter
   on the right so the photograph still reads. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(255, 255, 255, .96) 0%,
      rgba(255, 255, 255, .92) 42%,
      rgba(255, 255, 255, .62) 72%,
      rgba(255, 255, 255, .40) 100%),
    linear-gradient(to bottom,
      rgba(255, 255, 255, .50) 0%,
      rgba(255, 255, 255, .26) 45%,
      rgba(255, 255, 255, .50) 100%);
}
/* Narrow screens put the copy over the middle of the frame, so lift the veil
   to a near-flat wash there. */
@media (max-width: 900px) {
  .hero-bg::after {
    background:
      linear-gradient(to bottom,
        rgba(255, 255, 255, .93) 0%,
        rgba(255, 255, 255, .88) 55%,
        rgba(255, 255, 255, .93) 100%);
  }
}
.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px) { .hero-shell { padding: 0 20px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  min-height: 580px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 600px; }

/* .eyebrow-pill moved to components.css — used well beyond the homepage. */

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--navy-700);
  margin: 0 0 18px;
}
.hero-title em { font-style: italic; color: var(--red-500); }

.hero-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--red-500);
  margin: 0 0 20px;
}

.hero-lede {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 580px;
  margin: 0 0 14px;
}
.hero-lede:last-of-type { margin-bottom: 28px; }

.trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 30px;
}
.tb { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.tb-img {
  height: 42px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}
.tb-img img { height: 100%; width: auto; display: block; object-fit: contain; }
.tb-img:hover { opacity: .82; transform: translateY(-1px); }
.tb-img .art-placeholder { height: 42px; width: 118px; aspect-ratio: auto; font-size: 9px; padding: 2px; }

.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* Allow the consultation label from the content brief to wrap on phones. */
@media (max-width: 640px) {
  .hero .hero-ctas .btn { max-width: 100%; white-space: normal; line-height: 1.4; }
}

/* The hero uses its own button, not the site-wide .btn primitive, so the
   reference's 14/28 padding and 20px arrow disc survive verbatim. */
.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--navy-700);
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1;
  border-radius: 999px;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.hero .btn-crimson { background: var(--red-500); border-color: var(--red-500); }
.hero .btn-crimson:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-1px); box-shadow: var(--sh-md); }
.hero .btn-outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.hero .btn-outline:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.hero .arr {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  font-size: var(--fs-small);
  line-height: 1;
  transition: transform .25s;
}
.hero .btn:hover .arr { transform: translateX(3px); }

/* --- The three-book fan --------------------------------------------------- */
.hero-books {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Podium composition, per the client theme: the lead cover stands centred on a
   gold-ringed disc with the other two set back and angled behind it. Drawn in
   CSS so it themes with the tokens and needs no new artwork. */
.hero-books::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 30vw, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -46%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 162, 39, .20) 0%, rgba(201, 162, 39, 0) 68%),
    radial-gradient(circle at 50% 50%, var(--cream) 0%, rgba(251, 247, 240, 0) 72%);
  border: 1px solid rgba(201, 162, 39, .35);
  z-index: 0;
}
/* The plinth the centre cover sits on. */
.hero-books::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: clamp(230px, 23vw, 330px);
  height: clamp(26px, 2.4vw, 38px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-100), rgba(201, 162, 39, .12));
  box-shadow: 0 14px 34px -12px rgba(14, 26, 69, .35);
  z-index: 1;
}

.hero-book {
  position: absolute;
  display: block;
  aspect-ratio: 2 / 3;
  filter: drop-shadow(0 30px 50px rgba(14, 26, 69, .28));
  transition: transform .35s var(--ease);
}
.hero-book img,
.hero-book .art-placeholder { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Flanking covers sit lower, smaller and rotated away; the centre stands
   upright and forward on the plinth. */
.hb-left   { width: clamp(150px, 15vw, 215px); top: 50%; left: 8%;  transform: translateY(-38%) rotate(-14deg); z-index: 2; opacity: .92; }
.hb-center { width: clamp(215px, 21.5vw, 300px); top: 50%; left: 50%; transform: translate(-50%, -54%); z-index: 4; }
.hb-right  { width: clamp(150px, 15vw, 215px); top: 50%; right: 8%; transform: translateY(-38%) rotate(14deg); z-index: 2; opacity: .92; }

.hb-left:hover   { transform: translateY(-42%) rotate(-14deg) scale(1.04); opacity: 1; }
.hb-center:hover { transform: translate(-50%, -58%) scale(1.04); }
.hb-right:hover  { transform: translateY(-42%) rotate(14deg) scale(1.04); opacity: 1; }

/* --- Entrance sequence ---------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroBookReveal {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow-pill,
.hero .hero-title,
.hero .hero-sub,
.hero .hero-lede,
.hero .trust-badges,
.hero .hero-ctas {
  opacity: 0;
  animation: heroFadeUp .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .eyebrow-pill        { animation-delay: .25s; }
.hero .hero-title          { animation-delay: .35s; }
.hero .hero-sub            { animation-delay: .5s; }
.hero .hero-lede:nth-of-type(1) { animation-delay: .6s; }
.hero .hero-lede:nth-of-type(2) { animation-delay: .7s; }
.hero .trust-badges        { animation-delay: .85s; }
.hero .hero-ctas           { animation-delay: 1s; }

.hero-book img,
.hero-book .art-placeholder { animation: heroBookReveal 1s cubic-bezier(.2, .7, .2, 1) both; }
.hb-left   img, .hb-left   .art-placeholder { animation-delay: .9s; }
.hb-center img, .hb-center .art-placeholder { animation-delay: 1.15s; }
.hb-right  img, .hb-right  .art-placeholder { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow-pill, .hero .hero-title, .hero .hero-sub, .hero .hero-lede,
  .hero .trust-badges, .hero .hero-ctas,
  .hero-book img, .hero-book .art-placeholder { opacity: 1; animation: none; }
}

/* --- Hero breakpoints ----------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: none; order: 1; }
  .hero-books { min-height: 480px; order: 2; }
  /* Keep the podium proportions: centre clearly dominant, flanks set back. */
  .hb-left   { width: 26%; left: 5%; }
  .hb-center { width: 40%; }
  .hb-right  { width: 26%; right: 5%; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 56px; }
  .hero-books { display: none; }
  .trust-badges { gap: 14px; }
}

/* --- Fold 2 · Logo carousel ----------------------------------------------- */
/* Styles live in components.css — the strip is reused verbatim at fold 11b
   and on every service page. */

/* Fold 4a services grid and fold 4b CTA band moved to components.css —
   both are reused by services.php, and .pill-btn by the portfolio carousel. */

/* --- Fold 5 · Genres ------------------------------------------------------ */
.topgenres { background: var(--white); padding: 110px 0; }

/* .wrap (the shared 1320/40 page wrapper) lives in layout.css — the footer
   uses it on every page, and home.css only loads on the homepage. */

.topgenres .head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.topgenres .head .eyebrow-pill { margin-bottom: 16px; }
.topgenres .head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--navy-700);
  margin: 0 0 14px;
}
.topgenres .head h2 em { font-style: italic; color: var(--red-500); }
.topgenres .head p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.genre-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.genre-col {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.genre-col:hover {
  transform: translateY(-3px);
  border-color: var(--navy-700);
  box-shadow: 0 18px 32px -18px rgba(27, 46, 99, .22);
}
.genre-col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--navy-700);
  margin: 0 0 22px;
}
.genre-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.genre-list li { display: flex; align-items: flex-start; gap: 12px; }
/* Height comes from font-size x line-height on the reference, where the check
   is a font glyph. As an inline-flex box wrapping an SVG it would collapse to
   the 18px icon, so the 1.35em box is set explicitly — it is what makes each
   row 24.3px rather than the text's 22.5px. */
.genre-check {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--red-500);
  font-size: var(--fs-h5);
  line-height: 1.35;
  height: 1.35em;
}
.genre-check svg { width: 18px; height: 18px; }
.genre-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--navy-700);
}

.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  /* .005em, not the .01em the shared .btn primitive uses. */
  letter-spacing: .005em;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .25s;
}
.btn-red { background: var(--red-500); border-color: var(--red-500); color: #fff; }
.btn-red:hover { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-1px); box-shadow: var(--sh-md); }
.cta-row .btn i { display: inline-flex; align-items: center; }
.cta-row .btn i svg { width: 15px; height: 15px; }
.cta-row .btn .arr {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: var(--fs-small);
  line-height: 1;
  transition: transform .25s;
}
.cta-row .btn:hover .arr { transform: translateX(3px); }

@media (max-width: 1100px) {
  .genre-cols { gap: 18px; }
  .genre-col { padding: 26px 22px; }
}
@media (max-width: 900px)  { .genre-cols { grid-template-columns: 1fr; } }
@media (max-width: 768px)  {
  .topgenres { padding: 80px 0; }
  .genre-col { padding: 24px 20px; }
  .genre-col-title { margin-bottom: 18px; }
}

/* Fold 7 portfolio styles moved to components.css — shared with About. */

/* --- Fold 8a · Benefits coverflow ----------------------------------------- */
/* Built entirely in markup and CSS — the brief marks this fold "design this,
   not use image", and no reference URL was supplied, so proportions here are
   taken from the supplied design rather than measured off a live page. */
.benefits {
  padding: 90px 0 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F0 100%);
}

.benefits__head { text-align: center; max-width: 940px; margin: 0 auto 44px; }
.benefits__eyebrow {
  position: relative;
  display: inline-block;
  padding-inline: 52px;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-500);
}
.benefits__eyebrow::before, .benefits__eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36px; height: 1.5px;
  background: var(--red-500);
}
.benefits__eyebrow::before { left: 0; }
.benefits__eyebrow::after  { right: 0; }

.benefits__title {
  /* Sized to hold on one line at desktop, as the design shows it. */
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-700);
  margin: 18px 0 0;
}
.benefits__lede {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 16px auto 0;
}

.benefits__carousel { padding-block: 8px 4px; }
/* Fixed-width slides rather than a fraction of the viewport, so the centred
   card keeps its proportions at every breakpoint. */
/* stretch, not center: every card in the deck is the same height and the
   difference between them comes from scale alone, as in the design. */
.benefits__track { --slide-gap: 18px; align-items: stretch; padding-block: 40px; }
.benefits__item { flex: 0 0 clamp(210px, 20vw, 272px); }

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 440px;
  padding: 38px 26px 34px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 26px -18px rgba(14, 26, 69, .35);
  transform: scale(.84);
  opacity: .42;
  transition: transform .5s var(--ease), opacity .5s var(--ease), box-shadow .5s var(--ease);
}
.benefits__item.is-near   .benefit-card { transform: scale(.93); opacity: .9; }
.benefits__item.is-active .benefit-card {
  transform: scale(1.08);
  opacity: 1;
  box-shadow: 0 26px 54px -26px rgba(14, 26, 69, .42);
  z-index: 2;
}
/* Red bar tucked under the centre card. */
.benefits__item.is-active .benefit-card::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 46%; height: 3px;
  background: var(--red-500);
  border-radius: 3px 3px 0 0;
}

/* Thin red ring with a filled bead sitting on its edge. */
.benefit-card__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(163, 40, 51, .32);
  color: var(--red-500);
}
.benefit-card__ring svg { width: 32px; height: 32px; }
.benefit-card__ring::after {
  content: "";
  position: absolute;
  right: 4px; bottom: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-500);
}
.benefits__item.is-active .benefit-card__ring {
  width: 84px; height: 84px;
  border-color: rgba(163, 40, 51, .5);
}
.benefits__item.is-active .benefit-card__ring svg { width: 38px; height: 38px; }
.benefits__item.is-active .benefit-card__ring::before {
  content: "";
  position: absolute;
  right: 8px; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-500);
}

/* The number picks up flanking dashes only on the centre card. */
.benefit-card__num {
  position: relative;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red-500);
}
.benefits__item.is-active .benefit-card__num { padding-inline: 26px; }
.benefits__item.is-active .benefit-card__num::before,
.benefits__item.is-active .benefit-card__num::after {
  content: "";
  position: absolute;
  top: 52%;
  width: 16px; height: 1.5px;
  background: var(--red-500);
}
.benefits__item.is-active .benefit-card__num::before { left: 0; }
.benefits__item.is-active .benefit-card__num::after  { right: 0; }

.benefit-card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--navy-700);
}
.benefits__item.is-active .benefit-card__title { font-size: var(--fs-h4); }
.benefit-card__body {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.62;
  color: var(--muted);
}

/* Navy nav discs, pinned to the deck's outer edges. */
.benefits__carousel .carousel__nav {
  width: 38px; height: 38px;
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(14, 26, 69, .5);
}
.benefits__carousel .carousel__nav:hover { background: var(--red-500); }
.benefits__carousel .carousel__nav svg { width: 16px; height: 16px; }
.benefits__carousel .carousel__nav--prev { left: 0; }
.benefits__carousel .carousel__nav--next { right: 0; }
.benefits__carousel .carousel__nav[disabled] { opacity: .3; }

.benefits__carousel .dots { margin-top: 4px; }
.benefits__carousel .counter { margin-top: 18px; }

/* --- Trust bar ------------------------------------------------------------ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 40px;
  padding: 20px 12px;
  background: var(--navy-800);
  border-radius: 12px;
  box-shadow: 0 22px 44px -28px rgba(14, 26, 69, .55);
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 22px;
}
.trust-bar__item + .trust-bar__item { border-left: 1px solid rgba(255, 255, 255, .13); }
.trust-bar__icon { flex: 0 0 auto; color: var(--red-500); display: grid; place-items: center; }
.trust-bar__icon svg { width: 26px; height: 26px; }
.trust-bar__label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

@media (max-width: 900px) {
  .benefits { padding: 64px 0 56px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px; }
  .trust-bar__item { border-left: 0 !important; padding-inline: 0; }
}
@media (max-width: 480px) { .trust-bar { grid-template-columns: 1fr; } }

/* --- Fold 8b / section 9 · Referral band ---------------------------------- */
.referral { position: relative; isolation: isolate; }
.referral__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 70% at 50% 38%, rgba(22, 38, 92, .5), transparent 72%),
    linear-gradient(180deg, #1B2E63 0%, #0E1A45 100%);
}
/* Faint cover-wall texture behind the gradient. Swap for a real collage by
   pointing this at an image; the gradient above keeps the text legible. */
.referral__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.05) 0 1px, transparent 1px 112px);
}

.referral__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(46px, 3vw + 26px, 68px) 24px clamp(44px, 3vw + 24px, 64px);
  text-align: center;
}

/* --- Emblem --------------------------------------------------------------- */
.referral__emblem { display: inline-flex; align-items: center; gap: 18px; }
.referral__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
}
.referral__book { width: 32px; height: 32px; color: #fff; }
.referral__quill {
  position: absolute;
  right: 12px; top: 11px;
  width: 17px; height: 17px;
  color: var(--red-500);
  transform: rotate(8deg);
}
/* Red rule with a head pointing in toward the badge. */
.referral__arrow { position: relative; display: block; width: 42px; height: 1.5px; background: var(--red-500); }
.referral__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border-block: 4px solid transparent;
}
.referral__arrow--left::after  { right: 0; transform: translateY(-50%); border-left: 6px solid var(--red-500); }
.referral__arrow--right::after { left: 0;  transform: translateY(-50%); border-right: 6px solid var(--red-500); }

/* --- Heading -------------------------------------------------------------- */
.referral__title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: #fff;
}
.referral__title em { font-style: normal; color: var(--red-500); }

.referral__divider {
  position: relative;
  display: block;
  width: 6px; height: 6px;
  margin: 24px auto 26px;
  border-radius: 50%;
  background: var(--red-500);
}
.referral__divider::before, .referral__divider::after {
  content: "";
  position: absolute; top: 50%;
  width: 52px; height: 1px;
  background: rgba(255, 255, 255, .28);
}
.referral__divider::before { right: 12px; }
.referral__divider::after  { left: 12px; }

/* --- Pills ---------------------------------------------------------------- */
.referral__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.ref-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
.ref-btn--fill { background: var(--red-500); }
.ref-btn--fill:hover { background: var(--red-600); }
.ref-btn--outline { background: transparent; border-color: rgba(255, 255, 255, .38); }
.ref-btn--outline:hover { background: rgba(255, 255, 255, .07); }
.ref-btn__lead { display: grid; place-items: center; }
.ref-btn__lead svg { width: 18px; height: 18px; }
.ref-btn__disc {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-500);
  font-style: normal;
  font-weight: 700;
  font-size: var(--fs-body);
  transition: transform .25s var(--ease);
}
.ref-btn__disc svg { width: 15px; height: 15px; }
.ref-btn__disc--red { background: var(--red-500); color: #fff; }
.ref-btn:hover .ref-btn__disc { transform: translateX(3px); }

/* --- Trusted-by strip ----------------------------------------------------- */
.referral__platforms { background: #FBF7F0; }
.platform-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 26px 24px;
}
.platform-row__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-inline: 24px;
  min-height: 66px;
}
.platform-row__item + .platform-row__item { border-left: 1px solid rgba(27, 46, 99, .12); }
.platform-row__item--label { justify-content: flex-start; }

.platform-row__shield {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  background: #F3E7D2;
  color: var(--navy-700);
}
.platform-row__shield svg { width: 22px; height: 22px; }
.platform-row__text {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--navy-700);
}
.platform-row__text strong { display: block; font-size: var(--fs-lede); font-weight: 700; }

.platform-row__stack { display: grid; justify-items: center; gap: 6px; }
/* The source badges are 250x80 with generous internal padding, so they need a
   taller cap than their visible mark suggests. */
.platform-row__logo { max-height: 46px; width: auto; }
.platform-row .art-placeholder { width: 110px; height: 30px; aspect-ratio: auto; font-size: 9px; padding: 2px; }

.platform-row__bubble {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  color: #2F6FED;
}
.platform-row__bubble svg { width: 30px; height: 30px; }
.platform-row__other {
  font-family: var(--font-sans);
  font-size: var(--fs-lede);
  font-weight: 700;
  color: var(--navy-700);
}

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 14px; height: 14px; }
.stars--green { color: #00B67A; }
.stars--blue  { color: #4A90E2; }
/* Half star: clip the second half of the glyph. */
.stars__half { display: inline-flex; position: relative; }
.stars__half svg { color: #C7D6EC; }
.stars__half::before {
  content: "";
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9L12 2.5z'/%3E%3C/svg%3E") 0 0 / 14px 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9L12 2.5z'/%3E%3C/svg%3E") 0 0 / 14px 14px no-repeat;
}

@media (max-width: 900px) {
  .platform-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .platform-row__item { border-left: 0 !important; justify-content: flex-start; padding-inline: 0; }
}
@media (max-width: 520px) {
  .platform-row { grid-template-columns: 1fr; }
  .referral__actions { flex-direction: column; align-items: stretch; }
  .ref-btn { justify-content: space-between; }
}

/* --- Fold 9 / section 10 · Why authors keep coming back ------------------- */
.split { position: relative; background: var(--white); padding: 110px 0; }
.split.alt-bg {
  background: #FBF7F0;
  border-top: 1px solid #F0E7D8;
  border-bottom: 1px solid #F0E7D8;
}

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-body  { order: 1; }

.split-media { position: relative; border-radius: 14px; overflow: visible; }
.split-media img,
.split-media .art-placeholder {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* Red outline square tucked behind the media's outer top corner. */
.split-media::after {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 110px; height: 110px;
  border: 2px solid var(--red-500);
  border-radius: 14px;
  opacity: .55;
  z-index: -1;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.split.reverse .split-media::after { left: auto; right: -18px; }
.split:hover .split-media img { transform: scale(1.015); }
.split:hover .split-media::after { transform: translate(-4px, -4px); }
.split.reverse:hover .split-media::after { transform: translate(4px, -4px); }

.split-body .eyebrow-pill { margin-bottom: 20px; }
.split-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--navy-700);
  margin: 0 0 24px;
}
.split-body h2 em { font-style: italic; color: var(--red-500); }
.split-body p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-body);
  margin: 0 0 20px;
}
.split-body .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .25s;
}
.split-body .btn .arr {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: var(--fs-small);
  line-height: 1;
  transition: transform .25s;
}
.split-body .btn:hover .arr { transform: translateX(3px); }

@media (max-width: 1100px) {
  .split { padding: 90px 0; }
  .split-grid { gap: 56px; }
}
@media (max-width: 860px) {
  .split { padding: 72px 0; }
  .split-grid, .split.reverse .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split .split-media, .split.reverse .split-media { order: 1; }
  .split .split-body,  .split.reverse .split-body  { order: 2; }
  .split-media::after { display: none; }
}

/* Fold 10 testimonials styles moved to components.css — shared with About. */
/* Fold 11 FAQ + lead-form styles moved to components.css — the block is
   shared with About, and lead-form is reused by the service pages. */
