/*
Theme Name: LeadTerrier
Theme URI: https://leadterrier.pl
Description: Motyw landing page dla LeadTerrier — generator leadów B2B z analizą AI.
Version: 1.0
Author: MarcinD
Author URI: https://weboski.pl
Text Domain: leadterrier
*/

:root {
  --bg: #f6f1ec;
  --card: #fff;
  --soft: #faf3ee;
  --border: #ece5dd;
  --accent: #c2603f;
  --accent-d: #a44e30;
  --ink: #2b2320;
  --muted: #8a7d74;
  --faint: #b6a99e;
  --ok: #1d9e75;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120,80,60,.10), 0 2px 6px rgba(120,80,60,.05);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--soft); }

/* Typografia */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { letter-spacing: -.02em; font-weight: 800; line-height: 1.12; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); }
section { padding: 72px 0; }
p { line-height: 1.65; }

/* NAV */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,241,236,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.brand .ai {
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* HERO */
.lt-hero {
  background: linear-gradient(135deg, #fbe4d8 0%, #f7d3c4 45%, #f3c8b6 100%);
  padding: 84px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lt-hero .pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-d);
  margin-bottom: 24px;
}
.lt-hero h1 { margin-top: 8px; }
.lt-hero p.lead { color: #6b5d54; max-width: 620px; margin: 20px auto 0; }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-note { font-size: 13px; color: #8a7565; margin-top: 16px; }

.mock {
  max-width: 880px;
  margin: 48px auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
}
.mock-top {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}
.mock-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e6d5c8;
}
.mock-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.mock-card .h {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.mock-card .l {
  height: 8px;
  background: #f0e7df;
  border-radius: 4px;
  margin: 6px 0;
}
.mock-hero-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.badge-prob {
  background: #faecd9;
  color: #854f0b;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.score {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 14px;
}
.vchk { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; margin: 6px 0; }
.chk { color: var(--ok); }
@media (max-width: 640px) { .mock-body { grid-template-columns: 1fr; } }

/* TRUST BAR */
.lt-trust {
  background: var(--ink);
  color: #f3e9e1;
  padding: 18px 0;
}
.lt-trust .row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.lt-trust .row span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #e9dcd2;
}
.lt-trust b { color: #fff; }

/* PROBLEM */
.lt-problem { text-align: center; }
.lt-problem .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.lt-problem .item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.lt-problem .item .ic { font-size: 22px; margin-bottom: 10px; }
.lt-problem .item h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .lt-problem .grid { grid-template-columns: 1fr; } }

/* KARUZELA MODUŁÓW */
.lt-mods .mods-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}
.carousel { position: relative; }
.viewport { overflow: hidden; padding: 22px 0; }
.track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.ccard {
  flex: 0 0 330px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  opacity: .45;
  transform: scale(.9);
  transition: opacity .45s, transform .45s;
  cursor: pointer;
}
.ccard.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 18px 44px rgba(120,80,60,.16), 0 4px 10px rgba(120,80,60,.06);
}
.ccard h3 { text-align: center; margin: 18px 0 8px; }
.ccard p { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.55; }
.ccard .more {
  display: none;
  text-align: center;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.ccard.active .more { display: block; }
.shot {
  background: var(--soft);
  border-radius: 14px;
  padding: 16px;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}
.mini.brand { background: var(--accent); color: #fff; font-weight: 600; align-self: flex-start; }
.crow { display: flex; justify-content: space-between; align-items: center; }
.tag {
  background: #e9f6f0;
  color: #0f6e56;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}
.arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(120,80,60,.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink);
  z-index: 5;
  line-height: 1;
}
.arrow:hover { background: var(--soft); }
.arrow.prev { left: -8px; }
.arrow.next { right: -8px; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8c4b6;
  border: none;
  cursor: pointer;
  transition: .2s;
  padding: 0;
}
.dot.active { background: var(--accent); width: 22px; border-radius: 6px; }
@media (max-width: 720px) {
  .lt-mods .mods-head { flex-direction: column; }
  .ccard { flex-basis: 78vw; }
}

/* JAK TO DZIAŁA */
.lt-how { background: var(--soft); }
.lt-how .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.step .num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 16px;
}
.step h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .lt-how .steps { grid-template-columns: 1fr; } }

/* DLACZEGO MY */
.lt-why .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.lt-why .item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
}
.lt-why .item .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 20px;
}
.lt-why .item h3 { margin-bottom: 6px; }
@media (max-width: 820px) { .lt-why .grid { grid-template-columns: 1fr; } }

/* CENNIK */
.lt-pricing { text-align: center; }
.plan {
  max-width: 440px;
  margin: 40px auto 0;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.plan .price { font-size: 44px; font-weight: 800; margin: 8px 0; }
.plan ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }

/* FAQ */
.lt-faq .faq-inner { max-width: 760px; margin: 36px auto 0; }
.lt-faq .q {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.lt-faq .q h3 { margin-bottom: 6px; font-size: 17px; }
.lt-faq .q p { color: var(--muted); font-size: 15px; }

/* CTA BAND */
.lt-cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 56px 24px;
  margin: 0 24px 72px;
}
.lt-cta-band h2 { color: #fff; }
.lt-cta-band p { color: #ffe7dc; margin: 12px auto 28px; max-width: 520px; }
.lt-cta-band .btn-primary { background: #fff; color: var(--accent); }
.lt-cta-band .btn-primary:hover { background: #ffeee6; }

/* FOOTER */
footer.site-footer {
  background: var(--ink);
  color: #cdbfb4;
  padding: 56px 0 28px;
  margin-top: 0;
}
footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 700; }
footer a { display: block; padding: 5px 0; font-size: 14px; color: #cdbfb4; }
footer a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #4a3f38;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #9b8d82;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; } }

/* WordPress corrections */
.site-content { min-height: 60vh; }
.wp-block-acf-hero,
.wp-block-acf-trust-bar,
.wp-block-acf-problem,
.wp-block-acf-features-carousel,
.wp-block-acf-how-it-works,
.wp-block-acf-why-us,
.wp-block-acf-pricing,
.wp-block-acf-faq,
.wp-block-acf-cta-band { display: block; }

/* SLOTY MEDIÓW / PLACEHOLDERY (animacje Lottie, grafiki) */
.lt-media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.lt-media img {
  display: block;
  width: 100%;
  height: auto;
}
/* lottie-player bez jawnej wysokości renderuje się jako 0 — wymuszamy proporcję */
.lt-media lottie-player {
  display: block;
  width: 100%;
  height: 100%;
}
/* Widoczny placeholder — pokazuje gdzie wejdzie grafika/animacja */
.lt-media-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 24px;
  background: var(--soft);
  border: 2px dashed var(--border);
  color: var(--faint);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
/* Slot animacji w hero — proporcja 3:2 (animacja 1200×800) */
.hero-media {
  max-width: 640px;
  margin: 40px auto 0;
  aspect-ratio: 3 / 2;
}
/* Animacja wewnątrz ramki makiety (pasek okna zostaje jako HTML) */
.mock .lt-media { border-radius: 0; }
.mock-anim { aspect-ratio: 8 / 3; background: #fff; }

/* ── NATYWNA ANIMACJA HERO (mapa → oferta → wynik) ───────────────────────── */
.lth-stage { position: relative; width: 100%; aspect-ratio: 8 / 3; overflow: hidden; background: #fff; transition: opacity .4s ease; }
.lth-stage.fade { opacity: 0; }
.lth-track { display: flex; width: 300%; height: 100%; transform: translateX(0); transition: transform .7s cubic-bezier(.7,0,.3,1); }
.lth-scene { flex: 0 0 33.3333%; position: relative; height: 100%; overflow: hidden; }
.lth-map { position: absolute; inset: 0; background: var(--bg); background-image: repeating-linear-gradient(0deg,transparent 0 31px,var(--border) 31px 32px),repeating-linear-gradient(90deg,transparent 0 39px,var(--border) 39px 40px); transform: scale(1.15); }
.lth-scene[data-name="map"].play .lth-map { animation: lthZoom 3s ease forwards; }
@keyframes lthZoom { to { transform: scale(1); } }
.lth-sel { position: absolute; top: 50%; left: 50%; width: 17%; aspect-ratio: 1; margin: 0; transform: translate(-50%,-50%) scale(.2); opacity: 0; border: 2px dashed var(--accent); background: rgba(194,96,63,.12); border-radius: 50%; }
.lth-scene[data-name="map"].play .lth-sel { animation: lthSel .9s .3s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes lthSel { to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.lth-pin { position: absolute; color: var(--accent); line-height: 0; opacity: 0; transform: translateY(-20px); }
.lth-scene[data-name="map"].play .lth-pin { animation: lthPin .5s ease forwards; }
.lth-pin:nth-of-type(2){animation-delay:.7s} .lth-pin:nth-of-type(3){animation-delay:.9s} .lth-pin:nth-of-type(4){animation-delay:1.1s} .lth-pin:nth-of-type(5){animation-delay:1.3s}
@keyframes lthPin { 0%{opacity:0;transform:translateY(-20px)} 60%{opacity:1;transform:translateY(3px)} 100%{opacity:1;transform:translateY(0)} }
.lth-count { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%) scale(.6); opacity: 0; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lth-ok { color: #5dcaa5; font-weight: 800; }
.lth-scene[data-name="map"].play .lth-count { animation: lthPop .5s 1.9s cubic-bezier(.34,1.56,.64,1) forwards; }
.lth-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 4% 5%; gap: 9px; }
.lth-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lth-selrow { display: flex; justify-content: space-between; align-items: center; }
.lth-pill { font-size: 12px; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px; }
.lth-offerbox { background: var(--soft); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.lth-btn { margin-top: 2px; background: var(--accent); color: #fff; border-radius: 11px; padding: 11px; text-align: center; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.lth-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; color: var(--ink); transform: translate(15%,18%); z-index: 5; }
.lth-scene[data-name="offer"].play .lth-cursor { animation: lthCur 2.1s ease forwards; }
@keyframes lthCur { 0%{transform:translate(15%,18%)} 65%{transform:translate(46%,68%)} 78%{transform:translate(46%,68%) scale(.8)} 100%{transform:translate(46%,68%)} }
.lth-scene[data-name="offer"].play .lth-btn { animation: lthBtn .35s 1.6s ease; }
@keyframes lthBtn { 50%{transform:scale(.97);background:var(--accent-d)} }
.lth-loading { position: absolute; inset: 0; background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; opacity: 0; }
.lth-scene[data-name="offer"].play .lth-loading { animation: lthFade .35s 2.3s ease forwards; }
.lth-spin { width: 34px; height: 34px; border: 3px solid #f0e7df; border-top-color: var(--accent); border-radius: 50%; animation: lthSpin .8s linear infinite; }
@keyframes lthSpin { to { transform: rotate(360deg); } }
.lth-res { position: absolute; inset: 0; padding: 4% 4.5%; display: flex; flex-direction: column; gap: 10px; }
.lth-head { display: flex; justify-content: space-between; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; opacity: 0; transform: translateY(10px); }
.lth-scene[data-name="result"].play .lth-head { animation: lthSlide .55s ease forwards; }
.lth-co { font-size: 14px; font-weight: 800; color: var(--ink); }
.lth-nip { font-size: 11px; color: var(--muted); margin-top: 1px; }
.lth-headright { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }
.lth-badge { font-size: 11px; font-weight: 600; color: #854f0b; background: #faecd9; border-radius: 999px; padding: 3px 9px; opacity: 0; transform: scale(.8); }
.lth-score { font-size: 13px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 10px; min-width: 30px; text-align: center; opacity: 0; transform: scale(.8); }
.lth-scene[data-name="result"].play .lth-badge { animation: lthPop .45s .45s ease forwards; }
.lth-scene[data-name="result"].play .lth-score { animation: lthPop .5s .6s cubic-bezier(.34,1.56,.64,1) forwards; }
.lth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.lth-sub { border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; opacity: 0; transform: translateY(10px); }
.lth-scene[data-name="result"].play .lth-sub { animation: lthSlide .5s .55s ease forwards; }
.lth-scene[data-name="result"].play .lth-sub:nth-of-type(2) { animation-delay: .7s; }
.lth-sublabel { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.lth-chk { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--ink); margin: 6px 0; opacity: 0; transform: translateX(-6px); }
.lth-tick { color: var(--ok); font-weight: 800; }
.lth-scene[data-name="result"].play .lth-chk { animation: lthFade .45s ease forwards; }
.lth-scene[data-name="result"].play .lth-chk:nth-of-type(2) { animation-delay: .95s; }
.lth-bar { height: 8px; background: #f0e7df; border-radius: 4px; margin: 9px 0; width: 0; }
.lth-scene[data-name="result"].play .lth-bar { animation: lthBar .6s .85s ease forwards; }
.lth-scene[data-name="result"].play .lth-bar:nth-of-type(2) { animation-delay: 1s; }
.lth-scene[data-name="result"].play .lth-bar:nth-of-type(3) { animation-delay: 1.15s; }
@keyframes lthPop { from{opacity:0;transform:scale(.8)} to{opacity:1;transform:scale(1)} }
@keyframes lthSlide { to{opacity:1;transform:translateY(0)} }
@keyframes lthFade { to{opacity:1;transform:translateX(0)} }
@keyframes lthBar { to{width:var(--w)} }
/* Slot w karcie funkcji */
.shot-media { aspect-ratio: 4 / 3; min-height: 140px; }
.shot .lt-media-ph { min-height: 120px; }
