/*
 * Estate Planning Landing — scoped entirely under .ep-landing.
 * Loaded only on pages using the "Estate Planning Landing" template
 * (see lib/ep-landing.php), so no other page or component is affected.
 * No gradients, no emoji, no all-caps labels.
 */

.ep-landing {
  --ep-ground: #F6F7F4;
  --ep-surface: #FFFFFF;
  --ep-ink: #1C2A39;
  --ep-body: #34424F;
  --ep-muted: #4A5868;
  --ep-border: #DCE0DA;
  --ep-input-border: #A9B1AB;
  --ep-sage: #3F5D4A;
  --ep-sage-tint: #DDEBDF;
  --ep-sage-tint-2: #F1F7F2;
  --ep-navy: #24364A;
  --ep-navy-rule: #3A4E64;
  --ep-on-navy: #D5DCE3;
  --ep-on-navy-2: #C4CDD6;
  --ep-accent: #E9A820;
  --ep-court-bg: #FBE9D2;
  --ep-court-text: #7A3E0B;
  --ep-note-bg: #E6EAF0;
  --ep-note-text: #1C2A39;
  --ep-walkthrough-bg: #1C2A39;
  --ep-toggle-border: #8FA3B6;
  --ep-band: #E7EFE8;
  --ep-band-rule: #CFE0D2;
  --ep-process-num: #2F4A39;
  /*
   * Fixed site header height. The header is fixed (main.min.css:
   * .navbar { position: fixed; height: 66px } and
   * @media (min-width:1024px) .navbar.aux { height: 145px }), so content
   * must start below it and anchored sections must clear it. These
   * fallbacks mirror the theme CSS; ep-landing.js overrides --ep-header
   * with the live-measured height so the offsets stay correct if the
   * header ever changes.
   */
  --ep-header: 66px;

  --ep-font-headings: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ep-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  background-color: var(--ep-ground);
  color: var(--ep-body);
  font-family: var(--ep-font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

/*
 * Fixed header clearance.
 *
 * The header is fixed, and the page's own background starts 66px from the
 * top of the viewport (the theme's 66px body padding ends where the page
 * ground begins). The hero therefore needs (header height - 66px) + 40px
 * of top padding: 119px with the 145px desktop header, 40px with the 66px
 * phone header. --ep-header is the measured value (see ep-landing.js).
 */
@media (min-width: 1024px) {
  .ep-landing {
    --ep-header: 145px;
  }
}

/* Anchored sections clear the fixed header with ~20px of breathing room. */
.ep-landing #how-it-works,
.ep-landing #consult,
.ep-landing #self-check,
.ep-landing #compare,
.ep-landing #process {
  scroll-margin-top: calc(var(--ep-header) + 20px);
}

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

.ep-landing .ep-container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ep-landing section {
  padding-top: 88px;
  padding-bottom: 88px;
}

/* Type */
.ep-landing .ep-h1,
.ep-landing .ep-h2,
.ep-landing .ep-h3 {
  font-family: var(--ep-font-headings);
  color: var(--ep-ink);
  margin: 0 0 0.6em;
}

.ep-landing .ep-h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.ep-landing .ep-h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ep-landing .ep-h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}

.ep-landing p {
  margin: 0 0 1em;
}

.ep-landing .ep-lead {
  font-size: 19px;
  max-width: 62ch;
}

.ep-landing .ep-on-light {
  color: #FFFFFF;
}

.ep-landing .ep-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility (keyboard) */
.ep-landing a:focus-visible,
.ep-landing button:focus-visible,
.ep-landing input:focus-visible,
.ep-landing summary:focus-visible,
.ep-landing .ep-compare__scroll:focus-visible {
  outline: 3px solid var(--ep-accent);
  outline-offset: 2px;
}

/* Buttons and pills */
.ep-landing .ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--ep-font-headings);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ep-landing .ep-btn[hidden] {
  display: none;
}

.ep-landing .ep-btn--accent {
  background-color: var(--ep-accent);
  color: var(--ep-ink);
  border-color: var(--ep-accent);
}

.ep-landing .ep-btn--accent:hover {
  background-color: #D89813;
  border-color: #D89813;
  color: var(--ep-ink);
}

.ep-landing .ep-btn--outline {
  background-color: transparent;
  color: var(--ep-ink);
  border-color: var(--ep-ink);
}

.ep-landing .ep-btn--outline:hover {
  background-color: var(--ep-ink);
  color: #FFFFFF;
}

.ep-landing .ep-btn--outline-on-navy {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.ep-landing .ep-btn--outline-on-navy:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* 1. Hero */
.ep-landing .ep-hero {
  /* (fixed header height - 66px page offset) + 40px, see the clearance
     comment above. Falls back to 40px on phones (66px header). */
  padding-top: calc(var(--ep-header) - 26px);
  padding-bottom: 72px;
}

.ep-landing .ep-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  /* Top-align both columns: the form card and the hero copy start at the
     same line, so a taller column only adds height below, not a dead gap. */
  align-items: start;
}

/* Wide screens (container at its full 1180px): the form card gets a
   640px column — the target 610-680px card width — with the hero copy
   taking the rest. Below that, the fractional split of the first rule
   keeps both columns proportional to the narrower container. */
@media (min-width: 1181px) {
  .ep-landing .ep-hero__grid {
    grid-template-columns: minmax(0, 1fr) 640px;
  }
}

.ep-landing .ep-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 16px;
}

.ep-landing .ep-hero__note {
  color: var(--ep-muted);
  font-size: 15px;
}

/* Form card */
.ep-landing .ep-form-card {
  background-color: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 32px 28px;
}

.ep-landing .ep-form-card__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.ep-landing .ep-form-card__note {
  font-size: 14px;
  color: var(--ep-muted);
  border-left: 3px solid var(--ep-accent);
  padding-left: 12px;
  margin-bottom: 20px;
}

.ep-landing .ep-form-card__fine {
  font-size: 14px;
  color: var(--ep-muted);
  margin: 16px 0 0;
}

/* Gravity Forms styling, scoped to the card.
   The site theme hides form radios/checkboxes (position: absolute;
   clip: rect(0 0 0 0) in main.min.css); this form uses no radios or
   checkboxes, and the self-check checkboxes below are un-hidden by the
   .ep-check rules. */
.ep-landing .ep-form-card .gform_wrapper {
  margin: 0;
}

.ep-landing .ep-form-card .gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ep-landing .ep-form-card .gfield {
  margin: 0;
}

/* Hidden attribution fields are real form inputs (submitted with the
   form) but take no layout space; kept out of the grid so they do not
   each consume a 14px row gap. */
.ep-landing .ep-form-card .gfield.gform_hidden {
  display: none;
}

.ep-landing .ep-form-card .gfield_label {
  display: block;
  font-family: var(--ep-font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-ink);
  margin-bottom: 6px;
}

/* Subtle required marker (the GF asterisk span). */
.ep-landing .ep-form-card .gfield_required {
  color: var(--ep-muted);
  font-weight: 400;
  font-size: 14px;
  margin-left: 2px;
}

.ep-landing .ep-form-card input[type="text"],
.ep-landing .ep-form-card input[type="tel"],
.ep-landing .ep-form-card input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ep-input-border);
  border-radius: 10px;
  background-color: var(--ep-surface);
  color: var(--ep-ink);
  font-family: var(--ep-font-body);
  font-size: 16px;
}

.ep-landing .ep-form-card input::placeholder,
.ep-landing .ep-form-card input::-webkit-input-placeholder {
  color: var(--ep-muted);
}

/* Drop-downs (What are you thinking about? / Preferred office). The theme
   ships a default select reset (padding: 0); this re-skins it to match the
   text inputs and adds a plain chevron. */
.ep-landing .ep-form-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--ep-input-border);
  border-radius: 10px;
  background-color: var(--ep-surface);
  color: var(--ep-ink);
  font-family: var(--ep-font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334424F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

/* Validation messages. */
.ep-landing .ep-form-card .validation_message,
.ep-landing .ep-form-card .gfield_validation_message {
  font-family: var(--ep-font-headings);
  font-size: 13.5px;
  font-weight: 500;
  color: #A03A28;
  margin-top: 6px;
}

.ep-landing .ep-form-card .gform_button {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background-color: var(--ep-accent);
  color: var(--ep-ink);
  font-family: var(--ep-font-headings);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

.ep-landing .ep-form-card .gform_button:hover {
  background-color: #D89813;
}

.ep-landing .ep-form-card .gform_confirmation_message {
  color: var(--ep-body);
}

.ep-landing .ep-form-card__confirmation h2 {
  font-family: var(--ep-font-headings);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ep-ink);
  margin: 0 0 8px;
}

/* 3. Walkthrough */
.ep-landing .ep-walkthrough {
  background-color: var(--ep-walkthrough-bg);
  color: var(--ep-on-navy);
}

.ep-landing .ep-walkthrough .ep-h2 {
  color: #FFFFFF;
}

.ep-landing .ep-walkthrough__lead {
  color: var(--ep-on-navy);
  margin-bottom: 40px;
}

.ep-landing .ep-walkthrough__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 32px;
}

.ep-landing .ep-toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Visible label above each toggle group (Familjen 13px 600, #C4CDD6). */
.ep-landing .ep-toggle-group__label {
  flex-basis: 100%;
  font-family: var(--ep-font-headings);
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-on-navy-2);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.ep-landing .ep-pill {
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--ep-toggle-border);
  background-color: transparent;
  color: #FFFFFF;
  font-family: var(--ep-font-headings);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.ep-landing .ep-pill[aria-pressed="true"] {
  background-color: var(--ep-accent);
  border-color: var(--ep-accent);
  color: var(--ep-ink);
}

.ep-landing .ep-flow__panel {
  background-color: var(--ep-navy);
  border-radius: 20px;
  padding: 36px 32px;
  /* No max-width: the panel spans the 1180px container so the steps do
     not wrap into a narrow column on desktop. */
}

.ep-landing .ep-flow .ep-h3 {
  color: #FFFFFF;
}

.ep-landing .ep-flow__steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

/* Grid so the tag always sits in the text column, below the step text
   (start-aligned), at every width. */
.ep-landing .ep-flow__step {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 14px;
  row-gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--ep-navy-rule);
}

.ep-landing .ep-flow__num {
  grid-column: 1;
}

.ep-landing .ep-flow__text {
  grid-column: 2;
}

.ep-landing .ep-flow__step .ep-tag {
  grid-column: 2;
}

.ep-landing .ep-flow__step:first-child {
  border-top: 0;
}

.ep-landing .ep-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--ep-on-navy-2);
  color: #FFFFFF;
  font-family: var(--ep-font-headings);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

.ep-landing .ep-flow__text {
  color: var(--ep-on-navy);
}

.ep-landing .ep-flow__summary {
  border-top: 2px solid var(--ep-navy-rule);
  padding-top: 16px;
  margin-bottom: 0;
  color: #FFFFFF;
  font-family: var(--ep-font-headings);
  font-weight: 500;
}

/* Tags. The tag sits in the text column of the step grid (see
   .ep-flow__step), below the step text and start-aligned. */
.ep-landing .ep-tag {
  display: inline-block;
  justify-self: start;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--ep-font-headings);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.ep-landing .ep-tag--court {
  background-color: var(--ep-court-bg);
  color: var(--ep-court-text);
}

.ep-landing .ep-tag--nocourt {
  background-color: var(--ep-sage-tint);
  color: var(--ep-sage);
}

.ep-landing .ep-tag--privacy {
  background-color: var(--ep-sage-tint);
  color: var(--ep-sage);
}

.ep-landing .ep-tag--note {
  background-color: var(--ep-note-bg);
  color: var(--ep-note-text);
}

.ep-landing .ep-walkthrough__disclosure {
  font-size: 14px;
  color: var(--ep-on-navy-2);
  margin-top: 24px;
}

.ep-landing .ep-walkthrough__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

/* Tap target: 44px tall even though the link is one line of text. */
.ep-landing .ep-walkthrough__call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ep-accent);
  font-family: var(--ep-font-headings);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Walkthrough visibility: the section ships WITHOUT data-scenario/data-plan,
   so without JS (attributes never set) all four flows are readable. The JS
   enhancement sets the attributes on init and on every toggle; once the
   section carries both attributes, only the selected flow shows. */
.ep-landing .ep-walkthrough[data-scenario][data-plan] .ep-flow {
  display: none;
}

.ep-landing .ep-walkthrough[data-scenario="after"][data-plan="will"] .ep-flow[data-scenario="after"][data-plan="will"],
.ep-landing .ep-walkthrough[data-scenario="after"][data-plan="trust"] .ep-flow[data-scenario="after"][data-plan="trust"],
.ep-landing .ep-walkthrough[data-scenario="incapacity"][data-plan="will"] .ep-flow[data-scenario="incapacity"][data-plan="will"],
.ep-landing .ep-walkthrough[data-scenario="incapacity"][data-plan="trust"] .ep-flow[data-scenario="incapacity"][data-plan="trust"] {
  display: block;
}

/* 4. Self-check
   Grid areas put the intro (H2 + lead) and the live result card in the
   left column and the checklist in the right column. Below 900px the
   areas reflow: intro, list, then the result card (16px gap), which is
   where a phone reader expects a result to appear. */
.ep-landing .ep-check__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro list" "result list";
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
}

.ep-landing .ep-check__intro {
  grid-area: intro;
}

.ep-landing .ep-check__list-wrap {
  grid-area: list;
}

.ep-landing .ep-check__result {
  grid-area: result;
  background-color: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 24px;
}

.ep-landing .ep-check__result-title {
  font-family: var(--ep-font-headings);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ep-ink);
  margin: 0 0 8px;
}

.ep-landing .ep-check__result-body {
  margin: 0;
}

.ep-landing .ep-check__result-cta {
  margin-top: 16px;
}

.ep-landing .ep-check__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.ep-landing .ep-check__legend {
  font-family: var(--ep-font-headings);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ep-ink);
  padding: 0;
  margin-bottom: 12px;
}

.ep-landing .ep-check__list {
  display: grid;
  gap: 12px;
}

.ep-landing .ep-check__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 18px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  background-color: var(--ep-surface);
  cursor: pointer;
}

/* Checked row state. :has() where supported, plus a JS-added class
   (.ep-check__checked, ep-landing.js) as the fallback so the state still
   renders in browsers without :has(). */
.ep-landing .ep-check__row:has(input:checked),
.ep-landing .ep-check__row.ep-check__checked {
  background-color: var(--ep-sage-tint-2);
  border-color: var(--ep-sage);
}

/* A real, visible checkbox. The site theme hides every form checkbox
   (input[type=checkbox] { position: absolute; clip: rect(0 0 0 0) } in
   main.min.css); this resets that here. */
.ep-landing .ep-check__input {
  position: static;
  clip: auto;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  accent-color: var(--ep-sage);
}

/* 5. Benefits */
.ep-landing .ep-benefits {
  background-color: var(--ep-surface);
}

.ep-landing .ep-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 32px;
  margin-top: 24px;
}

.ep-landing .ep-benefit__icon {
  display: inline-flex;
  color: var(--ep-sage);
  margin-bottom: 14px;
}

.ep-landing .ep-benefit p {
  margin: 0;
}

/* 6. Comparison */
/*
 * Phone stacked cards: one <article> per feature row of the same
 * $ep_compare data that feeds the desktop table, so the two cannot drift
 * apart. Hidden at >=641px (where the table shows). Uses article/div,
 * never <section>: theme section padding would add blank space around
 * each card.
 */
.ep-landing .ep-compare__cards {
  display: none;
}

.ep-landing .ep-compare__card {
  background-color: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.ep-landing .ep-compare__card:last-child {
  margin-bottom: 0;
}

.ep-landing .ep-compare__card-label {
  font-family: var(--ep-font-headings);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ep-ink);
  margin: 0 0 12px;
}

.ep-landing .ep-compare__card-items {
  margin: 0;
  display: grid;
  gap: 12px;
}

.ep-landing .ep-compare__card-items div {
  min-width: 0;
}

.ep-landing .ep-compare__card-items dt {
  font-family: var(--ep-font-headings);
  font-size: 13px;
  font-weight: 600;
  color: var(--ep-muted);
  margin-bottom: 2px;
}

.ep-landing .ep-compare__card-items dd {
  margin: 0;
  font-family: var(--ep-font-body);
  font-size: 16px;
  color: var(--ep-body);
}

/* The trust item is tinted in every row (matching the trust column tint
   of the desktop table). */
.ep-landing .ep-compare__card-items .ep-compare__trust {
  background-color: var(--ep-sage-tint-2);
  border: 1px solid #CFE2D3;
  border-radius: 10px;
  padding: 10px 12px;
}

.ep-landing .ep-compare__scroll {
  overflow-x: auto;
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}

.ep-landing .ep-compare__table {
  width: 100%;
  min-width: 760px;
  /* separate (not collapse): border-radius is ignored on collapsed
     border tables, so the rounded card corners would never render. */
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 18px;
}

.ep-landing .ep-compare__table th,
.ep-landing .ep-compare__table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ep-border);
  font-size: 16px;
}

/* With separated borders the last row's own border-bottom would double
   the table edge; drop it and let the table border close the card. */
.ep-landing .ep-compare__table tr:last-child th,
.ep-landing .ep-compare__table tr:last-child td {
  border-bottom: 0;
}

.ep-landing .ep-compare__table thead th {
  font-family: var(--ep-font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-ink);
}

.ep-landing .ep-compare__table tbody th {
  font-family: var(--ep-font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--ep-ink);
}

.ep-landing .ep-compare__table .ep-compare__trust {
  background-color: var(--ep-sage-tint-2);
}

.ep-landing .ep-compare__table tbody tr:last-child th,
.ep-landing .ep-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.ep-landing .ep-compare__disclosure {
  font-size: 14px;
  color: var(--ep-muted);
  margin-top: 16px;
}

/* 2. Process (tinted band between the hero and the navy walkthrough) */
.ep-landing .ep-process {
  background-color: var(--ep-band);
  border-top: 1px solid var(--ep-band-rule);
  border-bottom: 1px solid var(--ep-band-rule);
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Text colors keep passing AA on the #E7EFE8 tint: ink #1C2A39 and body
   #34424F are far above the 4.5:1 threshold on this near-white green. */
.ep-landing .ep-process .ep-h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.ep-landing .ep-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 24px;
}

.ep-landing .ep-process__num {
  display: block;
  font-family: var(--ep-font-headings);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ep-process-num);
  margin-bottom: 12px;
}

.ep-landing .ep-process__step p {
  margin: 0;
}

.ep-landing .ep-process__link {
  margin-top: 40px;
  font-family: var(--ep-font-headings);
  font-weight: 600;
}

/* Tap target: the inline link gets a 44px-tall hit area. */
.ep-landing .ep-process__link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ep-sage);
}

/* 7. FAQ */
.ep-landing .ep-faq__container {
  max-width: 820px;
}

/* Section H2 "Common questions" above the accordion, same type as the
   other section H2s. */
.ep-landing .ep-faq .ep-h2 {
  margin-bottom: 32px;
}

.ep-landing .ep-faq__item {
  border-top: 1px solid var(--ep-border);
}

.ep-landing .ep-faq__item:last-of-type {
  border-bottom: 1px solid var(--ep-border);
}

.ep-landing .ep-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--ep-font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ep-ink);
  list-style: none;
}

.ep-landing .ep-faq__item summary::-webkit-details-marker {
  display: none;
}

.ep-landing .ep-faq__item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--ep-ink);
  border-bottom: 2px solid var(--ep-ink);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.ep-landing .ep-faq__item[open] summary::after {
  transform: rotate(225deg);
}

.ep-landing .ep-faq__item p {
  padding-bottom: 20px;
  margin: 0;
}

.ep-landing .ep-faq__more {
  margin-top: 48px;
}

.ep-landing .ep-faq__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Tap targets: 44px-tall hit areas with 8px of room between links. */
.ep-landing .ep-faq__links li {
  margin-bottom: 8px;
}

.ep-landing .ep-faq__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ep-sage);
  font-weight: 600;
  font-family: var(--ep-font-headings);
}

/* 9. Closing band */
.ep-landing .ep-closing {
  background-color: var(--ep-walkthrough-bg);
}

.ep-landing .ep-closing__container {
  max-width: 820px;
  text-align: center;
}

.ep-landing .ep-closing__lead {
  margin-left: auto;
  margin-right: auto;
  color: var(--ep-on-navy);
}

.ep-landing .ep-closing__buttons {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 32px auto 0;
}

.ep-landing .ep-closing__call {
  width: 100%;
}

/* 10. Footer disclosures (the page-level office address list was removed:
   the site footer's Locations block already shows all four offices with
   phones, so repeating them here was a duplicate) */
.ep-landing .ep-footer-disc {
  padding-top: 56px;
  padding-bottom: 56px;
}

.ep-landing .ep-footer-disc__text {
  font-size: 15px;
  color: var(--ep-muted);
  margin-bottom: 8px;
}

/* Tap target: the inline disclosure link gets a 44px hit area
   (line box ~32px + 10px padding top and bottom). */
.ep-landing .ep-footer-disc__text a {
  color: var(--ep-sage);
  text-decoration: underline;
  padding: 12px 0;
}

/* Smooth scrolling, disabled for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html:has(.ep-landing) {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ep-landing *,
  .ep-landing *::before,
  .ep-landing *::after {
    transition: none !important;
  }
}

/* Phone reflow */
@media (max-width: 860px) {
  .ep-landing section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* The process band keeps its own 56px rhythm at every width. */
  .ep-landing .ep-process {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .ep-landing .ep-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Self-check: intro, then the list, then the result card (16px gap). */
  .ep-landing .ep-check__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "list"
      "result";
    gap: 16px;
  }

  .ep-landing .ep-flow__panel {
    padding: 24px 20px;
  }
}

/* Phone (<=640px) reflow */
@media (max-width: 640px) {
  /* H1: 32px on phones, balanced wrapping (today: 38.4px, 4-5 lines). */
  .ep-landing .ep-h1 {
    font-size: 32px;
    line-height: 1.1;
    text-wrap: balance;
  }

  /* The "Serving families across Kansas from four offices." note is
     dropped on phones. */
  .ep-landing .ep-hero__note {
    display: none;
  }

  /* The two hero buttons stack full-width. */
  .ep-landing .ep-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ep-landing .ep-hero__ctas .ep-btn {
    width: 100%;
  }

  /* Walkthrough steps: 32px numeral column beside the text; the tag
     stays in the text column, under the text, start-aligned (handled by
     the .ep-flow__step grid at every width). */
  .ep-landing .ep-flow__step {
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
  }

  .ep-landing .ep-flow__num {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin-top: 1px;
  }

  /* Process: the three columns become a stacked numeral-beside-H3 layout
     (numeral in a 36px column beside the H3, paragraph spanning below). */
  .ep-landing .ep-process__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ep-landing .ep-process__step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px;
  }

  .ep-landing .ep-process__num {
    grid-column: 1;
    grid-row: 1;
    font-size: 30px;
    margin-bottom: 0;
  }

  .ep-landing .ep-process__step .ep-h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .ep-landing .ep-process__step p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }

  /* Benefits: 28px icon beside the H3, paragraph spanning below. */
  .ep-landing .ep-benefit {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 12px;
  }

  .ep-landing .ep-benefit__icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    width: 28px;
    height: 28px;
  }

  .ep-landing .ep-benefit__icon svg {
    width: 28px;
    height: 28px;
  }

  .ep-landing .ep-benefit .ep-h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 8px;
  }

  .ep-landing .ep-benefit p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Comparison: stacked cards instead of the horizontally scrolling
     table (the trust column would start off-screen with no swipe cue). */
  .ep-landing .ep-compare__cards {
    display: block;
    margin-top: 24px;
  }

  .ep-landing .ep-compare__scroll {
    display: none;
  }
}

/* 11. Sticky phone call bar (phones only).
   Hidden by default (both the [hidden] attribute and the >=641px rule);
   shown by JS once the hero buttons have scrolled out of view, and hidden
   again while the consultation form or the closing band is on screen.
   Slide-in via transform; no slide under prefers-reduced-motion. */
.ep-landing .ep-callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background-color: var(--ep-surface);
  border-top: 1px solid var(--ep-border);
  box-shadow: 0 -6px 20px rgba(28, 42, 57, 0.08);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

/* display:flex above would otherwise outrank the theme's normalize
   [hidden] { display: none } — keep the hidden attribute authoritative
   (no focus/click on the off-screen bar before JS shows it). */
.ep-landing .ep-callbar[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .ep-landing .ep-callbar {
    transition: none;
  }
}

.ep-landing .ep-callbar.is-visible {
  transform: translateY(0);
}

.ep-landing .ep-callbar__pill {
  flex: 1 1 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--ep-font-headings);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 10px 14px;
}

.ep-landing .ep-callbar__call {
  background-color: var(--ep-accent);
  border: 2px solid var(--ep-accent);
  color: var(--ep-ink);
}

.ep-landing .ep-callbar__consult {
  background-color: transparent;
  border: 2px solid var(--ep-ink);
  color: var(--ep-ink);
}

.ep-landing .ep-callbar__pill:hover {
  opacity: 0.9;
}

/* Reserve page bottom space on phones so the bar never covers the last
   line of the footer once it is shown. (Only relevant when JS has made
   the bar visible; harmless otherwise.) */
@media (max-width: 640px) {
  .ep-landing {
    padding-bottom: 72px;
  }
}

@media (min-width: 641px) {
  .ep-landing .ep-callbar {
    display: none;
  }
}
