/* =========================================================
   Kolik vás stojí neinvestovat — Brand styles
   Brand: Nauč se investovat (naucseinvestovat.cz)
   ========================================================= */

:root {
  --orange-light: #F47C21;
  --orange-dark:  #F15B22;
  --orange-tint:  #FFBC7D;
  --navy:         #022533;
  --bg:           #F9FDFF;
  --white:        #FFFFFF;
  --text:         #131010;
  --gray:         #D1D5DB;
  --gradient:     linear-gradient(135deg, #F47C21 0%, #F15B22 100%);
  --shadow-card:  0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 32px rgba(244, 124, 33, 0.18);
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--navy);
  text-wrap: balance;
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- Typography helpers ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-navy    { color: var(--navy); }
.text-orange  { color: var(--orange-light); }
.bg-navy      { background-color: var(--navy); }
.bg-bg        { background-color: var(--bg); }
.bg-gradient-brand { background: var(--gradient); }

/* ---- Brand CTA button ---- */
.btn-cta {
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1.05rem;
  line-height: 1.1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(241, 91, 34, 0.28);
  text-decoration: none;
}
.btn-cta:hover  { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(241, 91, 34, 0.35); }
.btn-cta:active { transform: translateY(0); }
.btn-cta.btn-lg { padding: 20px 44px; font-size: 1.15rem; border-radius: 14px; }
.btn-cta.w-full-form { width: 100%; }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(2, 37, 51, 0.15);
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--orange-light);
  background: rgba(244, 124, 33, 0.05);
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}
.icon-circle-soft {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(244, 124, 33, 0.1);
  color: var(--orange-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---- Hero dot pattern ---- */
.hero-dots {
  background-image: radial-gradient(circle, rgba(244, 124, 33, 0.18) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}

/* ---- Scroll reveal (progressive enhancement: visible by default, JS adds .js-reveal to enable fade-in) ---- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Big highlight number (counters) ---- */
.big-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Comparison bars ---- */
.bar-track {
  position: relative;
  background: rgba(2, 37, 51, 0.06);
  border-radius: 10px;
  overflow: hidden;
  height: 28px;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 10px;
  transition: width 1.2s ease-out;
}
.bar-fill.petr { background: rgba(2, 37, 51, 0.35); width: var(--petr-w, 46%); }
.bar-fill.jana { background: var(--gradient);       width: var(--jana-w, 100%); }
.js-reveal .bar-fill.petr { width: 0; }
.js-reveal .bar-fill.jana { width: 0; }
.js-reveal .visible .bar-fill.petr { width: var(--petr-w, 46%); }
.js-reveal .visible .bar-fill.jana { width: var(--jana-w, 100%); }

/* ---- Snowball visual ---- */
.snowball {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
}
.snowball > span {
  display: block;
  border-radius: 999px;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ---- FAQ accordion ---- */
.faq-item {
  background: var(--white);
  border: 1px solid rgba(2, 37, 51, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(244, 124, 33, 0.35);
  box-shadow: 0 6px 16px rgba(244, 124, 33, 0.08);
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--orange-light);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 24px 22px;
  color: rgba(19, 16, 16, 0.78);
  line-height: 1.6;
}

/* ---- Form ---- */
.form-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(2, 37, 51, 0.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus-visible {
  border-color: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(244, 124, 33, 0.15);
}
.form-input::placeholder { color: rgba(19, 16, 16, 0.4); }

.form-step { display: none; }
.form-step.active {
  display: block;
  animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.progress-step { transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.progress-step.done .step-circle {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}
.progress-step.active .step-circle {
  border-color: var(--orange-light);
  color: var(--orange-light);
}
.progress-step.done .step-label,
.progress-step.active .step-label { color: var(--orange-light); }
.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(2, 37, 51, 0.1);
  transition: background 0.4s ease;
}
.progress-line.done { background: var(--gradient); }

/* ---- intl-tel-input v23 light overrides ---- */
.iti {
  width: 100%;
  background: var(--white) !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(2, 37, 51, 0.12) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.iti:focus-within {
  border-color: var(--orange-light) !important;
  box-shadow: 0 0 0 3px rgba(244, 124, 33, 0.15) !important;
}
#phone,
.iti input[type=tel],
.iti .iti__tel-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--text) !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  padding-right: 16px !important;
  font-size: 0.98rem !important;
  font-family: inherit !important;
}
.iti__selected-country,
.iti__country-container button {
  background: rgba(2, 37, 51, 0.04) !important;
  border-right: 1px solid rgba(2, 37, 51, 0.08) !important;
  border-radius: 10px 0 0 10px !important;
  padding: 0 10px 0 12px !important;
}
.iti__selected-country:hover,
.iti__country-container button:hover { background: rgba(2, 37, 51, 0.08) !important; }
.iti__selected-dial-code,
.iti__dial-code {
  color: var(--navy) !important;
  font-weight: 400 !important;
  font-family: inherit !important;
}
.iti__arrow { border-top-color: var(--navy) !important; opacity: 0.6; }
.iti__country-name { color: var(--navy) !important; }
.iti__dropdown-content,
.iti__country-list {
  background-color: #fff !important;
  border: 1px solid rgba(2, 37, 51, 0.15) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background-color: rgba(244, 124, 33, 0.1) !important;
}

/* ---- Trust indicator ---- */
.trust-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(19, 16, 16, 0.65);
}

/* ---- Section dividers ---- */
.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
/* White cards inside navy sections (quiz, lead form) keep dark headings */
.section-navy .card h1,
.section-navy .card h2,
.section-navy .card h3,
.section-navy .card h4,
.section-navy .bg-white h1,
.section-navy .bg-white h2,
.section-navy .bg-white h3,
.section-navy .bg-white h4,
.section-navy .quiz-step h1,
.section-navy .quiz-step h2,
.section-navy .quiz-step h3,
.section-navy .quiz-step h4 { color: var(--navy); }

/* ---- Spinner ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---- Quiz ---- */
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: quizSlideIn 0.35s ease forwards;
}
@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 2px solid rgba(2, 37, 51, 0.1);
  border-radius: 14px;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.quiz-option:hover {
  border-color: var(--orange-light);
  background: rgba(244, 124, 33, 0.04);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--orange-light);
  background: rgba(244, 124, 33, 0.08);
  box-shadow: 0 0 0 3px rgba(244, 124, 33, 0.15);
}
.quiz-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(2, 37, 51, 0.06);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.quiz-option:hover .quiz-letter,
.quiz-option.selected .quiz-letter {
  background: var(--gradient);
  color: #fff;
}
.quiz-option-text { flex: 1; }

/* ---- Sticky mobile CTA ---- */
@media (max-width: 640px) {
  .sticky-cta-mobile {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 40;
    box-shadow: 0 12px 32px rgba(241, 91, 34, 0.45);
  }
}
