/* ===== FR Autodiagnoza v6 (tokeny motywu) ===== */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/themes/hummingbird/assets/fonts/bebas-neue-v16-latin_latin-ext-regular.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/themes/hummingbird/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/themes/hummingbird/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
}



:root {
  --black: #0d0d0d;
  --cream: #f4ead8;
  --grey-4: #333;
  --grey-5: #555;
  --grey-6: #888;
  --border: #ddd3bf;
  --bebas: "Bebas Neue", sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { height: 100%; }
body.fr-standalone {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--inter);
  font-size: 16px;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.fr-header {
  background: var(--black);
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.fr-brand {
  font-family: var(--bebas);
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
}
.fr-tagline { font-family: var(--inter); font-size: 12px; color: var(--grey-6); }

#fr-diagnoza {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* Stopka */
.fr-footer {
  background: var(--black);
  color: var(--grey-6);
  padding: 18px 24px;
  font-size: 12px;
  text-align: center;
}
.fr-footer a { color: var(--cream); }
.fr-sep { margin: 0 6px; }

/* Nagłówki */
.fr-intro h1, .fr-result h1 {
  font-family: var(--bebas);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 38px;
  margin: 0 0 14px;
}
.fr-intro p { font-size: 16px; line-height: 1.6; color: var(--grey-4); }

/* Postęp */
.fr-progress { height: 6px; background: #e6dcc6; border-radius: 3px; margin-bottom: 8px; }
.fr-progress-bar { height: 6px; background: var(--black); border-radius: 3px;
  width: 0; transition: width .3s; }
.fr-section {
  font-family: var(--bebas);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-5);
  margin-bottom: 16px;
}

/* Pytania */
.fr-question h2 { font-family: var(--inter); font-weight: 600;
  font-size: 20px; line-height: 1.35; margin: 0 0 16px; }
.fr-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, background .15s, color .15s; }
.fr-option:hover { border-color: var(--black); }
.fr-option:has(input:checked) { border-color: var(--black); background: var(--black); }
.fr-option:has(input:checked) span { color: var(--cream); }
.fr-option input { margin: 2px 0 0; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: var(--black); }
.fr-other { width: 100%; padding: 12px; margin-top: 4px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--inter); font-size: 16px; }

.fr-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Przyciski */
.btn {
  display: inline-block;
  font-family: var(--bebas);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--black);
  border-radius: 10px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { opacity: .8; }
.btn:disabled { opacity: .35; cursor: default; }
.btn-primary { background: var(--black); color: var(--cream); }

/* Wynik */
.fr-result h1 { font-size: 32px; }
.fr-result p { font-size: 16px; line-height: 1.6; }
.fr-analytics { padding: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; }
.fr-result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Email */
.fr-email-box { margin: 20px 0 28px; padding: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; }
.fr-email-box h3 { font-family: var(--bebas); font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; font-size: 20px; margin: 0 0 12px; }
.fr-email-lead { font-size: 15px; line-height: 1.5; color: var(--grey-4); margin: 0 0 14px; }
.fr-email-box input[type=email] { width: 100%; padding: 13px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--inter); font-size: 16px; }
.fr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px;
  line-height: 1.4; margin-bottom: 10px; cursor: pointer; }
.fr-consent input { margin: 2px 0 0; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: var(--black); }
.fr-privacy, .fr-intro p.fr-privacy  { font-size: 12px; color: var(--grey-5); }
.fr-privacy a { color: var(--black); text-decoration: underline; }

#fr-email-done h3 { font-family: var(--bebas); font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; font-size: 20px; margin: 0 0 8px; }
#fr-email-done p { margin: 0 0 6px; font-size: 15px; }

/* Stopka: pas partnerski */
.fr-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 6px 0 4px;
}
.fr-partners-label {
  font-family: var(--bebas);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.fr-partners-divider {
  width: 1px;
  height: 26px;
  background: rgba(244, 234, 216, .25);
}
.fr-partners-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.fr-partners-logos img {
  height: 30px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  opacity: .7;
}
.fr-footer-rule {
  border: 0;
  border-top: 1px solid rgba(244, 234, 216, .18);
  margin: 14px 0;
}
.fr-footer-legal { color: var(--grey-6); }
.fr-footer-legal a { color: var(--cream); }

@media (max-width: 520px){
  .fr-partners { flex-direction: column; gap: 12px; }
  .fr-partners-divider { width: 40px; height: 1px; }
  .fr-partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 10px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .fr-partners-logos img {
    height: 20px;
    max-width: 100%;
    width: auto;
  }
}


/* Sekcje diagnozy */
.fr-diag-section { margin: 18px 0; padding: 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; }
.fr-diag-section h3 { font-family: var(--bebas); font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; font-size: 18px; margin: 0 0 10px; }
.fr-diag-section p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.fr-diag-metrics { color: var(--grey-5); }
.fr-v-ponizej h3 { color: #8a2f1f; }
.fr-v-powyzej h3 { color: #3d6b35; }

/* Piramida statusów: od góry Lojalizacja, coraz szersze wiersze w dół */
.fr-pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fr-pyr-row { display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.fr-pyr-row:nth-child(1) { width: 55%; }
.fr-pyr-row:nth-child(2) { width: 64%; }
.fr-pyr-row:nth-child(3) { width: 73%; }
.fr-pyr-row:nth-child(4) { width: 82%; }
.fr-pyr-row:nth-child(5) { width: 91%; }
.fr-pyr-row:nth-child(6) { width: 100%; }
.fr-s-solidny { background: #e8efe4; color: #2c4a26; }
.fr-s-czesciowy { background: #f6ecd6; color: #6b5416; }
.fr-s-dziura { background: #f3ddd6; color: #7a2a1a; }
.fr-s-neutralny { background: #eee9df; color: var(--grey-5); }
.fr-leak { outline: 2px solid var(--black); font-weight: 600; }
.fr-pyr-status { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.fr-email-error { color: #8a2f1f; font-size: 14px; margin: 0 0 10px; }