/*
 * Billient Account — marketing site stylesheet
 * Material 3 aligned tokens (Fidelity scheme, seed #2D4A8A) — audit §8.
 * Replaces the legacy theme bundle (37 CSS files, duplicated Bootstrap/animate/
 * font-awesome, Revolution Slider) with one small file.
 */

/* ---------- Tokens ---------- */
:root {
  --md-sys-color-primary: #103272;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #2d4a8a;   /* brand navy */
  --md-sys-color-on-primary-container: #ffffff;
  --md-sys-color-on-primary-container-variant: #a3bcff;
  --md-sys-color-secondary: #545e79;
  --md-sys-color-secondary-container: #d6dfff;
  --md-sys-color-on-secondary-container: #103272;
  --md-sys-color-tertiary-container: #724000;
  --md-sys-color-on-tertiary-container: #f5ae68;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-success: #146c2e;
  --md-sys-color-surface: #faf8ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f4f3f9;
  --md-sys-color-surface-container: #eeedf3;
  --md-sys-color-surface-container-high: #e9e7ee;
  --md-sys-color-on-surface: #1a1b20;
  --md-sys-color-on-surface-variant: #444650;
  --md-sys-color-outline: #747781;
  --md-sys-color-outline-variant: #c4c6d2;
  --md-sys-color-link: #103272;
  --md-sys-color-footer: #121a2e;
  --md-sys-color-on-footer: #e3e2e8;
  --md-sys-color-footer-link: #b1c5ff;
  --whatsapp-fill: #128c4a;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 999px;

  --space-section: 96px;
  --gutter: 24px;
  --container: 1200px;
  --focus-ring: 0 0 0 3px var(--md-sys-color-surface), 0 0 0 5px var(--md-sys-color-primary);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #b1c5ff;
    --md-sys-color-on-primary: #072d6c;
    --md-sys-color-primary-container: #2d4a8a;
    --md-sys-color-on-primary-container: #ffffff;
    --md-sys-color-secondary: #bcc6e5;
    --md-sys-color-secondary-container: #3f4963;
    --md-sys-color-on-secondary-container: #dce2ff;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-success: #7ddb8c;
    --md-sys-color-surface: #121317;
    --md-sys-color-surface-container-lowest: #0d0e12;
    --md-sys-color-surface-container-low: #1a1b20;
    --md-sys-color-surface-container: #1e1f24;
    --md-sys-color-surface-container-high: #292a2e;
    --md-sys-color-on-surface: #e3e2e8;
    --md-sys-color-on-surface-variant: #c4c6d2;
    --md-sys-color-outline: #8e909b;
    --md-sys-color-outline-variant: #444650;
    --md-sys-color-link: #b1c5ff;
    --md-sys-color-footer: #0d0e12;
    color-scheme: dark;
  }
}

@media (max-width: 767px) {
  :root { --space-section: 56px; --gutter: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--md-sys-color-on-surface);
  font-weight: 600;
  margin: 0 0 .5em;
  line-height: 1.25;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--md-sys-color-link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--md-sys-color-primary-container); color: #fff;
  padding: 12px 20px; border-radius: var(--shape-md); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--md-sys-color-surface-container-low); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.125rem; }
.eyebrow {
  display: inline-block; font: 600 .875rem/1.4 var(--font-body); letter-spacing: .02em;
  color: var(--md-sys-color-primary); margin-bottom: 12px;
}
.lead { font-size: 1.125rem; }
.muted { color: var(--md-sys-color-on-surface-variant); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--shape-md);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
}

/* ---------- Buttons (M3: filled / tonal / outlined / text) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--shape-full);
  font: 600 .9375rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .15s; }
.btn:hover::after { opacity: .08; }
.btn:active::after, .btn:focus-visible::after { opacity: .1; }
.btn-filled { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.btn-filled:hover { box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.btn-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn-outlined { border-color: var(--md-sys-color-outline); color: var(--md-sys-color-primary); background: transparent; }
.btn-text { color: var(--md-sys-color-primary); background: transparent; padding: 0 12px; }
.btn-on-dark { background: #fff; color: #103272; }
.btn-outlined-on-dark { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.utility-bar { background: var(--md-sys-color-surface-container-low); font-size: .875rem; }
.utility-bar .container { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: flex-end; align-items: center; min-height: 40px; }
.utility-bar a { color: var(--md-sys-color-on-surface-variant); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.utility-bar a:hover { color: var(--md-sys-color-primary); text-decoration: underline; }
.utility-bar .icon { width: 18px; height: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--md-sys-color-surface); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--md-sys-color-on-surface); min-height: 48px; }
.brand img { width: auto; height: 36px; }
.brand-name { font: 700 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-name span { color: var(--md-sys-color-primary-container); }
@media (prefers-color-scheme: dark) { .brand-name span { color: var(--md-sys-color-primary); } }

.nav-toggle { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a, .primary-nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px;
  font: 500 1rem/1.2 var(--font-body); color: var(--md-sys-color-on-surface); text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: var(--shape-full);
}
.primary-nav a:hover, .primary-nav .nav-trigger:hover { background: var(--md-sys-color-surface-container); }
.primary-nav a[aria-current="page"] { color: var(--md-sys-color-primary); box-shadow: inset 0 -3px 0 var(--md-sys-color-primary); border-radius: 0; }
.has-sub { position: relative; }
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 280px; padding: 8px !important;
  background: var(--md-sys-color-surface-container-high); border-radius: var(--shape-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.14); display: none;
}
.submenu a { display: flex; width: 100%; border-radius: var(--shape-md); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--shape-full);
    background: transparent; border: 0; color: var(--md-sys-color-on-surface); cursor: pointer;
  }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--md-sys-color-surface-container-low);
    padding: 80px 16px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.18); z-index: 60; visibility: hidden;
  }
  .nav-open .primary-nav { transform: none; visibility: visible; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .primary-nav a, .primary-nav .nav-trigger { width: 100%; justify-content: space-between; border-radius: var(--shape-md); }
  .submenu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 12px !important; min-width: 0; }
  .nav-close { position: absolute; top: 16px; right: 16px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; display: none; }
  .nav-open .nav-scrim { display: block; }
  .header-actions .btn-tonal, .header-actions .btn-text { display: none; }
  .primary-nav .mobile-actions { display: grid; gap: 12px; margin-top: 16px; }
}
@media (min-width: 1100px) { .nav-close, .nav-scrim, .primary-nav .mobile-actions { display: none !important; } }
@media (max-width: 479px) { .header-actions .btn-filled { padding: 0 16px; } .brand-name { font-size: 1.05rem; } .brand img { height: 30px; } }
.no-js .primary-nav { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; padding: 0; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.1875rem; max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--shape-sm);
  font: 500 .875rem/1 var(--font-body); color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container-lowest);
}
.chip .icon { width: 16px; height: 16px; color: var(--md-sys-color-success); }
.hero .micro { margin-top: 16px; font-size: .9375rem; }
@media (max-width: 899px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Illustrative dashboard (decorative, not a screenshot) */
.mock {
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-xl); padding: 24px; box-shadow: 0 24px 48px -24px rgba(16,50,114,.35);
}
.mock-head { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--md-sys-color-outline-variant); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-kpi { background: var(--md-sys-color-surface-container-low); border-radius: var(--shape-md); padding: 12px; }
.mock-kpi b { display: block; height: 10px; width: 60%; background: var(--md-sys-color-outline-variant); border-radius: 4px; margin-bottom: 10px; }
.mock-kpi span { display: block; height: 18px; width: 80%; background: var(--md-sys-color-primary-container); border-radius: 4px; opacity: .85; }
.mock-kpi:nth-child(2) span { background: #146c2e; }
.mock-kpi:nth-child(3) span { background: #724000; }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 12px; background: var(--md-sys-color-surface-container-low); border-radius: var(--shape-md); }
.mock-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #4d6bb0, #2d4a8a); }
.mock-rows { margin-top: 16px; display: grid; gap: 8px; }
.mock-rows i { display: block; height: 12px; border-radius: 4px; background: var(--md-sys-color-surface-container); }

/* ---------- Page header & breadcrumb ---------- */
.page-header { padding: 56px 0 48px; background: var(--md-sys-color-surface-container-low); }
.page-header h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 12px; }
.page-header .lead { max-width: 46em; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .875rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--md-sys-color-outline); }
.breadcrumb a { display: inline-flex; min-height: 24px; align-items: center; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.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: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 1.25rem; margin: 4px 0 0; }
.card p { margin: 0; }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.card-filled { background: var(--md-sys-color-surface-container); border-color: transparent; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.media-frame { border-radius: var(--shape-xl); background: #fff; padding: 16px; border: 1px solid var(--md-sys-color-outline-variant); }
.media-frame img { margin: 0 auto; border-radius: var(--shape-lg); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list .icon { color: var(--md-sys-color-success); margin-top: 1px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--shape-lg); padding: 24px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--md-sys-color-primary-container); color: #fff; font: 600 1rem/1 var(--font-display); margin-bottom: 12px;
}
.steps h3 { font-size: 1.125rem; }
.steps p { margin: 0; }

.note {
  border-left: 4px solid var(--md-sys-color-primary-container); background: var(--md-sys-color-surface-container-low);
  padding: 16px 20px; border-radius: 0 var(--shape-md) var(--shape-md) 0;
}

/* ---------- FAQ (native details/summary) ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--shape-lg); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 56px 16px 20px; min-height: 56px; position: relative;
  font: 600 1rem/1.5 var(--font-body); color: var(--md-sys-color-on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--md-sys-color-primary-container); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3e8ff; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 959px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); }
.plan.featured { border: 2px solid var(--md-sys-color-primary-container); border-radius: var(--shape-xl); box-shadow: 0 16px 40px -20px rgba(16,50,114,.45); }
.plan .badge { position: absolute; top: -14px; left: 28px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--shape-sm); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font: 600 .8125rem/1 var(--font-body); }
.plan h2, .plan h3 { font-size: 1.375rem; margin: 0; }
.price { font: 600 2.5rem/1 var(--font-display); color: var(--md-sys-color-on-surface); }
.price small { font: 500 1rem/1 var(--font-body); color: var(--md-sys-color-on-surface-variant); }
.plan .check-list { font-size: .9375rem; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-lowest); }
.compare { min-width: 640px; font-size: .9375rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--md-sys-color-on-surface); }
.compare thead th { position: sticky; top: 0; background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface); font-family: var(--font-display); }
.compare tbody tr.group th { background: var(--md-sys-color-surface-container-low); text-align: left; font-family: var(--font-display); font-weight: 600; }
.compare .yes { color: var(--md-sys-color-success); }
.compare .no { color: var(--md-sys-color-outline); }
.compare .icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

/* ---------- Forms (outlined text fields with persistent labels) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 .9375rem/1.3 var(--font-body); color: var(--md-sys-color-on-surface); }
.field .req { color: var(--md-sys-color-error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; font: 400 1rem/1.4 var(--font-body);
  color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--shape-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); }
.field .help { font-size: .875rem; color: var(--md-sys-color-on-surface-variant); }
.field .error { font-size: .875rem; color: var(--md-sys-color-error); }
.field [aria-invalid="true"] { border-color: var(--md-sys-color-error); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9375rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--shape-md); font-weight: 500; }
.form-status.ok { background: #e3f4e6; color: #0d4f20; }
.form-status.err { background: #ffdad6; color: #8c1d18; }

/* ---------- Side sheet / bottom sheet (quote dialog) ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(480px, 100%);
  background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant);
  border-radius: var(--shape-xl) 0 0 var(--shape-xl);
}
dialog.sheet::backdrop { background: rgba(0,0,0,.45); }
.sheet-inner { padding: 24px; overflow-y: auto; max-height: 100%; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 1.5rem; }
.sheet .form-grid { grid-template-columns: 1fr; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--md-sys-color-on-surface); cursor: pointer; }
.icon-btn:hover { background: var(--md-sys-color-surface-container); }
@media (max-width: 599px) {
  dialog.sheet { margin: auto 0 0; height: auto; max-height: 92vh; width: 100%; max-width: 100%; border-radius: var(--shape-xl) var(--shape-xl) 0 0; }
}

/* ---------- Contact ---------- */
.contact-cards .card a { font-weight: 600; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--shape-lg); }

/* ---------- Prose (legal, blog) ---------- */
.prose { max-width: 780px; margin: 0 auto; font-size: 1.0625rem; color: var(--md-sys-color-on-surface); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 1em 0; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--md-sys-color-outline-variant); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--shape-lg); margin: 1.5em auto; }
.draft-banner { background: #fff4e5; color: #5c3200; border: 1px solid #f5ae68; border-radius: var(--shape-md); padding: 12px 16px; font-size: .9375rem; margin-bottom: 24px; }
.post-meta { font-size: .9375rem; color: var(--md-sys-color-on-surface-variant); }
.post-card img { border-radius: var(--shape-md); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--md-sys-color-surface-container); }

/* ---------- Footer ---------- */
.site-footer { background: var(--md-sys-color-footer); color: var(--md-sys-color-on-footer); padding: 64px 0 0; font-size: .9375rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-display); }
.site-footer a { color: var(--md-sys-color-footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name span { color: #b1c5ff; }
.footer-contact { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.footer-contact .icon { width: 20px; height: 20px; color: #b1c5ff; margin-top: 2px; }
.social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.social a { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: rgba(255,255,255,.16); }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; color: #c4c6d2; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- WhatsApp FAB ---------- */
.fab-whatsapp {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 16px; border-radius: var(--shape-lg); background: var(--whatsapp-fill);
  color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.fab-whatsapp .icon { width: 26px; height: 26px; }
.fab-whatsapp .fab-label { display: none; }
@media (min-width: 900px) { .fab-whatsapp .fab-label { display: inline; } }
body { padding-bottom: 88px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Cookie consent ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 760px; margin: 0 auto;
  background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface);
  border-radius: var(--shape-lg); box-shadow: 0 12px 32px rgba(0,0,0,.25); padding: 20px 24px;
  display: grid; gap: 12px;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: .9375rem; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 96px 0; }
.error-page .code { font: 700 4.5rem/1 var(--font-display); color: var(--md-sys-color-primary-container); }
.error-page .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility-bar, .site-header, .site-footer, .fab-whatsapp, .consent-banner, .cta-band, dialog, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .section { padding: 16px 0; }
  .plan, .table-wrap { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Compact utility bar on phones (keep sales line only) */
@media (max-width: 599px) {
  .utility-bar a:not(:first-child) { display: none; }
  .utility-bar .container { justify-content: center; }
  .hero .mock { display: none; }
}
