/* ========================================
   LANDING PAGE STYLES
   Extends styles.css with landing-specific components
   ======================================== */

/* ========================================
   VARIABLES (Reuse existing design system)
   ======================================== */
:root {
  --primary-teal: #00A896;
  --secondary-teal: #4DB6AC;
  --bg-color: #F8FAFA;
  --text-primary: #0F1F1E;
  --text-secondary: #5C6E6D;
  --border-color: #E0E8E7;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.1);
  --hero-bg: linear-gradient(150deg, #004D40 0%, #00695C 55%, #00897B 100%);
}

/* ========================================
   SKIP LINK & FOCUS
   ======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-teal);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Visible keyboard focus ring for all interactive elements */
:focus-visible {
  outline: 3px solid var(--primary-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========================================
   GLOBAL LANDING PAGE LAYOUT
   ======================================== */
.landing-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Section spacing */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-intro {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   NAVIGATION HEADER
   ======================================== */
.landing-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.landing-nav {
  padding: 16px 0;
}

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

/* Brand name in header — styled like a heading but not one (page has one h1 in hero) */
.brand-name {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-teal);
  line-height: 1;
}

.landing-nav .logo .tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.logo-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s;
}

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

.nav-links a.active {
  color: var(--primary-teal);
  font-weight: 600;
}

.nav-links .admin-link {
  background: var(--primary-teal);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-links .admin-link:hover {
  background: #009886;
  color: white;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background: var(--hero-bg);
  padding: 120px 0;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: #ffffff;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-centered {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.hero-centered .hero-subtitle {
  margin-bottom: 0;
}

.hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.feature-pill {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.cta-buttons {
  display: flex;
  gap: 16px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: 8px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup {
  width: 100%;
  max-width: 400px;
}

.mockup-placeholder {
  aspect-ratio: 9 / 16;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
}

.mockup-placeholder p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ========================================
   LIST RESETS — all semantic lists that are styled as grids/pills
   ======================================== */
.hero-pills,
.onboarding-slides,
.steps-track,
.features-grid,
.reference-grid {
  list-style: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

/* ========================================
   HERO EYEBROW + PILLS
   ======================================== */
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #80CBC4;
  margin-bottom: 16px;
}

.hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ========================================
   ONBOARDING SLIDES SECTION
   ======================================== */
.onboarding-section {
  background: #1a1a2e;
  padding: 80px 0;
}

.section-title--light {
  color: #ffffff;
}

.section-intro--light {
  color: rgba(255, 255, 255, 0.65);
}

.onboarding-slides {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.slide-card {
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.slide-card--teal {
  background: linear-gradient(145deg, #00897B 0%, #004D40 100%);
  color: white;
}

.slide-card--purple {
  background: linear-gradient(145deg, #6A1B9A 0%, #311B92 100%);
  color: white;
}

.slide-card--blue {
  background: linear-gradient(145deg, #1565C0 0%, #0D47A1 100%);
  color: white;
}

.slide-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.slide-icon {
  font-size: 2rem;
}

.slide-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.slide-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
  line-height: 1.3;
}

.slide-slogan {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.slide-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

@media (max-width: 1024px) {
  .onboarding-slides {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .onboarding-slides {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-section {
  background: white;
}

/* Four-column track */
.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line between step bubbles */
.steps-track::before {
  content: '';
  position: absolute;
  top: 47px; /* center of 96px bubble */
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: linear-gradient(90deg, #B2DFDB 0%, var(--primary-teal) 100%);
  z-index: 0;
}

/* Individual step */
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

/* Bubble: holds the number badge + icon */
.step-bubble {
  position: relative;
  width: 96px;
  height: 96px;
  background: white;
  border-radius: 50%;
  border: 2px solid #B2DFDB;
  box-shadow: 0 4px 20px rgba(0, 168, 150, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
  z-index: 1;
}

.step-item:hover .step-bubble {
  box-shadow: 0 8px 24px rgba(0, 168, 150, 0.22);
  border-color: #00A896;
}

/* Step number — centred large digit */
.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-teal);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Step text */
.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .steps-track::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps-track {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .step-item {
    padding: 0 12px;
  }
}

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

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

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

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 14px;
  border-top: 3px solid var(--primary-teal);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-teal);
}

.feature-card--purple {
  border-top-color: #7B1FA2;
}

.feature-card--purple h3 {
  color: #7B1FA2;
}

.feature-card--blue {
  border-top-color: #1565C0;
}

.feature-card--blue h3 {
  color: #1565C0;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-section {
  background: var(--bg-color);
}

.partner-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.benefit-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.benefit-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-teal);
}

.benefit-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.benefit-list li {
  padding: 8px 0;
  color: var(--text-secondary);
}

.partner-logos {
  text-align: center;
}

.partner-placeholder {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.partner-logo-placeholder {
  aspect-ratio: 16 / 9;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--primary-teal);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-item a {
  color: var(--primary-teal);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-form-container {
  background: var(--bg-color);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
}

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

/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.download-section {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
  color: white;
  text-align: center;
}

.download-section .section-title,
.download-section .section-intro {
  color: white;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-icon {
  font-size: 2.5rem;
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.download-store {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ========================================
   FOOTER
   ======================================== */
.landing-footer {
  background: #1A2B2A;
  color: #ECEFF1;
  padding: 64px 0 24px;
  border-top: 3px solid var(--primary-teal);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: white;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #B0BEC5;
  margin-bottom: 16px;
}

.footer-description {
  color: #B0BEC5;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #B0BEC5;
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  color: #B0BEC5;
  text-decoration: none;
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--secondary-teal);
}

.footer-bottom {
  border-top: 1px solid #37474F;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #B0BEC5;
  font-size: 0.875rem;
}

.admin-footer-link {
  color: var(--secondary-teal);
  text-decoration: none;
}

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

/* ========================================
   REFERENCE SECTION
   ======================================== */
.reference-section {
  background: #F0FDFA;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.reference-card {
  background: white;
  border-radius: 14px;
  border-left: 3px solid var(--primary-teal);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.reference-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.reference-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 8px;
}

.reference-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ========================================
   SIMPLE FOOTER
   ======================================== */
.footer-simple {
  text-align: center;
  padding: 40px 0;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-simple .footer-tagline {
  color: #B0BEC5;
  margin-bottom: 16px;
}

.footer-simple .footer-description {
  color: #B0BEC5;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.footer-simple .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.footer-simple .footer-links li + li::before {
  content: "|";
  color: #78909C;
  margin: 0 12px;
}

.footer-simple .footer-links a {
  color: #B0BEC5;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-simple .footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-copyright {
  color: #78909C;
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-teal);
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

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

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

  .partner-benefits {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

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

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .features-grid,
  .features-grid--4 {
    grid-template-columns: 1fr;
  }

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

  .download-buttons {
    flex-direction: column;
  }

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

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