:root {
  --ink: #132233;
  --ink-soft: #3f556a;
  --line: #c8d4df;
  --panel: #ffffff;
  --bg-a: #ecf7f1;
  --bg-b: #f4f8ff;
  --accent: #0f6f54;
  --accent-2: #175cd3;
  --danger: #b42318;
  --focus: #175cd3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #dff6e9 0%, transparent 42%),
    radial-gradient(circle at 82% 6%, #dce9ff 0%, transparent 38%),
    linear-gradient(140deg, var(--bg-a), var(--bg-b));
}

.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}

.brand {
  margin-bottom: 10px;
}

.site-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #b7c9db;
}

.site-banner-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  text-decoration: none;
}

.site-banner-img {
  width: auto;
  max-width: min(100%, 520px);
  height: clamp(48px, 7.2vw, 62px);
  display: block;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

h1 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.03;
}

.sub {
  margin: 0;
  color: var(--ink-soft);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 700;
}

.scope-line {
  margin: 8px 0 0;
  border-radius: 11px;
  border: 1px solid #bed1e3;
  background: #f4f8fd;
  color: #2b4a66;
  font-weight: 700;
  line-height: 1.3;
}

.scope-line-hero {
  max-width: 760px;
  font-size: 14px;
  padding: 8px 10px;
}

.scope-line-inline {
  font-size: 12px;
  padding: 8px 10px;
}

.journey {
  margin-bottom: 12px;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.journey-step {
  min-height: 42px;
  border: 1px solid #bfd0df;
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fbff;
  color: #33526e;
  font-size: 13px;
  font-weight: 800;
}

.journey-step span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-step.is-active {
  border-color: #1f5ec8;
  background: #eaf2ff;
  color: #1f4ea3;
}

.journey-step.is-complete {
  border-color: #0f6f54;
  background: #e9f9f1;
  color: #0a5f47;
}

.journey-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #d7e6f7;
  color: #1f4ea3;
  font-size: 12px;
  font-weight: 800;
}

.journey-step.is-complete .journey-dot {
  background: #b8e9d1;
  color: #0a5f47;
}

.card {
  background: color-mix(in srgb, var(--panel) 93%, #edf3ff 7%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(13, 35, 63, 0.08);
  padding: 18px;
}

.stack {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  color: #244260;
}

.input {
  width: 100%;
  border: 1.5px solid #b6c5d5;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.input:focus,
button:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.2);
}

.ta {
  min-height: 96px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0a7f5d, #0c6e8a);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.btn-secondary {
  background: linear-gradient(135deg, #1355c2, #1173b4);
}

.hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.field-feedback {
  margin: -2px 0 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.recent-checks {
  border: 1px dashed #b7c6d5;
  border-radius: 12px;
  background: #f9fbfe;
  padding: 9px 10px;
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recent-label {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38536f;
  font-weight: 800;
}

.recent-clear {
  border: 1px solid #b4c4d3;
  background: #fff;
  color: #35516b;
  border-radius: 8px;
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recent-item {
  border: 1px solid #b4c4d3;
  background: #fff;
  color: #1f3c57;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 24px;
  border-radius: 10px;
  padding: 5px 9px;
}

.status.info {
  background: #f3f7fc;
  border: 1px solid #d5e1ec;
}

.status.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.status.warn {
  background: #f3f7fc;
  border: 1px solid #d5e1ec;
  color: #1f3f5b;
}

.status.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.result {
  margin-top: 14px;
  border: 1px solid #cfdceb;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 8px 22px rgba(16, 40, 71, 0.07);
  --tier-surface: #f8fbff;
  --tier-surface-2: #fbfdff;
  --tier-border-soft: #d6e3ef;
  --tier-card-border: #cfdceb;
  --tier-label: #34506b;
  --tier-text: #2b4a66;
  --tier-term-bg: #f4f8fd;
  --tier-term-border: #b8cde0;
  --tier-term-text: #244a66;
}

.result[data-tier="high_likelihood"] {
  border-color: #5ab893;
  --tier-surface: #effcf5;
  --tier-surface-2: #f7fffb;
  --tier-border-soft: #a9d8c0;
  --tier-card-border: #c2e8d4;
  --tier-label: #3c5c56;
  --tier-text: #1b5b49;
  --tier-term-bg: #f5fffa;
  --tier-term-border: #8ab7a2;
  --tier-term-text: #145341;
}

.result[data-tier="likely"] {
  border-color: #98d5b4;
  --tier-surface: #f3fdf7;
  --tier-surface-2: #fbfffd;
  --tier-border-soft: #b6dfc9;
  --tier-card-border: #cdebdc;
  --tier-label: #3d6156;
  --tier-text: #215845;
  --tier-term-bg: #f6fffb;
  --tier-term-border: #99c7ae;
  --tier-term-text: #1f5c48;
}

.result[data-tier="partial"] {
  border-color: #e8d26a;
  --tier-surface: #fffdf0;
  --tier-surface-2: #fffef6;
  --tier-border-soft: #ecd97f;
  --tier-card-border: #f1e2a7;
  --tier-label: #7a5a14;
  --tier-text: #6e5417;
  --tier-term-bg: #fff8da;
  --tier-term-border: #e5cf7c;
  --tier-term-text: #7a5a14;
}

.result[data-tier="lower"] {
  border-color: #f2b27f;
  --tier-surface: #fff7ef;
  --tier-surface-2: #fffaf6;
  --tier-border-soft: #f3c39f;
  --tier-card-border: #f6d6bf;
  --tier-label: #9a4d22;
  --tier-text: #86411d;
  --tier-term-bg: #fff1e6;
  --tier-term-border: #efbd97;
  --tier-term-text: #9a4d22;
}

.result[data-tier="no_data"] {
  border-color: #ee9a9a;
  --tier-surface: #fff4f4;
  --tier-surface-2: #fff9f9;
  --tier-border-soft: #efb1b1;
  --tier-card-border: #f4c9c9;
  --tier-label: #9b3030;
  --tier-text: #832727;
  --tier-term-bg: #ffecec;
  --tier-term-border: #edb2b2;
  --tier-term-text: #9b3030;
}

.result-scope-note {
  margin: 0 0 10px !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #34506b !important;
}

.result-head {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-head-meta {
  display: grid;
  gap: 4px;
}

.result-eircode {
  margin: 0;
  font-size: 12px;
  color: #36516a;
  font-weight: 800;
}

.result h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.result-primary {
  border: 1px solid #d4e2f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.result[data-tier="high_likelihood"] .result-primary {
  border-color: #8fd4b5;
  background: #effcf5;
}

.result[data-tier="likely"] .result-primary {
  border-color: #a9dec3;
  background: #f3fdf7;
}

.result[data-tier="partial"] .result-primary {
  border-color: #ecd97f;
  background: #fffdf0;
}

.result[data-tier="lower"] .result-primary {
  border-color: #f3c39f;
  background: #fff7ef;
}

.result[data-tier="no_data"] .result-primary {
  border-color: #f0a8a8;
  background: #fff4f4;
}

.result-confidence {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bfd0df;
  background: #f2f7fc;
  color: #35516b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result[data-tier="high_likelihood"] .result-confidence {
  color: #065f46;
  background: #dcfce7;
  border-color: #86efac;
}

.result[data-tier="likely"] .result-confidence {
  color: #166534;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.result[data-tier="partial"] .result-confidence {
  color: #854d0e;
  background: #fef9c3;
  border-color: #fde68a;
}

.result[data-tier="lower"] .result-confidence {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.result[data-tier="no_data"] .result-confidence {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.result-supporting {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
  color: #1f4568;
  font-weight: 700;
}

.result-score {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.1;
  color: #0a2d45;
  font-weight: 900;
}

.result-score.is-secondary {
  font-size: 14px;
  color: #2f4f6c;
  font-weight: 700;
}

.result-driver-note {
  margin: 8px 0 0;
  display: inline-block;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  color: #0e6248;
  background: #e8f7f0;
  border: 1px solid #9edcc3;
  border-radius: 999px;
  padding: 4px 9px;
}

.result-driver-note.is-hardstop {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.result-clarifier {
  margin: 8px 0 0;
  border: 1px solid #bfd5ea;
  border-radius: 10px;
  background: #f4f9ff;
  color: #244a69;
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.result-area-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.34;
  color: #375a78;
  font-weight: 700;
}

.inline-info-btn {
  appearance: none;
  border: 1px solid #98aec5;
  background: #ffffff;
  color: #203f5c;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.inline-info-btn:hover,
.inline-info-btn:focus-visible {
  border-color: #1b5b8d;
  color: #0f4a7c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 83, 140, 0.15);
}

.result-area-note-details {
  margin: 4px 0 0;
  padding: 8px 10px;
  border: 1px solid #d7e5f2;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 12px;
  line-height: 1.32;
  color: #2a4f69;
  font-weight: 700;
}

.result-back-btn {
  border: 1px solid #b4c6d8;
  background: #f7fbff;
  color: #264967;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
}

.tier-high {
  color: #065f46;
  background: #dcfce7;
  border-color: #16a34a66;
}

.tier-likely {
  color: #166534;
  background: #ecfdf5;
  border-color: #22c55e55;
}

.tier-partial {
  color: #854d0e;
  background: #fef9c3;
  border-color: #facc1566;
}

.tier-lower {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fb923c66;
}

.tier-nodata {
  color: #991b1b;
  background: #fee2e2;
  border-color: #ef444466;
}

.tier-neutral {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.result-meaning {
  margin: 0 0 10px !important;
  color: #1a344b !important;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.evidence {
  margin: 0 0 8px !important;
  color: #244260 !important;
  font-size: 13px;
}

.result-reason-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a5871;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.result-reason-label::-webkit-details-marker {
  display: none;
}

.result-reason {
  border: 1px solid #d6e3ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.34;
  font-weight: 700;
}

.result-notes {
  margin-top: 10px;
  border: 1px solid #d5e1ec;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.result-data-block {
  margin-top: 10px;
  border: 1px solid var(--tier-border-soft);
  border-radius: 12px;
  background: var(--tier-surface-2);
}

.result-data-block .advanced-title {
  border-bottom: 1px solid var(--tier-card-border);
  color: var(--tier-label);
}

.result-data-block .data-snapshot {
  margin: 0;
  border: none;
  border-radius: 0 0 12px 12px;
}

.data-snapshot {
  margin: 10px 0 12px;
  border: 1px solid var(--tier-border-soft);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--tier-surface), var(--tier-surface-2));
  padding: 10px;
}

.data-snapshot-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f5f49;
}

.data-scope-text {
  margin: 0 0 8px;
  color: var(--tier-text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.data-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.data-card {
  border: 1px solid var(--tier-card-border);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.data-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--tier-label);
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-tip {
  border: 1px solid var(--tier-term-border);
  border-radius: 999px;
  background: var(--tier-term-bg);
  color: var(--tier-term-text);
  font-weight: 800;
  font-size: 10px;
  min-height: 20px;
  padding: 0 6px;
  cursor: help;
}

.data-value {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  color: #0e2d3e;
}

.data-help {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: #2f5f4d;
  font-weight: 700;
}

.data-guide {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #2e546f;
  font-weight: 700;
}

.data-coverage {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--tier-text);
  font-weight: 700;
}

body[data-evidence-variant="compact"] .data-scope-text {
  display: none;
}

.factor-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.factor-list li {
  color: #2b4762;
  font-size: 13px;
  line-height: 1.3;
}

.lead-cta {
  margin-top: 10px !important;
  border: 1px solid #c3d2e2;
  background: #f8fbff;
  color: #28445f !important;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 700;
}

.result-actions {
  margin-top: 12px;
  display: block;
}

.partner-micro {
  margin: 8px 2px 0;
}

.partner-micro-link {
  color: #526b80;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #9fb2c4;
  text-underline-offset: 2px;
}

.partner-micro-link:hover,
.partner-micro-link:focus-visible {
  color: #2f4b63;
  text-decoration-color: #7893a9;
}

.result-actions .btn {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f61cf, #0f7bb8);
  box-shadow: 0 10px 24px rgba(16, 83, 176, 0.25);
}

@media (prefers-reduced-motion: no-preference) {
  .result:not(.hidden),
  .map-preview:not(.hidden),
  .lead:not(.hidden) {
    animation: reveal-up 0.26s ease-out;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.disclaimer {
  margin-top: 8px !important;
  font-size: 12px;
}

.advanced-details {
  margin-top: 12px;
  border: 1px solid #d6e3ef;
  border-radius: 12px;
  background: #fbfdff;
}

.advanced-title {
  margin: 0;
  padding: 9px 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #244664;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.advanced-title::-webkit-details-marker {
  display: none;
}

.advanced-details:not([open]) .advanced-body {
  display: none;
}

.advanced-body {
  padding: 0 10px 10px;
}

.trust-lite {
  margin-top: 12px;
  border: 1px solid #d6e3ef;
  border-radius: 12px;
  padding: 8px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}

.trust-lite-item {
  border: 1px solid #dce8f3;
  border-radius: 9px;
  padding: 7px 9px;
  background: #fff;
}

.trust-lite-item summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 800;
  color: #21425e;
  list-style: none;
}

.trust-lite-item summary::-webkit-details-marker {
  display: none;
}

.trust-lite-item p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #3a556d;
  font-weight: 700;
}

.map-preview {
  margin-top: 12px;
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.map-head {
  padding: 8px 10px;
  border-bottom: 1px solid #dfe8f1;
}

.map-head h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2b4a66;
}

.map-head p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #45627c;
  font-weight: 700;
}

#mapImg {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, #eef4fb, #f4faf5);
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.map-preview.is-loading #mapImg {
  opacity: 0.58;
  filter: saturate(0.6);
}

.map-fallback {
  margin: 0;
  padding: 8px 10px 10px;
  font-size: 12px;
  color: #385670;
  font-weight: 700;
}

.lead {
  margin-top: 12px;
  border: 1px solid #b9d4e6;
  border-radius: 12px;
  background: #f5faff;
  padding: 12px;
}

.lead h3 {
  margin: 0 0 5px;
}

.lead p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.lead-progress-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: #375673;
}

body[data-progress-variant="compact"] .lead-progress-text {
  letter-spacing: 0.01em;
  text-transform: none;
}

.lead-optional {
  border: 1px solid #d0deea;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.lead-optional > summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2f5271;
  font-weight: 800;
  margin-bottom: 8px;
}

.lead-optional > summary::-webkit-details-marker {
  display: none;
}

.lead-prefill {
  border: 1px solid #adbfce;
  background: #f8fbff;
  color: #224663;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 10px;
}

.lead-step {
  display: grid;
  gap: 10px;
}

.lead-step-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: #29455f;
}

.lead-success {
  border: 1px solid #9ad9bc;
  border-radius: 12px;
  background: #effcf5;
  padding: 12px;
}

.lead-success h4 {
  margin: 0 0 6px;
}

.lead-success p {
  margin: 0 0 10px;
  color: #145341;
  font-weight: 700;
}

body.partner-page .shell {
  max-width: 760px;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.county-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid #c3d2df;
  border-radius: 10px;
  background: #f8fbff;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
  color: #27455f;
  font-weight: 700;
}

.county-option input {
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.partner-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.partner-ops-shell {
  max-width: 1180px;
}

.partner-ops-filter-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.partner-ops-refresh-wrap {
  display: flex;
  align-items: end;
}

.partner-ops-refresh-wrap .btn {
  width: 100%;
}

.partner-export-actions {
  margin-top: 8px;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csv-btn {
  padding: 0 14px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.csv-btn:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.csv-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coverage-card {
  border: 1px solid #c9d7e4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.coverage-title {
  margin: 0;
  font-size: 13px;
  color: #1f425d;
  font-weight: 800;
}

.coverage-line {
  margin: 5px 0 0;
  font-size: 12px;
  color: #355770;
  font-weight: 700;
}

.priority-card {
  border-left-width: 4px;
}

.priority-urgent {
  border-left-color: #b91c1c;
}

.priority-high {
  border-left-color: #d97706;
}

.priority-medium {
  border-left-color: #0284c7;
}

.priority-monitor {
  border-left-color: #64748b;
}

.partner-pipeline-list {
  display: grid;
  gap: 10px;
}

.partner-row {
  border: 1px solid #c6d5e2;
  border-radius: 12px;
  background: #f9fcff;
  padding: 10px;
}

.partner-row-head {
  display: grid;
  gap: 3px;
}

.partner-row-title {
  margin: 0;
  font-size: 16px;
  color: #173a55;
  font-weight: 900;
}

.partner-row-meta {
  margin: 0;
  font-size: 12px;
  color: #365b75;
  font-weight: 700;
}

.partner-row-actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.partner-action-group {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.partner-action-group:last-child {
  grid-template-columns: minmax(0, 220px) minmax(0, 180px) minmax(0, 120px) auto;
}

.partner-inline-select,
.partner-inline-text,
.partner-inline-number {
  min-height: 40px;
}

body.minimal-result-mode .journey,
body.minimal-result-mode #checkForm {
  display: none !important;
}

body.minimal-result-mode .brand {
  margin-bottom: 8px;
}

body.minimal-result-mode .brand .sub,
body.minimal-result-mode .brand .scope-line-hero {
  display: none;
}

body.minimal-result-mode h1 {
  margin: 4px 0 2px;
  font-size: clamp(26px, 3.4vw, 36px);
}

body.minimal-result-mode .card {
  padding-top: 12px;
}

body.minimal-result-mode .result {
  margin-top: 6px;
}

.mobile-lead-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #9fb2c5;
  background: color-mix(in srgb, #f5f9ff 94%, #deebff 6%);
  box-shadow: 0 -12px 30px rgba(18, 38, 68, 0.12);
}

.mobile-lead-sticky .btn {
  width: 100%;
}

.modal-btn-secondary {
  border: 1px solid #98a8b8;
  background: #fff;
  color: #2f4358;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.public-footer {
  margin-top: 10px;
  text-align: right;
}

.public-footer-contact {
  text-align: left;
}

.public-footer-line {
  margin: 0;
  font-size: 13px;
  color: #35526d;
  font-weight: 700;
}

.public-footer-line a {
  color: #1d4f87;
}

.public-footer-links,
.home-footer-links {
  margin: 6px 0 0;
  font-size: 12px;
  color: #47627c;
  font-weight: 700;
}

.public-footer-links a,
.home-footer-links a {
  color: #1f4f83;
  text-decoration: none;
}

.public-footer-links a:hover,
.public-footer-links a:focus-visible,
.home-footer-links a:hover,
.home-footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-links-sep {
  margin: 0 6px;
  color: #7790a7;
}

.estimator-home-link-wrap {
  margin-top: 8px;
}

.estimator-home-link {
  font-size: 13px;
  color: #1e4f85;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-shell {
  max-width: 980px;
}

.home-hero {
  margin-bottom: 16px;
}

.home-hero-actions {
  margin-top: 14px;
}

.home-primary-link,
.home-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-card + .home-card {
  margin-top: 12px;
}

.home-card-title {
  margin: 4px 0 8px;
  font-size: clamp(25px, 3.4vw, 34px);
  line-height: 1.1;
}

.home-card-copy {
  margin: 0;
  color: #3a5671;
  font-weight: 700;
  line-height: 1.35;
  max-width: 760px;
}

.home-list {
  margin: 10px 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.home-list li {
  font-size: 14px;
  color: #24435f;
  font-weight: 700;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-info {
  border: 1px solid #cddbe7;
  border-radius: 12px;
  background: #f8fbff;
  padding: 11px;
}

.home-info h3 {
  margin: 0;
  font-size: 16px;
  color: #173d5d;
}

.home-info p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #385671;
  font-weight: 700;
  line-height: 1.35;
}

.home-footer {
  margin-top: 14px;
}

.home-footer-line {
  margin: 0;
  font-size: 13px;
  color: #35526d;
  font-weight: 700;
}

.home-footer-line a {
  color: #1d4f87;
}

.legal-shell {
  max-width: 860px;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #173d5d;
}

.legal-card h2 + p,
.legal-card p + h2 {
  margin-top: 14px;
}

.legal-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.48;
  color: #304f68;
  font-weight: 700;
}

@media (max-width: 640px) {
  .shell {
    padding: 12px 12px 16px;
  }

  .site-banner {
    margin: 0 0 6px;
    padding: 4px 0 5px;
    border-bottom-color: rgba(153, 176, 198, 0.66);
  }

  .site-banner-link {
    width: min(100%, 520px);
    justify-content: flex-start;
  }

  .site-banner-img {
    height: 40px;
    max-width: 100%;
  }

  .brand {
    margin-bottom: 8px;
  }

  .sub {
    font-size: 14px;
  }

  .journey-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .journey-step {
    min-width: 0;
    padding: 7px 8px;
    gap: 6px;
    font-size: 12px;
  }

  .journey-dot {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .card {
    border-radius: 14px;
    padding: 14px;
  }

  .result h2 {
    font-size: 23px;
    line-height: 1.08;
  }

  #mapImg {
    aspect-ratio: 16 / 9;
  }

  .result-meaning {
    font-size: 16px;
  }

  .result-score {
    font-size: 18px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .btn,
  .modal-btn-secondary {
    width: 100%;
  }

  .data-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .result-actions,
  .lead-step-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .partner-ops-filter-grid {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .partner-action-group,
  .partner-action-group:last-child {
    grid-template-columns: 1fr;
  }

  .export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-footer {
    text-align: left;
  }

  .footer-links-sep {
    margin: 0 4px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-primary-link,
  .home-secondary-link {
    width: 100%;
  }

  body.has-mobile-sticky {
    padding-bottom: 92px;
  }
}

@media (min-width: 641px) {
  .mobile-lead-sticky {
    display: none !important;
  }
}
