/* ==========================================================================
   Homepage editorial hero — blue banner + book-related background shapes
   ========================================================================== */

/* Soft full-page wash: navy + gold light gradients behind all homepage sections */
body:has(.hero--editorial) {
  --hero-banner-bg:
    radial-gradient(900px 480px at 50% -5%, rgba(10, 42, 74, 0.16), transparent 62%),
    radial-gradient(720px 420px at 92% 18%, rgba(201, 162, 39, 0.14), transparent 58%),
    radial-gradient(680px 380px at 8% 42%, rgba(10, 42, 74, 0.08), transparent 55%),
    radial-gradient(760px 400px at 85% 68%, rgba(201, 162, 39, 0.1), transparent 60%),
    radial-gradient(640px 360px at 20% 88%, rgba(10, 42, 74, 0.07), transparent 55%),
    linear-gradient(180deg, #eef1f6 0%, #e8ecf3 28%, #f2f4f8 58%, #eef1f5 100%);
  background-color: #eef1f6 !important;
  background-image: var(--hero-banner-bg) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  position: relative;
}

/* Extra soft floating orbs (homepage only) — stays light, no harsh glow */
body:has(.hero--editorial)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(10, 42, 74, 0.09), transparent 42%),
    radial-gradient(circle at 88% 36%, rgba(201, 162, 39, 0.11), transparent 40%),
    radial-gradient(circle at 70% 78%, rgba(10, 42, 74, 0.07), transparent 45%),
    radial-gradient(circle at 28% 72%, rgba(201, 162, 39, 0.08), transparent 42%);
  animation: home-bg-drift 28s ease-in-out infinite alternate;
}

@keyframes home-bg-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, -18px, 0) scale(1.04);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.hero--editorial)::before {
    animation: none;
  }
}

.hero.hero--editorial {
  display: block;
  position: relative;
  width: 100%;
  min-height: clamp(520px, 68vh, 640px);
  /* Pull hero under the floating navbar so blue is seamless to the top */
  margin-top: -96px;
  padding: 120px 0 36px;
  text-align: center;
  perspective: none;
  overflow: hidden;
  color: #1a2328;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(50% 40% at 80% 70%, rgba(201, 162, 39, 0.08), transparent 70%),
    transparent;
}

.hero.hero--editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(10, 42, 74, 0.55) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  z-index: 0;
}

/* Soft band washes between homepage sections */
body:has(.hero--editorial) .why-spines-section,
body:has(.hero--editorial) .faq-section,
body:has(.hero--editorial) #support-form-container {
  position: relative;
  isolation: isolate;
}

body:has(.hero--editorial) .why-spines-section::before,
body:has(.hero--editorial) .faq-section::before {
  content: "";
  position: absolute;
  inset: -8% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 15% 40%, rgba(10, 42, 74, 0.05), transparent 70%),
    radial-gradient(50% 45% at 90% 60%, rgba(201, 162, 39, 0.07), transparent 72%);
}

/* -------------------------------------------------------------------------- */
/* Book-related decorative shapes                                             */
/* -------------------------------------------------------------------------- */

.hero-shapes {
  position: absolute;
  inset: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  display: block;
}

/* Closed book silhouettes */
.hero-shape--book {
  width: 72px;
  height: 96px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(10, 42, 74, 0.12) 0 10px, transparent 10px),
    linear-gradient(180deg, rgba(10, 42, 74, 0.14), rgba(10, 42, 74, 0.06));
  border: 1px solid rgba(10, 42, 74, 0.18);
  box-shadow: 0 12px 28px rgba(10, 42, 74, 0.08);
}

.hero-shape--book::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 12px;
  top: 18px;
  height: 2px;
  background: rgba(10, 42, 74, 0.2);
  box-shadow:
    0 10px 0 rgba(10, 42, 74, 0.14),
    0 20px 0 rgba(10, 42, 74, 0.1),
    0 30px 0 rgba(10, 42, 74, 0.08);
}

.hero-shape--book-1 {
  left: 5%;
  top: 18%;
  transform: rotate(-18deg);
  opacity: 0.55;
}

.hero-shape--book-2 {
  right: 7%;
  top: 22%;
  width: 64px;
  height: 88px;
  transform: rotate(14deg);
  opacity: 0.45;
}

.hero-shape--book-3 {
  right: 12%;
  bottom: 16%;
  width: 56px;
  height: 78px;
  transform: rotate(-10deg);
  opacity: 0.4;
}

/* Open book shape */
.hero-shape--open {
  left: 8%;
  bottom: 14%;
  width: 120px;
  height: 70px;
  opacity: 0.4;
  background:
    linear-gradient(115deg, transparent 48%, rgba(10, 42, 74, 0.14) 48% 52%, transparent 52%),
    linear-gradient(180deg, rgba(10, 42, 74, 0.12), rgba(10, 42, 74, 0.05));
  border: 1px solid rgba(10, 42, 74, 0.16);
  border-radius: 8px 8px 18px 18px;
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 50% 84%, 0 100%);
  transform: rotate(-6deg);
}

/* Floating manuscript pages */
.hero-shape--page {
  width: 54px;
  height: 70px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(10, 42, 74, 0.16) 0 2px,
      transparent 2px 10px
    ),
    rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(10, 42, 74, 0.16);
}

.hero-shape--page-1 {
  left: 18%;
  top: 12%;
  transform: rotate(12deg);
  opacity: 0.4;
}

.hero-shape--page-2 {
  right: 20%;
  top: 58%;
  transform: rotate(-16deg);
  opacity: 0.32;
}

.hero-shape--circle {
  border-radius: 50%;
  border: 1px solid rgba(10, 42, 74, 0.12);
  background: radial-gradient(circle, rgba(10, 42, 74, 0.12), transparent 70%);
}

.hero-shape--circle-1 {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: -50px;
  opacity: 0.55;
}

.hero-shape--circle-2 {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -60px;
  opacity: 0.4;
}

.hero-shape--lines {
  left: 50%;
  top: 50%;
  width: min(70%, 640px);
  height: 180px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent, rgba(10, 42, 74, 0.35), transparent) center / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(10, 42, 74, 0.22), transparent) 50% 35% / 70% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(10, 42, 74, 0.18), transparent) 50% 65% / 55% 1px no-repeat;
}

/* -------------------------------------------------------------------------- */
/* Content                                                                    */
/* -------------------------------------------------------------------------- */

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(94%, 1280px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: inherit;
}

.hero-grid,
.hero-grid--centered {
  display: block;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 42, 74, 0.22);
  background: rgba(255, 255, 255, 0.65);
  color: #0a2a4a;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero.hero--editorial h1 {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1a2328;
  text-align: center;
  text-wrap: unset;
}

.hero-h1-break {
  display: block;
}

.hero.hero--editorial h1 .span-color {
  color: #0a2a4a !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}

.hero-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: #4a5860;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 3px;
}

.hero-btn--primary {
  background: #0a2a4a;
  color: #ffffff;
  border: 1.5px solid #0a2a4a;
  box-shadow: 0 8px 20px rgba(10, 42, 74, 0.18);
}

.hero-btn--primary:hover {
  background: #061b33;
  border-color: #061b33;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-btn--secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #1a2328;
  border: 1.5px solid rgba(10, 42, 74, 0.25);
}

.hero-btn--secondary:hover {
  border-color: #0a2a4a;
  color: #0a2a4a;
  background: #ffffff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a5860;
}

.hero-trust svg {
  color: #0a2a4a;
  flex-shrink: 0;
}

/* Platform strip */
.hero-platforms {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 42, 74, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.hero-platforms__label {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7880;
  letter-spacing: 0.02em;
}

.hero-platforms__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 28px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(10, 42, 74, 0.1);
}

.hero-platforms__logos img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.85;
  transition: opacity 200ms ease, filter 200ms ease;
}

.hero-platforms__logos img:hover {
  filter: none;
  opacity: 1;
}

.hero.hero--editorial .hero-visual,
.hero.hero--editorial .book-section,
.hero.hero--editorial .reviews,
.hero.hero--editorial #header-logo-wrapper,
.hero.hero--editorial #New-btn,
.hero.hero--editorial .center-laptop {
  display: none !important;
}

.hero.hero--editorial p {
  width: auto;
}

body:has(.hero--editorial) nav {
  padding: 14px 0 8px;
  background: transparent !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body:has(.hero--editorial) #nav-inner {
  width: min(92%, 1240px);
  border-radius: 16px;
  border: 1px solid rgba(215, 224, 227, 0.95);
  box-shadow: 0 10px 28px rgba(26, 35, 40, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

body:has(.hero--editorial) .nav-links li a:hover {
  background: rgba(10, 42, 74, 0.1);
  color: #0a2a4a;
}

body:has(.hero--editorial) .get-started {
  border-radius: 12px;
  border-width: 1.5px;
}

@media (max-width: 900px) {
  .hero-shape--book-2,
  .hero-shape--page-2 {
    opacity: 0.22;
  }

  .hero-shape--lines {
    opacity: 0.08;
  }
}

@media (max-width: 640px) {
  .hero.hero--editorial {
    min-height: auto;
    margin-top: -80px;
    padding: 100px 0 28px;
  }

  .hero-shell {
    gap: 22px;
  }

  .hero-copy {
    gap: 14px;
  }

  .hero.hero--editorial h1 {
    font-size: clamp(2rem, 8.4vw, 2.75rem);
    max-width: none;
  }

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

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-platforms__logos {
    gap: 14px 18px;
    padding: 10px 14px;
  }

  .hero-platforms__logos img {
    height: 24px;
  }

  .hero-shape--book-3,
  .hero-shape--open,
  .hero-shape--page-1 {
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn,
  .hero-platforms__logos img {
    transition: none;
  }
}
