/* Life Insurance Leads UK: one stylesheet, no frameworks, no third-party requests.
   Font: Figtree (SIL OFL 1.1, licence in /assets/fonts/figtree-OFL.txt), self-hosted. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-v9-latin.woff2") format("woff2");
}

:root {
  --navy: #0e2340;
  --navy-2: #173257;
  --teal: #0f766e;
  --teal-dark: #0b5f58;
  --teal-bright: #5eead4;
  --teal-soft: #e7f3f1;
  --ink: #0e2340;
  --muted: #475569;
  --line: #d9e4e2;
  --bg: #ffffff;
  --bg-alt: #f4f8f7;
  --radius: 14px;
  --wrap: 1120px;
  --prose: 700px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--prose); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1.08rem; line-height: 1.1; }
.brand svg { flex: none; }
.brand span b { color: var(--teal); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a.btn-sm { color: #fff; }
.btn-sm { background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; text-decoration: none; font-size: 0.94rem; white-space: nowrap; }
.nav a.btn-sm:hover, .btn-sm:hover { background: var(--teal); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: #fff; border-color: var(--navy); }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: min(300px, calc(100vw - 2 * var(--gutter))); margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(14, 35, 64, 0.12); }
.menu li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; }
.menu li a:hover { background: var(--teal-soft); }
.menu li a.menu-cta { background: var(--teal); color: #fff; text-align: center; margin-top: 6px; }

/* Hero */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 44px 0 52px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.025em; font-weight: 800;
  margin: 0 0 18px; max-width: 20ch;
}
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; color: var(--navy-2); max-width: 60ch; margin: 0 0 28px; }

/* At-a-glance panel beside the H1 (stacks under the button on narrow screens) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }
.glance { background: var(--navy); color: #fff; border-radius: 20px; padding: 28px 28px 24px; }
.glance-h { margin: 0 0 16px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-bright); }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.glance li:first-child { border-top: 0; padding-top: 0; }
.glance li:last-child { padding-bottom: 0; }
.glance svg { flex: none; }
.glance svg circle { fill: var(--teal); }

/* Call to action: button, then a short line and the Protection Connect logo underneath */
.cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 700;
  font-size: 1.08rem; padding: 16px 26px; border-radius: 999px; min-height: 52px;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn svg { transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(3px); }
.cta-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 0.88rem; color: var(--muted); margin: 0; }
.cta-by img { width: 132px; height: auto; }

/* Content sections: one idea per band */
.band { padding: 56px 0; }
/* The hero is the first section, so bands start white and alternate from there. */
.band:nth-of-type(odd) { background: var(--bg-alt); }
.band h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 16px; }
.band h3 { font-size: 1.15rem; line-height: 1.3; margin: 26px 0 6px; font-weight: 700; }
.band p { margin: 0 0 14px; }
.band p:last-child { margin-bottom: 0; }
.band ul, .band ol { margin: 0 0 16px; padding-left: 1.25em; }
.band li { margin: 0 0 8px; }
.band p.note { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 14px 16px; border-radius: 0 10px 10px 0; color: var(--navy-2); }

.band ul.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0 18px; }
.band ul.facts li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.band:nth-of-type(even) ul.facts li { background: var(--bg-alt); }
.band ul.facts li strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }

.band ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 22px 0 18px; }
.band ol.steps li { counter-increment: step; position: relative; padding: 6px 0 20px 58px; margin: 0; min-height: 40px; }
.band ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.band ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }

.faq h3 { padding-top: 18px; border-top: 1px solid var(--line); }
.faq h2 + h3 { border-top: 0; padding-top: 0; }

/* Related pages */
.related { padding: 56px 0 8px; }
.related h2 { font-size: 1.35rem; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.01em; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.related a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.related a strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.related a:hover { border-color: var(--teal); background: var(--teal-soft); }

/* Closing call to action */
.end { padding: 56px 0 72px; }
.end-card { background: var(--teal-soft); border-radius: 22px; padding: clamp(28px, 4vw, 52px); display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.end-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 800; }
.end-card p { margin: 0; color: var(--navy-2); max-width: 52ch; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d5e3; font-size: 0.95rem; padding: 52px 0 36px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal-bright); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 36px; }
.foot-grid .brand { color: #fff; margin-bottom: 14px; }
.foot-grid .brand span b { color: var(--teal-bright); }
.foot-grid h2 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 12px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid p { margin: 0 0 10px; }
.identity { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; padding-top: 22px; font-size: 0.86rem; line-height: 1.6; color: #b4c3d6; }
.identity p { margin: 0 0 8px; }

/* Plain pages (legal, 404) */
.plain .band { padding: 40px 0; }
.plain .band:last-of-type { padding-bottom: 64px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .glance { max-width: 520px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.03rem; }
  .hero { padding: 28px 0 36px; }
  .band { padding: 42px 0; }
  .cta { display: flex; align-items: stretch; }
  .btn { width: 100%; }
  .cta-by { justify-content: center; }
  .end { padding: 44px 0 56px; }
  .end-card { grid-template-columns: 1fr; }
  .brand { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-header, .menu, .cta, .end, .related { display: none; }
  .site-footer { background: none; color: #000; }
}
