/* Easy Plans DB – paid media funnel
   Monochrome palette (black / white / warm light grey), Barlow Condensed headlines, Barlow body.
   Mobile-first at 390px. All classes use the "epd-" prefix. */

:root {
  --epd-ink: #141414;
  --epd-navy: #21397a;
  --epd-navy-deep: #172a5c;
  --epd-btn: #21397a;
  --epd-btn-hover: #1b2f66; /* navy darkened 10% */
  --epd-white: #ffffff;
  --epd-stone: #f1f3f8;
  --epd-line: #d6dbe6;
  --epd-muted: #535a6b;
  --epd-on-dark-muted: #c3cbe0;
  --epd-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --epd-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --epd-gutter: 24px;
  --epd-pad: 60px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--epd-white);
  color: var(--epd-ink);
  font-family: var(--epd-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid #7a7a7a; outline-offset: 3px; }

.epd-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--epd-gutter); }

/* ---------- Type ---------- */
.epd-h2 {
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.epd-lead { margin-top: 12px; max-width: 640px; color: var(--epd-muted); }

.epd-wordmark {
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.epd-wordmark b { font-weight: 600; border: 2px solid currentColor; padding: 1px 5px 0; margin-left: 2px; }

/* Sentence-case eyebrow with a short rule in front */
.epd-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.epd-eyebrow::before { content: ""; flex: 0 0 28px; height: 2px; background: currentColor; }
.epd-eyebrow--light { color: var(--epd-white); }

.epd-friction { margin-top: 12px; font-size: 15px; color: var(--epd-muted); }
.epd-friction--light { color: #e3e7f2; }

.epd-stars { letter-spacing: 2px; }

/* ---------- Buttons: solid pill, full width on mobile ---------- */
.epd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--epd-btn);
  color: var(--epd-white);
  font-family: var(--epd-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.epd-btn:hover { background: var(--epd-btn-hover); }
.epd-btn--light { background: var(--epd-white); color: var(--epd-navy); }
.epd-btn--light:hover { background: #e6e6e6; }

/* Numbered labels */
.epd-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--epd-white);
  color: var(--epd-navy);
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
}
.epd-num--dark { background: var(--epd-navy); color: var(--epd-white); }

/* ---------- Hero: inset black frame, text bottom-left ---------- */
.epd-hero {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
  background: var(--epd-navy);
  color: var(--epd-white);
}
.epd-hero__frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #1a2d60;
}
.epd-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.epd-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.68) 45%, rgba(0,0,0,.45) 75%, rgba(0,0,0,.5) 100%);
}
.epd-hero__top, .epd-hero__copy { position: relative; z-index: 1; }
.epd-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 0; }
.epd-hero__phone { font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); }
.epd-hero__copy { padding: 36px 16px 24px; max-width: 760px; }
.epd-hero__title {
  margin-top: 14px;
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--epd-white);
}
.epd-hero__sub { margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: #eef1f8; max-width: 560px; }
.epd-hero__trust {
  list-style: none;
  margin: 0;
  padding: 14px 6px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #e3e7f2;
}
/* Form card inside the hero */
.epd-hero__stage { display: flex; flex-direction: column; }
.epd-hero__frame { min-height: 360px; }
.epd-hero__form {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 22px 16px 18px;
  border-radius: 8px;
  background: var(--epd-white);
  color: var(--epd-ink);
  scroll-margin-top: 12px;
}
.epd-hero__form-head h2 {
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--epd-navy);
}
.epd-hero__form-head p { margin-top: 6px; font-size: 15px; color: var(--epd-muted); }
.epd-hero__form-embed { margin-top: 14px; min-height: 720px; } /* reserves space so the page doesn't jump while the form loads */
.epd-hero__form-embed iframe { display: block; min-height: 720px; }
.epd-hero__form-call { margin-top: 12px; font-size: 15px; font-weight: 500; text-align: center; }
.epd-hero__form-call a { color: var(--epd-navy); text-underline-offset: 3px; }
.epd-hero__trust li { display: flex; align-items: center; gap: 6px; }
.epd-hero__trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #8f9cc4; margin-right: 6px; }

/* ---------- Problem: contrast table on black ---------- */
.epd-contrast { padding: var(--epd-pad) 0; background: var(--epd-stone); color: var(--epd-ink); }
.epd-contrast__table { margin-top: 36px; border-top: 1px solid var(--epd-line); }
.epd-contrast__head { display: none; }
.epd-contrast__row { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--epd-line); }
.epd-contrast__bad { color: var(--epd-muted); }
.epd-contrast__bad strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--epd-ink);
}
.epd-contrast__good { display: flex; gap: 10px; font-weight: 500; color: var(--epd-navy); }
.epd-contrast__good::before { content: "→"; flex: 0 0 auto; }

/* ---------- Gallery: swipe on mobile, 2-up on desktop ---------- */
.epd-gallery { padding-top: var(--epd-pad); }
.epd-gallery__track {
  display: flex;
  gap: 4px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.epd-gallery__track::-webkit-scrollbar { display: none; }
.epd-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.epd-gallery__nav { display: none; gap: 10px; flex: 0 0 auto; }
.epd-gallery__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--epd-navy);
  color: var(--epd-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.epd-gallery__btn:hover { background: var(--epd-btn-hover); }
.epd-gallery__btn:disabled { background: var(--epd-line); color: var(--epd-muted); cursor: default; }
.epd-shot {
  position: relative;
  flex: 0 0 86%;
  margin: 0;
  scroll-snap-align: start;
  background: var(--epd-navy);
  min-width: 0;
}
.epd-shot img { width: 100%; height: 440px; object-fit: cover; }
.epd-shot figcaption {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--epd-white);
  background: var(--epd-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Steps over one wide photo ---------- */
.epd-steps { position: relative; min-height: 400px; padding: var(--epd-pad) 0; color: var(--epd-white); background: var(--epd-navy); overflow: hidden; }
.epd-steps__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.epd-steps::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18,31,70,.8); }
.epd-steps__inner { position: relative; z-index: 2; }
.epd-steps__list { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; gap: 28px; }
.epd-steps__list li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; }
.epd-steps__list .epd-num { grid-row: span 2; }
.epd-steps__list h3 { font-family: var(--epd-head); font-weight: 600; font-size: 22px; line-height: 1.2; text-transform: uppercase; padding-top: 5px; }
.epd-steps__list p { margin-top: 4px; color: #e3e7f2; }

/* ---------- Mechanism: alternating rows ---------- */
.epd-why { padding-top: var(--epd-pad); }
.epd-why__head { margin-bottom: 36px; }
.epd-why__row { display: grid; }
.epd-why__media { min-height: 400px; background: var(--epd-stone); }
.epd-why__media img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.epd-why__points { display: grid; gap: 28px; padding: 40px var(--epd-gutter) var(--epd-pad); }
.epd-point { display: flex; gap: 16px; max-width: 520px; }
.epd-point h3 { font-family: var(--epd-head); font-weight: 600; font-size: 22px; line-height: 1.2; text-transform: uppercase; padding-top: 5px; }
.epd-point p { margin-top: 6px; }

/* ---------- Testimonial strip next to stats ---------- */
.epd-voice { padding: var(--epd-pad) 0; background: var(--epd-navy); color: var(--epd-white); }
.epd-voice__inner { display: grid; gap: 40px; }
.epd-voice__quote { margin: 0; }
.epd-voice__quote .epd-stars { font-size: 18px; }
.epd-voice__quote blockquote { margin: 14px 0 0; }
.epd-voice__quote blockquote p {
  font-family: var(--epd-head);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
}
.epd-voice__quote figcaption { margin-top: 14px; font-size: 15px; color: var(--epd-on-dark-muted); }
.epd-voice__stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.epd-voice__stats div { padding-top: 18px; }
.epd-voice__stats dt { font-family: var(--epd-head); font-weight: 600; font-size: 40px; line-height: 1; }
.epd-voice__stats dd { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--epd-on-dark-muted); }

/* ---------- FAQ ---------- */
.epd-faq { padding: var(--epd-pad) 0; }
.epd-faq__grid { margin-top: 32px; border-top: 1px solid var(--epd-line); }
.epd-faq__item { border-bottom: 1px solid var(--epd-line); }
.epd-faq__item h3 { font-size: inherit; }
.epd-faq__item button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--epd-ink);
  font-family: var(--epd-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.epd-faq__item button::after {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--epd-white), var(--epd-white)) center / 12px 2px no-repeat,
    linear-gradient(var(--epd-white), var(--epd-white)) center / 2px 12px no-repeat,
    var(--epd-navy);
}
.epd-faq__item button[aria-expanded="true"]::after {
  background:
    linear-gradient(var(--epd-white), var(--epd-white)) center / 12px 2px no-repeat,
    var(--epd-navy);
}
.epd-faq__panel { padding: 0 44px 22px 0; max-width: 640px; }
.epd-faq__panel p + p { margin-top: 10px; }

/* ---------- Call benefits ---------- */
.epd-call { padding: var(--epd-pad) 0; background: var(--epd-stone); }
.epd-call__list { list-style: none; margin: 28px 0 36px; padding: 0; max-width: 640px; }
.epd-call__list li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--epd-line); }
.epd-call__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--epd-navy);
  border-bottom: 2px solid var(--epd-navy);
  transform: rotate(-45deg);
}

/* ---------- Final CTA over photo ---------- */
.epd-final { position: relative; min-height: 520px; padding: var(--epd-pad) 0; display: flex; align-items: center; color: var(--epd-white); background: var(--epd-navy); overflow: hidden; }
.epd-final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.epd-final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18,31,70,.72); }
.epd-final__inner { position: relative; z-index: 2; }
.epd-final .epd-lead { color: #eef1f8; margin-bottom: 28px; }
.epd-final__call { margin-top: 18px; font-weight: 500; }

/* ---------- Footer ---------- */
.epd-footer { padding: 48px 0 120px; background: var(--epd-navy-deep); color: var(--epd-on-dark-muted); font-size: 15px; }
.epd-footer .epd-wordmark { color: var(--epd-white); margin-bottom: 14px; }
.epd-footer__links { display: flex; gap: 20px; margin-top: 18px; }
.epd-footer__links a { color: var(--epd-white); }
.epd-footer__copy { margin-top: 10px; font-size: 14px; }

/* ---------- Sticky dock: pill CTA + round call button ---------- */
.epd-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  gap: 10px;
  transform: translateY(calc(100% + 40px));
  transition: transform .2s ease;
}
.epd-dock.is-on { transform: none; }
.epd-dock__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--epd-btn);
  color: var(--epd-white);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.epd-dock__cta:hover { background: var(--epd-btn-hover); }
.epd-dock__call {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 50%;
  background: var(--epd-white);
  color: var(--epd-navy);
  border: 2px solid var(--epd-navy);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.epd-dock__call:hover { background: #e6e6e6; }

/* ---------- Thank-you page ---------- */
.epd-ty { background: var(--epd-navy); color: var(--epd-white); }
.epd-ty__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; }
.epd-ty__body { padding: 48px 0 var(--epd-pad); }
.epd-ty__title { font-family: var(--epd-head); font-weight: 600; font-size: 36px; line-height: 1.05; text-transform: uppercase; max-width: 820px; }
.epd-ty .epd-lead { color: var(--epd-on-dark-muted); }
.epd-ty__steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; max-width: 760px; }
.epd-ty__steps li { display: flex; gap: 16px; }
.epd-ty__steps h2 { font-family: var(--epd-head); font-weight: 600; font-size: 22px; text-transform: uppercase; line-height: 1.2; padding-top: 5px; }
.epd-ty__steps p { margin-top: 4px; color: #e3e7f2; }
.epd-ty__note { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); max-width: 760px; }
.epd-ty__note p + p { margin-top: 10px; color: var(--epd-on-dark-muted); }
.epd-ty__note a { color: var(--epd-white); font-weight: 500; }
.epd-ty__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 32px; }
.epd-ty__grid .epd-shot { flex: none; min-width: 0; }

/* ---------- Legal pages ---------- */
.epd-legal__bar { background: var(--epd-navy); color: var(--epd-white); padding: 22px 0; }
.epd-legal__bar .epd-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.epd-legal__bar a { font-size: 15px; }
.epd-legal { padding: var(--epd-pad) 0; }
.epd-legal .epd-wrap { max-width: 760px; }
.epd-legal h1 { font-family: var(--epd-head); font-weight: 600; font-size: 36px; line-height: 1.1; text-transform: uppercase; }
.epd-legal h2 { font-family: var(--epd-head); font-weight: 600; font-size: 22px; text-transform: uppercase; margin-top: 36px; }
.epd-legal p, .epd-legal ul { margin-top: 12px; }
.epd-legal .epd-note { margin-top: 16px; padding: 14px 16px; background: var(--epd-stone); font-size: 15px; }

/* =========== Tablet and up =========== */
@media (min-width: 720px) {
  :root { --epd-gutter: 40px; }
  .epd-btn { width: auto; display: inline-flex; }
  .epd-contrast__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--epd-muted);
    border-bottom: 1px solid var(--epd-line);
  }
  .epd-contrast__table { border-top: 0; }
  .epd-contrast__row { grid-template-columns: 1fr 1fr; gap: 40px; padding: 26px 0; }
  .epd-steps__list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .epd-steps__list li { grid-template-columns: 1fr; row-gap: 14px; }
  .epd-steps__list .epd-num { grid-row: auto; }
  .epd-voice__stats dt { font-size: 52px; }
  .epd-ty__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========== Desktop =========== */
@media (min-width: 1000px) {
  :root { --epd-pad: 100px; }
  body { font-size: 18px; }
  .epd-h2 { font-size: 40px; }
  .epd-hero { padding: 20px 20px 0; }
  .epd-hero__stage { display: grid; grid-template-columns: minmax(0, 1fr) 460px; min-height: calc(92vh - 60px); }
  .epd-hero__frame { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; }
  .epd-hero__copy { margin-top: 0; max-width: calc(100% - 520px); }
  .epd-hero__form { grid-column: 2; grid-row: 1; align-self: start; margin: 96px 32px 32px 0; padding: 28px 24px 20px; }
  .epd-hero__top { padding: 28px 36px 0; }
  .epd-hero__copy { padding: 72px 48px 48px; }
  .epd-hero__title { font-size: 56px; }
  .epd-hero__sub { font-size: 19px; }
  .epd-hero__trust { padding: 18px 16px 20px; font-size: 15px; gap: 6px 26px; }
  .epd-shot { flex-basis: calc((100% - 8px) / 2.3); }
  .epd-gallery__nav { display: flex; }
  .epd-gallery__head .epd-lead { max-width: none; }
  .epd-shot img { height: 540px; }
  .epd-why__row { grid-template-columns: 1fr 1fr; }
  .epd-why__row--flip .epd-why__media { order: 2; }
  .epd-why__media, .epd-why__media img { min-height: 560px; }
  .epd-why__points { align-content: center; padding: 60px 64px; }
  .epd-voice__inner { grid-template-columns: 3fr 2fr; gap: 80px; align-items: end; }
  .epd-voice__quote blockquote p { font-size: 40px; }
  .epd-faq__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .epd-faq__item:nth-child(-n+2) { border-top: 1px solid var(--epd-line); }
  .epd-final { min-height: 640px; }
  .epd-footer { padding-bottom: 48px; }
  .epd-dock { left: auto; right: 24px; bottom: 24px; }
  .epd-dock__cta { flex: 0 0 auto; padding: 0 28px; }
  .epd-ty__title { font-size: 56px; }
  .epd-ty__body { padding: 72px 0 var(--epd-pad); }
  .epd-ty__grid .epd-shot img { height: 460px; }
  .epd-legal h1 { font-size: 48px; }
}

/* ---------- Review wall under the featured quote ---------- */
.epd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.epd-voice__wall { display: grid; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.2); }
.epd-voice__wall figure { margin: 0; }
.epd-voice__wall blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--epd-white); }
.epd-voice__wall figcaption { margin-top: 10px; font-size: 14px; color: var(--epd-on-dark-muted); }
@media (min-width: 900px) {
  .epd-voice__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
