/* My Home Loans — design tokens + styling.
   Palette comes from the logo: three roof chevrons (lime → leaf → emerald) and charcoal type. */
@import url("fonts/fonts.css");

:root {
  --lime: #8dc63f;
  --leaf: #4db158;
  --emerald: #009565;
  --emerald-deep: #00775a;
  --charcoal: #3d484f;
  --ink: #1d272c;
  --ink-2: #4a565d;
  --ink-3: #74828a;
  --pine: #0f2a24;
  --pine-2: #143a31;
  --mist: #f3f6f2;
  --mist-2: #e6ece5;
  --white: #ffffff;
  --line: rgba(29, 39, 44, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --amber: #c27a1c;

  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --shadow: 0 24px 60px -30px rgba(15, 42, 36, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-deep);
}
.eyebrow .roof { width: 18px; height: 12px; }
.on-dark .eyebrow { color: var(--lime); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.on-dark { background: var(--pine); color: #e8efe9; }
.on-dark .lede { color: #b7c6bd; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: var(--line-dark); }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-lime { background: var(--lime); color: var(--pine); }
.btn-lime:hover { background: #9dd34d; }
.btn-whatsapp { background: #25d366; color: #073b1c; }
.btn svg { width: 18px; height: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(243, 246, 242, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav .logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--emerald-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform 0.25s, opacity 0.25s; }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--mist); border-bottom: 1px solid var(--line); padding: 8px 0 16px; transform: translateY(-110%); transition: transform 0.3s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { display: block; padding: 14px var(--gutter); font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: clip;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(141, 198, 63, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(0, 149, 101, 0.16), transparent 60%),
    var(--mist);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(88vh, 860px); padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 2; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-scene { position: relative; aspect-ratio: 1 / 1; min-height: 320px; }
.hero-scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-scene .scene-fallback { position: absolute; inset: 12%; opacity: 0.95; }
.hero-scene[data-ready="1"] .scene-fallback { display: none; }
.hero-hint { position: absolute; bottom: 0; left: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-facts > div { padding: 22px 0; display: grid; gap: 6px; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.hero-facts span { font-size: 0.86rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-scene { order: -1; aspect-ratio: 4 / 3; min-height: 260px; margin-inline: -8%; }
  .hero-hint { left: 8%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Rate strip */
.rate-strip { background: var(--pine); color: #e8efe9; }
.rate-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 16px; font-size: 0.95rem; }
.rate-strip .rate { display: inline-flex; align-items: baseline; gap: 10px; }
.rate-strip .rate b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--lime); }
.rate-strip .muted { color: #a7b8ae; }
.rate-strip .spacer { flex: 1; }
.rate-strip a { color: var(--lime); }

/* Calculators */
.calc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.calc-tabs button {
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.calc-tabs button .roof { width: 16px; height: 11px; opacity: 0.55; }
.calc-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.calc-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-tabs button[aria-selected="true"] .roof { opacity: 1; }
.calc-stage { perspective: 1600px; }
.calc-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  transform-style: preserve-3d; transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.calc-card[hidden] { display: none; }
.calc-inputs { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.calc-output { padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; align-content: start; background: linear-gradient(180deg, rgba(243,246,242,0.6), transparent 40%); border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 900px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-output { border-radius: 0 0 var(--radius) var(--radius); }
}
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field label .hint { font-weight: 400; color: var(--ink-3); }
.field .control { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); padding: 0 12px; transition: border-color 0.2s, background 0.2s; }
.field .control:focus-within { border-color: var(--emerald); background: #fff; }
.field .control .prefix, .field .control .suffix { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-3); white-space: nowrap; }
.field input[type="text"], .field input[type="number"], .field select, .field input[type="email"], .field input[type="tel"] {
  width: 100%; border: 0; background: transparent; padding: 12px 0; font-family: var(--mono); font-size: 1.05rem; min-width: 0; outline: none;
}
.field select { font-family: var(--body); }
.field input[type="range"] { width: 100%; accent-color: var(--emerald); margin: 0; }
.field .range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.field .range-row output { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-2); }
.segmented { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--mist); }
.segmented label { position: relative; flex: 1 1 0; display: grid; place-items: center; justify-content: center; font-weight: 500; padding: 10px 6px; cursor: pointer; font-family: var(--mono); font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.segmented input { position: absolute; appearance: none; -webkit-appearance: none; opacity: 0; left: 0; top: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span { position: relative; z-index: 1; }
.segmented input:checked + span { color: #fff; }
.segmented label:has(input:checked) { background: var(--ink); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.92rem; color: var(--ink-2); }
.switch input { width: 42px; height: 24px; appearance: none; background: var(--mist-2); border-radius: 999px; position: relative; cursor: pointer; transition: background 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s; }
.switch input:checked { background: var(--emerald); }
.switch input:checked::after { transform: translateX(18px); }

.hero-number { display: grid; gap: 4px; }
.hero-number .label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }
.hero-number .value { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-number .value small { font-family: var(--body); font-size: 0.4em; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.hero-number .value.good { color: var(--emerald-deep); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat { display: grid; gap: 4px; padding: 14px 16px; background: var(--mist); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.stat .label { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; }
.stat .value { font-family: var(--mono); font-size: 1.1rem; color: var(--ink); }
.note { font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; }
.note a { color: var(--emerald-deep); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .baseline { stroke: var(--ink-3); stroke-width: 1; }
.chart .tip {
  position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 0.8rem; line-height: 1.4;
  font-family: var(--mono); white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity 0.12s; z-index: 2;
}
.chart .tip.show { opacity: 1; }
.chart .tip b { color: var(--lime); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.82rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.lines > div span:last-child { font-family: var(--mono); }
.lines > div.total { font-weight: 700; }
.lines > div.total span:last-child { color: var(--emerald-deep); }
.sensitivity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sensitivity > div { padding: 12px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-align: center; display: grid; gap: 4px; }
.sensitivity > div.current { border-color: var(--emerald); background: rgba(0,149,101,0.06); }
.sensitivity .r { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.sensitivity .v { font-family: var(--mono); font-size: 0.98rem; }
@media (max-width: 480px) { .sensitivity { grid-template-columns: repeat(2, 1fr); } }
.compare { display: grid; gap: 12px; }
.compare .bar { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 0.85rem; }
.compare .bar .track { height: 26px; background: var(--mist); border-radius: 6px; overflow: hidden; display: flex; }
.compare .bar .fill { height: 100%; border-radius: 6px; transition: width 0.5s cubic-bezier(.2,.7,.2,1); position: relative; }
.compare .bar .fill span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 0.75rem; color: #fff; }
.compare .bar .fill.principal { background: var(--charcoal); }
.compare .bar .fill.interest { background: var(--emerald); margin-left: 2px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.step::before { counter-increment: step; content: counter(step); position: absolute; right: 20px; top: 8px; font-family: var(--display); font-size: 5.5rem; color: var(--mist-2); line-height: 1; z-index: 0; }
.step > * { position: relative; z-index: 1; }
.step .roof { width: 44px; height: 30px; }
.step ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.95rem; }
.step ul li { display: flex; gap: 10px; align-items: baseline; }
.step ul li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); flex: none; transform: translateY(-1px); }
.step .time { font-family: var(--mono); font-size: 0.8rem; color: var(--emerald-deep); letter-spacing: 0.04em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Why */
.why { position: relative; }
.why .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why .card { background: var(--pine-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.why .card h3 { color: #fff; }
.why .card p { color: #b7c6bd; font-size: 0.98rem; }
.why .card .roof { width: 36px; height: 24px; }
.why .quote { grid-column: 1 / -1; background: transparent; border-style: dashed; }
.why .quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: #fff; line-height: 1.3; }
.why .quote cite { font-style: normal; font-size: 0.85rem; color: var(--lime); font-family: var(--mono); }
@media (max-width: 800px) { .why .grid { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 10px; align-content: start; }
.person .avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--leaf), var(--emerald)); }
.person .avatar.lime { background: linear-gradient(135deg, var(--lime), var(--leaf)); color: var(--pine); }
.person .avatar.charcoal { background: linear-gradient(135deg, var(--charcoal), var(--ink)); }
.person h3 { font-size: 1.15rem; }
.person .role { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-deep); font-weight: 600; }
.person .region { font-size: 0.9rem; color: var(--ink-2); }
.person a { display: block; font-size: 0.74rem; color: var(--ink-2); text-decoration: none; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person a:hover { color: var(--emerald-deep); }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team { grid-template-columns: 1fr; } }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); display: grid; gap: 10px; align-content: start; }
.office h3 { display: flex; align-items: center; gap: 10px; }
.office .roof { width: 26px; height: 18px; }
.office address { font-style: normal; color: var(--ink-2); }
.office a { text-decoration: none; color: var(--ink); font-family: var(--mono); font-size: 0.95rem; }
.office a:hover { color: var(--emerald-deep); }
.office .map { display: inline-flex; font-family: var(--body); font-size: 0.88rem; color: var(--emerald-deep); text-decoration: underline; text-underline-offset: 3px; }
.hours { margin-top: 20px; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 0.88rem; color: var(--ink-2); }
.hours i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); display: inline-block; }
@media (max-width: 900px) { .offices { grid-template-columns: 1fr; } }

/* Apply */
.apply .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.apply-aside { display: grid; gap: 20px; position: sticky; top: 96px; }
.apply-aside .docs { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.apply-aside .docs li { display: flex; gap: 10px; align-items: baseline; color: #d7e2da; font-size: 0.95rem; }
.apply-aside .docs li::before { content: ""; width: 8px; height: 8px; background: var(--lime); border-radius: 2px; flex: none; }
.apply-aside .contact-alt { display: flex; flex-wrap: wrap; gap: 10px; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .row[hidden] { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.form legend { font-size: 0.88rem; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.form .consent input { margin-top: 4px; accent-color: var(--emerald); width: 18px; height: 18px; flex: none; }
.form .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form .status { font-size: 0.9rem; color: var(--emerald-deep); }
.form .status.error { color: #b3261e; }
@media (max-width: 900px) { .apply .wrap { grid-template-columns: 1fr; } .apply-aside { position: static; } .form .row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--pine); color: #b7c6bd; border-top: 1px solid var(--line-dark); }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.footer img.logo { height: 44px; width: auto; }
.footer h4 { font-family: var(--body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.footer a { color: #e8efe9; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.footer .client { display: grid; gap: 10px; }
.footer .client img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer .legal { border-top: 1px solid var(--line-dark); padding: 18px 0 26px; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer .legal a { color: #b7c6bd; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; } .reveal[data-delay="2"] { transition-delay: 0.2s; } .reveal[data-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .calc-card { transition: none !important; transform: none !important; }
  .btn:hover { transform: none; }
}

/* Roof glyph (the logo's three chevrons) */
.roof { fill: none; stroke-linecap: square; }

/* Privacy page */
.prose { max-width: 46rem; margin-inline: auto; padding-block: 48px 96px; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.prose h2 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; margin: 32px 0 10px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose dl dt { font-weight: 600; margin-top: 14px; }
.prose dl dd { margin: 4px 0 0; color: var(--ink-2); }
