:root {
  --ui-scale: 1;
  --ink: #141b25;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f9fafb;
  --orange: #f16522;
  --orange-dark: #d95100;
  --orange-light: #fff4eb;
  --paper: #ffffff;
  --navy: #141b25;
  --navy-box: #141b25;
  --ring-blue: #00aeef;
  --ring-green: #00a651;
  --ring-yellow: #fff200;
  --ring-blue-soft: #d1eef9;
  --ring-green-soft: #d9f0e1;
  --ring-yellow-soft: #fef9e1;
  --font-slab: "Roboto Slab", Rockwell, Georgia, serif;
  --font-sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  zoom: var(--ui-scale);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #b8c2d0;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.book {
  width: 100%;
  padding: 24px 0 48px;
}

.page {
  width: 8.5in;
  min-height: 11in;
  margin: 20px auto;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.14);
  break-after: page;
  page-break-after: always;
}

/* ─── Layering: bg (photo + rings) → foreground text ─── */
.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-layer {
  position: relative;
  z-index: 1;
  min-height: 11in;
}

.page > .page-no {
  position: absolute;
  z-index: 2;
  right: 0.65in;
  bottom: 0.38in;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

/* ─── Decorative rings ─── */
.deco {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  background: transparent;
}

/* Cover — match reference photo (vivid rings, photo positions) */
.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/img/Artboard 1.png") center / cover no-repeat;
}

.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 4, 5, 0.55);
}

.page--cover .page-bg .deco {
  z-index: 2;
}

.page--cover .deco--blue {
    width: 4in;
    height: 4in;
    border-width: 46px;
    border-color: var(--ring-blue);
    top: -2in;
    left: 1in;
}

.page--cover .deco--green {
    width: 5in;
    height: 5in;
    border-width: 52px;
    border-color: var(--ring-green);
    bottom: 1in;
    left: -2.5in;
}

.page--cover .deco--yellow {
    width: 2in;
    height: 2in;
    border-width: 20px;
    border-color: var(--ring-yellow) #fff200;
    top: 6in;
    left: 2.8in;
}

.page-layer--cover {
  min-height: 11in;
}

.cover-logo {
  position: absolute;
  top: 0.45in;
  right: 0.5in;
  z-index: 2;
}

.cover-logo img {
  height: 74px;
  width: auto;
}

.cover-logo-text {
  display: none;
}

.cover-title {
  position: absolute;
  z-index: 2;
  top: 3.35in;
  left: 0.55in;
  margin: 0;
  max-width: 5.8in;
  font-family: var(--font-slab);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.cover-tagline {
      position: absolute;
    z-index: 2;
    right: 0;
    bottom: 1in;
    padding: 20px;
    background: var(--orange);
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
}

.cover-tagline p {
      font-family: var(--font-sans);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 2;
    text-transform: uppercase;
    color: #fff;
}

.page--cover .page-no {
  color: rgba(255, 255, 255, 0.45);
}

.page--cover-fire .cover-shade {
  background: rgba(16, 24, 40, 0.62);
}

/* ─── Table of contents — match reference photo ─── */
.page--toc {
  background: #fff;
}

.page-layer--toc {
  padding: 0.5in 0.6in 0.5in;
}

.page--toc .page-bg .deco {
  z-index: 0;
}

.page--toc .deco--blue {
  width: 4.6in;
  height: 4.6in;
  border-width: 14px;
  border-color: var(--ring-blue-soft);
  top: -2.05in;
  right: -1.85in;
  left: auto;
}

.page--toc .deco--green {
  width: 4.2in;
  height: 4.2in;
  border-width: 14px;
  border-color: var(--ring-green-soft);
  bottom: -1.75in;
  left: -1.65in;
}

.page--toc .deco--yellow {
  width: 1.55in;
  height: 1.55in;
  border-width: 12px;
  border-color: var(--ring-yellow-soft);
  top: auto;
  left: 2.65in;
  bottom: 1.65in;
}

.toc-heading {
  display: inline-block;
  margin: 0;
  padding: 14px 24px 14px 18px;
  background: var(--orange);
  border-bottom-right-radius: 22px;
  color: #fff;
  font-family: var(--font-slab);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.toc-list {
  margin: 0.34in 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toc-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.toc-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--navy-box);
  color: #fff;
  font-family: var(--font-slab);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 4.35in;
}

.toc-dots {
  border-bottom: 3px dotted #b8c0cc;
  min-width: 20px;
  height: 0;
  align-self: center;
}

.toc-page {
  font-family: var(--font-slab);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  min-width: 0.4in;
  text-align: right;
}

/* ─── Inner pages ─── */
.page--content {
  background: #fff;
}

/* Orange top accent strip on every inner content page */
.page--content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--orange);
  z-index: 3;
}

.page--content .page-bg .deco {
  z-index: 0;
}

.page--content .deco--blue {
  width: 3.8in;
  height: 3.8in;
  border-width: 12px;
  border-color: var(--ring-blue-soft);
  top: -1.5in;
  right: -1.3in;
  left: auto;
}

.page--content .deco--green {
  width: 3.4in;
  height: 3.4in;
  border-width: 12px;
  border-color: var(--ring-green-soft);
  bottom: -1.3in;
  left: -1.2in;
}

.page--content .deco--yellow {
  width: 1.2in;
  height: 1.2in;
  border-width: 10px;
  border-color: var(--ring-yellow-soft);
  bottom: 0.8in;
  right: 0.6in;
  top: auto;
  left: auto;
}

.page-layer--content {
  padding: 0.42in 0.65in 0.82in;
  min-height: 11in;
  display: flex;
  flex-direction: column;
}

/* ─── Page header ─── */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.2in;
}

.page-head img {
  height: 28px;
  width: auto;
}

.page-head-meta {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ─── Section title ─── */
h2.content-title {
  display: block;
  margin: 0 0 14px;
  padding: 6px 0 10px 14px;
  background: none;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  font-family: var(--font-slab);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2.content-title::after {
  display: none;
}

/* ─── Sub-headings ─── */
h3.content-sub {
  margin: 0 0 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

p {
  margin: 0;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.55;
}

.lead {
  margin: 0 0 16px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 6.4in;
}

.content-block {
  margin-top: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* ─── Panel cards ─── */
.panel {
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 8px rgba(20, 27, 37, 0.06);
}

.panel ul {
  margin: 8px 0 0;
  padding-left: 15px;
}

.panel li {
  margin: 0 0 6px;
  font-size: 10px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Process steps ─── */
.process-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.process-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 13px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  box-shadow: 0 2px 8px rgba(20, 27, 37, 0.06);
  display: flex;
  flex-direction: column;
}

.step .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.step strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.step span {
  display: block;
  margin-top: 5px;
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.5;
}

.bullet-list {
  margin: 8px 0 0;
  padding-left: 15px;
}

.bullet-list li {
  margin: 0 0 5px;
  font-size: 10px;
}

/* ─── Rate tables ─── */
.rate-table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  border: none;
  box-shadow: 0 2px 10px rgba(20, 27, 37, 0.08);
}

.rate-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  text-align: left;
  padding: 10px 9px;
  border: none;
}

.rate-table td {
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}

.rate-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.rate-table .money {
  color: #027a48;
  font-weight: 800;
  font-size: 10px;
  white-space: nowrap;
}

.rate-table--tiers th {
  vertical-align: bottom;
}

.rate-table .th-sub {
  display: block;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.75;
  margin-top: 3px;
}

.rate-table .tier-includes {
  font-size: 8.5px;
  line-height: 1.45;
  max-width: 2.8in;
}

/* ─── Terms / info blocks ─── */
.terms {
  margin-top: 12px;
  border-left: 3px solid var(--navy);
  background: #f0f4f8;
  padding: 12px 14px;
}

.terms ul {
  margin: 8px 0 0;
  padding-left: 15px;
}

.terms li {
  margin: 0 0 5px;
  font-size: 9.5px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Approval callout ─── */
.approval-note {
  margin-top: 12px;
  border-left: 3px solid var(--orange);
  background: var(--orange-light);
  padding: 11px 14px;
}

.approval-note strong {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.approval-note p {
  margin-top: 5px;
  font-size: 9.5px;
  color: var(--text);
}

.disclaimer {
  margin-top: auto;
  padding-top: 10px;
  margin-bottom: 0.06in;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
}

/* Ensure first child of content layer has no extra top margin */
.page-layer--content > *:first-child {
  margin-top: 0;
}

/* Explicit gap between stacked terms blocks */
.terms + .terms {
  margin-top: 10px;
}

/* ─── Running page footer (left side, mirrors page-no on right) ─── */
.page > .page-foot {
  position: absolute;
  z-index: 2;
  left: 0.65in;
  bottom: 0.38in;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
  max-width: 5.5in;
}

.page-foot-legal {
  display: block;
  margin-top: 3px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.page--cover .page-foot,
.page--cta .page-foot {
  color: rgba(255, 255, 255, 0.45);
}

/* ─── Tier 5 premium row highlight ─── */
.rate-table tbody tr.tier-premium td {
  background: #fff9f5;
  border-top: 1px solid rgba(241, 101, 34, 0.18);
}

.rate-table tbody tr.tier-premium td:first-child {
  border-left: 3px solid var(--orange);
  padding-left: 7px;
}

/* ─── CTA page — cover-style dark + rings ─── */
.page--cta .page-bg {
  background: #141b25;
}

.cta-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 4, 5, 0.35);
}

.page--cta .page-bg .deco {
  z-index: 2;
}

.page--cta .deco--blue {
  width: 4.8in;
  height: 4.8in;
  border-width: 14px;
  border-color: var(--ring-blue);
  top: -2in;
  left: -1.8in;
  opacity: 0.85;
}

.page--cta .deco--green {
  width: 4.2in;
  height: 4.2in;
  border-width: 14px;
  border-color: var(--ring-green);
  bottom: -1.5in;
  left: -1.5in;
  opacity: 0.85;
}

.page--cta .deco--yellow {
  width: 1.6in;
  height: 1.6in;
  border-width: 12px;
  border-color: var(--ring-yellow);
  bottom: 1.2in;
  right: 0.6in;
  top: auto;
  left: auto;
  opacity: 0.6;
}

.page-layer--cta {
  padding: 0.5in 0.6in 0.52in;
  min-height: 11in;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.page--cta .content-title {
  display: inline-block;
  padding: 12px 22px;
  background: var(--orange);
  border-left: none;
  border-bottom-right-radius: 20px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.page--cta .lead {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.cta-panel {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--orange);
  border-top-left-radius: 22px;
}

.cta-panel h3 {
  margin: 0;
  font-family: var(--font-slab);
  font-size: 21px;
  color: #fff;
  line-height: 1.2;
}

.cta-panel p {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.cta-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cta-step {
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.cta-step .num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.cta-step strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.cta-step span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.cta-contact {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-contact > div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.05);
}

.cta-contact strong {
  display: block;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cta-contact a {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.page--cta .disclaimer {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
}

.page--cta .page-no {
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 2500px) {
  :root {
    --ui-scale: 1.25;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .book {
    padding: 0;
  }

  .page {
    margin: 0;
    width: 8.5in;
    min-height: 11in;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .page-layer,
  .page-layer--cover,
  .page-layer--toc,
  .page-layer--content,
  .page-layer--cta {
    min-height: 11in;
  }
}
