/*
 * Fabrexa ERP marketing site: design system
 * Material 3 colour roles (seed #5533FF, Content scheme) + amber tertiary from the logo.
 * Replaces the previous third-party theme bundle (about 780 KB of CSS).
 */

/* ---------- Tokens ---------- */
:root {
  --md-sys-color-primary: #3c00e1;
  --md-sys-color-on-primary: #ffffff;
  --fx-brand: #5533ff;               /* brand filled CTA */
  --fx-on-brand: #ffffff;
  --md-sys-color-primary-container: #5533ff;
  --md-sys-color-on-primary-container: #dbd6ff;
  --md-sys-color-secondary: #5b51af;
  --md-sys-color-secondary-container: #e4dfff;
  --md-sys-color-on-secondary-container: #372c89;
  --md-sys-color-tertiary: #7b5900;
  --md-sys-color-tertiary-fill: #fdbb12;
  --md-sys-color-on-tertiary-fill: #261a00;
  --md-sys-color-tertiary-container: #ffdea4;
  --md-sys-color-on-tertiary-container: #261a00;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-success: #146c2e;
  --md-sys-color-success-container: #d7f5dc;
  --md-sys-color-surface: #fcf8ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f6f1ff;
  --md-sys-color-surface-container: #f0ecfb;
  --md-sys-color-surface-container-high: #eae6f6;
  --md-sys-color-on-surface: #1c1a25;
  --md-sys-color-on-surface-variant: #474557;
  --md-sys-color-outline: #787589;
  --md-sys-color-outline-variant: #c8c4da;
  --md-sys-color-inverse-surface: #312f3b;
  --md-sys-color-inverse-on-surface: #f3effe;
  --md-sys-color-inverse-primary: #c6bfff;

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

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

  --fx-elev-1: 0 1px 2px rgba(28, 26, 37, .12), 0 1px 3px 1px rgba(28, 26, 37, .08);
  --fx-elev-2: 0 1px 2px rgba(28, 26, 37, .14), 0 2px 6px 2px rgba(28, 26, 37, .08);
  --fx-elev-3: 0 4px 8px 3px rgba(28, 26, 37, .10), 0 1px 3px rgba(28, 26, 37, .14);

  --fx-max: 1200px;
  --fx-gutter: 16px;
  --fx-header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #c6bfff;
    --md-sys-color-on-primary: #2800a0;
    --md-sys-color-primary-container: #5533ff;
    --md-sys-color-on-primary-container: #dbd6ff;
    --md-sys-color-secondary: #c6bfff;
    --md-sys-color-secondary-container: #433895;
    --md-sys-color-on-secondary-container: #e4dfff;
    --md-sys-color-tertiary: #fdbb12;
    --md-sys-color-tertiary-container: #5d4200;
    --md-sys-color-on-tertiary-container: #ffdea4;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-success: #9ad6a4;
    --md-sys-color-success-container: #0f5223;
    --md-sys-color-surface: #13121d;
    --md-sys-color-surface-container-lowest: #0e0d17;
    --md-sys-color-surface-container-low: #1c1a25;
    --md-sys-color-surface-container: #201e29;
    --md-sys-color-surface-container-high: #2a2934;
    --md-sys-color-on-surface: #e5e0f0;
    --md-sys-color-on-surface-variant: #c8c4da;
    --md-sys-color-outline: #928ea3;
    --md-sys-color-outline-variant: #474557;
    --md-sys-color-inverse-surface: #e5e0f0;
    --md-sys-color-inverse-on-surface: #312f3b;
    --md-sys-color-inverse-primary: #3c00e1;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fx-header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--fx-font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--md-sys-color-primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1rem; text-align: start; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
h1, h2, h3, h4 { font-family: var(--fx-font-display); color: var(--md-sys-color-on-surface); margin: 0 0 .75rem; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 2rem; line-height: 2.5rem; }            /* headline large (mobile) */
h2 { font-size: 1.5rem; line-height: 2rem; }            /* headline small (mobile) */
h3 { font-size: 1.25rem; line-height: 1.75rem; }        /* title large-ish */
h4 { font-size: 1rem; line-height: 1.5rem; }
@media (min-width: 768px) {
  h1 { font-size: 2.25rem; line-height: 2.75rem; }      /* display small */
  h2 { font-size: 2rem; line-height: 2.5rem; }          /* headline large */
  h3 { font-size: 1.375rem; line-height: 1.75rem; }     /* title large */
}
:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 12px 16px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); border-radius: var(--fx-shape-sm); }
.skip-link:focus { top: 8px; }
hr { border: 0; border-top: 1px solid var(--md-sys-color-outline-variant); margin: 2rem 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--fx-max); margin: 0 auto; padding: 0 var(--fx-gutter); }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding: 56px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--md-sys-color-surface-container-low); }
.section--inverse { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.section--inverse h2, .section--inverse h3 { color: var(--md-sys-color-inverse-on-surface); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { text-align: center; }
.lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--md-sys-color-on-surface-variant); }
.muted { color: var(--md-sys-color-on-surface-variant); }
.small { font-size: .875rem; line-height: 1.25rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; font-size: 1.375rem; line-height: 1.875rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.125rem; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
  .grid { gap: 24px; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }

/* ---------- Eyebrow / chips / badges ---------- */
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--md-sys-color-tertiary); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--fx-shape-sm); background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface-variant); font-size: .875rem; font-weight: 500; margin: 0; }
.chip a { color: inherit; text-decoration: none; }
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--fx-shape-sm); background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); font-size: .8125rem; font-weight: 600; }

/* ---------- Buttons (M3: filled / tonal / outlined / text) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--fx-shape-full);
  font-family: var(--fx-font-body); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: box-shadow .15s ease;
}
.btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s ease; z-index: -1; }
.btn:hover::after { opacity: .08; }
.btn:focus-visible::after, .btn:active::after { opacity: .10; }
.btn--filled { background: var(--fx-brand); color: var(--fx-on-brand); }
.btn--filled:hover { box-shadow: var(--fx-elev-1); }
.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-left: 12px; padding-right: 12px; }
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Icons (Material Symbols Rounded) ---------- */
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  width: 1em; height: 1em; overflow: hidden; flex-shrink: 0;
}
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--fx-shape-full); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); margin-bottom: 16px; }
.icon-badge .ms { font-size: 24px; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--fx-shape-lg); padding: 24px; height: 100%; }
.card--filled { background: var(--md-sys-color-surface-container); border-color: transparent; }
.card h3 { font-size: 1.125rem; line-height: 1.625rem; margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { transition: box-shadow .15s ease, border-color .15s ease; }
.card--link:hover { box-shadow: var(--fx-elev-2); border-color: var(--md-sys-color-outline); }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link h3 a:focus-visible { outline: none; }
.card--link:focus-within { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.card .card-more { margin-top: 12px; font-weight: 600; color: var(--md-sys-color-primary); font-size: .875rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--md-sys-color-primary); border-bottom: 2px solid var(--md-sys-color-primary); transform: rotate(-45deg); }

/* ---------- Header / top app bar ---------- */
.utility-bar { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); font-size: .875rem; }
.utility-bar .container { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: flex-end; min-height: 36px; }
.utility-bar a { color: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.utility-bar a:hover { text-decoration: underline; }
@media (max-width: 991.98px) { .utility-bar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--md-sys-color-surface); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.site-header .container { display: flex; align-items: center; gap: 12px; min-height: var(--fx-header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--md-sys-color-on-surface); font-family: var(--fx-font-display); font-weight: 600; font-size: 1.125rem; margin-right: auto; min-height: 48px; }
.brand img { width: 44px; height: 44px; border-radius: var(--fx-shape-sm); }
@media (prefers-color-scheme: dark) { .brand img, .footer-brand img { background: #fff; padding: 2px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: var(--fx-shape-full); background: transparent; color: var(--md-sys-color-on-surface); cursor: pointer; }
.nav-toggle:hover { background: var(--md-sys-color-surface-container); }
.header-cta { display: flex; align-items: center; gap: 4px; }
.header-cta .btn--text.hide-sm { display: none; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a, .primary-nav button.menu-trigger {
  display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px; border: 0; background: transparent;
  color: var(--md-sys-color-on-surface); font: 500 .9375rem/1.25rem var(--fx-font-body); text-decoration: none; border-radius: var(--fx-shape-full); cursor: pointer; width: 100%; text-align: left;
}
.primary-nav a:hover, .primary-nav button.menu-trigger:hover { background: var(--md-sys-color-surface-container); }
.primary-nav a[aria-current="page"] { color: var(--md-sys-color-primary); font-weight: 600; }
.menu-trigger .ms { font-size: 20px; transition: transform .15s ease; }
.menu-trigger[aria-expanded="true"] .ms { transform: rotate(180deg); }
.submenu { display: none; }
.submenu a { font-weight: 400; }
.submenu .submenu-all { font-weight: 600; color: var(--md-sys-color-primary); }

/* Compact (< 992px): navigation drawer */
@media (max-width: 991.98px) {
  .primary-nav.is-open {
    display: block; position: fixed; inset: var(--fx-header-h) 0 0 0; z-index: 99; overflow-y: auto;
    background: var(--md-sys-color-surface-container-low); padding: 12px 16px 96px;
  }
  .primary-nav > ul > li { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
  .submenu.is-open { display: block; padding: 0 0 8px 12px; }
  .header-cta .btn--filled { min-height: 40px; padding: 8px 16px; }
  body.nav-open { overflow: hidden; }
}
/* Expanded (>= 992px): top app bar with dropdowns */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; margin-right: auto; }
  .brand { margin-right: 16px; }
  .primary-nav > ul { display: flex; align-items: center; gap: 2px; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav a, .primary-nav button.menu-trigger { width: auto; }
  .submenu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 280px; padding: 8px; background: var(--md-sys-color-surface-container-high); border-radius: var(--fx-shape-md); box-shadow: var(--fx-elev-2); }
  .submenu a { border-radius: var(--fx-shape-sm); }
  .submenu.is-open, .has-menu:focus-within .submenu { display: block; }
  .header-cta .btn--text.hide-sm { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface)); }
@media (min-width: 992px) { .hero { padding: 72px 0 96px; } }
.hero h1 { font-size: 2rem; line-height: 2.5rem; font-weight: 700; }
@media (min-width: 768px) { .hero h1 { font-size: 2.8125rem; line-height: 3.25rem; } }  /* display medium */
.hero .lead { max-width: 640px; }
.hero-note { margin-top: 16px; font-size: .875rem; color: var(--md-sys-color-on-surface-variant); }
.page-hero { padding: 40px 0; background: var(--md-sys-color-surface-container-low); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
@media (min-width: 992px) { .page-hero { padding: 64px 0; } }
.page-hero .lead { max-width: 720px; margin-bottom: 0; }
.page-hero--brand { background: linear-gradient(135deg, #5533ff, #3c00e1); border-bottom: 0; }
.page-hero--brand h1, .page-hero--brand .lead, .page-hero--brand .eyebrow, .page-hero--brand .breadcrumbs a, .page-hero--brand .breadcrumbs { color: #fff; }
.page-hero--brand .lead { color: #ece9ff; }
.page-hero--brand .btn--outlined { color: #fff; border-color: #dbd6ff; }

.breadcrumbs { font-size: .875rem; margin-bottom: 12px; color: var(--md-sys-color-on-surface-variant); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--md-sys-color-outline); }
.breadcrumbs a { color: var(--md-sys-color-on-surface-variant); }

/* Workflow diagram (hero illustration, not a screenshot) */
.flow { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--fx-shape-lg); box-shadow: var(--fx-elev-2); padding: 20px; }
.flow-title { font-size: .875rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant); margin-bottom: 12px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: flow; }
@media (min-width: 600px) { .flow ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--fx-shape-md); background: var(--md-sys-color-surface-container); font-size: .875rem; font-weight: 500; min-height: 92px; }
.flow li .ms { color: var(--md-sys-color-primary); }
.flow li small { font-weight: 400; color: var(--md-sys-color-on-surface-variant); }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; position: relative; padding: 24px; padding-top: 64px; border-radius: var(--fx-shape-lg); background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); margin: 0; }
.steps li::before { content: counter(step); position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--md-sys-color-tertiary-fill); color: var(--md-sys-color-on-tertiary-fill); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--md-sys-color-on-surface-variant); font-size: .9375rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #5533ff, #3c00e1); color: #fff; border-radius: var(--fx-shape-xl); padding: 40px 24px; text-align: center; }
@media (min-width: 768px) { .cta-band { padding: 56px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ece9ff; text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--filled { background: #fff; color: #2800a0; }
.cta-band .btn--outlined { color: #fff; border-color: #dbd6ff; }

/* ---------- Tabs (feature overview) ---------- */
.tabs [role="tablist"] { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--md-sys-color-outline-variant); margin-bottom: 24px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tabs [role="tab"] { flex: 0 0 auto; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--md-sys-color-on-surface-variant); font: 600 .875rem/1.25rem var(--fx-font-body); cursor: pointer; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--md-sys-color-primary); border-bottom-color: var(--md-sys-color-primary); }
.tabs [role="tab"]:hover { background: var(--md-sys-color-surface-container); }
.tabs [role="tabpanel"][hidden] { display: none; }

/* ---------- FAQ (details/summary expansion) ---------- */
.faq { border-top: 1px solid var(--md-sys-color-outline-variant); }
.faq details { border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 40px 16px 0; position: relative; font-family: var(--fx-font-display); font-weight: 600; font-size: 1rem; line-height: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 12px; top: 22px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq .faq-body { padding: 0 0 16px; color: var(--md-sys-color-on-surface-variant); }

/* ---------- Pricing ---------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .plan-name { font-size: 1.375rem; margin-bottom: 4px; }
.plan .plan-for { color: var(--md-sys-color-on-surface-variant); min-height: 48px; }
.plan .price { font-family: var(--fx-font-display); font-size: 2.5rem; line-height: 1; font-weight: 700; margin: 12px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.plan .price-note { font-size: .875rem; color: var(--md-sys-color-on-surface-variant); margin-bottom: 16px; }
.plan .checklist { flex: 1 1 auto; }
.plan--featured { background: var(--md-sys-color-secondary-container); border-color: transparent; }
.plan--featured .badge { position: absolute; top: -12px; right: 20px; background: var(--md-sys-color-tertiary-fill); color: var(--md-sys-color-on-tertiary-fill); }
.table-wrap { overflow-x: auto; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--fx-shape-lg); background: var(--md-sys-color-surface-container-lowest); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .9375rem; }
table.compare caption { text-align: left; padding: 16px; font-weight: 600; }
table.compare th, table.compare td { padding: 12px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); text-align: center; vertical-align: middle; }
table.compare th[scope="row"] { text-align: left; font-weight: 500; }
table.compare thead th { position: sticky; top: 0; background: var(--md-sys-color-surface-container); font-family: var(--fx-font-display); }
table.compare tbody tr.group th { background: var(--md-sys-color-surface-container-low); text-align: left; font-weight: 700; font-size: .875rem; }
.yes { color: var(--md-sys-color-success); font-weight: 700; }
.no { color: var(--md-sys-color-outline); }

/* ---------- Forms (M3 outlined text fields) ---------- */
.form-card { background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--fx-shape-xl); padding: 24px; box-shadow: var(--fx-elev-1); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; 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 14px; font: 400 1rem/1.5rem var(--fx-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(--fx-shape-xs);
}
.field textarea { min-height: 112px; 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: .8125rem; color: var(--md-sys-color-on-surface-variant); }
.field .error-text { font-size: .8125rem; color: var(--md-sys-color-error); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--md-sys-color-error); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--md-sys-color-on-surface-variant); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--fx-brand); }
.alert { border-radius: var(--fx-shape-md); padding: 12px 16px; margin-bottom: 16px; }
.alert ul { margin: 0; }
.alert--error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-surface); border: 1px solid var(--md-sys-color-error); }
.alert--success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-surface); border: 1px solid var(--md-sys-color-success); }
.recaptcha-wrap { min-height: 78px; }

/* ---------- Contact cards / map ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .ms { color: var(--md-sys-color-primary); margin-top: 2px; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--fx-shape-lg); background: var(--md-sys-color-surface-container); }

/* ---------- Footer ---------- */
.site-footer { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); padding: 56px 0 96px; font-size: .9375rem; }
@media (min-width: 992px) { .site-footer { padding-bottom: 32px; } }
.site-footer a { color: var(--md-sys-color-inverse-on-surface); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fx-font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: var(--fx-shape-sm); background: #fff; padding: 2px; }
.site-footer h2 { font-size: .9375rem; line-height: 1.25rem; color: var(--md-sys-color-inverse-on-surface); margin-bottom: 8px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }   /* >= 24px target, near 48dp rows */
.site-footer .contact-list li { margin-bottom: 8px; }
.site-footer .contact-list .ms { color: var(--md-sys-color-inverse-primary); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; font-size: .875rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-bottom button.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; min-height: 40px; padding: 0; }
.footer-bottom button.linklike:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .social a { background: rgba(0, 0, 0, .08); }
  .footer-bottom { border-top-color: rgba(0, 0, 0, .16); }
}

/* ---------- Floating actions ---------- */
.fab-whatsapp { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: none; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px; border-radius: var(--fx-shape-lg); background: #1b5e20; color: #fff; font-weight: 600; text-decoration: none; box-shadow: var(--fx-elev-3); }
.fab-whatsapp svg { width: 24px; height: 24px; fill: currentColor; }
@media (min-width: 992px) { .fab-whatsapp { display: inline-flex; } }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--md-sys-color-surface-container-high); border-top: 1px solid var(--md-sys-color-outline-variant); }
.action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--fx-shape-full); text-decoration: none; font-weight: 600; font-size: .875rem; color: var(--md-sys-color-on-surface); }
.action-bar a.primary { background: var(--fx-brand); color: #fff; }
.action-bar svg { width: 20px; height: 20px; fill: currentColor; }
@media (min-width: 992px) { .action-bar { display: none; } }
body.consent-open .fab-whatsapp, body.consent-open .action-bar, body.nav-open .action-bar { display: none; }

/* ---------- Cookie consent (banner / bottom sheet) ---------- */
.consent-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); border-top-left-radius: var(--fx-shape-xl); border-top-right-radius: var(--fx-shape-xl); box-shadow: var(--fx-elev-3); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.consent-sheet[hidden] { display: none; }
@media (min-width: 768px) { .consent-sheet { left: 24px; right: auto; bottom: 24px; max-width: 520px; border-radius: var(--fx-shape-xl); padding: 24px; } }
.consent-sheet h2 { font-size: 1.125rem; line-height: 1.5rem; margin-bottom: 8px; }
.consent-sheet p { font-size: .875rem; color: var(--md-sys-color-on-surface-variant); }
.consent-sheet .btn-row { margin-top: 12px; }
.consent-options { display: none; margin: 12px 0 0; padding: 0; list-style: none; }
.consent-options.is-open { display: block; }
.consent-options li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--md-sys-color-outline-variant); font-size: .875rem; }
.consent-options input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fx-brand); }

/* ---------- Misc ---------- */
.notice { border-left: 4px solid var(--md-sys-color-tertiary-fill); background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); padding: 12px 16px; border-radius: var(--fx-shape-sm); margin: 16px 0; }
.toc { background: var(--md-sys-color-surface-container-low); border-radius: var(--fx-shape-lg); padding: 16px 20px; margin-bottom: 24px; }
.toc ul { margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.subnav li { margin: 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--fx-shape-sm); border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); text-decoration: none; font-size: .875rem; font-weight: 500; }
.subnav a:hover { background: var(--md-sys-color-surface-container); }
.error-page { text-align: center; padding: 72px 0; }
.error-page .code { font-family: var(--fx-font-display); font-size: 4rem; font-weight: 700; color: var(--md-sys-color-primary); line-height: 1; margin-bottom: 8px; }
.error-page .btn-row { justify-content: center; }
.error-page p { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .utility-bar, .site-footer, .fab-whatsapp, .action-bar, .consent-sheet, .cta-band .btn-row, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .section, .page-hero, .hero { padding: 16px 0; background: none; }
  .card, .table-wrap { break-inside: avoid; border-color: #999; }
  table.compare thead th { position: static; }
}

/* Small phones: keep header within 360 px (logo image already carries the wordmark) */
.site-header .container > * { min-width: 0; }
@media (max-width: 419.98px) {
  .brand span { display: none; }
  .header-cta .btn--filled { padding: 8px 14px; }
}
.table-wrap { position: relative; }   /* contain the visually-hidden caption so it cannot widen the page */
.utility-bar a { white-space: nowrap; }
.flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) and (max-width: 991.98px) { .flow ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .form-card { padding: 16px; } }
@media (max-width: 379.98px) { .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }
.consent-sheet [data-consent="save"] { display: none; }
.consent-options.is-open ~ .btn-row [data-consent="save"] { display: inline-flex; }
.utility-bar svg { width: 18px; height: 18px; fill: currentColor; }
