/* ==========================================================================
   AHA Call Solutions - Design system
   Plain CSS, no build step. Loaded by every page. Do not edit per page;
   page-specific rules go in a <style> block scoped under the page's body class.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Palette: navy ink for text and dark bands, royal blue as the primary
   action colour, plus three accents used for tints, icon tiles, eyebrows
   and decoration: warm (orange), teal and amber. The accents cycle
   1 blue, 2 teal, 3 warm, 4 amber across icon tiles (see section 11).

   Contrast (WCAG 2.x, measured):
     ink #0f1f33 on white #ffffff          16.6 : 1   (AA + AAA)
     ink #0f1f33 on bg #f6f8fb             15.6 : 1
     muted #55657a on white                 5.95 : 1  (AA)
     muted #55657a on bg #f6f8fb            5.59 : 1  (AA)
     muted #55657a on hero peach #ffe9dd    5.09 : 1  (AA)
     muted #55657a on hero blue #e6eefc     5.10 : 1  (AA)
     accent #1d4ed8 on white                6.70 : 1  (AA, also fine at small sizes)
     accent #1d4ed8 on accent-tint #e8f0fd  5.84 : 1  (AA)
     accent #1d4ed8 on bg #f6f8fb           6.30 : 1  (AA)
     white on accent #1d4ed8 (buttons)      6.70 : 1  (AA)
     accent-hover #1e40af on white          8.72 : 1
     warm #c2410c on white                  5.18 : 1  (AA, icons and text)
     white on warm #c2410c (badge)          5.18 : 1  (AA)
     warm-text #9a3412 on warm-tint #ffe8dc 6.20 : 1  (AA, eyebrow text)
     warm-text #9a3412 on white             7.31 : 1
     warm #c2410c on warm-tint (icons)      4.40 : 1  (non-text, needs 3:1)
     teal-text #0f766e on white             5.47 : 1  (AA, icons and text)
     teal-text #0f766e on teal-tint #dcf5f0 4.79 : 1  (AA, eyebrow text)
     teal #0f9d8a: gradients and dark surfaces only (3.38 : 1 on white)
     amber #f5a524 with ink text on it      8.14 : 1  (AA)
     ink #0f1f33 on marker #fcd47a         11.7  : 1  (h1 highlight)
     amber-text #92400e on amber-tint #fff1d6 6.35 : 1 (AA, eyebrow text)
     amber-icon #b45309 on amber-tint       4.50 : 1  (icons, needs 3:1)
     amber-icon #b45309 on white            5.02 : 1
     success #15803d on white               5.02 : 1  (AA, icons/rows on white)
     success-text #136f35 on success-tint   5.56 : 1  (AA, text on the tint)
     success-text #136f35 on white          6.26 : 1  (AA)
     error #b91c1c on white                 6.47 : 1  (AA)
     band text #cfdbee on navy #0f1f33     11.9  : 1
     band text #cfdbee on royal #1e3a8a     7.41 : 1
     band text #cfdbee on band glow         6.02 : 1  (#2563eb at 30% over #1e3a8a)
     stat values #f5a524 -> #fdba74 on #1e3a8a  5.08 : 1 and 6.14 : 1 (large text)
     stat values on band glow               4.12 : 1  (large bold text, needs 3:1)
     white on #1e3a8a / #1e40af (CTA band) 10.4  : 1 and 8.72 : 1
     cta text #cfdbee on warm blob          6.79 : 1  (#c2410c at 35% over #1e3a8a)
     outline-light border on #1e3a8a        3.40 : 1  (white at 45%, UI border)
     white on step circles: #1d4ed8 6.70, #0b7a6a 5.24, #c2410c 5.18, #1e40af 8.72
     footer icons #5eead4 / #fdba74 / #fcd34d on #0b1726  12.2 / 10.7 / 12.5 : 1
     band stat borders #60a5fa / #2dd4bf / #fb923c on #1e3a8a  4.07 / 5.56 / 4.58 : 1
     control-border #7f8ea1 on white        3.34 : 1  (non-text, form fields)
     white focus ring on ink / footer      16.6 : 1  and 18.0 : 1
     white focus ring on ink-2 #1c3352     12.8 : 1
   -------------------------------------------------------------------------- */
:root {
  --ink: #0f1f33;
  --ink-2: #1c3352;        /* slightly lighter navy for dark surfaces */
  --royal: #1e3a8a;        /* bright end of the navy -> royal band gradients */
  --muted: #55657a;
  --line: #e3e9f0;
  --line-strong: #cfd8e3;
  --control-border: #7f8ea1; /* resting border of inputs/selects/textareas */
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-tint: #e8f0fd;
  --accent-tint-2: #d5e3fb;
  --on-ink: #cfdbee;       /* body text on dark ink backgrounds */

  /* Accent family (see contrast table above) */
  --warm: #c2410c;         /* orange: badges, icons, borders; white text on it */
  --warm-text: #9a3412;    /* orange copy on the warm tint */
  --warm-tint: #ffe8dc;
  --warm-tint-2: #fdcdb5;
  --teal: #0f9d8a;         /* gradients and dark surfaces only */
  --teal-deep: #0b7a6a;    /* white text on it */
  --teal-text: #0f766e;    /* teal icons and copy on white / teal tint */
  --teal-tint: #dcf5f0;
  --teal-tint-2: #b9ebe1;
  --amber: #f5a524;        /* dark text only on top of it */
  --amber-icon: #b45309;   /* amber icons on white / amber tint */
  --amber-text: #92400e;   /* amber copy on the amber tint */
  --amber-tint: #fff1d6;
  --amber-tint-2: #fde1a8;
  --marker: #fcd47a;       /* h1 highlight marker */

  /* Shared gradients */
  --grad-line: linear-gradient(90deg, var(--accent) 0%, var(--teal) 38%, var(--amber) 70%, var(--warm) 100%);
  --grad-brand: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  --grad-band: linear-gradient(120deg, var(--ink) 0%, #14295a 45%, var(--royal) 100%);
  --success: #15803d;
  --success-text: #136f35;   /* success copy on --success-tint */
  --success-tint: #e6f5ec;
  --error: #b91c1c;
  --error-tint: #fdecec;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 51, 0.06), 0 1px 3px rgba(15, 31, 51, 0.04);
  --shadow: 0 8px 24px -8px rgba(15, 31, 51, 0.14), 0 2px 6px rgba(15, 31, 51, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 31, 51, 0.22), 0 4px 12px rgba(15, 31, 51, 0.06);

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
  --section-y: clamp(64px, 9vw, 104px);

  /* Fluid type scale */
  --fs-xs: 0.875rem;                               /* 14px: help text, table text, small labels */
  --fs-micro: 0.8125rem;                           /* 13px: uppercase pills and badges only */
  --fs-sm: 0.9375rem;                              /* 15px */
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); /* 16 -> 17px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); /* 17 -> 19px */
  --fs-h4: 1.0625rem;
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem); /* 18 -> 21px */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);   /* 28 -> 40px */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.6vw, 4.125rem);  /* 36 -> 66px */
  --fs-stat: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);  /* 30 -> 40px */
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}
/* Balance line breaks so a heading never ends in a single orphaned word.
   No-op in browsers without text-wrap support; never adds lines. */
h1, h2 { text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.04; font-weight: 800; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.12; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 600; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }
/* Accent is under 3:1 on the dark bands and footer; use a white ring there. */
.cta-band :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

::selection { background: var(--accent-tint-2); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   .container  centered max-width column with gutters
   .section    vertical rhythm wrapper; .section--alt (white), .section--tight
   .section-head  centered heading block (eyebrow + h2 + p)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head.is-left { margin-inline: 0; text-align: left; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: var(--fs-lead); color: var(--muted); text-wrap: pretty; }
.section-head .eyebrow { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.text-center { text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); text-wrap: pretty; }
.small { font-size: var(--fs-sm); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }
.mt-6 { margin-top: 64px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

/* Eyebrow pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow.is-plain::before { display: none; }

/* Eyebrow colour varies by section so each block has its own identity.
   Hero: warm. Home sections: channels blue, services teal, why warm,
   industries amber, how-it-works teal. Inner-page heroes cycle the same way.
   All pairings are in the contrast table (tint + matching dark text). */
.eyebrow--teal, .services-teaser .eyebrow, .how-it-works .eyebrow,
.page-services .page-hero .eyebrow, .page-contact .page-hero .eyebrow,
.page-portal .section--alt .eyebrow, .commitments .eyebrow {
  background: var(--teal-tint); color: var(--teal-text);
}
.eyebrow--warm, .hero .eyebrow, .why-teaser .eyebrow,
.page-whyUs .page-hero .eyebrow, .page-portal .page-hero .eyebrow {
  background: var(--warm-tint); color: var(--warm-text);
}
.eyebrow--amber, .industries-teaser .eyebrow,
.page-industries .page-hero .eyebrow, .page-pricing .section--alt .eyebrow,
.page-contact .section--alt .eyebrow {
  background: var(--amber-tint); color: var(--amber-text);
}

/* Check list (icon list) */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.check-list li svg {
  width: 20px; height: 20px;
  color: var(--teal-text);
  margin-top: 3px;
}
/* Why Us commitments ticks: the page block sets these to blue at the same
   specificity, so this rule is written one class deeper to win. */
.page-whyUs .commit-panel .commit-list .tick { background: var(--teal-tint); color: var(--teal-text); }

/* --------------------------------------------------------------------------
   5. Skip link (.skip-link)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); outline-color: var(--accent); text-decoration: none; color: #fff; }

/* --------------------------------------------------------------------------
   6. Buttons
   .btn base; .btn-primary / .btn-secondary / .btn-ghost / .btn-light (on dark);
   .btn-lg; .btn-block
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal-deep) 100%); /* white on #1d4ed8 6.70, on #0b7a6a 5.24 */
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover) 0%, var(--teal-deep) 100%); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29, 78, 216, 0.34); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff;
  color: var(--warm-text);     /* #9a3412 on white 7.9 */
  border-color: var(--warm);   /* #c2410c border on white 4.9 */
  box-shadow: 0 1px 2px rgba(194, 65, 12, 0.10);
}
.btn-secondary:hover { border-color: var(--warm-text); color: var(--warm-text); background: var(--warm-tint); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(194, 65, 12, 0.18); }

.btn-ghost { background: transparent; color: var(--accent); padding-inline: 12px; }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-hover); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-tint); color: var(--ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Phones and small tablets: the primary/secondary CTA pair in a hero, page
   hero, CTA band or the 404 page stacks as equal full-width buttons instead of
   two ragged, unequal ones. The row itself is widened because .cta-inner is a
   flex column with align-items: flex-start at <=900px, which would otherwise
   shrink-wrap the row to its widest label. */
@media (max-width: 640px) {
  .hero .btn-row, .page-hero .btn-row, .cta-inner .btn-row, .not-found .btn-row { width: 100%; }
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-inner .btn-row .btn, .not-found .btn-row .btn { flex: 1 1 100%; width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Navigation (.site-nav)
   Markup: header.site-nav > .container.nav-inner > a.brand + button.nav-toggle
           + nav.nav-menu#nav-menu > ul.nav-links + a.btn.btn-primary.nav-cta
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
/* 3px gradient line across the top of the header */
.site-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-line);
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.28);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand span em { font-style: normal; color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.nav-links a:hover { background: var(--accent-tint); color: var(--accent-hover); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; position: relative; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) and (min-width: 901px) {
  .nav-links a { padding: 8px 9px; font-size: 0.875rem; }
  .nav-links a[aria-current="page"]::after { left: 9px; right: 9px; }
  .brand { font-size: 1rem; }
  .nav-cta { padding-inline: 16px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    /* Landscape phones: the menu is anchored to the sticky header, so it must
       fit the viewport and scroll on its own instead of hiding its last items. */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 1rem; }
  .nav-links a[aria-current="page"] { background: var(--accent-tint); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
}

/* --------------------------------------------------------------------------
   8. Hero (.hero)
   Markup: section.hero > .container.hero-grid > .hero-copy + aside.hero-card
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px);
  /* Pale blue at the top-left running to a warm peach in the bottom-right corner */
  background:
    radial-gradient(760px 520px at 100% 100%, #ffe9dd 0%, rgba(255, 233, 221, 0) 70%),
    radial-gradient(640px 420px at 0% 0%, #e6eefc 0%, rgba(230, 238, 252, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Decorative shapes: two soft blurred circles (::before) and a diagonal teal
   band (::after). Both sit behind the content and are clipped by the section. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(245, 165, 36, 0.28) 0%, rgba(245, 165, 36, 0) 42%),
    radial-gradient(circle at 12% 88%, rgba(29, 78, 216, 0.17) 0%, rgba(29, 78, 216, 0) 40%),
    radial-gradient(circle at 96% 78%, rgba(194, 65, 12, 0.13) 0%, rgba(194, 65, 12, 0) 34%);
}
.hero::after {
  left: -20%;
  right: -20%;
  bottom: -28%;
  height: 46%;
  background: linear-gradient(90deg, rgba(15, 157, 138, 0.14) 0%, rgba(15, 157, 138, 0.05) 55%, rgba(15, 157, 138, 0) 100%);
  transform: rotate(-7deg);
  transform-origin: center;
  filter: blur(22px);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 20px; max-width: 14ch; }
/* Marker highlight on one word of the h1 (span.hl, index.html only) */
.hero-copy h1 .hl {
  background-image: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-inline: 0.04em;
  margin-inline: -0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-copy .lead { max-width: 56ch; margin-bottom: 30px; }
.hero-copy .btn-row { margin-bottom: 20px; }
.proof-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-tint) 0%, var(--amber-tint) 100%);
  border: 1px solid var(--teal-tint-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-text); /* #0f766e on teal tint 4.79, on amber tint 5.0 */
}
.proof-line svg {
  flex: 0 0 auto;
  width: 24px; height: 24px; padding: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 30px);
}
/* Gradient top bar on the "What you get" card */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-line);
}
.hero-card-head .badge { background: var(--teal-tint); color: var(--teal-text); }
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.hero-card-head h2 { font-size: 1rem; margin: 0; letter-spacing: 0; }
.hero-card-head .badge { flex-shrink: 0; }
.hero-card-rows { list-style: none; margin: 0; padding: 0; }
.hero-card-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.hero-card-rows li:last-child { border-bottom: 0; padding-bottom: 4px; }
.hero-card-rows .row-label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.hero-card-rows .row-label svg {
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent);
}
/* Row icons cycle through the accent tints */
.hero-card-rows li:nth-child(4n+2) .row-label svg { background: var(--teal-tint); color: var(--teal-text); }
.hero-card-rows li:nth-child(4n+3) .row-label svg { background: var(--warm-tint); color: var(--warm); }
.hero-card-rows li:nth-child(4n+4) .row-label svg { background: var(--amber-tint); color: var(--amber-icon); }
.hero-card-rows .row-value { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.hero-card-rows .row-value.is-included { color: var(--success); }
.hero-card-foot { margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
}

/* --------------------------------------------------------------------------
   9. Page hero for inner pages (.page-hero)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px);
  /* Lighter version of the home hero: pale blue top-left, peach bottom-right */
  background:
    radial-gradient(640px 420px at 100% 100%, #ffe9dd 0%, rgba(255, 233, 221, 0) 70%),
    radial-gradient(560px 360px at 0% 0%, #e6eefc 0%, rgba(230, 238, 252, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
/* One soft shape, top-right, behind the content */
.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 20%, rgba(245, 165, 36, 0.24) 0%, rgba(245, 165, 36, 0) 38%),
    radial-gradient(circle at 8% 90%, rgba(15, 157, 138, 0.14) 0%, rgba(15, 157, 138, 0) 36%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.5rem); margin-bottom: 16px; max-width: 18ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero.is-centered { text-align: center; }
.page-hero.is-centered h1, .page-hero.is-centered .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   10. Stats band (.band)
   Markup: section.band > .container > ul.band-stats > li > .stat-value + .stat-label
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 360px at 82% 120%, rgba(37, 99, 235, 0.30) 0%, rgba(37, 99, 235, 0) 70%),
    var(--grad-band);
  color: #fff;
  padding-block: clamp(40px, 5vw, 56px);
}
.band > .container { position: relative; z-index: 1; }
.band-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.band-stats li {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid #60a5fa;
}
.band-stats li:nth-child(4n+2) { border-left-color: #2dd4bf; }
.band-stats li:nth-child(4n+3) { border-left-color: #fb923c; }
.band-stats li:nth-child(4n+4) { border-left-color: var(--amber); }
.stat-value {
  display: block;
  font-size: var(--fs-stat);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--amber);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
/* Warm gradient text; the solid amber above is the fallback */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .stat-value {
    background: linear-gradient(90deg, var(--amber) 0%, #fdba74 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    max-width: 100%;
  }
}
.stat-label { display: block; font-size: var(--fs-sm); color: var(--on-ink); line-height: 1.45; }

@media (max-width: 900px) { .band-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (max-width: 640px) { .band-stats { grid-template-columns: 1fr; gap: 22px; } }

/* --------------------------------------------------------------------------
   11. Grids and cards
   .grid-2 / .grid-3 / .grid-4 collapse to one column on mobile.
   .card (with .card-icon, h3, p); .card--link for whole-card anchors;
   .card--compact for the services teaser; .pill-list for industries.
   -------------------------------------------------------------------------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 14px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  /* Tile colours (icon tile background/foreground and the hover bar); the
     defaults are blue and the nth-child rules below cycle teal, warm, amber. */
  --tile-bg: var(--accent-tint);
  --tile-fg: var(--accent);
  --tile-line: var(--accent);
}
.card:nth-child(4n+2) { --tile-bg: var(--teal-tint); --tile-fg: var(--teal-text); --tile-line: var(--teal); }
.card:nth-child(4n+3) { --tile-bg: var(--warm-tint); --tile-fg: var(--warm); --tile-line: var(--warm); }
.card:nth-child(4n+4) { --tile-bg: var(--amber-tint); --tile-fg: var(--amber-icon); --tile-line: var(--amber); }
/* Coloured top border that appears on hover */
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--tile-line);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card .card-cta { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
.card .card-cta svg { width: 16px; height: 16px; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tile-bg, var(--accent-tint));
  color: var(--tile-fg, var(--accent));
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

a.card, .card--link { color: inherit; }
a.card:hover, .card--link:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Compact cards (services teaser) */
.card--compact {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  font-weight: 600;
  font-size: 0.875rem;
}
.card--compact > span:not(.card-icon) { flex: 1 1 auto; min-width: 0; }
.card--compact .card-icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.card--compact .card-icon svg { width: 18px; height: 18px; }
.card--compact .card-arrow { margin-left: auto; color: var(--muted); width: 18px; height: 18px; transition: transform 0.15s ease, color 0.15s ease; }
.card--compact:hover .card-arrow { transform: translateX(3px); color: var(--tile-fg); }

/* Pill list (industries teaser) */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pill-list li { margin: 0; }
.pill-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.pill-list a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-hover); background: var(--accent-tint); }
.pill-list a svg { width: 16px; height: 16px; color: var(--teal-text); }

/* Split section (text on one side, list/card on the other) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. Feature rows (.features) for Why Us
   Markup: ol.features > li.feature > .feature-icon + .feature-body(h3 + p)
   Two-column on desktop, one column on mobile.
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0;
  padding: clamp(22px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
}
/* Icon tiles cycle blue, teal, warm, amber like .card-icon */
.feature:nth-child(4n+2) .feature-icon { background: var(--teal-tint); color: var(--teal-text); }
.feature:nth-child(4n+3) .feature-icon { background: var(--warm-tint); color: var(--warm); }
.feature:nth-child(4n+4) .feature-icon { background: var(--amber-tint); color: var(--amber-icon); }
.feature { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-body h3 { margin-bottom: 6px; }
.feature-body p { color: var(--muted); font-size: var(--fs-sm); }
.features.is-alternating .feature:nth-child(even) { flex-direction: row-reverse; text-align: right; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .features.is-alternating .feature:nth-child(even) { flex-direction: row; text-align: left; }
}
@media (max-width: 640px) {
  .feature { flex-direction: column; gap: 14px; }
}

/* --------------------------------------------------------------------------
   13. Numbered steps (.steps)
   Markup: ol.steps > li.step > .step-num + h3 + p
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: clamp(22px, 3vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px -6px rgba(29, 78, 216, 0.55);
}
.step-num::before { content: counter(step); }
/* Gradient circles cycle blue, teal, warm, navy (all >= 5.1:1 with white) */
.step:nth-child(4n+2) .step-num { background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-text) 100%); box-shadow: 0 6px 14px -6px rgba(11, 122, 106, 0.55); }
.step:nth-child(4n+3) .step-num { background: linear-gradient(135deg, var(--warm) 0%, var(--warm-text) 100%); box-shadow: 0 6px 14px -6px rgba(194, 65, 12, 0.55); }
.step:nth-child(4n+4) .step-num { background: linear-gradient(135deg, var(--royal) 0%, var(--ink) 100%); box-shadow: 0 6px 14px -6px rgba(15, 31, 51, 0.55); }
.step { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.step:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--fs-sm); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* --------------------------------------------------------------------------
   14. Pricing tiers (.tiers)
   Markup: ul.tiers > li.tier(.is-featured) > .tier-badge? + h3.tier-name
           + .tier-agents + p.tier-best + ul.check-list.tier-includes + a.btn
   Desktop: 3 columns (5 tiers -> 3 + 2, last row centred). Tablet 2. Mobile 1.
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tier:nth-child(4) { grid-column: 2 / span 2; }
.tier:nth-child(5) { grid-column: 4 / span 2; }
.tier.is-featured {
  /* Gradient border: white padding-box over a blue -> teal border-box */
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: var(--shadow-lg);
}
.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--warm);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(194, 65, 12, 0.6);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.tier-name { font-size: 1.375rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.tier-agents { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); margin-bottom: 14px; }
.tier-best { color: var(--muted); font-size: var(--fs-sm); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tier-includes { margin-bottom: 24px; font-size: var(--fs-sm); }
.tier .btn { margin-top: auto; }

@media (max-width: 900px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier, .tier:nth-child(4), .tier:nth-child(5) { grid-column: auto; }
  .tier:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; gap: 18px; }
  .tier:nth-child(5) { grid-column: auto; }
}

.pricing-note {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--amber-tint);
  color: var(--ink);
  font-size: var(--fs-sm);
  border-left: 4px solid var(--amber);
}
.page-pricing .pricing-note svg { color: var(--amber-icon); }

/* --------------------------------------------------------------------------
   15. FAQ (.faq) using native details/summary
   Markup: div.faq > details.faq-item > summary(span + svg.chevron) + .faq-body
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary { transition: background-color 0.15s ease; }
.faq-item summary:hover { background: var(--accent-tint); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  width: 20px; height: 20px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.faq-body { padding: 16px 22px 22px; color: var(--muted); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   16. Contact layout and forms
   .contact-grid: form column + info column (.info-card)
   .form-grid: two-up fields; .field: label + control + .help
   .form-status.is-success / .is-error; .honeypot hidden field
   .calendar-embed with .calendar-fallback
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card, .info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}
.info-card { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 900px) { .info-card { position: static; } }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
}
.info-list .info-icon svg { width: 20px; height: 20px; }
.info-list li:nth-child(4n+2) .info-icon { background: var(--teal-tint); color: var(--teal-text); }
.info-list li:nth-child(4n+3) .info-icon { background: var(--warm-tint); color: var(--warm); }
.info-list li:nth-child(4n+4) .info-icon { background: var(--amber-tint); color: var(--amber-icon); }
.form-card, .info-card { position: relative; overflow: hidden; }
.form-card::before, .info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-line);
}
.info-list .info-label { display: block; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.info-list .info-value { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .field--full,
.form-grid .form-status { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field label .req { color: var(--error); margin-left: 2px; }
.field .help { font-size: var(--fs-xs); color: var(--muted); }

.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--control-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355657a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select:invalid, .field select.is-placeholder { color: var(--muted); }

.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-actions .response-promise { font-size: var(--fs-sm); color: var(--muted); flex: 1 1 240px; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid transparent;
}
.form-status.is-success { display: block; background: var(--success-tint); color: var(--success-text); border-color: rgba(21, 128, 61, 0.25); }
.form-status.is-error { display: block; background: var(--error-tint); color: var(--error); border-color: rgba(185, 28, 28, 0.25); }
.form-status.is-info { display: block; background: var(--accent-tint); color: var(--accent-hover); border-color: var(--accent-tint-2); }

.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }

/* Calendar embed */
.calendar-embed {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-embed .calendly-inline-widget { width: 100%; min-height: 660px; }
.calendar-embed.has-widget { min-height: 660px; display: block; }
.calendar-fallback {
  text-align: center;
  padding: clamp(28px, 5vw, 48px);
  max-width: 480px;
}
.calendar-fallback .card-icon { margin-inline: auto; }
.calendar-fallback p { color: var(--muted); font-size: var(--fs-sm); }
.calendar-embed.has-widget .calendar-fallback { display: none; }

/* --------------------------------------------------------------------------
   17. Badges
   .badge (neutral), .badge--accent, .badge--warn ("Coming soon"), .badge--muted ("Sample data")
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.4;
  background: var(--accent-tint);
  color: var(--accent);
  white-space: nowrap;
}
.badge--muted { background: #eef1f5; color: var(--muted); }
.badge--warn { background: #fff4e0; color: #8a4b00; }
.badge--success { background: var(--success-tint); color: var(--success-text); }
.badge--ink { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   18. Portal dashboard mockup (.dash)
   Markup:
   div.dash[aria-label] > aside.dash-sidebar(ul.dash-nav) + div.dash-main >
     .dash-topbar + .dash-kpis(.kpi) + .dash-panels(.dash-panel with .dash-table
     or .dash-bars)
   -------------------------------------------------------------------------- */
.dash {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: var(--fs-sm);
}
.dash-sidebar {
  background: var(--ink);
  color: var(--on-ink);
  padding: 20px 14px;
}
.dash-sidebar .dash-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 6px 8px 18px; font-size: var(--fs-sm); }
.dash-sidebar .dash-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.dash-sidebar .dash-brand .brand-mark svg { width: 15px; height: 15px; }
.dash-nav { list-style: none; margin: 0; padding: 0; }
.dash-nav li { margin: 0 0 2px; }
.dash-nav li span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--on-ink);
  font-weight: 500;
}
.dash-nav li span svg { width: 17px; height: 17px; }
.dash-nav li.is-active span { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }

.dash-main { padding: 18px 22px 22px; min-width: 0; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.dash-topbar .dash-title { font-weight: 700; color: var(--ink); font-size: 1rem; }
.dash-topbar .dash-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.kpi-label { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.kpi-value { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.kpi-delta { display: block; font-size: var(--fs-xs); margin-top: 4px; color: var(--muted); }
.kpi-delta.is-up { color: var(--success); }

.dash-panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.dash-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  min-width: 0;
}
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 700; color: var(--ink); }

.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.dash-table th, .dash-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash-table th { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.75rem; }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table th.num { text-align: right; }

/* CSS bar chart: each .bar has --v (0..100) and a label */
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding-top: 6px;
  border-bottom: 1px solid var(--line);
}
.dash-bars .bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
}
.dash-bars .bar i {
  display: block;
  width: 100%;
  max-width: 40px;
  height: calc(var(--v, 50) * 1%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--accent) 100%);
  opacity: 0.9;
}
.dash-bars .bar.is-muted i { background: var(--accent-tint-2); }
.dash-bars-labels { display: flex; gap: 10px; margin-top: 8px; }
.dash-bars-labels span { flex: 1 1 0; text-align: center; font-size: 0.75rem; color: var(--muted); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-sidebar { padding: 12px 14px; }
  .dash-sidebar .dash-brand { padding-bottom: 10px; }
  .dash-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .dash-nav li span { padding: 7px 10px; }
  .dash-nav li span svg { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-panels { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-main { padding: 14px; }
  .dash-topbar { flex-direction: column; align-items: flex-start; }
  .dash-topbar .dash-meta { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   19. CTA band (.cta-band)
   Markup: section.cta-band > .container.cta-inner > div(h2 + p) + .btn-row
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 96px);
  background:
    radial-gradient(700px 360px at 10% 0%, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%),
    linear-gradient(135deg, var(--ink) 0%, #14295a 55%, var(--royal) 100%);
  color: #fff;
}
/* Decorative shapes: a warm glow bottom-right and a thin teal ring, behind the content */
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.cta-band::before {
  width: 640px; height: 640px;
  right: -200px; bottom: -420px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.5) 0%, rgba(245, 165, 36, 0.18) 45%, rgba(245, 165, 36, 0) 70%);
}
.cta-band::after {
  width: 320px; height: 320px;
  left: -90px; bottom: -150px;
  border: 28px solid rgba(15, 157, 138, 0.22);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 { color: #fff; margin-bottom: 10px; max-width: 22ch; }
.cta-inner p { color: var(--on-ink); font-size: var(--fs-lead); max-width: 52ch; }
.cta-inner .btn-row { flex-shrink: 0; }

@media (max-width: 900px) {
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   20. Footer (.site-footer)
   Markup: footer.site-footer > .container > .footer-grid(3 cols) + .footer-bottom
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: #0b1726;
  color: var(--on-ink);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: var(--fs-sm);
}
/* Thin gradient top border */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid h2 {
  color: #fff;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand:hover { color: #fff; }
.footer-blurb { max-width: 46ch; line-height: 1.65; }
.footer-links { list-style: none; margin: -8px 0 0; padding: 0; } /* -8px absorbs the first link's padding */
.footer-links li { margin: 0; }
/* Padding on the anchor, not margin on the li: each link is a ~40px tall tap
   target with no dead space between rows. */
.footer-links a { display: inline-block; padding: 8px 0; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact li > span { display: inline-block; padding: 8px 0; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 0; color: #5eead4; }
.footer-contact li:nth-child(2) svg { color: #fdba74; }
.footer-contact li:nth-child(3) svg { color: #fcd34d; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 22px;
  font-size: var(--fs-sm);
  color: #8496ad;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   21. Misc: 404 page, notice box, tables that may overflow
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff8ea;
  border: 1px solid #f3dfb5;
  color: #5b3a00;
  font-size: var(--fs-sm);
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #b06a00; }
.notice p { color: inherit; }

.not-found { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.not-found .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent-tint-2); margin-bottom: 8px; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .not-found .code {
    background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 50%, var(--warm) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    width: fit-content;
    margin-inline: auto;
  }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   22. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn-primary:hover, a.card:hover, .card--link:hover, .card:hover, .feature:hover, .step:hover { transform: none; }
}
