/* easymathmoney — preview styles.
   Palette: white, blue, black.
   Typography follows Milliman.com (Benton Sans scale),
   using Source Sans 3 as the licensed-font substitute. */

:root {
  --white: #ffffff;
  --paper: #f5f7fa;
  --black: #111111;
  --black-soft: #2a2a2a;
  --muted: #5a5a5a;
  --line: #e2e5ea;
  --blue: #0055c8;
  --blue-deep: #003d91;
  --blue-soft: #e8f0fb;
  --radius: 2px;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --page: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;          /* Milliman body: 16px */
  line-height: 1.625;       /* Milliman body: 26px */
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.webinar-banner {
  margin: 0;
  padding: 0.7rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 0.875rem;      /* 14px */
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.375;       /* ~22px */
}

.site-header {
  padding: 1.5rem 1.5rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--black);
}

.brand:hover {
  color: var(--black);
}

.brand-name {
  font-family: var(--font);
  font-size: 1.25rem;       /* 20px */
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
}

.brand-tag {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.page {
  flex: 1;
  width: 100%;
  padding: 2.5rem 1.5rem 5rem;
}

.page-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.hero {
  padding: 1.25rem 0 2.25rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.6875rem;     /* Milliman preheading: 11px */
  line-height: 0.875rem;    /* 14px */
  font-weight: 500;
  letter-spacing: 0.125rem; /* 2px */
  text-transform: uppercase;
}

h1,
h2,
.lede {
  font-family: var(--font);
  color: var(--black);
  letter-spacing: 0;
}

h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.5rem, 6vw, 3.4375rem); /* Milliman h1: 40–55px */
  line-height: 1.18;                        /* ~65px at 55px */
  font-weight: 350;                         /* Milliman display weight */
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.875rem, 3vw, 2rem);    /* Milliman h2: 30–32px */
  line-height: 1.375;                       /* 44px at 32px */
  font-weight: 350;
}

.lede {
  margin: 0;
  font-size: 1.25rem;       /* 20px */
  line-height: 1.875rem;    /* 30px */
  color: var(--black-soft);
  font-weight: 350;
}

.section {
  margin: 2.75rem 0 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.source {
  margin-top: 0.85rem !important;
  font-size: 0.875rem;      /* 14px */
  line-height: 1.375rem;    /* 22px */
  color: var(--muted);
}

.cta-block {
  margin: 3rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.cta-note {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.375rem;     /* Milliman button */
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;      /* 14px */
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25rem;     /* 20px */
  text-decoration: none;
  transition: background 0.15s ease;
}

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

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

.btn-arrow {
  font-size: 1.15em;
  line-height: 1;
}

.details {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.details li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.details .label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.details .value {
  color: var(--black);
}

.learn-list {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.15rem;
}

.learn-list li {
  margin: 0 0 0.65rem;
  padding-left: 0.2rem;
}

.learn-list li:last-child {
  margin-bottom: 0;
}

.placeholder {
  margin: 0;
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--paper);
  border: 1px dashed #b8c0cc;
  border-radius: var(--radius);
  color: var(--black-soft);
}

.placeholder-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--blue);
}

.placeholder p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
}

.callout {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--blue-soft);
  border-radius: var(--radius);
}

.callout p {
  margin: 0;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem 2.4rem;
  background: var(--black);
  color: #d0d0d0;
}

.site-footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.2rem;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

.footer-tag {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #b0b0b0;
}

.site-footer p {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.fine-print {
  margin-top: 1.1rem !important;
  padding-top: 1.1rem;
  border-top: 1px solid #333;
  font-size: 0.875rem !important;
  color: #b0b0b0;
}

.page-join .section {
  margin-top: 2rem;
  padding-top: 1.85rem;
}

@media (max-width: 640px) {
  .site-header {
    padding: 1.2rem 1.2rem 0;
  }

  .page {
    padding: 1.6rem 1.2rem 3.5rem;
  }

  .webinar-banner {
    padding: 0.65rem 1.2rem;
    font-size: 0.8125rem;
  }

  .btn {
    width: 100%;
  }

  .details li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.8rem 0;
  }
}

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

  .btn {
    transition: none;
  }
}

button.btn {
  cursor: pointer;
  appearance: none;
}

button.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cta-note[role="status"] {
  min-height: 1.4em;
}

.page-webinar .page {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.page-webinar .checkout-hero {
  padding-bottom: 1.5rem;
}

.page-webinar .checkout-includes {
  margin: 0;
  padding-top: 0.15rem;
}

.checkout-panel {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.checkout-embed {
  margin-top: 0.75rem;
  min-height: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.refund-line {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--black-soft);
}

@media (max-width: 640px) {
  .page-webinar .page {
    padding-top: 1.25rem;
    padding-bottom: 2.75rem;
  }

  .checkout-panel {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

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

.register-form label:first-child {
  margin-top: 0;
}

.register-form .optional {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.register-form input[type="email"],
.register-form input[type="text"] {
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.375;
}

.register-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 85, 200, 0.22);
}

.register-form .btn {
  margin-top: 1.15rem;
  width: 100%;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.375rem;
  color: #9a3b2f;
}

.thanks-kicker {
  margin: 0 0 0.55rem;
  font-size: 2rem;
  font-weight: 350;
  line-height: 1.2;
  color: var(--black);
}

.thanks-body {
  margin: 0;
  color: var(--black-soft);
  font-size: 1.125rem;
  line-height: 1.555;
}

#thanks-email {
  font-weight: 500;
  word-break: break-word;
}

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