/*
Theme Name: Apphill
Theme URI: https://apphill.agency
Author: Apphill Agency
Description: Professional ASO, User Acquisition & Monetization agency theme
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: apphill
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  — zmień kolory tutaj globalnie
   ============================================================ */
:root {
  /* Kolory */
  --bg:           #0A0A0A;
  --bg-alt:       #101010;
  --card:         #141414;
  --card-hover:   #1C1C1C;
  --accent:       #F5B800;
  --accent-hover: #FFD340;
  --accent-dim:   rgba(245, 184, 0, 0.12);
  --text:         #FFFFFF;
  --text-2:       #9B9B9B;
  --text-3:       #555555;
  --border:       #1E1E1E;
  --border-2:     #2A2A2A;

  /* Typografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Promienie */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Przejścia */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    300ms var(--ease);
  --t-f:  150ms var(--ease);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--t-f); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,184,0,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--text-2);
  background: rgba(255,255,255,0.05);
}
.btn--dark {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}
.btn--dark:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--t);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Logo — WordPress custom logo może mieć inline style; usuwamy je przez filtr PHP
   + podwójne nadpisanie CSS dla pewności */
.site-logo a,
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-logo img,
.site-logo .custom-logo-link img,
img.custom-logo {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 200px !important;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.logo-text .dot { color: var(--accent); }

/* Desktop nav — logo left | nav CENTER | CTA right */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav li { position: relative; }
.primary-nav a,
.primary-nav li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: var(--t-f);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav li a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.nav-cta { margin-left: 1.5rem; flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 5rem 2rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Złote górki w tle */
.hero-mountains {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 52%;
  opacity: 0.3;
}
/* Siatka kropek */
.hero-dots {
  position: absolute;
  top: 90px; left: 0;
  width: 280px; height: 220px;
  opacity: 0.07;
}
/* Poświata */
.hero-glow {
  position: absolute;
  top: 10%; right: 5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,184,0,0.07) 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Badge "App Growth. Engineered." */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.badge-dots { display: flex; gap: 3px; }
.badge-dots i {
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  font-style: normal;
}
.badge-dots i:nth-child(2) { opacity: 0.65; }
.badge-dots i:nth-child(3) { opacity: 0.35; }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--accent); }

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.proof-text { font-size: 0.8125rem; color: var(--text-2); }

/* Hero visual – wstaw tu zdjęcie telefonu */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-phone {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.hero-phone img {
  width: 100%;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.7));
  animation: float 5s ease-in-out infinite;
}
/* Placeholder — shown until user uploads hero-phone.png */
.hero-phone-placeholder {
  width: 260px;
  aspect-ratio: 9/19;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}
.stat-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.stat-icon svg { width: 30px; height: 30px; }
.stat-value {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.stat-label { font-size: 0.75rem; color: var(--text-2); }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-title { margin-top: 0.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,184,0,0.05) 0%, transparent 55%);
  opacity: 0;
  transition: var(--t);
}
.service-card:hover {
  border-color: rgba(245,184,0,0.3);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 26px; height: 26px; }

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--t-f);
}
.service-link:hover { gap: 0.625rem; }
.service-link svg { width: 14px; height: 14px; }

/* ============================================================
   PACKAGES / HOW WE WORK
   ============================================================ */
.packages {
  padding: 6rem 0;
  background: var(--bg-alt);
}
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.pkg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--t);
  position: relative;
}
.pkg-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(245,184,0,0.06) 0%, var(--card) 50%);
}
.pkg-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pkg-card:hover:not(.pkg-card--featured) {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.pkg-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(245,184,0,0.15);
}
.pkg-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.pkg-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.pkg-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.pkg-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--t-f);
  text-align: left;
  font-family: inherit;
}
.pkg-toggle:hover,
.pkg-card.is-open .pkg-toggle { border-color: var(--accent); color: var(--accent); }
.pkg-toggle-chevron { transition: transform 0.35s ease; flex-shrink: 0; }
.pkg-card.is-open .pkg-toggle-chevron { transform: rotate(180deg); }
.pkg-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.pkg-card.is-open .pkg-card-body { max-height: 800px; }
.pkg-card-body-inner { padding-top: 1.25rem; border-top: 1px solid var(--border-2); margin-top: 1rem; }
.pkg-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  margin-bottom: 2rem;
}
.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.pkg-features li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: var(--accent-dim);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23F5B800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pkg-for {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin-top: auto;
}
.pkg-for strong { color: var(--text-2); }

/* ============================================================
   PORTFOLIO / PUBLISHING
   ============================================================ */
.portfolio {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}
.portfolio-title { margin-top: 0.5rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--t);
}
.app-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.app-icon {
  width: 76px; height: 76px;
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.app-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 0.625rem;
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.badge--racing  { background: rgba(239,68,68,0.15);   color: #EF4444; }
.badge--party   { background: rgba(168,85,247,0.15);  color: #A855F7; }
.badge--action  { background: rgba(34,197,94,0.15);   color: #22C55E; }
.badge--casual  { background: rgba(59,130,246,0.15);  color: #3B82F6; }
.badge--puzzle  { background: rgba(245,184,0,0.15);   color: var(--accent); }
.badge--strategy{ background: rgba(251,146,60,0.15);  color: #FB923C; }

.app-downloads {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}
.app-downloads-sub { font-size: 0.6875rem; color: var(--text-2); }

/* ============================================================
   PUBLISHING PREVIEW (homepage section)
   ============================================================ */
.pub-preview {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.pub-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.pub-preview-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0;
}
.pub-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pub-app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--t);
}
.pub-app-card:hover {
  border-color: rgba(245,184,0,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
}
.pub-app-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.pub-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.pub-app-info { flex: 1; min-width: 0; }
.pub-app-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.pub-app-downloads { font-size: 0.8125rem; color: var(--text-2); margin-top: 0.4rem; font-weight: 600; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder {
  padding: 5rem 0;
}
.founder-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
}
/* Lewa strona – zdjęcie założyciela */
.founder-photo {
  position: relative;
  min-height: 440px;
  background: linear-gradient(160deg, #1E1E1E 0%, #0A0A0A 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Złoty aksen / chevron na dole zdjęcia */
.founder-chevron {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  opacity: 0.22;
  pointer-events: none;
}
/* Placeholder gdy brak zdjęcia */
.founder-photo-placeholder {
  width: 100%; min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-align: center;
  padding: 2rem;
}

.founder-content {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}
.founder-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}
.founder-badges {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.founder-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}
.founder-badge svg { width: 13px; height: 13px; color: var(--accent); }

.founder-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Jeśli wstawisz PNG podpisu, img .founder-sig-img */
.founder-sig-img { height: 44px; width: auto; }
.sig-name-script {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.sig-details { line-height: 1.4; }
.sig-name { font-size: 0.9375rem; font-weight: 700; display: block; }
.sig-role { font-size: 0.8125rem; color: var(--text-2); }

/* ============================================================
   RESULTS
   ============================================================ */
.results {
  padding: 6rem 0;
}
.results-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
}
.results-label { margin-bottom: 1rem; }
.results-title {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.results-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.results-stats { display: flex; gap: 2.5rem; }
.r-stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}
.r-stat-label { font-size: 0.75rem; color: var(--text-2); }

/* Chart – wstaw tu screenshot wykresu */
.results-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.results-chart-wrap img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--r-md);
}
.chart-placeholder {
  width: 280px;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #1A1A1A, #0D0D0D);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1.5rem;
}
.chart-svg-wrap {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #161616, #0D0D0D);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 0.75rem 0.5rem 0.25rem;
}
.chart-svg { width: 100%; height: auto; font-family: inherit; }

.results-testimonial {
  padding-left: 3rem;
  border-left: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.t-stars { font-size: 1.125rem; color: var(--accent); letter-spacing: 3px; margin-bottom: 1rem; }
.t-quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.t-author-name { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.t-author-role { font-size: 0.8125rem; color: var(--text-2); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section { padding: 2.5rem 0 5rem; }
.cta-inner {
  background: var(--accent);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #000;
  letter-spacing: -0.03em;
  margin-bottom: 0.375rem;
}
.cta-sub { font-size: 1rem; color: rgba(0,0,0,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand {}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 1rem 0 1.5rem;
  max-width: 200px;
  line-height: 1.65;
}
.footer-socials { display: flex; gap: 0.625rem; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  transition: var(--t-f);
}
.social-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--card-hover); }

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--t-f);
}
.footer-links a:hover { color: var(--text); }

.footer-contact-email {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.8125rem; color: var(--text-3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8125rem; color: var(--text-3); transition: color var(--t-f); }
.footer-legal a:hover { color: var(--text-2); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .pub-preview-grid { grid-template-columns: 1fr 1fr; }

  .founder-card { grid-template-columns: 300px 1fr; }

  .results-card {
    grid-template-columns: 1fr 1fr;
  }
  .results-testimonial {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border-2);
    padding-left: 0;
    padding-top: 2rem;
  }

  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 100px 0 60px; }

  .services-grid { grid-template-columns: 1fr; }

  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { min-height: 300px; }
  .founder-content { padding: 2.5rem; }

  .results-card { grid-template-columns: 1fr; }
  .results-chart-wrap { display: none; }
  .results-testimonial {
    border-left: none;
    border-top: 1px solid var(--border-2);
    padding-left: 0;
    padding-top: 2rem;
  }

  .cta-inner { flex-direction: column; text-align: center; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .pub-preview-header { flex-direction: column; align-items: flex-start; }
  .pub-preview-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .results-stats { flex-direction: column; gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; }
  .founder-badges { gap: 0.5rem; }
  .packages-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REKLAMY — AdSense containers
   ============================================================ */
.ad-container {
  width: 100%;
  margin: 2.5rem 0;
  overflow: hidden;
  clear: both;
  /* Zapobiega layout shift przy ładowaniu reklamy */
  min-height: 90px;
}
.ad-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 6px;
}
/* Wyróżnienie wizualne — subtelna linia oddzielająca od treści */
.ad-container--blog {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
  min-height: 120px;
}
.ad-container--content {
  border-radius: var(--r-md);
  overflow: hidden;
}
.ad-container--post-end {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
/* AdSense wymagany display:block */
.adsbygoogle { display: block; }

/* ============================================================
   GOOGLE PLAY / APP STORE MOCKUP  (używany na stronie Publishing)
   ============================================================ */
.store-mockups-section {
  padding: 5rem 0 6rem;
  background: var(--bg);
}
.store-mockups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.store-mockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
/* Phone frame */
.store-phone {
  width: 100%;
  max-width: 300px;
  background: #111;
  border: 2px solid #2A2A2A;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
/* Notch */
.store-phone-notch {
  height: 28px;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid #1A1A1A;
}
.store-phone-notch-bar {
  width: 60px; height: 5px;
  background: #222;
  border-radius: 3px;
}
/* Play Store top bar */
.store-topbar {
  background: #1C1C1E;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #2A2A2A;
}
.store-topbar-back {
  font-size: 1.1rem;
  color: #4A90D9;
  line-height: 1;
}
.store-topbar-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #E8E8E8;
  flex: 1;
}
.store-topbar-more {
  font-size: 1rem;
  color: #888;
}
/* App info header */
.store-app-header {
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #1C1C1E;
}
.store-app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2A2A2A, #111);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.store-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.store-app-meta { flex: 1; min-width: 0; }
.store-app-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #E8E8E8;
  line-height: 1.3;
  margin-bottom: 2px;
}
.store-app-dev {
  font-size: 0.6875rem;
  color: #4A90D9;
  margin-bottom: 4px;
}
.store-app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: #888;
}
.store-app-rating .stars-mini {
  color: #F5B800;
  font-size: 0.6rem;
  letter-spacing: 1px;
}
/* Install button */
.store-install-row {
  padding: 10px 14px 12px;
  background: #1C1C1E;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #2A2A2A;
}
.store-install-btn {
  flex: 1;
  background: #4A90D9;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px;
  cursor: default;
  text-align: center;
}
.store-wishlist-btn {
  width: 36px; height: 36px;
  background: #2A2A2E;
  border: 1px solid #3A3A3E;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #888;
  font-size: 0.875rem;
  cursor: default;
}
/* Screenshots strip */
.store-screenshots-label {
  padding: 10px 14px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  background: #1C1C1E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.store-screenshots {
  background: #1C1C1E;
  padding: 0 10px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.store-screenshots::-webkit-scrollbar { display: none; }
.store-screenshot {
  width: 88px;
  height: 156px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #2A2A2A, #111);
  border: 1px solid #2E2E2E;
  display: flex; align-items: center; justify-content: center;
  color: #333;
  font-size: 0.5rem;
}
.store-screenshot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* About section */
.store-about {
  padding: 10px 14px 14px;
  background: #1C1C1E;
}
.store-about-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.store-about-text {
  font-size: 0.6875rem;
  color: #999;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Store badges below the phone */
.store-badges-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--t-f);
  text-decoration: none;
}
.store-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.store-badge svg { width: 14px; height: 14px; }
/* App title below phone */
.store-mockup-app-name {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}
.store-mockup-app-sub {
  font-size: 0.8125rem;
  color: var(--text-2);
  text-align: center;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .store-mockups-grid { grid-template-columns: 1fr; }
  .store-phone { max-width: 260px; }
}
