/* ==========================================================================
   Unlease — components
   ========================================================================== */

/* ---------- Icon ---------- */
.i {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--sm { width: 1.125rem; height: 1.125rem; }
.i--lg { width: 2rem; height: 2rem; }

/* ---------- Buttons: pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t) ease;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.125rem; height: 1.125rem; transition: transform var(--t) var(--ease); }
.btn:hover .i--arrow { transform: translateX(3px); }

.btn--primary { background: var(--c-las); border-color: var(--c-las); color: var(--c-kreda); }
.btn--primary:hover { background: var(--c-las-hover); border-color: var(--c-las-hover); color: var(--c-kreda); box-shadow: 0 10px 22px -12px rgba(10, 46, 36, 0.6); }

.btn--outline { background: transparent; border-color: var(--c-las); color: var(--c-las); }
.btn--outline:hover { background: var(--c-mieta-14); color: var(--c-las); }

.btn--link {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--c-las);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.btn--link:hover { color: var(--c-zielen); }

/* on dark panels the main action turns mint (las text 8.3:1) */
.on-las .btn--primary { background: var(--c-mieta); border-color: var(--c-mieta); color: var(--c-las); }
.on-las .btn--primary:hover { background: var(--c-mieta-hover); border-color: var(--c-mieta-hover); color: var(--c-las); }
.on-las .btn--outline { border-color: var(--c-kreda); color: var(--c-kreda); }
.on-las .btn--outline:hover { background: rgba(245, 244, 239, 0.1); color: var(--c-kreda); }
.on-las .btn--link { color: var(--c-kreda); }
.on-las .btn--link:hover { color: var(--c-mieta); }

.btn--sm { min-height: 2.75rem; padding: 0 1.125rem; }
.btn--block { width: 100%; }

/* ---------- Ticks: list with mint check marks ---------- */
.ticks { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 0.625rem; font-weight: 500; }
.ticks li::before {
  content: "";
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  margin-top: 0.1em;
  border-radius: 50%;
  background: var(--c-mieta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2E24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-bialy);
  color: var(--c-las);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
button.chip:hover { border-color: var(--c-las); }
.chip[aria-pressed="true"],
.chip.is-on { border-color: var(--c-las); background: var(--c-las); color: var(--c-kreda); }
.chip--mint { border-color: transparent; background: var(--c-mieta-14); }

/* ---------- Form fields ---------- */
.field { display: grid; gap: 0.375rem; align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .hint { color: var(--c-las-70); font-size: var(--fs-xs); }

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1.5px solid var(--c-field);
  border-radius: var(--r-md);
  background: var(--c-bialy);
  color: var(--c-las);
  font-size: 1.0625rem;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.input::placeholder { color: var(--c-las-70); opacity: 0.8; }
.input:hover { border-color: var(--c-las); }
.input:focus { outline: none; border-color: var(--c-las); box-shadow: 0 0 0 4px var(--c-mieta-22); }
.input[aria-invalid="true"] { border-color: var(--c-error); box-shadow: 0 0 0 4px var(--c-error-bg); }

.input-group { display: flex; align-items: stretch; }
.input-group .prefix {
  display: grid;
  place-items: center;
  padding: 0 0.875rem;
  border: 1.5px solid var(--c-field);
  border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--c-kreda);
  font-weight: 600;
}
.input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; }

.error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--c-error);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.error:empty { display: none; }

.check { display: grid; grid-template-columns: 1.375rem 1fr; gap: 0.75rem; align-items: start; font-size: var(--fs-sm); color: var(--c-las-70); cursor: pointer; }
.check input {
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1em 0 0;
  border: 1.5px solid var(--c-field);
  border-radius: 6px;
  background: var(--c-bialy);
  cursor: pointer;
}
.check input:checked {
  border-color: var(--c-las);
  background: var(--c-las) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--c-bialy);
  box-shadow: var(--sh-card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); }
.card p { color: var(--c-las-70); }
.card p.figure, .card p.name { color: inherit; }

/* offer card */
.card-offer .figure {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card-offer .ticks { margin-top: 0.5rem; font-size: var(--fs-sm); }
.card-offer .btn { margin-top: auto; }
.card-offer.is-featured { background: var(--c-las); color: var(--c-kreda); }
.card-offer.is-featured p { color: var(--c-kreda-72); }
.card-offer .badge {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-mieta);
  color: var(--c-las);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* model card: illustration uses the panel radius */
.card-model { padding: 0.75rem 0.75rem 1.5rem; gap: 0.5rem; }
.card-model .art {
  display: grid;
  place-items: end center;
  aspect-ratio: 16 / 10;
  padding: 1rem;
  border-radius: var(--r-xl);
  background: var(--c-mieta-14);
  overflow: hidden;
}
.card-model .body { display: grid; gap: 0.375rem; padding: 0.5rem 0.75rem 0; }
.card-model .type { color: var(--c-las-70); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.card-model .name { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.card-model .chips { margin-top: 0.25rem; }
.card-model .chip { min-height: 1.875rem; padding: 0 0.75rem; font-size: var(--fs-xs); }

/* step card */
.card-step .art { aspect-ratio: 4 / 3; border-radius: var(--r-xl); background: var(--c-mieta-14); overflow: hidden; }
.card-step .num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-las);
  color: var(--c-mieta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* why card */
.card-why { box-shadow: none; background: transparent; padding: 0; }
.card-why:hover { transform: none; box-shadow: none; }
.card-why .icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-mieta-14);
  color: var(--c-zielen);
}

/* guide tile */
.tile-guide { padding: 0.75rem 0.75rem 1.5rem; text-decoration: none; color: inherit; }
.tile-guide .art { aspect-ratio: 16 / 9; border-radius: var(--r-xl); background-color: var(--c-las); overflow: hidden; }
.tile-guide .body { display: grid; gap: 0.5rem; padding: 0.75rem 0.75rem 0; }
.tile-guide .more { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--c-zielen); font-weight: 600; font-size: var(--fs-sm); }
.tile-guide:hover .more .i { transform: translateX(3px); }
.tile-guide .more .i { transition: transform var(--t) var(--ease); }

/* ---------- FAQ (native details) ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1.125rem 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-bialy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2E24' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1.125rem no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  transition: transform var(--t) var(--ease), background-color var(--t) ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--c-mieta); box-shadow: none; }
.faq summary:hover::after { box-shadow: inset 0 0 0 1.5px var(--c-las); }
.faq .answer { max-width: 44rem; padding: 0 3.5rem 1.5rem 0; color: var(--c-las-70); }

/* ---------- App notification (illustration of the process, not real data) ---------- */
.notif {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  width: min(21rem, 100%);
  padding: 0.875rem 1rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-las);
  box-shadow: var(--sh-pop);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.notif .app {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--c-las);
}
.notif .app svg { width: 1.5rem; height: 1.5rem; }
.notif .meta { display: flex; justify-content: space-between; color: var(--c-las-70); font-size: 0.75rem; }
.notif .title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }

/* ---------- Logo bar (marquee) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 3rem; margin: 0; padding: 0 1.5rem; list-style: none; }
.marquee li { color: var(--c-las-70); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats row ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.stat strong { display: block; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--c-las-70); font-size: var(--fs-sm); }

/* ---------- Legal line ---------- */
.legal { color: var(--c-las-70); font-size: var(--fs-xs); line-height: 1.55; }
.on-las .legal { color: var(--c-kreda-72); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--c-bialy);
  box-shadow: var(--sh-pop);
}
.sticky-cta .btn--primary { flex: 1; }
.sticky-cta .call { width: 3.25rem; padding: 0; flex: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Loader: the U unlocks (CSS only, max 700 ms, never blocks the H1 paint) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--c-kreda);
  pointer-events: none;
  animation: loader-out 220ms ease 480ms forwards;
}
.loader svg { width: 4.5rem; height: auto; overflow: visible; }
.loader .u { animation: loader-u 260ms var(--ease) both; transform-origin: 50% 70%; }
.loader .shackle { animation: loader-shackle 420ms var(--ease) 120ms both; }
@keyframes loader-u { from { opacity: 0; transform: scale(0.92); } }
@keyframes loader-shackle {
  0% { transform: translateY(0); }
  45% { transform: translateY(-38%); }
  70% { transform: translateY(-22%); }
  100% { transform: translateY(-26%); }
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
html.no-loader .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
.loader .u, .loader .shackle { transform-box: fill-box; }

/* ---------- Car illustration (brand line style) ---------- */
.car-art { width: 92%; overflow: visible; }
.car-body { fill: var(--c-bialy); stroke: var(--c-las); stroke-width: 2.5; stroke-linejoin: round; }
.car-win { fill: var(--c-mieta-22); stroke: var(--c-las); stroke-width: 2; stroke-linejoin: round; }
.car-tyre { fill: var(--c-las); }
.car-rim { fill: var(--c-mieta); }
.car-shadow { stroke: var(--c-las); stroke-opacity: 0.18; stroke-width: 2; }

/* ---------- Light card inside a dark panel: restore the light context ---------- */
.on-light { --focus: var(--c-las); color: var(--c-las); }
.on-las .on-light .btn--primary { background: var(--c-las); border-color: var(--c-las); color: var(--c-kreda); }
.on-las .on-light .btn--primary:hover { background: var(--c-las-hover); border-color: var(--c-las-hover); }
.on-las .on-light .btn--outline { border-color: var(--c-las); color: var(--c-las); }
.on-las .on-light .btn--outline:hover { background: var(--c-mieta-14); color: var(--c-las); }
.on-las .on-light .btn--link { color: var(--c-las); }
.on-las .on-light a:not(.btn) { color: var(--c-zielen); }
.on-las .on-light .muted, .on-las .on-light .lead { color: var(--c-las-70); }
