@font-face {
  font-family: SEIOpen;
  src: url(assets/open-sans.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #082737;
  --navy2: #0d364b;
  --teal: #107e83;
  --teal-dark: #0a6367;
  --mint: #8ed5cf;
  --mint-bg: #e7f4f3;
  --ink: #132c3b;
  --muted: #556a78;
  --line: #d4e0e5;
  --paper: #f3f7f8;
  --card: #ffffff;
  --amber: #f3b33d;
  --ok: #137a4b;
  --err: #b42318;
  --err-bg: #fef3f2;
}

* {
  box-sizing: border-box;
}

html, body.sei-v2-body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 SEIOpen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#sei-heloc-v2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 SEIOpen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;
}

#sei-heloc-v2 a {
  color: var(--teal);
}

/* Top bar */
#sei-heloc-v2 .top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

#sei-heloc-v2 .top-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sei-heloc-v2 .brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#sei-heloc-v2 .top .logo {
  height: 40px;
  width: auto;
  display: block;
}

#sei-heloc-v2 .top .call {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  line-height: 1.2;
  transition: background 0.15s ease;
}

#sei-heloc-v2 .top .call:hover {
  background: var(--teal-dark);
  color: #fff;
}

#sei-heloc-v2 .top .call-desktop-num {
  display: none;
}

/* Hero (Step 1) */
#sei-heloc-v2 .hero {
  background: linear-gradient(180deg, rgba(8,39,55,.93) 0%, rgba(8,39,55,.98) 100%);
  color: #fff;
  padding: 14px 16px 18px;
}

#sei-heloc-v2 .hero-inner {
  max-width: 540px;
  margin: 0 auto;
}

#sei-heloc-v2 .hero .eyebrow {
  color: var(--mint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#sei-heloc-v2 .hero h1 {
  font-size: 24px;
  line-height: 1.16;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

#sei-heloc-v2 .hero p {
  margin: 0;
  color: #d7e7ea;
  font-size: 13.5px;
  line-height: 1.4;
}

#sei-heloc-v2[data-active-step="2"] .hero,
#sei-heloc-v2[data-active-step="3"] .hero,
#sei-heloc-v2[data-active-step="4"] .hero,
#sei-heloc-v2[data-active-step="4b"] .hero,
#sei-heloc-v2[data-active-step="5"] .hero {
  display: none;
}

/* Main funnel container */
#sei-heloc-v2 .funnel-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

/* Card */
#sei-heloc-v2 .card {
  background: var(--card);
  margin: -8px 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  box-shadow: 0 10px 28px rgba(8,39,55,.10);
  padding: 16px 15px 16px;
  position: relative;
}

#sei-heloc-v2[data-active-step="2"] .card,
#sei-heloc-v2[data-active-step="3"] .card,
#sei-heloc-v2[data-active-step="4"] .card,
#sei-heloc-v2[data-active-step="4b"] .card,
#sei-heloc-v2[data-active-step="5"] .card {
  margin-top: 10px;
}

#sei-heloc-v2 .step-pane {
  display: none;
}

#sei-heloc-v2 .step-pane.is-active {
  display: block;
}

#sei-heloc-v2 .prog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

#sei-heloc-v2 .prog .bar {
  flex: 1;
  height: 6px;
  background: #e3ecef;
  border-radius: 99px;
  overflow: hidden;
}

#sei-heloc-v2 .prog .bar > i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.22s ease;
}

#sei-heloc-v2 .card h2 {
  font-size: 19px;
  line-height: 1.22;
  margin: 0 0 4px;
  letter-spacing: -.015em;
  color: var(--ink);
  font-weight: 800;
}

#sei-heloc-v2 .card .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
}

#sei-heloc-v2 .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

#sei-heloc-v2 .chip {
  background: var(--mint-bg);
  color: #0b5d61;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Option grid buttons */
#sei-heloc-v2 .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

#sei-heloc-v2 .opt {
  border: 1.5px solid #bfd0d7;
  background: #fff;
  border-radius: 8px;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  text-align: left;
  min-height: 52px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

#sei-heloc-v2 .opt:hover {
  border-color: var(--teal);
  background: #f6fbfb;
}

#sei-heloc-v2 .opt.sel {
  border-color: var(--teal);
  background: var(--mint-bg);
  box-shadow: 0 0 0 2px rgba(16,126,131,.15);
}

#sei-heloc-v2 .opt .ic {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #eef5f6;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: 0 0 28px;
}

#sei-heloc-v2 .opt.sel .ic {
  background: var(--teal);
  color: #fff;
}

#sei-heloc-v2 .opt.wide {
  grid-column: 1 / -1;
}

/* Primary CTA Button */
#sei-heloc-v2 .btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font: 800 16px/1.2 SEIOpen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(16,126,131,.28);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

#sei-heloc-v2 .btn:hover {
  background: var(--teal-dark);
}

#sei-heloc-v2 .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

#sei-heloc-v2 .btn small {
  font-weight: 500;
  font-size: 11px;
  opacity: .92;
  display: block;
}

/* Secondary / ghost link buttons */
#sei-heloc-v2 .back {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

#sei-heloc-v2 .back:hover {
  color: var(--ink);
}

/* Credit score reassurance footer */
#sei-heloc-v2 .reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

#sei-heloc-v2 .reassure b {
  color: var(--ink);
}

/* Trust tiles below card (v2preview8): seimortgage.com palette, primary #354F6B, secondary #4FAF9F,
   text #6E7074, border #E0E6EA, light #F7F9FC. Inline SVG line icons, no icon font. */
#sei-heloc-v2 .trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 12px 16px;
  text-align: center;
}

#sei-heloc-v2 .trust-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #E0E6EA;
  border-radius: 12px;
  padding: 12px 6px 11px;
  box-shadow: 0 1px 2px rgba(4, 12, 44, 0.05);
  min-width: 0;
}

#sei-heloc-v2 .trust-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(79, 175, 159, 0.12);
  color: #4FAF9F;
}

#sei-heloc-v2 .trust-ic svg {
  display: block;
  width: 21px;
  height: 21px;
}

#sei-heloc-v2 .trust-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#sei-heloc-v2 .trust-txt b {
  display: block;
  color: #354F6B;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.1px;
}

#sei-heloc-v2 .trust-txt span {
  display: block;
  color: #6E7074;
  font-size: 11px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  #sei-heloc-v2 .trust {
    gap: 12px;
  }
  #sei-heloc-v2 .trust-tile {
    gap: 9px;
    padding: 16px 10px 14px;
  }
  #sei-heloc-v2 .trust-ic {
    width: 44px;
    height: 44px;
  }
  #sei-heloc-v2 .trust-ic svg {
    width: 23px;
    height: 23px;
  }
  #sei-heloc-v2 .trust-txt b {
    font-size: 14px;
  }
  #sei-heloc-v2 .trust-txt span {
    font-size: 12.5px;
  }
}

/* Form inputs */
#sei-heloc-v2 label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 4px;
}

#sei-heloc-v2 input:not([type="range"]),
#sei-heloc-v2 select.sel2 {
  width: 100%;
  height: 46px;
  border: 1.5px solid #b8cbd3;
  border-radius: 7px;
  padding: 0 12px;
  font: 600 15px SEIOpen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  appearance: none;
}

#sei-heloc-v2 select.sel2 {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

#sei-heloc-v2 input:focus,
#sei-heloc-v2 select.sel2:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,126,131,.15);
}

#sei-heloc-v2 .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Sliders (Step 3) */
#sei-heloc-v2 .slider {
  margin: 10px 0 12px;
}

#sei-heloc-v2 .slider .top2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

#sei-heloc-v2 .slider .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

#sei-heloc-v2 .range-wrap {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

#sei-heloc-v2 input[type="range"].sei-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--teal) 0%, var(--teal) var(--fill-pct, 50%), #dde8ec var(--fill-pct, 50%), #dde8ec 100%);
  outline: none;
  margin: 0;
  cursor: pointer;
}

#sei-heloc-v2 input[type="range"].sei-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: pointer;
}

#sei-heloc-v2 input[type="range"].sei-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: pointer;
}

/* Estimated Available Equity Dark Card (Step 3 & Step 5) */
#sei-heloc-v2 .est {
  background: linear-gradient(135deg, #082737, #0e3d52);
  color: #fff;
  border-radius: 9px;
  padding: 12px 13px;
  margin: 10px 0 8px;
}

#sei-heloc-v2 .est .k {
  font-size: 11px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

#sei-heloc-v2 .est .v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 2px 0;
  color: #fff;
}

#sei-heloc-v2 .est .n {
  font-size: 11.5px;
  color: #cfe3e6;
}

/* Credit score select (Step 3, v2preview4) */
#sei-heloc-v2 select.sei-credit-select {
  font-size: 16px; /* 16px prevents iOS focus zoom */
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

#sei-heloc-v2 select.sei-credit-select.has-value {
  color: var(--ink);
}

#sei-heloc-v2 select.sei-credit-select option {
  color: var(--ink);
}

#sei-heloc-v2 select.sei-credit-select[aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(217,45,32,.12);
}

/* Property state select (Step 4, v2preview5) */
#sei-heloc-v2 select.sei-state-select {
  color: var(--muted);
}

#sei-heloc-v2 select.sei-state-select.has-value {
  color: var(--ink);
}

#sei-heloc-v2 select.sei-state-select option {
  color: var(--ink);
}

#sei-heloc-v2 select.sei-state-select[aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(217,45,32,.12);
}

#sei-heloc-v2 select.sei-state-select + .field-hint {
  margin: 6px 0 4px;
}

#sei-heloc-v2 .field-hint {
  display: none;
  color: var(--err);
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 10px;
}

#sei-heloc-v2 .field-hint.is-visible {
  display: block;
}

/* Step 4 Summary Box & Fine Print */
#sei-heloc-v2 .summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.45;
}

#sei-heloc-v2 .summary b {
  color: var(--teal);
}

#sei-heloc-v2 .fine {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 9px;
}

#sei-heloc-v2 .fine a {
  color: var(--teal);
  text-decoration: underline;
}

/* Inline validation / error banner */
#sei-heloc-v2 .step-err {
  display: none;
  background: var(--err-bg);
  border: 1px solid #fecdca;
  color: var(--err);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 10px 0 4px;
}

#sei-heloc-v2 .step-err.is-visible {
  display: block;
}

#sei-heloc-v2 .step-status {
  display: none;
  background: var(--mint-bg);
  border: 1px solid #b5dfdc;
  color: #0b5d61;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 10px 0 4px;
}

#sei-heloc-v2 .step-status.is-visible {
  display: block;
}

/* Step 4B: Twilio Verify OTP Gate */
#sei-heloc-v2 .otp-input-wrap {
  margin: 12px 0 8px;
}

#sei-heloc-v2 #sei-otp-code {
  height: 56px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-align: center;
  border: 2px solid var(--teal);
  background: #f8fcfc;
}

#sei-heloc-v2 .otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

#sei-heloc-v2 .otp-link-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  font-family: inherit;
  flex: 1;
  text-align: center;
}

#sei-heloc-v2 .otp-link-btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--mint-bg);
}

#sei-heloc-v2 .otp-link-btn:disabled {
  color: var(--muted);
  opacity: 0.65;
  cursor: not-allowed;
}

/* Step 5: Verified Final Screen + Rate & Payment Placeholder Slot */
#sei-heloc-v2 .rate-slot {
  border: 1.5px dashed #9ab7c1;
  background: #f8fbfc;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

#sei-heloc-v2 .rate-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#sei-heloc-v2 .rate-slot-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

#sei-heloc-v2 .rate-slot-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #e3ecef;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 99px;
}

#sei-heloc-v2 .rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#sei-heloc-v2 .rate-table th,
#sei-heloc-v2 .rate-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

#sei-heloc-v2 .rate-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

#sei-heloc-v2 .rate-table tr:last-child td {
  border-bottom: 0;
}

#sei-heloc-v2 .rate-slot-note {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* v2preview6: Step 5 estimate card */
#sei-heloc-v2 .rate-slot.est-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  overflow: hidden;
}
#sei-heloc-v2 .est-card > p.rate-slot-note { padding: 12px; margin: 0; }
#sei-heloc-v2 .est-card-head {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
}
#sei-heloc-v2 .est-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#sei-heloc-v2 .est-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.35;
}
#sei-heloc-v2 .est-table tr:first-child td { border-top: 0; }
#sei-heloc-v2 .est-table td.est-num {
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
}
#sei-heloc-v2 .est-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
#sei-heloc-v2 .est-draw-h {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  padding: 10px 12px 4px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
#sei-heloc-v2 .rate-table.est-draws { background: var(--paper); font-size: 12px; }
#sei-heloc-v2 .rate-table.est-draws th { text-transform: none; font-size: 10.5px; padding: 4px 6px; }
#sei-heloc-v2 .rate-table.est-draws td { padding: 6px; white-space: nowrap; }
#sei-heloc-v2 .rate-table.est-draws th:first-child,
#sei-heloc-v2 .rate-table.est-draws td:first-child { padding-left: 12px; }
#sei-heloc-v2 .est-max {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--mint-bg);
  border-radius: 99px;
  padding: 1px 6px;
}
/* Compliance R3 payment basis line (v2preview8) */
#sei-heloc-v2 .est-basis {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
#sei-heloc-v2 .est-not-offer {
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
#sei-heloc-v2 .rate-slot.est-card.est-letstalk { padding: 12px 12px 0; }
#sei-heloc-v2 .est-letstalk > p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
#sei-heloc-v2 .est-lt-h { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
#sei-heloc-v2 .est-letstalk .est-cta { margin: 4px -12px 0; }
#sei-heloc-v2 .est-cta { background: var(--navy); color: #fff; padding: 14px 12px; }
#sei-heloc-v2 .est-cta-h { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
#sei-heloc-v2 .est-cta p { margin: 4px 0 10px; font-size: 12.5px; color: #e6ecf2; line-height: 1.5; }
#sei-heloc-v2 .est-book {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 18px;
}
#sei-heloc-v2 .est-card p.est-disc {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  background: #fff;
}
#sei-heloc-v2 .est-letstalk p.est-disc { margin: 0 -12px; }

#sei-heloc-v2 .next-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink);
}

#sei-heloc-v2 .next-box h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--navy);
}

#sei-heloc-v2 .next-box p {
  margin: 0;
  color: var(--muted);
}

#sei-heloc-v2 .btn-call-now {
  text-decoration: none;
}

/* Google Reviews section (Trustindex widget preserved intact) */
#sei-heloc-v2 .reviews-wrap {
  max-width: 1080px;
  width: 100%;
  margin: 6px auto 24px;
  padding: 0 12px;
}

#sei-heloc-v2 .reviews-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

#sei-heloc-v2 .reviews-card h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

#sei-heloc-v2 #sei-review-slot,
#sei-heloc-v2 .sei-trustindex {
  min-width: 0;
  max-width: 100%;
  min-height: 180px;
}

/* Shared shell container for lower-page sections */
#sei-heloc-v2 .shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

#sei-heloc-v2 .panel > .eyebrow,
#sei-heloc-v2 .next-steps > .eyebrow,
#sei-heloc-v2 .fit-copy > .eyebrow,
#sei-heloc-v2 .uses-section .eyebrow,
#sei-heloc-v2 .faq-section .eyebrow,
#sei-heloc-v2 .closing .eyebrow {
  display: none;
}

/* Lower lead sections (What happens next + More than one way to qualify) */
#sei-heloc-v2 .lower-lead-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 28px 0 64px;
}

/* What happens next */
#sei-heloc-v2 .next-steps {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

#sei-heloc-v2 .next-steps h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #082737;
  padding-bottom: 14px;
  border-bottom: 1px solid #d8e2e6;
}

#sei-heloc-v2 .steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 28px;
}

#sei-heloc-v2 .steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

#sei-heloc-v2 .steps .number {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #dff1f2;
  color: #0b6e72;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}

#sei-heloc-v2 .steps h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  color: #082737;
  letter-spacing: -0.015em;
}

#sei-heloc-v2 .steps p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: #526775;
}

/* More than one way to qualify (fit-card) */
#sei-heloc-v2 .fit-card {
  background: #fff;
  border: 1px solid #d8e2e6;
  border-radius: 5px;
  box-shadow: 0 18px 45px rgba(8, 39, 55, 0.08);
  padding: 0;
  overflow: hidden;
}

#sei-heloc-v2 .fit-copy {
  padding: 36px;
}

#sei-heloc-v2 .fit-copy h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #082737;
}

#sei-heloc-v2 .fit-copy > p {
  margin: 15px 0 0;
  color: #526775;
  font-size: 17px;
  line-height: 1.55;
}

#sei-heloc-v2 .dark-checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  color: #0f2634;
  font-size: 15px;
}

#sei-heloc-v2 .dark-checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.45;
}

#sei-heloc-v2 .dark-checks li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6f4f3;
  color: #0b6e72;
  font-size: 12px;
  font-weight: 700;
}

#sei-heloc-v2 .fit-copy .fine-print {
  margin: 18px 0 0;
  color: #526775;
  font-size: 13px;
  line-height: 1.5;
}

#sei-heloc-v2 .fit-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* What will you do with your equity? (uses-section) */
#sei-heloc-v2 .uses-section {
  padding: 64px 0;
}

#sei-heloc-v2 .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

#sei-heloc-v2 .section-heading h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #082737;
}

#sei-heloc-v2 .uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#sei-heloc-v2 .uses-grid a {
  display: block;
  background: #fff;
  border: 1px solid #d8e2e6;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(8, 39, 55, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: inherit;
  text-decoration: none;
}

#sei-heloc-v2 .uses-grid a:hover {
  transform: translateY(-2px);
  border-color: #138d91;
  box-shadow: 0 16px 34px rgba(8, 39, 55, 0.12);
}

#sei-heloc-v2 .uses-grid img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
}

#sei-heloc-v2 .uses-grid h3 {
  padding: 23px 23px 25px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #082737;
}

/* 3 benefit highlights (benefits-section) */
#sei-heloc-v2 .benefits-section {
  background: #fff;
  border-top: 1px solid #d8e2e6;
  border-bottom: 1px solid #d8e2e6;
  padding: 62px 0;
}

#sei-heloc-v2 .benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#sei-heloc-v2 .benefits-grid article {
  padding: 28px;
  border: 1px solid #d8e2e6;
  border-radius: 5px;
  background: #fbfcfc;
}

#sei-heloc-v2 .benefit-icon,
#sei-heloc-v2 .benefits-grid article:nth-child(3)::before {
  display: grid;
  place-items: center;
  color: #138d91;
  background: #e9f5f3;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

#sei-heloc-v2 .benefits-grid article:nth-child(3)::before {
  content: "$";
}

#sei-heloc-v2 .benefits-grid h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #082737;
}

#sei-heloc-v2 .benefits-grid p {
  margin: 12px 0 0;
  color: #526775;
  line-height: 1.55;
}

/* Questions about HELOCs (faq-section) */
#sei-heloc-v2 .faq-section {
  padding: 68px 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

#sei-heloc-v2 .faq-section h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #082737;
}

#sei-heloc-v2 .faq-section > div > p {
  margin: 12px 0 0;
  color: #526775;
  font-size: 18px;
  line-height: 1.55;
}

#sei-heloc-v2 .faqs {
  display: grid;
  gap: 12px;
}

#sei-heloc-v2 .faqs details {
  background: #fff;
  border: 1px solid #d8e2e6;
  border-radius: 5px;
  padding: 20px 23px;
}

#sei-heloc-v2 .faqs summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #082737;
  font-size: 19px;
  font-weight: 700;
}

#sei-heloc-v2 .faqs summary::-webkit-details-marker {
  display: none;
}

#sei-heloc-v2 .faqs summary::after {
  content: "+";
  flex: 0 0 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef5f6;
  color: #138d91;
  font-size: 20px;
}

#sei-heloc-v2 .faqs details[open] summary::after {
  content: "–";
}

#sei-heloc-v2 .faqs details p {
  margin: 13px 0 0;
  color: #526775;
  font-size: 16px;
  line-height: 1.55;
}

/* Closing CTA banner */
#sei-heloc-v2 .closing {
  background: linear-gradient(90deg, rgba(8, 39, 55, 0.94), rgba(11, 110, 114, 0.88)), var(--closing-bg) center/cover no-repeat;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

#sei-heloc-v2 .closing h2 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

#sei-heloc-v2 .closing a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 17px 26px;
  border-radius: 5px;
  background: #8ed5cf;
  color: #082737;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

/* Full original footer */
#sei-heloc-v2 .site-footer {
  padding: 48px 0 56px;
  color: #526775;
  font-size: 14px;
}

#sei-heloc-v2 .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8e2e6;
}

#sei-heloc-v2 .footer-top img {
  width: 150px;
  height: auto;
}

#sei-heloc-v2 .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #082737;
  font-weight: 700;
}

#sei-heloc-v2 .footer-contact a {
  color: inherit;
  text-decoration: none;
}

#sei-heloc-v2 .main-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

#sei-heloc-v2 .main-site-footer-text p {
  margin: 0 0 18px;
  color: #526775;
  font-size: 14px;
  line-height: 1.7;
}

#sei-heloc-v2 .main-site-footer-text p:last-child {
  margin-bottom: 0;
}

#sei-heloc-v2 .main-site-footer-text strong {
  color: #082737;
  font-weight: 700;
}

#sei-heloc-v2 .main-site-footer-text a {
  color: #082737;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#sei-heloc-v2 .main-site-footer-text a:hover {
  color: #138d91;
}

#sei-heloc-v2 .main-site-footer-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 4px;
}

#sei-heloc-v2 .main-site-footer-logos img:first-child {
  width: 82px;
  height: auto;
}

#sei-heloc-v2 .main-site-footer-logos img:last-child {
  width: 132px;
  height: auto;
}

/* Opt-out preferences modal */
#sei-heloc-v2 .sei-optout-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 39, 55, 0.62);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#sei-heloc-v2 .sei-optout-backdrop[aria-hidden="false"] {
  display: flex;
}

#sei-heloc-v2 .sei-optout-dialog {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(8, 39, 55, 0.25);
  overflow: hidden;
  color: #0f2634;
}

#sei-heloc-v2 .sei-optout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #d8e2e6;
}

#sei-heloc-v2 .sei-optout-header img {
  width: 100px;
  height: auto;
}

#sei-heloc-v2 .sei-optout-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #082737;
  flex: 1;
}

#sei-heloc-v2 .sei-optout-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #526775;
  cursor: pointer;
  padding: 4px 8px;
}

#sei-heloc-v2 .sei-optout-body {
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #526775;
}

#sei-heloc-v2 .sei-optout-body > p {
  margin: 0 0 14px;
}

#sei-heloc-v2 .sei-optout-categories {
  display: grid;
  gap: 10px;
}

#sei-heloc-v2 .sei-optout-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e2e6;
  border-radius: 6px;
  background: #f8fbfc;
  cursor: pointer;
}

#sei-heloc-v2 .sei-optout-cat span {
  display: flex;
  flex-direction: column;
}

#sei-heloc-v2 .sei-optout-cat strong {
  color: #082737;
  font-size: 14px;
}

#sei-heloc-v2 .sei-optout-cat small {
  color: #526775;
  font-size: 12px;
}

#sei-heloc-v2 .sei-optout-cat input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #138d91;
}

#sei-heloc-v2 .sei-optout-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b6e72;
  min-height: 18px;
}

#sei-heloc-v2 .sei-optout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #d8e2e6;
  background: #fbfcfc;
}

#sei-heloc-v2 .sei-optout-btn {
  flex: 1 1 130px;
  min-height: 40px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #d8e2e6;
  background: #fff;
  color: #082737;
}

#sei-heloc-v2 .sei-optout-btn.sei-optout-accept {
  background: #138d91;
  border-color: #138d91;
  color: #fff;
}

#sei-heloc-v2 .sei-optout-btn.sei-optout-deny {
  background: #082737;
  border-color: #082737;
  color: #fff;
}

/* Sticky bottom buttons (Get My Options + Call 424-484-0644) */
#sei-heloc-v2 .sticky-options,
#sei-heloc-v2 .sticky-call {
  display: none;
}

/* Responsive tablet & mobile rules matching live /heloc/ */
@media (max-width: 980px) {
  #sei-heloc-v2 .lower-lead-sections,
  #sei-heloc-v2 .uses-grid,
  #sei-heloc-v2 .benefits-grid,
  #sei-heloc-v2 .faq-section,
  #sei-heloc-v2 .main-site-footer {
    grid-template-columns: 1fr;
  }
  #sei-heloc-v2 .lower-lead-sections {
    gap: 36px;
    padding: 20px 0 46px;
  }
  #sei-heloc-v2 .main-site-footer {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  #sei-heloc-v2 .shell {
    width: calc(100% - 40px);
  }
  #sei-heloc-v2 .next-steps h2 {
    font-size: 28px;
  }
  #sei-heloc-v2 .steps {
    gap: 26px;
  }
  #sei-heloc-v2 .steps li {
    gap: 15px;
  }
  #sei-heloc-v2 .steps .number {
    background: transparent;
    color: #138d91;
    flex: 0 0 26px;
    width: 26px;
    height: auto;
    border-radius: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    place-items: start;
    padding-top: 1px;
  }
  #sei-heloc-v2 .steps h3 {
    font-size: 18px;
  }
  #sei-heloc-v2 .fit-copy {
    padding: 25px 22px;
  }
  #sei-heloc-v2 .fit-copy h2 {
    font-size: 26px;
  }
  #sei-heloc-v2 .fit-card img,
  #sei-heloc-v2 .uses-grid img {
    height: 215px;
  }
  #sei-heloc-v2 .uses-section,
  #sei-heloc-v2 .benefits-section,
  #sei-heloc-v2 .faq-section {
    padding: 46px 0;
  }
  #sei-heloc-v2 .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  #sei-heloc-v2 .section-heading h2,
  #sei-heloc-v2 .faq-section h2 {
    font-size: 30px;
  }
  #sei-heloc-v2 .faqs details {
    padding: 18px;
  }
  #sei-heloc-v2 .faqs summary {
    font-size: 17px;
  }
  #sei-heloc-v2 .closing {
    padding: 52px 0;
  }
  #sei-heloc-v2 .closing h2 {
    font-size: 32px;
  }
  #sei-heloc-v2 .closing a {
    width: 100%;
    font-size: 18px;
  }
  #sei-heloc-v2 .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  #sei-heloc-v2 .site-footer {
    padding-bottom: 160px;
  }
  #sei-heloc-v2 .sticky-options {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 68px;
    z-index: 49;
    padding: 10px 20px 8px;
    background: #fff;
    border-top: 1px solid #d8e2e6;
    box-shadow: 0 -6px 18px rgba(8, 39, 55, 0.08);
  }
  #sei-heloc-v2 .sticky-options .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #138d91;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  #sei-heloc-v2 .sticky-call {
    display: block;
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 0;
    box-shadow: none;
  }
  #sei-heloc-v2 .sticky-call a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    border-radius: 5px;
    background: #082737;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
  }
  #sei-heloc-v2 .sticky-call svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #8ed5cf;
    stroke-width: 1.5;
  }
}

/* Responsive desktop enhancements while keeping 390px mobile identical to mockup */
@media (min-width: 769px) {
  #sei-heloc-v2 .top-inner {
    padding: 12px 24px;
  }
  #sei-heloc-v2 .top .logo {
    height: 52px;
  }
  #sei-heloc-v2 .top .call {
    font-size: 14px;
    padding: 10px 18px;
  }
  #sei-heloc-v2 .top .call-mobile-label {
    display: none;
  }
  #sei-heloc-v2 .top .call-desktop-num {
    display: inline;
  }
  #sei-heloc-v2 .hero {
    padding: 28px 24px 32px;
    text-align: center;
  }
  #sei-heloc-v2 .hero-inner {
    max-width: 640px;
  }
  #sei-heloc-v2 .hero h1 {
    font-size: 34px;
    margin-bottom: 8px;
  }
  #sei-heloc-v2 .hero p {
    font-size: 16px;
  }
  #sei-heloc-v2 .card {
    margin: -14px auto 16px;
    padding: 24px 24px 22px;
  }
  #sei-heloc-v2[data-active-step="2"] .card,
  #sei-heloc-v2[data-active-step="3"] .card,
  #sei-heloc-v2[data-active-step="4"] .card,
  #sei-heloc-v2[data-active-step="4b"] .card,
  #sei-heloc-v2[data-active-step="5"] .card {
    margin-top: 24px;
  }
  #sei-heloc-v2 .trust {
    margin: 4px auto 20px;
  }
}

/* v2live1: on the live /heloc/ page the site theme CSS also loads (wp_head). Neutralize its global button reset
   (nowrap, pink #c36 border/color, uppercase) inside the funnel so buttons look the same as on the preview. */
#sei-heloc-v2 button,
#sei-heloc-v2 [type=button],
#sei-heloc-v2 [type=submit] {
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
}
#sei-heloc-v2 button:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   v2live3: mobile robustness (narrow phones + Android font scale / text zoom).
   Root cause fixed: option labels are bare text in a flex <button>, so the text is an anonymous flex item with
   min-width:auto; it cannot shrink below its longest word ("improvement") and nothing allowed a break, so with
   larger system text the word ran past the tile edge. All rules scoped to #sei-heloc-v2; Trustindex untouched.
   ========================================================================== */
#sei-heloc-v2 .card,
#sei-heloc-v2 .step-pane,
#sei-heloc-v2 .grid > *,
#sei-heloc-v2 .row > *,
#sei-heloc-v2 .trust > *,
#sei-heloc-v2 .opt,
#sei-heloc-v2 .btn,
#sei-heloc-v2 .otp-actions > *,
#sei-heloc-v2 .prog > span,
#sei-heloc-v2 .slider .top2 > *,
#sei-heloc-v2 label,
#sei-heloc-v2 select,
#sei-heloc-v2 input {
  min-width: 0;
}

/* Long words may break inside the funnel instead of spilling out (break-word first as fallback). */
#sei-heloc-v2 .step-pane,
#sei-heloc-v2 .trust,
#sei-heloc-v2 .hero,
#sei-heloc-v2 .sticky-options,
#sei-heloc-v2 .sticky-call {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
/* Tiles, buttons, chips and labels: also hyphenate (Android Chrome has the en dictionary). */
#sei-heloc-v2 .opt,
#sei-heloc-v2 .btn,
#sei-heloc-v2 .chip,
#sei-heloc-v2 label,
#sei-heloc-v2 .otp-link-btn,
#sei-heloc-v2 .trust-txt b,
#sei-heloc-v2 .trust-txt span,
#sei-heloc-v2 .est-card td,
#sei-heloc-v2 .est-card th {
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Option tiles (Steps 1 and 2): a tile drops to one column only when a whole word would not fit next to the icon.
   The minimum is in em, so it grows with the user's text size; at default text the grid stays 2 columns from 340px up. */
#sei-heloc-v2 .grid {
  grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 9.4em), calc((100% - 16px) / 2)), 1fr)); /* never more than the original 2 columns */
}
#sei-heloc-v2 .opt {
  font-size: clamp(12px, 3.6vw, 13.5px);
  padding-left: clamp(8px, 2.6vw, 10px);
  padding-right: clamp(8px, 2.6vw, 10px);
  gap: clamp(7px, 2.4vw, 9px);
  height: auto;
}
#sei-heloc-v2 .opt .ic {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 1.867em;   /* 28px at the default 15px; scales with text so the emoji never spills */
  height: 1.867em;
}

/* Buttons */
#sei-heloc-v2 .btn {
  font-size: clamp(14.5px, 4.2vw, 16px);
  height: auto;
  max-width: 100%;
}
#sei-heloc-v2 .btn small { font-size: clamp(10.5px, 2.9vw, 11px); }
#sei-heloc-v2 .otp-actions { flex-wrap: wrap; }
#sei-heloc-v2 .otp-link-btn { flex: 1 1 8em; white-space: normal; }
#sei-heloc-v2 .prog { flex-wrap: wrap; }
#sei-heloc-v2 .prog .bar { min-width: 4em; }

/* Inputs and selects grow with text instead of clipping it */
#sei-heloc-v2 input:not([type="range"]),
#sei-heloc-v2 select.sel2 {
  height: auto;
  min-height: 46px;
  max-width: 100%;
}
#sei-heloc-v2 #sei-otp-code { height: auto; min-height: 56px; letter-spacing: min(0.32em, 4vw); }
#sei-heloc-v2 select.sel2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
}
#sei-heloc-v2 .row { grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 8em), calc((100% - 16px) / 2)), 1fr)); }
#sei-heloc-v2 .slider .top2 { flex-wrap: wrap; gap: 0 8px; }

/* Trust tiles: 3 across by default; fewer per row only when a word would not fit (em based). */
#sei-heloc-v2 .trust { grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 6.1em), calc((100% - 32px) / 3)), 1fr)); }
#sei-heloc-v2 .trust-ic { flex-shrink: 0; }
#sei-heloc-v2 .trust-txt { flex: 1 1 auto; min-width: 0; max-width: 100%; }
#sei-heloc-v2 .trust-txt b { font-size: clamp(11px, 3.45vw, 12.5px); }
#sei-heloc-v2 .trust-txt span { font-size: clamp(10px, 3.05vw, 11px); }
@media (min-width: 768px) {
  #sei-heloc-v2 .trust-txt b { font-size: 14px; }
  #sei-heloc-v2 .trust-txt span { font-size: 12.5px; }
}

/* Step 5 estimate card (offer and let's talk): numbers stay on one line while they fit; if the text is so large
   that the table would spill, the card may wrap the cells (container query in em = only when text is scaled up). */
#sei-heloc-v2 .rate-slot.est-card { container-type: inline-size; container-name: sei-est; }
#sei-heloc-v2 .est-table,
#sei-heloc-v2 .rate-table { table-layout: auto; max-width: 100%; }
@container sei-est (max-width: 21.5em) {
  #sei-heloc-v2 .est-table td.est-num,
  #sei-heloc-v2 .rate-table.est-draws td,
  #sei-heloc-v2 .rate-table.est-draws th { white-space: normal; }
  #sei-heloc-v2 .rate-table.est-draws th,
  #sei-heloc-v2 .rate-table.est-draws td { padding-left: 4px; padding-right: 4px; }
  #sei-heloc-v2 .rate-table.est-draws th:first-child,
  #sei-heloc-v2 .rate-table.est-draws td:first-child { padding-left: 8px; }
}
#sei-heloc-v2 .est-book,
#sei-heloc-v2 .btn-call-now { max-width: 100%; }

/* Header Call button: tap area at least 48px tall without changing the visible button or header height. */
#sei-heloc-v2 .top .call {
  position: relative;
}
#sei-heloc-v2 .top .call::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: max(48px, 100%);
  transform: translateY(-50%);
}

/* Sticky bars (mobile): Get My Options always sits fully above the Call bar, even with larger text or a gesture bar
   inset; both buttons are full-size tap targets (min 48px); primary buttons scroll clear of the bars. */
@media (max-width: 760px) {
  #sei-heloc-v2 .sticky-options {
    font-size: 17px; /* em reference only (no direct text); matches the Call link */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px) + max(48px, 2.4em));
  }
  #sei-heloc-v2 .sticky-options .button {
    min-height: 48px;
    height: auto;
    line-height: 1.2;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  #sei-heloc-v2 .sticky-call a {
    min-height: max(48px, 2.4em);
    line-height: 1.2;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  #sei-heloc-v2 .sticky-call svg { flex-shrink: 0; }
  #sei-heloc-v2 .btn,
  #sei-heloc-v2 .opt,
  #sei-heloc-v2 input,
  #sei-heloc-v2 select,
  #sei-heloc-v2 .otp-link-btn,
  #sei-heloc-v2 .est-book {
    scroll-margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px) + 9em);
  }
  html:has(#sei-heloc-v2 .sticky-call) {
    scroll-padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

/* v2live3 additive elements */
#sei-heloc-v2 .sei-anchor {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 30px;
}
#sei-heloc-v2 .otp-talk {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
#sei-heloc-v2 .otp-talk a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 6px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
}

/* v2live3: lower page sections (not the Trustindex reviews block) also wrap long words/emails at large text sizes. */
#sei-heloc-v2 .next-steps,
#sei-heloc-v2 .fit-card,
#sei-heloc-v2 .uses-section,
#sei-heloc-v2 .benefits-section,
#sei-heloc-v2 .faq-section,
#sei-heloc-v2 .closing,
#sei-heloc-v2 .site-footer {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
}
#sei-heloc-v2 .benefits-grid > *,
#sei-heloc-v2 .footer-contact,
#sei-heloc-v2 .footer-contact a,
#sei-heloc-v2 .faqs > * {
  min-width: 0;
  max-width: 100%;
}

/* v2live8: form fixes (approved by Ryan Oct 28). Additive only. */
/* Fix 1: the sticky Get My Options bar slides away while the form card is on screen (it is not removed; it returns everywhere else). */
@media (max-width: 980px) {
  #sei-heloc-v2 .sticky-options {
    transition: transform .22s ease, opacity .22s ease, visibility 0s linear 0s;
  }
  #sei-heloc-v2 .sticky-options.sei-sticky-away {
    transform: translateY(calc(100% + 90px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sei-heloc-v2 .sticky-options,
  #sei-heloc-v2 .sticky-options.sei-sticky-away { transition: none; }
}
/* Fix 2: inline error right next to the step button */
#sei-heloc-v2 .sei-btn-err { margin: 10px 0 8px; }
/* Fix 3: optional type in amount, synced with the slider */
#sei-heloc-v2 .sei-amt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
#sei-heloc-v2 .sei-amt label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
#sei-heloc-v2 .sei-amt input.sei-amt-input {
  width: 9.5em;
  flex: 0 0 auto;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 16px; /* 16px prevents iOS focus zoom */
  text-align: right;
}
/* Fix 4: text code note under the phone field */
#sei-heloc-v2 .sei-phone-note {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 2px;
}
/* Fix 5: reassurance moved up next to the contact fields */
#sei-heloc-v2 .sei-reassure-top {
  justify-content: flex-start;
  text-align: left;
  margin: 0 0 4px;
}

/* ==========================================================================================================
   v2live9 responsive layout (layout only: no copy, number, disclosure or consent changes).
   Ryan's iPhone X test (375 wide) showed words hyphenated inside buttons and labels and money, percent and
   /mo values broken across lines in the results tables. Causes: overflow-wrap:anywhere on the funnel and lower
   sections (it lets a table squeeze a column down to one character) and hyphens:auto on buttons, labels and
   table cells (iOS Safari hyphenates English). This block turns both off and sizes text with clamp() so every
   phone width from 320px up lays out cleanly.
   ========================================================================================================== */

/* iOS: no automatic text inflation in landscape (user zoom and Safari text size still work). */
html, body.sei-v2-body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Long words break only when a single word cannot fit on a line at all (break-word does not shrink table columns
   or flex items the way anywhere does). */
#sei-heloc-v2 .step-pane,
#sei-heloc-v2 .trust,
#sei-heloc-v2 .hero,
#sei-heloc-v2 .sticky-options,
#sei-heloc-v2 .sticky-call,
#sei-heloc-v2 .next-steps,
#sei-heloc-v2 .fit-card,
#sei-heloc-v2 .uses-section,
#sei-heloc-v2 .benefits-section,
#sei-heloc-v2 .faq-section,
#sei-heloc-v2 .closing,
#sei-heloc-v2 .site-footer {
  overflow-wrap: break-word;
}

/* No hyphenation anywhere in the funnel or page (iOS Safari and Android Chrome both honor these). */
#sei-heloc-v2,
#sei-heloc-v2 p,
#sei-heloc-v2 li,
#sei-heloc-v2 span,
#sei-heloc-v2 div {
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* Buttons, tiles, chips, labels, headings and table cells: wrap only between words, never inside one. */
#sei-heloc-v2 .opt,
#sei-heloc-v2 .btn,
#sei-heloc-v2 button,
#sei-heloc-v2 .chip,
#sei-heloc-v2 label,
#sei-heloc-v2 .otp-link-btn,
#sei-heloc-v2 .trust-txt b,
#sei-heloc-v2 .trust-txt span,
#sei-heloc-v2 h1,
#sei-heloc-v2 h2,
#sei-heloc-v2 h3,
#sei-heloc-v2 h4,
#sei-heloc-v2 .est-card-head,
#sei-heloc-v2 .est-draw-h,
#sei-heloc-v2 .est-cta-h,
#sei-heloc-v2 .est-lt-h,
#sei-heloc-v2 .est-book,
#sei-heloc-v2 .btn-call-now,
#sei-heloc-v2 .est-card td,
#sei-heloc-v2 .est-card th {
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Money, numbers and percents: one line, even digit widths. */
#sei-heloc-v2 .est-table td.est-num,
#sei-heloc-v2 .rate-table.est-draws td,
#sei-heloc-v2 .rate-table.est-draws td b,
#sei-heloc-v2 .est-max,
#sei-heloc-v2 .sei-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  word-break: normal;
}
#sei-heloc-v2 .est-table td.est-num,
#sei-heloc-v2 .rate-table.est-draws td { font-feature-settings: "tnum" 1; }

/* Results table: label and value side by side, the value column keeps its full width and the label wraps.
   On a narrow card (small phones) each row stacks: label on top, value under it. */
#sei-heloc-v2 .est-table td.est-num {
  width: 1%;
  font-size: clamp(14px, 4vw, 15px);
  padding-left: 8px;
}
#sei-heloc-v2 .est-table td:first-child { font-size: clamp(12.5px, 3.6vw, 13px); }
#sei-heloc-v2 .est-card-head { font-size: clamp(12.5px, 3.6vw, 13px); }
@container sei-est (max-width: 300px) {
  #sei-heloc-v2 .est-table,
  #sei-heloc-v2 .est-table tbody,
  #sei-heloc-v2 .est-table tr,
  #sei-heloc-v2 .est-table td { display: block; width: auto; }
  #sei-heloc-v2 .est-table tr { border-top: 1px solid var(--line); padding: 9px 12px; }
  #sei-heloc-v2 .est-table tr:first-child { border-top: 0; }
  #sei-heloc-v2 .est-table td { padding: 0; border-top: 0; }
  #sei-heloc-v2 .est-table td.est-num { width: auto; text-align: left; padding: 2px 0 0; font-size: 16px; }
}

/* "If you set a smaller line" table: numbers never wrap; headers wrap between words; the "max" tag may drop
   under its amount; text and padding scale down on small phones so the four columns always fit. */
#sei-heloc-v2 .rate-table.est-draws { font-size: clamp(10.5px, 3.2vw, 12px); table-layout: auto; width: 100%; }
#sei-heloc-v2 .rate-table.est-draws th {
  font-size: clamp(9.5px, 2.8vw, 10.5px);
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
  padding: 4px clamp(3px, 1.2vw, 6px);
}
#sei-heloc-v2 .rate-table.est-draws td { padding: 6px clamp(3px, 1.2vw, 6px); }
#sei-heloc-v2 .rate-table.est-draws th:first-child,
#sei-heloc-v2 .rate-table.est-draws td:first-child { padding-left: clamp(8px, 3vw, 12px); white-space: normal; }
#sei-heloc-v2 .rate-table.est-draws th:last-child,
#sei-heloc-v2 .rate-table.est-draws td:last-child { padding-right: clamp(6px, 2.4vw, 12px); }
#sei-heloc-v2 .est-max { display: inline-block; font-size: clamp(9px, 2.6vw, 10px); }
@container sei-est (max-width: 21.5em) {
  #sei-heloc-v2 .est-table td.est-num,
  #sei-heloc-v2 .rate-table.est-draws td:not(:first-child) { white-space: nowrap; }
}

/* Headings and other text scale with the screen instead of jumping at one breakpoint. */
#sei-heloc-v2 .est-lt-h { font-size: clamp(15.5px, 4.6vw, 17px); }
#sei-heloc-v2 .est-cta-h { font-size: clamp(14.5px, 4.2vw, 15.5px); }
#sei-heloc-v2 .est-draw-h { font-size: clamp(11.5px, 3.4vw, 12px); }

/* Nothing wider than the screen. */
#sei-heloc-v2 img,
#sei-heloc-v2 svg,
#sei-heloc-v2 video,
#sei-heloc-v2 iframe,
#sei-heloc-v2 table { max-width: 100%; }

/* ==========================================================================
   v2live17 (Ryan approved Oct 30 2026 9:14 AM CT): tappable trust tiles open the existing form in a full screen panel.
   Tiles at rest are unchanged (no border, shadow, hint or underline is added); only the pointer cursor is new, and a
   focus ring shows for keyboard focus only. No transforms anywhere in the panel, so text stays crisp.
   ========================================================================== */
#sei-heloc-v2 .trust-tile[role="button"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#sei-heloc-v2 .trust-tile[role="button"]:focus:not(:focus-visible) { outline: none; }
#sei-heloc-v2 .trust-tile[role="button"]:focus-visible { outline: 2px solid #107e83; outline-offset: 2px; }

html.sei-tp-lock,
body.sei-tp-lock {
  overflow: hidden !important;
}
#sei-heloc-v2.sei-tp-on .sticky-call,
#sei-heloc-v2.sei-tp-on .sticky-options {
  display: none !important;
}
#sei-heloc-v2 .sei-tp {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483600;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-top: 76px;
}
#sei-heloc-v2 .sei-tp[hidden] { display: none; }
#sei-heloc-v2 .sei-tp-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid #E0E6EA;
}
#sei-heloc-v2 .sei-tp-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 60%;
  object-fit: contain;
  object-position: left center;
}
#sei-heloc-v2 .sei-tp .sei-tp-close {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  color: var(--ink);
  font: 700 14px/1.2 SEIOpen, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
#sei-heloc-v2 .sei-tp .sei-tp-close:hover { background: #f3f7f8; color: var(--ink); }
#sei-heloc-v2 .sei-tp .sei-tp-close:focus-visible { outline: 2px solid #107e83; outline-offset: 2px; }
#sei-heloc-v2 .sei-tp-body {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 0 calc(28px + env(safe-area-inset-bottom));
}
#sei-heloc-v2 .sei-tp .card,
#sei-heloc-v2[data-active-step] .sei-tp .card {
  margin: 0 12px 16px;
}
#sei-heloc-v2 .sei-tp-head { margin: 0 0 2px; }
#sei-heloc-v2:not([data-active-step="1"]) .sei-tp-head { display: none; }
#sei-heloc-v2 .sei-tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: rgba(79, 175, 159, 0.12);
  color: #354F6B;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}
#sei-heloc-v2 .sei-tp-chip svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #4FAF9F;
}
#sei-heloc-v2 .card .sei-tp-h { margin: 0 0 8px; }
#sei-heloc-v2 .sei-tp-h:focus { outline: none; }
#sei-heloc-v2 .sei-tp-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}
#sei-heloc-v2 .sei-tp .step-pane[data-step="1"] > h2 {
  font-size: 16px;
  margin-top: 16px;
}
#sei-heloc-v2 .sei-tp .sei-tp-est { margin-top: 14px; }
#sei-heloc-v2 .sei-tp .grid.sei-tp-need .opt { border-color: var(--teal); }

/* v2live17: short screens (375x548, 390x600). Panel only: a tighter bar and first screen so the badge, headline,
   choices and See My Estimate all fit without scrolling. */
@media (max-height: 640px) {
  #sei-heloc-v2 .sei-tp-bar { padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
  #sei-heloc-v2 .sei-tp-logo { height: 34px; }
  #sei-heloc-v2 .sei-tp .sei-tp-close { min-height: 36px; padding: 7px 15px; }
  #sei-heloc-v2 .sei-tp-body { padding-top: 8px; }
  #sei-heloc-v2 .sei-tp .card { padding-top: 12px; }
  #sei-heloc-v2 .sei-tp-chip { margin-bottom: 6px; }
  #sei-heloc-v2 .card .sei-tp-h { font-size: 18px; margin-bottom: 6px; }
  #sei-heloc-v2 .sei-tp-sub { font-size: 13.5px; line-height: 1.4; }
  #sei-heloc-v2 .sei-tp .step-pane[data-step="1"] > h2 { margin-top: 10px; }
  #sei-heloc-v2 .sei-tp .step-pane[data-step="1"] .opt { min-height: 46px; padding-top: 7px; padding-bottom: 7px; }
  #sei-heloc-v2 .sei-tp .sei-tp-est { margin-top: 10px; }
}
