/* My New Retirement reach site. Same design system as the College Action
   Plan site ("D1"), in My New Retirement's green and blue. Agents' team or
   Pro Branding colours replace --brand and --accent (see
   MynewretirementWeb.Branding); the tints below are mixed from them. */

:root {
  /* Room left for the sticky header when jumping to an anchor like #signup. */
  --header-clearance: 76px;
  /* The hero band. */
  --brand: #7cb442;
  --brand-ink: #10181a;
  /* Buttons and accents. */
  --accent: #1b7aab;
  --accent-ink: #ffffff;
  --brand-dark: color-mix(in srgb, var(--brand) 52%, #000);
  --brand-darker: color-mix(in srgb, var(--brand) 38%, #000);
  --brand-pale: color-mix(in srgb, var(--brand) 12%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 32%, #fff);
  --ink: #10181a;
  --text: #1c2326;
  --muted: #46535a;
  --subtle: #5a666b;
  --line: #c9d5d9;
  --charcoal: #1c2326;
  --charcoal-deep: #10181a;
  /* The headline's second line on the dark hero. */
  --brand-light: color-mix(in srgb, var(--brand) 55%, #fff);
  /* Follows the brand colour, as do the glows and shadows below. */
  /* The green in our own logo (the mark and "New"); an agent's main colour. */
  --logo-accent: #7cb342;
  --video-bg: color-mix(in srgb, var(--brand) 22%, #0b1012);
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 30px 60px -30px color-mix(in srgb, var(--brand-darker) 50%, transparent);
  --max: 1200px;
}

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

html {
  scroll-padding-top: var(--header-clearance);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--brand-dark);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-dark {
  background: var(--charcoal);
  color: var(--white);
}

.button-dark:hover {
  background: #000;
  color: var(--white);
}

.button-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-accent:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  color: var(--accent-ink);
}

/* Secondary action on a white background. */
.button-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}

.button-outline:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--brand-dark);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Hero (photo under a charcoal scrim) ---------- */

/* One of the hero photos, picked at random per page load (`--hero-photo` is
   set on <body> by the root layout). A charcoal gradient keeps the copy on
   the left readable and fades out over the photo on the right, where a soft
   green glow picks up the brand. */
.hero {
  position: relative;
  /* `clip` rather than `hidden`: hidden would make the hero a scroll
     container and stop the sign-up form inside it from sticking. */
  overflow: clip;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(14, 22, 25, 0.95) 0%, rgba(14, 22, 25, 0.85) 36%, rgba(14, 22, 25, 0.45) 68%, rgba(14, 22, 25, 0.2) 100%),
    radial-gradient(ellipse 44% 60% at 82% 18%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 72%),
    var(--hero-photo, none) right center / cover no-repeat,
    var(--charcoal-deep);
}

/* Phones: the photo sits behind the whole column of copy, so darken it
   evenly instead of only on the left. */
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(14, 22, 25, 0.8), rgba(14, 22, 25, 0.74)),
      radial-gradient(ellipse 80% 40% at 90% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 72%),
      var(--hero-photo, none) 70% center / cover no-repeat,
      var(--charcoal-deep);
  }
}

.hero .headline span {
  color: var(--brand-light);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
}

.hero .video-frame {
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* White cards in the dark hero keep the page's dark text. */
.hero :where(.card, .scheduler, .profile-card, .roadmap-card) {
  color: var(--text);
}

/* Cards on the photo stay solid white inside the same translucent, blurred
   frame as the video. */
.hero :is(.card, .scheduler, .profile-card, .roadmap-card) {
  border: 8px solid rgba(255, 255, 255, 0.14);
  background-color: var(--white);
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.hero > * {
  position: relative;
}

/* Sticky header.
   `is-dark` (the default, set in the markup): a charcoal glass with the white
   logo and links. It stays dark at the top of the page and over light
   sections, and turns white with the colour logo once it scrolls over the
   dark hero or footer, so it always stands apart from what's behind it
   (app.js). `is-compact` (scrolled): smaller. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--ink);
  border-bottom: 1px solid rgba(16, 24, 26, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* With the 44px logo this keeps the header at its original 83.5px. */
  padding-top: 19.25px;
  padding-bottom: 19.25px;
  transition: padding 0.2s ease;
}

.site-header .logo {
  position: relative;
  display: block;
}

.site-header .logo :is(img, svg) {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(320px, 62vw);
  object-fit: contain;
  object-position: left center;
  transition: height 0.2s ease, opacity 0.3s ease;
}

.site-header .logo .logo-white {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.site-header.is-compact {
  background: rgba(255, 255, 255, 0.82);
}

/* A charcoal glass rather than white, so the white logo and links stay crisp
   when white cards (the video frame, the form) scroll underneath. */
.site-header.is-dark {
  background: rgba(16, 24, 26, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

.site-header.is-dark .logo:not(.logo--single) .logo-color {
  opacity: 0;
}

.site-header.is-dark .logo .logo-white {
  opacity: 1;
}

.site-header.is-compact .site-header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header.is-compact .logo :is(img, svg) {
  height: 33px;
}

/* A custom logo without a white version gets a light backing over the
   coloured hero, so it never disappears. */
.site-header.is-dark .logo--single {
  padding: 2px 8px;
  margin: -2px -8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.site-header.is-compact .site-nav a {
  padding-top: 6px;
  padding-bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner,
  .site-header .logo :is(img, svg),
  .site-nav a {
    transition: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.3s ease, padding 0.2s ease;
}

.site-nav a:hover {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--brand-pale);
}

.site-header.is-dark .site-nav a {
  color: var(--white);
}

.site-header.is-dark .site-nav a:hover,
.site-header.is-dark .site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.22);
}

.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.hero-body {
  padding-top: 48px;
  padding-bottom: 80px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.headline {
  margin: 20px 0 16px;
  max-width: 900px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Nothing above it: the hero's padding is the gap. */
.hero-body > .headline:first-child,
.hero-body-compact > .headline:first-child {
  margin-top: 0;
}

.headline span {
  display: block;
  font-weight: 500;
}

.lede {
  max-width: 680px;
  margin-bottom: 40px;
  font-size: 19px;
  line-height: 1.55;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.hero-grid > .video-frame,
.hero-grid > .hero-main {
  flex: 999 1 560px;
  min-width: 0;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-grid > .card,
.hero-grid > .scheduler {
  flex: 1 1 340px;
  min-width: 0;
}

/* The sign-up form stays in view beside the video and roadmap, like the
   scheduler on the webinar page. */
@media (min-width: 1000px) {
  .hero-grid > .card {
    position: sticky;
    top: var(--header-clearance);
  }
}

/* The roadmap, as a card under the intro video. */
.roadmap-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.roadmap-card h2 {
  margin-bottom: 24px;
  font-size: 22px;
  line-height: 1.2;
}

/* A vertical timeline: number on the left, joined by a line, text beside it. */
.roadmap-card .roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-card .roadmap::before {
  display: none;
}

.roadmap-card .roadmap li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding-bottom: 22px;
}

.roadmap-card .roadmap li:last-child {
  padding-bottom: 0;
}

/* The connector, from under each number down to the next one. */
.roadmap-card .roadmap li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--brand-soft);
}

.roadmap-card .step-number {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.roadmap-card .roadmap h3 {
  align-self: end;
  margin-top: 2px;
  font-size: 17px;
}

.roadmap-card .roadmap p {
  font-size: 15px;
}

/* ---------- Video ---------- */

.video-frame {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--video-bg);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  font-weight: 700;
}

.video-placeholder .play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Video playlist ----------
   Thumbnails under the main video when there is more than one intro video.
   Clicking one plays it in the main player (app.js). */

.player {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.playlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.playlist-item {
  all: unset;
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
}

.playlist-item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 10px;
}

.playlist-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 90% 100% at 80% 15%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--brand) 10%, #2a3133), color-mix(in srgb, var(--brand) 8%, #141a1c));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.playlist-item:nth-child(even) .playlist-thumb {
  background:
    radial-gradient(ellipse 90% 100% at 15% 90%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 70%),
    linear-gradient(210deg, color-mix(in srgb, var(--brand) 10%, #2a3133), color-mix(in srgb, var(--brand) 8%, #141a1c));
}

.playlist-thumb[style] {
  background-size: cover;
  background-position: center;
}

/* Darkens a real thumbnail image so the play mark and badge stay legible. */
.playlist-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 18, 0.3);
}

.playlist-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-left: 13px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.playlist-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.playlist-badge:empty {
  display: none;
}

.playlist-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.playlist-item:hover .playlist-thumb {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.playlist-item[aria-pressed="true"] {
  color: var(--white);
}

.playlist-item[aria-pressed="true"] .playlist-thumb {
  box-shadow: 0 0 0 2px var(--brand);
}

.playlist-item[aria-pressed="true"] .playlist-thumb::after {
  display: none;
}

.playlist-item[aria-pressed="true"] .playlist-badge {
  display: block;
  background: var(--brand);
  color: var(--brand-ink);
}

/* More than four videos: one row of four that scrolls sideways, with arrows
   either side (app.js). Two at a time on a phone. */
.playlist-wrap {
  min-width: 0;
}

.playlist-wrap.is-scrolling {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.playlist-wrap.is-scrolling .playlist {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 14px) / 4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Room for the focus ring and the playing item's ring, which the scroll
     box would otherwise clip. */
  padding: 6px 4px;
  margin: -6px -4px;
}

.playlist-wrap.is-scrolling .playlist::-webkit-scrollbar {
  display: none;
}

.playlist-wrap.is-scrolling .playlist-item {
  scroll-snap-align: start;
}

.playlist-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  /* Level with the middle of the thumbnails rather than the titles under them. */
  margin-bottom: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.playlist-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
}

.playlist-arrow:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.playlist-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 640px) {
  .playlist-wrap.is-scrolling {
    gap: 6px;
  }

  .playlist-wrap.is-scrolling .playlist {
    grid-auto-columns: calc((100% - 14px) / 2);
  }

  .playlist-arrow {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-wrap.is-scrolling .playlist {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-thumb {
    transition: none;
  }
}

/* ---------- Cards & forms ---------- */

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 6px 0 20px;
  font-size: 24px;
  line-height: 1.2;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field-row > .field {
  flex: 1 1 130px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.lead-form .button {
  margin-top: 6px;
  min-height: 54px;
  font-size: 17px;
}

/* The sign-up questions a Premium agent added (SignupFields): the state
   select looks like the inputs, and "(optional)" is lighter. */
.lead-form .field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
}

.lead-form .field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field__optional {
  font-weight: 500;
  color: var(--subtle);
}

.fine-print {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--subtle);
}

.fine-print svg {
  flex: none;
  margin-top: 2px;
}

.flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.flash-error {
  background: #fdecec;
  color: #8a1c1c;
}

.flash-info {
  background: var(--brand-pale);
  color: var(--brand-darker);
}

/* ---------- Roadmap ---------- */



.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 23px;
  height: 2px;
  background: var(--brand-soft);
}

.roadmap li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.roadmap h3 {
  font-size: 19px;
}

.roadmap p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Agent ---------- */

/* A light ground with a brand-colour wash in the bottom-left corner and the logo
   mark drawn large and cropped in the top-right corner. The agent's photo
   sits on an offset brand-colour slab. */
.agent-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background:
    radial-gradient(ellipse 50% 70% at 6% 108%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, color-mix(in srgb, var(--brand) 6%, #fff) 100%);
}

.agent-band::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: min(420px, 50vw);
  aspect-ratio: 43.1 / 35;
  /* The My New Retirement mark, drawn in the brand colour. */
  background: var(--brand);
  -webkit-mask: url("/images/icon-green-186fe6b1497efa5dcde6d91358a9d49a.svg?vsn=d") no-repeat center / contain;
  mask: url("/images/icon-green-186fe6b1497efa5dcde6d91358a9d49a.svg?vsn=d") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.agent-band > .container {
  position: relative;
}

.agent-band__title {
  max-width: 720px;
  margin-bottom: 32px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.agent-band__title span {
  color: var(--brand-dark);
}

.agent-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 36px 40px 36px 36px;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e6);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--brand-darker) 40%, transparent);
}

.agent-photo-wrap {
  position: relative;
  flex: none;
  margin: 0 18px 18px 0;
}

.agent-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 22px;
  background: var(--brand);
}

.agent-photo {
  position: relative;
  width: 168px;
  height: 168px;
  border: 5px solid var(--white);
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 12%, #384245), color-mix(in srgb, var(--brand) 8%, #1e2427));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
}

.agent-book {
  flex: 0 1 260px;
  display: grid;
  gap: 10px;
  padding-left: 32px;
  border-left: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e6);
}

.agent-book h3 {
  font-size: 18px;
  line-height: 1.25;
}

.agent-book p {
  font-size: 14px;
  color: var(--subtle);
}

.agent-book .button {
  justify-self: start;
  margin-top: 4px;
}

/* Narrow screens: the booking panel moves under the details, button sized
   to its label rather than stretched across. */
@media (max-width: 860px) {
  .agent-book {
    flex-basis: 100%;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e6);
  }
}

.agent-info {
  flex: 999 1 380px;
  min-width: 0;
}

.agent-info h2 {
  margin: 6px 0 8px;
  font-size: 30px;
}

.agent-info p {
  margin-bottom: 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.agent-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.agent-contact a,
.agent-contact span {
  padding: 6px 12px;
  border-radius: 999px;
  /* Highlights, so the accent (main) colour. */
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: color-mix(in srgb, var(--accent) 85%, #000);
  text-decoration: none;
}

.agent-contact a:hover {
  background: color-mix(in srgb, var(--accent) 20%, #fff);
  color: color-mix(in srgb, var(--accent) 85%, #000);
}

/* ---------- Contact page ---------- */

.profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card__about {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

.profile-card__photo {
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-pale);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--brand-pale);
}

.profile-card__info {
  flex: 1 1 280px;
  min-width: 0;
}

.profile-card__info h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
}

.profile-card__info p {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.profile-card__license {
  font-size: 14px;
  color: var(--subtle);
}

/* How to reach the agent, down the right side of the same card. Moves below
   the profile (still inside the card) when there isn't room. */
.contact-methods {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 24px;
  list-style: none;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  border-left: 1px solid #e3edef;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.contact-method:hover {
  background: var(--brand-pale);
  color: var(--text);
}

.contact-method__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method__label {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.contact-method__value {
  display: block;
  font-size: 14px;
  color: var(--brand-dark);
  overflow-wrap: break-word;
}

@media (max-width: 760px) {
  .contact-methods {
    border-left: 0;
    border-top: 1px solid #e3edef;
  }
}

.booking {
  padding: 72px 0;
}

.booking h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 3vw, 34px);
}

.booking p {
  margin-bottom: 24px;
  color: var(--muted);
}

.booking__embed {
  padding: 8px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #dce6e9;
}

.webinar-banner {
  background: var(--brand-pale);
}

.webinar-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.webinar-banner h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.webinar-banner p {
  color: var(--muted);
}

/* ---------- Webinar page ---------- */

.hero-body-compact {
  padding-top: 32px;
  padding-bottom: 48px;
}

.webinar-body {
  background: #f3f8f9;
  padding: 32px 0 88px;
}

/* The greeting, under the webinar video. */
.webinar-message h1 {
  margin-bottom: 6px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.webinar-message p {
  font-size: 17px;
  color: var(--muted);
}

.webinar-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.webinar-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scheduler {
  flex: 1 1 340px;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 1000px) {
  .scheduler {
    position: sticky;
    /* Clears the compact sticky header. */
    top: var(--header-clearance);
  }
}

.scheduler-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid #edf2f3;
}

.scheduler-head .avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-pale);
  font-size: 18px;
}

.scheduler-head strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.scheduler-body {
  padding: 8px;
}

.scheduler-body .calendly-inline-widget {
  min-width: 0 !important;
}

/* Shown in place of a scheduler when the agent hasn't set one up. Same
   content as the Debt Action Plan site's "Contact Your Debt Specialist". */
.contact-card {
  padding: 20px 14px;
}

.contact-card h3 {
  margin-bottom: 16px;
  font-size: 18px;
  text-align: center;
}

.contact-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.contact-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 10%;
  object-fit: cover;
}

.contact-card__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.contact-card__lines li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card__lines svg {
  flex: none;
  color: var(--subtle);
}

.contact-card__lines a {
  text-decoration: none;
}

/* ---------- Schedule a Meeting dialog ---------- */

.schedule-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.schedule-dialog::backdrop {
  background: rgba(16, 24, 26, 0.55);
}

.schedule-dialog__body {
  padding: 32px;
}

.schedule-dialog h2 {
  margin-bottom: 6px;
  font-size: 24px;
  text-align: center;
}

.schedule-dialog__lede,
.schedule-dialog__hint {
  margin-bottom: 12px;
  text-align: center;
  color: var(--muted);
}

.schedule-dialog__hint {
  font-weight: 700;
  color: var(--brand-dark);
}

.schedule-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.chapters {
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid #dce6e9;
}

.chapters h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.chapters ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapters li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf2f3;
  font-size: 15px;
}

.chapters li span {
  flex: none;
  width: 24px;
  font-weight: 800;
  color: var(--brand-dark);
}

/* ---------- Simple pages ---------- */

.page-body {
  padding: 64px 0 88px;
}

.prose {
  max-width: 820px;
}

.prose h1 {
  margin-bottom: 24px;
  font-size: 34px;
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.prose p,
.prose li {
  margin-bottom: 12px;
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 24px;
  border-radius: 16px;
  background: #f3f8f9;
}

.checklist h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.checklist p {
  color: var(--muted);
}

.notice {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.notice img {
  height: 40px;
  margin-bottom: 32px;
}

.notice h1 {
  margin-bottom: 12px;
  font-size: 30px;
}

.notice p {
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

/* The same charcoal as the hero's scrim, so the page opens and closes dark.
   A brand-colour line runs along the top edge, with a faint glow under it. */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-deep);
  color: #c3cdd1;
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand) 25%, var(--brand) 75%, transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 60vw);
  height: 340px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent);
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: #d5e1e4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--white);
}

.site-footer__top {
  padding-top: 56px;
  padding-bottom: 40px;
}

/* About Us (with the disclaimer under it), the site's pages and, with the
   agent's own accounts, Follow Me. */
.site-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
}

/* With the agent's Follow Me as a third column. */
.site-footer__columns--follow {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
}

@media (max-width: 760px) {
  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

.site-footer__about p {
  max-width: 520px;
  line-height: 1.6;
}

.site-footer__disclaimer {
  margin-top: 14px;
  color: #8d9ca2;
}

/* The footer's small print: About Us's disclaimer and the note about the
   agent's own content. */
.site-footer__disclaimer,
.site-footer__agent-disclaimer {
  font-size: 12px;
  line-height: 1.6;
}

.site-footer__links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer__links a {
  font-weight: 600;
  color: var(--white);
}

/* "Do not sell or share my info": a button styled as one of the links. */
.site-footer__optout {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.site-footer__optout:hover {
  text-decoration: underline;
}

.site-footer__optout-done {
  margin: 0;
  font-size: 13px;
  color: #8d9ca2;
}

.site-footer__follow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__follow a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3b4a50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__follow a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8d9ca2;
}

.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
}

.site-footer__bottom img {
  display: block;
  height: 22px;
  width: auto;
}

/* As the header's .logo--single: a logo without a white version. */
.site-footer__bottom .site-footer__logo--single {
  box-sizing: content-box;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

/* The note that the agent's own content isn't ours, on its own line above
   the logo and copyright. */
.site-footer__agent-disclaimer {
  flex-basis: 100%;
  margin: 0;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .hero-body {
    padding-top: 28px;
    padding-bottom: 56px;
  }


  .roadmap::before {
    display: none;
  }

  .agent-card {
    padding: 28px;
    gap: 24px;
  }

  .card {
    padding: 22px;
  }
}

/* ---------- Pro Branding embed (/iframe/webinar-users) ---------- */

.embed-body {
  background: transparent;
}

.embed {
  max-width: 1000px;
  margin: 0 auto;
}

.embed .video-frame {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.embed .video {
  border-radius: 0;
}

/* An embedded video that can't play here (no Premium, no registered
   website, or someone else's website): the reason, centred in the frame. */
.embed-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  font-family: Manrope, sans-serif;
  color: #444;
  background: #f4f5f7;
}

/* ---------- Mobile navigation ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

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

/* Four links don't fit beside the logo on a phone: they fold into a menu.
   Without JS the toggle stays hidden and the links wrap under the logo. */
@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-header.is-dark .nav-toggle {
    color: var(--white);
  }
}

/* ---------- Ticks ---------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list .check {
  flex: none;
  margin-top: 2px;
  padding: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
}


.accent-text {
  color: var(--brand-dark);
}

.card-intro {
  margin: -10px 0 18px;
  color: var(--muted);
}

/* A client on their own link: greeted by name instead of asked for it. */
.client-greeting {
  margin: 0 0 18px;
  font-size: 1.125rem;
  font-weight: 700;
}

/* "Not you?": forgets the client and shows the normal form. */
.client-greeting__not-you {
  margin-left: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Landing page sections ---------- */

.section-title {
  max-width: 820px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.intro-band {
  padding: 72px 0 56px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-bio {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.cta-band {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

.cta-band h2 {
  max-width: 720px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

/* ---------- After the webinar ---------- */

.next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--brand-soft);
}

.next-step > div {
  flex: 1 1 320px;
}

.next-step h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.next-step p {
  color: var(--muted);
}

.next-step--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.next-step--stacked > div {
  flex: none;
}

.checklist-note {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Forms (contact, Savings Snapshot) ---------- */

.form-body {
  padding: 56px 0 72px;
  background: color-mix(in srgb, var(--brand) 7%, #f2f4f5);
}

.narrow {
  max-width: 760px;
}

.lede--flush {
  margin-bottom: 0;
}

.snapshot-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section legend {
  margin-bottom: 14px;
  padding: 0;
  font-size: 19px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.field select,
.field textarea {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
}

.field select {
  height: 46px;
}

.field textarea {
  padding: 12px 14px;
  resize: vertical;
}

.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field-label {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chip label:hover {
  background: var(--brand-pale);
}

.chip input:checked + label {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.chip input:checked + label::before {
  content: "\2713";
}

.chip input:focus-visible + label {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.snapshot-form .button {
  align-self: flex-start;
  min-height: 54px;
  font-size: 17px;
}

.fine-print--top {
  margin: 0 0 20px;
}

/* ---------- Savings Snapshot in steps (snapshot.js) ---------- */

.snapshot-form [hidden],
.snapshot-card [hidden] {
  display: none !important;
}

.snap-progress {
  --snap-progress: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--subtle);
}

.snap-progress::before,
.snap-progress::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 2px;
  background: #e3eaec;
}

.snap-progress::after {
  right: auto;
  width: calc((100% - 32px) * var(--snap-progress));
  background: var(--brand);
  transition: width 0.3s ease;
}

.snap-progress li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.snap-progress li:first-child {
  align-items: flex-start;
}

.snap-progress li:last-child {
  align-items: flex-end;
}

.snap-progress__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef2f3;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.snap-progress li.is-active {
  color: var(--ink);
}

.snap-progress li.is-active .snap-progress__dot {
  background: var(--accent);
  color: var(--accent-ink);
}

.snap-progress li.is-done .snap-progress__dot {
  background: var(--brand);
  color: var(--brand-ink);
}

.snap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.snapshot-form:not(.is-stepped) .snap-layout {
  grid-template-columns: minmax(0, 1fr);
}

.snap-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.snap-alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecec;
  font-size: 14px;
  font-weight: 700;
  color: #b42318;
}

/* About you: date of birth, gender, marital status, children, state */
.snap-person {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--brand-pale);
}

.snap-choice {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.snap-choice > legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
}

.snap-person .snap-choice > legend {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.snap-seg {
  display: flex;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.snap-seg > span {
  position: relative;
  flex: 1;
}

.snap-seg > span + span {
  border-left: 1px solid var(--line);
}

.snap-seg input,
.snap-tiles input,
.snap-yn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.snap-seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.snap-seg input:checked + label {
  background: var(--accent);
  color: var(--accent-ink);
}

.snap-seg input:focus-visible + label,
.snap-tiles input:focus-visible + label,
.snap-yn input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.snap-stepper {
  display: flex;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.snap-stepper button {
  width: 46px;
  border: 0;
  background: #f6f8f8;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.snap-stepper button:hover {
  background: var(--brand-soft);
}

.snap-stepper input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  -moz-appearance: textfield;
  appearance: textfield;
}

.snap-stepper input::-webkit-inner-spin-button,
.snap-stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Your savings: income tiles, amount sliders */
.snap-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.snap-tiles > span {
  position: relative;
}

.snap-tiles label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.snap-tiles label:hover {
  border-color: var(--accent);
}

.snap-tiles input:checked + label {
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: color-mix(in srgb, var(--accent) 70%, #000);
}

.snap-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.snap-amount.is-slider select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.snap-amount {
  position: relative;
}

.snap-amount__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--subtle);
}

.snap-amount:not(.is-slider) .snap-amount__value {
  display: none;
}

.snap-amount.is-set .snap-amount__value {
  color: var(--ink);
}

.snap-amount[data-plus].is-set .snap-amount__value {
  color: var(--accent);
}

.snap-amount__range {
  --fill: 0%;
  width: 100%;
  height: 28px;
  margin: 4px 0 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}

.snap-amount__ticks {
  position: relative;
  height: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}

.snap-amount__ticks span {
  position: absolute;
  transform: translateX(-50%);
}

/* Positions over the slider's 28 stops: the blank start (-1), then $0 at 1,
   $500 at 11 and $1,000 at 21 of 27. */
.snap-amount__ticks span:nth-child(1) {
  left: 3.7%;
}

.snap-amount__ticks span:nth-child(2) {
  left: 40.7%;
}

.snap-amount__ticks span:nth-child(3) {
  left: 77.8%;
}

.snap-amount__ticks span:nth-child(4) {
  right: 0;
  transform: none;
}

.snap-amount.is-invalid,
.snap-choice.is-invalid,
.snap-q.is-invalid {
  border-radius: 14px;
  outline: 2px solid #b42318;
  outline-offset: 6px;
}

/* How you feel: one card per question */
.snap-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.snap-q {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.snap-q:has(input:checked) {
  border-color: var(--brand);
}

.snap-q.is-invalid {
  outline-offset: 2px;
}

.snap-q__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.snap-q__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.snap-q__text {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.snap-yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.snap-yn > span {
  position: relative;
}

.snap-yn label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.snap-yn label:hover {
  border-color: var(--accent);
}

.snap-yn input:checked + label {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Back / Next / Save */
.snap-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.snap-nav__gap {
  flex: 1;
}

.snapshot-form:not(.is-stepped) .snap-nav__gap {
  display: none;
}

.snap-back {
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
}

.snap-back:hover {
  border-color: var(--charcoal);
}

.snapshot-form .snap-nav .button {
  align-self: auto;
}

/* Summary beside the steps */
.snap-panel {
  position: sticky;
  top: calc(var(--header-clearance) + 12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfb;
}

.snap-panel__title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.snap-sum {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e3eaec;
  font-size: 14px;
}

.snap-panel__title + .snap-sum {
  border-top: 0;
}

.snap-sum > div {
  flex: 1;
  min-width: 0;
}

.snap-sum b {
  display: block;
}

.snap-sum span {
  font-size: 13px;
  color: var(--subtle);
}

.snap-link {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 80%, #000);
  cursor: pointer;
}

.snap-yearly {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #e3eaec;
}

.snap-yearly__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.snap-yearly__row span {
  color: var(--muted);
}

.snap-bar {
  display: flex;
  height: 14px;
  margin-bottom: 6px;
  border-radius: 7px;
  overflow: hidden;
  background: #eef2f3;
}

.snap-bar i {
  height: 100%;
  background: var(--brand);
}

.snap-bar i.is-extra {
  background: var(--accent);
}

.snap-callout {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  font-size: 14px;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent) 70%, #000);
}

@media (max-width: 900px) {
  .snap-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .snap-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .snap-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snap-amounts,
  .snap-questions {
    grid-template-columns: minmax(0, 1fr);
  }

  .snap-progress {
    font-size: 12px;
  }

  .snap-amount__ticks span:nth-child(3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snap-progress::after,
  .snap-tiles label {
    transition: none;
  }
}

/* ---------- Agent content from Pro Branding ---------- */

.custom-content {
  overflow-wrap: break-word;
}

.custom-content img,
.custom-content iframe,
.custom-content video {
  max-width: 100%;
  height: auto;
}

.custom-content p,
.custom-content ul,
.custom-content ol {
  margin: 0 0 12px;
}

.custom-content h1,
.custom-content h2,
.custom-content h3 {
  margin: 0 0 12px;
}

/* ---------- The agent's own spots (Marketing Pages, PageSpots) ---------- */

.ar-band {
  padding: 40px 0;
}

.ar-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ar-blocks:empty {
  display: none;
}

/* Blocks side by side (PageSpots.rows): two or three to a line, each an
   equal share; on a phone they stack again. */
.ar-row {
  display: grid;
  grid-template-columns: repeat(var(--ar-cols, 2), minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Each share is as tall as the line, its contents in the middle. */
.ar-row > .ar-block:not(.ar-button) {
  display: grid;
  align-content: center;
}

.ar-row > .ar-button {
  align-items: center;
}

.ar-row-3 {
  --ar-cols: 3;
}

@media (max-width: 720px) {
  .ar-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ar-block {
  min-width: 0;
}

.ar-video {
  width: 100%;
  max-width: 880px;
}

.ar-button {
  display: flex;
}

.ar-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ar-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #cbd5e1;
  font-weight: 600;
}

/* A block's look (PageSpots): alignment, a button's size and colour. */
.ar-align-center {
  text-align: center;
  justify-content: center;
}

.ar-align-right {
  text-align: right;
  justify-content: flex-end;
}

.ar-align-center.ar-video .video-frame,
.ar-align-center.ar-image img {
  margin-left: auto;
  margin-right: auto;
}

.ar-align-right.ar-video .video-frame,
.ar-align-right.ar-image img {
  margin-left: auto;
}

.button.button-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.button.button-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 18px;
}

.button.button-custom.button-accent {
  background: var(--button-color);
  color: #fff;
}

.button.button-custom.button-outline {
  color: var(--button-color);
  box-shadow: inset 0 0 0 2px var(--button-color);
}

/* A text's or button's type style and colour (PageSpots), from the page's
   own: the headline, a section title and the small capital label (body
   text is the default); the words in black, the page's main or second
   colour (they follow its branding), or the agent's own. */
.ar-font-heading {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ar-font-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.ar-font-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A text smaller or larger than its type style: the whole block scales,
   so it works with any of them. */
.ar-text.ar-size-sm {
  zoom: 0.85;
}

.ar-text.ar-size-lg {
  zoom: 1.25;
}

.ar-text:is(.ar-font-heading, .ar-font-title, .ar-font-label) :where(p, h1, h2, h3, h4, li) {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.ar-button.ar-font-heading .button {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ar-button.ar-font-title .button {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.ar-button.ar-font-label .button {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar-color-ink {
  --ar-fg: var(--ink);
}

.ar-color-primary {
  --ar-fg: var(--accent);
}

.ar-color-secondary {
  --ar-fg: var(--brand);
}

.ar-color-custom {
  --ar-fg: var(--ar-text);
}

.ar-text.ar-fg,
.ar-text.ar-fg :where(p, h1, h2, h3, h4, li),
.ar-button.ar-fg .button,
.ar-button.ar-fg .button:hover {
  color: var(--ar-fg);
}

.ar-shared-header .ar-blocks {
  padding: 12px 0;
}

.agent-info .ar-spot {
  margin-top: 16px;
}

.landing-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.landing-content {
  flex: 999 1 560px;
  min-width: 0;
}

.landing-grid > .card {
  flex: 1 1 340px;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e6);
}

@media (min-width: 1000px) {
  .landing-grid > .card {
    position: sticky;
    top: var(--header-clearance);
  }
}

/* The agent's own footer content from Pro Branding, above the columns. */
.site-footer__custom {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__disclaimer a {
  white-space: nowrap;
}

/* ---------- "No agent" page ---------- */

.notice__video {
  margin-top: 32px;
  text-align: left;
}

.notice p + p {
  margin-top: 10px;
}

/* ---------- Armed Forces and First Responders pages ---------- */

/* The division's flag video, fixed behind the page and darkened. */
.division-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.division-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.division-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--division-overlay);
}

.theme-armedforces {
  --brand: #103045;
  --brand-ink: #ffffff;
  --division-overlay: rgba(16, 48, 69, 0.9);
}

.theme-firstresponders {
  --brand: #510000;
  --brand-ink: #ffffff;
  --division-overlay: rgba(0, 0, 0, 0.7);
}

.theme-armedforces,
.theme-firstresponders {
  background: transparent;
}

/* The flag shows through the hero; the white cards sit on top of it. */
.theme-armedforces .hero,
.theme-firstresponders .hero {
  background: transparent;
}

.theme-armedforces .site-footer::before,
.theme-armedforces .site-footer::after,
.theme-firstresponders .site-footer::before,
.theme-firstresponders .site-footer::after {
  display: none;
}

.theme-armedforces .site-footer,
.theme-firstresponders .site-footer {
  background: var(--brand);
}

.division-logo {
  text-align: center;
}

.division-logo img {
  max-width: 300px;
  height: auto;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .division-backdrop video {
    display: none;
  }

  .division-backdrop {
    background: var(--brand);
  }
}

/* ---------- Pro Branding embed: page layouts ---------- */

.embed-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 8px;
}

.embed-grid > .video-frame {
  flex: 999 1 480px;
  min-width: 0;
}

.embed-grid > .card,
.embed-grid > .next-step {
  flex: 1 1 300px;
  min-width: 0;
}

.embed-narrow {
  max-width: 520px;
  padding: 8px;
}

.embed .card {
  box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, #e1e5e6);
}

.embed-title {
  margin-bottom: 8px;
  font-size: 28px;
}

.embed-intro {
  margin-bottom: 20px;
  color: var(--muted);
}

/* ---------- Scroll reveal ----------
   Elements fade in and rise slightly the first time they scroll into view.
   The selector list must match REVEAL_SELECTOR in assets/js/app.js. The
   `js-reveal` class is only added when the browser can reveal them and the
   visitor hasn't asked for reduced motion (see the root layout).
   `:where()` keeps the hiding rule's specificity low, so `.is-revealed`
   below always wins. (`:is()` took its most specific selector's weight and
   kept revealed elements hidden.) */

.js-reveal :where(.hero .headline,
  .hero .lede,
  .video-frame,
  .hero-grid > .card,
  .roadmap-card .roadmap li,
  .webinar-message,
  .chapters,
  .scheduler,
  .profile-card,
  .booking__embed,
  .webinar-banner__inner,
  .agent-card,
  .checklist li,
  .intro,
  .next-step,
  .snapshot-card,
  .cta-band__inner,
  .site-footer__columns > section) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .is-revealed {
  opacity: 1;
  transform: none;
}

/* The agent's own blocks (PageSpots) show as they are: the editor adds
   them after the page has loaded, when nothing would reveal them. */
.js-reveal .ar-blocks :where(.video-frame, .chapters) {
  opacity: 1;
  transform: none;
}

/* Tracking consent (track.js shows it only where consent is required).
   Accept and Decline look the same on purpose. */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-radius: 14px;
  /* See-through, but solid enough to read over anything. */
  background: rgba(16, 24, 26, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.5;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0;
  flex: 1 1 300px;
}

.consent-banner a {
  color: var(--white);
  text-decoration: underline;
}

.consent-banner__actions {
  display: flex;
  gap: 10px;
}

.consent-banner__button {
  min-width: 96px;
  padding: 8px 16px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consent-banner__button:hover,
.consent-banner__button:focus-visible {
  background: var(--white);
  color: var(--charcoal-deep);
}

/* The details page (as on College Action Plan). */
.card p + p {
  margin-top: 12px;
}

.details-subhead {
  margin-top: 24px;
  font-size: 18px;
}

.details-cta {
  margin-top: 24px;
}

.card .checklist {
  margin-top: 16px;
}

.lede--tight {
  margin-bottom: 16px;
}

/* The My New Retirement logo, drawn inline (MynewretirementWeb.MnrLogo). */
.mnr-logo__ink {
  fill: #231f20;
}

.mnr-logo__accent {
  fill: var(--logo-accent);
}
