/* ============================================================
   TheTechGear BizSuite — public website
   1. Fonts & tokens
   2. Base & typography
   3. Buttons, pills & icons
   4. Header, mega menu & mobile navigation
   5. Forms
   6. Footer & utilities
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --section: 96px;

  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --accent: #f472b6;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #e11d48;

  --bg: #fafafd;
  --bg-2: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef0f8;
  --text: #11142a;
  --text-2: #3f4664;
  --muted: #6b7191;
  --border: rgba(17, 20, 42, 0.09);
  --border-strong: rgba(17, 20, 42, 0.16);
  --header-bg: rgba(250, 250, 253, 0.82);
  --field-bg: #ffffff;
  --hover: rgba(17, 20, 42, 0.04);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--brand) 18%, transparent);
  --brand-ink: color-mix(in srgb, var(--brand) 72%, #10132a);
  --tone-ink: color-mix(in srgb, var(--brand) 78%, #10132a);
  --grad: linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 55%, var(--accent) 105%);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), color-mix(in srgb, var(--brand-2) 10%, transparent));
  --shadow-sm: 0 1px 2px rgba(16, 19, 42, 0.04), 0 4px 14px -8px rgba(16, 19, 42, 0.12);
  --shadow: 0 18px 44px -24px rgba(16, 19, 42, 0.28);
  --shadow-lg: 0 40px 80px -40px rgba(16, 19, 42, 0.4);
  --shadow-brand: 0 18px 40px -18px color-mix(in srgb, var(--brand) 45%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent);
  --footer-bg: #0b0d19;
  --footer-text: #c9cde2;
  --footer-muted: #8e94b4;
}

html[data-theme="ember"] { --brand: #ff6a3d; --brand-2: #ffc247; --accent: #fb7185; }
html[data-theme="forest"] { --brand: #12b981; --brand-2: #a3e635; --accent: #2dd4bf; }
html[data-theme="ocean"] { --brand: #3b82f6; --brand-2: #22d3ee; --accent: #818cf8; }
html[data-theme="orchid"] { --brand: #d946ef; --brand-2: #fb923c; --accent: #f43f5e; }

html[data-mode="dark"] {
  --bg: #080a14;
  --bg-2: #0d0f1d;
  --surface: #121527;
  --surface-2: #171b31;
  --surface-3: #1e2340;
  --text: #f1f2ff;
  --text-2: #c4c9e4;
  --muted: #969cbd;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --header-bg: rgba(8, 10, 20, 0.8);
  --field-bg: rgba(8, 10, 20, 0.55);
  --hover: rgba(255, 255, 255, 0.055);
  --brand-ink: color-mix(in srgb, var(--brand) 72%, #ffffff);
  --tone-ink: color-mix(in srgb, var(--brand) 55%, #ffffff);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px -8px rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 50px 90px -40px rgba(0, 0, 0, 0.85);
  --footer-bg: #06070f;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 4.3vw, 3.55rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); }
h3 { font-size: 1.18rem; }
p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 700; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main { display: block; }
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-dark {
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 60%),
    #0a0c1a;
  color: #f4f5ff;
}
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark p { color: #b9bfdc; }
.section-dark .eyebrow { color: color-mix(in srgb, var(--brand-2) 70%, #ffffff); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 14px;
}
.grad-text {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--text-2); max-width: 660px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 40px;
}
.section-split .section-head { margin-bottom: 0; }
.section-split > .btn, .section-split > .text-link { flex: none; margin-bottom: 6px; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 0.92rem; color: var(--brand-ink);
  transition: gap .18s ease, color .18s ease;
}
.text-link:hover { gap: 11px; color: var(--brand); }
.card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto;
  font-size: 0.88rem; font-weight: 750; color: var(--brand-ink);
  transition: gap .18s ease;
}
.card-link:hover { gap: 11px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 19px; min-height: 44px;
  font-size: 0.92rem; font-weight: 750; line-height: 1.2;
  white-space: nowrap; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 72%, var(--brand-2)) 100%);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary:hover { box-shadow: var(--shadow-brand); }
.btn-outline { border-color: var(--border-strong); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border-strong)); background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.btn-soft:hover { background: var(--brand-soft-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-light { background: #fff; color: #14172b; box-shadow: var(--shadow-sm); }
.btn-light:hover { background: #f2f3fb; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.24); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 0.98rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text-2);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn .icon { width: 19px; height: 19px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; line-height: 1.2;
  border: 1px solid transparent;
}
.pill .icon { width: 13px; height: 13px; }
.pill-brand {
  background: var(--brand-soft); color: var(--brand-ink);
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
.pill-soft { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.pill-success { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 24%, transparent); }
.pill-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 24%, transparent); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

/* ---------- Icons & tiles ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 17px; height: 17px; }
.icon-tile {
  --tone: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 12%, var(--surface));
  color: color-mix(in srgb, var(--tone) 82%, #10132a);
  border: 1px solid color-mix(in srgb, var(--tone) 20%, transparent);
}
html[data-mode="dark"] .icon-tile { color: color-mix(in srgb, var(--tone) 60%, #ffffff); background: color-mix(in srgb, var(--tone) 16%, var(--surface)); }
.icon-tile .icon { width: 23px; height: 23px; }
[data-tone="billing"] { --tone: var(--brand); }
[data-tone="crm"] { --tone: #0ea5e9; }
[data-tone="vendors"] { --tone: #f59e0b; }
[data-tone="inventory"] { --tone: #10b981; }
[data-tone="tax"] { --tone: #8b5cf6; }  [data-tone="business"] { --tone: #ec4899; }
  [data-tone="devops"] { --tone: #06b6d4; }
[data-tone="security"] { --tone: #14b8a6; }
[data-tone="work"] { --tone: var(--brand-2); }

/* ---------- Lists ---------- */
.ticks { display: grid; gap: 10px; }
.ticks li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.9rem; color: var(--text-2); line-height: 1.45;
}
.ticks li .icon { margin-top: 2px; color: var(--brand); }
.ticks li.is-muted { color: var(--muted); opacity: 0.75; }
.ticks li.is-muted .icon { color: var(--muted); }
.ticks-lg li { font-size: 0.98rem; gap: 11px; }
.ticks-lg li .icon { width: 20px; height: 20px; margin-top: 1px; }

/* ---------- Announcement ---------- */
.announce {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 14%, var(--bg)), color-mix(in srgb, var(--brand-2) 10%, var(--bg)));
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-block: 9px; color: var(--text-2); flex-wrap: wrap;
}
.announce strong { color: var(--text); }
.announce a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-ink); font-weight: 750; }
.announce a:hover { text-decoration: underline; }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.5); }
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 72px; position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.brand-text small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.02em; }
.brand-text em { font-style: normal; color: var(--brand-ink); font-weight: 800; }

.desktop-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 9px;
  font-size: 0.87rem; font-weight: 650; color: var(--text-2);
  border: 0; background: transparent; white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--hover); }
.nav-trigger[aria-expanded="true"] { color: var(--text); background: var(--hover); }
.nav-trigger .icon { transition: transform .18s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-item { position: static; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.theme-control { display: flex; align-items: center; gap: 4px; }
html[data-mode="light"] .mode-moon { display: none; }
html[data-mode="dark"] .mode-sun { display: none; }
.palette-wrap { position: relative; }
.palette-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 100;
  width: 214px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.palette-menu[hidden] { display: none; }
.palette-label { display: block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 9px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  border: 2px solid transparent; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, transform .15s ease;
}
.swatch span { width: 17px; height: 17px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch-aurora span { background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.swatch-ember span { background: linear-gradient(135deg, #ff6a3d, #ffc247); }
.swatch-forest span { background: linear-gradient(135deg, #12b981, #a3e635); }
.swatch-ocean span { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.swatch-orchid span { background: linear-gradient(135deg, #d946ef, #fb923c); }
.palette-hint { display: block; margin-top: 10px; font-size: 0.68rem; color: var(--muted); }
.menu-toggle { display: none; }
.menu-toggle .menu-close { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 50%; top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-6px);
  width: min(1120px, calc(100vw - 40px));
  padding: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.mega-head h2 { font-size: 1.15rem; margin-top: -4px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; gap: 22px; padding: 22px 0 18px; }
.mega-col h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 9px; }
.mega-col a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 0; font-size: 0.84rem; font-weight: 600; color: var(--text-2);
}
.mega-col a .icon { opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; color: var(--brand); }
.mega-col a:hover { color: var(--brand-ink); }
.mega-col a:hover .icon { opacity: 1; transform: none; }
.mega-promo {
  padding: 18px; border-radius: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), color-mix(in srgb, var(--brand-2) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
}
.mega-promo h3 { font-size: 0.98rem; margin: 12px 0 7px; }
.mega-promo p { font-size: 0.8rem; line-height: 1.5; margin-bottom: 12px; }
.mega-promo .text-link { font-size: 0.8rem; }
.mega-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 15px; border-top: 1px solid var(--border); }
.mega-foot a { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.mega-foot a:hover { color: var(--brand-ink); }

/* Mobile navigation */
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 95;
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px 28px;
  overflow-y: auto;
  animation: mobileIn .2s ease;
}
.mobile-nav[hidden] { display: none; }
@keyframes mobileIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav .mobile-link { min-height: 48px; }
.mobile-nav .mobile-actions { padding-top: 8px; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 8px; font-size: 1.05rem; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.mobile-link.is-active { color: var(--brand-ink); }
.mobile-services summary { cursor: pointer; list-style: none; }
.mobile-services summary::-webkit-details-marker { display: none; }
.mobile-services[open] summary .icon { transform: rotate(180deg); }
.mobile-services summary .icon { transition: transform .2s ease; }
.mobile-service-groups { padding: 12px 8px 4px; display: grid; gap: 16px; }
.mobile-service-groups h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.mobile-service-groups a { display: block; padding: 5px 0; font-size: 0.9rem; color: var(--text-2); }
.mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
.mobile-theme { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.mobile-theme > span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; }
.mobile-theme-row { display: flex; gap: 8px; margin: 10px 0 12px; }
.mode-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.82rem; font-weight: 650;
}
.mode-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.mode-btn .icon { width: 16px; height: 16px; }

/* Flash messages */
.flash-stack { padding-top: 18px; display: grid; gap: 8px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ok) 25%, var(--border));
  background: color-mix(in srgb, var(--ok) 9%, var(--surface));
  font-size: 0.9rem; color: var(--text);
}
.flash .icon { color: var(--ok); margin-top: 1px; }
.flash-error { border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.flash-error .icon { color: var(--danger); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--border-strong); }
.breadcrumbs a:hover { color: var(--brand-ink); }
.breadcrumbs [aria-current] { color: var(--text-2); font-weight: 650; }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.span-2 { grid-column: span 2; }
.form-field label { font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.form-field .req { color: var(--danger); }
.form-field .muted { font-weight: 500; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--field-bg); color: var(--text);
  font-size: 0.9rem; line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-field textarea { resize: vertical; min-height: 124px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.form-field .is-invalid { border-color: var(--danger); }
.field-error { font-size: 0.78rem; font-weight: 650; color: var(--danger); }
.form-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 11px;
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  color: var(--text); font-size: 0.86rem;
}
.form-alert .icon { color: var(--danger); flex: none; margin-top: 1px; }
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: var(--text-2); line-height: 1.5;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface-2);
}
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.consent.is-invalid { border-color: var(--danger); }
.consent a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-hint { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); text-align: center; justify-content: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.prefooter {
  background:
    radial-gradient(900px 400px at 15% 20%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
    linear-gradient(120deg, #11142b, #0b0d19 60%, #13102a);
  color: #fff; padding: 64px 0;
}
.prefooter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.prefooter h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 10px; }
.prefooter p { color: #b9bfdc; max-width: 560px; }
.prefooter .eyebrow { color: #a5f3fc; }
.prefooter-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 0.8fr) 1fr; gap: 36px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: var(--footer-muted); }
.footer-brand p { color: var(--footer-muted); font-size: 0.86rem; margin: 14px 0 16px; max-width: 300px; }
.footer-address { display: grid; gap: 4px; margin: 0 0 10px; color: var(--footer-muted); font-size: 0.78rem; line-height: 1.5; font-style: normal; }
.footer-address span { display: inline-flex; align-items: center; gap: 6px; color: #d7dbef; font-weight: 700; }
.footer-address .icon { flex: none; }
.footer-mail { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: #d7dbef; }
.footer-mail:hover { color: #fff; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.footer-badges .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #c6cbe4; }
.footer-col h3, .footer-help h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8f95b5; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; font-size: 0.86rem; color: #c3c8e0; }
.footer-col a:hover { color: #fff; }
.footer-help p { font-size: 0.83rem; color: var(--footer-muted); margin-bottom: 10px; }
.footer-help .text-link { display: flex; font-size: 0.84rem; color: #c3c8e0; margin-top: 6px; }
.footer-help .text-link:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: 0.78rem; color: var(--footer-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: #fff; }
.footer-note { margin-top: 18px; font-size: 0.72rem; color: #767c9c; max-width: 900px; }
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-top .icon { transform: rotate(180deg); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Utility & reveal ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
html.js .reveal[data-delay="1"] { transition-delay: .1s; }
html.js .reveal[data-delay="2"] { transition-delay: .2s; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
