/* BEP website styles
   Layout concept: ledger-style editorial page. Cool paper ground, deep navy ink,
   teal for links and the About band, one small amber accent. */

:root {
  --ink: #092033;
  --paper: #F2F7FA;
  --white: #FFFFFF;
  --brand: #006CA8;
  --deep: #00497E;
  --accent: #00ADEE;
  --accent-soft: #4DC8F5;
  --muted: #3D5265;
  --muted-label: #476074;
  --muted-label-light: #F2F7FA;
  --line: #D0DEE8;
  --line-strong: #9DB4C6;
  --on-dark: #D2E2EE;
  --on-dark-soft: #B8D0E3;
  --line-dark: #3F82AE;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gutter: 24px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--deep);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Typography helpers ---------- */

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.label, .tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 14px;
}
.label-light { color: var(--on-dark-soft); }
.tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-label);
}

.section-intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 28px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--brand); color: var(--white); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); font-weight: 700; }
.btn-white:hover { background: var(--accent); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  font-weight: 700;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(9, 32, 51, 0.1); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; height: 46px; width: auto; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
}

.site-nav { font-size: 15px; font-weight: 500; }
.nav-list { display: flex; align-items: center; gap: 4px 26px; }
.nav-list > li { position: relative; }
.nav-list a { color: var(--ink); }
.nav-list > li > a { display: block; padding: 14px 0; }
.nav-list a:hover { color: var(--brand); }
.nav-list > li.is-current > a { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-list .nav-cta { padding: 12px 20px; color: var(--white); box-shadow: none; }
.nav-list .nav-cta:hover { color: var(--white); }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(9, 32, 51, 0.16);
  padding: 8px 0;
  z-index: 60;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 11px 22px; font-weight: 500; font-size: 15px; }
.sub a:hover { background: var(--paper); color: var(--brand); }
.sub a[aria-current="page"] { font-weight: 700; color: var(--brand); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font: 600 15px var(--font-body);
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-dot { width: 10px; height: 10px; background: var(--accent); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.lead-light { font-size: 19px; line-height: 1.6; color: var(--muted-label-light); max-width: 56ch; }

.ledger {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ledger-sub { color: var(--on-dark-soft); }
.ledger-row { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row h2 { font-size: 24px; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.ledger-row p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Entry strip ---------- */

.entry {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 72px;
}
.entry::before {
  content: "";
  flex: 1 0 100%;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 0;
}
.entry-item {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  color: var(--ink);
}
.entry-item:first-of-type { padding-left: 0; }
.entry-item:last-of-type { padding-right: 0; }
.entry-q { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; }
.entry-a { font-size: 15px; font-weight: 600; color: var(--brand); }
.entry-item:hover .entry-a { color: var(--ink); }

/* ---------- Bands and sections ---------- */

.band { border-top: 1px solid var(--line); }
.band-white { background: var(--white); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--deep); color: var(--white); border: 0; }
.band-deep { background: var(--deep); color: var(--white); border: 0; }
.band > .container { padding-top: 88px; padding-bottom: 88px; }
.section-pad { padding-top: 88px; padding-bottom: 88px; }

.stack-lg { display: flex; flex-direction: column; gap: 48px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.section-head > div { flex: 1 1 420px; min-width: 0; }
.section-head > .section-intro { flex: 1 1 360px; }
.section-head-narrow > div { max-width: 720px; }

.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.split-top { align-items: flex-start; }
.split-intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.split-intro .section-intro { margin-top: 22px; max-width: 44ch; }
.split > :last-child { flex: 1 1 440px; min-width: 0; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--brand); }
.card h3 { font-weight: 600; font-size: 28px; line-height: 1.15; }
.card p:not(.tag) { line-height: 1.65; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; font-size: 15px; }
.card-dark { background: var(--deep); border-color: var(--deep); }
.card-dark:hover { border-color: var(--accent-soft); }
.card-dark .tag { color: var(--on-dark-soft); }
.card-dark h3 { color: var(--white); }
.card-dark p:not(.tag) { color: var(--on-dark); }
.card-link-accent {
  color: var(--white);
  align-self: flex-start;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 2px;
}
.card-link-accent:hover { color: var(--white); }

.chips-block { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line-strong); padding: 9px 16px; font-size: 15px; font-weight: 600; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--line-dark);
}
.steps li { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent-soft); }
.steps h3 { font-weight: 600; font-size: 26px; line-height: 1.15; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--on-dark); }

/* ---------- Software tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.tile:hover { border-color: var(--brand); color: var(--ink); }
.tile-name { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.2; }
.tile-text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Row lists ---------- */

.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.rows a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
}
.rows a:hover { color: var(--brand); }
.row-go { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--brand); }
.rows-light { border-top-color: #3F82AE; }
.rows-light a { color: var(--white); border-bottom-color: #3F82AE; font-size: 24px; }
.rows-light a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.about-text { margin-top: 22px; font-size: 18px; line-height: 1.65; color: #DCEBF5; max-width: 56ch; }

/* ---------- GST links ---------- */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.links-grid a {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.links-grid a:hover { border-color: var(--brand); }

/* ---------- Contact ---------- */

.contact-card { background: var(--white); border: 1px solid var(--line); }
.contact-row { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.contact-row:last-child { border-bottom: 0; }
.contact-row p:not(.tag), .contact-row address { font-size: 17px; line-height: 1.6; font-style: normal; overflow-wrap: anywhere; }
.plain { color: var(--ink); }
.plain:hover { color: var(--brand); }

/* ---------- Footer ---------- */

.site-footer { background: var(--deep); color: var(--white); border-top: 1px solid var(--line-dark); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-about { flex: 1 1 100%; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.footer-about p:not(.footer-title) { font-size: 14px; line-height: 1.6; color: var(--on-dark-soft); }
.footer-cols { flex: 1 1 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 32px; align-content: start; }
.footer-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-head a { color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { color: var(--on-dark-soft); font-size: 14px; }
.footer-col li a:hover, .footer-head a:hover { color: var(--accent-soft); }
.footer-legal { flex: 1 1 100%; border-top: 1px solid var(--line-dark); padding-top: 20px; font-size: 13px; color: var(--on-dark-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex: 1 1 100%;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: 14px 0; }
  .nav-list > li.is-current > a { box-shadow: none; color: var(--brand); }
  .has-sub > a::after { display: none; }
  .sub {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 16px;
    background: transparent;
  }
  .sub a { padding: 9px 0; font-size: 14px; color: var(--muted); }
  .sub a:hover { background: transparent; }
  .nav-list > li:last-child { padding-top: 12px; }
  .nav-list .nav-cta { text-align: center; }
  .page-head .container { padding-top: 36px; padding-bottom: 40px; }
  .detail-side { position: static; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 48px; gap: 36px; }
  .band > .container, .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .card { padding: 24px; }
  .entry-item, .entry-item:first-of-type, .entry-item:last-of-type { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .rows a { font-size: 23px; }
  .steps li { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================
   Inner pages
   ========================================================== */

.page-head { background: var(--brand); border-bottom: 1px solid var(--line); }
.page-head .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 52px;
  padding-bottom: 60px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-label-light);
}
.crumbs a { color: var(--muted-label-light); }
.crumbs a:hover { color: var(--white); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.page-head h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--muted-label-light);
}
.page-head .lead { max-width: 62ch; }

.detail {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 72px;
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 88px;
}
.detail-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.detail-side { flex: 1 1 260px; min-width: 0; max-width: 100%; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }

.side-nav { border-top: 1px solid var(--line-strong); }
.side-nav-title { padding: 14px 0 8px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.side-nav a:hover { color: var(--brand); }
.side-nav a[aria-current="page"] { color: var(--brand); }
.side-nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }

.help-card { background: var(--deep); color: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.help-card h2 { font-size: 22px; letter-spacing: 0; line-height: 1.2; font-weight: 600; font-family: var(--font-display); }
.help-card p { font-size: 14.5px; line-height: 1.6; color: var(--on-dark); }
.help-card a { color: var(--white); font-weight: 700; }
.help-card a:hover { color: var(--accent-soft); }

/* content blocks */
.block { display: flex; flex-direction: column; gap: 24px; }
.block > h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.block-lead { font-size: 17px; color: var(--muted); max-width: 62ch; margin-top: -8px; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 64ch; }
.prose strong { color: var(--ink); }

.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  column-gap: 40px;
  border-top: 1px solid var(--line-strong);
}
.item { padding: 24px 0 26px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.item h3 { font-weight: 600; font-size: 22px; line-height: 1.2; }
.item p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--brand); }
.ticks-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 40px; }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line-strong); counter-reset: none; }
.flow li { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.flow .step-num { color: var(--brand); }
.flow h3 { font-weight: 600; font-size: 22px; line-height: 1.2; }
.flow p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.docs { border-top: 1px solid var(--line-strong); }
.docs a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.docs-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.docs-go { font-size: 14px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.docs a:hover .docs-title { color: var(--brand); }
.docs-group { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-label); margin: 8px 0 -12px; }

.note { font-size: 14px; line-height: 1.6; color: var(--muted-label); max-width: 64ch; }
.note a { font-weight: 700; }

.callout { background: var(--white); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.callout h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.callout p { color: var(--muted); max-width: 60ch; }

.cta-band { background: var(--deep); color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.cta-row h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; max-width: 22ch; }
.cta-row p { color: var(--on-dark); margin-top: 10px; max-width: 52ch; }

/* team and values */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.person { background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.monogram { width: 64px; height: 64px; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.person h3 { font-weight: 600; font-size: 28px; line-height: 1.1; }
.person .creds { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--brand); }
.person p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line-strong); }
.values li { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; display: flex; gap: 14px; align-items: flex-start; }
.values li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.4em; background: var(--accent); }

.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }

/* forms */
.form { background: var(--white); border: 1px solid var(--line); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 500 16px var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
button.btn { cursor: pointer; font-family: var(--font-body); }
.form-status { font-size: 14px; color: var(--muted-label); }

/* tax calculator */
.calc-out { display: flex; flex-direction: column; gap: 32px; }
.calc-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14.5px; }
table.data caption { text-align: left; padding: 14px 16px; background: var(--deep); color: var(--white); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
table.data th, table.data td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-weight: 600; color: var(--muted-label); font-size: 12.5px; }
table.data tr.sub-h td { background: var(--paper); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-label); text-align: left; }
table.data tr.strong td { font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }
.verdict { display: flex; flex-wrap: wrap; gap: 20px; }
.verdict-item { flex: 1 1 220px; background: var(--deep); color: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.verdict-item .tag { color: var(--on-dark-soft); }
.verdict-num { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.verdict-item.is-good .verdict-num { color: #4DC8F5; }

/* contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact-grid > * { flex: 1 1 340px; min-width: 0; }

@media (max-width: 640px) {
  .detail { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .detail-main { gap: 48px; }
  .person, .form, .callout { padding: 22px; }
  .cta-row { padding-top: 44px; padding-bottom: 44px; }
}

.calc-heading { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.15; margin-top: 8px; }

/* ==========================================================
   Server-side forms (contact form and tax calculator)
   ========================================================== */

.field-error { font-size: 13.5px; font-weight: 600; color: #B42318; }
.field-error:empty { display: none; }
.input-validation-error { border-color: #B42318 !important; }

.alert { padding: 14px 16px; font-size: 15px; line-height: 1.5; border: 1.5px solid transparent; }
.alert-success { background: #E7F6EC; border-color: #1E7A3C; color: #0F4D24; }
.alert-error { background: #FDECEA; border-color: #B42318; color: #7A1A12; }
.alert ul { padding-left: 18px; list-style: disc; }
.validation-summary-valid { display: none; }

/* Honeypot: hidden from people, visible to bots that fill in every field. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-line { display: inline-block; }
code { font-family: var(--font-mono); font-size: 0.92em; }
