.marketing-page {
  overflow: hidden;
  background: var(--color-white);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.marketing-home) {
    scroll-behavior: smooth;
  }
}

.section-spacing {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.marketing-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.marketing-section-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.marketing-section-header p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.hero-section {
  padding: 2rem;
  background: radial-gradient(ellipse at 75% 40%, var(--color-background-secondary), transparent 65%);
}

.hero-content {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  overflow: visible;
}

.hero-description {
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn-primary {
  width: auto;
  padding-inline: 1.25rem;
}

.hero-preview {
  position: relative;
  width: 100%;
  max-width: 510px;
  margin: 0 auto;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-preview-screen {
  position: absolute;
  /* The app area in the 1122 × 1402 phone artwork starts at (304, 242) and is 514 × 952. */
  inset: 17.26% 27.09% 14.84%;
  overflow: hidden;
}

.hero-preview-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 350ms ease;
}

.hero-preview-slide.is-current {
  opacity: 1;
  z-index: 1;
}

.hero-preview-screen:has(.is-current) .hero-preview-slide:not(.is-current) {
  /* Keep the outgoing screenshot beneath the incoming one until the fade finishes. */
  transition: opacity 0s 350ms;
}

.marketing-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  color: var(--color-primary-dark);
  text-align: center;
  text-decoration: none;
}

.marketing-secondary-button:hover {
  background: var(--color-background);
}

/* ========================================
   FEATURES
======================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.14);
}

.feature-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      var(--color-primary-dark),
      var(--color-primary)
    );
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon span {
  color: var(--color-white);
  font-size: 40px;
}

.feature-icon > svg {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--color-white);
}

.marketing-features {
  padding-block: 4.5rem;
}

.marketing-features .eyebrow,
#contact .eyebrow {
  display: block;
  margin-bottom: 0.25rem;
}

.marketing-features .eyebrow + h2,
#contact .eyebrow + h2 {
  margin-top: 0;
}

.marketing-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: 1132px;
  margin: 0 auto;
  padding: 2rem;
  border-block: 1px solid var(--color-border);
}

.marketing-mobile h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.marketing-mobile p {
  max-width: 43rem;
  margin: 0;
  color: var(--color-text-muted);
}

.marketing-mobile .marketing-secondary-button {
  flex-shrink: 0;
}

/* ========================================
   CALL TO ACTION
======================================== */

.cta-section {
  padding: 7rem 2rem;
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.75)
    );
  border-radius: 32px;
  padding: 5rem 3rem;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ========================================
   FOOTER
======================================== */

.marketing-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand p {
  color: var(--color-background-tertiary);
  line-height: 1.7;
}

.footer-brand a {
  color: var(--color-background-tertiary);
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--color-white);
}

.footer-column a {
  text-decoration: none;
  color: var(--color-background-tertiary);
  transition: color 0.2s ease;
}

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

.footer-column p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--color-background-tertiary);
  line-height: 1.5;
}

.footer-column .material-icons {
  font-size: 1.1rem;
  color: var(--color-background-tertiary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  padding: 1.5rem 2rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--color-background-tertiary);
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

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

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-preview {
    max-width: 340px;
  }

  .marketing-mobile,
  .footer-content,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section-spacing,
  .cta-section {
    padding-block: 5rem;
  }

  .cta-card {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-section,
  .marketing-features,
  .marketing-mobile,
  #contact.cta-section {
    padding-inline: 1rem;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-features,
  #contact.cta-section {
    padding-block: 3.5rem;
  }

  #contact .cta-card {
    padding: 2.25rem 1rem;
  }
}
