/* ============================================================================
   LogisPro — Premium SaaS Design System
   Mobile-first | Accessible | Performance-optimized
   ============================================================================ */

/* --- Design Tokens --- */
:root {
  /* Brand */
  --navy: #1e3a5f;
  --navy-light: #2a4d7a;
  --navy-dark: #162d4a;
  --accent: #d4a843;
  --accent-hover: #c49a38;
  --accent-light: rgba(212, 168, 67, 0.1);
  --green: #10b981;
  --green-light: #d1fae5;
  --green-dark: #059669;
  --red: #ef4444;
  --red-light: #fef2f2;

  /* Neutral */
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1a202c;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Elevation — premium tinted shadows */
  --shadow-xs: 0 1px 2px rgba(30,58,95,.04);
  --shadow-sm: 0 2px 4px rgba(30,58,95,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 12px rgba(30,58,95,.08), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg: 0 12px 24px rgba(30,58,95,.1), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 40px rgba(30,58,95,.12), 0 8px 16px rgba(0,0,0,.05);
  --shadow-2xl: 0 32px 64px rgba(30,58,95,.16);
  --shadow-glow: 0 0 30px rgba(212,168,67,.15), 0 0 60px rgba(212,168,67,.05);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Layout */
  --header-h: 72px;
  --container-max: 1200px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Ensure main content stays below header stacking context */
main { position: relative; z-index: 1; }

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top var(--duration-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.7; }
p + p { margin-top: 1rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

.section--alt { background: var(--bg-alt); }

/* Warm amber gradient for visual variety */
.section--warm {
  background: linear-gradient(135deg, #fefbf4 0%, #fdf6e7 50%, #fef9f0 100%);
}

/* Cool blue-gray tint */
.section--cool {
  background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 50%, #f2f6fb 100%);
}

/* Navy dark section */
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.85); }

/* Navy-light: lighter navy for mid-page accents */
.section--navy-light {
  background: linear-gradient(135deg, #1e3a5f 0%, #264b78 50%, #1a3355 100%);
  color: #fff;
}
.section--navy-light h2,
.section--navy-light h3,
.section--navy-light h4 { color: #fff; }
.section--navy-light p { color: rgba(255,255,255,.85); }
.section--navy-light .section__tag { color: var(--accent); }
.section--navy-light .erp-card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
}
.section--navy-light .erp-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.section--navy-light .erp-card__name { color: #fff; }
.section--navy-light .erp-card p { color: rgba(255,255,255,.7); }
.section--navy-light .erp-card--styled::before { opacity: .15; }

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section__tag {
  display: inline-block;
  padding: .375rem .875rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.section__header h2 { margin-bottom: .75rem; }
.section__header p { font-size: 1.0625rem; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid { gap: 2rem; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
   HEADER / NAVIGATION
   ============================================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  max-width: 100vw;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--duration-base) var(--ease), background var(--duration-slow) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

/* --- Functionality pages: navy header when scrolled past hero --- */
.site-header--func-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%) !important;
  border-bottom-color: rgba(255,255,255,.06) !important;
  transition: background .4s ease, border-color .4s ease !important;
}
.site-header--func-navy .logo { color: #fff; }
.site-header--func-navy .logo__sub { color: rgba(255,255,255,.5); }
.site-header--func-navy .mobile-toggle span { background: #fff; }
.site-header--func-navy .nav-main__link { color: rgba(255,255,255,.85); }
.site-header--func-navy .nav-main__link:hover,
.site-header--func-navy .nav-main__link[aria-current="page"] { color: var(--accent); }
.site-header--func-navy .btn--navy {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.site-header--func-navy .btn--navy:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}
.site-header--func-navy .btn--accent { /* keep gold CTA visible */ }
.site-header--func-navy.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* Mega-menu styling when header is navy */
.site-header--func-navy .mega-menu__trigger { color: rgba(255,255,255,.85); }
.site-header--func-navy .mega-menu__trigger:hover { color: var(--accent); }

/* --- Home-only navy header --- */
.page-home .site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-bottom-color: rgba(255,255,255,.06);
}
.page-home .site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0f2035 100%);
}
.page-home .logo { color: #fff; transition: color .35s ease; }
.page-home .logo__sub { color: rgba(255,255,255,.5); transition: color .35s ease; }
.page-home .nav-main__link { color: rgba(255,255,255,.85); transition: color .35s ease; }
.page-home .nav-main__link:hover,
.page-home .nav-main__link[aria-current="page"] { color: var(--accent); }
.page-home .mobile-toggle span { background: #fff; transition: background .35s ease; }

/* --- Header light mode (auto-switches over navy/dark sections) --- */
.page-home .site-header.site-header--light {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(0,0,0,.06);
  transition: background .35s ease, border-color .35s ease;
}
.page-home .site-header--light .logo,
.page-home .site-header--light .nav-main__link { color: var(--navy); }
.page-home .site-header--light .logo__sub { color: rgba(30,58,95,.5); }
.page-home .site-header--light .mobile-toggle span { background: var(--navy); }
.page-home .site-header--light .nav-main__link:hover,
.page-home .site-header--light .nav-main__link[aria-current="page"] { color: var(--accent); }
@media (min-width: 1024px) {
  .page-home .btn--navy {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.25);
  }
  .page-home .btn--navy:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -.01em;
}

.logo__sub {
  font-size: .65rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Desktop nav */
.nav-main {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-main { display: flex; }
}

.nav-main__item { position: relative; }

/* Invisible bridge between nav link and mega-menu to prevent hover gap */
.nav-main__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1.25rem;
  pointer-events: none;
}
.nav-main__item:hover::after {
  pointer-events: auto;
}

.nav-main__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}

.nav-main__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease);
}

.nav-main__link:hover,
.nav-main__link[aria-current="page"] {
  color: var(--accent-hover);
}

.nav-main__link:hover::after,
.nav-main__link[aria-current="page"]::after {
  width: 100%;
}

/* Dropdown arrow */
.nav-main__link--dropdown::after { display: none; }

.nav-main__link--dropdown .nav-arrow {
  display: inline-block;
  font-size: .5rem;
  transition: transform var(--duration-fast) var(--ease);
  margin-left: .25rem;
}

.nav-main__item:hover .nav-arrow,
.nav-main__item:focus-within .nav-arrow {
  transform: rotate(180deg);
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-width: 620px;
  box-shadow: var(--shadow-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease),
              transform .2s var(--ease),
              visibility 0s .2s;
}

.nav-main__item:hover .mega-menu,
.nav-main__item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s var(--ease),
              transform .2s var(--ease),
              visibility 0s 0s;
}

.mega-menu__categories {
  padding: .75rem 0;
  border-right: 1px solid var(--border-light);
}

.mega-menu__cat {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1.25rem;
  color: var(--text);
  transition: background var(--duration-fast) var(--ease);
}

.mega-menu__cat:hover,
.mega-menu__cat:focus {
  background: var(--bg-alt);
}
.mega-menu__cat--active {
  background: rgba(212,168,67,.06);
  border-left: 3px solid var(--accent);
}
.mega-menu__cat--active .mega-menu__label {
  color: var(--accent);
}

.mega-menu__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--ease);
}

.mega-menu__cat:hover .mega-menu__icon { background: var(--accent-light); }

.mega-menu__label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: var(--navy);
  margin-bottom: .1rem;
}

.mega-menu__desc {
  display: block;
  font-size: .75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Right panel */
.mega-menu__panels {
  position: relative;
  background: var(--bg-alt);
  min-height: 260px;
}

.mega-menu__panel {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1.5rem;
  display: none;
}

.mega-menu__panel.is-active { display: block; }

.mega-menu__panel-title {
  font-weight: 700;
  font-size: .8rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}

.mega-menu__panel a {
  display: block;
  padding: .4rem 0 .4rem 1rem;
  color: var(--text-secondary);
  font-size: .85rem;
  position: relative;
  transition: color var(--duration-fast) var(--ease);
}

.mega-menu__panel a::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.mega-menu__panel a:hover { color: var(--accent-hover); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* On mobile/tablet, hide header buttons — CTA lives in mobile nav instead */
@media (max-width: 1023px) {
  .header-actions .btn {
    display: none !important;
  }
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease), opacity var(--duration-fast);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-white);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease);
}

.mobile-nav.is-open { transform: translateX(0); }

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav__link {
  display: block;
  padding: .875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav__link:hover { color: var(--accent-hover); }

.mobile-nav__sub {
  padding-left: 1rem;
}

.mobile-nav__sub a {
  display: block;
  padding: .5rem 0;
  font-size: .9375rem;
  color: var(--text-secondary);
}

/* Collapsible group (Funcionalidades) */
.mobile-nav__group {
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.mobile-nav__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .875rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav__arrow {
  font-size: .625rem;
  transition: transform .25s ease;
  color: rgba(30,58,95,.4);
}

.mobile-nav__group-toggle[aria-expanded="true"] .mobile-nav__arrow {
  transform: rotate(180deg);
}

.mobile-nav__group-items {
  padding-bottom: .5rem;
}

.mobile-nav__group-items[hidden] {
  display: none;
}

.mobile-nav__link--sub {
  padding-left: 1rem !important;
  font-size: .9375rem !important;
  color: rgba(30,58,95,.7) !important;
  border-bottom: none !important;
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.mobile-nav__link--sub:hover {
  color: var(--accent-hover) !important;
}

.mobile-nav__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(212,168,67,.15);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================================
   HERO — Landing
   ============================================================================ */

.hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(160deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 5rem) 0 5rem; }
}

.hero__inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero for subpages (FAQ, Legal, etc.) */
.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: .5rem;
}

.hero-content .subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
}

.hero__title { margin-bottom: 1.25rem; }

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.hero__note {
  font-size: .9375rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats bar */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

.stat { text-align: center; }

.stat__number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.stat__label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .25rem;
}

/* ============================================================================
   HERO — Subpage
   ============================================================================ */

.hero-sub {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-sub { padding: calc(var(--header-h) + 4rem) 0 4rem; }
}

.hero-sub::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,168,67,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16,185,129,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-sub .container { position: relative; z-index: 1; }
.hero-sub h1 { color: #fff; margin-bottom: .75rem; }
.hero-sub p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto; font-size: 1.0625rem; }
.hero-sub .section__tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.9);
  margin-bottom: .75rem;
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb span { margin: 0 .4rem; }

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

@media (min-width: 768px) {
  .card { padding: 2rem; }
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}

.card__text {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================================================================
   FLOW STEPS (Logistics cycle)
   ============================================================================ */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (min-width: 640px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(9, 1fr); }
}

.flow__step {
  text-align: center;
  padding: 1.25rem .75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.flow__step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.flow__icon { font-size: 2rem; margin-bottom: .5rem; }
.flow__label { font-size: .8125rem; font-weight: 600; color: var(--navy); }

/* ============================================================================
   TWO WORLDS
   ============================================================================ */

.world {
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .world { padding: 2.5rem; }
}

.world--warehouse {
  background: linear-gradient(135deg, rgba(212,168,67,.04), rgba(212,168,67,.08));
  border: 2px solid rgba(212,168,67,.25);
}

.world--office {
  background: linear-gradient(135deg, rgba(16,185,129,.04), rgba(16,185,129,.08));
  border: 2px solid rgba(16,185,129,.25);
}

.world__icon { font-size: 3rem; margin-bottom: 1rem; }
.world__title { margin-bottom: .5rem; }
.world__subtitle { color: var(--navy); font-weight: 500; margin-bottom: 1.25rem; font-size: .9375rem; }

.world__list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.world__list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--text-secondary);
}

.world__list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================================
   ERP / AGENCIES
   ============================================================================ */

.erp-card {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

.erp-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.erp-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.erp-card p { font-size: .8125rem; }

.agency {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg-white);
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}

.agency:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.agencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

@media (min-width: 640px) {
  .agencies-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1024px) {
  .agencies-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.agencies-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(30, 58, 95, .04);
  border: 1px dashed rgba(30, 58, 95, .15);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.agencies-note strong {
  color: var(--navy);
}

/* ============================================================================
   HARDWARE PREVIEW (index)
   ============================================================================ */

.hw-card {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .hw-card { padding: 2rem; }
}

.hw-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.hw-card__title { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.hw-card__text { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================================
   BENEFITS
   ============================================================================ */

.benefit { text-align: center; padding: 1.5rem 1rem; }

.benefit__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.benefit__label {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-top: .25rem;
  line-height: 1.5;
}

/* ============================================================================
   CONTACT / CTA FORM
   ============================================================================ */

.cta-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-group { display: flex; flex-direction: column; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.section--navy .form-label { color: rgba(255,255,255,.9); }

.form-input,
.form-select,
.form-textarea {
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
  font-size: .9375rem;
  transition: border-color var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,.45);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--red);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--navy); color: #fff; }
.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: .75rem;
  color: #fca5a5;
  margin-top: .3rem;
  min-height: 1.1em;
}

/* Privacy checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  grid-column: 1 / -1;
}

.form-check input[type="checkbox"] {
  margin-top: .2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  cursor: pointer;
}

.form-check label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Submit */
.form-submit {
  grid-column: 1 / -1;
  padding: .875rem 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease), transform var(--duration-fast) var(--ease);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Success/error messages */
.form-message {
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message--success {
  background: rgba(16,185,129,.15);
  color: #6ee7b7;
  display: block;
}

.form-message--error {
  background: rgba(239,68,68,.15);
  color: #fca5a5;
  display: block;
}

/* Contact info items */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-item__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.6);
  margin-bottom: .35rem;
}

.contact-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.contact-item__value a { color: #fff; }
.contact-item__value a:hover { color: var(--accent); }

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.site-footer h4 {
  color: #fff;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--duration-fast) var(--ease);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact p {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .3rem;
}

.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================================
   SUBPAGE COMPONENTS
   ============================================================================ */

/* Feature row (image + text side by side) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.feature-row--reverse .feature-visual { order: -1; }

@media (max-width: 767px) {
  .feature-row--reverse .feature-visual { order: 1; }
}

.feature-visual {
  border-radius: var(--radius-xl);
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Mockup frame — simulates a device/app screen */
.fv-mockup {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.feature-row:hover .fv-mockup {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Top bar of mockup (browser/app chrome) */
.fv-mockup__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.fv-mockup__bar--navy {
  background: var(--navy);
}
.fv-mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.fv-mockup__bar--navy .fv-mockup__dot {
  background: rgba(255,255,255,.2);
}
.fv-mockup__bar-title {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.fv-mockup__bar--navy .fv-mockup__bar-title {
  color: rgba(255,255,255,.5);
}

/* Mockup body content area */
.fv-mockup__body {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Abstract UI elements inside mockups */
.fv-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-alt);
}
.fv-line--short { width: 40%; }
.fv-line--med { width: 65%; }
.fv-line--long { width: 85%; }
.fv-line--accent { background: var(--accent-light); border: 1px solid rgba(212,168,67,.15); }
.fv-line--navy { background: rgba(30,58,95,.06); border: 1px solid rgba(30,58,95,.08); }
.fv-line--green { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.1); }

.fv-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.fv-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fv-icon--accent { background: var(--accent-light); color: var(--accent); }
.fv-icon--navy { background: rgba(30,58,95,.06); color: var(--navy); }
.fv-icon--green { background: rgba(16,185,129,.08); color: var(--green); }
.fv-icon--red { background: rgba(239,68,68,.06); color: var(--red); }

.fv-card {
  padding: .75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.fv-badge {
  display: inline-flex;
  padding: .2rem .5rem;
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--green-dark);
}
.fv-badge--amber { background: var(--accent-light); color: var(--accent-hover); }
.fv-badge--red { background: var(--red-light); color: var(--red); }

.fv-stat {
  text-align: center;
  padding: .5rem;
}
.fv-stat__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.fv-stat__label {
  font-size: .6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: .25rem;
}

.fv-chart-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}
.fv-chart-bar__col {
  width: 20px;
  border-radius: 3px 3px 0 0;
  background: var(--navy);
  opacity: .15;
  transition: opacity var(--duration-fast) var(--ease);
}
.fv-chart-bar__col--active { opacity: 1; background: var(--accent); }

.fv-separator {
  height: 1px;
  background: var(--border-light);
  margin: .25rem 0;
}

/* PDA screen inside phone-mockup */
.pda-screen {
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  font-size: .8rem;
}
.pda-screen__header {
  background: linear-gradient(135deg, #1e3a5f, #152c4a);
  color: #fff;
  padding: .625rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pda-screen__header strong {
  font-size: .85rem;
}
.pda-screen__header span {
  font-size: .6rem;
  color: rgba(255,255,255,.6);
}
.pda-screen__header--green {
  background: linear-gradient(135deg, #065f46, #064e3b);
}
.pda-screen__list {
  padding: .5rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.pda-screen__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .625rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .7rem;
}
.pda-screen__item--urgent {
  background: #fef2f2;
  border-color: #fecaca;
}
.pda-screen__item-left {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  color: #334155;
}
.pda-screen__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pda-screen__dot--red { background: #ef4444; }
.pda-screen__dot--green { background: #10b981; }
.pda-screen__dot--amber { background: #f59e0b; }
.pda-screen__tag {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: .15rem .4rem;
  border-radius: 4px;
}
.pda-screen__tag--red { background: #fecaca; color: #991b1b; }
.pda-screen__tag--green { background: #d1fae5; color: #065f46; }
.pda-screen__tag--amber { background: #fef3c7; color: #92400e; }
.pda-screen__footer {
  display: flex;
  justify-content: space-between;
  padding: .5rem .75rem;
  font-size: .65rem;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
}

/* Flow diagram — snake zigzag layout */
.flow-snake {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.flow-snake__row {
  display: flex;
  align-items: center;
  gap: 0;
}
.flow-snake__row--reverse {
  flex-direction: row-reverse;
}
.flow-snake__card {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
  position: relative;
}
.flow-snake__card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,.1);
  transform: translateY(-4px);
}
.flow-snake__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c4963c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: .75rem;
  box-shadow: 0 4px 12px rgba(212,168,67,.25);
}
.flow-snake__card h4 {
  color: var(--navy);
  margin-bottom: .5rem;
  font-size: 1.05rem;
}
.flow-snake__card p {
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0;
}
.flow-snake__connector {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.5rem;
  opacity: .6;
}
.flow-snake__bend {
  display: flex;
  justify-content: flex-end;
  padding: .75rem 2rem;
}
.flow-snake__bend--left {
  justify-content: flex-start;
}
.flow-snake__bend svg {
  color: var(--accent);
  opacity: .4;
}
@media (min-width: 768px) {
  .flow-snake__row {
    gap: 0;
  }
  .flow-snake__card {
    max-width: calc(50% - 30px);
  }
}
@media (max-width: 767px) {
  .flow-snake__row,
  .flow-snake__row--reverse {
    flex-direction: column;
  }
  .flow-snake__connector {
    transform: rotate(90deg);
    width: auto;
    height: 40px;
  }
  .flow-snake__bend { display: none; }
  .flow-snake__card { max-width: 100%; }
}

/* Next functionality — compact link card */
.next-func-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--navy);
  text-decoration: none;
  transition: all .3s ease;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.next-func-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(212,168,67,.1);
  transform: translateY(-2px);
}
.next-func-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(30,58,95,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: background .3s ease;
}
.next-func-card:hover .next-func-card__icon {
  background: rgba(212,168,67,.1);
}
.next-func-card__body {
  flex: 1;
}
.next-func-card__label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .2rem;
}
.next-func-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.3;
}
.next-func-card__desc {
  font-size: .8125rem;
  color: var(--text-secondary);
  margin-top: .15rem;
  line-height: 1.4;
}
.next-func-card__arrow {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s ease;
}
.next-func-card:hover .next-func-card__arrow {
  transform: translateX(4px);
}
@media (max-width: 767px) {
  .next-func-card {
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .next-func-card__title { font-size: 1rem; }
}

/* Legacy support */
.feature-visual--blue { background: linear-gradient(135deg, #e8f4f8, #d1e8f0); }
.feature-visual--amber { background: linear-gradient(135deg, #fff4e6, #ffe6cc); }
.feature-visual--green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.feature-visual--navy { background: linear-gradient(135deg, #f0f4ff, #e0e8ff); }

.feature-visual__icon { font-size: 3rem; margin-bottom: .75rem; }
.feature-visual__label { font-weight: 600; color: var(--navy); font-size: .9375rem; }

/* Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.check-list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Stat box (hardware comparisons etc) */
.stat-box {
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-box__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-box__label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(212,168,67,.04) 0%, rgba(16,185,129,.04) 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p { color: var(--text); font-size: .9375rem; }

/* Comparison columns (carga agencia vs directa) */
.compare-col {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.compare-col--navy { border-color: var(--navy); }
.compare-col--accent { border-color: var(--accent); }

.compare-col__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.compare-col__header-icon { font-size: 1.75rem; }
.compare-col__header h3 { margin: 0; }
.compare-col__header p { margin: 0; font-size: .8125rem; color: var(--text-muted); }

.compare-col__desc {
  font-size: .9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.compare-col .check-list li { font-size: .875rem; }

/* Unified note bar */
.note-bar {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--green);
}

.note-bar p { color: var(--text); font-size: .9375rem; margin: 0; }

/* Problem/Solution cards (carrier validation) */
.ps-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .ps-card { padding: 2rem; }
}

.ps-card h3 { margin-bottom: .75rem; }

.ps-card li {
  color: rgba(255,255,255,.9);
  padding: .35rem 0;
  font-size: .9375rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--duration-fast) var(--ease);
}

.faq-item summary:hover { background: var(--bg-alt); }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__body {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.7;
}

/* Pricing cards (precios) */
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: .25rem 1rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   ENHANCED VISUALS — Landing Page
   ============================================================================ */

/* --- Hero gradient background with mesh pattern --- */
.hero {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(16,185,129,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,67,.06) 0%, transparent 50%),
    linear-gradient(160deg, #f0f4ff 0%, #fff 35%, #fffbf0 65%, #f5f7fa 100%);
}

/* Decorative mesh grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(30,58,95,.02) 25%, rgba(30,58,95,.02) 26%, transparent 27%, transparent 74%, rgba(30,58,95,.02) 75%, rgba(30,58,95,.02) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(30,58,95,.02) 25%, rgba(30,58,95,.02) 26%, transparent 27%, transparent 74%, rgba(30,58,95,.02) 75%, rgba(30,58,95,.02) 76%, transparent 77%);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

/* Gradient text for hero title */
.hero__title--gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent underline decoration */
.hero__title-accent {
  position: relative;
  display: inline;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: .05em;
  left: 0;
  right: 0;
  height: .12em;
  background: linear-gradient(90deg, var(--accent), rgba(212,168,67,.3));
  border-radius: 2px;
}

/* Stat numbers with color accents */
.stat--accent .stat__number { color: var(--accent); }
.stat--green .stat__number { color: var(--green); }
.stat--navy .stat__number { color: var(--navy); }

/* --- Feature cards with colored top border & icon backgrounds --- */
.card--color-1 { border-top: 3px solid var(--accent); }
.card--color-2 { border-top: 3px solid var(--navy); }
.card--color-3 { border-top: 3px solid var(--green); }
.card--color-4 { border-top: 3px solid #6366f1; }
.card--color-5 { border-top: 3px solid #ec4899; }
.card--color-6 { border-top: 3px solid #0ea5e9; }

.card__icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card__icon-box--amber { background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(212,168,67,.05)); }
.card__icon-box--navy { background: linear-gradient(135deg, rgba(30,58,95,.1), rgba(30,58,95,.04)); }
.card__icon-box--green { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.05)); }
.card__icon-box--indigo { background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(99,102,241,.05)); }
.card__icon-box--pink { background: linear-gradient(135deg, rgba(236,72,153,.1), rgba(236,72,153,.04)); }
.card__icon-box--sky { background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(14,165,233,.05)); }

/* --- Gradient section divider --- */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--navy));
  border: none;
  margin: 0;
  opacity: .4;
}

/* --- Trust strip (social proof) --- */
.trust-strip {
  padding: 1.5rem 0;
  background: var(--navy-dark);
  text-align: center;
  overflow: hidden;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

.trust-strip__icon {
  font-size: 1rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .trust-strip__inner { gap: 3rem; }
  .trust-strip__item { font-size: .875rem; }
}

/* --- Benefits with gradient backgrounds --- */
.benefit--styled {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.benefit--styled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.benefit--styled:nth-child(1)::before { background: var(--accent); }
.benefit--styled:nth-child(2)::before { background: var(--green); }
.benefit--styled:nth-child(3)::before { background: #6366f1; }
.benefit--styled:nth-child(4)::before { background: var(--navy); }

/* --- ERP cards with colored icon --- */
.erp-card--styled {
  position: relative;
  overflow: hidden;
}

.erp-card--styled::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: .06;
}

.erp-card--sage::before { background: var(--green); }
.erp-card--sap::before { background: #0070f3; }
.erp-card--dynamics::before { background: #6366f1; }
.erp-card--netsuite::before { background: var(--accent); }

/* --- Hardware cards with gradient accent --- */
.hw-card--styled {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease);
}

.hw-card--styled:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hw-card--styled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
}

/* --- Floating accent dots (decorative) --- */
.deco-dots {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-dots--tl { top: 10%; left: 5%; }
.deco-dots--br { bottom: 15%; right: 8%; }

.deco-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .15;
  position: absolute;
}

.deco-dot:nth-child(1) { top: 0; left: 0; }
.deco-dot:nth-child(2) { top: 12px; left: 16px; opacity: .1; width: 8px; height: 8px; }
.deco-dot:nth-child(3) { top: 28px; left: 4px; opacity: .08; width: 10px; height: 10px; background: var(--green); }
.deco-dot:nth-child(4) { top: 8px; left: 36px; opacity: .12; width: 5px; height: 5px; }

/* --- CTA section enhanced glow --- */
.section--navy.section--glow {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212,168,67,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(16,185,129,.05) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

/* --- Three Pillars Section --- */
.pillar {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}

@media (min-width: 768px) {
  .pillar { padding: 2.5rem 2rem; }
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Top gradient bar */
.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.pillar--amber::before { background: linear-gradient(90deg, var(--accent), rgba(212,168,67,.4)); }
.pillar--green::before { background: linear-gradient(90deg, var(--green), rgba(16,185,129,.4)); }
.pillar--navy::before  { background: linear-gradient(90deg, var(--navy), rgba(30,58,95,.4)); }

/* Corner glow */
.pillar::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .06;
}

.pillar--amber::after { background: var(--accent); }
.pillar--green::after  { background: var(--green); }
.pillar--navy::after   { background: var(--navy); }

/* Icon circle */
.pillar__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--duration-base) var(--ease);
}

.pillar:hover .pillar__icon-wrap {
  transform: scale(1.08);
}

.pillar__icon-wrap--amber {
  background: linear-gradient(135deg, rgba(212,168,67,.15), rgba(212,168,67,.05));
  color: var(--accent-hover);
}

.pillar__icon-wrap--green {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(16,185,129,.05));
  color: var(--green-dark);
}

.pillar__icon-wrap--navy {
  background: linear-gradient(135deg, rgba(30,58,95,.12), rgba(30,58,95,.04));
  color: var(--navy);
}

.pillar__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.pillar__text {
  font-size: .9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.pillar__highlights {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.pillar__highlights li {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.pillar__highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pillar--amber .pillar__highlights li::before { background: var(--accent); }
.pillar--green .pillar__highlights li::before { background: var(--green); }
.pillar--navy .pillar__highlights li::before  { background: var(--navy); }

/* --- Hero staggered entrance animations --- */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEntrance .7s var(--ease) forwards;
}

.hero-anim--1 { animation-delay: .1s; }
.hero-anim--2 { animation-delay: .25s; }
.hero-anim--3 { animation-delay: .4s; }
.hero-anim--4 { animation-delay: .55s; }
.hero-anim--5 { animation-delay: .7s; }

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Counter animated numbers glow on load */
.stat__number[data-count] {
  transition: color .3s var(--ease);
}

.stat__number.is-counted {
  animation: statPop .4s var(--ease);
}

@keyframes statPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Flow steps with colored hover --- */
.flow__step:nth-child(odd):hover { border-color: var(--accent); }
.flow__step:nth-child(even):hover { border-color: var(--green); }

/* ============================================================================
   HERO SPLIT LAYOUT & ORBIT
   ============================================================================ */

.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero__split {
    grid-template-columns: 1.1fr .9fr;
    gap: 5rem;
  }
}

.hero__text {
  text-align: center;
}

@media (min-width: 768px) {
  .hero__text { text-align: left; }
  .hero__text .hero__actions { justify-content: flex-start; }
  .hero__text .hero__subtitle { margin-left: 0; }
}

/* --- Orbit diagram --- */

.hero__orbit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: relative;
  width: 320px;
  height: 320px;
}

@media (min-width: 480px) {
  .orbit { width: 380px; height: 380px; }
}

@media (min-width: 1024px) {
  .orbit { width: 460px; height: 460px; }
}

@media (min-width: 1280px) {
  .orbit { width: 520px; height: 520px; }
}

.orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(30,58,95,.15);
  animation: orbitSpin 60s linear infinite;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(30,58,95,.3), 0 0 0 6px rgba(30,58,95,.08);
  z-index: 2;
}

@media (min-width: 1024px) {
  .orbit__center { width: 110px; height: 110px; font-size: .9375rem; }
}
@media (min-width: 1280px) {
  .orbit__center { width: 120px; height: 120px; font-size: 1rem; }
}

/* Shared node styles */
.orbit__node {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--navy);
  font-size: .625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  z-index: 3;
  text-align: center;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .orbit__node { width: 64px; height: 64px; font-size: .6875rem; }
}

.orbit__node:hover {
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(212,168,67,.25);
}

/* Position 7 nodes around the circle (evenly at ~51.4° apart) */
/* radius = 50% of container, nodes centered with translate */

.orbit__node--1 { top: 0%;   left: 50%;  transform: translate(-50%, -50%); } /* 0° — top */
.orbit__node--2 { top: 10%;  left: 89%;  transform: translate(-50%, -50%); } /* ~51° */
.orbit__node--3 { top: 44%;  left: 100%; transform: translate(-50%, -50%); } /* ~103° */
.orbit__node--4 { top: 79%;  left: 89%;  transform: translate(-50%, -50%); } /* ~154° */
.orbit__node--5 { top: 97%;  left: 56%;  transform: translate(-50%, -50%); } /* ~206° */
.orbit__node--6 { top: 79%;  left: 11%;  transform: translate(-50%, -50%); } /* ~257° */
.orbit__node--7 { top: 44%;  left: 0%;   transform: translate(-50%, -50%); } /* ~309° */

/* Subtle color accents for each node */
.orbit__node--1 { border-color: #e53e3e; } /* Correos — red */
.orbit__node--2 { border-color: #2563eb; } /* SEUR — blue */
.orbit__node--3 { border-color: #eab308; } /* DHL — yellow */
.orbit__node--4 { border-color: #1d4ed8; } /* GLS — dark blue */
.orbit__node--5 { border-color: #6b3a10; } /* UPS — brown */
.orbit__node--6 { border-color: #7c3aed; } /* FedEx — purple */
.orbit__node--7 { border-color: #dc2626; } /* MRW — red */

/* Floating animation for nodes */
.orbit__node--1 { animation: floatNode 4s ease-in-out infinite; }
.orbit__node--2 { animation: floatNode 4.3s ease-in-out .3s infinite; }
.orbit__node--3 { animation: floatNode 3.8s ease-in-out .6s infinite; }
.orbit__node--4 { animation: floatNode 4.5s ease-in-out .9s infinite; }
.orbit__node--5 { animation: floatNode 4.1s ease-in-out 1.2s infinite; }
.orbit__node--6 { animation: floatNode 3.9s ease-in-out 1.5s infinite; }
.orbit__node--7 { animation: floatNode 4.4s ease-in-out 1.8s infinite; }

@keyframes floatNode {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}

/* Connector lines — decorative radial lines from center */
.orbit::before {
  content: '';
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,.06);
  pointer-events: none;
}

.orbit::after {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  border: 1px solid rgba(30,58,95,.04);
  pointer-events: none;
}

/* Hero entrance animations */
.hero-anim { opacity: 0; transform: translateY(20px); animation-fill-mode: forwards; }
.hero-anim--1 { animation: heroFadeUp .7s var(--ease) .1s forwards; }
.hero-anim--2 { animation: heroFadeUp .7s var(--ease) .25s forwards; }
.hero-anim--3 { animation: heroFadeUp .7s var(--ease) .4s forwards; }
.hero-anim--4 { animation: heroFadeUp .8s var(--ease) .5s forwards; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   FLOW REDESIGN — Premium timeline style
   ============================================================================ */

.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding: 1rem 0;
}

/* Vertical connector line (mobile) */
.flow-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--green), var(--navy));
  border-radius: 1px;
}

.flow-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: .75rem 0;
  position: relative;
}

.flow-timeline__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30,58,95,.2);
  position: relative;
  z-index: 1;
}

.flow-timeline__step:nth-child(even) .flow-timeline__number {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 16px rgba(212,168,67,.25);
}

.flow-timeline__content {
  flex: 1;
  padding: .25rem 0 1rem;
}

.flow-timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}

.flow-timeline__desc {
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Desktop: horizontal timeline */
@media (min-width: 768px) {
  .flow-timeline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    justify-content: space-between;
  }

  /* Horizontal connector */
  .flow-timeline::before {
    left: 28px;
    right: 28px;
    top: 28px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .flow-timeline__step {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    flex: 1;
    text-align: center;
    padding: 0 .25rem;
  }

  .flow-timeline__content {
    padding: 0;
  }

  .flow-timeline__title {
    font-size: .8125rem;
  }

  .flow-timeline__desc {
    font-size: .75rem;
  }
}

@media (min-width: 1024px) {
  .flow-timeline__number {
    width: 60px;
    height: 60px;
    font-size: .9375rem;
  }

  .flow-timeline::before {
    top: 30px;
    left: 30px;
    right: 30px;
  }

  .flow-timeline__title { font-size: .875rem; }
  .flow-timeline__desc { font-size: .8125rem; }
}

/* --- Agency grid hover colors --- */
.agency:nth-child(3n+1):hover { border-color: var(--accent); background: var(--accent-light); }
.agency:nth-child(3n+2):hover { border-color: var(--green); background: rgba(16,185,129,.06); }
.agency:nth-child(3n+3):hover { border-color: var(--navy); background: rgba(30,58,95,.04); }

/* ============================================================================
   LEGAL CONTENT PAGES (Privacy, Legal Notice)
   ============================================================================ */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text);
}

.legal-content h2 {
  font-size: 1.375rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-light);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.0625rem;
  color: var(--navy-light);
  margin: 1.5rem 0 .5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: .9375rem;
}

.legal-content ul, .legal-content ol {
  margin: .75rem 0 1.25rem 1.5rem;
  font-size: .9375rem;
}

.legal-content li {
  margin-bottom: .4rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent-hover);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--navy);
}

.legal-content strong {
  color: var(--navy);
}

/* ============================================================================
   LANZADERA BADGE (Footer)
   ============================================================================ */

.lanzadera-badge {
  margin-top: .75rem;
}

.lanzadera-badge a:hover img {
  opacity: 1 !important;
}

/* ============================================================================
   MOBILE — Hide Acceder button
   ============================================================================ */

@media (max-width: 1023px) {
  .btn--navy[aria-label="Acceder al panel"] {
    display: none;
  }
}

/* ============================================================================
   PREMIUM UI ENHANCEMENTS
   ============================================================================ */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* --- Stagger children inside grids --- */
.grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2) { transition-delay: .1s; }
.grid > .reveal:nth-child(3) { transition-delay: .2s; }
.grid > .reveal:nth-child(4) { transition-delay: .3s; }
.grid > .reveal:nth-child(5) { transition-delay: .35s; }
.grid > .reveal:nth-child(6) { transition-delay: .4s; }

/* --- Premium glassmorphism card hover --- */
.card:hover {
  border-color: rgba(212,168,67,.35);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,.08);
  transform: translateY(-4px);
}

/* --- Premium buttons with glow --- */
.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e0b84d 100%);
  box-shadow: 0 2px 8px rgba(212,168,67,.25);
}
.btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(212,168,67,.35), 0 0 0 1px rgba(212,168,67,.1);
  transform: translateY(-2px);
}

/* --- Animated gradient border for featured cards --- */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(212,168,67,.3); }
  50% { border-color: rgba(212,168,67,.6); }
}

.pricing-card--featured {
  animation: borderGlow 3s ease-in-out infinite;
}

/* --- Premium benefit cards with animated count-up glow --- */
.benefit--styled {
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.benefit--styled:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.benefit__number {
  background: linear-gradient(135deg, var(--accent) 0%, #e0b84d 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Premium pillar cards glass effect --- */
.pillar:hover {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.03);
}

/* --- Premium flow steps --- */
.flow__step {
  background: var(--bg-white);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-base) var(--ease),
              transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.flow__step:hover {
  box-shadow: var(--shadow-md);
}

/* --- Premium world cards --- */
.world {
  transition: transform var(--duration-base) var(--ease),
              box-shadow var(--duration-base) var(--ease);
}
.world:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Premium agency chips --- */
.agency {
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-base) var(--ease);
}
.agency:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(212,168,67,.04), rgba(212,168,67,.1));
}

/* --- Subtle section separator --- */
.section + .section::before {
  content: '';
  display: block;
  height: 0;
}

/* --- Smooth scrollbar (webkit) --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Premium CTA glow ring --- */
.section--glow::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,.1) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* --- Premium form submit with shimmer --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.form-submit {
  background: linear-gradient(90deg, var(--accent) 0%, #e0b84d 25%, var(--accent) 50%, #e0b84d 75%, var(--accent) 100%);
  background-size: 200% auto;
  box-shadow: 0 4px 16px rgba(212,168,67,.3);
}
.form-submit:hover {
  animation: shimmer 2s linear infinite;
  box-shadow: 0 6px 24px rgba(212,168,67,.4);
}

/* --- Trust strip subtle pulse --- */
@keyframes subtlePulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.trust-strip__icon {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* --- Premium hero subtitle fade --- */
.hero__subtitle {
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================================================
   PLATFORM SHOWCASE
   ============================================================================ */

/* --- Desktop Browser Mockup --- */
.showcase {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.showcase__tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 0;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.showcase__tabs::-webkit-scrollbar { display: none; }

.showcase__tab {
  flex-shrink: 0;
  padding: .625rem 1.25rem;
  border: none;
  background: var(--bg-alt, #f5f7fa);
  color: var(--text-secondary, #6b7280);
  font-size: .8125rem;
  font-weight: 500;
  border-radius: .625rem .625rem 0 0;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
  white-space: nowrap;
}
.showcase__tab:hover {
  background: #e8ecf1;
  color: var(--text-primary, #1e3a5f);
}
.showcase__tab.is-active {
  background: #2b2b2b;
  color: #fff;
}

/* Browser frame */
.showcase__browser {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(30, 58, 95, .18),
    0 8px 20px rgba(0, 0, 0, .08),
    0 0 0 1px rgba(0, 0, 0, .06);
  transform: perspective(1200px) rotateX(2deg);
  transition: transform .4s ease, box-shadow .4s ease;
}
.showcase__browser:hover {
  transform: perspective(1200px) rotateX(0deg);
  box-shadow:
    0 30px 70px rgba(30, 58, 95, .22),
    0 10px 25px rgba(0, 0, 0, .1),
    0 0 0 1px rgba(0, 0, 0, .06);
}

/* Browser bar */
.showcase__browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #2b2b2b;
}

.showcase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.showcase__dot--red   { background: #ff5f57; }
.showcase__dot--yellow { background: #ffbd2e; }
.showcase__dot--green  { background: #28c840; }

.showcase__url {
  display: flex;
  align-items: center;
  gap: .375rem;
  margin-left: 1rem;
  padding: .3rem .875rem;
  background: rgba(255,255,255,.08);
  border-radius: .375rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: .02em;
}
.showcase__url svg { opacity: .5; }

/* Viewport / screenshots */
.showcase__viewport {
  position: relative;
  background: #f8f9fb;
  overflow: hidden;
  /* Maintain aspect ratio even before images load (prevents 0-height collapse) */
  aspect-ratio: 1754 / 1068;
}

.showcase__screen {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.showcase__screen.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* --- Mobile Showcase --- */
.showcase__mobile-section {
  text-align: center;
}

.showcase__mobile-header {
  margin-bottom: 2.5rem;
}
.showcase__mobile-title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--navy, #1e3a5f);
  margin-bottom: .5rem;
  font-weight: 700;
}
.showcase__mobile-subtitle {
  color: var(--text-secondary, #6b7280);
  font-size: .9375rem;
  max-width: 500px;
  margin: 0 auto;
}

.showcase__phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  padding: 1rem 0;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 240px;
  background: #1a1a1a;
  border-radius: 2rem;
  padding: 12px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .15),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 2px rgba(0,0,0,.1);
  transition: transform .35s ease;
}
.phone-mockup:hover {
  transform: translateY(-8px);
}
.phone-mockup--raised {
  transform: translateY(-16px);
}
.phone-mockup--raised:hover {
  transform: translateY(-24px);
}

.phone-mockup__notch {
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  min-height: 440px;
  border-radius: 1rem;
  display: block;
  object-fit: cover;
  object-position: top;
}

.phone-mockup__label {
  display: block;
  margin-top: .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy, #1e3a5f);
  text-align: center;
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
}

/* --- Showcase Responsive --- */
@media (max-width: 768px) {
  .showcase__browser {
    transform: none;
    border-radius: .5rem;
  }
  .showcase__browser:hover {
    transform: none;
  }
  .showcase__tab {
    font-size: .75rem;
    padding: .5rem .875rem;
  }
  .showcase__phones {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .phone-mockup {
    width: 150px;
    border-radius: 1.5rem;
    padding: 8px;
  }
  .phone-mockup__notch {
    width: 60px;
    height: 4px;
    margin-bottom: 6px;
  }
  .phone-mockup img {
    border-radius: .75rem;
  }
  .phone-mockup--raised {
    transform: none;
  }
  .showcase__mobile-section {
    margin-bottom: 2rem;
  }
  .phone-mockup__label {
    display: none;
  }
}

@media (max-width: 480px) {
  .showcase__phones {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .phone-mockup {
    width: 220px;
    border-radius: 1.75rem;
    padding: 10px;
  }
  .phone-mockup__notch {
    width: 70px;
    height: 5px;
    margin-bottom: 6px;
  }
  .phone-mockup img {
    min-height: auto;
  }
}

/* ============================================================================
   MOBILE PREMIUM POLISH
   ============================================================================ */

@media (max-width: 767px) {
  /* Tighter section padding on mobile */
  .section { padding: 3rem 0; }
  .section__header { margin-bottom: 2rem; }
  .section__header h2 { font-size: 1.5rem; }
  .section__header p { font-size: .9375rem; }

  /* Hero mobile refinements */
  .hero { padding: calc(var(--header-h) + 2rem) 0 2rem; }
  .hero__title--gradient { font-size: 1.75rem; }
  .hero__subtitle { font-size: 1rem; }

  /* Better card spacing */
  .card { padding: 1.25rem; }
  .pillar { padding: 1.5rem 1.25rem; }

  /* Contact form full width */
  .form-grid { gap: 1rem; }

  /* Benefits 2-col on mobile */
  .grid--4 { gap: 1rem; }
  .benefit--styled { padding: 1.25rem .75rem; }
  .benefit__number { font-size: 1.75rem; }

  /* Showcase browser smaller */
  .showcase__browser {
    transform: none;
    border-radius: .5rem;
  }
  .showcase__browser-bar { padding: .5rem .75rem; }
  .showcase__dot { width: 8px; height: 8px; }
  .showcase__url { font-size: .65rem; margin-left: .5rem; padding: .2rem .5rem; }

  /* Hide orbit on small mobile */
  .hero__orbit { display: none; }
}

@media (max-width: 380px) {
  .hero__title--gradient { font-size: 1.5rem; }
  .btn--lg { padding: .75rem 1.5rem; font-size: .875rem; }
  .showcase__tab { padding: .4rem .65rem; font-size: .7rem; }
}

/* ============================================================================
   CALCULATOR PAGE
   ============================================================================ */

.calc-section {
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, var(--navy) 0%, #152d4a 100%);
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,.06) 0%, transparent 70%);
  pointer-events: none;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- Slider Inputs Panel --- */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
}

.calc-slider-header label {
  font-weight: 600;
  font-size: .9375rem;
  color: #fff;
}

.calc-slider-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 5rem;
  text-align: right;
}

.calc-slider-hint {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  margin: 0 0 .75rem 0;
  line-height: 1.4;
}

/* --- Custom Range Slider --- */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--pct, 50%), rgba(255,255,255,.12) var(--pct, 50%), rgba(255,255,255,.12) 100%);
  outline: none;
  cursor: pointer;
  transition: background .15s;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(212,168,67,.25), 0 2px 8px rgba(0,0,0,.3);
  cursor: grab;
  transition: transform .15s, box-shadow .15s;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(212,168,67,.3), 0 3px 12px rgba(0,0,0,.4);
}

.calc-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(212,168,67,.25), 0 2px 8px rgba(0,0,0,.3);
  cursor: grab;
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
}

.calc-slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin-top: .35rem;
}

/* --- Results Panel --- */
.calc-results {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* Tab switcher */
.calc-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  background: rgba(0,0,0,.2);
  border-radius: .5rem;
  padding: .25rem;
}

.calc-tab {
  flex: 1;
  padding: .6rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  font-size: .875rem;
  border-radius: .375rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.calc-tab:hover {
  color: rgba(255,255,255,.8);
}

.calc-tab.is-active {
  background: rgba(212,168,67,.15);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Panels */
.calc-panel {
  display: none;
}

.calc-panel.is-active {
  display: block;
  animation: calcFadeIn .3s ease;
}

@keyframes calcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-result-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.calc-result-big {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent) 0%, #f0d78c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.calc-result-desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin: 0;
}

/* Breakdown rows */
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .75rem;
}

.calc-breakdown-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: .5rem;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.05);
  transition: background .2s, border-color .2s;
}

.calc-breakdown-row:hover {
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.1);
}

.calc-breakdown-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.calc-breakdown-info {
  flex: 1;
  min-width: 0;
}

.calc-breakdown-info strong {
  display: block;
  font-size: .8125rem;
  color: #fff;
  font-weight: 600;
}

.calc-breakdown-info span {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

.calc-breakdown-value {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--accent);
  white-space: nowrap;
  min-width: 5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ROI Grid */
.calc-roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.calc-roi-card {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: .75rem;
  padding: 1.25rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.calc-roi-card:hover {
  border-color: rgba(212,168,67,.25);
  transform: translateY(-2px);
}

.calc-roi-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
}

.calc-roi-label {
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}

.calc-roi-card p {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin: 0;
  line-height: 1.4;
}

/* CTA Button */
.calc-cta {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding: .875rem 1.5rem;
  border-radius: .5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #c4993a 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(212,168,67,.3);
  transition: transform .2s, box-shadow .2s;
}

.calc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,67,.4);
}

.calc-cta-hint {
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin: .5rem 0 0 0;
}

/* Methodology Note */
.calc-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: .5rem;
  font-size: .75rem;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
}

.calc-note strong {
  color: rgba(255,255,255,.55);
}

/* --- Calculator Responsive --- */
@media (max-width: 991px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-results {
    position: static;
  }
}

@media (max-width: 767px) {
  .calc-section { padding: 2rem 0 3rem; }
  .calc-inputs { padding: 1.25rem; gap: 1.25rem; }
  .calc-results { padding: 1.25rem; }
  .calc-result-big { font-size: 2rem; }
  .calc-roi-grid { gap: .75rem; }
  .calc-roi-number { font-size: 1.375rem; }
  .calc-breakdown-row { padding: .5rem; gap: .5rem; }
  .calc-breakdown-icon { width: 30px; height: 30px; font-size: .875rem; }
  .calc-breakdown-value { font-size: .8125rem; min-width: 4rem; }
}

@media (max-width: 480px) {
  .calc-roi-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   COOKIE CONSENT BANNER (GDPR / ePrivacy)
   ============================================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(30,58,95,.15);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  font-family: var(--font);
  will-change: transform;
  /* Safe area for mobile browsers (notch / bottom toolbar) */
  padding-bottom: env(safe-area-inset-bottom, 0);
  /* Ensure banner sits above mobile browser bottom chrome */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.cookie-banner__text {
  flex: 1;
  font-size: .8125rem;
  line-height: 1.6;
  color: #3a4a5c;
}

.cookie-banner__text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--accent-hover);
}

/* Short text hidden on desktop, shown on mobile */
.cookie-banner__text--short {
  display: none;
}

.cookie-banner__actions {
  flex-shrink: 0;
  display: flex;
  gap: .5rem;
}

.cookie-banner__btn {
  padding: .6rem 1.25rem;
  border-radius: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}

.cookie-banner__btn:active {
  transform: scale(.97);
}

.cookie-banner__btn--accept {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,58,95,.25);
}

.cookie-banner__btn--accept:hover {
  background: #254a73;
  box-shadow: 0 4px 12px rgba(30,58,95,.3);
}

.cookie-banner__btn--reject {
  background: #f0f2f5;
  color: #3a4a5c;
}

.cookie-banner__btn--reject:hover {
  background: #e2e6eb;
}

.cookie-banner__btn--options {
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: .6rem .75rem;
}

.cookie-banner__btn--options:hover {
  color: var(--accent-hover);
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(30,58,95,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cookie-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  background: #fff;
  border-radius: .75rem;
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(30,58,95,.2);
  padding: 1.75rem;
}

.cookie-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.cookie-modal__group {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f3;
}

.cookie-modal__group:last-of-type {
  border-bottom: none;
}

.cookie-modal__group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal__group-name {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
}

.cookie-modal__group-desc {
  font-size: .8125rem;
  color: #6b7a8d;
  margin-top: .35rem;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}

.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--navy);
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__track {
  background: var(--navy);
  opacity: .6;
  cursor: not-allowed;
}

.cookie-modal__footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* --- Mobile responsive --- */
@media (max-width: 767px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: .875rem 1rem;
    gap: .625rem;
  }
  .cookie-banner__icon { display: none; }
  /* Swap long text for short one-liner on mobile */
  .cookie-banner__text--full { display: none; }
  .cookie-banner__text--short {
    display: block;
    font-size: .8125rem;
    line-height: 1.4;
  }
  .cookie-banner__actions {
    flex-direction: row;
    gap: .375rem;
  }
  .cookie-banner__btn {
    text-align: center;
    flex: 1 1 auto;
    padding: .6rem .75rem;
    font-size: .8125rem;
  }
  .cookie-banner__btn--options {
    flex: 0 0 auto;
    padding: .6rem .5rem;
  }

  /* Modal mobile */
  .cookie-modal {
    width: 94%;
    padding: 1.25rem;
    max-height: 80vh;
  }
  .cookie-modal__title { font-size: 1rem; }
  .cookie-modal__group { padding: .75rem 0; }
  .cookie-modal__group-name { font-size: .875rem; }
  .cookie-modal__group-desc { font-size: .75rem; }
  .cookie-modal__footer {
    flex-direction: column;
    gap: .375rem;
  }
  .cookie-modal__footer .cookie-banner__btn {
    width: 100%;
  }
}

/* Extra-small screens */
@media (max-width: 380px) {
  .cookie-banner__btn {
    font-size: .75rem;
    padding: .5rem .5rem;
  }
}

/* ============================================================================
   MOBILE RESPONSIVE — Inline Grid Overrides
   Targets inline style grids across all functionality pages
   ============================================================================ */

/* --- Tablet (≤ 767px) --- */
@media (max-width: 767px) {

  /* 4-column stats → 2 columns */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  /* 3-column grids → 1 column */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* 2-column grids → 1 column */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* auto-fit grids — lower the minmax for narrow viewports */
  [style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="minmax(250px"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat counters — reduce font size on mobile */
  .stat-counter {
    font-size: 2rem !important;
  }

  /* Section paddings — tighter on mobile */
  section[style*="padding: 4.5rem"],
  section[style*="padding: 4rem"],
  section[style*="padding:4.5rem"],
  section[style*="padding:4rem"] {
    padding: 2.5rem 0 !important;
  }
  section[style*="padding: 5rem"],
  section[style*="padding:5rem"] {
    padding: 3rem 0 !important;
  }

  /* Hero-sub headings — scale down */
  .hero-sub h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  .hero-sub p {
    font-size: 1rem !important;
  }

  /* Feature rows — already handled in base CSS, reinforce */
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .feature-row--reverse {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Web frame mockups — constrain width and reduce min-height */
  .fv-mockup {
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 180px !important;
  }
  .fv-mockup img {
    min-height: auto !important;
  }

  /* Phone mockups — scale down and remove min-height for missing images */
  .phone-mockup {
    max-width: 220px !important;
    margin: 0 auto !important;
  }
  .phone-mockup img {
    min-height: auto !important;
  }

  /* Next/prev navigation */
  .next-func-card {
    padding: 1.25rem !important;
  }

  /* Premium cards — ensure padding is reasonable */
  [style*="border-radius: 16px"][style*="padding: 2.5rem"],
  [style*="border-radius:16px"][style*="padding:2.5rem"],
  [style*="border-radius: 16px"][style*="padding: 3rem"],
  [style*="border-radius:16px"][style*="padding:3rem"] {
    padding: 1.5rem !important;
  }

  /* Stat boxes in navy sections */
  [style*="border-radius: 16px"][style*="background: rgba(255"] {
    padding: 1.25rem !important;
  }

  /* Flow snake overrides */
  .flow-snake {
    flex-direction: column !important;
  }
  .flow-snake__step {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Inline max-width overrides — let them fill mobile */
  [style*="max-width: 950px"],
  [style*="max-width:950px"],
  [style*="max-width: 900px"],
  [style*="max-width:900px"] {
    max-width: 100% !important;
  }

  /* Large inline headings */
  [style*="font-size: 2rem"],
  [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }
  [style*="font-size: 2.25rem"],
  [style*="font-size:2.25rem"] {
    font-size: 1.5rem !important;
  }
  [style*="font-size: 2.5rem"],
  [style*="font-size:2.5rem"] {
    font-size: 1.65rem !important;
  }

  /* Before/After comparison table — stack on mobile */
  [style*="grid-template-columns: 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Inline gap reductions for tighter mobile */
  [style*="gap: 2.5rem"] {
    gap: 1.25rem !important;
  }
  [style*="gap:2.5rem"] {
    gap: 1.25rem !important;
  }
}

/* --- Small phone (≤ 480px) --- */
@media (max-width: 480px) {

  /* 4-column stats → 1 column on very small screens */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat counters even smaller */
  .stat-counter {
    font-size: 1.75rem !important;
  }

  /* Hero-sub headings */
  .hero-sub h1 {
    font-size: 1.4rem !important;
  }

  /* Section tags */
  .section__tag {
    font-size: 0.7rem !important;
  }

  /* Container padding boost */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Premium card padding tighter */
  [style*="border-radius: 16px"][style*="padding: 2.5rem"],
  [style*="border-radius:16px"][style*="padding:2.5rem"],
  [style*="border-radius: 16px"][style*="padding: 3rem"],
  [style*="border-radius:16px"][style*="padding:3rem"] {
    padding: 1.25rem !important;
  }

  /* Inline font sizes */
  [style*="font-size: 1.75rem"],
  [style*="font-size:1.75rem"] {
    font-size: 1.3rem !important;
  }
  [style*="font-size: 1.5rem"],
  [style*="font-size:1.5rem"] {
    font-size: 1.2rem !important;
  }
}

/* ============================================================================
   PRINT
   ============================================================================ */

@media print {
  .site-header,
  .mobile-nav,
  .hero__actions,
  .form-submit,
  .skip-link,
  .trust-strip,
  .deco-dots { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
