:root {
  --brand-primary: #0b3d91;
  --brand-deep: #0b2b5c;
  --brand-gold: #d4af37;
  --brand-gold-dark: #b99119;
  --brand-gold-cta: #8f6b00;
  --brand-gold-cta-dark: #765700;
  --brand-orange: #f7931e;
  --brand-blue: #0a84d9;
  --text-primary: #1a1a1a;
  --text-muted: #5b6875;
  --text-on-dark: #ffffff;
  --background: #ffffff;
  --background-neutral: #f8fafc;
  --background-soft: #e8f3ff;
  --border: rgba(11, 61, 145, 0.12);
  --border-strong: rgba(11, 61, 145, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(11, 61, 145, 0.08);
  --shadow-md: 0 16px 40px rgba(11, 61, 145, 0.12);
  --shadow-book: 0 28px 50px rgba(3, 25, 60, 0.25);
  --container: 1180px;
  --section-desktop: 96px;
  --section-tablet: 78px;
  --section-mobile: 62px;
  --transition: 180ms ease;
  --font-heading: "Montserrat", "Avenir Next", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-blue);
}

button,
a {
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.55em;
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.45rem, 4.1vw, 3.25rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
}

h4 {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

p {
  margin: 0 0 1.3em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-desktop);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #9ed8ff;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 12px 23px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--brand-gold-cta);
  background: var(--brand-gold-cta);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(128, 95, 0, 0.17);
}

.button-primary:hover {
  border-color: var(--brand-gold-cta-dark);
  background: var(--brand-gold-cta-dark);
  color: #ffffff;
  box-shadow: 0 9px 22px rgba(128, 95, 0, 0.22);
}

.button-secondary {
  border-color: var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
}

.button-secondary:hover {
  border-color: var(--brand-primary);
  background: var(--background-soft);
  color: var(--brand-primary);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
  color: var(--text-on-dark);
}

.button-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: var(--brand-deep);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(9px);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(11, 43, 92, 0.08);
}

.header-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  width: 172px;
  flex: 0 0 172px;
  align-items: center;
}

.brand a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand img {
  width: 120px;
  max-width: 120px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav .menu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.primary-nav a {
  position: relative;
  color: var(--brand-deep);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav .mobile-menu-buy,
.primary-nav .mobile-menu-buy:hover,
.primary-nav .mobile-menu-buy:focus-visible {
  color: #ffffff;
}

.primary-nav .menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--brand-gold);
  content: "";
  transform-origin: left;
  transition: transform var(--transition);
}

.primary-nav .menu a:hover::after,
.primary-nav .menu a:focus-visible::after {
  transform: scaleX(1);
}

.header-buy {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 10px 17px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.header-buy-short,
.mobile-menu-buy,
.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.42);
  padding-block: 78px 86px;
  background:
    radial-gradient(circle at 82% 18%, rgba(10, 132, 217, 0.3), transparent 31%),
    radial-gradient(circle at 12% 6%, rgba(212, 175, 55, 0.14), transparent 28%),
    linear-gradient(132deg, #06172f 0%, #092754 52%, #0b3d91 100%);
  color: rgba(255, 255, 255, 0.82);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  content: "";
  opacity: 0.48;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  top: -290px;
  right: -205px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 84px rgba(10, 132, 217, 0.045), 0 0 0 168px rgba(10, 132, 217, 0.025);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.42fr);
  gap: 32px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  border-left: 1px solid rgba(212, 175, 55, 0.38);
  padding-left: 34px;
}

.hero-copy h1 {
  max-width: none;
  margin-bottom: 26px;
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.hero-title {
  font-size: clamp(2.25rem, 3vw, 2.65rem);
}

.hero-title-desktop,
.hero-title-desktop > span {
  display: block;
}

.hero-title-desktop > span {
  white-space: nowrap;
}

.hero-title-mobile {
  display: none;
}

.hero-copy h1::after {
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 25px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f0cf64, var(--brand-gold));
  content: "";
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.09rem;
  line-height: 1.72;
}

.credibility-line {
  display: flex;
  margin-top: 22px;
  margin-bottom: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.83rem;
  font-weight: 600;
}

.credibility-line::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  content: "";
}

.hero-book {
  position: relative;
  min-height: 525px;
  perspective: 1200px;
}

.hero-book::after {
  position: absolute;
  z-index: 0;
  right: 1%;
  bottom: 0;
  width: 92%;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(18px);
  content: "";
}

.book-glow {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 88%;
  height: 72%;
  border: 1px solid rgba(240, 207, 100, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 217, 0.32), rgba(10, 132, 217, 0.03) 52%, transparent 70%);
}

.hero-book img {
  position: absolute;
  width: min(96%, 330px);
  border-radius: 3px 8px 8px 3px;
  object-fit: contain;
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.38);
}

.hero-book-front {
  z-index: 2;
  top: 0;
  right: 10%;
  transform: rotateY(-8deg) rotateZ(1.5deg);
}

.hero-book-back {
  z-index: 1;
  top: 60px;
  right: -2%;
  opacity: 0.9;
  transform: rotateY(-8deg) rotateZ(6deg);
}

.hero .eyebrow {
  color: #8fd3ff;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.hero .button-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dmt-link,
.dmt-inline-link {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration-color: var(--brand-gold);
  text-decoration-thickness: 2px;
}

.dmt-link:hover,
.dmt-inline-link:hover {
  color: var(--brand-blue);
}

.hero .dmt-link {
  color: #f0d270;
}

.hero .dmt-link:hover {
  color: #ffffff;
}

/* Problem */
.problem-section {
  background: #fff9e9;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 95px;
}

.problem-grid > div:first-child {
  position: sticky;
  top: 105px;
  align-self: start;
}

.problem-copy {
  color: #364452;
  font-size: 1.04rem;
}

.problem-copy blockquote {
  position: relative;
  margin: 31px 0;
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--brand-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
  background: var(--background-soft);
  color: var(--brand-deep);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Book */
.book-section {
  background: #edf6ff;
}

.book-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
  gap: 88px;
}

.book-spread {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
}

.book-spread figure {
  margin: 0;
}

.book-spread figure:first-child {
  transform: translateY(-18px);
}

.book-spread img {
  width: 100%;
  border-radius: 4px 9px 9px 4px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.book-copy p {
  color: #3b4857;
}

.book-copy .button {
  margin-top: 12px;
}

/* Benefit cards */
.benefits-section {
  background: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  min-height: 290px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 31px 28px 27px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.icon-box,
.audience-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 13px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--brand-primary);
}

.icon-box {
  margin-bottom: 23px;
}

.icon-box svg,
.audience-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.benefit-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Audience */
.audience-section {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
}

.audience-section::after {
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.audience-section .section-heading {
  position: relative;
  z-index: 1;
}

.audience-section h2 {
  color: #ffffff;
}

.audience-section .eyebrow {
  color: #8bd0ff;
}

.audience-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.audience-card {
  display: flex;
  min-height: 166px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 27px;
  align-items: flex-start;
  gap: 21px;
  background: rgba(255, 255, 255, 0.07);
}

.audience-icon {
  flex: 0 0 52px;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.15);
  color: #f2ce5b;
}

.audience-card h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.21rem;
}

.audience-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

/* Author */
.author-section {
  background: #fff8e2;
}

.author-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.24fr);
  gap: 95px;
}

.author-portrait {
  position: relative;
}

.author-portrait::before {
  position: absolute;
  z-index: 0;
  top: -18px;
  left: -18px;
  width: 62%;
  height: 58%;
  border-radius: var(--radius-lg);
  background: var(--background-soft);
  content: "";
}

.author-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 600px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.author-badge {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: 28px;
  display: flex;
  width: 120px;
  height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--brand-deep);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.author-badge strong {
  margin: 3px 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.author-role {
  display: inline-flex;
  margin: 2px 0 22px;
  border-left: 3px solid var(--brand-gold);
  padding-left: 13px;
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.author-copy p:not(.eyebrow):not(.author-role) {
  color: #3a4754;
}

.author-copy .button {
  margin-top: 8px;
}

/* Reviews */
.reviews-section {
  background: #edf7ff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: flex;
  min-height: 305px;
  margin: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 27px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.quote-mark {
  height: 36px;
  color: var(--brand-gold);
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: 0.9;
}

.review-card blockquote {
  margin: 20px 0 26px;
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.review-card figcaption {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}

.review-card figcaption strong {
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
}

.review-card figcaption span,
.review-card figcaption small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.reviews-note {
  max-width: 780px;
  margin: 30px auto 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Details */
.details-section {
  background: #ffffff;
}

.details-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 76px;
}

.details-heading {
  position: sticky;
  top: 105px;
}

.details-heading p:not(.eyebrow) {
  color: var(--text-muted);
}

.facts-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}

.fact-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 22px 20px 0;
}

.fact-item:nth-child(even) {
  border-left: 1px solid var(--border);
  padding-right: 0;
  padding-left: 22px;
}

.fact-item dt {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-item dd {
  margin: 0;
  color: var(--brand-deep);
  font-weight: 600;
  line-height: 1.55;
}

/* FAQ */
.faq-section {
  background: #fff8e8;
}

.faq-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 76px;
}

.faq-heading {
  position: sticky;
  top: 105px;
}

.faq-heading p:not(.eyebrow) {
  color: var(--text-muted);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-strong);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  padding: 18px 4px;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.faq-item button:hover {
  color: var(--brand-blue);
}

.faq-plus {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.faq-plus::before,
.faq-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: var(--brand-primary);
  content: "";
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item button[aria-expanded="true"] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-panel {
  padding: 0 48px 22px 4px;
}

.faq-panel p {
  margin: 0;
  color: var(--text-muted);
}

.faq-buy {
  margin-top: 30px;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-primary);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.final-cta::before,
.final-cta::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.final-cta::before {
  top: -260px;
  left: -180px;
  width: 520px;
  height: 520px;
}

.final-cta::after {
  right: -180px;
  bottom: -280px;
  width: 520px;
  height: 520px;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
}

.cta-question {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
}

.centered-buttons {
  margin-top: 30px;
  justify-content: center;
}

.cta-email {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.cta-email:hover {
  color: #ffffff;
}

/* Standard pages and posts */
.page-main {
  min-height: 62vh;
  padding-block: 80px 96px;
  background: var(--background-neutral);
}

.content-container {
  max-width: 920px;
}

.entry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 6vw, 68px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.entry-header {
  margin-bottom: 38px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.5em;
}

.entry-content a {
  font-weight: 600;
}

.entry-image {
  margin: 0 0 36px;
}

.entry-image img {
  border-radius: var(--radius-md);
}

.post-grid {
  display: grid;
  gap: 22px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: #ffffff;
}

.post-card h2 {
  font-size: 1.6rem;
}

.post-card h2 a {
  text-decoration: none;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comments-area {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 38px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text-primary);
  font: inherit;
}

input[type="submit"] {
  width: auto;
  border: 0;
  background: var(--brand-gold-cta);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Legal pages */
.legal-page {
  background: #edf6ff;
}

.legal-entry-card {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--brand-gold);
}

.legal-entry-card::after {
  position: absolute;
  top: -95px;
  right: -95px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(232, 243, 255, 0.7);
  content: "";
  pointer-events: none;
}

.legal-entry-card .entry-header,
.legal-entry-card .entry-content {
  position: relative;
  z-index: 1;
}

.legal-updated {
  max-width: 640px;
  color: var(--text-muted);
}

.legal-entry-card .entry-content h2 {
  border-top: 1px solid var(--border);
  padding-top: 27px;
  font-size: 1.38rem;
}

/* 404 */
.not-found {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding-block: 90px;
  background: linear-gradient(145deg, #ffffff, var(--background-soft));
}

.not-found-inner {
  max-width: 720px;
  text-align: center;
}

.route-mark {
  display: grid;
  width: 120px;
  height: 90px;
  margin: 0 auto 20px;
  place-items: center;
}

.route-mark svg {
  fill: none;
  stroke: var(--brand-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.not-found p:not(.eyebrow) {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding-top: 0;
  border-top: 5px solid var(--brand-gold);
  background: #061b39;
  color: rgba(255, 255, 255, 0.72);
}

.footer-cta {
  display: flex;
  min-height: 184px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: 38px;
}

.footer-cta-kicker {
  margin: 0 0 8px;
  color: #e9ca63;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
}

.footer-cta .button {
  flex: 0 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.64fr 0.84fr 1fr;
  gap: 52px;
  padding-block: 64px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: block;
  width: 160px;
  height: auto;
  flex: 0 0 160px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
}

.footer-logo img {
  width: 160px;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.footer-logo-crop {
  width: 176px;
  height: auto;
  flex-basis: 176px;
  overflow: hidden;
  padding: 8px;
  border-radius: 9px;
  background: #ffffff;
}

.footer-logo-crop img {
  width: 160px;
  max-width: 160px;
  height: auto;
  transform: none;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-copy strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  line-height: 1.3;
}

.footer-brand-copy small {
  max-width: 150px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 365px;
  margin: 22px 0 0;
  font-size: 0.88rem;
}

.footer-title {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
}

.site-footer .button-primary,
.site-footer .button-primary:hover {
  color: #ffffff;
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 7px;
}

.footer-book-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}

.footer-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f0d270 !important;
  font-family: var(--font-heading);
  font-weight: 700;
}

.footer-contact-rule {
  width: 36px;
  height: 2px;
  margin: 24px 0 18px;
  background: var(--brand-gold);
}

.footer-contact-name {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-dmt-link {
  display: block;
  margin-bottom: 5px;
  color: #f0d270 !important;
  font-family: var(--font-heading);
  font-size: 0.78rem !important;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 23px 28px;
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-statement {
  margin-top: 4px !important;
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom nav {
  display: none;
}

.back-to-top {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* WordPress alignment helpers */
.alignwide {
  width: min(1100px, 100%);
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.bypostauthor {
  border-left: 3px solid var(--brand-gold);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 16px;
  }

  .brand {
    width: 152px;
    flex-basis: 152px;
  }

  .brand img {
    width: 112px;
    max-width: 112px;
    height: auto;
  }

  .primary-nav .menu {
    gap: 18px;
  }

  .primary-nav a {
    font-size: 0.76rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.5fr);
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2rem, 3.45vw, 2.3rem);
  }

  .hero-title-desktop > span {
    display: block;
    white-space: nowrap;
  }

  .hero-book {
    min-height: 450px;
  }

  .hero-book img {
    width: min(94%, 285px);
  }

  .book-grid,
  .author-grid {
    gap: 60px;
  }

  .footer-grid {
    gap: 35px;
  }

}

@media (max-width: 920px) {
  .header-inner {
    min-height: 80px;
  }

  .brand {
    width: 140px;
    flex-basis: 140px;
  }

  .brand img {
    width: 104px;
    max-width: 104px;
    height: auto;
  }

  .section {
    padding-block: var(--section-tablet);
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brand-deep);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    z-index: 99;
    top: 80px;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    border-bottom: 1px solid var(--border-strong);
    padding: 24px 20px 28px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    display: grid;
    gap: 0;
  }

  .primary-nav .menu li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav .menu a {
    display: block;
    padding: 14px 4px;
    font-size: 0.96rem;
  }

  .primary-nav .menu a::after {
    display: none;
  }

  .mobile-menu-buy {
    display: flex;
    width: 100%;
    margin-top: 20px;
  }

  .header-buy {
    margin-left: auto;
  }

  .hero {
    padding-block: 66px 70px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(225px, 0.45fr);
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 3.7vw, 2.05rem);
  }

  .hero-book {
    min-height: 390px;
  }

  .hero-book img {
    width: min(96%, 245px);
  }

  .problem-grid,
  .details-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .problem-grid > div:first-child,
  .details-heading,
  .faq-heading {
    position: static;
  }

  .book-grid {
    grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
    gap: 45px;
  }

  .benefits-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-grid {
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: 55px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.68;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: var(--section-mobile);
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .site-header {
    box-shadow: 0 4px 16px rgba(11, 43, 92, 0.08);
  }

  .section,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }

  .brand {
    width: 96px;
    flex-basis: 96px;
  }

  .brand img {
    width: 88px;
    max-width: 88px;
    height: auto;
  }

  .primary-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .header-buy {
    min-height: 38px;
    padding: 8px 11px;
  }

  .header-buy-full {
    display: none;
  }

  .header-buy-short {
    display: inline;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero {
    min-height: 0;
    padding-block: 54px 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(1.48rem, 6.35vw, 2rem);
    line-height: 1.14;
  }

  .hero-copy {
    border-left-width: 2px;
    padding-left: 14px;
  }

  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile,
  .hero-title-mobile > span {
    display: block;
  }

  .hero-title-mobile > span {
    white-space: nowrap;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-book {
    width: min(100%, 340px);
    min-height: 450px;
    margin-inline: auto;
  }

  .hero-book img {
    width: min(72%, 245px);
  }

  .hero-book-front {
    right: auto;
    left: 8%;
  }

  .hero-book-back {
    right: 4%;
  }

  .problem-grid,
  .book-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .book-grid,
  .author-grid,
  .details-grid,
  .faq-grid {
    gap: 38px;
  }

  .book-spread {
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .book-copy {
    order: -1;
  }

  .benefits-grid,
  .reviews-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 0;
  }

  .audience-card {
    min-height: 0;
  }

  .author-portrait {
    width: min(90%, 470px);
    margin-inline: auto;
  }

  .author-copy {
    order: -1;
  }

  .author-badge {
    right: -18px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact-item:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .footer-cta {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 34px;
  }

  .footer-cta .button {
    width: 100%;
  }

}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand {
    width: 88px;
    flex-basis: 88px;
  }

  .brand img {
    width: 82px;
    max-width: 82px;
    height: auto;
  }

  .header-buy {
    min-width: 68px;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .button-group .button {
    width: 100%;
  }

  .hero-book {
    width: min(100%, 320px);
    min-height: 395px;
  }

  .hero-book img {
    width: min(70%, 225px);
  }

  .hero-book-front {
    left: 6%;
  }

  .hero-book-back {
    top: 48px;
    right: 5%;
  }

  .problem-copy blockquote {
    padding: 23px 22px;
  }

  .benefit-card,
  .review-card,
  .audience-card {
    padding: 24px 22px;
  }

  .audience-card {
    flex-direction: column;
  }

  .author-badge {
    right: -8px;
    width: 104px;
    height: 104px;
  }

  .faq-item button {
    min-height: 72px;
    font-size: 0.94rem;
  }

  .faq-panel {
    padding-right: 4px;
  }

  .entry-card {
    padding: 25px 21px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logo-crop {
    flex: 0 0 auto;
  }

}

@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 1.25rem;
  }

  .hero-copy {
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button,
  .menu-toggle {
    display: none !important;
  }

  body {
    color: #000000;
  }

  .section {
    padding-block: 30px;
  }
}
