/* UseKYN Marketing Site — Premium Wellness Design System */

/* ==================== */
/* CSS Reset & Base */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  color: #1f2937;
  line-height: 1.7;
  background: #fff;
  font-size: 1.1rem;
}

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

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

/* ==================== */
/* Design Tokens */
/* ==================== */
:root {
  /* Colors */
  --color-primary: #10b981;
  --color-secondary: #059669;
  --color-warm: #d4c5a9;
  --color-dark: #1f2937;
  --color-muted: #6b7280;
  --color-light-bg: #fdfbf7;
  --color-white: #ffffff;
  --color-positive: #10b981;
  --color-negative: #ef4444;
  --color-border: #e5e7eb;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #059669 0%, #10b981 30%, #d4c5a9 100%);
  --gradient-card-hover: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 4px 14px rgba(16, 185, 129, 0.3);
  --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --section-padding: 100px;
  --max-width: 1100px;
  --card-padding: 32px;

  /* Border Radius */
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-input: 12px;
  --radius-screenshot: 16px;
  --radius-phone: 40px;
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== */
/* Animations */
/* ==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }

/* ==================== */
/* Navigation */
/* ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.logo-icon.large {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
  min-height: 100vh;
  padding: 140px 24px 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  animation: float 20s ease-in-out infinite;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-content .subhead {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius-input);
  border: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-form input::placeholder {
  color: var(--color-muted);
}

.hero-form .btn {
  flex-shrink: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  animation: pulse 3s ease-in-out infinite;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-phone);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

/* ==================== */
/* Waitlist Count */
/* ==================== */
.waitlist-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.waitlist-count strong {
  color: #fff;
  font-weight: 600;
}

.final-cta .subhead strong {
  color: #fff;
  font-weight: 700;
}


/* ==================== */
/* Trust Bar */
/* ==================== */
.trust-bar {
  padding: 60px 24px;
  background: var(--color-light-bg);
}

.trust-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 500;
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-card);
}

/* ==================== */
/* Why UseKYN Bridge Section */
/* ==================== */

.why-bridge {
  padding: 80px 24px;
  background: #fff;
  text-align: center;
}

.why-bridge-container {
  max-width: 700px;
  margin: 0 auto;
}

.why-bridge h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 32px;
}

.why-bridge-points {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.why-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
}

.why-point-icon {
  font-size: 24px;
}

.why-bridge-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-button);
  transition: all 0.2s ease;
}

.why-bridge-link:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .why-bridge-points {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .why-bridge h2 {
    font-size: 1.5rem;
  }
}

/* ==================== */
/* App Preview Section */
/* ==================== */
.app-preview {
  padding: var(--section-padding) 24px;
  background: var(--color-light-bg);
}

.app-preview-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.15rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.preview-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  padding: 40px 0;
}

.preview-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
}

.preview-card img {
  border-radius: var(--radius-screenshot);
  width: 260px;
}

.preview-card:nth-child(1) {
  transform: rotate(-3deg);
}

.preview-card:nth-child(2) {
  transform: translateY(-20px);
  z-index: 2;
}

.preview-card:nth-child(3) {
  transform: rotate(3deg);
}

.preview-card:nth-child(1):hover {
  transform: rotate(-3deg) translateY(-8px);
}

.preview-card:nth-child(2):hover {
  transform: translateY(-28px);
}

.preview-card:nth-child(3):hover {
  transform: rotate(3deg) translateY(-8px);
}

/* ==================== */
/* Comparison Section */
/* ==================== */
.comparison {
  padding: var(--section-padding) 24px;
  background: #fff;
}

.comparison-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.comparison-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 48px;
  margin-top: 48px;
  box-shadow: var(--shadow-card);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: left;
}

.comparison-column h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
}

.comparison-column.typical h3 {
  color: var(--color-muted);
}

.comparison-column.usekyn h3 {
  color: var(--color-primary);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.5;
}

.comparison-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.comparison-column.typical .comparison-item {
  color: var(--color-muted);
}

.comparison-column.usekyn .comparison-item {
  color: var(--color-dark);
}

.comparison-quote {
  margin-top: 48px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(212, 197, 169, 0.12) 100%);
  border-radius: 16px;
  border-left: 4px solid var(--color-primary);
}

.comparison-quote p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.comparison-quote .closing {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

/* ==================== */
/* Features Carousel */
/* ==================== */

.features {
  padding: 100px 24px;
  background: #fdfbf7;
}

.features-container {
  max-width: 900px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 48px;
}

.features-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  max-width: 350px;
  margin-bottom: 32px;
}

.slide-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

.privacy-icon {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  border-radius: 24px;
  font-size: 80px;
}

.slide-content {
  text-align: center;
  max-width: 500px;
}

.slide-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.slide-content p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Navigation Arrows */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 24px;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Dots Navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot:hover {
  background: #9ca3af;
}

.dot.active {
  background: #10b981;
  transform: scale(1.2);
}

/* ==================== */
/* Final CTA Section */
/* ==================== */
.final-cta {
  padding: 120px 24px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.final-cta-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.final-cta .logo-icon {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.final-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.final-cta .subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto 20px;
}

.cta-form input {
  padding: 18px 22px;
  border-radius: var(--radius-input);
  border: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-form input::placeholder {
  color: var(--color-muted);
}

.cta-form .btn {
  width: 100%;
}

.final-cta small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
  padding: 48px 24px;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 18px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

.copyright {
  color: var(--color-muted);
  font-size: 14px;
  text-align: right;
}

/* ==================== */
/* Legal Pages */
/* ==================== */
.legal {
  padding: 140px 24px 100px;
  max-width: 700px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .date {
  color: var(--color-muted);
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 48px 0 16px;
}

.legal p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.legal ul {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal li {
  color: var(--color-muted);
  margin-bottom: 10px;
  list-style: disc;
}

/* ==================== */
/* Mobile Responsive */
/* ==================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --card-padding: 24px;
  }

  body {
    font-size: 1rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-container .btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 120px 20px 60px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-form {
    flex-direction: column;
    max-width: 100%;
  }

  .privacy-badge {
    margin: 0 auto;
  }

  .hero-phone {
    order: 2;
  }

  .phone-mockup {
    max-width: 260px;
    transform: none;
  }

  .phone-mockup:hover {
    transform: none;
  }

  /* Trust Bar */
  .trust-bar-container {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  /* App Preview */
  .preview-cards {
    flex-direction: column;
    align-items: center;
  }

  .preview-card,
  .preview-card:nth-child(1),
  .preview-card:nth-child(2),
  .preview-card:nth-child(3) {
    transform: none;
  }

  .preview-card:hover,
  .preview-card:nth-child(1):hover,
  .preview-card:nth-child(2):hover,
  .preview-card:nth-child(3):hover {
    transform: translateY(-4px);
  }

  /* Comparison */
  .comparison-card {
    padding: 24px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Features Carousel */
  .features {
    padding: 60px 16px;
  }

  .features h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .slide-image {
    max-width: 280px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem;
  }

  /* Final CTA */
  .final-cta h2 {
    font-size: 2rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.875rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .comparison-item {
    font-size: 14px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }
}

/* ==================== */
/* Secondary Pages */
/* ==================== */

/* Shorter hero for secondary pages */
.hero-short {
  min-height: auto;
  padding: 140px 24px 80px;
}

.hero-short .hero-container {
  display: block;
  text-align: center;
  max-width: 800px;
}

.hero-short h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.hero-short .subhead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* Section layouts */
.section {
  padding: var(--section-padding) 24px;
}

.section.bg-white {
  background: #fff;
}

.section.bg-light {
  background: var(--color-light-bg);
}

.section.bg-gradient {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.section.bg-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Problem/Approach Cards Grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Principle Cards */
.principle-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.principle-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.principle-card p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.principle-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Horizontal Principle Cards */
.principle-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle-card.horizontal {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.principle-card.horizontal .principle-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.principle-card.horizontal .principle-content {
  flex: 1;
}

.principle-card.horizontal h3 {
  margin-bottom: 8px;
}

/* KYN Name Styling */
.kyn-section {
  text-align: center;
}

.kyn-breakdown {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 48px 0;
}

.kyn-letter {
  text-align: center;
}

.kyn-letter span {
  display: block;
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  text-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.kyn-letter small {
  display: block;
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-top: 8px;
  font-weight: 500;
}

.kyn-tagline {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Comparison Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th {
  background: var(--color-dark);
  color: #fff;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child {
  border-radius: var(--radius-card) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-card) 0 0;
}

.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-card);
}

.comparison-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-card) 0;
}

.comparison-table tr:nth-child(even) {
  background: #f9fafb;
}

.comparison-table tr:hover {
  background: #f3f4f6;
}

.comparison-table .category {
  font-weight: 600;
  color: var(--color-dark);
}

.comparison-table .typical {
  color: var(--color-muted);
}

.comparison-table .usekyn-cell {
  color: var(--color-dark);
}

.comparison-table .check {
  color: var(--color-primary);
  margin-right: 8px;
}

.comparison-table .cross {
  color: #9ca3af;
  margin-right: 8px;
}

/* Side-by-side comparison cards */
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-card {
  padding: 32px;
  border-radius: var(--radius-card);
}

.compare-card h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid currentColor;
}

.compare-card.muted {
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.compare-card.muted h4 {
  border-color: var(--color-border);
}

.compare-card.highlight {
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-dark);
  box-shadow: var(--shadow-card);
}

.compare-card.highlight h4 {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.compare-card ul {
  list-style: none;
  padding: 0;
}

.compare-card li {
  padding: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.compare-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-top: 8px;
}

.compare-card.highlight li::before {
  background: var(--color-primary);
}

/* Visual Header Cards */
.visual-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.visual-card {
  padding: 40px;
  border-radius: var(--radius-card);
  text-align: center;
}

.visual-card.muted {
  background: #f3f4f6;
  border: 1px solid var(--color-border);
}

.visual-card.highlight {
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}

.visual-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.visual-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.visual-card.muted h3 {
  color: var(--color-muted);
}

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

.visual-card p {
  font-size: 15px;
  color: var(--color-muted);
}

/* Deep dive sections */
.deep-dive {
  padding: 80px 24px;
}

.deep-dive-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.deep-dive h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-dark);
}

.deep-dive-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.deep-dive-card {
  padding: 32px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.deep-dive-card.muted {
  background: #f3f4f6;
  border: 1px solid var(--color-border);
}

.deep-dive-card.highlight {
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}

.deep-dive-card h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.deep-dive-card.muted h4 {
  color: var(--color-muted);
}

.deep-dive-card.highlight h4 {
  color: var(--color-primary);
}

.deep-dive-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  flex: 1;
}

.deep-dive-card.muted p {
  color: var(--color-muted);
}

.deep-dive-card.highlight p {
  color: var(--color-dark);
}

/* Privacy diagram */
.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.privacy-point {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.privacy-point-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.privacy-point p {
  color: var(--color-dark);
  font-size: 15px;
}

/* CTA section for secondary pages */
.section-cta {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.section-cta .subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

/* Screenshot in deep dive */
.deep-dive-screenshot {
  margin-top: 24px;
}

.deep-dive-screenshot img {
  border-radius: var(--radius-screenshot);
  box-shadow: var(--shadow-card);
  max-width: 280px;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.summary-card {
  padding: 40px;
  border-radius: var(--radius-card);
}

.summary-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-card.muted {
  background: #f3f4f6;
  border: 1px solid var(--color-border);
}

.summary-card.muted h4 {
  color: var(--color-muted);
}

.summary-card.highlight {
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}

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

.summary-card ul {
  list-style: none;
  padding: 0;
}

.summary-card li {
  padding: 12px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
}

.summary-card li:last-child {
  border-bottom: none;
}

.summary-card.muted li {
  color: var(--color-muted);
}

.summary-card.highlight li {
  color: var(--color-dark);
}

.summary-card li span {
  font-size: 18px;
}

/* Mobile Responsive for Secondary Pages */
@media (max-width: 768px) {
  .hero-short {
    padding: 120px 20px 60px;
  }

  .hero-short h1 {
    font-size: 2rem;
  }

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

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

  .principle-card.horizontal {
    flex-direction: column;
  }

  .kyn-breakdown {
    flex-direction: column;
    gap: 32px;
  }

  .kyn-letter span {
    font-size: 4rem;
  }

  .compare-cards {
    grid-template-columns: 1fr;
  }

  .visual-compare {
    grid-template-columns: 1fr;
  }

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

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 16px;
    font-size: 14px;
  }

  .section-cta h2 {
    font-size: 1.75rem;
  }
}