/* ==========================================================================
   Accountants for Solicitors — accountantsforsolicitors.co.uk
   Legal-professional identity: deep ink navy, emerald, pure white ground.
   Newsreader (display serif) + Inter (body).
   ========================================================================== */

:root {
  --ink: #0c1a2b;          /* deep ink navy — dark bands, footer */
  --navy: #14263c;         /* secondary dark */
  --accent: #0a7a52;       /* primary — emerald */
  --accent-deep: #075f40;
  --bright: #43d29a;       /* light accent on dark */
  --tint: #ecf6f1;         /* pale emerald tint */
  --page: #ffffff;         /* page background — pure white */
  --paper: #ffffff;
  --line: #e2e8ee;
  --text: #3b4757;
  --muted: #66748a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 26, 43, 0.06);
  --shadow-lg: 0 24px 60px rgba(12, 26, 43, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; line-height: 1.3; }

p { margin: 0 0 1rem; }
a { color: var(--accent-deep); text-decoration-color: rgba(14, 147, 166, .4); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
strong { color: var(--ink); }

.inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--bright);
  vertical-align: middle;
  margin-right: .7rem;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--bright); }

.lede { font-size: 1.18rem; color: var(--muted); max-width: 46em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  font-family: "Newsreader", Georgia, serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(14,147,166,.32); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-bright { background: var(--bright); color: var(--ink); box-shadow: 0 8px 20px rgba(92,214,195,.35); }
.btn-bright:hover { background: #74e0cf; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--bright); color: var(--bright); }
.btn-ghost-dark { background: transparent; color: var(--accent-deep); border: 1.5px solid var(--accent); }
.btn-ghost-dark:hover { border-color: var(--accent-deep); color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- top bar + nav ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 0;
}
.topbar .inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: var(--bright); text-decoration: none; }
.topbar .tb-links { display: flex; gap: 18px; white-space: nowrap; }
@media (max-width: 720px) { .topbar .tb-tag { display: none; } .topbar .inner { justify-content: center; } }

header.site {
  background: rgba(247,251,251,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.wordmark .wm-mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wordmark .wm-mark svg { width: 34px; height: 34px; stroke: #fff; }
.wordmark .wm-text { line-height: 1; }
.wordmark .wm-top {
  display: block;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.wordmark .wm-main {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.28rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em;
  line-height: 1;
}
nav.primary { display: flex; align-items: center; gap: 30px; }
nav.primary a {
  color: var(--ink); text-decoration: none;
  font-size: .96rem; font-weight: 600; white-space: nowrap;
}
nav.primary a:hover { color: var(--accent); }
nav.primary .btn { padding: .65rem 1.4rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--ink); cursor: pointer; }

/* grouped dropdowns */
.nav-group { position: relative; padding: 18px 0; }
.nav-group > button {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: .96rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-group > button::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.nav-group:hover > button, .nav-group:focus-within > button { color: var(--accent); }
.nav-group .sub {
  position: absolute; top: 100%; left: -16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 250px;
  display: none; z-index: 70;
}
.nav-group:hover .sub, .nav-group:focus-within .sub { display: block; }
.nav-group .sub a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: .93rem; white-space: nowrap;
}
.nav-group .sub a:hover { background: var(--tint); color: var(--ink); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 18px 24px 24px; gap: 4px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  nav.primary.open { display: flex; }
  nav.primary > a { padding: 10px 0; }
  .nav-group { padding: 6px 0 0; width: 100%; }
  .nav-group > button {
    pointer-events: none;
    font-size: .74rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--accent);
  }
  .nav-group > button::after { display: none; }
  .nav-group .sub {
    display: block; position: static;
    border: none; box-shadow: none; background: transparent;
    padding: 4px 0 4px 2px; min-width: 0;
  }
  .nav-group .sub a { padding: 9px 0; }
  nav.primary .btn { margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,42,51,.94) 0%, rgba(11,53,64,.82) 42%, rgba(11,53,64,.32) 75%, rgba(11,53,64,.22) 100%);
}
.hero .inner { position: relative; padding-top: 96px; padding-bottom: 120px; max-width: 1140px; }
.hero h1 { color: #fff; max-width: 14em; }
.hero h1 .accent { color: var(--bright); }
.hero .lede { color: rgba(255,255,255,.88); margin: 1.4rem 0 2.2rem; max-width: 34em; }
.hero.hero-page .inner { padding-top: 72px; padding-bottom: 84px; }

/* promise card overlapping hero */
.promise-wrap { position: relative; margin-top: -64px; z-index: 5; }
.promise-card {
  background: var(--paper);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.promise-card .pc-item .pc-num {
  font-family: "Newsreader", Georgia, serif;
  font-size: .95rem; font-weight: 800; color: var(--accent);
  display: block; margin-bottom: .35rem;
}
.promise-card .pc-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.promise-card .pc-item p { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 980px) { .promise-card { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promise-card { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.bg-paper { background: var(--paper); }
.section.bg-ocean { background: var(--navy); }
.section.bg-ink { background: var(--ink); }
.section.bg-tint { background: var(--tint); }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p, .on-dark li { color: rgba(255,255,255,.85); }
.on-dark .lede { color: rgba(255,255,255,.82); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.centred { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centred .eyebrow::before { display: none; }
.section-head p { color: var(--muted); margin-top: 1rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700; font-size: .92rem;
  font-family: "Newsreader", Georgia, serif;
  color: var(--accent-deep); text-decoration: none;
}
.card .card-link::after { content: " →"; }
.card .card-link:hover { color: var(--ink); }
.card.feature { border-top: 3px solid var(--accent); }

/* audience cards with photo */
.card.photo-card { padding: 0; overflow: hidden; }
.card.photo-card img { height: 210px; width: 100%; object-fit: cover; }
.card.photo-card .pc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }

/* ---------- split (editorial photo + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .split-photo { position: relative; }
.split .split-photo img {
  position: relative; z-index: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%; height: 460px; object-fit: cover;
}
.split .split-photo::after {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: var(--tint);
  z-index: 0;
}
.on-dark .split .split-photo::after { background: rgba(92,214,195,.14); }
.split.flip .split-photo { order: 2; }
.split.flip .split-photo::after { inset: 18px 18px -18px -18px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-photo { order: 0; }
  .split .split-photo img { height: 320px; }
}

/* ---------- checklist ---------- */
ul.checks { list-style: none; margin: 1.4rem 0; }
ul.checks li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: .85rem;
}
ul.checks li::before {
  content: "";
  position: absolute; left: 0; top: .32rem;
  width: 20px; height: 20px;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg 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"><path d="M20 6L9 17l-5-5"/></svg>') center/70% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg 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"><path d="M20 6L9 17l-5-5"/></svg>') center/70% no-repeat;
  background: var(--accent);
}
.on-dark ul.checks li::before { background: var(--bright); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats .stat .num {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800; color: var(--bright);
  display: block; line-height: 1.1;
}
.stats .stat .lbl { font-size: .92rem; color: rgba(255,255,255,.8); margin-top: .4rem; display: block; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
  display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-weight: 600; color: var(--ink);
  list-style: none; position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent-deep); position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(92,214,195,.16);
}
.cta-band .inner { position: relative; padding-top: 84px; padding-bottom: 84px; text-align: center; }
.cta-band h2 { color: #fff; max-width: 17em; margin: 0 auto 1.1rem; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 38em; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-bright { box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---------- quote / pull ---------- */
.pull {
  border-left: 3px solid var(--bright);
  padding: .4rem 0 .4rem 1.6rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem; font-weight: 600; color: var(--navy);
  margin: 2rem 0;
}

/* ---------- prose (long-form pages) ---------- */
.prose h2 { margin: 2.6rem 0 1rem; }
.prose h3 { margin: 2rem 0 .7rem; }
.prose ul { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose .note {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  font-size: .95rem;
  margin: 1.6rem 0;
}

/* ---------- forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .85rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit; font-size: .95rem;
  background: var(--page);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-msg { font-size: .92rem; margin-top: .8rem; color: var(--accent-deep); font-weight: 600; display: none; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 72px 0 36px;
  font-size: .92rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px;
  margin-bottom: 48px;
}
@media (max-width: 940px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 {
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
footer.site a { color: rgba(255,255,255,.75); text-decoration: none; }
footer.site a:hover { color: var(--bright); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: .55rem; }
footer.site .wordmark .wm-main { color: #fff; }
footer.site .wordmark .wm-top { color: var(--bright); }
footer.site .fine {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
  font-size: .8rem; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* ---------- floats ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: var(--ink); padding: 12px 16px;
  text-align: center;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}
.sticky-cta .btn { width: 100%; max-width: 420px; }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
  .wa-float { bottom: 86px; }
}

/* ---------- calculators ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-inputs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.calc-inputs .field { margin-bottom: 18px; }
.calc-inputs .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.calc-results { background: var(--ink); border-radius: var(--radius); padding: 30px; color: #fff; position: sticky; top: 96px; }
.calc-results h3 { color: var(--bright); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.calc-row span:last-child { text-align: right; white-space: nowrap; }
.calc-row strong { color: var(--bright); }
.calc-verdict { margin: 1.2rem 0 0; font-size: .92rem; color: rgba(255,255,255,.85); background: rgba(92,214,195,.12); border-left: 3px solid var(--bright); padding: 12px 14px; border-radius: 0 8px 8px 0; }
.calc-hint { font-size: .78rem; color: rgba(255,255,255,.55); }
.calc-disclaimer { font-size: .8rem; color: var(--muted); margin-top: 1.6rem; }

/* ---------- newsletter band ---------- */
.nl-band { background: var(--navy); }
.nl-band .inner { padding-top: 52px; padding-bottom: 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.nl-band h3 { color: #fff; margin-bottom: .3rem; }
.nl-band p { color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input[type="email"] { min-width: 260px; background: #fff; border: none; }
.nl-inline { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin: 2.4rem 0 0; }
.nl-inline h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.nl-inline p { font-size: .92rem; color: var(--muted); }

/* ---------- misc ---------- */
.crumbs { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1.6rem; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: var(--bright); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.aqua-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--bright); border: none; margin: 0 0 1.6rem; }
.section-head.centred .aqua-rule { margin: 0 auto 1.6rem; }


/* ==========================================================================
   Accountants for Solicitors — components added for this site
   ========================================================================== */

/* Newsreader is optically larger than a grotesque at the same size; the
   display sizes are pulled back a touch so headlines stay in proportion. */
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.wordmark .wm-main { font-family: "Newsreader", Georgia, serif; font-weight: 600; }

/* active nav item */
header.site nav.primary a.on,
header.site nav.primary .sub a.on { color: var(--accent); }
header.site nav.primary .nav-group button.on { color: var(--accent); }

/* the regulatory note in the footer — visible, not buried */
.reg-note {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
  max-width: 32em;
}

/* "who does what" — the honest split, used on several pages */
.split-block {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 40px 34px;
}
.split-block h2 { margin-bottom: 1.6rem; }
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.split-cols h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--accent-deep); }
.split-cols p { font-size: .96rem; }
.split-cols .micro { font-size: .84rem; color: var(--muted); margin-bottom: 0; }
@media (max-width: 800px) { .split-cols { grid-template-columns: 1fr; gap: 26px; }
  .split-block { padding: 28px 24px 24px; } }

/* callout */
.note {
  background: var(--tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px 4px;
  margin: 1.8rem 0;
}
.note .note-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: .5rem;
}
.note p:last-child { margin-bottom: 1rem; }

/* rule reference chip — used inline in prose to cite an Accounts Rule */
.rule {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: 1px 7px;
  vertical-align: baseline;
}

/* prose table — wrap every <table> in <div class="tbl"> so it scrolls on mobile */
.tbl { overflow-x: auto; margin: 1.8rem 0; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th {
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { color: var(--ink); font-weight: 500; }

/* selects, for the health check */
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366748a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* calculator result actions — every tool ships an end product */
.calc-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.btn.btn-sm { padding: 9px 16px; font-size: .88rem; }
.calc-results .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.calc-results .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* red / amber / green, for the health check result */
.rag { display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem; }
.rag-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.rag-green .rag-dot { background: #2fbf6d; }
.rag-amber .rag-dot { background: #e8a33d; }
.rag-red   .rag-dot { background: #e4573d; }
.rag-label { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.hc-actions { margin: 0; padding-left: 1.1rem; }
.hc-actions li { margin-bottom: .55rem; font-size: .94rem; }

@media print {
  header.site, .topbar, footer.site, .nl-band, .cta-band, .sticky-cta, .wa-float,
  .calc-actions, .calc-disclaimer + * { display: none !important; }
  .calc-wrap { display: block; }
  .calc-results { background: #fff !important; color: #000 !important; }
  .calc-results * { color: #000 !important; }
}

/* ==========================================================================
   Page architecture — added after the first render read as a Word document:
   a flat dark hero box above a single narrow prose column with 92px gaps and
   a dead right-hand half. These components give a long compliance page an
   actual structure.
   ========================================================================== */

/* ---------- hero: depth, not a flat rectangle ---------- */
.hero.hero-page { background-color: var(--ink); }
.hero.hero-page::before {
  background:
    linear-gradient(103deg, rgba(9,20,33,.97) 0%, rgba(11,27,43,.90) 44%,
                    rgba(12,26,43,.55) 72%, rgba(12,26,43,.34) 100%),
    radial-gradient(120% 90% at 8% 0%, rgba(10,122,82,.34) 0%, rgba(10,122,82,0) 62%);
}
/* a hairline rule set that reads as a document margin, not decoration */
.hero.hero-page::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--bright) 0%, rgba(67,210,154,.25) 22%, rgba(255,255,255,.10) 60%, transparent 100%);
}
.hero .crumbs { position: relative; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; align-items: end; }
.hero-grid .lede { margin-bottom: 0; }

/* the key-facts panel that sits in the hero's empty right half */
.hero-facts {
  border-left: 2px solid var(--bright);
  padding-left: 26px;
  margin-bottom: .4rem;
}
.hero-facts dl { margin: 0; }
.hero-facts dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bright); margin-bottom: .2rem;
}
.hero-facts dd {
  margin: 0 0 1.15rem; color: #fff; font-size: 1.02rem; line-height: 1.4;
}
.hero-facts dd:last-child { margin-bottom: 0; }
.hero-facts dd strong { color: #fff; font-family: "Newsreader", Georgia, serif; font-size: 1.5rem;
  display: block; line-height: 1.1; margin-bottom: .1rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hero-facts { margin-top: .4rem; }
}

/* ---------- the fact strip: the numbers a reader is scanning for ---------- */
.factstrip { background: var(--ink); color: #fff; }
.factstrip .inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding-top: 0; padding-bottom: 0;
}
.factstrip .fs {
  padding: 34px 26px 32px;
  border-left: 1px solid rgba(255,255,255,.13);
}
.factstrip .fs:first-child { border-left: 0; padding-left: 0; }
.factstrip .fs b {
  display: block; font-family: "Newsreader", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: var(--bright);
  margin-bottom: .5rem;
}
.factstrip .fs span { display: block; font-size: .92rem; color: rgba(255,255,255,.74); line-height: 1.45; }
@media (max-width: 860px) {
  .factstrip .inner { grid-template-columns: repeat(2, 1fr); }
  .factstrip .fs { padding: 26px 20px; border-left: 0; }
  .factstrip .fs:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 480px) { .factstrip .inner { grid-template-columns: 1fr; } }

/* ---------- long-form as a document: sticky index rail + prose ---------- */
.section.doc-sec { padding: 68px 0 76px; }
.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}
.doc-rail { position: sticky; top: 22px; }
.doc-rail .drt {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding-bottom: .7rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.doc-rail ol { list-style: none; margin: 0; padding: 0; counter-reset: dr; }
.doc-rail li { counter-increment: dr; margin-bottom: .05rem; }
.doc-rail a {
  display: block; padding: .42rem 0 .42rem 1.9rem; position: relative;
  font-size: .9rem; line-height: 1.35; color: var(--muted);
  text-decoration: none; border-left: 2px solid transparent; margin-left: -2px;
}
.doc-rail a::before {
  content: counter(dr, decimal-leading-zero);
  position: absolute; left: .55rem; top: .45rem;
  font-size: .72rem; font-weight: 700; color: var(--line);
}
.doc-rail a:hover { color: var(--ink); }
.doc-rail a:hover::before { color: var(--accent); }
.doc-rail a.on { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.doc-rail a.on::before { color: var(--accent); }
.doc-body { max-width: 44em; }
.doc-body > h2:first-child, .doc-body > *:first-child { margin-top: 0; }
.doc-body h2 { margin-top: 3.1rem; scroll-margin-top: 26px; }
.doc-body h2:first-of-type { margin-top: 0; }
.doc-body h3 { margin-top: 2rem; }
@media (max-width: 1000px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .doc-rail { position: static; margin-bottom: 2.4rem; padding: 20px 22px; background: var(--tint);
              border-radius: var(--radius); }
  .doc-rail ol { columns: 2; column-gap: 26px; }
  .doc-body { max-width: none; }
}
@media (max-width: 620px) { .doc-rail ol { columns: 1; } }

/* ---------- a rule reference as a designed object ---------- */
.rulebox {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px;
  align-items: start;
  border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px; margin: 1.9rem 0;
  background: var(--paper);
}
.rulebox .rb-ref {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  background: var(--ink); color: #fff; border-radius: 5px; padding: 4px 9px;
  white-space: nowrap;
}
.rulebox p { margin-bottom: .6rem; font-size: .96rem; }
.rulebox p:last-child { margin-bottom: 0; }

/* ---------- full-bleed image band with a single line of argument ---------- */
.imgband {
  position: relative; background-size: cover; background-position: center 45%;
  color: #fff;
}
.imgband::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(97deg, rgba(9,20,33,.95) 0%, rgba(11,27,43,.80) 50%, rgba(12,26,43,.42) 100%);
}
.imgband .inner { position: relative; padding-top: 82px; padding-bottom: 82px; }
.imgband blockquote {
  margin: 0; max-width: 24em;
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.28; letter-spacing: -.01em;
}
.imgband cite {
  display: block; margin-top: 1.3rem; font-style: normal;
  font-size: .84rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bright); font-weight: 600;
}

/* ---------- the who-does-what block, rebuilt with structure ---------- */
.split-block {
  background: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: #fff;
}
.split-block > .eyebrow { display: block; padding: 34px 40px 0; color: var(--bright); }
.split-block > .eyebrow::before { background: var(--bright); }
.split-block > h2 { color: #fff; padding: 0 40px; margin-bottom: 1.9rem; max-width: 18em; }
.split-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.12);
}
.split-cols > div { background: var(--ink); padding: 32px 40px 34px; }
.split-cols > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.split-cols h3 { color: var(--bright); font-size: 1.05rem; margin-bottom: .7rem; }
.split-cols p { color: rgba(255,255,255,.80); font-size: .95rem; }
.split-cols strong { color: #fff; }
.split-cols .micro { color: rgba(255,255,255,.52); font-size: .83rem; margin-bottom: 0; }
@media (max-width: 820px) {
  .split-cols { grid-template-columns: 1fr; }
  .split-cols > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .split-block > .eyebrow { padding: 26px 24px 0; }
  .split-block > h2 { padding: 0 24px; }
  .split-cols > div { padding: 26px 24px; }
}

/* prose runs sit closer together than the marketing sections did */
.section + .section.doc-sec { padding-top: 0; }
.doc-sec + .section { padding-top: 72px; }

/* section marker in the left margin of a prose run */
.doc-side { position: sticky; top: 26px; }
.doc-mark {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: .55rem 0 0; line-height: 1.5;
  padding-top: .9rem; border-top: 2px solid var(--accent);
}
@media (max-width: 1000px) {
  .doc-side { position: static; margin-bottom: 1.4rem; }
  .doc-mark { display: inline-block; margin-top: 0; }
}

/* Adjacent prose runs must not stack their padding into a 144px void. */
.doc-sec + .doc-sec { padding-top: 0; }
.doc-sec + .doc-sec .doc-mark { padding-top: 0; border-top: 0; margin-top: .35rem; }
.hero + .factstrip .inner { padding-top: 0; padding-bottom: 0; }
.factstrip + .section { padding-top: 74px; }
.imgband + .section, .factstrip + .doc-sec { padding-top: 68px; }
.section.bg-tint + .imgband, .imgband + .section.bg-tint { margin-top: 0; }
/* the split block is already a full dark panel — it does not need a band around it */
.section.bg-tint > .inner > .split-block { box-shadow: var(--shadow-lg); }

/* A lede immediately after the who-does-what panel is a caption on it, not an
   orphaned centred paragraph floating in white space. */
.split-block + .lede {
  max-width: 44em; margin: 1.7rem auto 0; text-align: center;
  font-size: 1rem; color: var(--muted);
}
.split-block + .lede a { color: var(--accent-deep); }

/* The marketing rhythm was set for a photo-led dental site; these pages carry
   more text, so the bands sit closer together. */
.section { padding: 76px 0; }
.section.bg-paper + .section, .section + .section.bg-paper { padding-top: 76px; }
