body.effect-page { min-width: 0; }
.effect-page [hidden] { display: none !important; }
.effect-page .footer-main { padding-block-start: 24px; }
.effect-page .footer-brand img { height: auto; }

.effect-hero-banner h1 { margin-block: 0 14px; text-wrap: balance; }
.effect-hero-banner .audit-hero__photo { object-position: center 8%; }
.effect-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.effect-link { color: var(--blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.effect-hero-actions a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (min-width: 851px) {
  .effect-hero-banner {
    display: grid;
    align-items: center;
    min-height: 445px;
  }

  .effect-hero-banner h1 { max-width: min(52%, 620px); }
  .effect-hero-banner .audit-deck { max-width: min(48%, 560px); }
  .effect-hero-actions { max-width: 52%; }
}

.effect-hero-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  margin-top: 10px;
  padding: 12px clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.effect-hero-scenario { margin: 0; font-weight: 700; }
.effect-hero-profit { display: grid; gap: 4px; margin: 0; line-height: 1.35; }
.effect-hero-profit strong {
  color: #0e6b4b;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.effect-hero-conversion {
  display: grid;
  gap: 4px;
  margin: 0;
}

.effect-hero-conversion b { color: var(--navy); font-size: 18px; white-space: nowrap; }

.effect-opening { margin-top: clamp(24px, 3vw, 38px); }
.effect-opening h2 { font-size: clamp(26px, 2.7vw, 36px); }
.effect-opening > p { max-width: none; }
.effect-tool { padding-block: clamp(26px, 3.2vw, 44px) 12px; }
.effect-tool h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.7vw, 51px);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.effect-tool-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.effect-intro { max-width: 760px; margin: 8px 0 20px; color: var(--muted); }
.effect-grid {
  display: grid;
  grid-template-areas: "result result" "comparison actions";
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.4vw, 32px);
}

.effect-grid :is(input, select, button, a, summary):focus-visible,
.effect-tool-heading button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.effect-comparison { grid-area: comparison; min-width: 0; }
.effect-action-panel { grid-area: actions; min-width: 0; background: #fff; }
.effect-action-heading { margin-bottom: 16px; }
.effect-action-heading h3 { margin: 0; color: var(--navy); font-size: clamp(23px, 2.3vw, 32px); line-height: 1.2; }
.effect-action-footer { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: 14px; }
.effect-action-guidance { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.effect-action-controls { margin-top: 12px; }
.effect-apply-example { width: 100%; }

.effect-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.effect-action {
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
}
.effect-action--primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.effect-action:active { transform: scale(.97); }
.effect-status:not(:empty) { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.effect-status:empty,
.effect-alert:empty { margin: 0; padding: 0; }
.effect-alert:not(:empty) {
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid #ebbdc0;
  border-radius: var(--radius);
  background: #fff3f3;
  color: #a3232b;
  font-size: 14px;
}

.effect-scope {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}
.effect-scope select {
  width: 100%;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid #b7cbe1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.effect-group {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.effect-group legend {
  width: 100%;
  margin-bottom: 2px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

.effect-group-body { padding: 2px 4px; }
.effect-group-body > p { margin: 7px 7px 3px; color: var(--muted); font-size: 13px; }
.effect-action-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(88px, .32fr);
  gap: 6px;
  align-items: start;
  padding-inline: 7px 4px;
  border-bottom: 1px solid #e8eff7;
}
.effect-action-row:last-child { border-bottom: 0; }
.effect-action-row:has(:checked) { border-radius: 5px; background: #eef6ff; }
.effect-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.effect-check input { inline-size: 17px; block-size: 17px; margin: 0; flex: none; accent-color: var(--blue); }
.effect-action-help {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
}
.effect-action-help span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #9fbcdf;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.effect-action-help[aria-expanded="true"] span { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.effect-action-help:active { transform: scale(.97); }
.effect-action-hint {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid #b7cbe1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.effect-points {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.effect-points small { grid-column: 1 / -1; white-space: normal; }

.effect-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.effect-grid :is(input[data-input], input[data-points]) {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 4px 8px;
  border: 1px solid #b7cbe1;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.effect-grid input[data-points] { min-height: 34px; padding-inline: 4px; }
.effect-grid input[data-points]:disabled { background: var(--soft); color: #4f6783; }
.effect-grid input[aria-invalid="true"] { border-color: #b1272e; }
.effect-grid summary[aria-invalid="true"] { color: #a3232b; }
.effect-grid small { display: block; margin-top: 2px; color: #a3232b; font-size: 12px; line-height: 1.35; }

.effect-result {
  grid-area: result;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0 clamp(12px, 2vw, 26px);
  padding: clamp(16px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.effect-result-profit { display: flex; flex-direction: column; }
.effect-result h3 { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.effect-delta { order: -1; margin: 0 0 5px; color: var(--navy); font-size: clamp(29px, 4vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.effect-delta[data-direction="positive"] { color: var(--green); }
.effect-delta[data-direction="negative"] { color: #a3232b; }
.effect-result-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.effect-result-metric { min-width: 0; padding-inline-start: clamp(12px, 2vw, 26px); border-inline-start: 1px solid var(--line); }
.effect-result-metric strong { font-size: clamp(18px, 2.25vw, 32px); font-weight: 780; line-height: 1.2; overflow-wrap: anywhere; }
.effect-result-metric > strong { display: block; margin-top: 5px; }
.effect-result-rates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin: 5px 0 0; }
.effect-result-rates strong { white-space: nowrap; }
.effect-result-rates strong:last-child { color: var(--blue-dark); }
.effect-result > :is(.effect-example-cost-note, .effect-alert) { grid-column: 1 / -1; }
.effect-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; padding-top: 9px; border-top: 1px solid var(--line); }
.effect-summary > div { display: flex; flex-direction: column; }
.effect-summary dt { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.35; }
.effect-summary dd { margin: 4px 0 0; color: var(--navy); font-size: 16px; font-weight: 750; overflow-wrap: anywhere; }
.effect-comparison .effect-summary { margin-bottom: 12px; }
.effect-example-cost-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.effect-table-frame { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.effect-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.effect-table caption { padding: 0 0 6px; font-weight: 730; text-align: left; }
.effect-table :is(th, td) {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.effect-table :is(th, td) + :is(th, td) { text-align: right; }
.effect-main-table { table-layout: fixed; }
.effect-main-table thead { background: var(--soft); color: var(--navy); }
.effect-main-table thead th { padding: 10px 12px; }
.effect-main-table thead th:first-child { width: 44%; }
.effect-main-table thead span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.effect-main-table :is(th, td) { padding-inline: 12px; }
.effect-main-table :is(th, td):nth-child(3) { border-inline-start: 1px solid #dfeaf7; background: #f2f8ff; }
.effect-main-table tbody th { font-weight: 650; }
.effect-main-table td strong { color: var(--navy); font-size: 17px; }
.effect-stage-rate { display: block; margin-top: 2px; color: #4f6783; font-size: 12px; }
.effect-main-table .effect-key-row { color: var(--navy); font-weight: 750; }
.effect-main-table tfoot tr:last-child > * { border-bottom: 0; }
.effect-main-table tfoot th { font-weight: 660; }
.effect-overview-frame { margin: 0 0 12px; }
.effect-overview-table :is(th, td) { padding-block: clamp(11px, 1.55vw, 20px); font-size: clamp(14px, 1.2vw, 17px); }
.effect-overview-table td { font-weight: 650; }
.effect-overview-table .effect-key-row { background: var(--soft); }
.effect-overview-table tbody tr:last-child > * { border-bottom: 0; font-weight: 750; }
.effect-privacy { margin: 9px 0 12px; color: var(--muted); font-size: 13px; }

.effect-options { border-top: 1px solid var(--line); }
.effect-options summary { min-height: 44px; padding-block: 11px; color: var(--blue-dark); font-size: 15px; font-weight: 740; cursor: pointer; }
.effect-options:has(input[aria-invalid="true"]) summary { color: #a3232b; }
.effect-options p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.effect-detail-grid { display: grid; gap: 16px; padding-block: 4px 14px; }
.effect-detail-grid .effect-table { table-layout: fixed; }
.effect-detail-grid thead { background: var(--soft); color: var(--navy); }
.effect-detail-grid thead th:first-child { width: 46%; }
.effect-detail-grid .effect-changed { background: #e8f2ff; color: var(--blue-dark); font-weight: 750; }
.effect-inputs { margin-top: 3px; scroll-margin-top: 8px; }
.effect-inputs h4 { margin: 18px 0 6px; color: var(--navy); font-size: 16px; line-height: 1.35; }
.effect-inputs .effect-fields-heading { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.effect-fields-help { grid-column: 1 / -1; }
.effect-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 6px 9px; align-items: start; }
.effect-col { align-self: end; color: #47627f; font-size: 13px; font-weight: 740; text-align: right; }
.effect-field-label { padding-block: 8px; color: var(--ink); font-size: 14px; font-weight: 640; line-height: 1.25; }
.effect-field { min-width: 0; }
.effect-base-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(86px, 28%); align-items: start; gap: 7px 9px; margin-block: 10px; }
.effect-base-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; font-size: 14px; }

.effect-page .audit-reading { margin-block-end: clamp(24px, 3vw, 36px); }
.effect-prose { width: 100%; }
.effect-prose .effect-follow-up { margin-top: 24px; }
.effect-prose .effect-action-table caption { padding-bottom: 6px; color: var(--muted); text-align: left; }
.effect-prose .effect-action-table td { overflow-wrap: anywhere; }
.effect-formula { display: grid; gap: 8px; margin-block: 14px; padding: 13px 18px; border-inline-start: 3px solid var(--blue); background: var(--soft); }
.effect-formula div { display: grid; grid-template-columns: minmax(0, 138px) minmax(0, 1fr); gap: 5px 14px; }
.effect-formula dt { font-weight: 730; }
.effect-formula dd { margin: 0; }
.effect-prose .effect-table { margin-block: 15px; }
.effect-prose .effect-table :is(th, td) { font-size: 15px; }
.effect-prose .audit-cta {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  background: #f1f7fd;
  color: var(--navy);
}
.effect-prose .audit-cta h2 { color: var(--navy); font-size: clamp(24px, 2.7vw, 34px); }
.effect-prose .audit-cta p { max-width: 60ch; color: var(--muted); }
.effect-prose .audit-cta a:focus-visible { outline-color: var(--blue); }
.effect-prose .audit-cta .button { margin-top: 15px; }

@media (hover: hover) and (pointer: fine) {
  .effect-action:hover { border-color: var(--blue); background: var(--soft); }
  .effect-action--primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
  .effect-link:hover { color: var(--blue); }
  .effect-action-help[aria-expanded="false"]:hover span { background: #eef6ff; border-color: var(--blue-dark); }
}

@media (max-width: 860px) {
  .effect-grid { grid-template-areas: "result" "comparison" "actions"; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 850px) {
  .effect-hero-banner .audit-hero__photo { max-height: 320px; margin-bottom: 0; }
  .effect-hero-actions { gap: 8px 14px; margin-top: 14px; }
}

@media (max-width: 560px) {
  .effect-hero-example { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .effect-hero-conversion {
    grid-template-columns: repeat(2, auto);
    align-items: baseline;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .effect-result { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; align-items: start; }
  .effect-result-profit { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .effect-result-metric { padding-inline-start: 0; border-inline-start: 0; }
  .effect-result-metric + .effect-result-metric { padding-inline-start: 9px; border-inline-start: 1px solid var(--line); }
  .effect-result h3 { font-size: 13px; }
  .effect-action-row { grid-template-columns: minmax(0, 1fr) 28px minmax(72px, .25fr); gap: 4px; }
  .effect-detail-grid .effect-table :is(th, td) { padding-inline: 6px; font-size: 13px; }
  .effect-main-table :is(th, td) { padding-inline: 6px; font-size: 13px; }
  .effect-main-table thead th:first-child { width: 39%; }
  .effect-main-table thead span, .effect-stage-rate { font-size: 11px; }
  .effect-main-table td strong { font-size: 15px; }
  .effect-formula div { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .effect-prose .effect-action-table tbody td { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html.crmpro-nav-page { scroll-behavior: auto; }
}
