/* Debt Action Plan reach site. Same design as the College Action Plan site
   ("D1 · Cyan Classic"); DAP-only components are at the end. */

:root {
  /* Room left for the sticky header when jumping to an anchor like #signup. */
  --header-clearance: 76px;
  /* Platform colour (from the logo): the hero band and accents. An agent's
     or team's main colour replaces it and every shade below
     (DebtActionPlanWeb.Branding); keep the shades here as variables, or as
     color-mix() of them, so nothing stays orange on a branded page. */
  --brand: #f36f21;
  /* Text and icons sitting on the brand colour. */
  --brand-on: #10181a;
  /* Brand-coloured text, links and buttons on white (readable contrast). */
  --brand-text: #b04a0e;
  --brand-text-hover: #8a3a0b;
  --brand-pale: #fef0e7;
  --brand-soft: #fbd2b8;
  /* Hover on a brand button. */
  --brand-hover: #e0611a;
  /* Dark brand text (figures, notes on pale brand fills). */
  --brand-text-deep: #7a3410;
  /* The faintest brand wash, at the foot of the agent band. */
  --brand-wash: #fdf6f1;
  /* The brand colour at its darkest, for brand-tinted shadows. */
  --brand-deep: #5a2608;
  /* The orange in our own logo (DebtActionPlanWeb.DapLogo). */
  --logo-accent: #f37021;
  --ink: #10181a;
  --text: #1c2326;
  --muted: #46535a;
  --subtle: #5a666b;
  --line: #c9d5d9;
  /* The second brand colour: dark surfaces (header glass, hero, footer, dark
     buttons and panels). An agent's or team's secondary colour replaces
     these. */
  --charcoal: #1c2326;
  --charcoal-deep: #10181a;
  /* The hero photo's scrim. */
  --scrim: #0e1619;
  /* The brand colour lightened, for the headline's second line on the dark hero. */
  --brand-light: #ffb784;
  --video-bg: #0e3b42;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 30px 60px -30px color-mix(in srgb, var(--brand-deep) 55%, 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-text);
}

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

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-text);
}

.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` is what the app's live preview (agencyrocket-app
   renderBlocks) calls the agent's filled button: the same as ours. */
.button-brand,
.button-accent {
  background: var(--brand);
  color: var(--brand-on);
}

.button-brand:hover,
.button-accent:hover {
  background: var(--brand-hover);
  color: var(--brand-on);
}

.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
   orange 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, color-mix(in srgb, var(--scrim) 95%, transparent) 0%, color-mix(in srgb, var(--scrim) 85%, transparent) 36%, color-mix(in srgb, var(--scrim) 45%, transparent) 68%, color-mix(in srgb, var(--scrim) 20%, transparent) 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, color-mix(in srgb, var(--scrim) 80%, transparent), color-mix(in srgb, var(--scrim) 74%, transparent)),
      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);
}

/* White cards inside the dark hero keep the page's dark text. */
.hero :where(.card, .scheduler, .profile-card, .panel, .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, .panel, .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 .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);
}

.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;
  max-width: 100%;
}

.site-header .logo :is(img, svg) {
  display: block;
  height: 44px;
  width: auto;
  /* Wider than a small phone: it shrinks to fit. */
  max-width: 100%;
  object-fit: contain;
  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: color-mix(in srgb, var(--charcoal-deep) 82%, transparent);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

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

/* An agent's logo without a white version gets a light backing on the dark
   header, 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-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;
}

.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;
  flex-wrap: wrap;
  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) 12%, 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-text);
  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-text);
}

.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;
}

/* No label above it (the landing pages): the hero's padding is the gap. */
.hero-body > .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 {
  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 a site has 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, #2b3a40, #141d20);
  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, #2b3a40, #141d20);
}

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

/* 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-on);
}

/* 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;
  }
}

/* ---------- 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);
}

/* A client on their own link: no fields, just a greeting and the button. */
.lead-form__greeting {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

/* "Not you?" after the greeting: back to the normal form. */
.lead-form__not-you {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
}

.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-text-hover);
}

/* ---------- 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-on);
  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 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 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%, var(--brand-wash) 100%);
}

.agent-band::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: min(560px, 62vw);
  aspect-ratio: 99 / 67.5;
  /* The Debt Action Plan mark, drawn in the brand colour. */
  background: var(--brand);
  -webkit-mask: url("/images/icon-brand-d84a971ec75d4924695d8b8a981cf597.svg?vsn=d") no-repeat center / contain;
  mask: url("/images/icon-brand-d84a971ec75d4924695d8b8a981cf597.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-text);
}

.agent-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 36px 40px 36px 36px;
  border: 1px solid #e3e9eb;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--brand-deep) 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, #3a4a50, #1f2729);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
}

/* The label and name, with the agent's certification badges in the top
   corner of the open space to their right. The badges are taken out of the
   flow so they never push the text below them down. */
.agent-heading {
  position: relative;
}

/* Room for the badge only when there is one: beside the name, and below it
   too, so a short heading doesn't let the badge run into the bio. */
.agent-heading--badge {
  min-height: 96px;
  padding-right: 112px;
}

/* Level with the top of the label, inside the card's padding. */
.agent-badges--card {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-badges--card img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Phones: a smaller badge, so the name keeps its room. */
@media (max-width: 760px) {
  .agent-heading--badge {
    min-height: 64px;
    padding-right: 76px;
  }

  .agent-badges--card img {
    width: 64px;
    height: 64px;
  }
}

.agent-book {
  flex: 0 1 260px;
  display: grid;
  gap: 10px;
  padding-left: 32px;
  border-left: 1px solid #e3e9eb;
}

.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;
}

/* Phones: 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 #e3e9eb;
  }
}

.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;
  background: #f1f5f6;
  color: #2b383d;
  text-decoration: none;
}

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

/* ---------- 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-text);
  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: #f6fbfc;
  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-on);
  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-text);
  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 old 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-text);
}

.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-text);
}

/* ---------- 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 line runs along the top edge, with a faint glow under it. */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-deep);
  color: var(--footer-text, #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: var(--footer-text, #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, Follow Us. */
.site-footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 40px;
}

@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: var(--footer-muted, #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 link-looking button (track.js). */
.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 {
  font-size: 14px;
  color: var(--brand-light);
}

.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 var(--footer-line, #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: var(--footer-muted, #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;
}

/* ---------- 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,
  .webinar-message,
  .panel,
  .program-card,
  .media-card,
  .scheduler,
  .profile-card,
  .booking__embed,
  .webinar-banner__inner,
  .agent-card,
  .checklist li,
  .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;
}

/* ======================================================================
   Debt Action Plan components
   ====================================================================== */

.is-hidden {
  display: none !important;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.page-body--tint {
  background: #f3f8f9;
}

.button-outline {
  min-height: 42px;
  padding: 0 16px;
  background: var(--white);
  color: var(--brand-text);
  border: 1.5px solid var(--brand);
  font-size: 15px;
}

.button-outline:hover {
  background: var(--brand-pale);
  color: var(--brand-text-hover);
}

.lede p + p {
  margin-top: 12px;
}

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

.hero-body-compact > .lede + .lede {
  margin-top: -28px;
}

.lede__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 30px);
}

.webinar-message h1 span {
  display: block;
  font-weight: 500;
}

/* A white content card, used for most page sections. */
.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  border: 1px solid #dce6e9;
}

.panel h2 {
  font-size: 24px;
  line-height: 1.2;
}

.panel h3 {
  font-size: 17px;
}

.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.panel .panel__lead {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.panel__title {
  font-size: clamp(24px, 2.6vw, 30px);
}

.panel__image {
  width: 100%;
  border-radius: 14px;
}

.panel .panel__foot {
  align-self: stretch;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 700;
}

.hero .panel {
  border: 0;
  box-shadow: var(--shadow);
}

/* Lists with a tick (or a cross) in front of each line. */
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.checks svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-on);
}

.checks--not svg {
  background: #fdecec;
  color: #b42318;
}

/* What this program is / is not. */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.program-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border-top: 6px solid var(--brand);
  box-shadow: 0 20px 40px -30px color-mix(in srgb, var(--brand-deep) 45%, transparent);
}

.program-card--not {
  border-top-color: var(--charcoal);
}

.program-card h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

/* An image beside text, e.g. each step on the Program Details page. */
.media-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #dce6e9;
}

.media-card--flat {
  padding: 0;
  border: 0;
}

.media-card > div {
  flex: 999 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.media-card h3 {
  font-size: 19px;
  line-height: 1.3;
}

.media-card p {
  color: var(--muted);
  line-height: 1.6;
}

.media-card__image {
  flex: 1 1 200px;
  max-width: 280px;
}

.media-card__image img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.callout {
  padding: 24px 28px;
  border-left: 6px solid var(--brand);
  border-radius: 0 16px 16px 0;
  background: var(--brand-pale);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.report-teaser {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: #f3f8f9;
}

.report-intro {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.report-intro img {
  flex: 1 1 180px;
  max-width: 240px;
}

.report-intro > div {
  flex: 999 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.notice-card {
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px dashed var(--line);
  text-align: center;
}

.notice-card h2 {
  font-size: 22px;
}

.notice-card p {
  margin-top: 8px;
  color: var(--muted);
}

.notice__lead {
  font-weight: 700;
}

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

.notice__video {
  margin-top: 32px;
}

.notice--embed {
  padding: 48px 24px;
}

/* Pro Branding embed: video beside the registration form. */
.embed-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 8px;
}

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

.embed-grid > .card {
  flex: 1 1 300px;
}

.embed-body > div[aria-live] {
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Scenario entry ---------- */

.sim-hero {
  text-align: center;
}

.sim-hero .headline,
.sim-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.sim-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 8px;
  padding: 0;
  list-style: none;
}

.sim-progress__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.sim-progress__step + .sim-progress__step::before {
  content: "";
  width: clamp(16px, 5vw, 56px);
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.sim-progress__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-progress__step.is-active,
.sim-progress__step.is-done {
  color: var(--white);
}

.sim-progress__step.is-active .sim-progress__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-on);
}

.sim-progress__step.is-done .sim-progress__dot {
  background: var(--white);
  border-color: var(--white);
  color: var(--brand-text);
}

.sim-progress__step.is-done + .sim-progress__step::before {
  background: var(--brand);
}

/* The scenario entry's wizard header: the same steps, above the form on a
   light background, big enough to read as where you are. */
.sim-progress--wizard {
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto 32px;
}

.sim-progress--wizard .sim-progress__step {
  flex: 1 1 0;
  gap: 12px;
  font-size: 15px;
  color: var(--subtle);
}

.sim-progress--wizard .sim-progress__step:first-child {
  flex: 0 0 auto;
}

.sim-progress--wizard .sim-progress__step + .sim-progress__step::before {
  flex: 1 1 auto;
  width: auto;
  min-width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.sim-progress--wizard .sim-progress__dot {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-color: var(--line);
  background: var(--white);
  font-size: 16px;
}

.sim-progress--wizard .sim-progress__step.is-active,
.sim-progress--wizard .sim-progress__step.is-done {
  color: var(--ink);
}

.sim-progress--wizard .sim-progress__step.is-active .sim-progress__dot {
  box-shadow: 0 0 0 5px var(--brand-pale);
}

.sim-progress--wizard .sim-progress__step.is-done .sim-progress__dot {
  background: var(--brand-pale);
  border-color: var(--brand);
  color: var(--brand-text);
}

#step-1-video-button {
  margin-top: 28px;
}

.sim-body .flash {
  margin-bottom: 24px;
}

.sim-card {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #dce6e9;
  overflow: hidden;
}

.sim-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf2f3;
}

.sim-card__head h2 {
  font-size: 20px;
}

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

.sim-card__body {
  padding: 20px 24px 24px;
}

.sim-card__body .field {
  flex: 0 1 280px;
}

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

.field .required {
  color: #b42318;
}

.field select,
.sim-table input,
.sim-table select {
  font: inherit;
}

.sim-table-wrap {
  overflow-x: auto;
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sim-table th {
  padding: 12px 8px;
  background: #f6fbfc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--subtle);
}

.sim-table td {
  padding: 10px 8px;
  vertical-align: top;
  border-top: 1px solid #edf2f3;
}

.sim-table th:first-child,
.sim-table td:first-child {
  padding-left: 24px;
}

.sim-table th:last-child,
.sim-table td:last-child {
  padding-right: 24px;
}

.sim-table .num {
  text-align: center;
  white-space: nowrap;
}

.sim-table .stat {
  padding-top: 20px;
  color: var(--subtle);
}

.sim-table .accent {
  color: var(--brand-text);
  font-weight: 800;
}

.sim-table .ink {
  color: var(--ink);
}

.sim-table tfoot td {
  background: #f6fbfc;
  font-weight: 800;
  border-top: 2px solid #e3edef;
}

.sim-table input,
.sim-table select,
.field select {
  width: 100%;
  min-width: 90px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
}

.sim-table td:first-child input {
  min-width: 120px;
}

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

.sim-table input.is-invalid,
.field-error {
  border-color: #b42318 !important;
}

.row-field-error {
  margin-top: 4px;
  max-width: 220px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #b42318;
}

.sim-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

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

.sim-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.sim-overlay h2 {
  margin: 24px 0 6px;
  font-size: 24px;
}

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

.sim-spinner {
  display: inline-block;
  width: 64px;
  height: 64px;
  border: 6px solid var(--brand-soft);
  border-top-color: var(--brand-text);
  border-radius: 50%;
  animation: sim-spin 0.9s linear infinite;
}

@keyframes sim-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-spinner {
    animation-duration: 3s;
  }
}

.video-dialog {
  width: min(960px, calc(100vw - 32px));
}

.video-dialog .video-frame {
  padding: 0;
  box-shadow: none;
}

.schedule-dialog.prose {
  max-width: none;
}

.schedule-dialog .prose h2 {
  margin-top: 0;
}

/* Results */

.sim-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.sim-highlight {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.sim-highlight span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.sim-highlight strong {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-text);
}

.sim-highlight p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--subtle);
}

.sim-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #dce6e9;
  overflow: hidden;
  text-align: center;
}

.sim-compare__side {
  padding: 24px;
}

.sim-compare__side--dap {
  background: var(--brand-pale);
}

.sim-compare__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.sim-compare__label img {
  height: 22px;
}

.sim-compare__time {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
}

.sim-compare p {
  font-size: 15px;
  color: var(--muted);
}

.unit {
  font-size: 0.6em;
  font-weight: 600;
}

.bad {
  font-weight: 800;
  color: #b42318;
}

.good {
  font-weight: 800;
  color: var(--brand-text);
}

.sim-table .sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}

.sim-table--results td {
  vertical-align: middle;
}

.saving {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand-pale);
  font-weight: 800;
  color: var(--brand-text);
}

.sim-disclaimer {
  margin-top: 0;
}

.sim-disclaimer svg {
  margin-top: 3px;
}

/* ---------- Scenario entry: what you owe, about you, see your plan ---------- */

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

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

.dap-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dap-step__head h2 {
  margin-top: 6px;
  font-size: clamp(26px, 3vw, 32px);
  color: var(--ink);
}

.dap-step__head > p:last-child {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.dap-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.dap-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dap-card__row h3 {
  font-size: 16px;
}

/* Type tiles: tap one to add that kind of debt. */
.dap-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dap-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dap-tile:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 30px -22px color-mix(in srgb, var(--brand-deep) 60%, transparent);
  transform: translateY(-1px);
}

.dap-tile:focus-visible,
.dap-opt:focus-visible,
.dap-seg button:focus-visible,
.dap-item__toggle:focus-visible,
.dap-link:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}

/* The + that says a tile adds a debt. */
.dap-tile__add {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-on);
  transition: transform 0.15s;
}

.dap-tile:hover .dap-tile__add {
  transform: scale(1.1);
}

.dap-tile strong {
  font-size: 15px;
  font-weight: 800;
}

.dap-tile > span:last-child {
  font-size: 12.5px;
  color: var(--subtle);
}

.dap-tile__icon,
.dap-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-text);
}

.dap-empty {
  padding: 28px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--subtle);
}

/* The list of debts: a summary line each, one editor open at a time. */
.dap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dap-list:empty {
  display: none;
}

.dap-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.dap-item.is-open {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 40px -28px color-mix(in srgb, var(--brand-deep) 45%, transparent);
}

.dap-item.has-error:not(.is-open) {
  border-color: #b42318;
}

.dap-item__summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 110px 140px 90px 100px 40px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}

.dap-item__icon {
  background: #eef2f3;
  color: var(--muted);
}

.dap-item.is-open .dap-item__icon {
  background: var(--brand-pale);
  color: var(--brand-text);
}

.dap-item__main {
  min-width: 0;
  font-size: 14px;
}

.dap-item__main strong {
  font-size: 15px;
  font-weight: 800;
}

.dap-item__meta {
  font-size: 12.5px;
  color: var(--subtle);
}

.dap-item__flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdecec;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}

.dap-item__fig {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.dap-item__fig > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.dap-item__fig strong {
  font-size: 15px;
  font-weight: 800;
}

.dap-item__fig--real strong {
  color: var(--brand-text-deep);
}

.dap-item__fig small {
  font-size: 12px;
  color: var(--subtle);
}

.dap-item__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.dap-item__toggle:hover {
  background: #eef2f3;
}

.dap-item.is-open .dap-item__toggle svg {
  transform: rotate(180deg);
}

.dap-item__editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 20px 20px;
}

.dap-item__editor[hidden] {
  display: none;
}

.dap-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dap-item__done {
  min-height: 46px;
}

/* Bars: principal against interest, the debt mix, the month. */
.dap-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #eef2f3;
}

.dap-bar:empty {
  display: none;
}

.dap-bar i {
  display: flex;
  align-items: center;
  height: 100%;
  font-style: normal;
}

.dap-bar--thin {
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
}

.dap-bar--tall {
  height: 30px;
  border-radius: 10px;
}

.dap-sw--principal {
  background: var(--charcoal);
}

.dap-sw--interest {
  background: var(--brand);
}

.dap-bar .dap-sw--interest {
  padding-left: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-on);
}

.dap-month__rest {
  background: #e3eaec;
}

.dap-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.dap-key > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dap-sw,
.dap-key .dap-sw--principal,
.dap-key .dap-sw--interest {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Fields */
.dap-grid {
  display: grid;
  gap: 12px;
}

.dap-grid--4 {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

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

.dap-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dap-field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.dap-field small {
  font-size: 12.5px;
  color: var(--subtle);
}

.dap-field .required {
  color: #b42318;
}

.dap-field input,
.dap-affix {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.dap-field input {
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.dap-affix {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dap-affix > span {
  padding: 0 0 0 14px;
  font-weight: 700;
  color: var(--subtle);
}

.dap-affix--suffix > span {
  order: 2;
  padding: 0 14px 0 0;
}

.dap-affix input {
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
}

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

.dap-affix input:focus {
  outline: 0;
}

.dap-affix:has(input.is-invalid),
.dap-field input.is-invalid {
  border-color: #b42318;
}

.dap-field--big input,
.dap-field--big .dap-affix {
  height: 56px;
}

.dap-field--big input {
  font-size: 20px;
  font-weight: 700;
}

.dap-field--big .dap-field__label {
  font-size: 14px;
}

.dap-item .row-field-error {
  max-width: none;
}

/* "Just the minimum" / "I pay more" */
.dap-opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dap-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.dap-opt small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--subtle);
}

.dap-opt__radio {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #8a979c;
  border-radius: 50%;
}

.dap-opt.is-on {
  border: 2px solid var(--brand);
  background: var(--brand-pale);
}

.dap-opt.is-on .dap-opt__radio {
  border: 6px solid var(--brand);
}

/* Fixed / ARM, No / Yes */
.dap-seg {
  display: flex;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.dap-seg button {
  flex: 1;
  border: 0;
  background: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.dap-seg button + button {
  border-left: 1.5px solid var(--line);
}

.dap-seg button.is-on {
  background: var(--charcoal);
  color: var(--white);
}

.dap-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f6b3a;
}

.dap-check[hidden],
.dap-compare[hidden],
.dap-item__flag[hidden] {
  display: none;
}

/* Payoff at the minimum against what they pay */
.dap-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f8f8;
}

.dap-compare__line {
  display: grid;
  grid-template-columns: 120px minmax(40px, 1fr) 84px 150px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.dap-compare__label,
.dap-compare__real {
  color: var(--muted);
}

.dap-compare__real {
  text-align: right;
}

.dap-compare__real b {
  color: var(--text);
}

.dap-compare__track i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--line);
}

.dap-compare__track i.is-brand {
  background: var(--brand);
}

.dap-compare strong {
  text-align: right;
}

.dap-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text);
  cursor: pointer;
}

.dap-link--danger {
  color: #b42318;
}

/* About you */
.dap-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.dap-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f6f8f8;
  font-size: 13.5px;
  font-weight: 700;
}

.dap-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dap-step .fine-print {
  margin-top: 16px;
}

/* Back / Continue */
.dap-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.dap-actions__note {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}

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

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

/* Side panel */
.dap-panel {
  position: sticky;
  top: calc(var(--header-clearance) + 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dap-panel__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.dap-panel__pair,
.dap-month__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dap-month__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.dap-panel__pair span,
.dap-month__grid span {
  display: block;
  font-size: 12.5px;
  color: var(--subtle);
}

.dap-panel__pair strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.dap-month__grid strong {
  font-size: 17px;
  font-weight: 800;
}

.dap-real {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--brand-pale);
}

.dap-real__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--brand-text-deep);
}

.dap-real__head span {
  font-size: 13px;
  font-weight: 800;
}

.dap-real__head strong {
  font-size: 26px;
  font-weight: 800;
}

.dap-real p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.dap-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #e3eaec;
  font-size: 14px;
}

.dap-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dap-facts dt {
  color: var(--muted);
}

.dap-facts dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.dap-effective {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dap-effective__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--subtle);
}

.dap-effective strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.dap-effective small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
}

/* The little ? that explains a figure. */
.dap-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-text);
  cursor: pointer;
}

.dap-help:hover {
  background: var(--brand-pale);
}

.dap-help:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}

.dap-callout {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-pale);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--brand-text-deep);
}

.dap-month {
  padding-top: 16px;
  border-top: 1px solid #e3eaec;
}

.dap-month .dap-panel__title {
  margin-bottom: 10px;
}

.dap-dti {
  margin-top: 16px;
}

.dap-dti__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.dap-dti__head strong {
  color: var(--text);
}

.dap-dti__scale {
  position: relative;
  display: flex;
  height: 12px;
  border-radius: 6px;
}

.dap-dti__scale i {
  height: 100%;
}

.dap-dti__good {
  width: 36%;
  border-radius: 6px 0 0 6px;
  background: #2e9e5b;
}

.dap-dti__fair {
  width: 14%;
  background: #f2b233;
}

.dap-dti__high {
  width: 50%;
  border-radius: 0 6px 6px 0;
  background: #c8432f;
}

.dap-dti__mark {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 22px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
}

.dap-dti__ticks {
  position: relative;
  height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--subtle);
}

.dap-dti__ticks span {
  position: absolute;
}

.dap-dti__ticks span:nth-child(2) {
  left: 36%;
  transform: translateX(-50%);
}

.dap-dti__ticks span:last-child {
  right: 0;
}

.dap-dti p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.dap-panel__secure {
  padding: 0 6px;
}

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

  .dap-panel {
    position: static;
  }

  .dap-item__summary {
    grid-template-columns: 40px minmax(0, 1fr) auto auto 40px;
  }

  .dap-item__fig:not(.dap-item__fig--real):not(.dap-item__fig--eff) {
    display: none;
  }
}

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

  .dap-grid--4 > .dap-field--wide {
    grid-column: 1 / -1;
  }

  .dap-about,
  .dap-contact,
  .dap-grid--2,
  .dap-opts {
    grid-template-columns: minmax(0, 1fr);
  }

  .dap-compare__line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dap-compare__track {
    grid-column: 1 / -1;
    order: 3;
  }

  .dap-compare__real {
    grid-column: 1 / -1;
    text-align: left;
  }

  .dap-actions {
    flex-wrap: wrap;
  }

  .dap-actions .button-brand {
    flex: 1 1 100%;
  }

  .dap-card {
    padding: 18px;
  }
}

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

/* On a phone the wizard keeps its dots and names only the current step. */
@media (max-width: 560px) {
  .sim-progress--wizard .sim-progress__step:not(.is-active) .sim-progress__label {
    display: none;
  }

  .sim-progress--wizard .sim-progress__step {
    font-size: 14px;
  }
}

#effective-rate-dialog .schedule-dialog__body {
  max-width: 520px;
}

#effective-rate-dialog p {
  margin-top: 12px;
  line-height: 1.55;
}

/* ---------- Tracking consent banner (track.js) ---------- */

/* Shown only where the visitor must opt in first. One line and two equal
   buttons, fixed to the bottom of the window. */
.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  /* See-through, but solid enough to read over anything. */
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: 0 18px 40px -20px rgba(16, 24, 26, 0.45);
}

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

.consent-banner p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.consent-banner a {
  color: inherit;
  font-weight: 700;
}

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

.consent-banner__actions .button {
  min-width: 110px;
  min-height: 44px;
}

/* ---------- 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-brand,
.button.button-custom.button-brand:hover,
.button.button-custom.button-accent,
.button.button-custom.button-accent:hover {
  background: var(--button-color);
  color: #fff;
}

.button.button-custom.button-brand:hover,
.button.button-custom.button-accent:hover {
  filter: brightness(0.92);
}

.button.button-custom.button-outline {
  color: var(--button-color);
  border-color: var(--button-color);
}

.button.button-custom.button-outline:hover {
  background: color-mix(in srgb, var(--button-color) 10%, #fff);
  color: 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(--brand);
}

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

.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,
.profile-card__info .ar-spot {
  margin-top: 16px;
}

.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,
.custom-content h1,
.custom-content h2,
.custom-content h3 {
  margin: 0 0 12px;
}

.custom-content > :last-child {
  margin-bottom: 0;
}

.site-footer__custom {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__custom a {
  color: var(--brand-light);
}

/* 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, .panel, .media-card) {
  opacity: 1;
  transform: none;
}

/* The Debt Action Plan logo, drawn inline (DebtActionPlanWeb.DapLogo). */
.dap-logo__ink {
  fill: #231f20;
}

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