/* ==========================================================================
   Clarifian Landing Page — Stylesheet
   Architecture: Reset → Typography → Layout → Hero → Features → Footer →
                 Utilities → Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero {
  padding: 64px 0;
}

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

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.15;
  text-align: center;
}

.hero-sub {
  font-size: 18px;
  color: #6b7280;
  max-width: 540px;
  margin-top: 24px;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

.hero-steps-arrow {
  color: #9ca3af;
}

.cta-button {
  display: block;
  margin-top: 32px;
  background: #2563eb;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.cta-button:hover {
  background: #1d4ed8;
}

.hero-visual {
  width: 100%;
  max-width: 560px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Video Embed
   -------------------------------------------------------------------------- */

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}

/* --------------------------------------------------------------------------
   Video Placeholder (for pages without real video)
   -------------------------------------------------------------------------- */

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid #6b7280;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

/* --------------------------------------------------------------------------
   Video Label
   -------------------------------------------------------------------------- */

.video-label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */

.features {
  background: #f9fafb;
  padding: 64px 0;
}

/* --------------------------------------------------------------------------
   Features Grid
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   Feature Card
   -------------------------------------------------------------------------- */

.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Card Icon
   -------------------------------------------------------------------------- */

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon--blue {
  background: #eff6ff;
}

.feature-icon--purple {
  background: #f5f3ff;
}

.feature-icon--green {
  background: #ecfdf5;
}

/* --------------------------------------------------------------------------
   Card Title
   -------------------------------------------------------------------------- */

.feature-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Card Body
   -------------------------------------------------------------------------- */

.feature-body {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-legal {
  display: flex;
  gap: 4px;
  align-items: center;
}

.footer-legal-link {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  color: #6b7280;
}

.footer-legal-sep {
  font-size: 13px;
  color: #d1d5db;
}

/* --------------------------------------------------------------------------
   Footer Text
   -------------------------------------------------------------------------- */

.footer-text {
  font-size: 14px;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   Footer Link
   -------------------------------------------------------------------------- */

.footer-link {
  font-size: 14px;
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.site-logo:hover {
  color: #1f2937;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-label span {
  display: block;
  width: 20px;
  height: 2px;
  background: #6b7280;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
}

.nav-toggle:checked ~ .site-nav {
  display: flex;
}

.site-header .container {
  position: relative;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #1f2937;
}

.nav-link--cta {
  color: #2563eb;
}

.nav-link--cta:hover {
  color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Video Carousel
   -------------------------------------------------------------------------- */

.carousel-section {
  padding: 64px 0;
}

.section-heading {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin-bottom: 40px;
}

.carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}

.carousel-arrow:hover {
  background: #d1d5db;
}

.carousel-arrow--prev {
  left: -20px;
}

.carousel-arrow--next {
  right: -20px;
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #6b7280;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.carousel-dot.active {
  background: #2563eb;
}

/* --------------------------------------------------------------------------
   Steps Section
   -------------------------------------------------------------------------- */

.steps {
  background: #f9fafb;
  padding: 64px 0;
}

.steps-subtitle {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  margin-top: -28px;
  margin-bottom: 48px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.step-content {
  flex: 1;
}

.step-number {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 12px;
  padding: 2px 10px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  margin-top: 12px;
}

.step-body {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 400px;
}

.step-image {
  flex: 1;
  width: 100%;
  max-width: 520px;
}

.step-image-placeholder {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.step-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: block;
}

.steps-more {
  text-align: center;
  margin-top: 48px;
}

.steps-more a {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.steps-more a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Page Header (subpages)
   -------------------------------------------------------------------------- */

.page-header {
  padding: 64px 0 48px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.15;
}

.page-header .page-subtitle {
  font-size: 18px;
  color: #6b7280;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Legal Content
   -------------------------------------------------------------------------- */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.legal-content .legal-updated {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-top: 12px;
}

.legal-content ul,
.legal-content ol {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-top: 12px;
  padding-left: 24px;
}

.legal-content li {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   CTA Strip
   -------------------------------------------------------------------------- */

.cta-strip {
  padding: 64px 0;
  text-align: center;
}

.cta-strip h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
}

.cta-strip .cta-button {
  display: inline-block;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */

.about-story {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-story p {
  font-size: 18px;
  color: #374151;
  line-height: 1.7;
}

.beliefs {
  padding: 64px 0;
  background: #f9fafb;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.belief-card {
  padding: 0 24px;
}

.belief-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.belief-body {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Responsive — 640px+
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 1024px+ (Desktop)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {

  /* Hero */
  .hero {
    padding: 96px 0;
  }

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

  .hero-content h1 {
    font-size: 48px;
    text-align: left;
  }

  .hero-sub {
    font-size: 20px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-steps {
    flex-direction: row;
    text-align: left;
  }

  .cta-button {
    display: inline-block;
  }

  /* Features */
  .features {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-body {
    font-size: 16px;
  }

  /* Site Header */
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    border-bottom: none;
    padding: 0;
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }

  /* Carousel */
  .carousel-section {
    padding: 80px 0;
  }

  .section-heading {
    font-size: 28px;
  }

  .carousel-arrow--prev {
    left: -48px;
  }

  .carousel-arrow--next {
    right: -48px;
  }

  /* Steps */
  .steps {
    padding: 80px 0;
  }

  .step {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }

  .step:nth-child(even) {
    flex-direction: row-reverse;
  }

  .step-body {
    font-size: 16px;
  }

  /* Page Header */
  .page-header h1 {
    font-size: 36px;
  }

  /* About */
  .beliefs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    text-align: left;
  }
}
