/*
Theme Name: Fundusz Pomerania LP
Theme URI: https://funduszpomerania.pl
Description: Landing page child theme for Fundusz Pomerania — porecczenia przetargowe online.
Author: Fundusz Pomerania
Author URI: https://funduszpomerania.pl
Template: generatepress
Version: 2.2.0
Text Domain: fundusz-pomerania-lp
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #004f80;
  --navy-dark: #003a5e;
  --navy-mid: #006199;
  --blue: #007ac3;
  --cyan: #1a9eeb;
  --cyan-light: #5ec4ff;
  --green: #56af31;
  --green-light: #6bc948;
  --green-hover: #489926;
  --green-active: #3d8520;
  --mint: #eef6ff;
  --off-white: #f2f7fc;
  --text: #0c1d30;
  --text-light: #355878;
  --error: #d63031;
  --white: #ffffff;

  /* Shadows — layered for depth */
  --shadow-xs: 0 1px 2px rgba(0, 49, 80, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 49, 80, 0.06), 0 2px 8px rgba(0, 49, 80, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 49, 80, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 49, 80, 0.1);
  --shadow-xl: 0 28px 50px rgba(0, 49, 80, 0.1);
  --shadow-2xl: 0 28px 60px rgba(0, 49, 80, 0.12);
  --shadow-green: 0 4px 14px rgba(86, 175, 49, 0.35);
  --shadow-green-lg: 0 8px 28px rgba(86, 175, 49, 0.4);
  --shadow-blue: 0 4px 14px rgba(0, 122, 195, 0.25);
  --shadow-blue-lg: 0 8px 28px rgba(0, 122, 195, 0.3);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  --radius-2xl: 30px;
  --radius-full: 100px;

  /* Borders */
  --border-light: #E2E6F0;

  /* Layout */
  --header-height: 90px;
  --section-pad-mobile: 72px;
  --section-pad-tablet: 100px;
  --section-pad-desktop: 128px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86, 175, 49, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(86, 175, 49, 0); }
}

@keyframes slide-up-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up-bar {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw + 0.25rem, 2.5rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(0, 122, 195, 0.15);
  color: var(--text);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

/* Section label badge — LandPress inspired */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: var(--mint);
  padding: 8px 18px 8px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border-left: 3px solid var(--blue);
  position: relative;
}

/* Force label to be on its own line above the title */
.text-center .section-label {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.text-center .section-label + .section-title {
  display: block;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Section title with decorative underline */
.section-title {
  margin-bottom: 20px;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan-light));
  border-radius: 3px;
  margin-top: 16px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

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

/* ==========================================================================
   BUTTONS — Premium design with gradients, glows, shimmer
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 14px 24px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 48px;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Primary — gradient CTA (LandPress consulting style) */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(26, 158, 235, 0.3);
}

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 79, 128, 0.35);
}

.btn-primary:active {
  background: var(--navy-dark);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 79, 128, 0.3);
}

/* Secondary — outline blue (LandPress consulting style) */
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 50px;
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary:active {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(0);
}

/* Button sizes */
.btn-sm {
  font-size: 0.875rem;
  padding: 10px 20px;
  min-height: 44px;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 18px 40px;
  min-height: 56px;
  border-radius: var(--radius-md);
}

/* Button loading state */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}

.btn.is-loading .btn-text {
  visibility: hidden;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   STICKY HEADER — Glassmorphism
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 79, 128, 0.1);
  border-bottom: 1px solid rgba(0, 122, 195, 0.1);
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.header-scrolled {
  box-shadow: 0 4px 24px rgba(0, 79, 128, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition);
}

.header-logo:hover {
  color: var(--blue);
  transform: scale(1.02);
}

.header-logo:active {
  transform: scale(0.98);
}

.header-logo svg {
  width: 36px;
  height: 36px;
}

.header-logo img {
  height: 75px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.header-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--cyan);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

/* Outline button (pill shape like old site) */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 50px;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(26, 158, 235, 0.06);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Outline button for dark backgrounds (hero) */
.btn-outline-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50px;
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-hero:active {
  transform: translateY(0);
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--mint);
}

.hamburger:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger-lines {
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all var(--transition);
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 8px; }
.hamburger-lines span:nth-child(3) { top: 16px; }

.hamburger.is-open .hamburger-lines span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger.is-open .hamburger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .hamburger-lines span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px 20px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  animation: fade-in-scale 0.3s ease forwards;
}

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

.mobile-nav .mobile-nav__link {
  display: block;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 79, 128, 0.08);
}

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

.mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2rem;
}

.mobile-nav__cta .btn {
  justify-content: center;
  text-align: center;
  border-radius: 50px;
}

.mobile-nav__cta .btn-primary {
  color: var(--white);
}

.mobile-nav__cta .btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION — Dark gradient with floating decorative shapes
   ========================================================================== */

.hero {
  padding: calc(var(--header-height) + 48px) 0 80px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 35%, var(--navy-mid) 70%, #00537a 100%);
  overflow: hidden;
  position: relative;
  color: var(--white);
}

/* Decorative floating blurred shapes */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 158, 235, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 255, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
  animation: float-slow 10s ease-in-out infinite reverse;
}

@media (min-width: 960px) {
  .hero {
    padding: calc(var(--header-height) + 80px) 0 120px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* Hero badge with glow */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(86, 175, 49, 0.12);
  color: var(--green-light);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(86, 175, 49, 0.2);
  box-shadow: 0 0 20px rgba(86, 175, 49, 0.15);
  letter-spacing: 0.02em;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

/* Hero title with gradient text on strong */
.hero-title {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.02em;
}

.mobile-br {
  display: none;
}

.hero-title strong {
  background: linear-gradient(135deg, var(--cyan-light) 0%, var(--cyan) 50%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-cta-group .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-cta-group .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

/* Trust badges — glassmorphism pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.hero-trust-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--green-light);
  flex-shrink: 0;
}

/* Hero visual — floating effect */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 959px) {
  .hero-visual {
    margin: 0 auto;
    max-width: 480px;
  }
}

/* ==========================================================================
   SOCIAL PROOF BAR
   ========================================================================== */

.social-proof {
  padding: 56px 0;
  background: var(--navy-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle top edge decoration */
.social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 196, 255, 0.3), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 44px;
  }
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  display: none;
}

@media (min-width: 768px) {
  .stat-item:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  }
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  font-weight: 500;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  min-height: 90px;
  min-width: 160px;
  transition: all 0.3s;
}

.partner-logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.partner-logo:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   BENEFITS SECTION — Elevated cards with hover effects
   ========================================================================== */

.benefits {
  padding: var(--section-pad-mobile) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .benefits {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .benefits {
    padding: var(--section-pad-desktop) 0;
  }
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

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

.benefit-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 122, 195, 0.02) 0%, rgba(94, 196, 255, 0.04) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.benefit-card:hover::before {
  opacity: 1;
}

/* Icon in gradient circle */
.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), rgba(26, 158, 235, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 122, 195, 0.2);
  transition: all var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 122, 195, 0.3);
}

.benefit-card:nth-child(2) .benefit-icon {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-light) 100%);
  box-shadow: 0 4px 12px rgba(26, 158, 235, 0.2);
}

.benefit-card:nth-child(3) .benefit-icon {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  box-shadow: 0 4px 12px rgba(86, 175, 49, 0.2);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.benefit-card h3 {
  margin-bottom: 12px;
  font-size: 1.1875rem;
  position: relative;
  z-index: 1;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CALCULATOR — Hero card (matches old eporeczenia.pl style)
   ========================================================================== */

.calc-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(0, 79, 128, 0.2);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
}

@media (min-width: 960px) {
  .calc-card {
    max-width: none;
  }
}

.calc-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.calc-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.calc-header p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Step indicator bar --- */
.calc-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.calc-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid #E2E6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.3s;
  flex-shrink: 0;
}

.calc-step-dot.active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: var(--blue);
  color: var(--white);
}

.calc-step-dot.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.calc-step-line {
  flex: 1;
  height: 3px;
  background: #E2E6F0;
  max-width: 60px;
  border-radius: 2px;
  overflow: hidden;
}

.calc-step-line-fill {
  width: 0%;
  height: 100%;
  background: var(--green);
  transition: width 0.4s ease;
}

.calc-step-line.done .calc-step-line-fill {
  width: 100%;
}

/* --- Step panels --- */
.calc-step {
  animation: calcStepIn 0.3s ease;
}

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

.calc-step[hidden] {
  display: none;
}

.calc-step-title {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.calc-step-desc {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* --- Radio groups (Tak/Nie) --- */
.calc-question {
  margin-bottom: 1.25rem;
}

.calc-question-label {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.calc-question-label .req {
  color: var(--error, #e53e3e);
}

.calc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #E2E6F0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  min-height: 40px;
}

.calc-radio:hover {
  border-color: var(--cyan);
  background: rgba(26, 158, 235, 0.04);
}

.calc-radio input:checked + span {
  color: var(--blue);
}

.calc-radio:has(input:checked) {
  border-color: var(--blue);
  background: rgba(0, 122, 195, 0.06);
}

/* --- Checkbox label --- */
.calc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 1rem 0;
  line-height: 1.4;
  cursor: pointer;
}

.calc-checkbox-label input {
  margin-top: 2px;
  flex-shrink: 0;
}

.calc-checkbox-label a {
  color: var(--blue);
  text-decoration: underline;
}

/* --- Divider --- */
.calc-divider {
  border: none;
  border-top: 1px solid #E2E6F0;
  margin: 1.25rem 0;
}

/* --- Button row (back + next) --- */
.calc-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}

.calc-btn-row .calc-btn {
  flex: 1;
}

.calc-btn-back {
  background: transparent !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
  border: 1px solid #E2E6F0 !important;
}

.calc-btn-back:hover {
  background: var(--off-white) !important;
  color: var(--text) !important;
  transform: none !important;
}

/* --- GUS banner --- */
.calc-gus-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e6f7ee;
  border: 1px solid #b4e8ca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a7a42;
}

.calc-gus-banner svg {
  width: 20px;
  height: 20px;
  stroke: #1a7a42;
  flex-shrink: 0;
}

/* --- Result rows (step 3) --- */
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.8125rem;
}

.calc-result-data {
  font-weight: 700;
  color: var(--navy);
}

.calc-result-box {
  background: rgba(26, 158, 235, 0.06);
  border: 1px solid rgba(26, 158, 235, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.75rem;
  text-align: center;
}

/* --- Company data (auto from GUS) --- */
.calc-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.calc-company-data {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.calc-data-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.8125rem;
  gap: 12px;
}

.calc-data-label {
  color: var(--text-light);
  flex-shrink: 0;
}

.calc-data-value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* --- Field rows (side by side) --- */
.calc-field-row {
  display: flex;
  gap: 12px;
}

.calc-field-half {
  flex: 1;
}

@media (max-width: 480px) {
  .calc-field-row {
    flex-direction: column;
    gap: 0;
  }
}

/* --- Thank you screen --- */
.calc-thankyou {
  text-align: center;
  padding: 1rem 0;
}

.calc-thankyou-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: #e6f7ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-thankyou-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1a7a42;
}

.calc-thankyou h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.calc-thankyou p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.calc-thankyou-alt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem !important;
}

.calc-field {
  margin-bottom: 1rem;
}

.calc-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-input-wrap {
  position: relative;
}

.calc-input-wrap input,
.calc-input-wrap select {
  width: 100%;
  background: var(--off-white);
  border: 1px solid #E2E6F0;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  padding: 12px 50px 12px 16px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.calc-input-wrap select {
  cursor: pointer;
}

.calc-input-wrap select option {
  background: white;
  color: var(--text);
}

.calc-input-wrap input:focus,
.calc-input-wrap select:focus {
  border-color: var(--cyan-light);
  background: rgba(26, 158, 235, 0.05);
  box-shadow: 0 0 0 3px rgba(26, 158, 235, 0.12);
}

.calc-input-wrap input::placeholder {
  color: var(--text-light);
  opacity: 0.5;
}

.calc-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: var(--text-light);
  pointer-events: none;
  font-weight: 600;
}

.calc-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

#calc-nip-error.visible {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(214, 48, 49, 0.08);
  border-radius: var(--radius-xs);
  margin-top: 8px;
}

.calc-result {
  background: linear-gradient(135deg, rgba(26, 158, 235, 0.08), rgba(0, 79, 128, 0.1));
  border: 1px solid rgba(26, 158, 235, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.calc-result-label {
  font-size: 0.6875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.02em;
}

.calc-result-note {
  font-size: 0.6875rem;
  color: var(--text-light);
  margin-top: 5px;
  opacity: 0.8;
}

.calc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(26, 158, 235, 0.3);
  display: block;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 158, 235, 0.4);
}

.calc-btn:focus-visible {
  outline: 3px solid var(--cyan-light);
  outline-offset: 2px;
}

.calc-btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  box-shadow: none;
  margin-top: 10px;
}

.calc-btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 158, 235, 0.3);
}

.calc-cta-secondary {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.calc-cta-secondary:hover {
  text-decoration: underline;
  color: var(--navy);
}

/* ==========================================================================
   HOW IT WORKS — Numbered gradient circles with connector
   ========================================================================== */

.how-it-works {
  padding: var(--section-pad-mobile) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .how-it-works {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .how-it-works {
    padding: var(--section-pad-desktop) 0;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

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

}

.step-item {
  text-align: center;
  position: relative;
  padding-top: 8px;
}

/* Top border accent on cards */
.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 0;
  transition: all var(--transition-slow);
}

/* Gradient numbered circles */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 79, 128, 0.2);
  transition: all var(--transition);
}

.step-item:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 79, 128, 0.3);
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), var(--blue), var(--navy));
  z-index: -1;
  opacity: 0.3;
}

.step-number-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}


.step-item h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.step-item p {
  color: var(--text-light);
  font-size: 0.9375rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.7;
}

.how-it-works-cta {
  text-align: center;
  margin-top: 56px;
}

/* ==========================================================================
   FORM SECTION — Two-column lead form (eporeczenia.pl style)
   ========================================================================== */

.lead-section {
  padding: var(--section-pad-mobile) 0;
  background: var(--off-white);
  position: relative;
}

@media (min-width: 768px) {
  .lead-section {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .lead-section {
    padding: var(--section-pad-desktop) 0;
  }
}

.lead__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

/* Left column — benefits text */
.lead__content .section-title {
  text-align: left;
}

.lead__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lead__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

.lead__benefits li .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(94, 196, 255, 0.12);
  color: var(--cyan);
}

.lead__benefits li .check svg {
  width: 16px;
  height: 16px;
}

/* Right column — form card */
.lead__form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: none;
  position: relative;
}

.form-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.form-card-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Form fields */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E6F0;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  min-height: 48px;
}

.form-field input:hover {
  border-color: rgba(0, 79, 128, 0.2);
}

.form-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 195, 0.12);
}

.form-field input.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.08);
}

.form-field input::placeholder {
  color: rgba(53, 88, 120, 0.45);
}

.form-field:focus-within label {
  color: var(--blue);
}

/* Field error messages */
.field-error-msg {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
  font-weight: 600;
}

.field-error-msg.visible {
  display: block;
  animation: slide-up-enter 0.25s ease forwards;
}

/* Contact preference radio selector */
.contact-pref {
  margin-bottom: 1.25rem;
}

.contact-pref__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.contact-pref__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-pref__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid rgba(0, 79, 128, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--white);
}

.contact-pref__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-pref__option:hover {
  border-color: rgba(0, 122, 195, 0.3);
  background: rgba(0, 122, 195, 0.02);
}

.contact-pref__option.active {
  border-color: var(--blue);
  background: rgba(0, 122, 195, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 122, 195, 0.08);
}

.contact-pref__radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(0, 79, 128, 0.2);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
}

.contact-pref__option.active .contact-pref__radio {
  border-color: var(--blue);
}

.contact-pref__option.active .contact-pref__radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.contact-pref__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color var(--transition);
}

.contact-pref__icon svg {
  width: 20px;
  height: 20px;
}

.contact-pref__option.active .contact-pref__icon {
  color: var(--blue);
}

.contact-pref__text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.contact-pref__text small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}

/* Time slots */
.time-slots {
  margin-bottom: 1.25rem;
}

.time-slots__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.time-slots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .time-slots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border: 2px solid rgba(0, 79, 128, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.time-slot input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-slot:hover {
  border-color: rgba(0, 122, 195, 0.3);
  background: rgba(0, 122, 195, 0.02);
}

.time-slot.active {
  border-color: var(--blue);
  background: rgba(0, 122, 195, 0.06);
  color: var(--blue);
}

/* RODO checkbox */
.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  border-radius: 4px;
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.form-checkbox:hover label {
  color: var(--text);
}

/* Submit button — gradient blue */
.form-submit {
  display: block;
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.02em;
  margin-top: 1rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 79, 128, 0.3);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.form-submit:active {
  transform: translateY(0);
}

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

/* Loading spinner */
.form-submit--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.form-submit--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.form-success.visible {
  display: block;
  animation: fade-in-scale 0.4s ease forwards;
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(86, 175, 49, 0.1), rgba(86, 175, 49, 0.18));
  color: var(--green);
  margin-bottom: 1rem;
}

.form-success__icon svg {
  width: 32px;
  height: 32px;
}

.form-success h4 {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS — LandPress "Those who made a change" style
   ========================================================================== */

.testimonials {
  padding: var(--section-pad-mobile) 0;
  background: var(--white);
}

@media (min-width: 768px) {
  .testimonials {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .testimonials {
    padding: var(--section-pad-desktop) 0;
  }
}

/* Grid: 3 columns with large photos */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

/* Each item: large photo on top, text below */
.testimonial-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.3s;
}

.testimonial-item:hover {
  transform: translateY(-4px);
}

/* Large portrait photo — 4:5 aspect ratio like LandPress */
.testimonial-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--off-white);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.testimonial-item:hover .testimonial-photo img {
  transform: scale(1.03);
}

/* Text body below photo */
.testimonial-body {
  padding: 24px 4px 8px;
}

.testimonial-quote {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}

.testimonial-divider {
  width: 100%;
  height: 1px;
  background: var(--border-light, #E2E6F0);
  margin-bottom: 16px;
}

.testimonial-bio {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.testimonial-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ==========================================================================
   FAQ — Smooth accordion with active accent
   ========================================================================== */

.faq {
  padding: var(--section-pad-mobile) 0;
  background: var(--off-white);
  position: relative;
}

@media (min-width: 768px) {
  .faq {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .faq {
    padding: var(--section-pad-desktop) 0;
  }
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 79, 128, 0.06);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 79, 128, 0.08);
  border-left-color: rgba(0, 122, 195, 0.3);
}

/* Active item — blue left border accent */
.faq-item.is-open {
  border-left-color: var(--blue);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  min-height: 48px;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--blue);
}

.faq-item.is-open .faq-question {
  color: var(--blue);
}

.faq-question:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
  border-radius: var(--radius-md);
}

/* Chevron icon — smooth rotate */
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--blue);
  transition: transform var(--transition), color var(--transition-fast);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* Smooth max-height transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ==========================================================================
   FINAL CTA — Dramatic gradient with floating shapes
   ========================================================================== */

.final-cta {
  padding: var(--section-pad-mobile) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating decorative shapes */
.final-cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 255, 0.12) 0%, transparent 70%);
  top: -200px;
  left: -150px;
  pointer-events: none;
  animation: float-slow 12s ease-in-out infinite;
}

.final-cta::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 175, 49, 0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  pointer-events: none;
  animation: float 8s ease-in-out infinite reverse;
}

@media (min-width: 768px) {
  .final-cta {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1200px) {
  .final-cta {
    padding: var(--section-pad-desktop) 0;
  }
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.final-cta .section-title::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(94, 196, 255, 0.6), rgba(255,255,255,0.4));
}

.final-cta .section-label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan-light);
  border-left-color: var(--cyan-light);
}

.final-cta .section-label::before {
  background: var(--cyan-light);
}

.final-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Glow effect on CTA button in dark section */
.final-cta .btn-primary {
  box-shadow: var(--shadow-green), 0 0 30px rgba(86, 175, 49, 0.2);
}

.final-cta .btn-primary:hover {
  box-shadow: var(--shadow-green-lg), 0 0 40px rgba(86, 175, 49, 0.3);
}

.final-cta .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.final-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.08);
}

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

.site-footer {
  padding: 56px 0 24px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 196, 255, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-contact h4,
.footer-links h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-contact h4::after,
.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.footer-contact a,
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  padding: 6px 0;
  min-height: 36px;
  transition: all var(--transition-fast);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact svg,
.footer-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer-contact a:hover svg,
.footer-links a:hover svg {
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   STICKY MOBILE CTA BAR — Glass with slide-up entrance
   ========================================================================== */

.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 -2px 20px rgba(0, 49, 80, 0.12);
  padding: 10px 16px;
  gap: 10px;
  animation: slide-up-bar 0.4s ease forwards;
  border-top: 1px solid rgba(0, 79, 128, 0.06);
}

.mobile-cta-bar .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 12px 16px;
  min-height: 48px;
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* Bottom padding for mobile sticky bar */
@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 88px;
  }
}

/* ==========================================================================
   CHAT WIDGET
   ========================================================================== */

.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 997;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue);
  box-shadow: 0 6px 28px rgba(26,158,235,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: chat-fab-pulse 3s ease-in-out infinite;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(26,158,235,0.55);
}

.chat-fab:focus-visible {
  outline: 3px solid var(--cyan-light);
  outline-offset: 3px;
}

.chat-fab svg {
  width: 28px; height: 28px; stroke: #ffffff; fill: none; color: #ffffff;
}

.chat-fab.open svg.icon-chat { display: none; }
.chat-fab:not(.open) svg.icon-close { display: none; }

.chat-fab__badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #e74c3c; border: 2px solid var(--white);
  font-size: 10px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}

.chat-fab.open .chat-fab__badge { display: none; }

@keyframes chat-fab-pulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(26,158,235,0.45); }
  50% { box-shadow: 0 6px 28px rgba(26,158,235,0.45), 0 0 0 12px rgba(26,158,235,0.12); }
}

.chat-popup {
  position: fixed; bottom: 96px; right: 24px; z-index: 1001;
  width: 370px; max-width: calc(100vw - 24px); max-height: calc(100vh - 112px);
  background: var(--white); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,79,128,0.22), 0 0 0 1px rgba(0,122,195,0.08);
  transform: translateY(20px) scale(0.95); opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden; display: flex; flex-direction: column;
  transform-origin: bottom right;
}

.chat-popup.open {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: auto;
}

.chat-popup__header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 1.25rem 1.5rem; color: var(--white); position: relative;
}

.chat-popup__header-title {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 2px;
}

.chat-popup__header-sub {
  font-size: 12px; color: rgba(255,255,255,0.65);
}

.chat-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #ffffff !important;
  padding: 0;
}

.chat-popup__close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}

.chat-popup__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.chat-popup .chat-popup__close svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff !important;
  display: block !important;
}

.chat-popup .chat-popup__close svg line {
  stroke: #ffffff !important;
}

.chat-popup__body { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; }

.chat-bubble {
  background: var(--off-white); border-radius: 16px 16px 16px 4px;
  padding: 0.9rem 1.1rem; margin-bottom: 0.75rem;
  font-size: 14px; color: var(--text); line-height: 1.6;
  border: 1px solid rgba(0,0,0,0.04);
  animation: chat-bubble-in 0.4s ease both;
}

.chat-bubble:nth-child(2) { animation-delay: 0.5s; }
.chat-bubble strong { color: var(--navy); }

@keyframes chat-bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-popup__call {
  display: flex; align-items: center; gap: 10px;
  background: rgba(86,175,49,0.08); border: 1px solid rgba(86,175,49,0.2);
  border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1rem;
  text-decoration: none; transition: background-color 0.2s;
  animation: chat-bubble-in 0.4s 0.8s ease both;
}

.chat-popup__call:hover { background: rgba(86,175,49,0.14); }

.chat-popup__call-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #3d8c22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.chat-popup__call-icon svg { width: 18px; height: 18px; stroke: #ffffff; fill: none; }
.chat-popup__call-text { font-size: 13px; color: var(--text); line-height: 1.4; }
.chat-popup__call-text strong { display: block; font-size: 15px; color: #2d7a14; }

.chat-popup__divider {
  text-align: center; font-size: 11px; color: var(--text-light);
  margin: 0.25rem 0 1rem; text-transform: uppercase; letter-spacing: 0.08em;
  animation: chat-bubble-in 0.4s 1s ease both;
}

.chat-popup__form { animation: chat-bubble-in 0.4s 1.1s ease both; }

.chat-popup__form label {
  display: block; font-size: 12px; font-weight: 700; color: var(--text-light);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}

.chat-popup__form input {
  width: 100%; border: 1.5px solid rgba(0,79,128,0.12); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; font-family: var(--font-family);
  color: var(--text); background: var(--off-white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  margin-bottom: 0.75rem;
}

.chat-popup__form input:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(26,158,235,0.1); background: var(--white);
}

.chat-popup__form input::placeholder { color: var(--text-light); opacity: 0.5; }

.chat-popup__form-btn {
  width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white); font-family: var(--font-family);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(26,158,235,0.3);
}

.chat-popup__form-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(26,158,235,0.4); }
.chat-popup__form-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-popup__form-btn:focus-visible { outline: 3px solid var(--cyan-light); outline-offset: 2px; }

.chat-popup__consent {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 10px; color: var(--text-light); line-height: 1.5; margin-top: 0.5rem;
}

.chat-popup__consent input[type="checkbox"] {
  width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--cyan); cursor: pointer;
}

.chat-popup__consent label {
  cursor: pointer;
}

.chat-popup__consent a { color: var(--blue); }

.chat-popup__success {
  text-align: center; padding: 1rem 0;
  animation: chat-bubble-in 0.4s ease both;
}

.chat-popup__success-icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--green), #3d8c22);
  display: flex; align-items: center; justify-content: center;
}

.chat-popup__success-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; }
.chat-popup__success h4 { font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.chat-popup__success p { font-size: 13px; color: var(--text-light); }

.chat-inline-error {
  color: var(--error); font-size: 13px; font-weight: 600; text-align: center;
  margin-top: 8px; padding: 8px 12px; background: rgba(214,48,49,0.1); border-radius: 8px;
}

@media (max-width: 480px) {
  .chat-fab { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .chat-fab svg { width: 24px; height: 24px; }
}

@media (max-width: 768px) {
  .chat-fab { bottom: 80px; right: 16px; }
  .chat-popup {
    position: fixed;
    top: 10px;
    bottom: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .chat-popup__header { padding: 0.75rem 1rem; padding-right: 3.2rem; }
  .chat-popup__header-title { font-size: 0.95rem; }
  .chat-popup__header-sub { font-size: 11px; }
  .chat-popup__close {
    width: 34px; height: 34px; top: 0.6rem; right: 0.6rem;
    background: rgba(255,255,255,0.25) !important; border: 1.5px solid rgba(255,255,255,0.4) !important;
  }
  .chat-popup__close svg { width: 16px; height: 16px; stroke-width: 3; }
  .chat-popup__body { padding: 0.75rem 1rem; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
  .chat-bubble { padding: 0.6rem 0.85rem; font-size: 13px; margin-bottom: 0.5rem; }
  .chat-popup__call { padding: 0.6rem 0.85rem; margin-bottom: 0.6rem; }
  .chat-popup__divider { margin: 0.15rem 0 0.6rem; }
  .chat-popup__form input { padding: 10px 12px; font-size: 14px; margin-bottom: 0.5rem; }
  .chat-popup__form label { margin-bottom: 3px; font-size: 11px; }
  .chat-popup__form-btn { padding: 11px; font-size: 13px; }
  .chat-popup__consent { font-size: 9px; margin-top: 0.4rem; }
}

/* ==========================================================================
   MOBILE FIXES — Prevent overflow on narrow screens
   ========================================================================== */

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .hero {
    padding: calc(var(--header-height) + 16px) 0 32px;
  }

  .hero-grid {
    gap: 20px;
  }

  /* Mobile hero grid: title+subtitle → calculator → trust+CTA */
  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    display: contents;
  }

  .hero-badge {
    order: 1;
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-bottom: 16px;
    align-self: flex-start;
  }

  .hero-title {
    order: 2;
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1.25;
    text-align: left;
  }

  .mobile-br {
    display: block;
  }

  .hero-subtitle {
    order: 3;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: left;
  }

  /* CTA buttons below calculator */
  .hero-cta-group {
    order: 10;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .hero-cta-group .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Trust badges below calculator, above CTA */
  .hero-trust {
    order: 9;
    margin-top: 0;
    gap: 6px;
    justify-content: center;
  }

  .hero-trust-item {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* Calculator between subtitle and trust */
  .hero-visual {
    order: 5;
    margin-top: 16px;
  }

  .calc-card {
    max-width: 100%;
    overflow: hidden;
  }

  .calc-question-label {
    font-size: 0.8rem;
  }

  .calc-radio-group {
    flex-direction: column;
  }

  .calc-radio {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .calc-radio span {
    font-size: 0.8rem;
  }
}

@media (max-width: 479px) {
  /* Buttons: allow text wrap, reduce padding */
  .btn {
    white-space: normal;
  }

  .btn-lg {
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Calculator card: reduce padding */
  .calc-card {
    padding: 1.25rem;
  }

  .calc-step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .calc-step-line {
    max-width: 40px;
  }

  /* Partner logos: smaller on mobile */
  .partners-row {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .partners-label {
    white-space: normal;
  }

  .partners-logos {
    gap: 12px;
    width: 100%;
  }

  .partner-logo {
    min-width: 0;
    padding: 12px 14px;
    flex: 1;
    min-height: 70px;
  }

  .partner-logo img {
    height: 40px;
  }

  /* Benefit cards: less padding */
  .benefit-card {
    padding: 24px 20px;
  }

  /* Form card: less padding */
  .lead__form-card {
    padding: 1.25rem;
  }

  /* Contact preference: stack to 1 column */
  .contact-pref__options {
    grid-template-columns: 1fr;
  }

  /* Trust badges: stack vertically */
  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .hero-trust-item {
    white-space: normal;
  }

  /* Hero CTA buttons: full width stacked */
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Final CTA buttons: full width stacked */
  .final-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .final-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Testimonial photos: smaller aspect ratio */
  .testimonial-photo {
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================
   COOKIE BANNER — Glass morphism bottom bar
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 -2px 24px rgba(0, 49, 80, 0.1);
  padding: 20px;
  display: none;
  border-top: 1px solid rgba(0, 79, 128, 0.06);
}

.cookie-banner.is-visible {
  display: block;
  animation: slide-up-bar 0.4s ease forwards;
}

@media (max-width: 767px) {
  .cookie-banner {
    bottom: 68px;
  }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    gap: 24px;
  }
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--navy);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  font-size: 0.8125rem;
  padding: 10px 20px;
  min-height: 44px;
}

/* ==========================================================================
   SCROLL ANIMATIONS — Staggered slide-up with opacity
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile-first refinements
   ========================================================================== */

/* Small phones */
@media (max-width: 479px) {
  .hero-cta-group {
    flex-direction: column;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .final-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .hero-trust-item {
    justify-content: center;
  }
}

/* Tablet */
@media (min-width: 480px) and (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Desktop refinements */
@media (min-width: 960px) {
  .header-nav {
    gap: 4px;
  }

  body {
    font-size: 1.0625rem;
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    gap: 32px;
  }

  .testimonials-grid {
    gap: 32px;
  }
}

/* ==========================================================================
   HEADING ACCENT UNDERLINE — LandPress consulting inspired
   ========================================================================== */

.text-accent-underline {
  background-image: linear-gradient(180deg, transparent 67%, rgba(26, 158, 235, 0.25) 0%);
  display: inline;
}

/* ==========================================================================
   INLINE STYLE EXTRACTIONS
   ========================================================================== */

#calc-min-note {
  color: var(--cyan);
  font-weight: 600;
  margin-top: 4px;
}

#lead-consent-error {
  margin-top: -1rem;
  margin-bottom: 1rem;
}

#chat-fab {
  display: none;
}

#chat-success {
  display: none;
}

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

@media print {
  .site-header,
  .mobile-cta-bar,
  .cookie-banner,
  .hero::before,
  .hero::after,
  .final-cta::before,
  .final-cta::after {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .hero-title,
  .hero-title strong {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  .final-cta {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .final-cta h2 {
    color: #000 !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
