/* ==========================================================================
   Finwise Analytica — site stylesheet
   Brand palette sampled from the Finwise report covers
   ========================================================================== */
:root {
  --navy: #0B2443;      /* banking report cover */
  --deep: #104863;      /* DTMFI report cover / primary brand */
  --steel: #36659A;     /* section dividers */
  --signal: #309AD4;    /* accent blue (Q-badge, rules) */
  --teal: #45B1A8;      /* chart teal */
  --up: #1E9E8F;        /* report "up" delta */
  --down: #B64545;      /* report "down" delta */
  --paper: #F4F7F9;
  --tile: #EEF2F5;
  --rule: #D5DFE7;
  --ink: #0E1B2C;
  --muted: #56677A;
  --white: #fff;

  --f-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgba(11, 36, 67, .06), 0 8px 24px rgba(11, 36, 67, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--signal); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; font: 600 .98rem/1 var(--f-display);
  padding: 15px 22px; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #2585BC; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------------- Header ---------------- */
.topbar { background: var(--navy); color: #BFD3E4; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #DDE9F3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .tb-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-social { display: flex; gap: 14px; }
.topbar .tb-social svg { width: 16px; height: 16px; fill: currentColor; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(16, 72, 99, .97);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header.over-hero { background: transparent; border-bottom-color: transparent; position: absolute; left: 0; right: 0; top: 38px; }
.site-header.over-hero.stuck { position: fixed; top: 0; background: rgba(11, 36, 67, .96); border-bottom-color: rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 700 1.35rem/1 var(--f-display); letter-spacing: -.01em; }
.brand-word span { font: 500 .56rem/1 var(--f-display); letter-spacing: .42em; margin-top: 5px; color: #BFD3E4; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { color: #E3EDF5; text-decoration: none; font: 500 .96rem/1 var(--f-display); padding: 12px 14px; border-radius: var(--r-sm); display: block; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
.nav .nav-cta a { background: var(--signal); color: #fff; margin-left: 10px; border-radius: var(--r-sm); box-shadow: none; }
.nav .nav-cta a:hover { background: #2585BC; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav.open { max-height: 480px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gut) 24px; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); padding-left: 14px; }
  .nav .nav-cta a { margin: 10px 0 0; text-align: center; }

  .topbar .tb-social { display: none; }
}
@media (max-width: 560px) { .topbar .tb-contact .tb-hide-sm { display: none; } }

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy) url("../img/hero-bg.jpg") center/cover no-repeat;
  min-height: min(100vh, 900px); display: flex; align-items: center; padding: 150px 0 90px;
}
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero { background-image: image-set(url("../img/hero-bg.webp") type("image/webp"), url("../img/hero-bg.jpg") type("image/jpeg")); }
}
/* Tint the image into the brand blues, then darken the reading side */
.hero::before { content: ""; position: absolute; inset: 0; background: var(--signal); mix-blend-mode: color; opacity: .55; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,36,67,.96) 0%, rgba(11,36,67,.86) 38%, rgba(16,72,99,.45) 70%, rgba(16,72,99,.25) 100%);
}
@media (max-width: 760px) {
  .hero { background-image: url("../img/hero-bg-mobile.jpg"); padding-top: 140px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,36,67,.9), rgba(11,36,67,.82)); }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .release {
  display: inline-flex; align-items: center; gap: 10px; font: 500 .92rem/1.3 var(--f-body); color: #D7E7F2;
  padding: 8px 14px 8px 8px; border-radius: 40px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  text-decoration: none; margin-bottom: 26px;
}
.hero .release b { background: var(--signal); color: #fff; font: 600 .78rem/1 var(--f-display); padding: 6px 10px; border-radius: 20px; }
.hero .release:hover { background: rgba(255,255,255,.14); color: #fff; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 22px; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #CFE0EC; max-width: 52ch; margin-bottom: 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.tagline { margin-top: 44px; font: italic 400 1rem/1.4 var(--f-body); color: #9FC0D6; display: flex; align-items: center; gap: 14px; }
.tagline::before { content: ""; width: 46px; height: 3px; background: var(--signal); flex: none; }

/* Sector readout — the report dashboard, in miniature */
.readout {
  background: rgba(244, 247, 249, .97); color: var(--ink); border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.readout-head { background: #36505F; color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.readout-head h2 { color: #fff; font-size: .98rem; margin: 0; font-weight: 700; }
.seg { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 30px; padding: 3px; }
.seg button { border: 0; background: none; color: #D6E4EE; font: 600 .8rem/1 var(--f-display); padding: 8px 12px; border-radius: 30px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--navy); }
.readout-body { padding: 14px; display: grid; gap: 8px; }
.tile { display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--tile); border-radius: 8px; padding: 12px 16px; }
.tile .lbl { font: 600 .74rem/1.2 var(--f-display); color: var(--muted); }
.tile .val { font: 700 1.55rem/1.1 var(--f-display); color: #2E3F4E; margin-top: 2px; }
.tile .d { font: 500 .95rem/1 var(--f-body); color: var(--up); text-align: right; border-left: 2px dotted #9CC8C2; padding-left: 14px; white-space: nowrap; }
.tile .d.neg { color: var(--down); border-left-color: #E0A9A9; }
.readout-foot { padding: 4px 18px 16px; font-size: .84rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.readout-foot a { font-weight: 600; }
.readout [role="tabpanel"][hidden] { display: none; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--deep); color: #D8E6EF; }
.section.dark h2, .section.dark h3 { color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head .kicker { display: flex; align-items: center; gap: 12px; font: 600 .95rem/1 var(--f-display); color: var(--steel); margin-bottom: 16px; }
.sec-head .kicker::before { content: ""; width: 34px; height: 3px; background: var(--signal); }
.section.dark .sec-head .kicker { color: #9FC7E0; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }
.section.dark .sec-head p { color: #BCD2E1; }
.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.split .sec-head { margin-bottom: 0; }

/* Coverage strip */
.coverage { background: var(--navy); color: #fff; }
.coverage ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.coverage li { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.coverage li:first-child { border-left: 0; padding-left: 0; }
.coverage b { display: block; font: 700 2.3rem/1 var(--f-display); color: #fff; }
.coverage span { color: #A9C5D9; font-size: .98rem; }
@media (max-width: 760px) {
  .coverage ul { grid-template-columns: 1fr 1fr; }
  .coverage li { border-left: 0; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .coverage li:nth-child(-n+2) { border-top: 0; }
}

/* ---------------- Report library ---------------- */
.filters { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; align-items: center; }
.filter-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-group > span { font: 600 .9rem/1 var(--f-display); color: var(--muted); margin-right: 4px; }
.chip {
  border: 1.5px solid var(--rule); background: #fff; color: var(--ink); font: 600 .9rem/1 var(--f-display);
  padding: 10px 16px; border-radius: 30px; cursor: pointer; transition: all .18s;
}
.chip:hover { border-color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.reports { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .reports { grid-template-columns: 1fr; } }
.report {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.report[hidden] { display: none; }
.report-cover { position: relative; aspect-ratio: 12 / 7; overflow: hidden; background: var(--navy); border-bottom: 5px solid var(--navy); }
.report[data-sector="mfi"] .report-cover { border-bottom-color: var(--teal); }
.report-cover img { width: 100%; height: 100%; object-fit: cover; }
.report-type {
  position: absolute; top: 14px; left: 14px; font: 700 .76rem/1 var(--f-display); padding: 8px 12px; border-radius: 4px;
  background: var(--navy); color: #fff;
}
.report-type.summary { background: #fff; color: var(--navy); }
.report-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.report-sector { font: 600 .86rem/1 var(--f-display); color: var(--steel); margin-bottom: 10px; }
.report[data-sector="mfi"] .report-sector { color: #2E8C84; }
.report h3 { font-size: 1.32rem; margin-bottom: 10px; }
.report p { color: var(--muted); font-size: 1rem; }
.report dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 28px; margin: 4px 0 22px; }
.report dt { font-size: .78rem; color: var(--muted); }
.report dd { margin: 0; font: 600 .95rem/1.3 var(--f-display); color: var(--ink); grid-row: 2; }
.report .btn { align-self: flex-start; margin-top: auto; }
.empty { padding: 40px; text-align: center; background: var(--paper); border-radius: var(--r-md); color: var(--muted); }

/* Highlights table on reports page */
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .highlights { grid-template-columns: 1fr; } }
.hl { background: #fff; border-radius: var(--r-md); border: 1px solid var(--rule); overflow: hidden; }
.hl h3 { background: var(--deep); color: #fff; margin: 0; padding: 16px 22px; font-size: 1.05rem; }
.hl table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hl th, .hl td { padding: 11px 22px; text-align: left; border-top: 1px solid var(--rule); }
.hl th { font-weight: 400; color: var(--muted); }
.hl td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl td.up { color: var(--up); } .hl td.down { color: var(--down); }
.hl caption { text-align: left; padding: 12px 22px; font-size: .85rem; color: var(--muted); caption-side: bottom; }

/* ---------------- Services / cards ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.svc { padding: 34px 32px 34px 0; border-right: 1px solid var(--rule); }
.svc + .svc { padding-left: 32px; }
.svc:last-child { border-right: 0; }
.svc .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--deep); margin-bottom: 20px; }
.svc .ico svg { width: 26px; height: 26px; }
.svc p { color: var(--muted); }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.svc li { margin: 6px 0; }
.svc li::marker { color: var(--signal); }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.serve { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; }
.serve li { background: var(--deep); padding: 26px 24px; display: flex; gap: 14px; align-items: center; font: 600 1.05rem/1.3 var(--f-display); color: #fff; }
.serve svg { width: 26px; height: 26px; color: #8CC9E9; flex: none; }
@media (max-width: 760px) { .serve { grid-template-columns: 1fr; } }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }
.case { border-left: 4px solid var(--signal); background: #fff; padding: 26px 28px; border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow); }
.case .meta { font: 600 .84rem/1 var(--f-display); color: var(--steel); margin-bottom: 12px; }
.case p { color: var(--muted); margin: 0; }

/* Media + text */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.media-split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .media-split, .media-split.rev { grid-template-columns: 1fr; } .media-split.rev > :first-child { order: 0; } }
.media-split figure { margin: 0; }
.media-split figure img { border-radius: var(--r-md); box-shadow: var(--shadow); width: 100%; }
.media-split figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.section.dark .checks li { border-bottom-color: rgba(255,255,255,.12); }

.showcase { border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 600 1.12rem/1.35 var(--f-display); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 28px; width: 12px; height: 12px; border-right: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--deep)); color: #fff; padding: clamp(56px, 7vw, 84px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #BCD2E1; margin: 0; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--deep); padding: clamp(64px, 8vw, 100px) 0 clamp(52px, 6vw, 76px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/hero-bg.jpg") 70% 60%/cover; opacity: .28; mix-blend-mode: luminosity; z-index: -1; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,36,67,.92), rgba(16,72,99,.6)); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.page-hero p { color: #CFE0EC; font-size: 1.15rem; max-width: 60ch; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 20px; color: #9FC0D6; }
.crumbs a { color: #D7E7F2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 30px; }
.person header { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--deep); color: #fff; display: grid; place-items: center; font: 700 1.3rem/1 var(--f-display); flex: none; }
.person h3 { margin: 0 0 4px; }
.person .role { color: var(--steel); font-weight: 600; font-size: .95rem; }
.person p { color: var(--muted); font-size: 1rem; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 700px) { .vm { grid-template-columns: 1fr; } }
.vm div { background: var(--paper); border-top: 4px solid var(--signal); padding: 26px; border-radius: 0 0 var(--r-md) var(--r-md); }
.vm p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-list svg { width: 22px; height: 22px; color: var(--signal); flex: none; margin-top: 3px; }
.contact-list b { display: block; font-family: var(--f-display); color: var(--navy); }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--r-md); filter: grayscale(.3); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 .92rem/1.3 var(--f-display); color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); padding: 13px 14px; border: 1.5px solid #C4D2DD;
  border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(48,154,212,.2); }
.field [aria-invalid="true"] { border-color: var(--down); }
.field .err { color: var(--down); font-size: .86rem; margin-top: 6px; min-height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--deep); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.status { padding: 14px 16px; border-radius: var(--r-sm); font-size: .95rem; }
.status.ok { background: #E4F4F1; color: #145E55; }
.status.bad { background: #F8E7E7; color: #8A2E2E; }
.status[hidden] { display: none; }

/* Download dialog */
dialog.dl {
  border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100% - 32px)); box-shadow: 0 40px 80px rgba(0,0,0,.35);
  color: var(--ink);
}
dialog.dl::backdrop { background: rgba(11, 36, 67, .7); backdrop-filter: blur(3px); }
.dl-head { background: var(--deep); color: #fff; padding: 24px 28px 22px; position: relative; }
.dl-head h2 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; padding-right: 40px; }
.dl-head p { margin: 0; color: #BCD2E1; font-size: .98rem; }
.dl-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.dl-close:hover { background: rgba(255,255,255,.2); }
.dl-body { padding: 26px 28px 28px; }
.dl-body .btn { width: 100%; justify-content: center; }
.dl-done { text-align: center; padding: 10px 0; }
.dl-done svg { width: 56px; height: 56px; color: var(--up); margin: 0 auto 12px; }
.dl-done h3 { margin-bottom: 6px; }
.dl-done p { color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #A9C0D2; padding: 72px 0 0; font-size: .98rem; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #D0DEEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-logo { width: 120px; margin-bottom: 18px; }
.f-social { display: flex; gap: 10px; margin-top: 20px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.f-social a:hover { background: var(--signal); }
.f-social svg { width: 18px; height: 18px; fill: #fff; }
.f-base { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Single orchestrated entrance on the home hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero .readout { opacity: 0; transform: translateY(20px); animation: rise .9s .35s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .topbar, .site-footer, .cta-band, dialog { display: none !important; } }

/* Refinements */
.serve.light { background: var(--rule); border-color: var(--rule); }
.serve.light li { background: #fff; color: var(--navy); }
.serve.light svg { color: var(--signal); }
.report-type { left: auto; right: 14px; }
.cta-band .wrap > div:first-child { flex: 1 1 520px; }
.report h2 { font-size: 1.32rem; font-weight: 600; margin-bottom: 10px; }
.seg button { white-space: nowrap; }
@media (max-width: 420px) { .readout-head { flex-wrap: wrap; } }

/* Footer extras: affiliate programme and video link */
.f-extra { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); }
.affiliate { display: inline-flex; align-items: center; gap: 10px; background: rgba(48,154,212,.16); border: 1px solid rgba(48,154,212,.5); color: #EAF4FB !important; padding: 12px 18px; border-radius: 30px; font: 600 .95rem/1.3 var(--f-display); text-decoration: none !important; }
.affiliate:hover { background: var(--signal); border-color: var(--signal); }
.affiliate::before { content: "20%"; background: var(--signal); color: #fff; font-size: .78rem; padding: 4px 9px; border-radius: 20px; }
.f-video { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.f-video span { color: #8FA8BE; font-size: .86rem; font-style: italic; }
.req { color: #D64545; font-weight: 700; margin-left: 2px; }
.staff-login { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); color: #D0DEEA !important; font: 600 .9rem/1 var(--f-display); text-decoration: none !important; }
.staff-login:hover { background: rgba(255,255,255,.1); color: #fff !important; border-color: rgba(255,255,255,.5); }
.staff-login svg { width: 17px; height: 17px; }
.tb-login { display: inline-flex; align-items: center; gap: 7px; color: #DDE9F3; text-decoration: none; font: 600 .82rem/1 var(--f-display); padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; }
.tb-login:hover { background: rgba(255,255,255,.1); color: #fff; }
.tb-login svg { width: 14px; height: 14px; }
.tb-login { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar .wrap { min-height: 42px; }
  .topbar .tb-contact a[href^="tel"] { display: none; }
  .tb-login { font-size: .78rem; padding: 5px 10px; }
}
.ref-link { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ref-link code { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; font-size: .95rem; word-break: break-all; }
.ref-link .btn { padding: 10px 16px; }

/* Service ticker between the contact bar and the logo */
.ticker { background: #fff; border-bottom: 1px solid var(--rule); overflow: hidden; position: relative; }
.ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 0, rgba(255,255,255,0) 40px, rgba(255,255,255,0) calc(100% - 40px), #fff 100%); }
.ticker-track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; }
.ticker-list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); margin: 0 26px; flex: none; }
.ticker-list a { display: block; padding: 11px 0; color: var(--navy); text-decoration: none; font: 500 .9rem/1.2 var(--f-display); white-space: nowrap; }
.ticker-list a:hover { color: var(--signal); }
.ticker-list .lead a { color: var(--deep); }
.ticker-list .lead b { color: var(--navy); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-track .ticker-list[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) { .ticker-list a { font-size: .82rem; padding: 9px 0; } .ticker-list li::after { margin: 0 18px; } }

/* Advertising panel */
.advert-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--deep); color: #D8E6EF; border-radius: var(--r-md); padding: clamp(28px, 4vw, 48px); }
.advert-panel h2 { color: #fff; }
.advert-panel p { color: #BCD2E1; }
.advert-panel figure { margin: 0; }
.advert-panel figure img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.ad-list { list-style: none; padding: 0; margin: 0 0 26px; }
.ad-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid rgba(255,255,255,.14); }
.ad-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
@media (max-width: 860px) { .advert-panel { grid-template-columns: 1fr; } }

/* the sticky header sits directly under the contact bar and the ticker */
.site-header { position: sticky; }
.site-header.over-hero { top: 0; }

/* Static advertising slot above a section heading */
.advert-bar { display: flex; align-items: center; gap: 18px; background: var(--navy); color: #EAF2F8 !important; text-decoration: none !important; border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 38px; border: 1px solid rgba(48,154,212,.5); transition: background .2s var(--ease), transform .2s var(--ease); }
.advert-bar:hover { background: var(--deep); transform: translateY(-2px); }
.advert-tag { background: var(--signal); color: #fff; font: 700 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 20px; flex: none; }
.advert-copy { font: 500 1.02rem/1.4 var(--f-display); }
.advert-copy b { color: #fff; font-weight: 700; }
.advert-go { margin-left: auto; font-size: 1.4rem; color: var(--signal); flex: none; }
@media (max-width: 620px) { .advert-bar { flex-wrap: wrap; gap: 12px; padding: 16px 18px; } .advert-copy { font-size: .95rem; } .advert-go { margin-left: 0; } }
.btn.is-pending { cursor: default; opacity: .75; border-style: dashed; }
.btn.is-pending:hover { background: transparent; color: var(--deep); }
