/* ============================================================
   NativeLabs design system — single source of truth
   ============================================================ */

:root {
  --color-primary: #1e3a5f;
  --color-primary-dark: #152a4a;
  --color-primary-light: #2a4a7a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-background: #f8fafc;
  --color-surface: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --container-max: 1200px;
  --header-height: 72px;
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family-base); font-size: 16px; line-height: 1.6; color: var(--color-text-primary); background-color: var(--color-background); margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--color-text-primary); font-weight: 700; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
p { margin-bottom: 1rem; }
.small { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted) !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--color-text-secondary); line-height: 1.7; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-100 { width: 100% !important; }
.flex-column { flex-direction: column !important; }
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding-left: 12px; padding-right: 12px; }
/* Breakpoint-scoped to mirror Bootstrap: these must NOT apply on phones. */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; padding-left: 12px; padding-right: 12px; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; padding-left: 12px; padding-right: 12px; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; padding-left: 12px; padding-right: 12px; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; padding-left: 12px; padding-right: 12px; }
  .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 1200px) {
  .col-xl-5 { flex: 0 0 41.6667%; max-width: 41.6667%; padding-left: 12px; padding-right: 12px; }
  .col-xl-7 { flex: 0 0 58.3333%; max-width: 58.3333%; padding-left: 12px; padding-right: 12px; }
}
.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;
}
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.container { width: 100%; max-width: var(--container-max); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 48px; width: auto; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--color-text-secondary); transition: color var(--transition-fast); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width var(--transition-normal); }
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }
.nav-link.nav-cta { padding: 0.6rem 1.25rem; background: var(--color-accent); border-color: var(--color-accent); color: #fff !important; border-radius: var(--radius-md); }
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff !important; }
.menu-btn { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 100%; height: 3px; background: var(--color-text-primary); border-radius: 2px; transition: all var(--transition-normal); }
@media (max-width: 991.98px) {
  .menu-btn { display: flex; }
  .nav-links { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--color-border); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: calc(var(--header-height) + 80px) 0 100px; background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%); color: #fff; position: relative; overflow: hidden; text-align: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V0h4V0h-4zm10 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V0h4V0h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.5; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-xl); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(36px, 6vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-subtitle { font-size: clamp(18px, 3vw, 22px); line-height: 1.6; opacity: 0.9; max-width: 700px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-primary { background: #fff; color: var(--color-primary); border: none; padding: 1rem 2rem; font-weight: 700; border-radius: var(--radius-md); font-size: 1rem; transition: all var(--transition-fast); }
.btn-primary:hover { background: var(--color-background); color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; padding: 1rem 2rem; font-weight: 700; border-radius: var(--radius-md); font-size: 1rem; transition: all var(--transition-fast); }
.btn-outline:hover { background: #fff; color: var(--color-primary); }
.mobile-cta { display: none; gap: 1rem; padding: 1rem; background: var(--color-surface); border-top: 1px solid var(--color-border); position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; }
.mobile-cta .btn { flex: 1; text-align: center; }
.mobile-cta .wa { background: #25D366; color: #fff; }
.mobile-cta .wa:hover { background: #1fb857; color: #fff; }
.mobile-cta .call { background: var(--color-primary); color: #fff; }
.mobile-cta .call:hover { background: var(--color-primary-dark); color: #fff; }
@media (max-width: 767.98px) { .mobile-cta { display: flex; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; transition: all var(--transition-fast); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-outline-primary { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline-primary:hover { background: var(--color-accent); color: #fff; }
.btn-success { background-color: #0F7A40; border-color: #0F7A40; color: #fff; }
.btn-success:hover { background-color: #0c6535; border-color: #0c6535; color: #fff; }
.btn-outline-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text-secondary); }
.btn-outline-secondary:hover { background: var(--color-background); border-color: var(--color-text-muted); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-normal), transform var(--transition-normal); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-title { font-weight: 600; color: var(--color-text-primary); margin-bottom: 0.5rem; }
.card-text { color: var(--color-text-secondary); line-height: 1.7; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition-normal); }
.service-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon { width: 64px; height: 64px; background: var(--color-accent-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--color-accent); }
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--color-text-secondary); margin-bottom: 1.5rem; }
.service-price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }

/* ============================================================
   WHY CHOOSE / TRUST CARDS
   ============================================================ */
.why-grid, .trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.why-card, .trust-card { text-align: center; padding: 2rem; }
.why-icon, .trust-icon { width: 80px; height: 80px; background: var(--color-accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; color: var(--color-accent); }
.why-icon svg, .trust-icon svg { width: 40px; height: 40px; }
.why-card h3, .trust-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background-color: var(--color-primary); color: #fff; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; }
.footer-tagline { margin-top: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; grid-column: 2 / -1; }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.9375rem; color: rgba(255,255,255,0.7); transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--transition-fast); }
.footer-legal a:hover { color: #fff; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: span 2; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.5; color: var(--color-text-primary); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--color-text-primary); }
.form-text { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.is-invalid { border-color: var(--color-error) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

/* ============================================================
   TABLES
   ============================================================ */
.table { width: 100%; margin-bottom: 1rem; color: var(--color-text-primary); border-collapse: collapse; }
.table th, .table td { padding: 1rem; vertical-align: middle; border-bottom: 1px solid var(--color-border); }
.table thead th { background: var(--color-background); color: var(--color-text-secondary); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--color-border); }
.table tbody tr:hover { background: var(--color-background); }
.table-responsive { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.table-light { background: var(--color-background); }
.text-nowrap { white-space: nowrap; }
.text-end { text-align: right; }
.fw-semibold { font-weight: 600; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; font-size: 0.9rem; border-radius: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--color-text-muted); padding: 0 0.5rem; }
.breadcrumb-item a { color: var(--color-accent); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--color-text-muted); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-md); border: 1px solid transparent; margin-bottom: 1rem; }
.alert-info { background: var(--color-accent-light); border-color: #bfdbfe; color: var(--color-primary-dark); }
.alert-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.alert-light { background: var(--color-background); border-color: var(--color-border); color: var(--color-text-secondary); }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-block; padding: 0.35em 0.7em; font-size: 0.75em; font-weight: 600; line-height: 1; border-radius: var(--radius-sm); }
.bg-primary { background-color: rgba(37, 99, 235, var(--bs-bg-opacity, 1)) !important; color: #fff; }
.bg-light { background: var(--color-background) !important; color: var(--color-text-primary); }
.bg-success { background-color: rgba(5, 150, 105, var(--bs-bg-opacity, 1)) !important; color: #fff; }
.bg-warning { background-color: rgba(217, 119, 6, var(--bs-bg-opacity, 1)) !important; color: #fff; }
.bg-danger { background-color: rgba(220, 38, 38, var(--bs-bg-opacity, 1)) !important; color: #fff; }
.bg-secondary { background: var(--color-text-muted) !important; color: #fff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.position-relative { position: relative !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.z-1000 { z-index: 1000 !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.w-100 { width: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: #047857 !important; }
.text-warning { color: #b45309 !important; }
.text-danger { color: var(--color-error) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fst-italic { font-style: italic !important; }
.small { font-size: 0.875rem !important; }
.lead { font-size: 1.125rem; font-weight: 400; color: var(--color-text-secondary); line-height: 1.7; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLL MARGIN
   ============================================================ */
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* ============================================================
   CART REDESIGN
   ============================================================ */
.progress-stepper { margin-bottom: 1.5rem; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0; }
.stepper-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.stepper-step::before { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--color-border); z-index: 0; }
.stepper-step:first-child::before { display: none; }
.stepper-circle { width: 28px; height: 28px; border-radius: 50%; background: var(--color-border); color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; z-index: 1; transition: all var(--transition-normal); }
.stepper-label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.stepper-step.active .stepper-circle { background: var(--color-accent); color: #fff; box-shadow: 0 0 0 4px var(--color-accent-light); }
.stepper-step.completed .stepper-circle { background: var(--color-success); color: #fff; }
.stepper-step.completed .stepper-label { color: var(--color-success); }
.stepper-step.active .stepper-label { color: var(--color-accent); }
@media (max-width: 575px) { .stepper-label { display: none; } }

.category-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.category-tab { padding: 0.5rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-size: 0.85rem; font-weight: 600; color: var(--color-text-secondary); transition: all var(--transition-fast); white-space: nowrap; }
.category-tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.category-tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.test-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: all var(--transition-fast); display: flex; flex-direction: column; }
.test-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.test-card.selected { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-light); background: var(--color-accent-light); }
.test-card .qty-stepper { display: flex; align-items: center; gap: 0.5rem; }
.test-card .qty-btn { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; }
.test-card .qty-value { min-width: 2.5rem; text-align: center; }

.addon-card { padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); transition: all var(--transition-fast); }
.addon-card:hover { border-color: var(--color-accent); }
.addon-card .form-check-input:checked + .form-check-label { color: var(--color-accent); }
.addon-card .form-check-input:checked { background-color: var(--color-accent); border-color: var(--color-accent); }

.cart-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); max-height: calc(100vh - var(--header-height) - 3rem); overflow-y: auto; }
.cart-sidebar .pay-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.cart-sidebar .empty-cart { padding: 2rem 1rem; }

.cart-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.cart-item:hover { border-color: var(--color-accent); }
.cart-item .qty-stepper { display: inline-flex; align-items: center; gap: 0.35rem; }
.cart-item .qty-btn { width: 28px; height: 28px; padding: 0; font-size: 1rem; line-height: 1; }
.cart-item .qty-value { min-width: 1.5rem; text-align: center; }
.cart-item .badge { font-size: 0.7rem; }

@media (max-width: 991.98px) {
  .cart-sidebar { position: fixed; bottom: 0; left: 0; right: 0; top: auto; max-height: 60vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); z-index: 1000; transform: translateY(100%); transition: transform var(--transition-normal); visibility: hidden; }
  .cart-sidebar.show { transform: translateY(0); visibility: visible; }
  #mobileCartToggle { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 1001; width: auto !important; max-width: 480px; margin: 0 auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
}

.bank-card { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.bank-card code { font-size: 1.1rem; background: var(--color-surface); padding: 0.5rem 1rem; border-radius: var(--radius-md); }

@media (max-width: 767.98px) {
  .test-card { padding: 1rem; }
  .test-card .d-flex.gap-2 { flex-direction: column; }
  .test-card .qty-stepper { width: 100%; justify-content: center; }
  .category-tabs { justify-content: center; }
  .progress-stepper { margin-bottom: 1rem; }
}

@media print {
  .header, .footer, .progress-stepper, .category-tabs, .cart-sidebar, .checkout-btn, .mobile-cart-toggle, .btn, .form-control, .form-check { display: none !important; }
  .cart-wrap { padding: 0 !important; max-width: none !important; }
  #paymentSection { display: block !important; }
  .bank-card, .payment-summary { page-break-inside: avoid; }
  body { background: white !important; color: black !important; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.test-card, .cart-item { animation: fadeInUp 0.3s ease both; }

.category-tab:focus-visible, .test-card:focus-within, .qty-btn:focus-visible,
.checkoutBtn:focus-visible, .form-control:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============================================================
   BRIDGE — Bootstrap compatibility
   ============================================================ */
:root { --bs-primary: var(--color-accent); --bs-body-font-family: var(--font-family-base); }
body { font-family: var(--font-family-base); color: var(--color-text-primary); background: var(--color-background); }
h1,h2,h3,h4,h5,h6 { color: var(--color-text-primary); font-weight: 700; }
.text-muted { color: var(--color-text-muted) !important; }
.lead { color: var(--color-text-secondary); font-size: 1.125rem; line-height: 1.7; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-normal); }
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: all var(--transition-fast); text-decoration: none; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; border-radius: var(--radius-sm); }
.btn-outline-primary { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline-primary:hover { background: var(--color-accent); color: #fff; }
.btn-success { background-color: #0F7A40; border-color: #0F7A40; color: #fff; }
.btn-success:hover { background-color: #0c6535; border-color: #0c6535; color: #fff; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; font-size: .9rem; border-radius: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--color-text-muted); }
.breadcrumb-item a { color: var(--color-accent); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--color-text-muted); }
.table { --bs-table-bg: transparent; color: var(--color-text-primary); border-color: var(--color-border); }
.table > :not(caption) > * > * { background: transparent; border-color: var(--color-border); padding: .85rem 1rem; }
.table thead th { background: var(--color-background); color: var(--color-text-secondary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--color-border); }
.table-responsive { border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.alert { border-radius: var(--radius-md); border-width: 1px; font-size: .95rem; }
.alert-info { background: var(--color-accent-light); border-color: #bfdbfe; color: var(--color-primary-dark); }
.alert-warning { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.alert-light { background: var(--color-background); border-color: var(--color-border); color: var(--color-text-secondary); }
.badge { border-radius: var(--radius-sm); font-weight: 600; padding: .35em .7em; }
.form-control, .form-select { border-radius: var(--radius-md); border-color: var(--color-border); padding: .7rem 1rem; }
.form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 .2rem var(--color-accent-light); }
.form-label { font-weight: 600; color: var(--color-text-primary); font-size: .9rem; }
.display-3, .display-4 { font-weight: 700; color: var(--color-text-primary); letter-spacing: -.02em; }
.list-unstyled li { color: var(--color-text-secondary); line-height: 1.7; }
a { color: var(--color-accent); } a:hover { color: var(--color-accent-hover); }
hr { border-color: var(--color-border); }
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }


/* Fallback: ensure animate-on-scroll elements become visible after 2s even without JS */
.animate-on-scroll {
  animation: fallback-reveal 0.6s ease forwards;
  animation-delay: 2s;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fallback-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll.visible {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}
/* ==========================================================================
   RESTORED COMPONENT LAYER
   The bespoke design-system rules were lost when the stylesheet was rebuilt.
   Everything below is appended last so it wins over the Bootstrap bridge.
   ========================================================================== */

/* --- Fixed header offset for inner pages --------------------------------- */
body.inner { padding-top: var(--header-height); }

/* --- Global guard for inline icons with no explicit dimensions ----------- */
/* Every unsized inline SVG on this site is an icon. Without this they
   expand to ~1400px and blow the layout apart (hero microproof, blog
   "Read more" arrows). */
svg:not([width]) { width: 1.25rem; height: 1.25rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero-content { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.hero h1, .hero h2, .hero h3, .hero .hero-title { color: #fff; }
.hero-microproof {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .75rem 2.25rem; margin-top: 2.5rem;
}
.hero-microproof span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.92);
}
.hero-microproof svg {
  width: 18px; height: 18px; flex: 0 0 auto;
  stroke: currentColor; fill: none;
}
.hero-alt-link {
  display: inline-block; margin-top: 1.75rem;
  color: rgba(255,255,255,.85); font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px;
}
.hero-alt-link:hover { color: #fff; }

/* --- Section headings ---------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section.alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .75rem;
}
.section-subtitle { color: var(--color-text-secondary); font-size: 1.05rem; margin: 0; }
.pricing-note { font-size: .95rem; color: var(--color-text-secondary); }
.pricing-note p { margin-bottom: .5rem; }
.pricing-note p:last-child { margin-bottom: 0; }
.pricing-note span { font-weight: 600; color: var(--color-text-primary); }

/* --- Service cards ------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card.featured { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-md); }
.service-card.featured:hover { box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-lg); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-accent-light); color: var(--color-accent);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }
.service-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--color-accent); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.service-content { flex: 1; }
.service-price { font-size: 1.35rem; font-weight: 700; color: var(--color-primary); margin: .75rem 0; }
.service-features {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: grid; gap: .4rem; font-size: .9rem; color: var(--color-text-secondary);
}
.service-features li { display: flex; gap: .5rem; align-items: flex-start; }
.service-features li::before { content: "\2713"; color: var(--color-success); font-weight: 700; flex: 0 0 auto; }
.service-link { font-weight: 600; text-decoration: none; }

/* --- Why choose / trust -------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.why-card {
  position: relative;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-accent-light); color: var(--color-accent); margin-bottom: 1rem;
}
.why-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.why-number {
  position: absolute; top: .9rem; right: 1.25rem;
  font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--color-border-light);
}
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.trust-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-accent-light); color: var(--color-accent); margin-bottom: .85rem;
}
.trust-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }

/* --- Delivery strip ------------------------------------------------------ */
.delivery-strip { background: var(--color-primary); color: #fff; padding: 1.5rem 0; }
.delivery-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2rem; text-align: center;
}
.delivery-icon { display: inline-flex; color: rgba(255,255,255,.9); }
.delivery-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.delivery-note {
  font-size: .95rem; color: var(--color-text-secondary);
  background: var(--color-accent-light); border: 1px solid #bfdbfe;
  border-radius: var(--radius-md); padding: .85rem 1.1rem; margin-bottom: 1rem;
}
.delivery-link { color: #fff; font-weight: 600; }

/* --- Steps --------------------------------------------------------------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; counter-reset: step;
}
.step { position: relative; padding-left: 3.25rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* --- Test finder --------------------------------------------------------- */
.finder { padding: 4rem 1rem; background: var(--color-background); }
.finder > .container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.finder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 2rem;
  align-items: start;
}
/* the two questions sit side by side in the main column */
.finder-grid > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  align-content: start;
}
.finder-grid > div:first-child > p { grid-column: 1 / -1; }
.finder-q { font-weight: 600; margin-bottom: 0; }
.finder-q h3 {
  font-size: 1.05rem; line-height: 1.35; font-weight: 700;
  margin: 0 0 .85rem; color: var(--color-text-primary);
}
.finder-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.finder-opt {
  display: inline-flex; align-items: center; justify-content: flex-start;
  min-height: 40px; padding: .45rem .95rem;
  font-family: inherit; font-size: .875rem; font-weight: 500;
  line-height: 1.25; text-align: left; color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 999px;
  cursor: pointer; transition: all var(--transition-fast);
}
.finder-opt:hover {
  border-color: var(--color-accent); background: var(--color-accent-light);
  color: var(--color-primary-dark);
}
.finder-opt.is-active,
.finder-opt[aria-pressed="true"] {
  border-color: var(--color-accent); background: var(--color-accent);
  color: #fff; box-shadow: 0 1px 2px rgb(37 99 235 / .35);
}
.finder-opt:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.finder-result {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8faff, var(--color-background));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.finder-result::before {
  content: "Your recommendation";
  display: block; margin-bottom: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-accent);
}
.finder-result h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .5rem; }
.finder-result .price {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.1; color: var(--color-primary); margin: 0 0 .75rem;
}
.finder-result > p {
  font-size: .9rem; line-height: 1.6; color: var(--color-text-secondary);
  margin: 0 0 1.25rem;
}
.finder-result .btn { width: 100%; }

/* --- FAQ ----------------------------------------------------------------- */
.faq-grid { display: grid; gap: 1rem; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.faq-item p { margin-bottom: 0; color: var(--color-text-secondary); }

/* --- CTA ----------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff; border-radius: var(--radius-xl); padding: 3rem; text-align: center;
}
.cta h2, .cta h3 { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.cta .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* --- Sticky mobile CTA --------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: none; padding: .75rem 1rem;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgb(0 0 0 / .06);
}
@media (max-width: 767px) {
  .mobile-cta { display: block; }
  body:has(.mobile-cta) { padding-bottom: 4.5rem; }
}
@media (max-width: 991px) {
  /* Keep the fixed cart toggle from covering the footer on the checkout page. */
  body:has(#mobileCartToggle) { padding-bottom: 5rem; }
}

/* --- Page hero (inner pages) --------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  color: #fff; padding: 3.5rem 0 3rem; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; margin: 0 auto; }

/* --- Blog ---------------------------------------------------------------- */
.blog-section { padding: 3.5rem 0 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex; align-items: center; justify-content: center;
}
.blog-card-image svg { width: 56px; height: 56px; stroke: rgba(255,255,255,.85); fill: none; }
.blog-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--color-text-muted); margin-bottom: .6rem;
}
.blog-category {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent);
}
.blog-card h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .6rem; }
.blog-card h2 a { color: var(--color-text-primary); text-decoration: none; }
.blog-card h2 a:hover { color: var(--color-accent); }
.blog-excerpt { color: var(--color-text-secondary); font-size: .95rem; margin-bottom: 1rem; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto; font-weight: 600; text-decoration: none;
}
.blog-read-more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; transition: transform var(--transition-fast); }
.blog-read-more:hover svg { transform: translateX(3px); }

/* --- Blog article (single post) ------------------------------------------ */
.article-hero {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  color: #fff; padding: 3.5rem 0 3rem;
}
.article-hero-content { max-width: 820px; margin: 0 auto; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1rem;
}
.article-category {
  display: inline-flex; align-items: center; padding: .2rem .65rem;
  border-radius: 999px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.article-title {
  color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15; margin: 0 0 1.25rem;
}
.article-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-weight: 700; font-size: .9rem;
}
.author-name { color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.author-role { color: rgba(255,255,255,.75); font-size: .8rem; }

.article-body { padding: 3rem 0 4rem; }
.article-content { max-width: 820px; margin: 0 auto; }

.toc {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  margin: 0 0 2rem; box-shadow: var(--shadow-sm);
}
.toc h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 .75rem;
}
.toc ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem;
}
.toc li { font-size: .9rem; }
.toc a { color: var(--color-text-secondary); }
.toc a:hover { color: var(--color-accent); }

.callout {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.25rem; margin: 1.75rem 0;
}
.callout h4 { font-size: 1rem; margin: 0 0 .4rem; color: var(--color-primary-dark); }
.callout p { color: var(--color-text-secondary); margin-bottom: 0; }

.article-image { margin: 2rem 0; }
.article-image > div { border-radius: var(--radius-lg); }
.article-image figcaption {
  margin-top: .5rem; text-align: center;
  font-size: .85rem; color: var(--color-text-muted);
}

.decision-tree {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0 2rem;
}
.decision-tree > h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.decision-step {
  display: flex; gap: 1rem; padding: .9rem 0;
  border-top: 1px solid var(--color-border-light);
}
.decision-step:first-of-type { border-top: 0; }
.step-number {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: #fff; font-weight: 700; font-size: .9rem;
}
.step-content h4 { font-size: .95rem; margin: 0 0 .25rem; }
.step-content p { margin: 0; font-size: .9rem; color: var(--color-text-secondary); }

table.test-comparison, table.comparison-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .875rem;
}
table.test-comparison th, table.test-comparison td,
table.comparison-table th, table.comparison-table td {
  padding: .65rem .85rem; border: 1px solid var(--color-border);
  text-align: left; vertical-align: top;
}
table.test-comparison thead th, table.comparison-table thead th {
  background: var(--color-primary); color: #fff; font-weight: 600;
  font-size: .78rem; letter-spacing: .03em; text-transform: uppercase;
}
table.test-comparison tbody tr:nth-child(even),
table.comparison-table tbody tr:nth-child(even) { background: var(--color-background); }

.share-buttons {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem; margin: 2rem 0;
}
.share-buttons > span { font-size: .9rem; font-weight: 600; color: var(--color-text-secondary); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text-secondary); transition: all var(--transition-fast);
}
.share-btn:hover {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}
.share-btn svg { width: 18px; height: 18px; }

.related-posts {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.related-posts > h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  text-decoration: none; transition: all var(--transition-fast);
}
.related-item:hover {
  border-color: var(--color-accent); box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.related-item-content h4 {
  font-size: .9rem; line-height: 1.3; margin: 0 0 .25rem;
  color: var(--color-text-primary);
}
.related-item-content .meta { font-size: .75rem; color: var(--color-text-muted); }

/* --- Pay page ------------------------------------------------------------ */
.pay-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.bank-card { background: var(--color-background); border: 1px dashed var(--color-border); }
.delivery-card { background: var(--color-background); border: 1px solid var(--color-border-light); }
.pay-card h3, .pay-card h4 { margin-bottom: .5rem; }
.test-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.test-card.selected { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent-light); }
.addon-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: .85rem 1rem; background: var(--color-surface);
}
.category-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-tab {
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-secondary); border-radius: 999px;
  padding: .4rem .95rem; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition-fast);
}
.category-tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.category-tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.qty-stepper { display: inline-flex; align-items: center; gap: .35rem; }
.qty-btn { min-width: 2rem; display: inline-flex; align-items: center; justify-content: center; }
.progress-stepper { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.stepper-step { flex: 1; text-align: center; }
.stepper-circle {
  width: 2rem; height: 2rem; margin: 0 auto .4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-border-light); color: var(--color-text-muted);
  font-weight: 700; font-size: .85rem; border: 2px solid transparent;
}
.stepper-step.active .stepper-circle { background: var(--color-accent); color: #fff; }
.stepper-step.completed .stepper-circle { background: var(--color-success); color: #fff; }
.stepper-label { font-size: .78rem; color: var(--color-text-muted); }
.stepper-step.active .stepper-label { color: var(--color-text-primary); font-weight: 600; }

/* --- Inner-page article typography --------------------------------------- */
body.inner article h2 { margin-top: 2.25rem; margin-bottom: .75rem; }
body.inner article h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
body.inner article p { color: var(--color-text-secondary); line-height: 1.75; }
body.inner article ul, body.inner article ol { color: var(--color-text-secondary); line-height: 1.75; }
body.inner article header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
body.inner article header .lead { color: var(--color-text-secondary); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 991px) {
  .finder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .cta { padding: 2rem 1.25rem; }
  .finder { padding: 2.5rem 1rem; }
  .finder > .container { padding: 1.5rem; border-radius: var(--radius-lg); }
  .finder-grid > div:first-child { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-hero { padding: 2.5rem 0 2.25rem; }
  .article-hero { padding: 2.5rem 0 2.25rem; }
  .article-body { padding: 2.25rem 0 3rem; }
  .toc ul { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  table.test-comparison, table.comparison-table {
    display: block; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
