:root {
  --navy: #073D76;
  --gold: #B8860B;
  --cta: #0B6FD4; /* main button colour (alternatives: gold #B8860B, green #2E7D32, red #C0392B) */
  --grey: #595959;
  --bg: #FAFAF8;
  --border: #DCDED6;
  --green: #D9EAD9;
  --amber: #FCE8C6;
}
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1B2420;
  background: var(--bg);
  margin: 0;
  line-height: 1.55;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #fff; color: var(--navy); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.wordmark .w1 { color: var(--navy); }
.wordmark .w2 { color: #0A84EF; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 6px; }
.site-nav a:hover { text-decoration: underline; }
/* The page you are on: a dark blue box with white text. Client sign in is always a solid blue button. */
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; text-decoration: none; }
.site-nav a.nav-cta { background: var(--cta); color: #fff; margin-left: 8px; font-weight: bold; }
.site-nav a.nav-cta:hover { background: var(--navy); text-decoration: none; }
.site-nav a.nav-cta[aria-current="page"] { background: var(--navy); }
main { padding: 32px 0 56px; }
h1 { color: var(--navy); font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
h2 { color: var(--navy); font-size: 20px; margin: 32px 0 8px; }
p, li { font-size: 15px; }
.lead { font-size: 17px; color: var(--grey); }
.btn {
  display: inline-block; background: var(--cta); color: #fff; padding: 10px 20px;
  border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 15px;
}
.btn:hover { filter: brightness(0.92); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--grey); }
.tag { display: inline-block; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px; background: var(--amber); color: #7A5200; }
.tag.live { background: var(--green); color: #1E5B22; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 12px 0; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border: 1px solid var(--border); vertical-align: top; }
th { background: var(--navy); color: #fff; }
.notice { background: #F1F0FF; border: 1px solid #D9D6FA; border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #3A3577; }
.draft { background: var(--amber); border: 1px solid #E6C98A; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.site-footer { background: var(--navy); margin-top: 40px; padding: 24px 0 36px; font-size: 13px; color: #fff; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { text-decoration-thickness: 2px; }
.copy-address { margin-left: 4px; padding: 1px 8px; font: inherit; font-size: 12px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 10px; cursor: pointer; }
.copy-address:hover, .copy-address:focus-visible { background: rgba(127, 127, 127, 0.2); }
@media print { .copy-address { display: none; } }

/* Health Check */
.q { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 0 0 12px; }
.q legend { font-weight: bold; color: var(--navy); padding: 0 4px; font-size: 15px; }
.q .mean { margin: 4px 0 8px; font-size: 13px; color: var(--grey); }
.q .cite { margin: 8px 0 0; font-size: 11px; color: var(--grey); }
.opts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.opt { font-size: 14px; cursor: pointer; }
.progress { position: sticky; top: 0; background: var(--bg); padding: 6px 0; font-size: 13px; color: var(--grey); border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.fields label { font-size: 13px; font-weight: bold; color: var(--grey); }
.fields input { display: block; width: 100%; margin-top: 3px; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 4px; }
.hp { position: absolute; left: -9999px; }
.check { display: block; font-size: 13px; margin: 8px 0 12px; }
.error { color: #B3261E; font-size: 14px; min-height: 1.2em; }
.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn:disabled { opacity: 0.6; cursor: default; }
.result { border-radius: 8px; padding: 16px 20px; margin: 16px 0; border: 1px solid var(--border); }
.result.green { background: var(--green); }
.result.amber { background: var(--amber); }
.result.red { background: #F4CCC7; }
.result .score { font-size: 44px; font-weight: bold; color: var(--navy); margin: 0; line-height: 1; }
.result .score span { font-size: 18px; color: var(--grey); }
.result h2 { margin: 8px 0 4px; }

/* Forms and lists */
.msg { display: block; font-size: 13px; font-weight: bold; color: var(--grey); margin: 8px 0; }
.msg textarea, .fields select { display: block; width: 100%; margin-top: 3px; font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 4px; }
.msg textarea { resize: vertical; }
[hidden] { display: none !important; }
ol { padding-left: 22px; }

/* Full Health Check report */
.gap { background: #fff; border: 1px solid var(--border); border-left-width: 5px; border-radius: 6px; padding: 10px 14px; margin: 0 0 10px; }
.gap.red { border-left-color: #C0392B; }
.gap.amber { border-left-color: #D68910; }
.gap p { margin: 4px 0; }
.gap-meta { font-size: 12px; color: var(--grey); }
.gap-ai { font-size: 14px; }
.gap-mods { font-size: 13px; color: var(--grey); }
.gap-mods .mod { display: inline-block; margin: 2px 6px 2px 0; padding: 2px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--navy); text-decoration: none; font-size: 12px; }
.gap-mods .mod:hover { border-color: var(--navy); }
.tag.red { background: #F4CCC7; color: #7A2E1F; }
.tag.amber { background: var(--amber); color: #7A5200; }
.tag.green { background: var(--green); color: #1E5B22; }
.ai-tag { display: inline-block; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.04em; background: #F1F0FF; color: #3A3577; border: 1px solid #D9D6FA; border-radius: 4px; padding: 1px 6px; }
@media print {
  .site-header, .no-print, .progress { display: none !important; }
  body { background: #fff; }
  main { padding-top: 0; }
  .gap, .result { break-inside: avoid; }
}

/* Call-to-action banner */
.cta-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--cta); border-radius: 8px; padding: 16px 20px; margin: 20px 0 24px; }
.cta-banner strong { color: var(--navy); font-size: 17px; }
.cta-banner p { margin: 4px 0 0; color: var(--grey); font-size: 14px; }

/* What a question rests on */
.basis { display: inline-block; font-size: 11px; font-weight: bold; padding: 1px 8px; border-radius: 10px; margin: 0 2px 0 0; border: 1px solid transparent; }
.basis-l { background: #E4ECF7; color: #073D76; border-color: #B7C9E6; }
.basis-sc { background: #E7F4E8; color: #1E4620; border-color: #B9DBBC; }
.basis-code { background: #F1F0FF; color: #3A3577; border-color: #D9D6FA; }
.basis-e { background: #FCE8C6; color: #7A5200; border-color: #EBCB92; }
.basis-row { margin: 4px 0 0; }

/* Home page */
.hero { padding: 8px 0 4px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 18px 0 6px; }
.text-link { color: var(--navy); font-weight: bold; font-size: 15px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-note { font-size: 13px; color: var(--grey); margin: 0; }
.section-lead { color: var(--grey); margin: 0 0 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.tile { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--navy); }
.tile { border-top: 3px solid var(--accent, var(--cta)); }
.tile .ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft, #E4EEFA); margin-bottom: 10px; }
.tile svg { width: 26px; height: 26px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-blue { --accent: #0B6FD4; --accent-soft: #E4EEFA; }
.t-green { --accent: #2E9E5B; --accent-soft: #E4F4EA; }
.t-red { --accent: #D64545; --accent-soft: #FBE7E4; }
.t-orange { --accent: #E07B2E; --accent-soft: #FCEBDA; }
.t-purple { --accent: #7B5CD6; --accent-soft: #EEE9FB; }
.t-teal { --accent: #1B9AAA; --accent-soft: #DFF3F5; }
.group-title { margin: 20px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.tile h3 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.tile p { margin: 0; font-size: 14px; color: var(--grey); }
.card-link { margin-top: 10px !important; }
.card-link a { color: var(--navy); font-weight: bold; text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

.tiles-4 { grid-template-columns: repeat(4, 1fr); } /* four across; a fifth tile starts the next row at the same size */
@media (max-width: 760px) { .tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .tiles-4 { grid-template-columns: 1fr; } }

/* Link arrow: drawn (not a text glyph) so it is bolder */
.text-link::after, .card-link a::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 6px; vertical-align: -0.14em; background: currentColor; transition: transform .15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.text-link:hover::after, .card-link a:hover::after { transform: translateX(3px); }
.text-link:hover, .card-link a:hover { text-decoration: none; }

.btn-arrow::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 8px; vertical-align: -0.14em; background: currentColor; transition: transform .15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn.secondary { border-width: 2px; padding: 9px 19px; }
.btn.secondary:hover { background: #EEF4FB; filter: none; }

/* Advice-firms page */
.check-list { list-style: none; padding: 0; margin: 10px 0; }
.check-list li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 18px; height: 18px; background: #2E9E5B;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
details.more { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; margin: 14px 0; }
details.more summary { cursor: pointer; padding: 12px 0; font-weight: bold; color: var(--navy); }
details.more[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.hero-note a { color: var(--navy); font-weight: bold; }

.start-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 22px 0 0; padding: 12px 18px; background: #E8F5EC; border: 1px solid #BFE0C9; border-left: 6px solid #2E9E5B; border-radius: 8px; text-decoration: none; color: var(--navy); }
.start-strip strong { font-size: 16px; }
.start-strip span { font-size: 14px; color: var(--grey); }
.start-strip:hover { background: #DDF0E3; }
.start-strip.btn-arrow::after { margin-left: auto; width: 1.2em; height: 1.2em; }

/* Platform page */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin: 12px 0 4px; }
.shots figure { margin: 0; }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 8px rgba(7, 61, 118, 0.10); background: #fff; }
.shots figcaption { font-size: 13px; color: var(--grey); margin-top: 6px; }
.fine { font-size: 12px; color: var(--grey); margin: 6px 0 0; }
.tile .tag { margin-left: 4px; vertical-align: 2px; }
div.tile:hover { border-color: var(--border); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shots figure.narrow { grid-column: 1 / -1; max-width: 560px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .tiles-2 { grid-template-columns: 1fr; } }

/* Pricing page */
.price-card h3 .tag { margin-left: 4px; vertical-align: 2px; }
.price { margin: 12px 0 0 !important; font-size: 22px !important; font-weight: bold; color: var(--navy) !important; line-height: 1.2; }
.price span { display: block; font-size: 13px; font-weight: normal; color: var(--grey); margin-top: 2px; }
.price-note { margin-top: 6px !important; font-size: 13px !important; }
.card a { color: var(--navy); }

.demo { margin: 12px 0 18px; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 1320 / 864; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 8px rgba(7, 61, 118, 0.10); background: #fff; }
.demo figcaption { font-size: 14px; color: var(--grey); margin-top: 8px; }

/* Three screenshots in a row, as cropped previews that open full size */
.shots { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots figure.wide, .shots figure.narrow { grid-column: auto; max-width: none; }
.shots a { display: block; }
.shots img { aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.shots figcaption { font-size: 12px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } .shots img { aspect-ratio: 16 / 10; } }
.demo { max-width: 660px; margin-left: auto; margin-right: auto; }
div.tile a { color: var(--navy); font-weight: bold; }

/* Enquiry forms: required marker and option groups */
.req { color: #B3261E; font-weight: bold; }
.picks { border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 10px 14px 12px; margin: 12px 0; }
.picks legend { font-size: 13px; font-weight: bold; color: var(--grey); padding: 0 4px; }
.picks .muted-note { font-weight: normal; }
.pick { display: inline-block; width: 49%; min-width: 240px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.pick input { margin-right: 6px; }

/* In-text links: one colour, visited or not (buttons and tiles have classes, so they keep their own) */
main a:not([class]), main a:not([class]):visited { color: var(--navy); }
main a:not([class]):hover { color: var(--cta); }

/* Health Check: two choices, the full check featured */
.hc-choices { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin: 18px 0; align-items: stretch; }
.choice { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.choice h2 { margin: 0 0 8px; font-size: 20px; }
.choice .tag { margin-left: 6px; vertical-align: 3px; }
.choice.featured { border: 2px solid var(--cta); background: #F3F8FE; box-shadow: 0 2px 10px rgba(11, 111, 212, 0.12); }
.choice.featured .check-list li { padding-top: 6px; padding-bottom: 6px; }
.choice .fine { margin-top: 8px; }
details.legend { margin: 12px 0; }
details.legend p { margin: 0 0 12px; font-size: 13px; color: var(--grey); }
@media (max-width: 720px) { .hc-choices { grid-template-columns: 1fr; } }

/* Pricing page */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.tier h3 { margin-bottom: 4px; }
.tier .price { font-size: 26px !important; margin-top: 8px !important; }
.fap-box { margin: 14px 0 18px; }
.fap-box h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.fap-box p { margin: 0; font-size: 14px; }
.calc { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; margin: 8px 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.calc .pick { width: auto; min-width: 0; }
.calc-n { font-size: 14px; font-weight: bold; color: var(--grey); }
.calc-n input { width: 90px; margin-left: 6px; font: inherit; font-size: 15px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; }
.calc-out { flex: 1 1 260px; margin: 0; font-size: 18px; color: var(--navy); }
.calc-sub { font-size: 13px; color: var(--grey); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tiers { grid-template-columns: 1fr; } }

/* Sign-in page */
.signin-wrap { max-width: 460px; margin: 8px auto 0; }
.signin-card { padding: 20px 22px; margin: 18px 0; }
.signin-card p { font-size: 15px; }
.signin-loading { color: var(--grey); margin: 0; }
.si-label { display: block; font-size: 13px; font-weight: bold; color: var(--grey); margin: 0 0 4px; }
.si-input { display: block; width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #9aa9bd; border-radius: 6px; box-sizing: border-box; background: #fff; }
.si-input:focus { outline: 2px solid var(--cta); outline-offset: 1px; }
.si-code { letter-spacing: 4px; font-size: 20px; }
.signin-card .btn { width: 100%; padding: 11px 20px; }
.signin-help { list-style: none; padding: 0; margin: 14px 0 0; }
.signin-help li { font-size: 13px; color: var(--grey); padding: 7px 0; border-top: 1px solid var(--border); }
.signin-help li strong { color: var(--navy); }
.signin-card form { margin-top: 12px; }
.si-input + p { margin: 14px 0 0; }
.signin-card .fine { margin: 12px 0 0; }
.signin-card [role="alert"] { margin: 10px 0 0; }
.fap-box .tiles { margin: 14px 0 0; }
.fap-box .tile h3 { font-size: 16px; margin: 0 0 4px; }

/* Compact tiles: just the icon and the tool's name (pricing page). */
.tiles-mini { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tiles-mini .tile { padding: 12px 8px; text-align: center; }
.tiles-mini .tile .ico { width: 38px; height: 38px; margin-bottom: 6px; }
.tiles-mini .tile svg { width: 22px; height: 22px; }
.tiles-mini .tile h3, .fap-box .tiles-mini .tile h3 { margin: 0; font-size: 13px; line-height: 1.3; }
@media (max-width: 760px) { .tiles-mini { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .tiles-mini { grid-template-columns: repeat(2, 1fr); } }
