/* ==========================================================================
   Unlease — page sections: header, hero
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 244, 239, 0.92);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  transition: box-shadow var(--t) ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line), 0 10px 30px -24px rgba(10, 46, 36, 0.5); }

.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand-logo { display: flex; align-items: center; flex: none; min-height: 2.75rem; }
.logo-svg { height: 28px; width: auto; }
@media (min-width: 768px) { .logo-svg { height: 32px; } }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  position: relative;
  padding: 0.625rem 0;
  color: var(--c-las);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-mieta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* audience switch: two pages, one sliding pill */
.aud-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--c-bialy);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.aud-switch::before {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill);
  background: var(--c-las);
  transform: translateX(calc(var(--pos, 0) * 100%));
  transition: transform 360ms var(--ease);
}
.aud-switch[data-active="private"] { --pos: 1; }
.aud-switch a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  color: var(--c-las-70);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 220ms ease;
}
.aud-switch a:hover { color: var(--c-las); }
.aud-switch a[aria-current="page"] { color: var(--c-kreda); }
.aud-switch[data-active="business"] a[data-audience="business"],
.aud-switch[data-active="private"] a[data-audience="private"] { color: var(--c-kreda); }
.aud-switch[data-active="business"] a[data-audience="private"],
.aud-switch[data-active="private"] a[data-audience="business"] { color: var(--c-las-70); }

.header-cta { flex: none; }

.menu-btn {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-bialy);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 1.125rem; height: 2px; border-radius: 2px; background: var(--c-las); transition: transform var(--t) var(--ease); }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { padding: 0.5rem 0 1.5rem; border-top: 1px solid var(--c-line); }
.mobile-menu nav { display: grid; }
.mobile-menu a:not(.btn) { padding: 0.875rem 0; border-bottom: 1px solid var(--c-line); color: var(--c-las); font-size: 1.125rem; font-weight: 500; text-decoration: none; }
.mobile-menu .btn { margin-top: 1.25rem; }

@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .brand-logo { margin-right: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 440px) {
  .header-row { gap: 0.5rem; }
  .logo-svg { height: 24px; }
  .aud-switch a { min-height: 2.25rem; padding: 0 0.625rem; font-size: var(--fs-xs); }
}

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-stage { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 4vh, 3rem);
}

.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: clamp(1rem, 2.4vh, 1.5rem); max-width: 34rem; }
.hero .ticks { margin-top: clamp(1.25rem, 3vh, 2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: clamp(1.5rem, 3.5vh, 2.25rem); }
.hero-micro { margin-top: 0.875rem; color: var(--c-las-70); font-size: var(--fs-sm); display: flex; align-items: center; gap: 0.5rem; }
.hero-micro .i { width: 1.125rem; height: 1.125rem; color: var(--c-zielen); }

.hero-legal { max-width: 52rem; padding-block: 1rem 0; }

/* visual: rounded las panel with the U pattern */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: min(calc(100svh - var(--header-h) - 3rem), 46rem);
  min-height: 34rem;
  border-radius: var(--r-xl);
  overflow: clip;
  isolation: isolate;
  container-type: size;
}

.phone-wrap {
  position: relative;
  z-index: 2;
  height: min(78%, 40rem);
  aspect-ratio: 380 / 800;
  perspective: 1400px;
}

/* CSS phone (fallback and first paint): same framing as the 3D phone */
.phone {
  position: absolute;
  inset: 0;
  border-radius: 13% / 6.2%;
  background: linear-gradient(145deg, #1d3a31, #06150f 60%);
  padding: 3.2%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    -14px 26px 50px -18px rgba(0, 0, 0, 0.6),
    0 50px 90px -40px rgba(0, 0, 0, 0.7);
  transform: rotateY(var(--ry, -20deg)) rotateX(var(--rx, 8deg));
  transform-style: preserve-3d;
  transition: opacity 500ms ease;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 3.2%;
  border-radius: 10% / 4.8%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}
.phone-screen, .phone-static {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10% / 4.8%;
  background: var(--c-kreda);
}
.phone-static { display: none; padding: 22% 8% 0; color: var(--c-las); font-size: 0.75rem; }
.no-js .phone-screen { display: none; }
.no-js .phone-static { display: block; }
.phone-static strong { display: block; margin-bottom: 0.75rem; font-size: 1rem; }

.phone-3d {
  position: absolute;
  inset: -12% -30%;
  width: 160%;
  height: 124%;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}
.phone-wrap.is-3d .phone-3d { opacity: 1; }
.phone-wrap.is-3d .phone { opacity: 0; }

/* notifications and flying notes */
.hero-notifs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-notifs .notif {
  position: absolute;
  opacity: var(--o, 0);
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(calc(0.94 + var(--o, 0) * 0.06));
}
.hero-notifs .n1 { top: 9%; left: 5%; }
.hero-notifs .n2 { bottom: 9%; right: 5%; }

.flyer {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem 0.625rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-mieta);
  color: var(--c-las);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.55);
  opacity: var(--o, 0);
  transform: translate(-50%, -50%) translate(calc(var(--fx) * var(--o, 0)), calc(var(--fy) * var(--o, 0))) scale(calc(0.6 + var(--o, 0) * 0.4));
}
.flyer::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-las); }
/* offsets follow the panel size (container units), so notes never leave the panel */
.flyer.f1 { --fx: -33cqw; --fy: -2cqh; }
.flyer.f2 { --fx: 31cqw; --fy: 9cqh; }
.flyer.f3 { --fx: -31cqw; --fy: 17cqh; }

.hero-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-kreda-72);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  opacity: calc(1 - var(--hint, 0));
}

/* pinned choreography: desktop pins the whole stage, phones pin the visual panel */
@media (min-width: 900px) and (min-height: 720px) {
  .hero[data-motion="pin"] .hero-track { height: 220vh; }
  .hero[data-motion="pin"] .hero-stage { position: sticky; top: var(--header-h); }
}
/* short desktop screens: the copy would not fit a pinned stage, so only the panel pins */
@media (min-width: 900px) and (max-height: 719.98px) {
  .hero-grid { align-items: start; }
  .hero[data-motion="pin"] .visual-track { height: calc(min(calc(100svh - var(--header-h) - 3rem), 46rem) + 120vh); }
  .hero[data-motion="pin"] .hero-visual { position: sticky; top: calc(var(--header-h) + 0.5rem); min-height: 0; }
}

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero h1 { max-width: 15ch; }
  .hero-visual { height: 70svh; min-height: 30rem; }
  .hero[data-motion="pin"] .visual-track { height: calc(70svh + 120vh); }
  .hero[data-motion="pin"] .hero-visual { position: sticky; top: calc(var(--header-h) + 0.5rem); }
  .hero-notifs .notif { width: min(17.5rem, 82%); }
  .hero-notifs .n1 { top: 5%; left: 4%; }
  .hero-notifs .n2 { bottom: 5%; right: 4%; }
  .flyer { font-size: var(--fs-xs); padding: 0.5rem 0.75rem 0.5rem 0.625rem; }
  /* on phones the notes land in the empty lower part of the screen, sized to the panel */
  .flyer.f1 { --fx: -4.5rem; --fy: 14cqh; }
  .flyer.f2 { --fx: 4.5rem; --fy: 20cqh; }
  .flyer.f3 { --fx: -3.5rem; --fy: 26cqh; }
}

/* reduced motion: static end state (screen 3, both notifications, notes visible) */
@media (prefers-reduced-motion: reduce) {
  .hero-notifs .notif, .flyer { --o: 1 !important; }
  .hero-hint { display: none; }
}

/* sticky CTA on phones: shown by js once the hero is passed */
.sticky-cta { transform: translateY(160%); transition: transform 380ms var(--ease); }
.sticky-cta.is-visible { transform: none; }

/* ---------- Shared bits ---------- */
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
.hero-visual { background-color: var(--c-las); color: var(--c-kreda); }
.notif-mark { width: 1.375rem; height: auto; overflow: visible; }
.hero-hint .i { width: 1rem; height: 1rem; }
[id][tabindex="-1"]:focus { outline: none; }

/* ==========================================================================
   Homepage sections (phase 3)
   ========================================================================== */
.kicker { color: var(--c-zielen); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.on-las .kicker { color: var(--c-mieta); }
.panel--mieta .kicker { color: var(--c-las); }
.on-las .on-light .kicker { color: var(--c-zielen); }

.panel.section { margin-block: var(--panel-inset); }
.section-head { display: grid; gap: 0.75rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; max-width: none; }
.section-head--row > div { display: grid; gap: 0.75rem; max-width: 40rem; }
.section-head--row > p { max-width: 24rem; }
.section-more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* 1. trust bar */
.trust { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.trust .stats { justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid var(--c-line); }
.trust .stat { flex: 1 1 12rem; }
.trust-brands { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 2rem; }
.trust-label { color: var(--c-las-70); font-size: var(--fs-sm); white-space: nowrap; }
@media (max-width: 700px) {
  .trust-brands { grid-template-columns: 1fr; }
  .trust .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .trust .stat:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; animation: none; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; gap: 0.75rem 2rem; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* 2. steps: they light up one by one while scrolling (js adds .is-lit) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.card-step { padding: 0.75rem 0.75rem 1.75rem; }
.card-step > :not(.art) { margin-inline: 0.75rem; }
.card-step .num { margin-top: 0.75rem; transition: background-color 400ms ease, color 400ms ease; }
.card-step .art { display: grid; place-items: center; transition: filter 600ms ease; }
html.js .steps[data-ready] .card-step:not(.is-lit) .art { filter: grayscale(1); }
html.js .steps[data-ready] .card-step:not(.is-lit) .ill { transform: scale(0.94); }
.ill { transition: transform 600ms var(--ease); }
html.js .steps[data-ready] .card-step:not(.is-lit) .num { background: var(--c-line); color: var(--c-las-70); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* step illustrations (UI in brand style, decorative) */
.ill { display: grid; gap: 0.5rem; width: min(80%, 17rem); font-size: 0.75rem; color: var(--c-las); }
.ill-field { display: grid; gap: 0.25rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: var(--c-bialy); box-shadow: inset 0 0 0 1px var(--c-line); }
.ill-field span { color: var(--c-las-70); font-size: 0.6875rem; font-weight: 600; }
.ill-field i { display: block; width: 55%; height: 0.375rem; border-radius: 1rem; background: var(--c-line); }
.ill-field:nth-child(2) i { width: 70%; }
.ill-field:nth-child(3) i { width: 45%; }
.ill-btn { margin-top: 0.25rem; padding: 0.625rem; border-radius: var(--r-pill); background: var(--c-las); color: var(--c-kreda); font-weight: 600; text-align: center; }
.ill-bubble { display: grid; gap: 0.125rem; max-width: 80%; padding: 0.625rem 0.875rem; border-radius: 1rem; background: var(--c-bialy); box-shadow: 0 6px 16px -10px rgba(10, 46, 36, 0.4); }
.ill-bubble b { font-size: 0.6875rem; color: var(--c-las-70); }
.ill-bubble--in { border-bottom-left-radius: 0.25rem; }
.ill-bubble--out { justify-self: end; border-bottom-right-radius: 0.25rem; background: var(--c-las); color: var(--c-kreda); }
.ill-bubble--out b { color: var(--c-mieta); }
.ill-chip { display: inline-flex; align-items: center; gap: 0.375rem; justify-self: center; margin-top: 0.25rem; padding: 0.5rem 0.875rem; border-radius: var(--r-pill); background: var(--c-mieta); font-weight: 600; }
.ill-chip .i { width: 1rem; height: 1rem; }
.ill-doc { display: grid; gap: 0.5rem; padding: 1rem; border-radius: 0.875rem; background: var(--c-bialy); box-shadow: 0 10px 24px -14px rgba(10, 46, 36, 0.45); }
.ill-doc b { font-size: 0.875rem; }
.ill-doc i { display: block; height: 0.375rem; border-radius: 1rem; background: var(--c-line); }
.ill-doc i.short { width: 60%; }
.ill-signature { width: 60%; height: auto; margin-top: 0.25rem; fill: none; stroke: var(--c-las); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 3. offers */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.card-offer.is-featured h3 { color: var(--c-kreda); }
.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.industries-title { font-size: var(--fs-sm); font-weight: 600; }
.industries .chips { margin: 0; padding: 0; list-style: none; }
.industries .chip { text-decoration: none; color: var(--c-las); background: var(--c-bialy); }
.industries .chip:hover { border-color: var(--c-las); }
.offers-legal { margin-top: 1.25rem; }
@media (max-width: 999px) { .offers { grid-template-columns: 1fr; max-width: 34rem; } .offers .is-featured { order: -1; } }

/* 4. models */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.card-model .name { font-size: 1.25rem; }
.card-model .btn--link { justify-self: start; margin-top: 0.5rem; }
.car-line { fill: none; stroke: var(--c-las); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 699px) {
  .models-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1.25rem;
    scrollbar-width: none;
  }
  .models-grid > li { scroll-snap-align: start; }
}

/* 5. mid CTA */
.mid-cta { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.mid-cta-inner { display: grid; gap: 2rem; justify-items: start; }
.mid-cta h2 { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); }
.mid-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.mid-cta-micro { color: var(--c-kreda-72); font-size: var(--fs-sm); }

/* 6. why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.why h3 { font-size: 1.125rem; }
@media (max-width: 999px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* 7. costs */
.costs-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.price-table { margin: 0; border-top: 1px solid var(--c-line); }
.price-table > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.price-table dt { color: var(--c-las-70); }
.price-table dd { margin: 0; font-size: 1.125rem; font-weight: 600; }
.rep-example { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--c-kreda); }
.rep-example h3 { font-size: 1.125rem; }
.rep-example dl { display: grid; gap: 0.625rem; margin: 0; font-size: var(--fs-sm); }
.rep-example dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.rep-example dt { color: var(--c-las-70); }
.rep-example dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 899px) { .costs-body { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .price-table > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* 8. guides */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.tile-guide:hover { transform: none; box-shadow: var(--sh-card); }
.guide-art { display: grid; place-items: center; background-color: var(--c-las); background-image: url("/assets/img/pattern-dark.svg"); background-size: 120px; }
.guide-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--c-mieta); color: var(--c-las); }
.tile-guide h3 { font-size: 1.1875rem; }
@media (max-width: 899px) { .guides { grid-template-columns: 1fr; max-width: 34rem; } }

/* 9. FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq .answer p { color: var(--c-las-70); }
@media (max-width: 899px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* 10. form */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.form-card { gap: 0.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card:hover { transform: none; box-shadow: var(--sh-card); }
.form-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.lead-form { display: grid; gap: 1.125rem; margin-top: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-model { padding: 0.625rem 0.875rem; border-radius: var(--r-md); background: var(--c-mieta-14); font-size: var(--fs-sm); }
.form-status:empty { display: none; }
.form-status { font-size: var(--fs-sm); font-weight: 600; }
.next-steps { display: grid; gap: 1.5rem; }
.next-steps h3, .next-steps h2 { font-size: var(--fs-h3); }
.next-steps ol { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.next-steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; }
.next-steps .num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-mieta); color: var(--c-las); font-weight: 600; }
.next-steps strong { display: block; margin-bottom: 0.25rem; }
.next-steps p { color: var(--c-kreda-72); font-size: var(--fs-sm); }
@media (max-width: 899px) { .form-layout { grid-template-columns: 1fr; } }

/* 11. closing CTA + footer */
.end-cta { padding-block: clamp(4rem, 3rem + 5vw, 7rem); text-align: center; }
.end-cta-inner { display: grid; justify-items: center; gap: 1.25rem; max-width: 40rem; margin-inline: auto; }
.end-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.end-cta-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.end-cta-phone .i { color: var(--c-zielen); }

.site-footer { margin-bottom: var(--panel-inset); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem 2rem; }
.footer-grid > * { flex: 1 1 11rem; }
.footer-grid > .footer-brand { flex: 1.6 1 18rem; }
.footer-brand { display: grid; gap: 1.25rem; align-content: start; max-width: 22rem; }
.footer-brand p { color: var(--c-kreda-72); font-size: var(--fs-sm); }
.footer-title { margin-bottom: 1rem; color: var(--c-kreda); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.footer-col ul, .footer-links { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--c-kreda-72); }
.site-footer a:not(.btn) { color: var(--c-kreda-72); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--c-mieta); text-decoration: underline; }
.footer-company { margin-top: 1rem; color: var(--c-kreda-72); font-size: var(--fs-xs); font-style: normal; line-height: 1.6; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding-top: 1.5rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(245, 244, 239, 0.16); }
.footer-links { display: flex; gap: 1.5rem; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--c-mieta); text-decoration: underline; }
@media (max-width: 767px) { body { padding-bottom: 5rem; } }

/* gentle reveal while scrolling (scroll-driven, only where supported, never with reduced motion) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .offers > *, .models-grid > li, .why > li, .guides > li, .price-table, .rep-example, .form-card, .next-steps, .trust .stat {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 1.5rem; } }

/* below-the-fold sections skip layout and paint until they get close to the screen */
main > section:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ==========================================================================
   Phase 4: form states, consent banner, thank-you page
   ========================================================================== */
.form-status.is-error { color: var(--c-error); }
.lead-form button[disabled] { opacity: 0.75; cursor: progress; }
.field .hint strong { color: var(--c-las); }

.consent {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(40rem, calc(100% - 1.5rem));
  transform: translate(-50%, 1rem);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 220ms ease;
}
.consent.is-open { transform: translate(-50%, 0); opacity: 1; }
.consent-box { display: grid; gap: 0.875rem; padding: 1.25rem 1.25rem 1rem; border-radius: var(--r-lg); background: var(--c-bialy); color: var(--c-las); box-shadow: var(--sh-pop), 0 0 0 1px var(--c-line); }
.consent h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.consent p { color: var(--c-las-70); font-size: var(--fs-sm); line-height: 1.5; }
.consent p a { color: var(--c-zielen); }
.consent-prefs { display: grid; gap: 0.75rem; margin: 0; padding: 0.25rem 0 0; border: 0; }
.consent-prefs .check { color: var(--c-las-70); }
.consent-prefs .check strong { color: var(--c-las); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.consent-actions .btn--sm { flex: 1 1 10rem; }
.consent-more { min-height: 2.75rem; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* thank-you page */
.thanks { padding-block: clamp(3rem, 8vw, 7rem); }
.thanks-inner { display: grid; gap: 1.5rem; max-width: 44rem; }
.thanks-mark { width: 4rem; height: auto; overflow: visible; }
.thanks .lead { color: var(--c-las-70); }
.thanks .next-steps { margin-top: 1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-xl); background: var(--c-las); color: var(--c-kreda); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
button.btn--link { background: none; border-color: transparent; }

/* legal / long text pages */
.legal-page { padding-block: clamp(3rem, 7vw, 6rem); }
.prose { display: grid; gap: 1rem; max-width: 46rem; }
.prose h2 { margin-top: 1.5rem; font-size: var(--fs-h3); }
.prose p, .prose li { color: var(--c-las-70); }
.prose ul { display: grid; gap: 0.375rem; margin: 0; padding-left: 1.25rem; }
.prose strong { color: var(--c-las); }
