/* ========================================
   PIK_AI — Components
   v3.0 — Light Theme Redesign
   ======================================== */

/* --- NAVBAR (light) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: background-color 400ms var(--ease-default),
              box-shadow 400ms var(--ease-default);
}

.navbar--scrolled {
  background-color: var(--glass-strong-bg);
  backdrop-filter: blur(var(--glass-strong-blur));
  -webkit-backdrop-filter: blur(var(--glass-strong-blur));
  box-shadow: var(--glass-shadow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 56px;
  flex-shrink: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.navbar__logo:hover {
  opacity: 0.75;
}

.navbar__logo img {
  height: 56px;
  width: auto;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .navbar__links { display: flex; }
}

.navbar__link {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  transition: color var(--duration-fast) var(--ease-default);
  text-decoration: none;
  padding: var(--space-2) 0;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-on-light);
}

.navbar__link--active {
  color: var(--text-on-light);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-purple);
}

.navbar__cta { display: none !important; }

@media (min-width: 1024px) {
  .navbar__cta {
    display: inline-flex !important;
    padding: 12px 24px;
    min-width: auto;
    font-size: var(--text-small);
  }
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 44px;
  padding: 10px 0;
}

@media (min-width: 1024px) {
  .navbar__hamburger { display: none; }
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-light);
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-default),
              opacity var(--duration-normal) var(--ease-default);
}

.navbar__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-default),
              visibility 300ms var(--ease-default);
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-on-light);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.mobile-menu__link:hover { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-purple); text-underline-offset: 4px; }

.mobile-menu__cta { margin-top: var(--space-4); }


/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-default);
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-lime) 0%, #d4e875 100%);
  color: #1a1a1a;
  padding: 16px 32px;
  min-width: 180px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(180, 190, 60, 0.2), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
  box-shadow: 0 4px 28px rgba(180, 190, 60, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(180, 190, 60, 0.15);
}

.btn--secondary {
  background: var(--glass-medium-bg);
  color: var(--text-on-light);
  padding: 14px 28px;
  border: 1.5px solid var(--glass-medium-border);
  backdrop-filter: blur(var(--glass-medium-blur));
  -webkit-backdrop-filter: blur(var(--glass-medium-blur));
}

.btn--secondary:hover {
  background: var(--glass-medium-hover);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn--ghost {
  background: transparent;
  padding: 0;
  min-width: 0;
  min-height: 0;
  font-weight: 600;
  font-size: var(--text-small);
  border-radius: 0;
  color: var(--text-on-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-purple);
  text-underline-offset: 3px;
}

.btn--ghost .btn__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.btn--ghost:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Small button variant (W9: extracted from inline styles) */
.btn--sm {
  padding: 10px 20px;
  min-width: auto;
  font-size: var(--text-small);
}

.btn--disabled, .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 767px) {
  .btn--primary { width: 100%; min-width: 0; }
}


/* --- BADGE / TAG --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-overline);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge--lime    { background: var(--accent-lime-15); color: var(--text-on-light); border-left: 3px solid var(--accent-lime); }
.badge--purple  { background: var(--accent-purple-15); color: var(--text-on-light); border-left: 3px solid var(--accent-purple); }
.badge--orange  { background: var(--accent-orange-15); color: var(--text-on-light); border-left: 3px solid var(--accent-orange); }
.badge--pink    { background: var(--accent-pink-15); color: var(--text-on-light); border-left: 3px solid var(--accent-pink); }
.badge--turquoise { background: var(--accent-turquoise-15); color: var(--text-on-light); border-left: 3px solid var(--accent-turquoise); }
.badge--blue    { background: var(--accent-blue-15); color: var(--text-on-light); border-left: 3px solid var(--accent-blue); }
.badge--amber   { background: var(--accent-amber-15); color: var(--text-on-light); border-left: 3px solid var(--accent-amber); }
.badge--coral   { background: var(--accent-coral-15); color: var(--text-on-light); border-left: 3px solid var(--accent-coral); }

.badge--lime-solid      { background: var(--accent-lime); color: #1a1a1a; }
.badge--orange-solid    { background: var(--accent-orange); color: #1a1a1a; }
.badge--purple-solid    { background: var(--accent-purple); color: #1a1a1a; }
.badge--pink-solid      { background: var(--accent-pink); color: #1a1a1a; }
.badge--turquoise-solid { background: var(--accent-turquoise); color: #1a1a1a; }
.badge--blue-solid      { background: var(--accent-blue); color: #1a1a1a; }
.badge--amber-solid     { background: var(--accent-amber); color: #1a1a1a; }
.badge--coral-solid     { background: var(--accent-coral); color: #1a1a1a; }

.badge--light {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-on-light-muted);
}


/* --- CARDS — GLASS (frosted white on gray bg) --- */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding: var(--space-8);
  box-shadow: var(--glass-shadow);
  transition: all 300ms var(--ease-default);
  position: relative;
}

@supports (backdrop-filter: blur(1px)) {
  .card-glass {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .card-glass { background: rgba(255, 255, 255, 0.65); }
}

.card-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Colored top accent */
.card-glass--accent-lime      { border-top: 2px solid var(--accent-lime); }
.card-glass--accent-purple    { border-top: 2px solid var(--accent-purple); }
.card-glass--accent-orange    { border-top: 2px solid var(--accent-orange); }
.card-glass--accent-pink      { border-top: 2px solid var(--accent-pink); }
.card-glass--accent-turquoise { border-top: 2px solid var(--accent-turquoise); }
.card-glass--accent-blue      { border-top: 2px solid var(--accent-blue); }
.card-glass--accent-amber     { border-top: 2px solid var(--accent-amber); }
.card-glass--accent-coral     { border-top: 2px solid var(--accent-coral); }

.card-glass:hover.card-glass--accent-lime      { box-shadow: var(--shadow-md), var(--shadow-glow-lime); }
.card-glass:hover.card-glass--accent-purple    { box-shadow: var(--shadow-md), var(--shadow-glow-purple); }
.card-glass:hover.card-glass--accent-orange    { box-shadow: var(--shadow-md), var(--shadow-glow-orange); }
.card-glass:hover.card-glass--accent-pink      { box-shadow: var(--shadow-md), var(--shadow-glow-pink); }
.card-glass:hover.card-glass--accent-turquoise { box-shadow: var(--shadow-md), var(--shadow-glow-turquoise); }
.card-glass:hover.card-glass--accent-blue      { box-shadow: var(--shadow-md), var(--shadow-glow-blue); }
.card-glass:hover.card-glass--accent-amber     { box-shadow: var(--shadow-md), var(--shadow-glow-amber); }
.card-glass:hover.card-glass--accent-coral     { box-shadow: var(--shadow-md), var(--shadow-glow-coral); }

/* Inner glass highlight line */
.card-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}

/* Dashed border variant (StudentAI) */
.card-glass--dashed-purple { border-top: 2px dashed var(--accent-purple); }
.card-glass--dashed-blue   { border-top: 2px dashed var(--accent-blue); }

.card-glass__tag { margin-bottom: var(--space-3); }

.card-glass__title {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}

.card-glass__desc {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-1);
}

.card-glass__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.card-glass__link { margin-top: auto; }


/* --- CARDS — FEATURE (white on light-alt bg) --- */
.card-feature {
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--glass-shadow);
  /* No backdrop-filter — sits on solid light bg, glass opacity alone is enough */
  transition: all var(--duration-normal) var(--ease-default);
}

/* Card-feature accent borders (W9/K3: extracted from inline styles) */
.card-feature--accent-purple    { border-left: 3px solid var(--accent-purple); }
.card-feature--accent-orange    { border-left: 3px solid var(--accent-orange); }
.card-feature--accent-pink      { border-left: 3px solid var(--accent-pink); }
.card-feature--accent-lime      { border-left: 3px solid var(--accent-lime); }
.card-feature--accent-turquoise { border-left: 3px solid var(--accent-turquoise); }
.card-feature--accent-blue      { border-left: 3px solid var(--accent-blue); }
.card-feature--accent-amber     { border-left: 3px solid var(--accent-amber); }
.card-feature--accent-coral     { border-left: 3px solid var(--accent-coral); }

/* Card-feature top accent (K3: extracted from inline border-top) */
.card-feature--top-purple    { border-top: 2px solid var(--accent-purple); }
.card-feature--top-orange    { border-top: 2px solid var(--accent-orange); }
.card-feature--top-pink      { border-top: 2px solid var(--accent-pink); }
.card-feature--top-lime      { border-top: 2px solid var(--accent-lime); }
.card-feature--top-turquoise { border-top: 2px solid var(--accent-turquoise); }
.card-feature--top-blue      { border-top: 2px solid var(--accent-blue); }
.card-feature--top-amber     { border-top: 2px solid var(--accent-amber); }
.card-feature--top-coral     { border-top: 2px solid var(--accent-coral); }

/* Card-feature heavy top accent (dofinansowanie) */
.card-feature--top-heavy-orange    { border-top: 3px solid var(--accent-orange); }
.card-feature--top-heavy-pink      { border-top: 3px solid var(--accent-pink); }
.card-feature--top-heavy-turquoise { border-top: 3px solid var(--accent-turquoise); }
.card-feature--top-heavy-lime      { border-top: 3px solid var(--accent-lime); }
.card-feature--top-heavy-amber     { border-top: 3px solid var(--accent-amber); }
.card-feature--top-heavy-coral     { border-top: 3px solid var(--accent-coral); }

/* Card-feature layout variants */
.card-feature--centered { text-align: center; padding: var(--space-8); }
.card-feature--flex-col { display: flex; flex-direction: column; }

/* Gradient variant (Efekty section) */
.card-feature--gradient {
  background: linear-gradient(135deg, rgba(151,151,255,0.06), rgba(237,251,140,0.03));
  border-color: rgba(151,151,255,0.12);
}
.card-feature--gradient-amber {
  background: linear-gradient(135deg, rgba(240,192,80,0.06), rgba(237,251,140,0.03));
  border-color: rgba(240,192,80,0.12);
}

.card-feature:hover {
  background: var(--glass-strong-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
}

.card-feature__icon--lime      { background: var(--accent-lime-15); color: var(--text-on-light); }
.card-feature__icon--purple    { background: var(--accent-purple-15); color: var(--text-on-light); }
.card-feature__icon--orange    { background: var(--accent-orange-15); color: var(--text-on-light); }
.card-feature__icon--pink      { background: var(--accent-pink-15); color: var(--text-on-light); }
.card-feature__icon--turquoise { background: var(--accent-turquoise-15); color: var(--text-on-light); }
.card-feature__icon--blue      { background: var(--accent-blue-15); color: var(--text-on-light); }
.card-feature__icon--amber     { background: var(--accent-amber-15); color: var(--text-on-light); }
.card-feature__icon--coral     { background: var(--accent-coral-15); color: var(--text-on-light); }

.card-feature__title {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}

.card-feature__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.6;
}


/* --- CARDS — STAT (oversize number) --- */
.card-stat {
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  /* No backdrop-filter — on solid bg, opacity alone sufficient */
}


/* --- CARDS — BENTO ITEM --- */
.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--glass-shadow);
  transition: all 300ms var(--ease-default);
}

/* No backdrop-filter on .bento-card — sits on solid bg, opacity alone sufficient */

.bento-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.bento-card--gradient {
  background: linear-gradient(135deg, rgba(151, 151, 255, 0.08), rgba(237, 251, 140, 0.05));
  border-color: rgba(151, 151, 255, 0.12);
}

.bento-card__overline {
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  color: var(--text-on-light-muted);
}

.bento-card__title {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}

.bento-card__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.5;
}


/* --- TESTIMONIAL --- */
.testimonial-main {
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-strong-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* No backdrop-filter — sits on solid light bg, opacity alone sufficient */
}

.testimonial-main__quote-mark {
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent-coral);
  opacity: 0.5;
  line-height: 0.8;
  font-family: Georgia, 'Times New Roman', serif;
}

.testimonial-main__text {
  font-size: var(--text-body-lg);
  font-style: italic;
  line-height: 1.7;
  margin: var(--space-4) 0 var(--space-6);
  color: var(--text-on-light);
}

.testimonial-main__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-main__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-coral-15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--text-on-light);
  flex-shrink: 0;
}

.testimonial-main__name {
  font-weight: 500;
  font-size: var(--text-body);
  color: var(--text-on-light);
}

.testimonial-main__role {
  font-size: var(--text-caption);
  color: var(--text-on-light-muted);
}

/* Small testimonial (sidebar) */
.testimonial-sm {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  /* No backdrop-filter — sits on solid light bg, opacity alone sufficient */
  transition: all var(--duration-normal) var(--ease-default);
}

.testimonial-sm:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.testimonial-sm__text {
  font-size: var(--text-body);
  font-style: italic;
  color: var(--text-on-light-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.testimonial-sm__author {
  font-size: var(--text-caption);
  color: var(--text-on-light-subtle);
}


/* --- FORMS (unified, elegant) --- */
.form-section {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .form-section {
    padding: var(--space-10) var(--space-12);
  }
}

.form-section__title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}

.form-section__subtitle {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-6);
}

.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-on-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  font-size: var(--text-body);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: var(--bg-light-alt);
  color: var(--text-on-light);
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(151, 151, 255, 0.12);
  background: var(--bg-white);
}

/* Inline form input variant (StudentAI notify) */
.form-input--inline {
  flex: 1;
  min-width: 180px;
  height: 44px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-on-light-muted);
  opacity: 1;
}

.form-input--error,
.form-textarea--error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(217, 54, 54, 0.1) !important;
}

.form-textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-small);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-purple);
}

.form-checkbox label {
  font-size: var(--text-small);
  line-height: 1.5;
}

.form-radio {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.form-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--accent-purple);
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form-radio-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-radio-item input[type="radio"] {
  accent-color: var(--accent-purple);
}

.form-checkbox-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.form-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-purple);
}

.form-checkbox-item label {
  font-size: var(--text-small);
  line-height: 1.5;
}

/* Radio group as pills */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.radio-label:hover {
  border-color: var(--accent-purple);
}

.radio-label:has(input:checked) {
  background: var(--accent-purple-15);
  border-color: var(--accent-purple);
  color: var(--text-on-light);
}

.radio-label input[type="radio"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

/* Checkbox as pill */
.checkbox-label {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-small);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-purple);
}

.form-message {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  font-size: var(--text-body);
}

.form-message--success {
  background: rgba(45, 143, 78, 0.08);
  border-left: 3px solid var(--color-success);
}

.form-message--error {
  background: rgba(217, 54, 54, 0.08);
  border-left: 3px solid var(--color-error);
  color: var(--color-error);
}


/* --- TRAINING TABS (navigation between courses) --- */
.training-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.training-tabs__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: var(--text-small);
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--text-on-light-muted);
  text-decoration: none;
  transition: all var(--duration-fast);
  border: 1px solid transparent;
}

.training-tabs__link:hover {
  color: var(--text-on-light);
  background: rgba(0, 0, 0, 0.03);
}

.training-tabs__link--active {
  color: var(--text-on-light);
  background: var(--bg-white);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.training-tabs__link--lime.training-tabs__link--active {
  border-color: var(--accent-lime);
  background: var(--accent-lime-10);
}

.training-tabs__link--purple.training-tabs__link--active {
  border-color: var(--accent-purple);
  background: var(--accent-purple-10);
}

.training-tabs__link--orange.training-tabs__link--active {
  border-color: var(--accent-orange);
  background: var(--accent-orange-10);
}

.training-tabs__link--pink.training-tabs__link--active {
  border-color: var(--accent-pink);
  background: var(--accent-pink-10);
}

.training-tabs__link--turquoise.training-tabs__link--active {
  border-color: var(--accent-turquoise);
  background: var(--accent-turquoise-10);
}

.training-tabs__link--blue.training-tabs__link--active {
  border-color: var(--accent-blue);
  background: var(--accent-blue-10);
}


/* --- FAQ ACCORDION --- */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-question,
.faq-item__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: var(--text-h4);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  gap: var(--space-4);
  transition: color var(--duration-fast);
}

.faq-question:hover,
.faq-item__title:hover { color: var(--text-on-light); text-decoration: underline; text-decoration-color: var(--accent-purple); text-underline-offset: 4px; }

.faq-icon,
.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-spring);
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] .faq-icon,
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }

.faq-answer,
.faq-item__content {
  padding: 0 0 20px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-on-light-muted);
}


/* --- STEPPER --- */
.stepper {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stepper__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal);
}

.stepper__step:hover {
  box-shadow: var(--shadow-sm);
}

.stepper__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-purple-15);
  color: var(--text-on-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-body);
  flex-shrink: 0;
}

.stepper__content {
  flex: 1;
}

.stepper__title {
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-on-light);
}

.stepper__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
}


/* --- CREDENTIALS & FUNDING (combined section) --- */
.credentials-funding {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .credentials-funding { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
}

/* Credential list inside glass card */
.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.credential-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 56px;
  text-align: center;
}
.credential-item__badge--lime  { background: var(--accent-lime); color: #1a1a1a; }
.credential-item__badge--amber { background: var(--accent-amber); color: #1a1a1a; }
.credential-item__badge--coral { background: var(--accent-coral); color: #1a1a1a; }
.credential-item__body { flex: 1; }
.credential-item__title {
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1.3;
  margin-bottom: 2px;
}
.credential-item__desc {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.5;
}

/* Funding stats */
.funding-stats {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.funding-stat {
  flex: 1;
}
.funding-stat__number {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-2);
  display: inline-block;
  padding-bottom: 6px;
}
.funding-stat__number--lime  { border-bottom: 4px solid var(--accent-lime); }
.funding-stat__number--amber { border-bottom: 4px solid var(--accent-amber); }
.funding-stat__label {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  line-height: 1.5;
}
.funding-stat__label strong {
  color: var(--text-on-light);
}
.funding-note {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}
.cert-note {
  font-size: var(--text-small);
  color: var(--text-on-light-subtle);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--glass-border);
}


/* --- TEAM CARD --- */
.team-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-default);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-lime-15);
  color: var(--text-on-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.team-card__avatar--lime      { background: var(--accent-lime-15); }
.team-card__avatar--amber     { background: var(--accent-amber-15); }
.team-card__avatar--coral     { background: var(--accent-coral-15); }

.team-card__name {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-3);
}

.team-card__contact {
  font-size: var(--text-small);
  line-height: 1.8;
}

.team-card__contact a {
  color: var(--text-on-light);
  text-decoration: underline;
  text-decoration-color: var(--accent-lime);
  text-underline-offset: 3px;
  transition: color var(--duration-fast);
}
.team-card--amber .team-card__contact a { text-decoration-color: var(--accent-amber); }
.team-card--coral .team-card__contact a { text-decoration-color: var(--accent-coral); }

.team-card__contact a:hover { text-decoration-color: var(--text-on-light); }


/* --- PARTNERS --- */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.partners__label {
  width: 100%;
  text-align: center;
  font-size: var(--text-overline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  color: var(--text-on-light-subtle);
}

.partners img {
  max-height: 50px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all var(--duration-normal);
  object-fit: contain;
}
.partners img:hover { filter: grayscale(0); opacity: 1; }

/* Dark section variant — original logos as-is */
.partners--dark img {
  filter: none;
  opacity: 1;
  max-height: 50px;
  border-radius: var(--radius-sm);
}
.partners--dark img:hover {
  filter: none;
  opacity: 1;
}

.partners__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
}


/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--glass-strong-bg);
  backdrop-filter: blur(var(--glass-strong-blur));
  -webkit-backdrop-filter: blur(var(--glass-strong-blur));
  border-top: 1px solid var(--glass-border);
  padding: var(--space-4) 0;
  transform: translateY(100%);
  transition: transform 300ms var(--ease-out);
}

.cookie-banner--visible { transform: translateY(0); }

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-banner__inner { flex-direction: row; justify-content: space-between; }
}

.cookie-banner__text {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}


/* --- BREADCRUMB --- */
.breadcrumb {
  padding: var(--space-3) 0;
  padding-top: calc(var(--navbar-height) + var(--space-3));
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
}

.breadcrumb__link {
  color: var(--text-on-light-subtle);
  text-decoration: none;
  transition: color 200ms;
}

.breadcrumb__link:hover {
  color: var(--accent-purple);
}

.breadcrumb__sep {
  margin: 0 var(--space-1);
  color: var(--text-on-light-subtle);
}

.breadcrumb__current {
  color: var(--text-on-light);
  font-weight: 500;
}

/* --- FOOTER (light) --- */
.footer {
  background: var(--bg-dark-elevated);
  color: var(--text-on-light-muted);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer__brand { max-width: 280px; }

.footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__heading {
  font-size: var(--text-overline);
  font-weight: 600;
  color: var(--text-on-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer__link:hover { color: var(--text-on-light); }

.footer__contact-item {
  font-size: var(--text-small);
  line-height: 1.8;
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer__social a {
  color: var(--text-on-light-muted);
  transition: color var(--duration-fast);
  display: inline-flex !important; /* prevent JS from hiding social icons */
}

.footer__social a:hover { color: var(--text-on-light); }

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: var(--space-6);
  font-size: var(--text-caption);
  text-align: center;
  color: var(--text-on-light-subtle);
}


/* --- NUMBER LIST --- */
.numbered-list {
  counter-reset: numbered;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .numbered-list--2col { grid-template-columns: repeat(2, 1fr); }
}

.numbered-list__item {
  display: flex;
  gap: var(--space-4);
  counter-increment: numbered;
}

.numbered-list__item::before {
  content: counter(numbered) ".";
  font-weight: 700;
  min-width: 28px;
  flex-shrink: 0;
  color: var(--text-on-light);
}


/* --- SKILL GRID — visual "what you'll learn" cards --- */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .skill-grid { grid-template-columns: repeat(3, 1fr); }
}

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5) var(--space-4);
  transition: all 200ms var(--ease-default);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  background: var(--glass-strong-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-3);
  color: var(--text-on-light);
}

.skill-card__number--lime      { background: var(--accent-lime); }
.skill-card__number--orange    { background: var(--accent-orange); }
.skill-card__number--pink      { background: var(--accent-pink); }
.skill-card__number--turquoise { background: var(--accent-turquoise); }
.skill-card__number--purple    { background: var(--accent-purple); }
.skill-card__number--blue      { background: var(--accent-blue); }

.skill-card__text {
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-on-light-muted);
}


/* --- CHALLENGE GRID — visual "what problems it solves" cards --- */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .challenge-grid { grid-template-columns: repeat(3, 1fr); }
}

.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all 200ms var(--ease-default);
  position: relative;
}

.challenge-card:hover {
  background: var(--glass-strong-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.challenge-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.challenge-card__icon--lime      { background: var(--accent-lime-15); border: 2px solid var(--accent-lime); }
.challenge-card__icon--orange    { background: var(--accent-orange-15); border: 2px solid var(--accent-orange); }
.challenge-card__icon--pink      { background: var(--accent-pink-15); border: 2px solid var(--accent-pink); }
.challenge-card__icon--turquoise { background: var(--accent-turquoise-15); border: 2px solid var(--accent-turquoise); }
.challenge-card__icon--purple    { background: var(--accent-purple-15); border: 2px solid var(--accent-purple); }
.challenge-card__icon--blue      { background: var(--accent-blue-15); border: 2px solid var(--accent-blue); }

.challenge-card__content {
  flex: 1;
  min-width: 0;
}

.challenge-card__title {
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-on-light);
  margin-bottom: 2px;
}

.challenge-card__desc {
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-on-light-muted);
}


/* --- TAG GROUP --- */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}


/* --- PROGRAM DAY --- */
.program-day {
  padding: var(--space-6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
}

.program-day__title {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-on-light);
  border-left: 3px solid var(--accent-purple);
  padding-left: var(--space-2);
}

.program-day__text {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-on-light-muted);
}


/* --- HIGHLIGHT BOX --- */
.highlight-box {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  background: var(--glass-subtle-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  /* No backdrop-filter — subtle element, doesn't need GPU cost */
}

.highlight-box__title {
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-on-light);
}

.highlight-box__text {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-on-light-muted);
}


/* --- @SUPPORTS FALLBACKS (no backdrop-filter) — opacity +8% from glass tier --- */
@supports not (backdrop-filter: blur(1px)) {
  .btn--secondary {
    background: rgba(255, 255, 255, 0.46);
  }
  .card-feature {
    background: rgba(255, 255, 255, 0.78);
  }
  .card-stat,
  .testimonial-sm,
  .bento-card {
    background: rgba(255, 255, 255, 0.63);
  }
  .testimonial-main,
  .cookie-banner {
    background: rgba(255, 255, 255, 0.78);
  }
  .highlight-box {
    background: rgba(255, 255, 255, 0.46);
  }
}


/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* --- SILESIA EXAMPLE ANNOTATION --- */
.stat-annotation {
  display: block;
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--text-on-light-subtle);
  margin-top: var(--space-1);
  font-style: italic;
}
