/* Self-hosted fonts, preloaded in index.html */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/sora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial sized to each font's widths, so the swap does not move the hero */
@font-face {
  font-family: 'Bebas Neue Fallback';
  src: local('Arial'), local('Liberation Sans');
  size-adjust: 57.81%;
  ascent-override: 155.70%;
  descent-override: 51.90%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora Fallback';
  src: local('Arial'), local('Liberation Sans');
  size-adjust: 113.20%;
  ascent-override: 85.69%;
  descent-override: 25.62%;
  line-gap-override: 0%;
}

:root {
  --color-bg: #0A0A0A;
  --color-bg-elevated: #1A1A1A;
  --color-yellow: #FFEB00;
  --color-yellow-hover: #FFD700;
  --color-text: #FFFFFF;
  --color-text-muted: #A0A0A0;
  --color-border: #2A2A2A;
}

html, body { background: var(--color-bg); }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

::selection { background: var(--color-yellow); color: #000; }

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* Pakiet hover */
.pkg-card { transition: transform .25s ease, border-color .25s ease; }
.pkg-card:hover { transform: scale(1.02); border-color: var(--color-yellow); }

/* FAQ accordion */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform .3s ease; display: inline-block; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item > div { animation: faqOpen .3s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Timeline active dot */
.timeline-step.is-active .dot-fill {
  background: var(--color-yellow);
  box-shadow: 0 0 16px var(--color-yellow);
}
.timeline-step.is-active .timeline-dot { border-color: var(--color-yellow); }

/* Strategy connecting line (desktop) */
@media (min-width: 768px) {
  .strategy-grid::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
    z-index: 0;
  }
}

/* MailerLite embed override (force dark-friendly look on yellow bg) */
.ml-embedded { background: transparent !important; }

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

/* Nav transition */
#topnav { transition: transform .4s cubic-bezier(.4,0,.2,1); }
/* The nav hides at the top of the page; keyboard focus inside it must stay visible */
#topnav:focus-within { transform: none; }

/* Nav link animated underline */
nav a[href^="#"] { position: relative; }
nav a[href^="#"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--color-yellow);
  transition: right .25s ease;
}
nav a[href^="#"]:hover::after { right: 0; }

/* CTA button shimmer */
.hero-cta a, section a.bg-yellow, section a.border-2 {
  position: relative;
  overflow: hidden;
}
.hero-cta a::before, section a.bg-yellow::before, section a.border-2::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.hero-cta a:hover::before, section a.bg-yellow:hover::before, section a.border-2:hover::before {
  left: 140%;
}

/* Team cards hover */
.team-card { transition: transform .3s ease, border-color .3s ease; }
.team-card:hover { transform: translateY(-6px); border-color: var(--color-yellow) !important; }
.team-card img { transition: transform .5s ease; }
.team-card:hover img { transform: scale(1.04); }

/* Case stat boxes hover */
.case-stat { transition: border-color .25s ease, background .25s ease; }
.case-stat:hover { border-color: var(--color-yellow); background: rgba(255,235,0,0.06); }

/* Blockquote left bar pulse */
.case-quote { transition: border-color .3s ease; }
.case-quote:hover { border-color: var(--color-yellow-hover); }

/* Social icons hover scale */
footer a svg { transition: transform .2s ease, color .2s ease; }
footer a:hover svg { transform: scale(1.25); }

/* FAQ item hover background */
.faq-item summary { transition: background .2s ease; }
.faq-item summary:hover { background: rgba(255,255,255,0.04); }

/* Timeline step line fill on active */
.timeline-line { position: absolute; }
.timeline-step.is-active .timeline-dot {
  transform: scale(1.15);
  transition: transform .3s ease, border-color .3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); }
::-webkit-scrollbar-thumb:hover { background: var(--color-yellow); }

/* CookieYes in race colours; its account colours are shared with hackyourbrain.pl */
.cky-btn-accept {
  background-color: var(--color-yellow) !important;
  border-color: var(--color-yellow) !important;
  color: #000 !important;
}
.cky-btn-accept:hover {
  background-color: var(--color-yellow-hover) !important;
  border-color: var(--color-yellow-hover) !important;
}
.cky-btn-revisit-wrapper { background-color: var(--color-yellow) !important; }
.cky-btn-revisit-wrapper img { filter: invert(1); }
.cky-policy, .cky-show-desc-btn, .cky-always-active { color: var(--color-yellow) !important; }
.cky-switch input[type="checkbox"]:checked { background: var(--color-yellow) !important; }
.cky-switch input[type="checkbox"]:checked::before { background: #000 !important; }
/* Keeps the banner text smaller than .hero-sub, so the hero stays the LCP element */
.cky-notice-des, .cky-notice-des p { line-height: 20px !important; }
