/* AInsteinWP Theme Supreme — Main Stylesheet v1.0.0 */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── DESIGN TOKENS ─── */
:root {
  --navy: #18405d;
  --navy-light: #1e5070;
  --navy-muted: #2a6080;
  --gold: #cb8732;
  --gold-light: #e7bd33;
  --gold-hover: #b5762b;
  --white: #ffffff;
  --off-white: #faf9f6;
  --gray-50: #faf9f6;
  --gray-100: #f0eeea;
  --gray-200: #d8d5cf;
  --gray-400: #8e8a82;
  --gray-600: #6b6360;
  --text: #2c2c2c;
  --text-muted: #6b6360;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(24,64,93,0.06);
  --shadow-md: 0 4px 20px rgba(24,64,93,0.08);
  --shadow-lg: 0 8px 40px rgba(24,64,93,0.12);
  --shadow-card: 0 2px 12px rgba(24,64,93,0.06), 0 0 0 1px rgba(24,64,93,0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --container: min(1200px, 90vw);

  /* Dropdown tokens (overridable via client.css) */
  --dd-bg: rgba(10, 15, 26, 0.95);
  --dd-border: rgba(255, 255, 255, 0.08);
  --dd-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  --dd-radius: 12px;
  --dd-item-color: rgba(255, 255, 255, 0.6);
  --dd-item-hover: #fff;
  --dd-accent: var(--gold);
  --dd-accent-bg: rgba(203, 135, 50, 0.06);
  --dd-divider: rgba(255, 255, 255, 0.06);
  --dd-left-w: 260px;
  --dd-right-w: 240px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  /* Mobile nav panel tokens (overridable via client.css) */
  --mob-nav-bg: var(--navy);
  --mob-nav-item-color: rgba(255, 255, 255, 0.85);
  --mob-nav-item-hover: #fff;
  --mob-nav-divider: rgba(255, 255, 255, 0.08);
  --mob-nav-active-bg: rgba(100, 180, 220, 0.1);
  --mob-nav-muted: rgba(255, 255, 255, 0.5);
  --mob-nav-close-color: rgba(255, 255, 255, 0.6);
}

/* ─── UTILITIES ─── */
.container { width: var(--container); margin: 0 auto; }
.section-pad { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-pad-lg { padding: clamp(4rem, 10vw, 8rem) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 24px; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ─── SECTION HEADINGS ─── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 1rem;
}
.section-intro {
  font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--text-muted);
  max-width: 680px; line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; padding: 14px 28px;
  border-radius: var(--radius-sm); transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 2px 8px rgba(203,135,50,0.3);
}
.btn-primary:hover { background: var(--gold-hover); box-shadow: 0 4px 16px rgba(203,135,50,0.4); transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline {
  background: transparent; color: var(--navy); border: 2px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--navy); background: rgba(24,64,93,0.03); }
.btn-dark {
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 8px rgba(24,64,93,0.2);
}
.btn-dark:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ─── TOP STRIPE ─── */
.top-stripe {
  background: var(--navy-light, #1a2744); border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.7);
}
.top-stripe-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: var(--container); margin: 0 auto; height: 36px;
}
.top-stripe-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.top-stripe-links li { list-style: none; }
.top-stripe-links a {
  color: rgba(255,255,255,0.7); text-decoration: none; padding: 4px 10px;
  transition: color 0.2s;
}
.top-stripe-links a:hover { color: #fff; }
.top-stripe-links li:not(:last-child) a::after {
  content: '|'; margin-left: 8px; color: rgba(255,255,255,0.2);
}
.top-stripe-right { display: flex; align-items: center; gap: 16px; }
.top-stripe-phone {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500;
}
.top-stripe-phone:hover { color: var(--gold); }
.top-stripe-social { display: flex; align-items: center; gap: 8px; }
.top-stripe-social a {
  color: rgba(255,255,255,0.6); transition: color 0.2s;
  display: flex; align-items: center;
}
.top-stripe-social a:hover { color: #fff; }
@media (max-width: 960px) {
  .top-stripe { display: none; }
}

/* ─── NAVIGATION ─── */
.nav {
  position: sticky; top: 0; z-index: 110;
  background: #0a0f1a; border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Header variants */
.nav--transparent {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
}
.nav--centered .nav-inner { justify-content: center; }
.nav--centered .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; width: var(--container); margin: 0 auto;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0; height: 100%; }
/* Desktop: transparent wrapper so nav-items layout as direct flex children */
.aiwp-nav-scroll { display: contents; }
.nav-item {
  position: relative; height: 72px; display: flex; align-items: center;
}
.nav-item > a {
  font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color var(--transition); padding: 0 10px; height: 100%;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav-item > a:hover, .nav-item > a.active { color: #fff; }
.nav-item > a .nav-chevron {
  width: 12px; height: 12px; transition: transform var(--transition);
}
.nav-item:hover > a .nav-chevron { transform: rotate(180deg); }

/* ─── Split Card Dropdown (desktop) ─── */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: var(--dd-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, visibility 0s 0.2s;
  z-index: 200;
}
/* Hover bridge — transparent area between nav-item and dropdown */
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-item:hover > .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.2s var(--ease-out), visibility 0s;
}

/* Left panel */
.nav-dd-left {
  width: var(--dd-left-w); padding: 8px; position: relative;
}

/* Sliding highlight */
.nav-dd-hlight {
  position: absolute; left: 8px; right: 8px; height: 0;
  background: rgba(255, 255, 255, 0.04); border-radius: 8px;
  pointer-events: none;
  transition: top 0.12s var(--ease-out), height 0.1s var(--ease-out), opacity 0.1s;
  opacity: 0; z-index: 0;
}

/* Gold accent line */
.nav-dd-accent {
  position: absolute; left: 4px; width: 2.5px; height: 0;
  background: var(--gold); border-radius: 0 3px 3px 0;
  pointer-events: none;
  transition: top 0.2s var(--ease-out), height 0.1s var(--ease-out), opacity 0.15s;
  opacity: 0; z-index: 2;
}

/* Dropdown items (level 2) */
.nav-dd-item {
  display: flex; align-items: center;
  padding: 10px 14px; font-size: 0.84rem; font-weight: 450;
  color: var(--dd-item-color); border-radius: 8px;
  transition: color 0.15s; position: relative; z-index: 1;
  cursor: default; width: 100%; white-space: nowrap;
}
.nav-dd-item:hover { color: var(--dd-item-hover); }
.nav-dd-item.is-active { color: #fff; }

/* Chevron right (on parent items) */
.nav-dd-chevron-right {
  width: 18px; height: 18px; flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  transition: transform 0.15s, color 0.15s;
  margin-left: auto; padding-left: 24px;
  box-sizing: content-box;
}
.nav-dd-item:hover .nav-dd-chevron-right {
  color: var(--gold-light); transform: translateX(2px);
}

/* Divider */
.nav-dd-divider {
  height: 1px; background: var(--dd-divider); margin: 4px 14px;
}

/* Right panel (sub-items) */
.nav-dd-right {
  width: 0; overflow: hidden; opacity: 0;
  border-left: 0px solid transparent; position: relative;
  transition: width 0.22s var(--ease-out),
              opacity 0.18s var(--ease-out),
              border-color 0.2s;
}
.nav-dd-right.is-visible {
  width: var(--dd-right-w); opacity: 1;
  border-left: 1px solid var(--dd-divider);
}

/* Sub-panel (one per category, stacked) */
.nav-dd-sub {
  position: absolute; inset: 0; padding: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.nav-dd-sub.is-active { position: relative; inset: auto; opacity: 1; pointer-events: auto; }

/* Sub-panel label */
.nav-dd-sub-label {
  display: block; padding: 6px 14px 8px;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); opacity: 0.7;
}

/* Sub-panel items (level 3) */
.nav-dd-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 0.82rem; font-weight: 400;
  color: rgba(255,255,255,0.55); border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-dd-sub a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0; transform: scale(0);
  transition: opacity 0.15s, transform 0.15s var(--ease-out);
  flex-shrink: 0;
}
.nav-dd-sub a:hover {
  color: #fff; background: rgba(255,255,255,0.03);
}
.nav-dd-sub a:hover::before {
  opacity: 0.7; transform: scale(1);
}

/* Level 4 — expandable sub-groups within right panel */
.nav-dd-sub-parent {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 0.82rem; font-weight: 500;
  color: var(--dd-accent); border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.nav-dd-sub-parent:hover {
  color: #fff; background: rgba(255,255,255,0.03);
}
.nav-dd-sub-chevron {
  width: 14px; height: 14px; margin-left: auto; flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
  color: rgba(255,255,255,0.35);
}
.nav-dd-sub-group.is-open .nav-dd-sub-chevron {
  transform: rotate(180deg); color: var(--dd-accent);
}
.nav-dd-sub-children {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-dd-sub-group.is-open .nav-dd-sub-children {
  max-height: 500px;
}
.nav-dd-sub-children a { padding-left: 28px; }

/* ─── Overview link (hidden on desktop, visible on mobile) ─── */
.nav-dd-overview,
.nav-dd-sub a.nav-dd-overview,
.nav-dd-sub-children a.nav-dd-overview,
.nav-dd-c-sub a.nav-dd-overview { display: none; }

/* ─── Dropdown: Mobile overrides ─── */
@media (max-width: 960px) {
  /* Reset desktop nav-item sizing for mobile accordion */
  .nav-item {
    height: auto; flex-direction: column; align-items: stretch;
  }
  .nav-item > a {
    height: auto;
  }

  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; display: block;
    background: transparent; border: none; border-radius: 0;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .nav-dropdown::before { display: none; }
  .nav-item.mob-open > .nav-dropdown { max-height: 800px; }

  .nav-dd-left {
    width: 100%; padding: 0;
  }
  /* Hide desktop-only UI elements on mobile */
  .nav-dd-hlight, .nav-dd-accent, .nav-dd-chevron-right { display: none; }

  .nav-dd-item {
    padding: 7px 0; font-size: 0.88rem; font-weight: 500;
    color: var(--mob-nav-item-color); border-radius: 0;
  }
  .nav-dd-item:hover { color: var(--mob-nav-item-hover); }

  /* Overview link — visible on mobile (must beat sub-panel specificity) */
  .nav-dd-overview,
  .nav-dd-sub a.nav-dd-overview,
  .nav-dd-sub-children a.nav-dd-overview,
  .nav-dd-c-sub a.nav-dd-overview {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 0; font-size: 0.84rem; font-weight: 500;
    color: var(--gold-light); border-radius: 0;
    border-bottom: 1px solid var(--mob-nav-divider);
    margin-bottom: 4px;
  }
  .nav-dd-overview:hover { color: var(--mob-nav-item-hover); }

  .nav-dd-divider { margin: 4px 0; }

  /* Right panel — hidden on mobile; sub-panels moved inline by JS */
  .nav-dd-right { display: none; }

  /* Sub-panels when moved inline on mobile */
  .nav-dd-sub.nav-dd-sub-mobile {
    position: static; opacity: 1; pointer-events: auto;
    padding: 0 0 0 16px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .nav-dd-sub.nav-dd-sub-mobile.mob-visible {
    max-height: 800px;
  }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-label { display: none; }
  .nav-dd-sub.nav-dd-sub-mobile a {
    padding: 5px 0; font-size: 0.84rem; color: var(--mob-nav-muted);
    gap: 0; border-radius: 0;
  }
  .nav-dd-sub.nav-dd-sub-mobile a::before { display: none; }
  .nav-dd-sub.nav-dd-sub-mobile a:hover {
    color: var(--mob-nav-item-hover); background: transparent;
  }

  /* Level 4 mobile — expandable sub-groups */
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-parent {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--dd-accent); font-weight: 500; padding: 9px 0;
    font-size: 0.86rem; border-radius: 0; width: 100%;
  }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-chevron { display: none; }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-parent::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--mob-nav-muted);
    flex-shrink: 0; transition: transform 0.2s;
  }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-group.is-open .nav-dd-sub-parent::after {
    border-top-color: var(--dd-accent);
    transform: rotate(180deg);
  }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-children {
    padding-left: 16px;
    border-left: 2px solid var(--mob-nav-active-bg);
    margin-left: 4px;
  }
  .nav-dd-sub.nav-dd-sub-mobile .nav-dd-sub-children a {
    padding-left: 8px;
  }

  /* Mobile parent chevron indicator (show down arrow instead) */
  .nav-dd-parent::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--mob-nav-muted);
    margin-left: auto; transition: transform 0.2s;
  }
  .nav-dd-parent.mob-open-sub {
    color: var(--dd-accent);
    background: var(--mob-nav-active-bg);
    margin-left: -8px; margin-right: 0;
    padding-left: 16px; padding-right: 8px;
    border-radius: 4px;
    width: calc(100% + 8px);
  }
  .nav-dd-parent.mob-open-sub::after {
    transform: rotate(180deg);
    border-top-color: var(--dd-accent);
  }
}

/* ═══════════════════════════════════════════════
   CASCADE DROPDOWN — Desktop
   Single column, sub-cards float to the right.
   Shared classes (.nav-dd-item, .nav-dd-overview, .nav-dd-parent, L4)
   are already styled above — only cascade-specific rules below.
   ═══════════════════════════════════════════════ */

/* Force column layout when dropdown contains cascade children */
.nav-dropdown:has(.nav-dd-c-parent) {
  flex-direction: column; width: 280px; padding: 8px;
}

/* Parent group wrapper */
.nav-dd-c-parent {
  position: relative;
}

/* Active parent highlight when sub-card visible */
.nav-dd-c-parent:hover > .nav-dd-item {
  color: #fff; background: rgba(255,255,255,0.06);
}

/* Sub-card — cascading card to the right */
.nav-dd-c-sub {
  position: absolute;
  top: -8px; left: calc(100% + 8px);
  width: 240px;
  background: var(--dd-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.95) translateX(-8px);
  transform-origin: top left;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.25s;
  z-index: 210;
}

/* Hover bridge — invisible zone between dropdown and sub-card */
.nav-dd-c-sub::before {
  content: ''; position: absolute; top: 0; left: -12px; width: 14px; bottom: 0;
}

/* Show sub-card on parent hover */
.nav-dd-c-parent:hover > .nav-dd-c-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: scale(1) translateX(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

/* Sub-card items (L3) */
.nav-dd-c-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 0.82rem; font-weight: 400;
  color: rgba(255,255,255,0.55); border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-dd-c-sub a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0; transform: scale(0);
  transition: opacity 0.15s, transform 0.15s var(--ease-out);
  flex-shrink: 0;
}
.nav-dd-c-sub a:hover {
  color: #fff; background: rgba(255,255,255,0.03);
}
.nav-dd-c-sub a:hover::before {
  opacity: 0.7; transform: scale(1);
}

/* L4 sub-parent inside cascade sub-card */
.nav-dd-c-sub .nav-dd-sub-parent {
  color: var(--dd-accent);
}

/* ─── Cascade: Mobile overrides ─── */
@media (max-width: 960px) {
  /* Sub-card → inline accordion */
  .nav-dd-c-sub {
    position: static; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    background: transparent; border: none; border-radius: 0;
    box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0 0 0 10px;
    margin-left: 10px;
    border-left: 2px solid var(--dd-accent);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  }
  .nav-dd-c-sub::before { display: none; }
  .nav-dd-c-sub.mob-visible { max-height: 800px; }
  .nav-dd-c-sub .nav-dd-sub-label { display: none; }

  .nav-dd-c-sub a {
    padding: 5px 0; font-size: 0.84rem;
    color: var(--mob-nav-muted);
    gap: 0; border-radius: 0;
  }
  .nav-dd-c-sub a::before { display: none; }
  .nav-dd-c-sub a:hover {
    color: var(--mob-nav-item-hover); background: transparent;
  }

  /* L4 inside cascade sub-card on mobile */
  .nav-dd-c-sub .nav-dd-sub-parent {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--dd-accent); font-weight: 500; padding: 9px 0;
    font-size: 0.86rem; border-radius: 0; width: 100%;
  }
  .nav-dd-c-sub .nav-dd-sub-chevron { display: none; }
  .nav-dd-c-sub .nav-dd-sub-parent::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--mob-nav-muted);
    flex-shrink: 0; transition: transform 0.2s;
  }
  .nav-dd-c-sub .nav-dd-sub-group.is-open .nav-dd-sub-parent::after {
    border-top-color: var(--dd-accent);
    transform: rotate(180deg);
  }
  .nav-dd-c-sub .nav-dd-sub-children {
    padding-left: 16px;
    border-left: 2px solid var(--mob-nav-divider);
    margin-left: 4px;
  }
  .nav-dd-c-sub .nav-dd-sub-children a {
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dd-c-sub {
    transition-duration: 0.01ms !important;
  }
}

/* Nav CTA */
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 9px 20px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important; font-size: 0.85rem !important;
  margin-left: 0.75rem !important;
}
.nav-cta:hover { background: var(--gold-hover) !important; }

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer; z-index: 10001;
  position: relative;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              opacity 0.25s ease;
  transform-origin: center;
}
/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop — dark overlay + blur behind the 50px gap */
.aiwp-nav-backdrop {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.aiwp-nav-backdrop.visible { opacity: 1; pointer-events: auto; }

/* X close tab — hidden on desktop, visible inside mobile panel */
.aiwp-nav-close-tab {
  display: none;
}

/* Mobile logo inside nav — hidden on desktop */
.nav-mobile-logo {
  display: none;
}

/* Mobile deco circle — hidden on desktop */
.nav-mobile-deco {
  display: none;
}

/* Mobile contact footer inside nav */
.aiwp-nav-mobile-footer {
  display: none;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: flex !important; }

  /* Panel — fixed position + transform are !important to guard against clean-page resets */
  .nav-links {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    transform: translateX(-100%) !important;
    flex-direction: column;
    z-index: 9998;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    width: calc(100vw - 50px);
    max-width: 360px;
    background: var(--mob-nav-bg);
    padding: 24px 20px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open { transform: translateX(0) !important; }

  /* When menu is open, reposition the hamburger X inside the panel */
  .nav-toggle.active {
    position: fixed !important;
    top: 20px;
    left: min(calc(100vw - 50px - 44px), 316px);
    z-index: 10000;
  }

  /* Chevrons right-aligned on mobile */
  .nav-item > a {
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-item > a .nav-chevron {
    margin-left: auto;
    width: 14px; height: 14px;
  }

  /* Scroll wrapper becomes flex column so mobile-footer can use margin-top:auto */
  .aiwp-nav-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  /* Mobile nav item links */
  .nav-item > a {
    color: var(--mob-nav-item-color);
    font-size: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--mob-nav-divider);
  }
  .nav-item > a:hover,
  .nav-item > a.active {
    color: var(--mob-nav-item-hover);
  }

  /* Mobile logo */
  .nav-mobile-logo {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mob-nav-divider);
  }
  .nav-mobile-logo img { height: 32px; width: auto; }

  /* Mobile contact footer */
  .aiwp-nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--mob-nav-divider);
    font-size: 0.85rem;
    color: var(--mob-nav-muted);
  }
  .aiwp-nav-mobile-footer a {
    color: var(--mob-nav-item-color);
    display: flex; align-items: center; gap: 8px;
  }
  .aiwp-nav-mobile-footer a:hover { color: var(--mob-nav-item-hover); }
  .aiwp-nav-mobile-footer svg { width: 18px; height: 18px; flex-shrink: 0; }
  .aiwp-nav-mobile-social {
    display: flex; gap: 16px; padding-top: 4px;
  }
  .aiwp-nav-mobile-social a { display: inline-flex; }
  .aiwp-nav-mobile-social svg { width: 20px; height: 20px; }

  /* Dropdown accordion — structural */
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    max-height: 0; overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-item.mob-open > .nav-dropdown {
    max-height: 800px;
  }
  .nav-dropdown a {
    color: var(--mob-nav-muted);
    font-size: 0.9rem;
  }
  .nav-dropdown a:hover { color: var(--mob-nav-item-hover); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .aiwp-nav-backdrop,
  .aiwp-nav-close-tab,
  .nav-toggle span,
  .nav-dropdown,
  .nav-dd-hlight,
  .nav-dd-accent,
  .nav-dd-right,
  .nav-dd-sub,
  .nav-dd-item,
  .nav-dd-chevron-right {
    transition-duration: 0.01ms !important;
  }
}

/* ─── HERO ─── */
.hero {
  position: relative; color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden; min-height: 520px;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-content {
  background: rgba(24,64,93,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255,255,255,0.06);
  animation: slideInPanel 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}
@keyframes slideInPanel {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  position: relative; z-index: 1;
  width: 100%; margin: 0; padding-left: clamp(1.5rem, 5vw, 60px); padding-right: 20px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12; margin-bottom: 1rem;
  color: var(--white);
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 1.5rem;
}

/* Branch chips in hero */
.hero-branches {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem;
}
.hero-branches span {
  font-size: 18px; font-weight: 500;
  color: rgb(255, 255, 255);
}
.hero-branches a {
  font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.85);
  padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.hero-branches a:hover {
  background: rgba(203,135,50,0.15); border-color: rgba(203,135,50,0.3);
  color: var(--gold-light);
}

/* Benefit list */
.hero-benefits {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 2rem;
}
@media (min-width: 520px) { .hero-benefits { grid-template-columns: 1fr 1fr; } }
.hero-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.hero-benefits svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }


/* ─── CUSTOMER LOGOS STRIP ─── */
.logos-strip {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem 0; overflow: hidden;
}
.logos-strip--bg-white { background: #fff; }
.logos-strip--bg-navy  { background: var(--navy); border-color: var(--navy); }
.logos-strip--bg-transparent { background: transparent; border: none; }

.logos-strip-inner {
  display: flex; align-items: center;
  gap: var(--ls-gap, 2.5rem);
  animation: logoscroll var(--ls-speed, 30s) linear infinite;
  width: max-content;
}

.logos-strip-inner > img,
.logos-strip-item img {
  height: var(--ls-height, 76px); width: auto; max-width: none; object-fit: contain;
  transition: var(--transition);
}
.logos-strip-item {
  display: inline-flex; align-items: center; text-decoration: none;
}

/* Grayscale mode (opt-in via modifier class) */
.logos-strip--grayscale .logos-strip-inner > img,
.logos-strip--grayscale .logos-strip-item img {
  opacity: 0.45; filter: grayscale(1);
}
.logos-strip--grayscale .logos-strip-inner > img:hover,
.logos-strip--grayscale .logos-strip-item:hover img {
  opacity: 0.8; filter: grayscale(0);
}

/* Pause on hover */
.logos-strip--pause:hover .logos-strip-inner {
  animation-play-state: paused;
}

@keyframes logoscroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── BRANCH SECTION ─── */
.branches { background: var(--white); }
.branch-scroller {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 1rem 0 1.5rem;
  scrollbar-width: none;
}
.branch-scroller::-webkit-scrollbar { display: none; }
.branch-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.branch-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.branch-card:hover::before { transform: scaleX(1); }
.branch-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-200); transform: translateY(-2px); }
.branch-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: rgba(24,64,93,0.04); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem;
}
.branch-card-icon svg { width: 24px; height: 24px; color: var(--navy); }
.branch-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.5rem; line-height: 1.3;
}
.branch-card p {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1rem;
}
.branch-card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-hover);
  display: inline-flex; align-items: center; gap: 6px;
}
.branch-card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.branch-card:hover .branch-card-link svg { transform: translateX(4px); }

/* Scroll indicators */
.scroll-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 0.75rem;
}
.scroll-hint-text { font-size: 0.78rem; color: var(--gray-400); }
.scroll-hint-dots { display: flex; gap: 6px; }
.scroll-hint-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200);
  transition: var(--transition);
}
.scroll-hint-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

@media (min-width: 768px) {
  .branch-card { flex: 0 0 340px; }
}

/* ─── Slider: arrows + drag ─── */
.gs-slider-wrap { position: relative; }
.branch-scroller { cursor: grab; }
.branch-scroller.dragging { cursor: grabbing; scroll-snap-type: none; }
.gs-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(240,242,244,0.96); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.13);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.gs-slider-arrow:hover {
  background: #fff; transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 22px rgba(0,0,0,0.18);
}
.gs-slider-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.gs-slider-arrow svg { width: 22px; height: 22px; color: #333; flex-shrink: 0; }
.gs-slider-arrow--prev { left: -26px; }
.gs-slider-arrow--next { right: -26px; }
@media (max-width: 767px) {
  .gs-slider-arrow { display: none; }
}

/* ─── Section dark navy ─── */
.section-navy { background: #022a3a !important; }
.section-navy .section-eyebrow { color: var(--gold-light, #f0c060); }
.section-navy .section-title  { color: #fff; }
.section-navy .section-intro  { color: rgba(255,255,255,0.78); }
.section-navy p               { color: rgba(255,255,255,0.78); }

/* ─── Pagination ─── */
.gs-pagination { display: flex; align-items: center; gap: 6px; padding: 1.5rem 0; flex-wrap: wrap; }
.gs-pagination a, .gs-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--gray-100); transition: var(--transition);
}
.gs-pagination a:hover { background: var(--gray-100); border-color: var(--gray-200); }
.gs-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.gs-pagination .dots { background: none; border: none; color: var(--gray-400); pointer-events: none; }

/* ─── INTEGRATIONS ─── */
.integrations { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.integrations::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(203,135,50,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.integrations .section-eyebrow { color: var(--gold-light); }
.integrations .section-eyebrow::before { background: var(--gold-light); }
.integrations .section-title { color: #fff; }
.integrations .section-intro { color: rgba(255,255,255,0.6); }

.integration-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 2.5rem; position: relative; z-index: 1;
}
@media (min-width: 600px) { .integration-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .integration-grid { grid-template-columns: repeat(6, 1fr); } }

.integration-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center;
  transition: var(--transition);
}
.integration-item:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(203,135,50,0.3);
  transform: translateY(-2px);
}
.integration-item svg { width: 80px; height: 80px; margin: 0 auto 0.75rem; }
.integration-item-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.integration-item-type { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.integration-flow {
  margin-top: 2.5rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 1.75rem; position: relative; z-index: 1;
}
.integration-flow p {
  font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7;
}
.integration-flow strong { color: #fff; }
.integration-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem;
}

/* ─── FEATURES ─── */
.features { background: var(--off-white); }
.feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem;
}
@media (min-width: 600px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: var(--transition); position: relative;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-200); }
.feature-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-muted));
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-card-icon svg { width: 22px; height: 22px; color: var(--gold); }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; justify-content: center; }

/* ─── PRICING ─── */
.pricing { background: var(--white); }
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2.5rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 2rem; transition: var(--transition); position: relative;
  background: var(--white); color: #2c2c2c;
}
.pricing-card.featured {
  border-color: var(--gold); box-shadow: 0 4px 24px rgba(203,135,50,0.12);
}
.pricing-card.featured::before {
  content: 'Populärast'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pricing-name {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #8e8a82; margin-bottom: 0.75rem;
}
.pricing-price {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--navy);
  line-height: 1;
}
.pricing-price span { font-size: 1rem; color: #8e8a82; font-family: 'Inter', sans-serif; }
.pricing-desc {
  font-size: 0.88rem; color: #6b6360; margin: 1rem 0 1.5rem;
  line-height: 1.5; min-height: 44px;
}
.pricing-card .check-list li { color: #2c2c2c; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── TRUST ─── */
.trust { background: var(--off-white); }
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem;
}
@media (min-width: 600px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(5, 1fr); } }

.trust-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 1.25rem;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}
.trust-item svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust-item-text { font-size: 0.9rem; font-weight: 500; color: var(--navy); line-height: 1.4; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.testimonials::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(203,135,50,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.testimonials .section-eyebrow { color: var(--gold-light); }
.testimonials .section-eyebrow::before { background: var(--gold-light); }
.testimonials .section-title { color: #fff; }

.testimonial-intro {
  font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 2rem;
  max-width: 540px;
}

.testimonial-scroller {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding: 0.5rem 0 1.5rem;
  scrollbar-width: none; position: relative; z-index: 1;
}
.testimonial-scroller::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 320px; scroll-snap-align: start;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: var(--transition); position: relative;
}
@media (min-width: 768px) { .testimonial-card { flex: 0 0 380px; } }
.testimonial-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 12px; left: 20px;
  font-family: var(--font-display); font-size: 4rem; color: var(--gold);
  opacity: 0.2; line-height: 1;
}
.testimonial-text {
  font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.65;
  margin-bottom: 1.25rem; font-style: italic; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
}
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.testimonial-company { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.testimonial-branch {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  color: var(--gold-light); background: rgba(203,135,50,0.1);
  padding: 2px 10px; border-radius: 100px; margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.testimonial-cta {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
}
.testimonial-cta p {
  font-size: 1.05rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem;
}
.testimonial-cta strong { color: #fff; }

/* ─── SEO CONTENT ─── */
.seo-content { background: var(--white); }
.seo-grid {
  display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 2rem;
}
@media (min-width: 768px) { .seo-grid { grid-template-columns: 1fr 1fr; } }
.seo-block {
  padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100);
}
@media (min-width: 768px) {
  .seo-block { padding: 1.5rem 2rem; }
  .seo-block:nth-child(odd) { border-right: 1px solid var(--gray-100); }
}
.seo-block h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 10px;
}
.seo-block h3 svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.seo-block p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.seo-block ul { margin-top: 0.5rem; }
.seo-block ul li {
  font-size: 0.85rem; color: var(--text-muted); padding: 3px 0 3px 18px;
  position: relative;
}
.seo-block ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.seo-lead {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 1rem; max-width: 800px;
}

/* ─── FAQ ─── */
.faq { background: var(--off-white); }
.faq-list { max-width: 800px; margin: 2rem auto 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-100); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 600; color: var(--navy);
  text-align: left; cursor: pointer; gap: 1rem;
  background: none; border: none; font-family: inherit;
}
.faq-question svg {
  width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); color: var(--gold); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7;
}

/* ─── FINAL CTA ─── */
.final-cta {
  background: var(--navy); color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(203,135,50,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta .section-title { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.final-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }
/* Outline/secondary buttons on dark backgrounds */
.final-cta .btn-outline,
.cta-banner .btn-outline {
  color: #fff; border-color: rgba(255,255,255,0.35);
}
.final-cta .btn-outline:hover,
.cta-banner .btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,0.08); color: #fff;
}

/* ─── FOOTER ─── */
.footer {
  background: #0e0e2a; color: rgba(255,255,255,0.5);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
  .footer-grid[data-cols="2"] { grid-template-columns: 1.5fr 1fr; }
  .footer-grid[data-cols="3"] { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid[data-cols="4"] { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.3); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: rgba(255,255,255,0.55);
  padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-brand-name { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand-info { font-size: 0.82rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom > div:first-child a::before { content: '·'; margin: 0 0.5em; color: rgba(255,255,255,0.2); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: flex; }
.footer-social svg { width: 18px; height: 18px; }

/* Footer badges row (certifications, awards) */
.footer-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 2rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 12px 16px;
  height: 70px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.footer-badge img {
  height: 46px;
  width: auto;
  display: block;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos-strip-inner { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── PRINT ─── */
@media print {
  .nav, .logos-strip, .final-cta { display: none; }
  body { color: #000; }
  .hero { background: #fff; color: #000; }
}

/* ─── PRODUCT PAGE SPECIFIC ─── */

/* Gold outline button (kassasystem.html) */
.btn-gold-outline {
  background: transparent; color: var(--gold); border: 2px solid var(--gold);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--navy); }

/* Breadcrumb navigation — supports nav.breadcrumb + ol.breadcrumb-list AND nav.breadcrumb-nav + ol.breadcrumb */
nav.breadcrumb,
nav.breadcrumb-nav {
  background: #23234c; border-bottom: none;
  padding: 12px 0;
}
nav.breadcrumb .container,
nav.breadcrumb-nav .container { width: var(--container); margin: 0 auto; }
.breadcrumb-list,
nav.breadcrumb-nav ol {
  display: flex; align-items: center; gap: 0;
  font-size: 13px; color: var(--gray-400);
  list-style: none; margin: 0; padding: 0;
  background: none;
}
.breadcrumb-list li,
nav.breadcrumb-nav ol li { display: flex; align-items: center; }
.breadcrumb-list li:not(:last-child)::after,
nav.breadcrumb-nav ol li:not(:last-child)::after {
  content: '/'; margin: 0 8px; color: var(--gray-200); font-weight: 400;
}
.breadcrumb-list a,
nav.breadcrumb-nav ol a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb-list a:hover,
nav.breadcrumb-nav ol a:hover { color: var(--gold-hover); }
.breadcrumb-list span,
nav.breadcrumb-nav ol span { color: var(--gray-400); }
.breadcrumb-list svg,
nav.breadcrumb-nav ol svg { width: 14px; height: 14px; }

/* Content sections */
.content-section { background: var(--white); }
.content-section:nth-child(even) { background: var(--off-white); }

.content-block {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .content-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .content-block.reverse { direction: rtl; }
  .content-block.reverse > * { direction: ltr; }
}
.content-block.full { grid-template-columns: 1fr; max-width: 800px; }

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2; color: var(--navy); margin-bottom: 0.75rem;
}
.content-block p {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 0.75rem;
}
.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

/* Check list */
.check-list { margin: 1rem 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: 0.92rem; color: var(--text);
}
.check-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* Info card alongside content */
.content-card {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 2rem;
}
/* Product image wrapper */
.img-fade {
  border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.img-fade img { display: block; width: 100%; height: auto; }
.content-card.dark {
  background: var(--navy); border-color: transparent; color: #fff;
}
.content-card.dark h3 { color: var(--gold); }
.content-card.dark p { color: rgba(255,255,255,0.7); }
.content-card.dark .check-list li { color: rgba(255,255,255,0.85); }

/* Difference section */
.diff-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .diff-grid.diff-grid--3col { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 900px) { .diff-grid.diff-grid--4col { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 600px) and (max-width: 899px) { .diff-grid.diff-grid--4col { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.diff-card {
  border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 1.75rem; background: var(--white);
}
.diff-card.highlight {
  border-color: var(--gold); background: linear-gradient(135deg, rgba(203,135,50,0.03), rgba(203,135,50,0.08));
}
.diff-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px;
}
.diff-card h3 svg { width: 22px; height: 22px; }
.diff-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.diff-card .check-list a {
  color: var(--navy); text-decoration: underline; text-decoration-color: rgba(24,64,93,0.25);
  text-underline-offset: 2px; transition: text-decoration-color 0.2s;
}
.diff-card .check-list a:hover { text-decoration-color: var(--navy); }

/* ─── Pricing card accordion (mobile only) ─── */
.diff-card-toggle { display: none; }
@media (max-width: 599px) {
  .diff-card-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 0; margin: 0.25rem 0 0.5rem;
    background: none; border: 1px solid var(--gray-100); border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; color: var(--gold);
    cursor: pointer; transition: background 0.2s, border-color 0.2s;
  }
  .diff-card-toggle:hover { background: rgba(203,135,50,0.04); border-color: var(--gold); }
  .diff-card-toggle svg { width: 16px; height: 16px; transition: transform 0.3s; }
  .diff-card.expanded .diff-card-toggle svg { transform: rotate(180deg); }
  .diff-card.expanded .diff-card-toggle { border-color: var(--gold); }
  .diff-card-details {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .diff-card.expanded .diff-card-details { max-height: 800px; }
}

/* ─── Comparison table with scroll ─── */
.aiwp-table-wrap {
  position: relative;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.aiwp-table-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
  background: linear-gradient(to right, transparent, rgba(245,245,247,0.95));
  pointer-events: none; z-index: 2;
  transition: opacity 0.3s;
}
.aiwp-table-wrap.scrolled-end::after { opacity: 0; }
.aiwp-table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.aiwp-compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  background: #fff; min-width: 580px;
}
.aiwp-compare-table th {
  padding: 1rem; text-align: center; background: var(--navy); color: #fff;
  font-weight: 600; white-space: nowrap;
}
.aiwp-compare-table th:first-child { text-align: left; }
.aiwp-compare-table th.featured-col { background: var(--gold); }
.aiwp-compare-table td {
  padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid var(--gray-100);
}
.aiwp-compare-table td:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
.aiwp-compare-table tr:nth-child(even) td { background: var(--off-white); }
.aiwp-compare-table td.featured-col { font-weight: 600; }
.aiwp-compare-table .check-mark { color: var(--gold); }
.aiwp-compare-table .dash { color: var(--gray-300); }
@media (max-width: 600px) {
  .aiwp-compare-table { font-size: 0.8rem; min-width: 500px; }
  .aiwp-compare-table th, .aiwp-compare-table td { padding: 0.6rem 0.5rem; }
}

/* Integration logos row */
.integration-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0;
}
.integration-tag {
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  padding: 8px 16px; border-radius: 100px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
}

/* Branch cards with list items (product page variant) */
.branch-card ul { margin-bottom: 1.25rem; }
.branch-card ul li {
  font-size: 0.84rem; color: var(--text-muted); padding: 3px 0 3px 18px;
  position: relative; line-height: 1.5;
}
.branch-card ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* Branch scroller margin variant (product page) */
.branch-scroller.mt { margin-top: 2rem; }

/* CTA Banner */
.cta-banner {
  background: var(--navy); color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(203,135,50,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .section-title { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-banner .check-list { display: inline-block; text-align: left; margin-bottom: 2rem; }
.cta-banner .check-list li { color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 1; }

/* ─── TABLE ─── */
.aiwp-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.aiwp-table th {
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 12px 16px; text-align: left; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.aiwp-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
  color: var(--text);
}
.aiwp-table tbody tr:hover { background: rgba(22,22,63,0.02); }
@media (max-width: 600px) {
  .aiwp-table th, .aiwp-table td { padding: 8px 10px; font-size: 0.8rem; }
}

/* ─── SEARCH RESULTS ─── */
.aiwp-search-results { display: flex; flex-direction: column; gap: 0; }
.aiwp-search-item {
  padding: 1.5rem 0; border-bottom: 1px solid var(--gray-100);
}
.aiwp-search-item:first-child { border-top: 1px solid var(--gray-100); }
.aiwp-search-item-type {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.4rem;
}
.aiwp-search-item h2 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--navy); margin-bottom: 0.4rem; line-height: 1.3;
}
.aiwp-search-item h2 a { color: inherit; transition: color var(--transition); }
.aiwp-search-item h2 a:hover { color: var(--gold-hover); }
.aiwp-search-item p {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem;
}
.aiwp-search-item-link {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-hover);
  display: inline-flex; align-items: center; gap: 6px;
}
.aiwp-search-item-link svg { transition: transform var(--transition); }
.aiwp-search-item-link:hover svg { transform: translateX(4px); }

/* ─── ARCHIVE GRID ─── */
.aiwp-archive-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
@media (min-width: 600px) { .aiwp-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .aiwp-archive-grid { grid-template-columns: repeat(3, 1fr); } }
.aiwp-archive-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.aiwp-archive-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-200);
}
.aiwp-archive-card-image { aspect-ratio: 16/10; overflow: hidden; }
.aiwp-archive-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.aiwp-archive-card:hover .aiwp-archive-card-image img { transform: scale(1.04); }
.aiwp-archive-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.aiwp-archive-card-body .kb-tag { margin-bottom: 0.5rem; }
.aiwp-archive-card-body h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--navy); line-height: 1.3; margin-bottom: 0.4rem;
}
.aiwp-archive-card-body p {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 0.75rem; flex: 1;
}
.aiwp-archive-card-body time {
  font-size: 0.78rem; color: var(--gray-400);
}
.kb-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold-hover); background: rgba(203,135,50,0.08);
  padding: 3px 10px; border-radius: 100px;
}

/* ─── STATS STRIP ─── */
.aiwp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.aiwp-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem 1rem;
}
.aiwp-stat-icon {
  width: 40px; height: 40px; color: var(--gold);
}
.aiwp-stat-icon svg { width: 100%; height: 100%; }
.aiwp-stat-value {
  font-family: var(--font-display);
  font-size: 2.75rem; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
}
.aiwp-stat-label {
  font-size: 0.9rem; opacity: 0.75;
  line-height: 1.4; max-width: 180px;
}
@media (max-width: 768px) {
  .aiwp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .aiwp-stat-value { font-size: 2rem; }
}
@media (max-width: 480px) {
  .aiwp-stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT FLYOUT V2 — Curved two-panel slide-in
   ═══════════════════════════════════════════════════════ */

/* ── Flyout tokens (overridable via client.css) ── */
:root {
  --flyout-bg-main: #0e1422;
  --flyout-bg-info: #1b2238;
  --flyout-accent: var(--gold-light, #c89144);
  --flyout-accent-dark: var(--gold, #896129);
  --flyout-text: #ffffff;
  --flyout-text-muted: rgba(255,255,255,0.6);
  --flyout-input-bg: rgba(255,255,255,0.06);
  --flyout-input-border: rgba(255,255,255,0.12);
  --flyout-font-display: var(--font-display, 'Playfair Display', Georgia, serif);
}

/* ── Backdrop ── */
.flyout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.flyout-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Container — slides in from right ── */
.flyout-container {
  position: fixed;
  top: 50%;
  right: -20px;
  transform: translateY(-50%) translateX(100%);
  height: 76vh;
  z-index: 90;
  transition: transform 0.5s cubic-bezier(0.08, 0.82, 0.3, 1);
}
.flyout-container.is-open {
  transform: translateY(-50%) translateX(0);
}
.flyout-container.is-closing {
  transform: translateY(-50%) translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0, 0.67, 0) 0.15s;
}

/* ── Close button ── */
.flyout-close {
  position: absolute;
  top: 12px;
  right: 80px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.flyout-close:hover {
  background: rgba(255,255,255,0.15);
}
.flyout-close svg {
  width: 14px;
  height: 14px;
  color: var(--flyout-text-muted);
}

/* ── Big panel — wrapper, no clip-path ── */
.flyout-big {
  position: relative;
  height: 100%;
  aspect-ratio: 0.541;
  right: -20px;
}

/* ── Big shadow wrapper ── */
.flyout-big-shadow {
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: drop-shadow(-20px 15px 25px rgba(0,0,0,0.7));
}

/* ── Big background — clip-path here ── */
.flyout-big-bg {
  position: absolute;
  inset: 0;
  background: var(--flyout-bg-main);
  clip-path: shape(from 85.18% 53.96%,line by -0.01% 46.04%,line by -81.16% -0.01%,curve by -4.01% -2.12% with -2.1% 0%/-3.69% -1.21%,line by 0.14% -5.64%,line by -0.06% -45.9%,line by -0.08% -44.03%,curve by 4.48% -2.28% with 0% -1.13%/2.44% -2.28%,line by 73.06% -0.02%,curve by 4.3% 3.37% with 3.06% 0.34%/4.74% 1.71%,curve by 6.22% 4.74% with -0.5% 2.21%/1.98% 4.46%,line by 7.4% 0.1%,line by 4.53% 0.08%,vline by 45.67%,smooth by -14.82% 0.01% with -14.82% 0.01%,close);
}

/* ── Big content (form) ── */
.flyout-big-content {
  position: absolute;
  top: 0;
  left: 5%;
  right: 60px;
  height: 100%;
  padding: 15px 12px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 3;
}

/* ── Small panel — inside big, absolute left ── */
.flyout-small {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: 100%;
  height: 50%;
  aspect-ratio: 0.615;
  filter: drop-shadow(-10px 8px 15px rgba(0,0,0,0.45));
  opacity: 0;
  transform: translateX(80%);
  transition: none;
}
.flyout-container.is-open .flyout-small {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s cubic-bezier(0.08, 0.82, 0.3, 1) 0.3s,
              transform 0.4s cubic-bezier(0.08, 0.82, 0.3, 1) 0.3s;
}
.flyout-container.is-closing .flyout-small {
  opacity: 0;
  transform: translateX(80%);
  transition: opacity 0.2s cubic-bezier(0.32, 0, 0.67, 0),
              transform 0.2s cubic-bezier(0.32, 0, 0.67, 0);
}

/* ── Small background — clip-path ── */
.flyout-small-bg {
  position: absolute;
  inset: 0;
  background: var(--flyout-bg-info);
  clip-path: shape(from 0.28% 22.35%,curve by 4.23% -5.04% with 0.01% -1.93%/1.94% -3.82%,curve by 18.2% -3.1% with 5.03% -2.68%/11.65% -3.13%,line by 21.1% 0.09%,curve by 10.97% -0.18% with 4.71% 0.02%/8.14% -0.28%,curve by 31.88% -6.05% with 11.36% 0.39%/22.92% -1.64%,line by 2.9% -1.54%,line by 2.69% -1.28%,line by 4.76% -3.46%,curve by 2.99% -1.77% with 0.84% -0.61%/1.43% -1.93%,line by -0.02% 99.99%,line by -2.2% -1.6%,line by -2.84% -2.17%,curve by -41.42% -10.43% with -10.67% -7.37%/-25.45% -10.83%,curve by -33.89% 0% with -11.44% 0.29%/-22.56% 0.08%,curve by -16.22% -4.9% with -6.68% -0.04%/-12.33% -1.64%,curve by -3.4% -6.2% with -2.12% -1.78%/-3.4% -3.86%,vline by -16.9%,smooth by 0.27% -35.47% with 0.27% -35.47%,close);
}

/* ── Small content ── */
.flyout-small-content {
  margin: 8px;
  position: relative;
  flex-direction: column;
  padding: 50px 20px 20px 10px;
}

/* ── Form styles ── */
.fv2-header h2 {
  font-family: var(--flyout-font-display);
  font-size: 1.5rem;
  color: var(--flyout-accent);
  margin-bottom: 6px;
}
.fv2-header p {
  font-size: 0.85rem;
  color: var(--flyout-text-muted);
  margin-bottom: 20px;
}
.fv2-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.fv2-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--flyout-text-muted);
}
.fv2-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.5;
  font-size: 0.65rem;
}
.fv2-input {
  background: var(--flyout-input-bg);
  border: 1px solid var(--flyout-input-border);
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--flyout-text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.fv2-input:focus {
  border-color: var(--flyout-accent);
  box-shadow: 0 0 0 3px rgba(200, 145, 68, 0.12);
}
.fv2-input::placeholder {
  color: rgba(255,255,255,0.2);
}
textarea.fv2-input {
  resize: vertical;
  min-height: 80px;
}

/* ── Checkbox ── */
.fv2-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0;
  cursor: pointer;
}
.fv2-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--flyout-input-border);
  border-radius: 3px;
  background: var(--flyout-input-bg);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.fv2-checkbox input[type="checkbox"]:checked {
  background: var(--flyout-accent-dark);
  border-color: var(--flyout-accent);
}
.fv2-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fv2-checkbox span {
  font-size: 0.78rem;
  color: var(--flyout-text-muted);
  line-height: 1.4;
}
.fv2-checkbox a {
  color: var(--flyout-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Submit button ── */
.fv2-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--flyout-accent-dark);
  color: #fff;
  font-family: var(--flyout-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 6px;
}
.fv2-submit:hover {
  background: var(--flyout-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 145, 68, 0.3);
}
.fv2-submit svg {
  width: 14px;
  height: 14px;
}

/* ── Info panel content ── */
.info-title {
  font-family: var(--flyout-font-display);
  font-size: 1rem;
  color: var(--flyout-accent);
  margin-bottom: 18px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
}
.info-item svg {
  width: 14px;
  height: 14px;
  color: var(--flyout-accent);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}
.info-item span,
.info-item a {
  font-size: 0.8rem;
  color: var(--flyout-text-muted);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s ease;
}
.info-item a:hover {
  color: var(--flyout-accent);
}
.info-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 14px 0;
}
.info-social {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.info-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--flyout-text-muted);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.info-social a:hover {
  background: var(--flyout-accent);
  color: #0a0f1a;
}
.info-social svg {
  width: 13px;
  height: 13px;
}

/* ── Form feedback states ── */
.fv2-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: 2px;
}
.fv2-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 20px 10px;
}
.fv2-success-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ── Flyout mobile responsive ── */
@media (max-width: 900px) {
  /* Full-screen slide-up from bottom — single scrollable column */
  .flyout-container {
    right: 0 !important;
    left: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: translateY(100%) !important;
    transition: transform 0.45s cubic-bezier(0.08, 0.82, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .flyout-container.is-open {
    transform: translateY(0) !important;
  }
  .flyout-container.is-closing {
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.32, 0, 0.67, 0) 0.1s !important;
  }

  /* Big panel — no clip-path, no aspect-ratio, flows naturally */
  .flyout-big {
    position: relative !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    height: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  /* Kill clip-path — shadow becomes simple bg layer */
  .flyout-big-bg {
    clip-path: none !important;
    border-radius: 0 !important;
  }
  .flyout-big-shadow {
    filter: none !important;
    z-index: 0 !important;
  }

  /*
   * display:contents unwraps flyout-big-content so its children
   * (fv2-header, form) become flex children of flyout-big,
   * letting us reorder: header → info card → form
   */
  .flyout-big-content {
    display: contents !important;
  }
  .fv2-header {
    order: -2 !important;
    padding: 44px 38px 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  #flyoutForm {
    order: 1 !important;
    padding: 0 24px 40px !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Close button — top right, bigger tap target */
  .flyout-close {
    position: fixed !important;
    right: 16px !important;
    top: 16px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 110 !important;
    background: rgba(255,255,255,0.12) !important;
  }

  /* Info card — 2 columns between header and form */
  .flyout-small {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    order: -1 !important;
    padding: 0 24px !important;
    margin: 0 0 15px !important;
    border: none !important;
    z-index: 1 !important;
  }
  .flyout-container.is-open .flyout-small,
  .flyout-container.is-closing .flyout-small {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .flyout-small-bg {
    display: none !important;
  }
  .flyout-small-content {
    position: relative !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    background: rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  .flyout-small-content .info-title {
    display: none !important;
  }
  .flyout-small-content .info-item {
    width: auto !important;
    flex: 0 0 auto !important;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 6px !important;
    align-items: center !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .flyout-small-content .info-item svg {
    margin-top: 0 !important;
  }
  .flyout-small-content .info-divider {
    display: none !important;
  }
  /* Social icons — right side */
  .flyout-small-content .info-social {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Form fields — touch friendly */
  .fv2-input {
    padding: 10px 14px !important;
    font-size: 16px !important; /* prevents iOS zoom */
  }
  .fv2-submit {
    width: 100% !important;
    padding: 14px 24px !important;
  }
}
