@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700&family=Bitter:wght@600;700&family=Public+Sans:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --brand-primary: #113a4a;
  --brand-secondary: #9fc5c9;
  --brand-accent: #e98a6d;
  --ink: #1a2023;
  --paper: #f8f5ef;
  --bg: #e6eaed;
  --font-heading: "Alegreya", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Page tuning controls (single source of truth). */
  --p2-col-width: min(92%, 24rem);
  --p2-col-shift-x: -30px;
  --p2-title-mt: 2rem;
  --p2-title-mb: 1rem;
  --p2-title-size: 1.92rem;
  --p2-list-size: 0.83rem;
  --p2-list-line: 1.34;
  --p2-photo-mt: 0;
  --p2-photo-h: 195px;
  --p2-team-h3-top: -40px;
  --p2-team-h3-size: 1.2rem;
  --p2-team-list-size: 0.83rem;
  --p2-team-list-line: 1.45;
  --p2-team-row-gap: 0.5rem;

  --p3-copy-y: 150px;
  --p3-h2-size: 2rem;
  --p3-h2-line: 0.95;
  --p3-p-size: 0.68rem;
  --p3-p-line: 1.45;
  --p3-ul-size: 0.63rem;
  --p3-ul-line: 1.42;
  --p3-li-gap: 0.24rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--brand-secondary) 20%, white) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand-primary) 16%, white) 0%, transparent 30%),
    linear-gradient(165deg, #f6f8fa 0%, var(--bg) 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1rem clamp(1rem, 2.8vw, 2.5rem);
}

.brand-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.logo-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.8;
}

h1 {
  margin: 0.1rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.7vw, 2.1rem);
  line-height: 1.12;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 220px;
}

.controls label {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

select {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, black);
  border-radius: 0.55rem;
  padding: 0.58rem 0.72rem;
  font: inherit;
  background: #fff;
}

main {
  padding: 0.3rem 1rem 1.5rem;
}

.stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1520px;
  margin: 160px auto 0;
  padding: 0 clamp(0.55rem, 1.75vw, 1.8rem);
  overflow-x: hidden;
}

.book-shell {
  padding: 0;
  position: relative;
  width: 1280px;
  height: 860px;
  margin: 0 auto;
  transform: none;
}

.book-shadow {
  position: absolute;
  inset: 1.2rem;
  border-radius: 0.8rem;
  background: transparent;
  filter: none;
  transform: none;
  z-index: 0;
}

.book {
  position: relative;
  z-index: 1;
  width: 1280px;
  height: 860px;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: none;
  will-change: transform;
}

.book::before {
  content: "";
  position: absolute;
  top: 1%;
  bottom: 1%;
  left: 50%;
  width: 14px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 30;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.11) 0%,
      rgba(0, 0, 0, 0.05) 28%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(0, 0, 0, 0.05) 72%,
      rgba(0, 0, 0, 0.11) 100%
    );
  border-radius: 999px;
  opacity: 0.42;
}

.book.edge-single::before {
  opacity: 0;
}

.book.edge-single {
  width: 1280px;
}

/* Center the final single back-cover page once the close animation is finished. */
.book.edge-single.edge-single-end:not(.is-flipping) .stf__wrapper {
  transform: translateX(320px);
}

#flipbookPages {
  width: 100%;
  height: 100%;
  background: transparent;
}

.book .stf__parent,
.book .stf__wrapper,
.book .stf__block {
  background: transparent !important;
}

.book .stf__item {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  border-top: 1px solid rgba(20, 30, 38, 0.12);
  border-bottom: 1px solid rgba(20, 30, 38, 0.12);
}

.page.left {
  border-right: none;
  box-shadow: none;
}

.page.right {
  border-left: none;
  box-shadow: none;
}

/* Use PageFlip's live side classes so inner shading stays at the gutter. */
.page.--left {
  border-right: 1px solid rgba(20, 30, 38, 0.12);
  box-shadow:
    inset -38px 0 36px -28px rgba(0, 0, 0, 0.46),
    inset -10px 0 12px -8px rgba(0, 0, 0, 0.3),
    inset -1px 0 0 rgba(255, 255, 255, 0.2);
}

.page.--right {
  border-left: 1px solid rgba(20, 30, 38, 0.12);
  box-shadow:
    inset 38px 0 36px -28px rgba(0, 0, 0, 0.46),
    inset 10px 0 12px -8px rgba(0, 0, 0, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.2);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.013),
    rgba(0, 0, 0, 0.013) 1px,
    transparent 1px,
    transparent 26px
  );
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.page.--left::after {
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.08) 18px, transparent 46px),
    linear-gradient(to left, rgba(255, 255, 255, 0.14) 0, transparent 10px);
}

.page.--right::after {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.08) 18px, transparent 46px),
    linear-gradient(to right, rgba(255, 255, 255, 0.14) 0, transparent 10px);
}

.page-inner {
  position: relative;
  height: 100%;
  padding: clamp(1rem, 2.1vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-layout-process .page-inner,
.page-layout-dos .page-inner,
.page-layout-cover .page-inner,
.page-layout-promise .page-inner,
.page-layout-intro .page-inner {
  padding: 0;
  gap: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.page-layout-promise,
.page-layout-intro {
  background: #fff;
}

.page-layout-offer,
.page-layout-testimonials {
  background: #fff;
}

.page-layout-offer .page-inner,
.page-layout-testimonials .page-inner {
  padding: 0;
  gap: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.page-inner-offer {
  grid-template-rows: auto 1fr auto;
}

.page-layout-offer .page-inner.page-inner-offer {
  grid-template-rows: auto 1fr auto !important;
}

.offer-top-photo {
  height: 200px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1.05rem 1.1rem 0.56rem;
  width: 100%;
  margin: 0;
  height: 100%;
  min-height: 0;
  align-content: stretch;
}

.offer-col {
  margin-left: 0.36rem;
}

.offer-col:last-child {
  padding: 0.28rem 0.38rem 0.2rem;
}

.page-layout-offer .offer-columns {
  background:
    linear-gradient(
      to right,
      transparent 0,
      transparent calc(50% - 0.62rem),
      #f9f6f0 calc(50% - 0.62rem),
      #f9f6f0 100%
    );
  width: 100% !important;
  margin: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
}

.offer-col h2 {
  margin: 0 0 0.58rem;
  line-height: 1.04;
  font-size: 2.2rem;
}

.page-layout-offer .offer-col h2 {
  font-size: 2.2rem !important;
  line-height: 1.04 !important;
}

.offer-col h3 {
  margin: 0.42rem 0 0.22rem;
  font-size: 0.84rem;
  line-height: 1.24;
}

.page-layout-offer .offer-col h3 {
  font-size: 0.84rem !important;
  line-height: 1.24 !important;
}

.offer-col ul {
  margin: 0;
  padding-left: 1.24rem;
  font-size: 0.68rem;
  line-height: 1.44;
}

.page-layout-offer .offer-col ul {
  font-size: 0.68rem !important;
  line-height: 1.44 !important;
}

.offer-col li {
  margin-bottom: 0.24rem;
}

.page-inner-testimonials {
  grid-template-rows: 120px 1fr auto;
}

.page-layout-testimonials .page-inner.page-inner-testimonials {
  grid-template-rows: 120px 1fr auto !important;
}

.testimonials-header {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0.9rem 0.95rem;
  color: #fff;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, #102a39 0%, #0d2332 100%);
}

.testimonials-header h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.06;
}

.page-layout-testimonials .testimonials-header h2 {
  font-size: 3rem !important;
  line-height: 1 !important;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.48rem;
  padding: 2rem 3.35rem 2.42rem;
  height: 100%;
  min-height: 0;
  align-content: stretch;
  background:
    radial-gradient(circle at 12px 12px, rgba(16, 42, 57, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #f9f6f0;
}

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 32, 42, 0.11);
  padding: 0.24rem 0.3rem;
}

.testimonial-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.16rem;
  width: 58%;
  min-width: 7.6rem;
  max-width: 9.2rem;
  padding: 0.12rem 0.34rem;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3c5b65;
  background: #c4dbe0;
}

.testimonial-card p {
  margin: 0;
  font-size: 0.33rem;
  line-height: 1.18;
  color: #2f3a40;
}

.page-layout-testimonials .testimonial-card p {
  margin: 0.8rem 0 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.18 !important;
}

.testimonial-card strong {
  display: block;
  margin-top: 0.08rem;
  padding-top: 0;
  font-size: 0.75rem;
}

.testimonial-card strong::before {
  content: "- ";
}

.page-layout-promise .page-inner.page-inner-promise {
  grid-template-rows: auto auto auto auto auto;
  position: relative;
}

.promise-top {
  padding: 0.34rem 0.74rem 0.06rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.page-layout-promise .promise-top h2 {
  margin: var(--p2-title-mt) 0 var(--p2-title-mb);
  width: var(--p2-col-width);
  position: relative;
  left: var(--p2-col-shift-x);
  padding-left: 0;
  font-size: var(--p2-title-size);
  line-height: 1.05;
  max-width: 92%;
  text-align: left;
}

.promise-list {
  width: var(--p2-col-width);
  margin: 0 auto;
  max-width: 92%;
  padding-left: 0;
  list-style: none;
  font-size: var(--p2-list-size);
  line-height: var(--p2-list-line);
  color: #2d353b;
  text-align: left;
}

.promise-list li {
  position: relative;
  margin-bottom: 0.14rem;
  padding-left: 0.86rem;
}

.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0.12rem;
  top: 0;
  color: #67b57a;
  font-weight: 700;
}

.promise-signatures {
  margin-top: 0;
  width: var(--p2-col-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  left: var(--p2-col-shift-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem;
  padding: 0;
}

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

.promise-sig strong {
  position: relative;
  display: block;
  font-size: 0.8rem;
  line-height: 1.12;
  padding-top: 0.34rem;
}

.promise-sig strong::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 1px;
  background: rgba(36, 57, 73, 0.42);
}

.promise-sig span {
  display: block;
  font-size: 0.62rem;
  line-height: 1.1;
  color: #56646d;
}

.promise-sig em {
  display: block;
  margin-top: 0.18rem;
  font-size: 1.18rem;
  line-height: 1;
  color: #243949;
  font-family: "Alegreya", serif;
}

.promise-photo {
  width: 100%;
  margin-top: var(--p2-photo-mt);
  height: var(--p2-photo-h);
  object-fit: cover;
  object-position: center 18%;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.promise-team {
  padding: 0.38rem 0.74rem 0.35rem;
  text-align: left;
  height: 130px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promise-team h3 {
  margin: 0.35rem auto 0.32rem;
  width: var(--p2-col-width);
  position: relative;
  left: var(--p2-col-shift-x);
  top: var(--p2-team-h3-top);
  font-size: var(--p2-team-h3-size);
  line-height: 1.06;
}

.promise-team ul {
  width: 100%;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.95rem;
  row-gap: var(--p2-team-row-gap);
  font-size: var(--p2-team-list-size);
  line-height: var(--p2-team-list-line);
}

.promise-team li {
  position: relative;
  padding-left: 1.05rem;
}

.promise-team li::before {
  content: "";
  position: absolute;
  left: 0.08rem;
  top: 0.48em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--brand-primary) 72%, white);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand-secondary) 78%, white) 0 38%, transparent 39%);
  transform: translateY(-50%);
}

/* Page-specific sizing mode for dense first-time-buyer promise page. */
.page-inner-promise.promise-size-focused .promise-top {
  padding: 0.34rem 0.74rem 0.06rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.page-layout-promise .page-inner-promise.promise-size-focused .promise-top h2 {
  margin: var(--p2-title-mt) 0 var(--p2-title-mb);
  width: var(--p2-col-width);
  position: relative;
  left: var(--p2-col-shift-x);
  padding-left: 0;
  font-size: var(--p2-title-size);
  line-height: 1.05;
  max-width: 92%;
  text-align: left;
}

.page-inner-promise.promise-size-focused .promise-list {
  width: var(--p2-col-width);
  margin: 0 auto;
  max-width: 92%;
  padding-left: 0;
  list-style: none;
  font-size: var(--p2-list-size);
  line-height: 1.22;
  text-align: left;
}

.page-inner-promise.promise-size-focused .promise-signatures {
  margin-top: 0;
  width: var(--p2-col-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  left: var(--p2-col-shift-x);
  gap: 0.72rem;
  padding: 0;
}

.page-inner-promise.promise-size-focused .promise-photo {
  margin-top: var(--p2-photo-mt);
  height: var(--p2-photo-h);
}

.page-inner-promise.promise-size-focused .promise-team {
  padding: 0.38rem 0.74rem 0.35rem;
  text-align: left;
  height: 130px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-inner-promise.promise-size-focused .promise-team h3 {
  margin: 0.35rem auto 0.32rem;
  width: var(--p2-col-width);
  position: relative;
  left: var(--p2-col-shift-x);
  top: var(--p2-team-h3-top);
  font-size: var(--p2-team-h3-size);
  line-height: 1.06;
}

.page-inner-promise.promise-size-focused .promise-team ul {
  width: 100%;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.95rem;
  row-gap: var(--p2-team-row-gap);
  font-size: var(--p2-team-list-size);
  line-height: var(--p2-team-list-line);
}

.page-inner-intro {
  grid-template-columns: 50% 50%;
  grid-template-rows: 1fr auto;
}

.intro-media {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  background-position: center;
  background-size: cover;
}

.intro-copy {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  padding: 1.12rem 1.02rem 0.86rem;
}

.intro-copy h2 {
  margin: 0 0 0.54rem;
  font-size: 1.34rem;
  line-height: 1.06;
}

.intro-copy p {
  margin: 0 0 0.58rem;
  font-size: 0.62rem;
  line-height: 1.42;
  color: #2f3a40;
}

.intro-copy ul {
  margin: 0 0 0.56rem;
  padding-left: 0.85rem;
  font-size: 0.58rem;
  line-height: 1.38;
}

.intro-copy li {
  margin-bottom: 0.18rem;
}

.intro-copy h3 {
  margin: 0.82rem 0 0.32rem;
  font-size: 0.76rem;
}

/* Force page 3 intro typography/spacing so it can't be muted by other rules. */
.page-layout-intro .page-inner-intro {
  grid-template-columns: 48% 52% !important;
}

.page-layout-intro .intro-copy {
  padding: 1.25rem 3rem 0.95rem !important;
  transform: translateY(var(--p3-copy-y)) !important;
}

.page-layout-intro .intro-copy h2,
.page-layout-intro .intro-copy p,
.page-layout-intro .intro-copy h3,
.page-layout-intro .intro-copy ul {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.page-layout-intro .intro-copy h2 {
  margin: 0 0 0.65rem !important;
  font-size: var(--p3-h2-size) !important;
  line-height: var(--p3-h2-line) !important;
}

.page-layout-intro .intro-copy p {
  margin: 0 0 0.72rem !important;
  font-size: var(--p3-p-size) !important;
  line-height: var(--p3-p-line) !important;
}

.page-layout-intro .intro-copy ul {
  margin: 0 0 0.72rem !important;
  padding-left: 1.2rem !important;
  font-size: var(--p3-ul-size) !important;
  line-height: var(--p3-ul-line) !important;
}

.page-layout-intro .intro-copy li {
  margin-bottom: var(--p3-li-gap) !important;
}

.page-layout-intro .intro-copy h3 {
  margin: 2.5rem 0 0.42rem !important;
  font-size: 1rem !important;
}

.page-layout-promise .footer-mark,
.page-layout-intro .footer-mark,
.page-layout-offer .footer-mark,
.page-layout-testimonials .footer-mark,
.page-layout-process .footer-mark,
.page-layout-dos .footer-mark {
  margin-top: 0;
  padding: 0.5rem 0.78rem;
  min-height: 2.15rem;
  align-items: center;
  border-top: none;
  background: #a8c8ce;
  color: #fff;
  font-size: 0.62rem;
}

.page-layout-intro .footer-mark {
  grid-column: 1 / -1;
}

/* Keep page 2 footer consistent without changing content flow. */
.page-layout-promise .footer-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-layout-cover {
  background: #0f2634;
}

.page-layout-back-cover {
  background: #0f2634;
}

.page-layout-cover::before,
.page-layout-cover::after {
  display: none;
}

.page-layout-back-cover::before,
.page-layout-back-cover::after {
  display: none;
}

.page-inner-cover {
  background: #102938;
}

.page-inner-back-cover {
  position: relative;
  background:
    radial-gradient(85% 45% at 52% 88%, rgba(8, 24, 33, 0.48) 0%, rgba(8, 24, 33, 0) 64%),
    linear-gradient(150deg, #102a39 0%, #0c2231 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.back-cover-surface {
  position: relative;
  padding: 0.9rem 0.85rem 0.72rem;
  text-align: center;
}

.back-cover-lockup {
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.38rem;
}

.back-cover-lockup strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.back-cover-lockup span {
  display: block;
  font-size: 0.48rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.back-cover-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.46rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.cover-photo {
  position: relative;
  height: 100%;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
}

.cover-marks {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  display: flex;
  gap: 0.35rem;
}

.cover-marks span {
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.16rem 0.32rem;
  border-radius: 3px;
  background: rgba(15, 40, 56, 0.45);
}

.cover-panel {
  height: 100%;
  padding: 1rem 0.95rem 0.75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  background:
    radial-gradient(120% 140% at 40% 110%, rgba(255, 255, 255, 0.08) 0%, transparent 48%),
    linear-gradient(160deg, #102a39 0%, #0c2231 100%);
}

.cover-brand {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.96;
}

.cover-panel h2 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  max-width: 100%;
  letter-spacing: -0.01em;
}

.cover-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.process-shell {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 42% 58%;
}

.process-media {
  display: grid;
  grid-template-rows: 31% 1fr;
  min-height: 0;
}

.process-media-top {
  padding: 1.2rem 0.9rem;
  color: #fff;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, #102a39 0%, #0d2332 100%);
}

.process-media-top h2 {
  margin: 0;
  line-height: 1.05;
  font-size: 1.25rem;
}

.process-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-content {
  padding: 0.75rem 0.8rem;
  background:
    radial-gradient(circle at 12px 12px, rgba(16, 42, 57, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #f9f6f0;
}

.timeline-card {
  width: 90%;
  height: 92%;
  max-height: 92%;
  margin: 2rem auto 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0.24rem;
  background: #fff;
  border: 1px solid rgba(13, 35, 50, 0.08);
  box-shadow: 0 2px 8px rgba(10, 20, 30, 0.06);
  padding: 0.55rem 0.75rem 0.6rem;
  overflow: auto;
}

.timeline-step {
  margin-bottom: 0;
  padding: 0.08rem 0.12rem;
  min-height: 0;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-tag {
  display: inline-block;
  padding: 0.16rem 0.42rem;
  background: #aec9cf;
  color: #34535d;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.timeline-step h3 {
  margin: 0.46rem 0 0.34rem;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: left;
}

.timeline-step ul {
  width: 100%;
  margin: 0;
  padding-left: 0.95rem;
  font-size: 0.74rem;
  line-height: 1.34;
  color: #2f3a40;
}

.timeline-card-center-bullets .timeline-step ul {
  width: 86%;
  max-width: 86%;
  margin: 0 auto;
  padding-left: 1rem;
  text-align: left;
}

.timeline-card-center-bullets .timeline-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline-step li {
  margin-bottom: 0.18rem;
}

.dos-header {
  padding: 0.38rem 0.72rem 0.32rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.48rem;
  align-items: start;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, #102a39 0%, #0d2332 100%);
}

.dos-header h2 {
  margin: 0;
  line-height: 1.04;
  font-size: clamp(0.82rem, 1.1vw, 1.12rem);
}

.dos-header p {
  margin: 0;
  font-size: 0.46rem;
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.86);
}

.page-layout-dos .page-inner.page-inner-dos {
  grid-template-rows: auto 1fr auto;
}

.dos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.72rem 0.9rem 0.42rem;
  min-height: 0;
  align-content: start;
}

.dos-column h3 {
  margin: 0 0 0.52rem;
  font-size: 1rem;
  line-height: 1.18;
}

.dos-column.dont h3 span {
  color: #cf3c3c;
}

.dos-column.do h3 span {
  color: #2d8a58;
}

.dos-column ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #2f3a40;
}

.dos-column li {
  position: relative;
  margin-bottom: 0.36rem;
  padding-left: 1.08rem;
}

.dos-column.dont li::before {
  content: "x";
  position: absolute;
  left: 0.16rem;
  top: 0.02rem;
  color: #cf3c3c;
  font-weight: 700;
}

.dos-column.do li::before {
  content: "✓";
  position: absolute;
  left: 0.16rem;
  top: 0.02rem;
  color: #2d8a58;
  font-weight: 700;
}

/* Force inset for dos lists so content is clearly tucked inside. */
.page-layout-dos .dos-column ul {
  margin-left: 24px !important;
  margin-right: 24px !important;
}

/* Force heading inset for both DO and DO NOT columns. */
.page-layout-dos .dos-column h3 {
  margin-left: 24px !important;
}

/* Add top spacing to both DO and DO NOT sections. */
.page-layout-dos .dos-column {
  margin-top: 1.5rem !important;
}

.page-layout-cover .footer-mark {
  display: none;
}

.ribbon {
  align-self: start;
  background: var(--brand-secondary);
  color: color-mix(in srgb, var(--brand-primary) 68%, black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 0.32rem;
}

.page h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
}

.page p {
  margin: auto 0;
  line-height: 1.45;
  font-size: clamp(0.9rem, 1.02vw, 1.05rem);
}

.hero-img {
  width: 100%;
  margin-top: auto;
  border-radius: 0.45rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bullets {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.4;
  font-size: clamp(0.88rem, 1vw, 1rem);
}

.footer-mark {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--ink) 70%, white);
  font-size: 0.75rem;
  border-top: 1px solid rgba(15, 20, 28, 0.1);
}

.nav-btn {
  border: none;
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 84%, white);
  color: var(--brand-primary);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(calc(-50% - 2px));
}

.nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.meta {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

#prevBtn {
  left: 0.5rem;
}

#nextBtn {
  right: 0.5rem;
}

@media (max-width: 1200px) {
  .nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.12rem;
  }
}

@media (max-width: 1020px) {
  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .controls {
    min-width: 0;
  }

  .stage {
    padding: 0 2.1rem;
  }

  .book {
    min-height: 0;
  }

  .book.edge-single {
    width: 1280px;
  }

  .nav-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  #prevBtn {
    left: 0.2rem;
  }

  #nextBtn {
    right: 0.2rem;
  }

}
