/*
-----------------------------------------------------------------------------------------
Copyright      : Copyright 2026 Ferntree Computer Services
Name           : site.css
Version        : 2.00.00
Purpose        : Screen style sheet for all Ferntree Computer Services web pages
Comments       : Plain CSS, no framework and no external fonts or requests.
                 Colours are set once as tokens in section 1; dark mode redefines them.
-----------------------------------------------------------------------------------------
Change Control : 2024 05 15 Created TAS
                 2026 09 26 Version 2: full redesign. Sticky header, mobile menu,
                            dark mode, page heroes, cards, call-to-action bands.
-----------------------------------------------------------------------------------------
Contents
  1  Tokens (colours, spacing)
  2  Base
  3  Header and navigation
  4  Page hero and breadcrumbs
  5  Content (prose)
  6  Components: buttons, cards, stats, callouts, steps
  7  Home page
  8  Terminology
  9  Forms
  10 Call-to-action band and footer
  11 Back-to-top button
  12 Small screens
-----------------------------------------------------------------------------------------
*/

/* ================================================================== 1 Tokens */
:root {
  --brand: #006342;          /* the fern green from the logo */
  --brand-strong: #004a31;
  --brand-soft: #e6f2ec;
  --brand-softer: #f3f8f5;
  --accent: #b86e00;         /* small highlights only */

  --text: #16211c;
  --text-muted: #4d5a54;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f7f6;
  --border: #dde4e0;
  --shadow: 0 1px 2px rgba(16, 33, 26, 0.06), 0 4px 16px rgba(16, 33, 26, 0.06);
  --shadow-hover: 0 2px 4px rgba(16, 33, 26, 0.08), 0 12px 28px rgba(16, 33, 26, 0.10);

  --link: #00664a;
  --link-hover: #004a31;
  --on-brand: #ffffff;
  --focus: #b86e00;

  --radius: 10px;
  --radius-lg: 16px;
  --header-height: 68px;
  --content-width: 1120px;
  --prose-width: 72ch;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fb884;
    --brand-strong: #6fd0a4;
    --brand-soft: #16302a;
    --brand-softer: #12211d;
    --accent: #f0a93a;

    --text: #e6ece9;
    --text-muted: #a7b4ae;
    --page-bg: #0e1513;
    --surface: #151e1b;
    --surface-alt: #121a17;
    --border: #28342f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.35);

    --link: #6fd0a4;
    --link-hover: #9be2c1;
    --on-brand: #06120d;
    --focus: #f0a93a;
  }
}

/* ================================================================== 2 Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets land below the sticky header */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 2.6rem 0 0.8rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--brand); }
strong { font-weight: 600; }

.container { width: min(100% - 32px, var(--content-width)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================================================================== 3 Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 34px; border-radius: 6px; object-fit: cover; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.02em; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }
.site-nav .nav-cta a { background: var(--brand); color: var(--on-brand); margin-left: 0.4rem; font-weight: 600; }
.site-nav .nav-cta a:hover,
.site-nav .nav-cta a[aria-current="page"] { background: var(--brand-strong); color: var(--on-brand); }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ================================================================== 4 Page hero and breadcrumbs */
.page-hero {
  background:
    radial-gradient(1200px 300px at 85% -50%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    var(--brand-softer);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0 2.4rem;
}
.page-hero h1 { margin-top: 0.8rem; max-width: 26ch; }
.page-hero .lead { max-width: 62ch; margin: 0; }

.lead { font-size: 1.2rem; color: var(--text-muted); line-height: 1.6; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 0.55rem; color: var(--border); color: color-mix(in srgb, var(--text-muted) 50%, transparent); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================================== 5 Content (prose) */
.page-body { padding: 2.2rem 0 3.5rem; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.page-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }

.prose { max-width: var(--prose-width); }
.prose.wide { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: 0.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose li > ul, .prose li > ol { margin: 0.4rem 0 0.2rem; }
.prose ul ul li::marker { color: var(--text-muted); }
.prose i, .prose em { font-style: normal; font-weight: 600; }
.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 500; margin-top: 1rem; }
.prose dd { margin: 0.3rem 0 0.6rem 0; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface-alt); padding: 0.1em 0.35em; border-radius: 4px; }

/* Tables scroll sideways on narrow screens instead of widening the page */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.95rem;
}
.prose caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; color: var(--text-muted); }
.prose th, .prose td { padding: 0.5rem 0.9rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-alt); font-weight: 500; }

.meta-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Sidebar */
.aside-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.aside-card h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.aside-card p { font-size: 0.95rem; color: var(--text-muted); }
.aside-card ul { list-style: none; padding: 0; font-size: 0.95rem; }
.aside-card li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card .button { width: 100%; justify-content: center; margin-top: 0.4rem; }

/* ================================================================== 6 Components */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.button:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.button svg { width: 18px; height: 18px; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card h3 { margin: 0.9rem 0 0.4rem; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " →"; }
/* The whole card is clickable through its main link */
.card .card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.card-link):hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card-icon svg { width: 26px; height: 26px; }

.card .card-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.card .card-facts li {
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Tiers (Access Level 1, 2, 3) */
.tier {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem 0.6rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
}
.tier h3 { margin: 0 0 0.2rem; }
.tier .tier-sub { color: var(--text-muted); margin-bottom: 1rem; }

/* Case study */
.case {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 1.5rem 0 2rem;
}
.case > h3:first-child { margin-top: 0; }
.case-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.case-grid h4 { margin-top: 0.5rem; color: var(--brand-strong); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.case-grid ul { font-size: 0.97rem; }

.callout {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; margin: 0; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.steps h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Check list */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ================================================================== 7 Home page */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(600px 300px at -10% 110%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
    var(--brand-softer);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.6rem); max-width: 16ch; }
.hero .lead { max-width: 54ch; }

.stat-panel {
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}
.stat-panel h2 { font-size: 0.85rem; margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.stats li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.stats li:last-child { padding-bottom: 0; border-bottom: 0; }
.stats .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; line-height: 1; min-width: 4.5ch; }
.stats .label { color: var(--text-muted); font-size: 0.97rem; line-height: 1.4; }

.problem-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.problem {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.problem h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.problem p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split h2 { margin-top: 0; }
.split .case { margin: 0; }

.values { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.values div { padding-top: 1rem; border-top: 3px solid var(--brand); }
.values h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.values p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* ================================================================== 8 Terminology */
.az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0.8rem;
  margin: 0 0 2rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.az li { margin: 0; }
.az a, .az span {
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.az a { background: var(--surface); border: 1px solid var(--border); }
.az a:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.az span { color: var(--text-muted); opacity: 0.45; }

.glossary-letter { margin-top: 2.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--brand-soft); color: var(--brand); }
.prose .glossary dt { font-size: 1.1rem; margin-top: 1.6rem; }
.prose .glossary dt + dt { margin-top: 0; font-weight: 400; color: var(--text-muted); font-size: 0.95rem; }
.prose .glossary dd { margin-left: 0; }

/* ================================================================== 9 Forms */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 45%, transparent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 0; border-color: var(--brand); }
.form .button { justify-self: start; }
/* Spam trap field: off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.contact-methods { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.9rem; }
.contact-methods li { display: flex; gap: 0.9rem; align-items: center; margin: 0; }
.contact-methods .card-icon { width: 42px; height: 42px; flex-shrink: 0; }
.contact-methods .card-icon svg { width: 22px; height: 22px; }
.contact-methods small { display: block; color: var(--text-muted); font-size: 0.85rem; }
.contact-methods a, .contact-methods span.value { font-weight: 600; font-size: 1.05rem; }

/* ================================================================== 10 CTA band and footer */
.cta-band { padding: 3.5rem 0; background: var(--brand); color: var(--on-brand); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: var(--on-brand); margin: 0 0 0.4rem; }
.cta-band p { margin: 0; max-width: 60ch; opacity: 0.92; }
.cta-band .button { background: var(--on-brand); color: var(--brand-strong); }
.cta-band .button:hover { background: color-mix(in srgb, var(--on-brand) 88%, var(--brand)); color: var(--brand-strong); }
@media (prefers-color-scheme: dark) {
  .cta-band { background: var(--brand-soft); color: var(--text); border-block: 1px solid var(--border); }
  .cta-band h2 { color: var(--text); }
  .cta-band .button { background: var(--brand); color: var(--on-brand); }
  .cta-band .button:hover { background: var(--brand-strong); color: var(--on-brand); }
}

.site-footer { padding: 3.5rem 0 2rem; background: var(--surface-alt); border-top: 1px solid var(--border); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.footer-about p { color: var(--text-muted); max-width: 36ch; margin-top: 0.9rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-muted); }

/* ================================================================== 11 Back-to-top button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-strong); color: var(--on-brand); }
.to-top svg { width: 22px; height: 22px; }

/* ================================================================== 12 Small screens */
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--page-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; padding: 0.75rem 16px 1rem; }
  .site-nav a { padding: 0.75rem 0.9rem; font-size: 1.02rem; }
  .site-nav .nav-cta a { margin: 0.4rem 0 0; text-align: center; }
  /* Without JavaScript the menu button does nothing, so show the links instead */
  .no-js .menu-toggle { display: none; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; }
  .no-js .header-inner { flex-wrap: wrap; }

  .hero-grid, .split, .page-layout.has-aside { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 0 2.8rem; }
  .section { padding: 3.2rem 0; }
  .brand-name span { display: none; }
  .button-row .button { flex: 1 1 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .case, .tier { padding-inline: 1.1rem; }
  .to-top { right: 14px; bottom: 14px; }
}
