/* =========================================================
   HSC IT Limited — site stylesheet
   One file, no framework. Edit the tokens below to restyle.
   ========================================================= */

/* Geist — self-hosted, SIL Open Font Licence (fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("../fonts/geist-700.woff2") format("woff2"); }

:root {
  /* Brand — from the HSC IT tile logo */
  --magenta: #b5004e;
  --magenta-dark: #8f003d;
  --magenta-soft: #fbeef4;
  --black: #000;
  --white: #fff;

  /* Supporting */
  --ink: #16181d;
  --slate: #5b6670;
  --line: #e3e5e8;
  --line-strong: #c9cdd2;
  --paper: #f5f6f8;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 3.8vw, 4.6rem);

  --radius: 16px;
  --radius-sm: 10px;
  --gap: clamp(1.1rem, 0.6rem + 1.8vw, 2rem);
  --section: clamp(4rem, 2.8rem + 4.5vw, 7.5rem);
  --wrap: 74rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-weight: 600; line-height: 1.12; margin: 0 0 0.5em;
  letter-spacing: -0.025em; text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--magenta); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta-dark); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--magenta); color: var(--white); }

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

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 500 1rem/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: var(--magenta-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); backdrop-filter: blur(6px); background: rgba(255,255,255,0.08); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--magenta); color: var(--white); }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--black); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--black); }
.brand svg { width: 3.6rem; height: auto; flex: none; }
.brand-name { font-size: 1.05rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.brand-name small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--slate); letter-spacing: 0; }

.nav-toggle {
  display: none; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 999px;
  font: 500 0.95rem var(--font); color: var(--ink); padding: 0.5rem 1rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--paper); color: var(--black); }
.site-nav a[aria-current="page"] { background: var(--magenta-soft); color: var(--magenta); }
.site-nav .nav-call a {
  margin-left: 0.6rem; padding: 0.6rem 1.1rem;
  background: var(--black); color: var(--white); font-variant-numeric: tabular-nums;
}
.site-nav .nav-call a:hover { background: var(--magenta); color: var(--white); }

@media (max-width: 64rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.25);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.75rem var(--gap) 1.25rem; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
  .no-js .site-nav ul { flex-wrap: wrap; flex-direction: row; padding: 0 0 0.75rem; }
  .site-nav a { padding: 0.8rem 1rem; font-size: 1rem; }
  .site-nav .nav-call a { margin: 0.75rem 0 0; text-align: center; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--black) url("../images/brighton-seafront.jpg") center 62% / cover no-repeat;
  min-height: min(86vh, 46rem);
  display: flex; align-items: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 42%, rgba(0,0,0,0.1) 78%),
    linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
}
.hero .wrap { padding-block: clamp(5rem, 14vh, 9rem) clamp(2rem, 5vh, 3rem); }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; max-width: 15ch; margin-bottom: 0.45em; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 34rem; color: rgba(255,255,255,0.88); line-height: 1.5; }
.hero .btn-row { margin-top: 2rem; }
.hero-facts {
  list-style: none; margin: clamp(3rem, 8vh, 5rem) 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.22);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem;
  font-size: var(--step--1); color: rgba(255,255,255,0.72); line-height: 1.45;
}
.hero-facts strong { display: block; color: var(--white); font-weight: 600; font-size: 1rem; margin-bottom: 0.15rem; }
@media (max-width: 52rem) { .hero-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section:not(.section-paper):not(.section-dark) + .section-cta { padding-top: 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--black); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.section-head p { font-size: var(--step-1); color: var(--slate); line-height: 1.55; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.lead { font-size: var(--step-1); line-height: 1.55; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }

/* ---------- Signature: tile grid mirroring the logo ----------
   [H magenta][S black][C white] / [ empty ][I white][T black]   */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: clamp(15rem, 23vw, 19rem); padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid var(--line-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.tile h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.035em; margin: 0; }
.tile p { margin: 0 0 0.9rem; line-height: 1.5; }
.tile-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; font-size: var(--step--1); }
.tile-more::after { content: ""; width: 0.45em; height: 0.45em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0,0,0,0.45); }
a.tile:hover .tile-more::after { transform: translateX(3px) rotate(45deg); }
.tile--magenta { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.tile--black { background: var(--black); border-color: var(--black); color: var(--white); }
.tile--white { background: var(--white); color: var(--ink); }
.tile--magenta:hover, .tile--black:hover { color: var(--white); }
.tile--white:hover { border-color: var(--black); color: var(--ink); }
.tile--white p { color: var(--slate); }
.tile--magenta p, .tile--black p { color: rgba(255,255,255,0.82); }
.tile--intro { border: 0; padding: 0.25rem 1.5rem 0 0; min-height: 0; justify-content: flex-start; gap: 0; }
.tile--intro h2 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.tile--intro p { color: var(--slate); }
@media (max-width: 54rem) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--intro { grid-column: 1 / -1; order: -1; padding: 0 0 0.75rem; }
}
@media (max-width: 34rem) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- Layout helpers ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sticky { position: sticky; top: 6.5rem; }
@media (max-width: 54rem) { .split, .split--even, .split--wide-left { grid-template-columns: 1fr; } .sticky { position: static; } }

/* Problem list ("sound familiar") */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.pains li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem 1rem 3rem; position: relative; line-height: 1.5;
}
.pains li::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.35rem;
  width: 0.9rem; height: 0.9rem; border-radius: 3px; background: var(--magenta);
}

/* Steps — genuinely sequential, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 8px; margin-bottom: 1.25rem;
  background: var(--black); color: var(--white); font-weight: 600;
}
.steps li:first-child::before { background: var(--magenta); }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--slate); }
.section-dark .steps li { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.section-dark .steps p { color: rgba(255,255,255,0.68); }
.section-dark .steps li::before { background: var(--white); color: var(--black); }
.section-dark .steps li:first-child::before { background: var(--magenta); color: var(--white); }
@media (max-width: 54rem) { .steps { grid-template-columns: 1fr; } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); }
.section:not(.section-paper) .card { background: var(--paper); border-color: transparent; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.45rem; }
.card p { color: var(--slate); margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center;
  background: var(--magenta-soft); color: var(--magenta); margin-bottom: 1.1rem;
}
.card .icon svg { width: 1.4rem; height: 1.4rem; }
.card--feature { border-top: 4px solid var(--magenta); }
@media (max-width: 60rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.checklist li { padding: 0.75rem 0 0.75rem 2.1rem; position: relative; border-bottom: 1px solid var(--line); line-height: 1.5; }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.05rem;
  width: 0.85rem; height: 0.45rem;
  border-left: 2.5px solid var(--magenta); border-bottom: 2.5px solid var(--magenta);
  transform: rotate(-45deg);
}
.checklist strong { font-weight: 600; }
.checklist--cols { columns: 2; column-gap: 2.5rem; }
.checklist--cols li { break-inside: avoid; }
@media (max-width: 40rem) { .checklist--cols { columns: 1; } }

/* Response table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 0.98rem; }
.table th, .table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper); font-weight: 600; font-size: var(--step--1); color: var(--slate); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; background: var(--paper); }
.pill--hot { background: var(--magenta-soft); color: var(--magenta); }

/* Stats (official figures, always with a source) */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.stat { border-radius: var(--radius); padding: 1.6rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.stat b { display: block; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--white); margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.stat:first-child b { color: #ff5c9d; }
.stat p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.source { margin-top: 1.25rem; font-size: var(--step--1); color: rgba(255,255,255,0.6); }
.source a { color: rgba(255,255,255,0.85); }
@media (max-width: 60rem) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .stats { grid-template-columns: 1fr; } }

/* FAQ — native <details>, no script */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.3rem 3rem 1.3rem 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 0.6rem; top: 50%;
  width: 0.9rem; height: 2px; background: var(--ink); transition: transform 0.2s;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq summary:hover { color: var(--magenta); }
.faq .answer { padding: 0 0 1.4rem; color: var(--slate); max-width: 46rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Team */
.team-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 2rem 0 1.75rem; }
.team-strip figure { margin: 0; }
.team-strip img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius-sm); background: var(--line); }
.team-strip figcaption { font-weight: 500; margin-top: 0.5rem; font-size: var(--step--1); }
@media (max-width: 34rem) { .team-strip { grid-template-columns: 1fr 1fr; } }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.person { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); background: var(--line); }
.person h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.person p { font-size: 0.98rem; color: var(--slate); }
.person .email { font-weight: 500; font-size: var(--step--1); }
@media (max-width: 62rem) { .team { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .person { grid-template-columns: 1fr; } .person img { max-width: 12rem; } }

/* Values list */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.points li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.section:not(.section-paper) .points li { background: var(--paper); border-color: transparent; }
.points h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.points p { margin: 0; color: var(--slate); }

/* Callout */
.callout { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--magenta-soft); }
.callout h2, .callout h3 { font-size: var(--step-2); }
.callout p { color: var(--ink); }

/* CTA band */
.cta { background: var(--magenta); color: var(--white); border-radius: calc(var(--radius) * 1.5); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { font-size: var(--step-3); margin-bottom: 0.4em; }
.cta p { color: rgba(255,255,255,0.86); margin: 0; max-width: 34rem; }
.cta .btn-row { justify-content: flex-end; }
.cta .btn-light { background: var(--white); color: var(--black); }
.cta .btn-light:hover { background: var(--black); color: var(--white); }
.cta .btn-ghost:hover { color: var(--magenta); }
@media (max-width: 54rem) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Inner page header ---------- */
.page-head { background: var(--paper); padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.page-head h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 0.35em; }
.page-head .lead { max-width: 38rem; margin: 0; color: var(--slate); }
.page-head .btn-row { margin-top: 1.75rem; }

.tile-map { display: grid; grid-template-columns: repeat(3, 1.9rem); gap: 0.3rem; flex: none; }
.tile-map a, .tile-map span { width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--line-strong); border-radius: 6px; display: block; background: var(--white); }
.tile-map span { border-color: transparent; background: none; }
.tile-map a:hover { border-color: var(--black); }
.tile-map a[aria-current="page"] { background: var(--magenta); border-color: var(--magenta); }
@media (max-width: 40rem) { .tile-map { display: none; } }

/* Prose */
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose p, .prose li { max-width: 42rem; }
.prose > :first-child { margin-top: 0; }

/* Product blocks (development) */
.product { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product h2 { font-size: var(--step-3); margin-bottom: 0.3rem; }
.product .sub { color: var(--magenta); font-weight: 500; }
@media (max-width: 54rem) { .product { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.contact-card { border-radius: var(--radius); padding: 1.75rem; background: var(--paper); }
.contact-card:first-child { background: var(--magenta); color: var(--white); }
.contact-card:first-child a, .contact-card:first-child p { color: var(--white); }
.contact-card h2 { font-size: var(--step--1); font-weight: 500; color: var(--slate); letter-spacing: 0; margin-bottom: 0.75rem; }
.contact-card:first-child h2 { color: rgba(255,255,255,0.8); }
.contact-card .big { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-decoration: none; display: inline-block; word-break: break-word; color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-card .big:hover { text-decoration: underline; }
.contact-card p { margin: 0.75rem 0 0; color: var(--slate); }
.contact-card address { font-style: normal; font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 54rem) { .contact-grid { grid-template-columns: 1fr; } }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 600; }

/* More services row */
.more-services .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-services .tile { min-height: 12rem; gap: 1rem; }
.more-services .tile h3 { font-size: var(--step-2); }
@media (max-width: 60rem) { .more-services .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .more-services .tiles { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.site-footer .wrap { padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-size: 0.95rem; color: var(--white); margin-bottom: 1rem; letter-spacing: -0.01em; }
.site-footer a { color: rgba(255,255,255,0.88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1.25rem; }
.site-footer .brand-name small { color: rgba(255,255,255,0.6); }
.footer-phone { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--white) !important; }
.footer-legal { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: rgba(255,255,255,0.55); }
.footer-legal p { margin: 0; }
@media (max-width: 58rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
  max-width: 30rem; margin-left: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.35);
  padding: 1rem 1rem 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; font-size: var(--step--1); line-height: 1.5;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice button { flex: none; background: var(--black); color: var(--white); border: 0; border-radius: 999px; font: 500 var(--step--1) var(--font); padding: 0.6rem 1.1rem; cursor: pointer; }
.cookie-notice button:hover { background: var(--magenta); }

/* ---------- 404 ---------- */
.not-found { padding-block: calc(var(--section) * 1.4); }
.not-found h1 { font-size: var(--step-4); letter-spacing: -0.04em; }

/* Integration cards (development) */
.integration .integration-logo {
  height: 4.5rem; display: flex; align-items: center; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.integration .integration-logo img { max-height: 3rem; width: auto; }
.integration .integration-logo span { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.integration h3 { font-size: var(--step-2); }
.integration .checklist { margin: 1.25rem 0 0; }
.integration .checklist li { color: var(--ink); }

/* Data flow diagram (Xero data warehousing) */
.flow { display: grid; gap: 0; max-width: 24rem; margin-top: 0.5rem; }
.flow-node {
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; color: var(--white); font-weight: 600; letter-spacing: -0.01em;
  background: rgba(255,255,255,0.05);
}
.flow-node small { display: block; font-weight: 400; color: rgba(255,255,255,0.6); font-size: var(--step--1); }
.flow-node--hot { background: var(--magenta); border-color: var(--magenta); }
.flow-node--hot small { color: rgba(255,255,255,0.85); }
.flow-arrow {
  position: relative; padding: 0.9rem 0 0.9rem 2.6rem; font-size: var(--step--1); color: rgba(255,255,255,0.6);
}
.flow-arrow::before { content: ""; position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.3); }
.flow-arrow::after {
  content: ""; position: absolute; left: calc(1.25rem - 4px); bottom: 2px; width: 8px; height: 8px;
  border-right: 2px solid rgba(255,255,255,0.5); border-bottom: 2px solid rgba(255,255,255,0.5); transform: rotate(45deg);
}
.prose--dark p { color: rgba(255,255,255,0.78); }
.prose--dark .lead { color: var(--white); }
.prose--dark a { color: #ff7fb2; }
.section-dark .checklist li { border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.78); }
.section-dark .checklist strong { color: var(--white); }
.section-dark .checklist li::before { border-color: #ff5c9d; }

/* Support bar — remote support on every page */
.support-bar { background: var(--black); color: rgba(255,255,255,0.8); font-size: var(--step--1); }
.support-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.support-bar p { margin: 0; }
.support-bar a { color: var(--white); text-decoration: none; font-weight: 500; }
.support-bar a:hover { text-decoration: underline; }
.support-bar-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none;
  background: var(--magenta); color: var(--white) !important; border-radius: 999px;
  padding: 0.35rem 0.9rem; font-weight: 600 !important;
}
.support-bar-btn svg { width: 1.05em; height: 1.05em; }
.support-bar-btn:hover { background: var(--white); color: var(--black) !important; text-decoration: none !important; }
.support-bar-btn[aria-current="page"] { background: var(--white); color: var(--black) !important; }
@media (max-width: 46rem) { .support-bar-email { display: none; } }

.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.05rem; }
.rs-warning { margin-top: 0.75rem; }
.rs-warning h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.rs-warning p { margin: 0; }

/* Keep the support bar pinned with the header on larger screens */
@media (min-width: 46.01rem) {
  .support-bar { position: sticky; top: 0; z-index: 51; }
  .site-header { top: 2.75rem; }
  html { scroll-padding-top: 8.5rem; }
  .sticky { top: 9.5rem; }
}
.nav-rs { display: none; }
@media (max-width: 64rem) { .nav-rs { display: block; } }
@media (max-width: 30rem) { .support-bar-lead { display: none; } }
.table-note { margin-top: 1rem; font-size: var(--step--1); color: var(--slate); }

/* Contact form */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: var(--step--1); }
.field .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white); width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-soft); }
.form-small { margin: 0; font-size: var(--step--1); color: var(--slate); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-ok { background: #e8f5ec; color: #1d6b36; }
.form-status.is-error { background: var(--magenta-soft); color: var(--magenta-dark); }
.section-head p + p { margin-top: 1rem; }
