@import url('https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans/index.min.css');

/* ================================================================
   PharmX – Pharmacy Revision Platform
   Main Stylesheet with CSS Variables
   ================================================================ */

/* ——— CSS VARIABLES ——— */
:root {
  /* Brand colours */
  --color-primary: #042dac;
  --color-primary-light: #6366f1;
  --color-accent-purple: #a855f7;
  --color-accent-pink: #ec4899;
  --color-black: #000;
  --color-white: #fff;
  --color-grey-50: #fafafa;
  --color-grey-100: #f5f5f5;
  --color-grey-200: #e5e7eb;
  --color-grey-500: #555;
  --color-grey-600: #4b5563;
  --color-grey-700: #374151;
  --color-grey-800: #1f2937;
  --color-grey-900: #111827;
  --color-gold: #ffd700;

  /* Typography */
  --font-family: 'Mona Sans Variable', 'Mona Sans', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --section-spacing: 5rem;
  --border-radius: 8px;

  /* Spacing */
  --space-hero-stack: clamp(1.75rem, 3vw, 3rem);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

.pharmx-cta {
  background: #060606;
  color: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.pharmx-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  min-height: 90px;
}
.pharmx-cta-title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.01em;
  text-align: left;
}
.pharmx-cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 0.65rem 1.25rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  text-align: right;
  margin-left: 2rem;
}
.pharmx-cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
/* Only keep a single, more visible line above and below the CTA block itself */
.pharmx-cta {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
@media (max-width: 768px) {
  .pharmx-cta-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
    min-height: 0;
  }
  .pharmx-cta-title {
    text-align: center;
    margin-bottom: 1rem;
  }
  .pharmx-cta-button {
    margin-left: 0;
    align-self: center;
  }
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
a {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  background: var(--color-white);
  color: var(--color-black);
  font-family: 'Mona Sans Variable', 'Mona Sans', sans-serif !important;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  overflow-x: hidden;
}

/* Force Mona Sans on ALL elements */
*,
*::before,
*::after {
  font-family: 'Mona Sans Variable', 'Mona Sans', sans-serif !important;
}

button,
input,
select,
textarea,
a,
h1, h2, h3, h4, h5, h6,
p, span, div, li, blockquote, cite {
  font-family: 'Mona Sans Variable', 'Mona Sans', sans-serif !important;
}

main {
  padding-top: calc(var(--header-height) + 2rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.highlight {
  color: var(--color-primary);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--color-primary-light),
    var(--color-accent-purple),
    var(--color-accent-pink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-grey-500);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo-img {
  height: 1.2rem;
  width: auto;
  position: relative;
  top: 2px;
  margin: 0 1rem;
}

.auth-nav .btn {
  margin-left: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0;
  display: inline-block;
  min-width: 100px;
  text-align: center;
  transition: opacity var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
}

.btn-signup {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn-signup:hover {
  background: var(--color-grey-100);
}

.btn-login {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-black);
}

.btn-login:hover {
  opacity: 0.9;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  padding: 3rem 20px 7.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-hero-stack);
  min-height: 72vh;
  position: relative;
}

/* ================================================================
   STATS BLOCK - full width grey band
   ================================================================ */
.stats-block {
  width: 100%;
  background: #E9E8E7;
  padding: 2.25rem 0;
}
.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stats-content {
  display: flex;
  gap: 8rem;
  align-items: center;
}
.stats-item {
  text-align: center;
}
.stats-number {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-grey-900);
}
.stats-label {
  color: var(--color-grey-700);
  font-size: 0.95rem;
}

@media (max-width: 880px) {
  .hero { padding: 6.5rem 20px 6.5rem; }
  .stats-content { gap: 5rem; }
  .stats-number { font-size: 1.75rem; }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.hero-stat {
  min-width: 180px;
}

.hero-stat-number {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.hero-stat-label {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-grey-700);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-grey-500);
  margin-bottom: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem; /* keep subtitle away from the edges */
  box-sizing: border-box;
}

/* Hero CTAs */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0;
}

.btn-browse {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
}

.btn-browse:hover {
  background: #333;
}

/* ================================================================
   CAROUSEL
   ================================================================ */
.post-carousel {
  height: 240px;
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  white-space: nowrap;
  padding: 0 20px;
  margin-bottom: 3.5rem;
}

.post-carousel .post {
  flex: 0 0 auto;
  width: 300px;
  height: 240px;
  border-radius: var(--border-radius);
  background: var(--color-grey-50);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.post-carousel .post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-carousel::-webkit-scrollbar {
  display: none;
}

/* ================================================================
   GOOGLE REVIEWS
   ================================================================ */
.reviews {
  text-align: center;
  margin: 3rem 0 var(--section-spacing);
}

.reviews-link {
  display: inline-block;
  text-decoration: none;
  color: var(--color-black);
}

.reviews-link .google-icon,
.reviews-link .stars,
.reviews-link .reviews-text {
  display: block;
  margin: 0.25rem auto;
}

.google-icon {
  width: 32px;
  height: 32px;
}

.stars {
  font-size: 1.5rem;
  color: var(--color-gold);
  animation: shine 1.5s infinite ease-in-out;
}

.reviews-text {
  font-size: 1rem;
  font-weight: 500;
}

@keyframes shine {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ================================================================
   REFLECTIVE PHOTO WALL (SECTION 2)
   Scoped conversion of provided CSS
   ================================================================ */
/* ================================================================
   INTERACTIVE GALLERY
   ================================================================ */
.gallery-section {
  padding: 5rem 0;
  background: var(--color-grey-50);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gallery-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-grey-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Each gallery item is a gradient block with a framed image inside */
.gallery-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.02));
  border-radius: 14px;
  padding: 1.25rem;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(16,24,40,0.12);
}

.gradient-block {
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-frame {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 6px 20px rgba(2,6,23,0.06);
  display: block;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}

.gallery-item:hover .image-frame img {
  transform: scale(1.03) translateY(-2px);
}

/* Small screens: slightly smaller frames */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }

  .image-frame {
    height: 200px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .gallery-section {
    padding: 3rem 0;
  }

  .gallery-header {
    margin-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile optimization for features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* Mobile optimization for slide showcases */
  .slides-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .slide-card,
  .comparison-card {
    padding: 0;
  }
  
  .slide-image-placeholder {
    height: 160px;
  }
}

/* ================================================================
  FEATURES GRID  — PharmX Design
  ================================================================ */
.features {
  padding: 6rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  border-color: rgba(0,0,0,0.08);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-grey-900);
  line-height: 1.3;
}

.feature-card p {
  font-size: 1rem;
  color: var(--color-grey-600);
  line-height: 1.7;
  margin-bottom: 0;
}

.content-showcase {
  padding: 8rem 1.25rem;
  background: #ffffff;
}

/* ================================================================
  CONTENT SHOWCASE — PharmX two-column layout
  ================================================================ */
.content-showcase {
  padding: 8rem 1.25rem;
  background: #ffffff;
}

.content-showcase-row {
  display: flex;
  align-items: center;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left column — dashboard mockup */
.content-showcase-visual {
  flex: 1.25;
  position: relative;
}

.content-showcase-mockup {
  width: 100%;
  min-height: 520px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.content-showcase-mockup-inner {
  width: 100%;
  height: 100%;
  min-height: 460px;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.content-showcase-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column — text */
.content-showcase-text {
  flex: 1;
}

.content-showcase-heading {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #111;
}

.content-showcase-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

.content-showcase-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.content-showcase-checklist li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.content-showcase-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #666;
  font-weight: 400;
  font-size: 1rem;
}

/* REPLACES row */
.content-showcase-replaces {
  margin-bottom: 2rem;
}

.replaces-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.replaces-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.replaces-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

.content-showcase-cta {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.content-showcase-cta:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .content-showcase-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .content-showcase-mockup {
    min-height: 320px;
    padding: 1rem;
  }

  .content-showcase-mockup-inner {
    min-height: 280px;
  }

  .content-showcase-heading {
    font-size: 1.875rem;
  }
}

/* ================================================================
   SLIDE SHOWCASE SECTIONS (dark / poor-examples)
   ================================================================ */
.slide-showcase {
  padding: 6rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.slide-showcase.dark {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.slide-showcase.dark .section-title {
  color: #fff;
}

.slide-showcase.dark .section-subtitle {
  color: #cbd5e1;
}

.showcase-header {
  margin-bottom: 3rem;
}

.slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.slide-showcase.dark .slide-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.slide-showcase.dark .slide-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.slide-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.slide-image-placeholder.dark {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.slide-placeholder-text {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

.slide-image-placeholder.dark .slide-placeholder-text {
  color: #94a3b8;
}

.slide-content {
  padding: 1.5rem;
  text-align: left;
}

.slide-showcase.dark .slide-content {
  color: #e2e8f0;
}

.slide-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-grey-900);
}

.slide-showcase.dark .slide-title {
  color: #fff;
}

.slide-description {
  font-size: 0.95rem;
  color: var(--color-grey-600);
  line-height: 1.6;
}

.slide-showcase.dark .slide-description {
  color: #cbd5e1;
}

/* ================================================================
   COMPETITOR COMPARISON SECTION
   ================================================================ */
.comparison-showcase {
  padding: 6rem 1.25rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.comparison-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.comparison-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-grey-900);
}

.comparison-description {
  font-size: 1rem;
  color: var(--color-grey-600);
  line-height: 1.7;
}

.comparison-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ================================================================
   TOPICS SECTION — "What We Cover"
   ================================================================ */
.topics {
  padding: var(--section-spacing) 1.25rem;
  text-align: center;
  background: var(--color-grey-50);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.topic-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--color-grey-200);
  transition: box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

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

.topic-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.topic-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.topic-card p {
  font-size: 0.9rem;
  color: var(--color-grey-600);
  line-height: 1.5;
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stats {
  padding: 3rem 1.25rem;
  text-align: center;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  min-width: 140px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-grey-600);
  margin-top: 0.25rem;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  padding: var(--section-spacing) 1.25rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--color-grey-600);
  line-height: 1.6;
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
  padding: var(--section-spacing) 1.25rem;
  text-align: center;
  background: var(--color-grey-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-grey-700);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card cite {
  font-size: 0.9rem;
  font-weight: 700;
  font-style: normal;
  color: var(--color-black);
}

.testimonial-stars {
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq {
  padding: var(--section-spacing) 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-grey-200);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-grey-600);
  line-height: 1.7;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  padding: var(--section-spacing) 1.25rem;
  text-align: center;
}

.cta-box {
  background: var(--color-grey-900);
  color: var(--color-white);
  border-radius: 16px;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.1rem;
  color: #d1d5db;
  margin-bottom: 2rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 0;
  text-decoration: none;
  transition: background var(--transition-fast);
  font-family: var(--font-family);
}

.btn-cta:hover {
  background: var(--color-grey-200);
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--color-grey-900);
  color: #9ca3af;
  padding: 3rem 1.25rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #9ca3af;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .auth-nav .btn {
    min-width: 80px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .post-carousel {
    height: 200px;
    padding: 0 15px;
  }
  .post-carousel .post {
    width: 240px;
    height: 200px;
  }

  .stats-grid {
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .logo-img {
    height: 50px;
    width: 50px;
    margin: 0;
  }

  .hero {
    padding: 3.5rem 15px 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: center;
  }

  /* Make primary hero button comfortably tappable on mobile */
  .btn-browse {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 0;
    box-sizing: border-box;
  }

  /* Ensure subtitle doesn't touch the viewport edges on small screens */
  .hero-subtitle {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Force second part of subtitle onto a new line on mobile */
  .mobile-break {
    display: block;
    margin-top: 0.25rem;
  }

  .hero-title span {
    display: block;
  }

  .hero-title {
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .post-carousel {
    height: 180px;
    padding: 0 10px;
  }
  .post-carousel .post {
    width: 180px;
    height: 180px;
  }

  .features-grid,
  .topics-grid,
  .steps,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Hide the PharmX CTA title on very small/mobile screens */
  .pharmx-cta-title {
    display: none !important;
  }
}

/* ================================================================
   EXPERTISE / MONETISATION SECTION
   ================================================================ */

.expertise-section {
  padding: 10rem 0;
  background-color: #050505;
  color: #fff;
}

.expertise-header {
  text-align: center;
  margin-bottom: 4rem;
}

.expertise-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/*  Navigation Pills — small, spaced, squared  */
.expertise-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 4rem;
}

.expertise-pill {
  background-color: transparent;
  color: #9ca3af;
  border: 1px solid #333;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.25s ease;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.expertise-pill:hover {
  color: #fff;
  border-color: #777;
}

.expertise-pill.active {
  background-color: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

/*  Display Area  */
.expertise-display {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Allow absolutely positioned crossfade layers inside the expertise display */
.expertise-display {
  position: relative;
}

/* Layered showcase cards for smooth background-image crossfades */
.showcase-layer {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 420ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  display: block;
}
.showcase-layer.visible {
  opacity: 1;
}

/* Ensure inner content slot keeps sensible spacing if needed */
.showcase-layer .showcase-image-slot {
  width: 100%;
  height: 100%;
}

/* Mock paper overlay — centered, larger, and clearly visible */
.showcase-layer .mock-overlay {
  position: absolute;
  /* center precisely */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* perfectly centered */
  /* Much larger and responsive: scales with viewport but constrained */
  width: clamp(560px, 58vw, 980px);
  max-width: 92%;
  height: auto;
  box-shadow: 0 28px 100px rgba(0,0,0,0.55);
  border-radius: 0; /* remove rounded corners per request */
  background: rgba(255,255,255,0.02);
  object-fit: contain;
  pointer-events: none; /* decorative only */
  opacity: 1;
  border: 1px solid rgba(255,255,255,0.95);
  z-index: 6;
}

/* Allow the mock tile to overflow its card so larger image isn't clipped */
.showcase-card.mock-card {
  overflow: visible;
}

@media (max-width: 1200px) {
  .showcase-layer .mock-overlay {
    width: clamp(420px, 62vw, 820px);
  }
}

@media (max-width: 800px) {
  .showcase-layer .mock-overlay {
    width: clamp(320px, 68vw, 520px);
    box-shadow: 0 18px 56px rgba(0,0,0,0.48);
  }
}

@media (max-width: 420px) {
  .showcase-layer .mock-overlay {
    width: clamp(220px, 78vw, 360px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.38);
  }
}

@media (max-width: 320px) {
  .showcase-layer .mock-overlay {
    display: none; /* hide only on very small devices */
  }
}

/* Clinical overlay — slightly smaller than mock overlay for readable balance */
.showcase-layer .clinical-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* Reduced size compared to mock overlay */
  width: clamp(420px, 48vw, 820px);
  max-width: 86%;
  height: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.52);
  border-radius: 0; /* straight edges to match mock paper */
  background: rgba(255,255,255,0.02);
  object-fit: contain;
  pointer-events: none;
  opacity: 1;
  border: 1px solid rgba(255,255,255,0.95);
  z-index: 6;
}

@media (max-width: 1200px) {
  .showcase-layer .clinical-overlay {
    width: clamp(360px, 52vw, 700px);
  }
}

@media (max-width: 800px) {
  .showcase-layer .clinical-overlay {
    width: clamp(300px, 60vw, 480px);
    box-shadow: 0 18px 56px rgba(0,0,0,0.48);
  }
}

@media (max-width: 420px) {
  .showcase-layer .clinical-overlay {
    width: clamp(220px, 72vw, 340px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.38);
  }
}

@media (max-width: 320px) {
  .showcase-layer .clinical-overlay {
    display: none; /* hide only on very small devices */
  }
}

.expertise-card {
  width: 100%;
  max-width: 1100px;
  min-height: 550px;
  background-color: #222;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: background 0.5s ease;
}

@media (min-width: 900px) {
  .expertise-card {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.expertise-card-content {
  flex: 1;
  z-index: 2;
}

.expertise-card-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
}

.expertise-card-description {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Visual Left/Right Layout Logic based on card content */
.expertise-card-visual {
  flex: 1.2;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 300px;
}

/* Inner Visual Components */
.visual-frame {
  background: #111; /* Dark inner frame */
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
}

.visual-title-small {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: #a1624b; /* Accent color matcher approx */
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.visual-main-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.visual-image-container {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.visual-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stats Floating */
.stat-floating {
  position: absolute;
  background: #fff;
  color: #000;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  min-width: 160px;
  animation: float 6s ease-in-out infinite;
  z-index: 10;
}

.stat-floating.top-left {
  top: 15%;
  left: -40px;
}
.stat-floating.bottom-left {
  bottom: 20%;
  left: 0px;
  animation-delay: 1.5s;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
}
.stat-growth {
  font-size: 0.8rem;
  color: #059669;
  margin-top: 0.5rem;
  display: block;
  font-weight: 600;
}

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

/* Membership Layout */
.membership-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.membership-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 500;
}
.membership-row:last-child {
  border-bottom: none;
}


/* Update text color for expertise card for lighter gradients */
.expertise-card .expertise-card-title, 
.expertise-card .expertise-card-description,
.visual-frame .visual-main-text {
  color: #111 !important; /* Force dark text for readability on light gradients */
}
.expertise-card-description {
  color: rgba(0,0,0,0.7) !important;
}
.visual-frame {
  background: rgba(255,255,255,0.7); /* Lighter frame background */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* (pill overrides removed — now unified above) */


/* Styles for Image-Only Visual Frame - Enhanced with Better Gradients */
.visual-frame-image-only {
  padding: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* Subtle rounded corners */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.visual-full-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add hover effect to images */
.visual-frame-image-only:hover .visual-full-image {
  transform: scale(1.03);
}


/* ================================================================
  SHOWCASE CARDS - PharmX Style
   Clean gradient boxes with no text, ready for images
   ================================================================ */
.showcase-card {
  width: 100%;
  max-width: 1200px;
  min-height: 680px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.showcase-image-slot {
  width: 100%;
  height: 100%;
  min-height: 580px;
}

@media (max-width: 900px) {
  .showcase-card {
    padding: 2rem;
    min-height: 400px;
    border-radius: 10px;
  }

  .showcase-image-slot {
    min-height: 280px;
  }
}

/* Legacy styles - keeping for compatibility */
.expertise-card {
  border-radius: 12px !important;
  min-height: 760px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ——— OPERATING SYSTEM SECTION ——— */
.operating-system-section {
  padding: 5rem 1.25rem;
}

.os-header {
  text-align: center;
  margin-bottom: 5rem;
}

.os-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.os-block.reversed {
  flex-direction: row-reverse;
}

.os-visual, .os-content {
  flex: 1;
}

.os-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.os-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-grey-500);
  margin-bottom: 0.5rem;
  display: block;
}

.os-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.os-text {
  font-size: 1.1rem;
  color: var(--color-grey-600);
  margin-bottom: 1.5rem;
}

.os-list {
  margin-bottom: 2rem;
}

.os-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-grey-700);
}

.os-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.btn-black {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px; /* Slightly squarer */
  transition: opacity 0.2s;
}

.btn-black:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .os-block, .os-block.reversed {
    flex-direction: column;
    gap: 2rem;
  }
  
  /* Further mobile optimization for expertise pills */
  .expertise-nav {
    max-width: 100%;
    gap: 0.4rem;
  }
  
  .expertise-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* ——— 3-COLUMN SECTION ——— */
.three-col-section {
  padding: 0 1.25rem 5rem;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.col-item {
  text-align: left;
}

.col-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.col-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.col-item p {
  color: var(--color-grey-600);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr;
    text-align: left; /* Keep left or center? Typically left aligned in grid */
  }
}

/* ——— WHY EXPERTS CHOOSE (DARK) ——— */
.why-section {
  background: var(--color-black); /* Or very dark grey */
  color: var(--color-white);
  padding: 6rem 1.25rem;
}

.why-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  font-weight: 700;
  color: var(--color-white);
}

.why-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.why-image-col {
  flex: 1;
}

.why-image {
  border-radius: var(--border-radius);
  width: 100%;
}

.why-text-col {
  flex: 1;
}

.why-quote {
  font-size: 1.35rem; /* Large quote */
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.why-author {
  font-size: 1rem;
  margin-bottom: 3rem;
  color: var(--color-white);
}

.why-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid #333;
  padding-top: 2rem;
}

.stat-box {
  text-align: left;
}

.stat-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
}

.stat-lbl {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .why-content {
    flex-direction: column;
  }
}

/* ================================================================
  PHARMX-STYLE SECTIONS (POST HERO/STATS/EXPERTISE ONLY)
   ================================================================ */
.kz-experts {
  background: #fff;
  padding: 1.25rem 0 0;
}

.kz-experts-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.kz-expert-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.kz-expert-meta {
  margin-top: 0.35rem;
  color: #121212;
  line-height: 1.25;
}

.kz-expert-meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.kz-expert-meta span {
  display: block;
  font-size: 0.74rem;
  color: #686868;
}

.kz-metrics {
  background: #f3f3f3;
  padding: 2rem 0;
}

.kz-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kz-metric {
  text-align: center;
}

.kz-metric-num {
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1;
  font-weight: 700;
  color: #101010;
}

.kz-metric-label {
  margin-top: 0.35rem;
  color: #616161;
  font-size: 0.88rem;
}

.kz-insights {
  background: #ededed;
  padding: 2rem 0;
}

.kz-insights-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.kz-insights-inner h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.kz-insights-inner p {
  color: #595959;
  margin-top: 0.4rem;
}

.kz-insights-form {
  display: flex;
  gap: 0.55rem;
}

.kz-insights-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #d2d2d2;
  padding: 0 0.8rem;
  border-radius: 0;
  background: #fff;
}

.kz-insights-form button {
  background: #0d0d0d;
  color: #fff;
  border: 0;
  padding: 0 1rem;
  height: 40px;
  font-weight: 700;
  cursor: pointer;
}

.kz-choose {
  background: radial-gradient(circle at 15% 15%, #4e2a14 0%, #090909 55%, #040404 100%);
  color: #f5f5f5;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.kz-choose-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.kz-choose-tabs {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.kz-choose-tab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
}

.kz-choose-tab.active {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.kz-stage {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 1rem;
  align-items: center;
}

.kz-side-card {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  opacity: 0.7;
}

.kz-side-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.kz-side-card p {
  color: #bbbbbb;
  font-size: 0.83rem;
}

.kz-stage-main {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(115deg, rgba(89, 64, 44, 0.95) 0%, rgba(64, 102, 123, 0.85) 100%);
  min-height: 370px;
  padding: 1.25rem 1.25rem 1.1rem;
}

.kz-stage-head h3 {
  font-size: 1.2rem;
}

.kz-stage-head p {
  color: rgba(255, 255, 255, 0.84);
  margin-top: 0.25rem;
  max-width: 52ch;
  font-size: 0.9rem;
}

.kz-stage-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.05rem;
}

.kz-stage-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.kz-floating-card {
  position: absolute;
  left: 1.3rem;
  bottom: 1.3rem;
  background: #fff;
  color: #121212;
  width: 168px;
  padding: 0.55rem;
  border: 1px solid #d9d9d9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.kz-floating-card p {
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
}

.kz-floating-card span {
  display: block;
  font-size: 0.66rem;
  color: #696969;
  margin-top: 0.2rem;
}

.kz-floating-time {
  margin-top: 0.5rem;
  font-size: 0.73rem;
  text-align: center;
  border: 1px solid #d6d6d6;
  padding: 0.28rem 0;
}

.kz-floating-card button {
  margin-top: 0.4rem;
  width: 100%;
  border: 0;
  background: #0f0f0f;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.34rem 0;
}

.kz-os {
  background: #f6f6f6;
  padding: 5.2rem 0 4.2rem;
}

.kz-os-header {
  text-align: center;
  margin-bottom: 3.2rem;
}

.kz-os-header h2 {
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  line-height: 1.08;
}

.kz-os-header p {
  margin: 0.75rem auto 0;
  max-width: 720px;
  color: #575757;
}

.kz-os-grid {
  display: grid;
  gap: 3rem;
}

.kz-os-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.kz-os-feature.reverse .kz-os-visual {
  order: 2;
}

.kz-os-feature.reverse .kz-os-copy {
  order: 1;
}

.kz-os-visual img {
  width: 100%;
  border: 1px solid #dfdfdf;
  background: #fff;
}

.kz-os-copy h3 {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.kz-os-copy p {
  margin-top: 0.45rem;
  color: #4f4f4f;
}

.kz-os-copy ul {
  margin-top: 0.9rem;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.kz-os-copy li {
  padding-left: 1rem;
  position: relative;
  color: #2e2e2e;
}

.kz-os-copy li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #0e0e0e;
  font-weight: 700;
}

.kz-os-copy a {
  display: inline-block;
  margin-top: 1rem;
  background: #0b0b0b;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
}

.kz-pillars {
  margin-top: 3.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dfdfdf;
}

.kz-pillar {
  padding: 1rem 1rem 0.2rem;
  border-right: 1px solid #dfdfdf;
}

.kz-pillar:last-child {
  border-right: 0;
}

.kz-pillar-icon {
  color: #1d1d1d;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.kz-pillar h4 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.kz-pillar p {
  color: #5a5a5a;
  font-size: 0.92rem;
}

.kz-proof {
  background: #050505;
  color: #fff;
  padding: 4.8rem 0;
}

.kz-proof h2 {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 1.6rem;
}

.kz-proof-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: #111;
  border: 1px solid #1f1f1f;
}

.kz-proof-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.kz-proof-copy {
  padding: 2rem;
}

.kz-proof-quote {
  color: #d9d9d9;
  font-size: 1.08rem;
  line-height: 1.5;
}

.kz-proof-author {
  margin-top: 1.1rem;
  font-weight: 700;
}

.kz-proof-author span {
  color: #979797;
  font-weight: 500;
}

.kz-proof-value {
  margin-top: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.kz-proof-note {
  margin-top: 0.2rem;
  color: #9b9b9b;
}

.kz-bottom-cta {
  background: #050505;
  border-top: 1px solid #202020;
  border-bottom: 1px solid #202020;
}

.kz-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
}

.kz-bottom-inner h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.kz-bottom-inner a {
  background: #fff;
  color: #080808;
  padding: 0.58rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.kz-footer {
  background: #050505;
  color: #8b8b8b;
  padding: 2.1rem 0 1.3rem;
}

.kz-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kz-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.kz-footer ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.kz-footer a {
  color: #a5a5a5;
  font-size: 0.83rem;
}

.kz-footer a:hover {
  color: #fff;
}

.kz-footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #1e1e1e;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .kz-experts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kz-stage {
    grid-template-columns: 1fr;
  }

  .kz-side-card {
    display: none;
  }
}

@media (max-width: 860px) {
  .kz-insights-inner {
    grid-template-columns: 1fr;
  }

  .kz-os-feature,
  .kz-os-feature.reverse {
    grid-template-columns: 1fr;
  }

  .kz-os-feature.reverse .kz-os-visual,
  .kz-os-feature.reverse .kz-os-copy {
    order: initial;
  }

  .kz-pillars {
    grid-template-columns: 1fr;
  }

  .kz-pillar {
    border-right: 0;
    border-bottom: 1px solid #dfdfdf;
  }

  .kz-proof-card {
    grid-template-columns: 1fr;
  }

  .kz-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }

  .kz-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kz-experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kz-stage-media {
    grid-template-columns: 1fr;
  }

  .kz-stage-media img {
    height: 190px;
  }

  .kz-floating-card {
    position: static;
    margin-top: 0.8rem;
  }

  .kz-insights-form {
    flex-direction: column;
  }

  .kz-insights-form button,
  .kz-insights-form input {
    width: 100%;
  }

  .kz-footer-grid {
    grid-template-columns: 1fr;
  }
}

