/* WhiteFang Components */

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--duration), color var(--duration), border-color var(--duration),
              transform var(--duration-fast), box-shadow var(--duration-fast), opacity var(--duration);
  white-space: nowrap;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: none; }

.btn-primary {
  background: var(--teal);
  color: #04302A;
  border-color: var(--teal);
  font-weight: 700;
}
.btn-primary:hover {
  background: #0EE8C8;
  border-color: #0EE8C8;
  box-shadow: var(--shadow-glow-teal);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 700;
}
.btn-blue:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: var(--shadow-glow-blue);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-secondary);
  border-color: var(--border-med);
}
.btn-secondary:hover {
  background: var(--surface-4);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); transform: none; }

.btn-teal-outline {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: var(--teal-border);
}
.btn-teal-outline:hover {
  background: rgba(15,204,176,0.2);
  border-color: var(--teal);
}

.btn-sm  { padding: 8px 16px; font-size: 12px; min-height: 34px; }
.btn-lg  { padding: 14px 28px; font-size: var(--fs-body); min-height: 50px; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.badge-teal    { background: var(--teal-dim);  border-color: var(--teal-border);  color: var(--teal); }
.badge-blue    { background: var(--blue-dim);  border-color: var(--blue-border);  color: var(--blue-bright); }
.badge-purple  { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.25); color: var(--purple); }
.badge-gold    { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); color: var(--gold); }
.badge-new        { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); color: #10B981; }
.badge-fixed      { background: var(--blue-dim); border-color: var(--blue-border); color: var(--blue-bright); }
.badge-deprecated { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: var(--gold); }
.badge-neutral    { background: var(--surface-3); border-color: var(--border-med); color: var(--text-tertiary); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8,14,28,0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: height var(--duration), border-color var(--duration), background var(--duration);
}
.site-header.scrolled {
  height: var(--nav-height-sticky);
  border-color: var(--border);
  background: rgba(8,14,28,0.95);
}

[data-theme="light"] .site-header {
  background: rgba(244,247,251,0.88);
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(244,247,251,0.97);
}

.site-nav { height: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img, .nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 0;
}
/* Dark: grayscale→invert→contrast turns dark logo into white; light: show as-is */
:root .nav-logo-img,
[data-theme="dark"] .nav-logo-img {
  filter: grayscale(1) invert(1) contrast(1.5);
}
[data-theme="light"] .nav-logo-img {
  filter: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--duration-fast), background var(--duration-fast);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-link.active { color: var(--text-primary); }

.nav-link .chevron {
  transition: transform var(--duration);
  flex-shrink: 0;
  opacity: 0.5;
}
.nav-dropdown-wrapper.open .chevron { transform: rotate(180deg); }

.nav-dropdown-wrapper { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: var(--sp-2);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-dropdown-wrapper.open .nav-dropdown { display: flex; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px 12px;
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background var(--duration-fast), color var(--duration-fast);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--surface-3); color: var(--text-primary); }
.dropdown-item .dropdown-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

.nav-theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-theme-toggle:hover { color: var(--text-primary); background: var(--surface-2); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--duration), opacity var(--duration);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer — slides in from right */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: auto;
  z-index: 99;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-deepest);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  padding-top: calc(var(--nav-height) + 16px);
  padding-inline: var(--sp-6);
  padding-bottom: var(--sp-12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.nav-drawer.open { transform: translateX(0); }

/* Backdrop for drawer on non-home pages */
.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.nav-drawer-backdrop.open { opacity: 1; pointer-events: all; }

.drawer-link {
  display: block;
  padding: 12px 0;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-sub);
  text-decoration: none;
}
.drawer-link:hover { color: var(--text-primary); }

.drawer-section { padding-block: var(--sp-2); }
.drawer-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-sub);
  background: none; border-top: none; border-left: none; border-right: none;
  cursor: pointer;
}
.drawer-section-links {
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) 0 var(--sp-2) var(--sp-4);
}
.drawer-section-links.open { display: flex; }
.drawer-section-links a {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  padding: 6px 0;
  text-decoration: none;
}
.drawer-section-links a:hover { color: var(--text-primary); }

.drawer-ctas {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* Log in is in the drawer — hide it so Install free stays visible */
  .nav-right .btn-ghost { display: none; }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8) var(--sp-3);
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid var(--border);
  }
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: var(--sp-4);
  opacity: 0.9;
}
.footer-brand p {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 28ch;
}

.footer-col-title {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-col a {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.footer-social a {
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
  display: flex; align-items: center;
}
.footer-social a:hover { color: var(--text-primary); }

.footer-theme-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 11px; font-weight: 600;
  color: var(--text-tertiary);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.footer-theme-btn:hover { color: var(--text-primary); background: var(--surface-2); }

/* ══════════════════════════════════════════════
   POS INSTALL MODAL
══════════════════════════════════════════════ */
.pos-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.pos-modal.open { opacity: 1; pointer-events: all; }
.pos-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pos-modal-box {
  position: relative; z-index: 1;
  background: var(--bg-elevated); border: 1px solid var(--border-med);
  border-radius: var(--radius-lg); padding: var(--sp-8);
  width: 100%; max-width: 440px; margin: var(--sp-4);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.pos-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-tertiary);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.pos-modal-close:hover { color: var(--text-primary); background: var(--surface-2); }
.pos-modal-box h3 { font-size: var(--fs-h3); font-weight: 800; color: var(--text-primary); margin-bottom: var(--sp-2); }
.pos-modal-box p { font-size: var(--fs-body-sm); color: var(--text-secondary); margin-bottom: var(--sp-6); }
.pos-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.pos-option {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-3); border-radius: var(--radius-lg);
  border: 1px solid var(--border-med); text-decoration: none;
  transition: border-color var(--duration), background var(--duration); cursor: pointer;
}
a.pos-option:hover { border-color: var(--teal-border); background: var(--teal-dim); }
.pos-option-soon { opacity: 0.45; cursor: default; }
.pos-option-logo { font-size: 1.75rem; }
.pos-option-name { font-size: var(--fs-body-sm); font-weight: 700; color: var(--text-primary); }
.pos-option-sub { font-size: 11px; color: var(--text-tertiary); }
a.pos-option .pos-option-sub { color: var(--teal); }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.card:hover { border-color: var(--border-med); box-shadow: var(--shadow-card); }

.card--flat {
  background: var(--surface-1);
  border-color: var(--border-sub);
}
.card--flat:hover { background: var(--surface-2); border-color: var(--border); }

.card--teal {
  border-color: var(--teal-border);
  background: rgba(15,204,176,0.03);
}

.feature-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}
.feature-card p {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}

.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  background: var(--surface-3);
  color: var(--teal);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   ANNOUNCEMENT BAR
══════════════════════════════════════════════ */
.ann-bar {
  background: var(--teal-dim);
  border-bottom: 1px solid var(--teal-border);
  padding: 9px var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--teal);
  position: relative;
}
.ann-bar a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.ann-close {
  position: absolute;
  right: var(--sp-4);
  top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); opacity: 0.7;
  border-radius: var(--radius-sm);
  transition: opacity var(--duration-fast), background var(--duration-fast);
}
.ann-close:hover { opacity: 1; background: rgba(15,204,176,0.15); }

/* ══════════════════════════════════════════════
   HERO / CTA SECTION
══════════════════════════════════════════════ */
.cta-block {
  padding-block: var(--section-py);
  background: linear-gradient(135deg, #0D1628 0%, #0A1A3A 100%);
  border-top: 1px solid var(--border-med);
  text-align: center;
}
.cta-block .display-2 { margin-bottom: var(--sp-4); }
.cta-block .sub-line {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 52ch;
  margin-inline: auto;
}
.cta-block .fine-print {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  margin-top: var(--sp-6);
}
.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.form-group label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--fs-body-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--duration-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group input[type="range"] {
  padding: 0;
  background: none;
  border: none;
  accent-color: var(--teal);
  cursor: pointer;
  height: 4px;
}

/* ══════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-5) 0;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  gap: var(--sp-4);
  background: none; border: none;
}
.faq-trigger::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform var(--duration);
  line-height: 1;
}
.faq-item.open .faq-trigger::after { transform: rotate(45deg); }
.faq-body {
  display: none;
  padding-bottom: var(--sp-5);
}
.faq-body p {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: none;
}
.faq-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.faq-item.open .faq-body { display: block; }

/* ══════════════════════════════════════════════
   TABS
══════════════════════════════════════════════ */
.tab-group {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
  overflow-x: auto;
}
.tab-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  border-radius: 7px;
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
  border: 1px solid transparent;
}
.tab-btn.active {
  background: var(--blue-dim);
  color: var(--blue-bright);
  border-color: var(--blue-border);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════════════
   PRICING CARDS
══════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.pricing-card--current {
  border-color: var(--teal-border);
  background: rgba(15,204,176,0.03);
}
.pricing-card--current::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
}
.pricing-card--enterprise {
  border-color: rgba(168,85,247,0.25);
}
.pricing-card--enterprise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--purple);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: var(--sp-2);
}
.pricing-desc {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--sp-6);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-primary);
}
.pricing-period {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════
   STAT TILES
══════════════════════════════════════════════ */
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5) var(--sp-6);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}
.stat-label {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
}
.comparison-table th {
  text-align: center;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-med);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table .wf-col {
  background: var(--teal-dim);
  border-left: 1px solid var(--teal-border);
  border-right: 1px solid var(--teal-border);
}
.comparison-table tr td { padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--border-sub); color: var(--text-secondary); }
.comparison-table tr td:first-child { color: var(--text-primary); font-weight: 500; }
.comparison-table tr td.wf-col { background: rgba(15,204,176,0.03); }
.comparison-table tr:hover td { background: var(--surface-1); }
.comparison-table tr:hover td.wf-col { background: rgba(15,204,176,0.06); }
.check-yes  { color: var(--teal); font-weight: 700; }
.check-no   { color: var(--text-tertiary); opacity: 0.4; }
.check-partial { color: var(--gold); }
.comparison-table .section-row td {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: var(--sp-6);
  background: transparent !important;
  border-bottom: 1px solid var(--border-med);
}

/* ══════════════════════════════════════════════
   TRUST / LOGO STRIP
══════════════════════════════════════════════ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-8);
  padding-block: var(--sp-8);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}
.trust-item .trust-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}
.trust-item .trust-label {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
}
.trust-sep {
  width: 1px;
  height: 40px;
  background: var(--border-med);
}
@media (max-width: 600px) { .trust-sep { display: none; } }

/* ═══════════════════���══════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */
.section-head {
  margin-bottom: var(--sp-12);
}
.section-head--center { text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p {
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  max-width: 54ch;
}
.section-head--center p { margin-inline: auto; }

/* ═══════════════════════════════════════════���══
   SCROLL PROGRESS
══════════════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--teal);
  z-index: 9999;
  width: 0%;
  transition: width 100ms linear;
}

/* ══════════════════════════════════════════════
   ROI CALCULATOR
══════════════════════════════════════════════ */
.roi-input-group {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Range inputs */
.roi-range {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-med);
  border-radius: var(--radius-pill);
  outline: none;
  margin-top: var(--sp-3);
  cursor: pointer;
}
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.roi-range::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0 3px var(--teal-dim);
}

/* ══════════════════════════════════════════════
   MAP (Leaflet — matches MerchantMap.tsx)
══════════════════════════════════════════════ */
.wf-pin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.wf-you-are-here {
  width: 14px; height: 14px;
  background: var(--blue-bright);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(59,130,246,0.25); }
  50%       { box-shadow: 0 0 0 10px rgba(59,130,246,0.08); }
}

/* ══════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════ */
.trust-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo {
  font-size: var(--fs-body-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  opacity: 0.6;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.testimonial {
  padding: var(--sp-7);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
  font-size: 13px;
}
.testimonial-quote {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: var(--fs-body-sm); color: var(--text-primary); }
.testimonial-role { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }

/* ══════════════════════════════════════════════
   HERO MAP MOCK
══════════════════════════════════════════════ */
.hero-map-mock {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-med);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), var(--shadow-glow-teal);
  aspect-ratio: 9/16;
  max-height: 560px;
  background: #1a2035;
}
.mock-map-bg {
  position: absolute; inset: 0;
  background: var(--bg-card);
  overflow: hidden;
}
.mock-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}
.mock-map-road {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}
.mock-search-bar {
  position: absolute;
  top: 14px; left: 12px; right: 12px;
  background: rgba(17,29,48,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-med);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  z-index: 5;
}
.mock-pin {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 4;
  cursor: pointer;
  transition: transform 0.2s;
}
.mock-pin:hover { transform: scale(1.15); }
.mock-pin-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,14,28,0.9);
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}
.mock-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,22,40,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-med);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px 16px;
  z-index: 6;
}
.mock-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 0 auto 12px;
}
.mock-sheet-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.mock-merchant-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.mock-merchant-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mock-merchant-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.mock-merchant-sub  { font-size: 10px; color: var(--text-secondary); margin-top: 1px; }
.mock-credit-value  {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin-left: auto;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   STAT STRIP
══════════════════════════════════════════════ */
.stat-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip-item {
  flex: 1;
  padding: var(--sp-8) var(--sp-6);
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-strip-item:last-child { border-right: none; }
.stat-strip-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-strip-label { font-size: var(--fs-body-sm); color: var(--text-tertiary); margin-top: var(--sp-2); }

@media (max-width: 640px) {
  .stat-strip { flex-wrap: wrap; }
  .stat-strip-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat-strip-item:nth-child(even) { border-right: none; }
}

/* ══════════════════════════════════════════════
   PRESS STRIP
══════════════════════════════════════════════ */
.press-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  justify-content: center;
}
.press-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.press-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
}
.press-quote {
  font-size: var(--fs-body-sm);
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  max-width: 180px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   HOW-IT-WORKS STEPS
══════════════════════════════════════════════ */
.how-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-5);
  align-items: flex-start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   COOKIE CONSENT BANNER
══════════════════════════════════════════════ */
#wf-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(560px, calc(100vw - 32px));
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#wf-cookie-banner.wf-cc-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#wf-cookie-banner.wf-cc-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.wf-cc-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.wf-cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wf-cc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.wf-cc-dismiss {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color var(--duration), background var(--duration);
}
.wf-cc-dismiss:hover { color: var(--text-primary); background: var(--surface-2); }
.wf-cc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.wf-cc-details-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--blue-bright);
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wf-cc-details-toggle:hover { opacity: 0.8; }
.wf-cc-table {
  margin-bottom: 14px;
  overflow-x: auto;
}
.wf-cc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: var(--text-tertiary);
}
.wf-cc-table th {
  text-align: left;
  padding: 6px 8px 6px 0;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.wf-cc-table td {
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
  line-height: 1.5;
}
.wf-cc-table tr:last-child td { border-bottom: none; }
.wf-cc-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.wf-cc-btn {
  padding: 9px 18px;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--duration), color var(--duration), border-color var(--duration);
  white-space: nowrap;
}
.wf-cc-btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.wf-cc-btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.wf-cc-btn-primary {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
}
.wf-cc-btn-primary:hover { opacity: 0.88; }
@media (max-width: 479px) {
  .wf-cc-actions { flex-direction: column-reverse; }
  .wf-cc-btn { width: 100%; justify-content: center; }
}
