/* Squeeze page — The Actuary Secrets Blueprint
   Preview only. White / blue / black. Milliman-like type via Source Sans 3.
   Book cover restyled to black and blue. */

:root {
  --cream: #ffffff;
  --paper: #f5f7fa;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #5a5a5a;
  --line: #e2e5ea;
  --navy: #111111;
  --navy-mid: #1a1a1a;
  --navy-deep: #000000;
  --gold: #0055c8;
  --gold-deep: #003d91;
  --gold-soft: #e8f0fb;
  --pine: #0055c8;
  --pine-deep: #003d91;
  --radius: 2px;
  --font-serif: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.625;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


.site-top {
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.site-top-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-tag {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375;
  color: var(--muted);
}

/* ----- Title block ----- */

.squeeze {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.25rem 1.75rem 2.5rem;
}

.title-block {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.15rem;
}

.title-block h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 6vw, 3.4375rem);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
}

.quote {
  margin: 0 auto;
  max-width: 36rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 350;
  font-size: 1.25rem;
  line-height: 1.875rem;
  color: var(--ink-soft);
}

.quote::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: 0 auto 1.05rem;
  background: var(--gold-deep);
}

/* ----- Hero: book + form ----- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 3.5rem 4rem;
  align-items: center;
}

.book-col {
  display: flex;
  justify-content: center;
}

.form-col {
  display: flex;
  justify-content: center;
}

/* ----- 3D book ----- */

.book-stage {
  position: relative;
  width: min(100%, 28.5rem);
  height: 35.5rem;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book {
  position: relative;
  width: 19.75rem;
  height: 29.6rem;
  transform: rotateY(-22deg) rotateX(7deg);
  transform-style: preserve-3d;
}

.book-cover {
  position: absolute;
  inset: 0;
  transform: translateZ(18px);
  border-radius: 1px 4px 4px 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px),
    radial-gradient(ellipse at 28% 18%, rgba(0, 85, 200, 0.22), transparent 52%),
    repeating-linear-gradient(
      90deg,
      transparent 0 19px,
      rgba(0, 85, 200, 0.06) 19px 20px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 19px,
      rgba(0, 85, 200, 0.06) 19px 20px
    ),
    linear-gradient(165deg, #1a3a6e 0%, #0a2560 38%, #0a0a0a 78%, #000 100%);
  box-shadow:
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    18px 28px 48px rgba(0, 0, 0, 0.38);
  color: var(--gold);
  overflow: hidden;
}

.cover-frame {
  position: absolute;
  inset: 0.85rem 0.8rem 0.95rem 0.9rem;
  border: 1px solid rgba(0, 85, 200, 0.85);
  padding: 1.15rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cover-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 85, 200, 0.35);
  pointer-events: none;
}

.cover-eyebrow,
.cover-sub,
.cover-author {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-top: 0.35rem;
}

.cover-title {
  margin: 1.1rem 0 0;
  font-family: var(--font-serif);
  font-weight: 560;
  font-variation-settings: "SOFT" 10, "WONK" 1;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.cover-title span {
  display: block;
}

.cover-title span:not(.cover-title-last) {
  font-size: 2.25rem;
}

.cover-title-last {
  margin-top: 0.2rem;
  font-size: 1.85rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.cover-sub {
  margin-top: 0.95rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.cover-sub::before,
.cover-sub::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  margin: 0.7rem auto;
  background: rgba(0, 85, 200, 0.85);
}

.cover-seal {
  margin-top: auto;
  width: 4.4rem;
  height: 4.4rem;
  color: var(--gold);
}

.cover-seal svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cover-author {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: #ffffff;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 100%;
  transform-origin: 0 50%;
  transform: rotateY(-90deg);
  background:
    linear-gradient(90deg,
      #000000 0%,
      #001a44 18%,
      #0a0a0a 55%,
      #000000 100%);
  border-radius: 2px 0 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0.2rem 1.2rem;
  color: var(--gold-soft);
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.35);
}

.spine-title,
.spine-author {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.spine-title {
  font-size: 0.68rem;
  font-weight: 550;
  color: #ffffff;
}

.spine-author {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-pages {
  position: absolute;
  top: 4px;
  right: 0;
  width: 36px;
  height: calc(100% - 8px);
  transform-origin: 100% 50%;
  transform: rotateY(90deg);
  background:
    linear-gradient(90deg, #d7dbe2, #f3f5f8 18%, #ffffff 60%, #e8ebf0);
  box-shadow: inset 4px 0 6px rgba(20, 30, 50, 0.10);
  border-radius: 0 1px 1px 0;
}

.book-pages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 2px,
    rgba(20, 30, 50, 0.10) 2px 3px
  );
}

.book-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  background: linear-gradient(180deg, #c5cad3, #f4f6f8 40%, #e6e9ee);
  box-shadow: inset 0 -1px 0 rgba(20, 30, 50, 0.12);
}

.book-shadow {
  position: absolute;
  bottom: 1.15rem;
  left: 18%;
  width: 70%;
  height: 2.1rem;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(16px);
  border-radius: 50%;
  z-index: -1;
}

/* ----- Opt-in card ----- */

.optin-card {
  width: 100%;
  max-width: 26.5rem;
  min-height: 24.5rem;
  padding: 2.15rem 2rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.optin-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: clamp(1.75rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}

.optin-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.5;
}

.optin-form label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--muted);
}

.optin-form input[type="email"] {
  width: 100%;
  height: 3.25rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #c5cad1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.optin-form input[type="email"]::placeholder {
  color: #8a9098;
}

.optin-form input[type="email"]:hover {
  border-color: #9aa3ad;
}

.optin-form input[type="email"]:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(0, 85, 200, 0.22);
}

.optin-form input[aria-invalid="true"] {
  border-color: #9a3b2f;
  box-shadow: 0 0 0 3px rgba(154, 59, 47, 0.12);
}

.field-error {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: #8a2e24;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.375rem;
  margin-top: 0.95rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--pine);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 20px rgba(0, 61, 145, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--pine-deep);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.privacy {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.optin-card.is-success .optin-form,
.optin-card.is-success .optin-lead,
.optin-card.is-success .privacy,
.optin-card.is-success h2 {
  display: none;
}

.optin-thanks[hidden] {
  display: none;
}

.optin-thanks {
  padding: 0.4rem 0 0.2rem;
}

.thanks-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 350;
  letter-spacing: 0;
  color: var(--ink);
}

.thanks-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.5;
}

#thanks-email {
  font-weight: 600;
  word-break: break-word;
  color: var(--ink);
}

a.btn {
  text-decoration: none;
}

/* ----- Huge footer promise ----- */

.promise {
  margin-top: auto;
  padding: 3.25rem 1.75rem 3.5rem;
  background: var(--navy);
  color: #ffffff;
  text-align: center;
}

.promise-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: #9ec0ff;
}

.promise-text {
  margin: 0 auto;
  max-width: 46rem;
  font-family: var(--font-serif);
  font-weight: 350;
  font-size: clamp(1.75rem, 3.6vw, 2rem);
  line-height: 1.375;
  letter-spacing: 0;
  color: #ffffff;
}

/* ----- Mobile: book above form ----- */

@media (max-width: 800px) {
  .squeeze {
    padding: 2.1rem 1.2rem 1.75rem;
  }

  .title-block {
    margin-bottom: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
  }

  .book-stage {
    height: 26.5rem;
    width: 100%;
  }

  .book {
    width: 13.75rem;
    height: 20.6rem;
    transform: rotateY(-16deg) rotateX(6deg);
  }

  .cover-title span:not(.cover-title-last) {
    font-size: 1.62rem;
  }

  .cover-title-last {
    font-size: 1.35rem;
  }

  .cover-seal {
    width: 3.6rem;
    height: 3.6rem;
  }

  .optin-card {
    min-height: 0;
    padding: 1.65rem 1.35rem 1.4rem;
  }

  .optin-card.is-success {
    min-height: 16rem;
  }

  .promise {
    padding: 2.4rem 1.25rem 2.6rem;
  }
}

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

  .book {
    transform: rotateY(-12deg) rotateX(0deg);
  }

  .btn {
    transition: none;
  }
}
