/* Layout: one scrolling page. Hero → two funding routes side by side → comparison table → how it works → contact. */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #12302b;
  --muted: #4f625d;
  --line: #d7dfdb;
  --brand: #0f4c43;
  --brand-ink: #f2f7f5;
  --accent: #e8a317;
  --accent-soft: #fbefd2;
  --gov: #2c5aa0;
  --gov-soft: #e3ebf7;
  --display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1816; --surface: #13221f; --ink: #e6efec; --muted: #9fb3ad; --line: #26403a;
    --brand: #1d6b5f; --brand-ink: #f2f7f5; --accent: #f0b43a; --accent-soft: #3a2f14;
    --gov: #7fa6e6; --gov-soft: #1a2740; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1816; --surface: #13221f; --ink: #e6efec; --muted: #9fb3ad; --line: #26403a;
  --brand: #1d6b5f; --brand-ink: #f2f7f5; --accent: #f0b43a; --accent-soft: #3a2f14;
  --gov: #7fa6e6; --gov-soft: #1a2740; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.logo svg { flex: none; }
.nav { display: flex; gap: 1.25rem; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }


/* Hero */
.hero { padding-block: 3.5rem 3rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero .lede { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

@media (max-width: 52rem) { .hero { grid-template-columns: 1fr; padding-block: 2.5rem 2rem; gap: 2rem; } }

/* Enquiry form */
.enquiry { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1rem; min-width: 0; box-shadow: 0 18px 40px -28px rgba(15, 76, 67, .45); }
.enquiry h2 { font-size: 1.45rem; font-weight: 700; }
.enquiry .sub { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field input, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c2412d; }
.field .err { color: #c2412d; font-size: .85rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 30rem) { .row2 { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .35rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; justify-content: center; padding: .65rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 500; }
.choice input:checked + label { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.submit { width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: var(--body); }
.submit[disabled] { opacity: .6; cursor: progress; }
.privacy { font-size: .8rem; color: var(--muted); }
.sent { display: grid; gap: .6rem; text-align: center; padding-block: 1.5rem; }
.sent .tick { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto; font-size: 1.4rem; }
.note { font-size: .85rem; background: var(--accent-soft); border-radius: 10px; padding: .6rem .8rem; }

/* Routes */
section { padding-block: 4rem; }
.section-head { max-width: 40rem; display: grid; gap: .75rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
.section-head p { color: var(--muted); }

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 48rem) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; display: grid; gap: 1.1rem; align-content: start; }
.route .tag { justify-self: start; padding: .3rem .7rem; border-radius: 999px; }
.route.lend .tag { background: var(--accent-soft); color: var(--ink); }
.route.gov .tag { background: var(--gov-soft); color: var(--gov); }
.route h3 { font-size: 1.75rem; font-weight: 700; }
.route > p { color: var(--muted); }
.route ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.route li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; align-items: start; }
.route li::before { content: ""; width: .7rem; height: .7rem; margin-top: .5rem; border-radius: 50%; }
.route.lend li::before { background: var(--accent); }
.route.gov li::before { background: var(--gov); }
.route .best { border-top: 1px dashed var(--line); padding-top: 1rem; font-size: .95rem; }
.route .best strong { font-weight: 600; }

/* Compare */
.compare-band { background: var(--surface); border-block: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--display); font-size: 1.05rem; background: var(--bg); }
tbody th { font-weight: 600; color: var(--muted); width: 26%; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
@media (max-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; display: grid; gap: .5rem; align-content: start; border-top: 3px solid var(--brand); padding-top: 1rem; }
.steps li::before { content: "Step " counter(s); font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.steps h3 { font-size: 1.2rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: .97rem; }

/* Contact */
.contact { background: var(--brand); color: var(--brand-ink); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 48rem) { .contact { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.contact p { margin-top: .9rem; opacity: .88; }
.details { display: grid; gap: .9rem; }
.detail { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .9rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.detail .eyebrow { opacity: .75; display: block; }
.detail span.val { font-weight: 600; word-break: break-word; }
.copy { background: var(--accent); color: #1c1503; border: 0; border-radius: 999px; padding: .45rem .9rem; font: 600 .85rem var(--body); cursor: pointer; flex: none; }

footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .88rem; display: grid; gap: .6rem; }
footer .reg { max-width: 48rem; }

/* Multi-page additions */
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 52rem) {
  .top .wrap { flex-wrap: wrap; row-gap: .5rem; }
  .nav { width: 100%; overflow-x: auto; gap: 1.1rem; padding-bottom: .35rem; font-size: .9rem; white-space: nowrap; }
}
.page-hero { padding-block: 3.5rem 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; max-width: 46rem; }
.page-hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.page-hero.lend { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.page-hero.gov { background: linear-gradient(180deg, var(--gov-soft), var(--bg)); }
.crumb { font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 48rem) { .split { grid-template-columns: 1fr; } }
.block { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.block h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; }
.block p { color: var(--muted); max-width: 40rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; }
.ticks li::before { content: "✓"; font-weight: 700; color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 56rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: .25rem; align-content: start; }
.fact .big { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--gov); font-variant-numeric: tabular-nums; }
.fact .small { color: var(--muted); font-size: .92rem; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.product { border-top: 3px solid var(--gov); padding-top: .9rem; display: grid; gap: .35rem; }
.product h3 { font-size: 1.1rem; }
.product p { color: var(--muted); font-size: .95rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 14px; padding: 1.25rem 1.4rem; display: grid; gap: .5rem; }
.callout strong { font-family: var(--display); font-size: 1.1rem; }
.callout p { color: var(--muted); }
.more { font-weight: 600; color: var(--brand); text-decoration: none; }
.more:hover { text-decoration: underline; }
.route .more { justify-self: start; }
.faq { display: grid; gap: .75rem; max-width: 46rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: .6rem; color: var(--muted); }
.steps.big li { gap: .7rem; }
.steps.big ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; display: grid; gap: .3rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (max-width: 52rem) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.75rem; align-content: start; }
.amount-input { font-family: var(--display) !important; font-size: clamp(1.8rem, 4vw, 2.4rem) !important; font-weight: 800; padding: .4rem .8rem !important; font-variant-numeric: tabular-nums; }
#calc-amount { width: 100%; margin-top: .6rem; height: 1.6rem; accent-color: var(--brand); -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#calc-amount::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--pct, 0%), var(--line) var(--pct, 0%)); }
#calc-amount::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
#calc-amount::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--brand); }
#calc-amount::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 1px 6px rgba(0,0,0,.3); }
#calc-amount::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 1px 6px rgba(0,0,0,.3); }
#calc-amount:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; margin-top: .4rem; }
.terms input { position: absolute; opacity: 0; pointer-events: none; }
.terms label { display: flex; justify-content: center; padding: .6rem .4rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; font-weight: 500; font-size: .95rem; }
.terms input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.terms input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-out { background: var(--brand); color: var(--brand-ink); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; align-content: start; }
.calc-out .eyebrow { opacity: .8; display: block; }
.out-big { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 800; font-variant-numeric: tabular-nums; margin-top: .3rem; }
.calc-out dl { margin: 0; display: grid; gap: .1rem; border-top: 1px solid rgba(255,255,255,.2); }
.calc-out dl div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.calc-out dt { opacity: .85; }
.calc-out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-cta { background: var(--accent); color: #1c1503; justify-content: center; }
.calc-cta:hover { filter: brightness(1.06); }
.fine { font-size: .82rem; color: var(--muted); max-width: 52rem; }
.badge { display: inline-flex; align-items: center; gap: .7rem; background: var(--accent-soft); color: var(--ink); border: 2px solid var(--accent); border-radius: 999px; padding: .65rem 1.4rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.2; }

/* Call us line under the hero buttons */
.call-us { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .9rem; padding: .7rem 1.6rem .7rem .7rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; box-shadow: 0 14px 30px -18px rgba(15, 76, 67, .7); max-width: 100%; }
.call-us:hover { filter: brightness(1.12); }
.call-icon { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--accent); color: #1c1503; display: grid; place-items: center; }
.call-icon svg { width: 1.45rem; height: 1.45rem; }
.call-text { display: grid; line-height: 1.15; min-width: 0; }
.call-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.call-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 1.9rem); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Legal page */
.legal { max-width: 46rem; display: grid; gap: 1rem; }
.legal h2 { font-size: 1.4rem; font-weight: 700; margin-top: 1.25rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.privacy a, footer a { color: inherit; }

/* Footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: .35rem .6rem; font-weight: 500; }
footer .reg + .reg { margin-top: -.1rem; }

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

.logo { font-family: "Raleway", "Segoe UI", system-ui, sans-serif; font-weight: 700; color: var(--brand); }
