/* =========================================================
   Mektrics — Shared Stylesheet
   Table of contents:
   1. Variables & resets
   2. Base typography
   3. Layout helpers
   4. Buttons & links
   5. Site header / navigation
   6. Hero + dashboard mockup
   7. Feature cards & sections
   8. Work-order showcase
   9. Steps
   10. Testimonials
   11. CTA band + footer
   12. Forms
   13. Inner pages (pricing, faq, blog, legal, 404)
   14. Responsive
   ========================================================= */

/* ---------- 1. Variables & resets ---------- */
:root {
  --color-primary: #0e4ba3;
  --color-primary-dark: #0b3b81;
  --color-primary-darker: #082c60;
  --color-navy: #081b38;
  --color-navy-alt: #0d2650;
  --color-accent: #ff7a18;
  --color-accent-dark: #e0630a;
  --color-bg: #ffffff;
  --color-bg-light: #f4f7fc;
  --color-bg-alt: #eef2f9;
  --color-surface: #ffffff;
  --color-text: #40495a;
  --color-text-dark: #10192e;
  --color-muted: #64748b;
  --color-border: #e3e8f1;
  --color-success: #16a34a;
  --shadow-sm: 0 2px 8px rgba(16, 25, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 25, 46, 0.1);
  --shadow-lg: 0 20px 45px rgba(10, 31, 61, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-w: 1200px;
  --badge-progress-bg: #fff4e5;
  --badge-progress-text: var(--color-accent-dark);
  --badge-done-bg: #e8f7ec;
  --badge-done-text: var(--color-success);
  --badge-pending-bg: #eef2f9;
  --badge-pending-text: var(--color-muted);
  --alert-success-bg: #e8f7ec;
  --alert-success-text: #0f6b2c;
  --alert-success-border: #bfe8ca;
  --alert-error-bg: #fdecec;
  --alert-error-text: #a3231e;
  --alert-error-border: #f6c6c4;
  color-scheme: light;
}

/* Dark theme: applied automatically when the OS is set to dark (unless the
   visitor explicitly chose light via the toggle), or explicitly via the
   theme toggle button (data-theme="dark"), stored in localStorage. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0b1220;
    --color-bg-light: #121b2e;
    --color-bg-alt: #0e1626;
    --color-surface: #141e33;
    --color-text: #b7c0d4;
    --color-text-dark: #eef2fa;
    --color-muted: #8993ab;
    --color-border: #263252;
    --color-primary: #4c8dff;
    --color-primary-dark: #2f6fe0;
    --color-accent-dark: #ff9d4d;
    --color-success: #22c55e;
    --badge-progress-bg: rgba(255, 122, 24, .16);
    --badge-progress-text: #ffb066;
    --badge-done-bg: rgba(34, 197, 94, .16);
    --badge-done-text: #4ade80;
    --badge-pending-bg: rgba(137, 147, 171, .16);
    --badge-pending-text: var(--color-muted);
    --alert-success-bg: rgba(34, 197, 94, .14);
    --alert-success-text: #4ade80;
    --alert-success-border: rgba(34, 197, 94, .35);
    --alert-error-bg: rgba(239, 68, 68, .14);
    --alert-error-text: #f87171;
    --alert-error-border: rgba(239, 68, 68, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #0b1220;
  --color-bg-light: #121b2e;
  --color-bg-alt: #0e1626;
  --color-surface: #141e33;
  --color-text: #b7c0d4;
  --color-text-dark: #eef2fa;
  --color-muted: #8993ab;
  --color-border: #263252;
  --color-primary: #4c8dff;
  --color-primary-dark: #2f6fe0;
  --color-accent-dark: #ff9d4d;
  --color-success: #22c55e;
  --badge-progress-bg: rgba(255, 122, 24, .16);
  --badge-progress-text: #ffb066;
  --badge-done-bg: rgba(34, 197, 94, .16);
  --badge-done-text: #4ade80;
  --badge-pending-bg: rgba(137, 147, 171, .16);
  --badge-pending-text: var(--color-muted);
  --alert-success-bg: rgba(34, 197, 94, .14);
  --alert-success-text: #4ade80;
  --alert-success-border: rgba(34, 197, 94, .35);
  --alert-error-bg: rgba(239, 68, 68, .14);
  --alert-error-text: #f87171;
  --alert-error-border: rgba(239, 68, 68, .35);
  color-scheme: dark;
}

/* Self-hosted Inter (was loaded from Google Fonts' CDN) — that was actually
   TWO variable-font files (fonts.googleapis.com's CSS, then a separate hop
   to fonts.gstatic.com to fetch them), one of Lighthouse's flagged
   render-blocking/critical-path costs. Same two files, same weights, now
   same-origin: one hop, and covered by this site's own long-lived cache
   headers instead of a cross-origin one. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-variable.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;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}
h1, h2, h3, h4, p, li { overflow-wrap: break-word; word-break: break-word; }

/* Grid/flex items shrink to fit their track instead of forcing overflow
   from their content's intrinsic (min-content) width. */
.hero__inner > *,
.features-layout > *,
.showcase > *,
.contact-layout > *,
.pricing-grid > *,
.testimonial-grid > *,
.blog-grid > * {
  min-width: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--color-text-dark); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section--light { background: var(--color-bg-light); }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  background: rgba(247, 135, 31, .12);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35em .9em;
  border-radius: var(--radius-pill);
  margin-bottom: 1em;
}
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }
.text-link {
  color: var(--color-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.text-link svg { width: 1.1em; height: 1.1em; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 700;
  font-size: .98rem;
  padding: .9em 1.7em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--accent { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn--sm { padding: .65em 1.35em; font-size: .9rem; }
.btn--block { width: 100%; }
.link-plain { font-weight: 600; color: var(--color-text-dark); }
.link-plain:hover { color: var(--color-primary); }

/* ---------- 5. Site header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 14px;
}
.site-logo { flex-shrink: 0; display: flex; }
.main-nav { flex: 1; }
.main-nav__list { display: flex; align-items: center; gap: 30px; }
/* Log In already shows via .site-header__actions on desktop — this only
   exists for the mobile slide-out panel (see the media query below), where
   .site-header__actions is hidden entirely. */
.main-nav__mobile-actions { display: none; }
.main-nav__list > li > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-weight: 600;
  font-size: .96rem;
  color: var(--color-text-dark);
  background: none;
  border: none;
  padding: .5em 0;
}
.main-nav__list > li > a:hover,
.dropdown-toggle:hover,
.main-nav__list > li > a.is-active { color: var(--color-primary); }
.chevron { width: 14px; height: 14px; transition: transform .15s ease; }
.has-dropdown { position: relative; }
.has-dropdown.is-open .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-dropdown.is-open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .6em .8em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
}
.dropdown-menu a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.site-header__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text-dark); border-radius: 2px; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: background-color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--color-bg-alt); }
.theme-toggle__icon { width: 18px; height: 18px; }
.theme-toggle__icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__icon--moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__icon--sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }

/* ---------- 6. Hero + dashboard mockup ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 72px;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: .4em; }
.hero h1 .accent { color: var(--color-primary); }
.hero p.lead { font-size: 1.1rem; color: var(--color-muted); max-width: 46ch; }
.hero__ctas { display: flex; gap: 16px; margin-block: 1.8em 1.6em; flex-wrap: wrap; }
.hero__ctas--center { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 0; }
.hero__trust li { display: flex; align-items: center; gap: .5em; font-size: .88rem; font-weight: 600; color: var(--color-text); }
.hero__trust svg { color: var(--color-accent); flex-shrink: 0; }

.hero__media { position: relative; }
.hero__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
  background:
    radial-gradient(circle at 78% 82%, rgba(247,135,31,.35), transparent 45%),
    linear-gradient(160deg, var(--color-navy), var(--color-primary));
  position: relative;
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/Mektrics_White_Logo_Transparent_web.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46%;
  opacity: .16;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.dash-card {
  position: absolute;
  left: -6%;
  bottom: -12%;
  width: 78%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  border: 1px solid var(--color-border);
}
.dash-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-card__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; color: var(--color-text-dark); }
.dash-card__brand img { width: 20px; height: 20px; }
.dash-card__search { flex: 1; margin-inline: 16px; height: 26px; border-radius: var(--radius-pill); background: var(--color-bg-light); }
.dash-card__body { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.dash-card__nav { display: flex; flex-direction: column; gap: 4px; }
.dash-card__nav span {
  display: block;
  height: 20px;
  border-radius: 6px;
  background: var(--color-bg-light);
}
.dash-card__nav span:first-child { background: var(--color-primary); }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.dash-stats div { background: var(--color-bg-light); border-radius: var(--radius-sm); padding: 8px; }
.dash-stats strong { display: block; font-size: .9rem; color: var(--color-text-dark); }
.dash-stats span { font-size: .6rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-chart { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.dash-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; background: var(--color-bg-light); border-radius: var(--radius-sm); padding: 8px; }
.dash-bars span { flex: 1; background: var(--color-primary); border-radius: 3px 3px 0 0; opacity: .85; }
.dash-bars span:nth-child(1) { height: 35%; }
.dash-bars span:nth-child(2) { height: 55%; }
.dash-bars span:nth-child(3) { height: 40%; }
.dash-bars span:nth-child(4) { height: 70%; }
.dash-bars span:nth-child(5) { height: 60%; }
.dash-bars span:nth-child(6) { height: 85%; }
.dash-donut {
  height: 56px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin-inline: auto;
  background: conic-gradient(var(--color-accent) 0 35%, var(--color-primary) 35% 75%, var(--color-border) 75% 100%);
  position: relative;
}
.dash-donut::after { content: ''; position: absolute; inset: 22%; background: var(--color-surface); border-radius: 50%; }

.phone-card {
  position: absolute;
  right: -8%;
  top: -8%;
  width: 44%;
  background: var(--color-navy);
  border-radius: 26px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone-card__screen { background: var(--color-surface); border-radius: 18px; padding: 12px; }
.phone-card__brand { display: flex; align-items: center; gap: 6px; font-size: .55rem; font-weight: 800; color: var(--color-text-dark); margin-bottom: 8px; }
.phone-card__brand img { width: 14px; height: 14px; }
.phone-card h4 { font-size: .68rem; margin-bottom: .6em; }
.phone-card__field { background: var(--color-bg-light); border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; }
.phone-card__field span { display: block; font-size: .42rem; color: var(--color-muted); text-transform: uppercase; }
.phone-card__field strong { font-size: .58rem; color: var(--color-text-dark); }
.phone-card__btn { background: var(--color-primary); color: #fff; text-align: center; font-size: .55rem; font-weight: 700; border-radius: var(--radius-pill); padding: 6px; margin-top: 8px; }

/* ---------- 7. Feature cards & sections ---------- */
.features-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .feature-icon { margin-inline: auto; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon--blue { background: var(--color-primary); }
.feature-icon--orange { background: var(--color-accent); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.feature-card p { font-size: .92rem; color: var(--color-muted); margin: 0; }

/* ---------- 7b. Top-features dark showcase ----------
   A deliberately fixed-dark band (like the footer/CTA band below), not a
   dark-mode variant of the light feature cards above — --color-navy and
   --color-accent stay constant across themes, so this reads the same
   regardless of the visitor's light/dark preference. */
.top-features { background: var(--color-navy); padding-block: 88px; }
.top-features__head { max-width: 640px; margin-inline: auto; text-align: center; }
.top-features__head p { color: rgba(255,255,255,.72); font-size: 1.1rem; margin: 0 0 40px; }
.eyebrow--dark { background: rgba(255,122,24,.16); color: #ffb066; }
.tf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tf-card {
  background: var(--color-navy-alt);
  border: 1.5px solid rgba(255,122,24,.45);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  transition: border-color .15s ease, transform .15s ease;
}
.tf-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.tf-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255,122,24,.16);
  color: var(--color-accent);
  margin: 0 auto 14px;
}
.tf-icon svg { width: 22px; height: 22px; }
.tf-card h3 { font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: #fff; margin-bottom: .5em; }
.tf-card p { font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.62); margin: 0; }
.top-features__cta { text-align: center; margin-top: 40px; }
.btn--outline-accent { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn--outline-accent:hover { background: var(--color-accent); color: #fff; }

/* ---------- 8. Work-order showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase--reverse .showcase__media { order: 2; }
.showcase + .showcase { margin-top: 88px; }
.showcase__photo .feature-icon { position: absolute; inset: auto auto 24px 24px; }
.showcase__media { position: relative; }
.showcase__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3.3;
  background:
    radial-gradient(circle at 20% 15%, rgba(247,135,31,.3), transparent 45%),
    linear-gradient(160deg, var(--color-navy-alt), var(--color-primary-dark));
  overflow: hidden;
  position: relative;
}
.showcase__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/Mektrics_White_Logo_Transparent_web.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  opacity: .14;
}
.showcase--reverse .showcase__photo::after { background-position: center; }
.showcase__photo img { width: 100%; height: 100%; object-fit: cover; }
.wo-card {
  position: absolute;
  left: 6%;
  bottom: -10%;
  width: 88%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  border: 1px solid var(--color-border);
}
.wo-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wo-card__head h4 { font-size: .95rem; margin: 0; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: .3em .8em; border-radius: var(--radius-pill); }
.badge--progress { background: var(--badge-progress-bg); color: var(--badge-progress-text); }
.badge--done { background: var(--badge-done-bg); color: var(--badge-done-text); }
.badge--pending { background: var(--badge-pending-bg); color: var(--badge-pending-text); }
.wo-card__meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--color-muted); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.wo-card table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.wo-card th { text-align: left; color: var(--color-muted); font-weight: 600; padding-bottom: 6px; }
.wo-card td { padding: 5px 0; color: var(--color-text-dark); }
.checklist { margin: 1.5em 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .7em; font-weight: 600; color: var(--color-text-dark); padding: .5em 0; }
.checklist svg { color: var(--color-primary); flex-shrink: 0; width: 1.3em; height: 1.3em; }

/* ---------- 8b. AI Help Assistant showcase card ---------- */
.help-card {
  position: absolute;
  left: 6%;
  bottom: -10%;
  width: 88%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.help-card__head {
  background: var(--color-navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.help-card__head h4 { color: #fff; font-size: 1rem; margin: 0 0 .25em; }
.help-card__head p { color: rgba(255,255,255,.68); font-size: .76rem; margin: 0; }
.help-card__head svg { width: 16px; height: 16px; color: rgba(255,255,255,.6); flex-shrink: 0; margin-top: 2px; }
.help-card__body { padding: 16px 18px; }
.help-card__answer {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .8rem;
  color: var(--color-text);
  line-height: 1.55;
}
.help-card__answer strong { color: var(--color-text-dark); }
.help-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-primary);
}
.help-card__input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 8px 9px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.help-card__placeholder { flex: 1; font-size: .78rem; color: var(--color-muted); }
.help-card__send {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}
.help-card__send svg { width: 12px; height: 12px; }
.help-card__guide {
  display: block;
  padding: 11px 18px;
  border-top: 1px solid var(--color-border);
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-primary);
}
.help-card__launcher {
  position: absolute;
  right: -6%;
  bottom: -16%;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.help-card__launcher svg { width: 22px; height: 22px; }

/* ---------- 9. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.step { text-align: center; padding-inline: 12px; position: relative; }
.step__badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  margin: 0 auto 14px;
}
.step:nth-child(odd) .step__badge { background: var(--color-primary); }
.step:nth-child(even) .step__badge { background: var(--color-accent); }
.step__icon { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--color-primary); }
.step h3 { font-size: 1.02rem; margin-bottom: .3em; }
.step p { font-size: .88rem; color: var(--color-muted); }
.step-arrow { position: absolute; top: 22px; right: -10%; color: var(--color-border); width: 24px; }
.step:last-child .step-arrow { display: none; }

/* ---------- 10. Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card p.quote { color: var(--color-text-dark); font-size: .96rem; margin-bottom: 1.2em; }
.testimonial-card__person { display: flex; align-items: center; gap: 12px; margin-bottom: .6em; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary); color: #fff; font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-card__person strong { display: block; font-size: .92rem; color: var(--color-text-dark); }
.testimonial-card__person span { font-size: .8rem; color: var(--color-muted); }
.stars { color: var(--color-accent); display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }

/* ---------- 10b. Founder note + founding-shops CTA ---------- */
.founder-note { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.founder-note blockquote { margin: 0; }
.founder-note p { font-size: 1.2rem; font-weight: 600; color: var(--color-text-dark); line-height: 1.5; margin: 0; }
.founder-note figcaption { margin-top: 16px; font-size: .92rem; font-weight: 700; color: var(--color-text-dark); }
.founder-note cite { display: block; font-style: normal; font-weight: 500; font-size: .85rem; color: var(--color-muted); margin-top: .2em; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- 11. CTA band + footer ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-primary-dark) 70%, var(--color-accent-dark) 130%);
  color: #fff;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.cta-band__logo { margin-bottom: 18px; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }

.site-footer { background: var(--color-navy); color: rgba(255,255,255,.78); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-block: 60px 40px;
}
.site-footer__brand p { font-size: .9rem; margin-block: 16px 18px; max-width: 32ch; }
.social-list { display: flex; gap: 10px; }
.social-list a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.social-list a:hover { background: var(--color-accent); }
.social-list svg { width: 16px; height: 16px; }
.site-footer__col h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.1em; }
.site-footer__col ul li { margin-bottom: .75em; }
.site-footer__col a { font-size: .92rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  font-size: .82rem;
}
.site-footer__bottom a { color: rgba(255,255,255,.78); }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- 12. Forms ---------- */
.text-center { text-align: center; }
.auth-card { max-width: 420px; margin-inline: auto; }
.auth-footnote { text-align: center; margin-top: 24px; }
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .5em; color: var(--color-text-dark); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .96rem;
  padding: .8em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(24,88,201,.14);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--color-muted); margin-top: 10px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; margin-bottom: 20px; }
.alert--success { background: var(--alert-success-bg); color: var(--alert-success-text); border: 1px solid var(--alert-success-border); }
.alert--error { background: var(--alert-error-bg); color: var(--alert-error-text); border: 1px solid var(--alert-error-border); }

/* ---------- 13. Inner pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding-block: 64px 40px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.page-hero p { color: var(--color-muted); font-size: 1.05rem; max-width: 640px; margin-inline: auto; }
.breadcrumbs { font-size: .85rem; color: var(--color-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--color-primary); font-weight: 600; }

/* Monthly / yearly billing switch above the pricing grid. */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  /* max-content alone never shrinks below its content's natural single-line
     width, which defeats flex-wrap below and pushes the whole page wider
     than the viewport on narrow screens — min() caps it at the container
     width too, so it only ever grows up to that before wrapping kicks in. */
  max-width: min(100%, max-content);
  margin: 0 auto 40px;
  padding: 5px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
}
.billing-toggle__btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-muted);
  padding: .7em 1.3em;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: .5em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.billing-toggle__btn.is-active { background: var(--color-surface); color: var(--color-text-dark); box-shadow: var(--shadow-sm); }
.billing-toggle__save { font-size: .78rem; font-weight: 700; color: #fff; background: var(--color-accent); padding: .25em .7em; border-radius: var(--radius-pill); white-space: nowrap; }

/* flex-wrap, not a fixed grid-template-columns count — the plan lineup is
   fetched live and its count can change (2 today, more later), so this needs
   to keep looking right whether there are 2 cards or 5. */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: stretch; }
.price-card {
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-card--featured { border-color: var(--color-primary); box-shadow: var(--shadow-lg); position: relative; transform: translateY(-8px); }
.price-card__ribbon {
  background: var(--color-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: .7em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
}
.price-card__ribbon svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.price-card__body { padding: 32px 28px; display: flex; flex-direction: column; flex: 1; }
.price-card__eyebrow { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary); margin-bottom: .6em; }
.price-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.price-card__price { display: flex; align-items: baseline; gap: .25em; margin-bottom: .1em; }
.price-card__amount { font-size: 2.4rem; font-weight: 800; color: var(--color-text-dark); }
.price-card__period { font-size: 1rem; font-weight: 600; color: var(--color-muted); }
.price-card__billing-note { transition: opacity .1s ease; }
.price-card__desc { color: var(--color-muted); font-size: .9rem; margin-bottom: 1.4em; }
.price-card__stats { list-style: none; margin: 1.4em 0 0; padding: 18px 0 0; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: .5em; }
.price-card__stats li { display: flex; align-items: center; gap: .6em; font-size: .88rem; color: var(--color-text); }
.price-card__stat { background: var(--color-bg-alt); color: var(--color-text-dark); font-weight: 700; font-size: .82rem; padding: .3em .7em; border-radius: var(--radius-pill); min-width: 2.4em; text-align: center; }
.price-card__features { list-style: none; margin: 1em 0 0; padding: 0; flex: 1; }
.price-card__features li { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; padding: .4em 0; }
.price-card__features li svg { color: var(--color-success); flex-shrink: 0; width: 1.2em; height: 1.2em; margin-top: .1em; }

/* Compare Plans table — replaces the old per-plan checklist layout with a
   real side-by-side table, grouped by feature category. Wrapped in its own
   scroll container so a narrow screen scrolls the table, never the page. */
/* contain:layout matters here, not just overflow-x:auto — verified directly
   (Chrome DevTools Protocol, measuring document.documentElement.scrollWidth):
   without it, the table's intrinsic width (it's naturally wider than its
   640px min-width once real plan names/labels are in it) still leaked into
   the whole PAGE's scrollable width on narrow screens, even though the
   table itself was correctly scoped to scroll only within this wrapper —
   exactly the kind of bug a plain screenshot can misread as "the hero text
   got cut off" three sections away, because the whole page was being
   captured at a wider intrinsic layout than the actual viewport. contain:
   layout makes this wrapper a real layout containment boundary, so nothing
   inside it can ever affect layout outside it. */
.compare-table-wrap { overflow-x: auto; contain: layout; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--color-border); }
.compare-table thead th { text-align: center; font-size: 1rem; color: var(--color-text-dark); padding-top: 22px; }
.compare-table td:first-child, .compare-table th.compare-table__feature-col { text-align: left; color: var(--color-text); font-weight: 500; white-space: nowrap; }
.compare-table__group-row th { text-align: left; background: var(--color-bg-alt); color: var(--color-primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 12px; padding-bottom: 12px; }
.compare-table th.is-featured, .compare-table td.is-featured { background: var(--color-bg-alt); }
.compare-table__check { width: 1.3em; height: 1.3em; color: var(--color-success); }
.compare-table__dash { color: var(--color-border); font-weight: 700; }
.compare-table tfoot td { border-bottom: none; padding-top: 20px; padding-bottom: 20px; }
.compare-table__note { text-align: center; color: var(--color-muted); font-size: .9rem; margin-top: 20px; }

.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text-dark);
  padding: 22px 4px;
}
.faq-item__q svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform .2s ease; color: var(--color-primary); }
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item__a-inner { padding: 0 4px 22px; color: var(--color-muted); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.blog-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.blog-card__media span { color: #fff; font-weight: 800; font-size: 1.3rem; opacity: .85; }
/* A real <img> (not a CSS background) so the browser can natively
   loading="lazy" it — the gradient above still shows as a placeholder
   until it loads in, and for posts with no featured image at all. */
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { font-size: .78rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6em; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: .5em; }
.blog-card p { color: var(--color-muted); font-size: .9rem; flex: 1; }
.blog-card .text-link { margin-top: 12px; font-size: .9rem; }

.article-hero-image {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 1.4em; }
.article p { color: var(--color-text); }
.article ul, .article ol { margin: 0 0 1.2em 1.4em; }
.article li { margin-bottom: .5em; }
.article img { border-radius: var(--radius-md); margin-block: 1.4em; }

/* ---- Post comments ---- */
.comments { max-width: 760px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--color-border); }
.comments__heading { font-size: 1.2rem; margin-bottom: 1.2em; }
.comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.comments__item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.comments__item:first-child { padding-top: 0; }
.comments__item-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: .3em; }
.comments__item-head strong { color: var(--color-text-dark); font-size: .94rem; }
.comments__item-head time { font-size: .78rem; color: var(--color-muted); }
.comments__item p { color: var(--color-text); font-size: .92rem; margin: 0; }
.comments__form { background: var(--color-bg-light); border-radius: var(--radius-md); padding: 24px; }
.comments__form h3 { font-size: 1.05rem; margin-bottom: .8em; }
/* Off-screen, not display:none — a bot that only checks visibility via
   computed style still finds and fills a display:none field; this survives
   that while staying invisible and unreachable by tab for real visitors. */
.comments__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal p, .legal li { color: var(--color-text); }
.legal ul { margin: 0 0 1.2em 1.4em; list-style: disc; }

.error-page { text-align: center; padding-block: 120px; }
.error-page .code { font-size: 6rem; font-weight: 800; color: var(--color-primary); margin: 0; line-height: 1; }
.error-page .feature-icon { margin-inline: auto; width: 64px; height: 64px; margin-bottom: 24px; }
.error-page .feature-icon svg { width: 30px; height: 30px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.value-card { padding: 24px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); text-align: center; }
.value-card .feature-icon { margin: 0 auto 12px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-row strong { display: block; font-size: 2.1rem; color: var(--color-primary); font-weight: 800; }
.stat-row span { color: var(--color-muted); font-size: .88rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info__item { display: flex; gap: 14px; }
.contact-info__item .feature-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-info__item h3 { font-size: 1rem; margin-bottom: .2em; }
.contact-info__item p { font-size: .9rem; color: var(--color-muted); margin: 0; }
.demo-video {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-alt), var(--color-primary-dark));
}
.demo-video svg { width: 64px; height: 64px; opacity: .9; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(10, 31, 61, .12);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  align-items: center;
}
.mobile-cta-bar__call {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-primary);
}
.mobile-cta-bar__call svg { width: 1.3rem; height: 1.3rem; }
.mobile-cta-bar__cta { flex: 1; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { width: 100%; max-width: 520px; margin-inline: auto; margin-top: 40px; }
  .features-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { width: 100%; max-width: 560px; margin-inline: auto; margin-bottom: 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .step-arrow { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-grid { max-width: 440px; margin-inline: auto; }
  .price-card { flex-basis: 100%; }
  .price-card--featured { transform: none; }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--color-surface);
    padding: 20px 24px;
    transform: translateX(100%);
    /* visibility: hidden matters as much as the transform here — a
       position:fixed element translated off-screen still counts toward the
       page's scrollable width in some browsers (overflow-x:hidden on
       html/body doesn't reliably clip a fixed-position descendant), which
       silently made every page horizontally scrollable on mobile. Delaying
       the visibility flip until the slide-out transition finishes (and
       making it instant on open) keeps the animation looking the same. */
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .2s ease, visibility 0s linear 0s;
  }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav__list > li > a, .dropdown-toggle { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--color-border); justify-content: space-between; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .has-dropdown.is-open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .site-header__actions .link-plain { display: none; }
  .site-header__actions .btn { display: none; }
  .main-nav__mobile-actions { display: block; padding: 16px 4px 4px; margin-top: 8px; border-top: 1px solid var(--color-border); text-align: center; }
  .main-nav__mobile-actions .link-plain { font-size: 1.02rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .tf-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 66px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 32px; }
  .cta-band__inner { flex-direction: column; text-align: center; padding-block: 44px; }
  .cta-band .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 44px 28px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dash-card, .phone-card { position: static; width: 100%; margin-top: 16px; }
  .hero__photo { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 12px 20px; }
  .price-card--featured { transform: none; }
  .testimonial-grid { max-width: 100%; }
  .pricing-grid { max-width: 100%; }
}

@media (max-width: 400px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}
