/* ==========================================================================
   Fitko landing stranice (12 URL-ova) — redizajn 12.11.2026.
   Učitava se nakon homepage.css i koristi njegove tokene (--fk-*) i primitive:
   .fk-btn, .fk-link-arrow, .fk-checks, .fk-shot/.fk-phone, .fk-callout/.fk-detail,
   .fk-faq, .fk-cta, .fk-zoom. Vlastite klase imaju prefiks fkl-.
   Predložak: templates/fitko/pages/landing.html.twig
   ========================================================================== */

/* ---------- Hero ---------- */
.fkl-hero {
  padding-block: clamp(16px, 3.5vw, 56px) clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, var(--fk-cream) 0%, var(--fk-sand) 100%);
}
.fkl-hero__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) {
  .fkl-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .fkl-hero__grid--trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.fkl-hero__copy { max-width: 38rem; }
.fkl-hero__title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.125rem); line-height: 1.08; letter-spacing: -.03em;
}
.fkl-hero__lead {
  max-width: 36rem; margin-bottom: 28px;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55;
  color: var(--fk-ink-2);
}

/* Pozornica u boji logotipa iz homepage.css (.fk-hero__stage) sa snimkom i napomenom ispod */
.fkl-hero__stage { flex-direction: column; align-items: center; gap: 14px; }
.fkl-hero__shot { --w: min(272px, 72vw); }
@media (min-width: 960px) {
  .fkl-hero__shot { --w: clamp(260px, 22vw, 300px); }
}
.fkl-hero__stage .fk-demo-note { max-width: 22rem; color: var(--fk-on-brand-muted); }
/* "Uvećaj" ostaje dostupan čitaču zaslona, a vizualno je skriven (kao na naslovnici) */
.fkl-hero .fk-shot__hint {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tri white-label aplikacije: na mobitelu vodoravni niz, na desktopu tri mobitela */
.fkl-hero__stage--trio { padding-inline: 0; }
.fkl-trio {
  position: relative;
  list-style: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(56vw, 220px); gap: 14px;
  width: 100%;
  padding: 4px 20px 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.fkl-trio::-webkit-scrollbar { display: none; }
.fkl-trio > li { scroll-snap-align: center; display: flex; justify-content: center; container-type: inline-size; }
.fkl-trio .fk-shot { --w: 200px; --w: 100cqi; }
@media (min-width: 960px) {
  .fkl-trio {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; padding: 0 24px; overflow: visible;
  }
  .fkl-trio > li:nth-child(2) { padding-top: 48px; }
  .fkl-trio .fk-shot { --w: min(100cqi, 196px); }
}

/* ---------- Ukratko (highlights) ---------- */
.fkl-keys {
  list-style: none;
  display: grid; gap: 12px;
  margin-top: clamp(28px, 4vw, 56px);
}
@media (min-width: 720px) {
  .fkl-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.fkl-key {
  display: grid; gap: 6px; align-content: start;
  padding: 20px 22px;
  border: 1px solid var(--fk-line); border-radius: var(--fk-radius);
  background: var(--fk-paper);
}
.fkl-key__num { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; color: var(--fk-forest); }
.fkl-key h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.fkl-key p { font-size: .9375rem; line-height: 1.5; color: var(--fk-muted); }

/* ---------- Zajednički naslovi sekcija ---------- */
.fkl .fk-section-head h2 { text-wrap: balance; }
.fkl-problem__intro h2,
.fkl-start__intro h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.16;
}

/* ---------- Problem ---------- */
.fkl-problem { background: var(--fk-paper); }
.fkl-problem__grid { display: grid; gap: 32px; }
.fkl-problem__intro h2 { margin-bottom: 16px; }
.fkl-problem__intro p { max-width: 36rem; color: var(--fk-muted); }
@media (min-width: 960px) {
  .fkl-problem__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .fkl-problem__intro { position: sticky; top: calc(var(--fk-header-h) + 32px); }
}
.fkl-points { list-style: none; border-top: 1px solid var(--fk-line); }
.fkl-points li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px;
  padding-block: 22px; border-bottom: 1px solid var(--fk-line);
}
.fkl-points__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fk-sage-tint); color: var(--fk-forest); font-weight: 800;
}
.fkl-points h3 { margin-bottom: 6px; font-size: var(--fk-h3); line-height: 1.3; }
.fkl-points p { color: var(--fk-muted); }

/* ---------- Usporedba (WhatsApp i Excel) ---------- */
.fkl-compare { background: var(--fk-paper); }
.fkl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.fkl-table th,
.fkl-table td {
  padding: 18px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--fk-line);
}
.fkl-table thead th {
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fk-muted); border-bottom: 1.5px solid var(--fk-line-strong);
}
.fkl-table thead th:last-child { color: var(--fk-forest); }
.fkl-table tbody th { width: 22%; font-weight: 800; }
.fkl-table td { color: var(--fk-muted); }
.fkl-table td:last-child { background: rgba(227, 239, 230, .6); color: var(--fk-ink); font-weight: 600; }
.fkl-table__note { margin-top: 20px; }
@media (max-width: 719px) {
  .fkl-table thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0;
  }
  .fkl-table, .fkl-table tbody, .fkl-table tr, .fkl-table th, .fkl-table td { display: block; width: 100%; }
  .fkl-table tbody { display: grid; gap: 12px; }
  .fkl-table tr {
    overflow: hidden;
    border: 1px solid var(--fk-line); border-radius: var(--fk-radius);
    background: var(--fk-paper);
  }
  .fkl-table tbody th { width: 100%; padding: 16px 18px 8px; border: 0; font-size: 1.0625rem; }
  .fkl-table td { padding: 10px 18px 14px; border: 0; }
  .fkl-table td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--fk-muted);
  }
  .fkl-table td:last-child::before { color: var(--fk-forest); }
}

/* ---------- EntryPoint tok ---------- */
.fkl-flow { background: var(--fk-brand-soft); color: var(--fk-ink); }
.fkl-flow .fk-section-head h2 { color: var(--fk-ink); }
.fkl-flow .fk-section-head p { color: var(--fk-muted); }
.fkl-flow__list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 720px) { .fkl-flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fkl-flow__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.fkl-flow__list li {
  display: grid; gap: 10px; align-content: start;
  padding: 22px;
  border: 1px solid var(--fk-line-strong); border-radius: var(--fk-radius);
  background: var(--fk-paper);
}
.fkl-flow__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fk-brand); color: var(--fk-on-brand); font-weight: 800;
}
.fkl-flow__list h3 { font-size: 1.0625rem; line-height: 1.3; color: var(--fk-ink); }
.fkl-flow__list p { font-size: .9375rem; color: var(--fk-muted); }
.fkl-flow__note { margin-top: 22px; font-size: .9375rem; color: var(--fk-muted); }
.fkl-flow :focus-visible { outline-color: var(--fk-forest); }

/* ---------- Funkcije (sekcije iz payloada) ---------- */
.fkl-rows { background: var(--fk-cream); }
.fkl-row {
  display: grid; gap: 28px;
  padding-block: clamp(32px, 4.5vw, 56px);
  border-top: 1px solid var(--fk-line);
}
.fkl-row:last-child { padding-bottom: 0; }
.fkl-row__body { display: grid; gap: 14px; align-content: start; justify-items: start; }
.fkl-row__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fk-forest);
}
.fkl-row__badge span {
  display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding-inline: 8px;
  border-radius: 999px; background: var(--fk-sage-tint); letter-spacing: .02em;
}
.fkl-row h3 { max-width: 34ch; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); line-height: 1.2; }
.fkl-row__text { max-width: 40rem; color: var(--fk-muted); }
.fkl-row__checks { width: 100%; margin-top: 4px; }
.fkl-row__body .fk-providers { margin-top: 6px; }

.fkl-row__media { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.fkl-row__media:not(:has(figure:not(.is-missing))) { display: none; }
.fkl-row__shot { --w: min(264px, 70vw); }

@media (min-width: 960px) {
  /* Sekcija bez snimke: naslov i tekst lijevo, popis desno */
  .fkl-row:not(.fkl-row--media) .fkl-row__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px;
    grid-template-areas: "badge checks" "title checks" "text checks";
    justify-items: stretch;
  }
  .fkl-row:not(.fkl-row--media) .fkl-row__badge { grid-area: badge; justify-self: start; }
  .fkl-row:not(.fkl-row--media) h3 { grid-area: title; }
  .fkl-row:not(.fkl-row--media) .fkl-row__text { grid-area: text; }
  .fkl-row:not(.fkl-row--media) .fkl-row__checks { grid-area: checks; align-self: start; margin-top: 0; padding-top: 4px; }

  /* Sekcija sa snimkom; svaka druga zrcalno */
  .fkl-row--media { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .fkl-row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .fkl-row--flip .fkl-row__media { order: -1; }
  /* Mobitel + Stripe detalj trebaju širi stupac (callout od 1200 px ima 580 px) */
  .fkl-row--callout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .fkl-row--callout.fkl-row--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .fkl-row__shot { --w: 280px; }
}

/* ---------- Izrez snimke na uskom ekranu (cijeli zaslon u uvećanju) ---------- */
@media (max-width: 719px) {
  .fkl-crop .fk-phone {
    max-height: calc(var(--w) * 1.3); overflow: hidden;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  }
  .fkl-crop--mid .fk-phone {
    max-height: calc(var(--w) * 1.66);
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
  .fkl-crop--tall .fk-phone {
    max-height: calc(var(--w) * 1.86);
    -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  }
  .fkl-crop .fk-shot__open { gap: 4px; }
}

/* ---------- Primjena ---------- */
.fkl-cases { background: var(--fk-sand); }
.fkl-cases__list { list-style: none; display: grid; gap: 16px; }
@media (min-width: 820px) { .fkl-cases__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.fkl-case {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(22px, 2.5vw, 30px);
  border: 1px solid var(--fk-line); border-radius: var(--fk-radius);
  background: var(--fk-paper);
}
.fkl-case h3 { font-size: var(--fk-h3); line-height: 1.3; }
.fkl-case p { color: var(--fk-muted); }
.fkl-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fkl-tags li {
  padding: 5px 12px; border-radius: 999px;
  background: var(--fk-sage-tint); color: var(--fk-forest);
  font-size: .875rem; font-weight: 600; line-height: 1.35;
}

/* ---------- Kako krenuti ---------- */
.fkl-start { background: var(--fk-paper); }
.fkl-start__grid { display: grid; gap: 32px; }
.fkl-start__intro h2 { margin-bottom: 16px; }
.fkl-start__intro p { max-width: 34rem; color: var(--fk-muted); }
@media (min-width: 960px) {
  .fkl-start__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; row-gap: 24px; align-items: start; }
  .fkl-start__intro { grid-row: span 2; position: sticky; top: calc(var(--fk-header-h) + 32px); }
}
.fkl-steps { list-style: none; display: grid; gap: 12px; }
.fkl-steps li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--fk-line); border-radius: var(--fk-radius);
  background: var(--fk-cream);
}
.fkl-steps__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fk-brand); color: var(--fk-on-brand); font-weight: 800;
}
.fkl-steps h3 { margin-bottom: 6px; font-size: 1.0625rem; line-height: 1.3; }
.fkl-steps p { font-size: .9375rem; color: var(--fk-muted); }
.fkl-prepare {
  display: grid; gap: 16px; justify-items: start;
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: var(--fk-radius);
  background: var(--fk-sage-tint);
}
.fkl-prepare h3 { font-size: var(--fk-h3); line-height: 1.3; }
.fkl-prepare .fk-checks li::before { background-color: #fff; }

/* ---------- Povezane stranice ---------- */
.fkl-related { background: var(--fk-sand); }
.fkl-related__list { list-style: none; display: grid; gap: 14px; }
@media (min-width: 820px) { .fkl-related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.fkl-related__card {
  display: grid; gap: 8px; align-content: start; height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--fk-line); border-radius: var(--fk-radius);
  background: var(--fk-paper);
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fkl-related__card:hover { border-color: var(--fk-forest); box-shadow: var(--fk-shadow); }
.fkl-related__label { font-size: 1.125rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.fkl-related__text { font-size: .9375rem; color: var(--fk-muted); }
.fkl-related__go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-weight: 700; color: var(--fk-forest);
}
.fkl-related__card:hover .fkl-related__go .fk-icon { transform: translateX(3px); }
.fkl-related__go .fk-icon { transition: transform .2s ease; }

/* ---------- Završni poziv: dulji naslovi iz payloada ---------- */
.fkl-cta h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); }
