/**
 * Responsive density — no half-screen empty voids
 * Mobile → tablet → desktop proportional rhythm
 */

:root {
  --sec-y: clamp(1.75rem, 3.5vw, 3rem);
  --sec-y-sm: clamp(1.35rem, 2.8vw, 2.25rem);
  --hero-y: clamp(1.5rem, 3vw, 2.75rem);
  --card-pad: clamp(1rem, 2.2vw, 1.4rem);
  --grid-gap: clamp(0.75rem, 1.6vw, 1.15rem);
  --krv-pad: clamp(0.9rem, 2.2vw, 1.35rem);
}

/* Page sections (Tailwind py-* wrappers) */
body.art-lb main > .max-w-screen-xl,
body.art-lb #main > .max-w-screen-xl,
body.art-lb main > div.max-w-screen-xl,
body.art-lb #main > div.max-w-screen-xl {
  padding-left: var(--krv-pad) !important;
  padding-right: var(--krv-pad) !important;
}

/* Default vertical section rhythm */
body.art-lb main > div.max-w-screen-xl.py-8,
body.art-lb main > div.max-w-screen-xl.py-10,
body.art-lb main > div.max-w-screen-xl.py-12,
body.art-lb main > div.max-w-screen-xl.py-14,
body.art-lb #main > div.max-w-screen-xl[class*="py-"],
body.art-lb main > div[class*="max-w-screen-xl"][class*="py-"] {
  padding-top: var(--sec-y) !important;
  padding-bottom: var(--sec-y) !important;
}

/* Hero shell */
body.art-lb main > div.max-w-screen-xl.pt-8,
body.art-lb main > div.max-w-screen-xl.pt-12,
body.art-lb #main > div.max-w-screen-xl[class*="pt-"],
body.art-lb main > div[class*="max-w-screen-xl"][class*="pt-"] {
  padding-top: var(--hero-y) !important;
  padding-bottom: var(--hero-y) !important;
}

/* FAQ last section: less bottom dead space (mobile CTA accounts for rest) */
body.art-lb #faq,
body.art-lb main > div#faq,
body.art-lb div#faq.max-w-screen-xl {
  padding-top: var(--sec-y-sm) !important;
  padding-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

/* Section heads tighter */
body.art-lb .text-center.mb-10,
body.art-lb .text-center.mb-8,
body.art-lb .text-center.mb-6 {
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem) !important;
}
body.art-lb .max-w-2xl.mb-8,
body.art-lb .max-w-xl.mb-10,
body.art-lb .max-w-2xl.mb-10 {
  margin-bottom: clamp(1rem, 2vw, 1.5rem) !important;
}

/* Grids denser */
body.art-lb .grid {
  gap: var(--grid-gap) !important;
}
body.art-lb .gap-5,
body.art-lb .gap-6,
body.art-lb .gap-8 {
  gap: var(--grid-gap) !important;
}

/* Cards: consistent padding, no airy voids */
body.art-lb .bg-white.border,
body.art-lb .border.border-slate-200.rounded-3xl,
body.art-lb .border.rounded-3xl.p-6,
body.art-lb .border.rounded-3xl.p-7,
body.art-lb .p-6.md\:p-7,
body.art-lb .p-7,
body.art-lb .p-6 {
  padding: var(--card-pad) !important;
}

/* H1 scale proportional */
body.art-lb h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.75rem) !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.art-lb h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem) !important;
  line-height: 1.2 !important;
}
body.art-lb h3 {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem) !important;
  line-height: 1.3 !important;
}

/* Lead paragraph under hero not overly long empty */
body.art-lb .krv-hero__copy > p,
body.art-lb .krv-hero p.text-lg {
  margin-top: 0.85rem !important;
  max-width: 36rem !important;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem) !important;
  line-height: 1.55 !important;
}

/* CTA row under hero */
body.art-lb .krv-hero .flex.flex-col,
body.art-lb .krv-hero__copy .flex.flex-col {
  margin-top: 1.15rem !important;
  gap: 0.65rem !important;
}

/* Trust row */
body.art-lb .flex.items-center.gap-x-5.mt-7 {
  margin-top: 0.95rem !important;
  gap: 0.55rem 1rem !important;
}

/* Icon boxes smaller on mobile */
body.art-lb .w-12.h-12 {
  width: 2.5rem !important;
  height: 2.5rem !important;
}
@media (min-width: 768px) {
  body.art-lb .w-12.h-12 {
    width: 3rem !important;
    height: 3rem !important;
  }
}

/* Step numbers */
body.art-lb .w-9.h-9 {
  width: 2.15rem !important;
  height: 2.15rem !important;
  flex-shrink: 0;
}

/* Final blue CTA band — compact */
body.art-lb .bg-krv.shadow-krv-cta.rounded-3xl,
body.art-lb div.bg-krv.rounded-3xl {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 2.5vw, 2rem) !important;
}
body.art-lb .bg-krv .mt-8,
body.art-lb div.bg-krv .mt-8 {
  margin-top: 1.1rem !important;
}
body.art-lb .bg-krv .mt-4,
body.art-lb div.bg-krv p.mt-4 {
  margin-top: 0.55rem !important;
}

/* Dark panels compact */
body.art-lb .bg-slate-900 {
  padding: var(--card-pad) !important;
}

/* Nav height slightly tighter on mobile */
@media (max-width: 640px) {
  body.art-lb nav .h-16 {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
  }
  .krv-subnav { top: 3.5rem; }
  .krv-subnav__inner {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  body.art-lb .inline-flex.items-center.gap-x-2.bg-white.border {
    margin-bottom: 0.75rem !important;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  :root {
    --sec-y: 2.15rem;
    --hero-y: 2rem;
  }
  .krv-hero {
    gap: 1.25rem !important;
  }
}

/* Desktop: still dense, not sparse */
@media (min-width: 1024px) {
  :root {
    --sec-y: 2.65rem;
    --hero-y: 2.5rem;
    --grid-gap: 1.1rem;
  }
}

/* Mobile CTA bar — compact */
.mobile-cta-bar {
  padding: 0.55rem 0.75rem !important;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px)) !important;
  gap: 0.5rem !important;
}
.mobile-cta-bar a {
  min-height: 44px !important;
  padding: 0.55rem 0.4rem !important;
  font-size: 0.875rem !important;
}
body.has-mobile-cta {
  padding-bottom: 0 !important;
}
@media (max-width: 767.98px) {
  body.has-mobile-cta {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Prevent huge empty from centered blocks with little content */
body.art-lb .text-center.mb-10 > p,
body.art-lb .text-center > p.mt-3 {
  margin-top: 0.5rem !important;
  margin-left: auto;
  margin-right: auto;
  max-width: 38rem;
}

/* how-it-works rows tighter */
body.art-lb .flex.gap-x-4 {
  gap: 0.75rem !important;
}
body.art-lb .flex.gap-x-4 + .flex.gap-x-4 {
  margin-top: 0;
}

/* price list note under grid */
body.art-lb #pricing .text-center.mt-8,
body.art-lb #packages .text-center.mt-8 {
  margin-top: 1rem !important;
}
