/* ============================================================
   MINND — DESIGN TOKENS
   Edit these variables to restyle the entire page
   ============================================================ */
:root {
  /* Colours */
  --color-bg:              #ffffff;
  --color-text-dark:       #111111;
  --color-text-accent:     #148AA5;   /* blue — headline & subheading highlight */
  --color-text-muted:      #555555;   /* subheading base colour */
  --color-media-bg:        #148AA5;   /* blue panel behind the video */
  --color-cta-bg:          #111111;   /* App Store button background */
  --color-cta-text:        #ffffff;   /* App Store button text */
  --color-footer-text:     #888888;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  /* Sizing */
  --headline-size:   clamp(2.4rem, 6vw, 5rem);
  --subheading-size: clamp(1rem, 2.2vw, 1.4rem);
  --footer-size:     0.8rem;

  /* Spacing */
  --section-padding-x: clamp(1.5rem, 6vw, 6rem);
  --section-padding-y: clamp(2rem, 6vh, 5rem);

  /* Media panel */
  --media-radius: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO LAYOUT
   ============================================================ */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: var(--section-padding-y) var(--section-padding-x);
  min-height: calc(100vh - 80px);
}

/* ============================================================
   HERO TEXT
   ============================================================ */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__headline {
  font-size: var(--headline-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__headline--dark {
  color: var(--color-text-dark);
}

.hero__headline--accent {
  color: var(--color-text-accent);
}

.hero__subheading {
  font-size: var(--subheading-size);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero__subheading--accent {
  color: var(--color-text-accent);
}

/* ============================================================
   APP STORE BUTTON
   ============================================================ */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  width: fit-content;
  transition: opacity 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  opacity: 0.8;
  outline: 2px solid var(--color-text-accent);
  outline-offset: 3px;
}

.cta__apple-icon {
  width: 1.8rem;
  height: 1.8rem;
  fill: var(--color-cta-text);
  flex-shrink: 0;
}

.cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cta__label {
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.cta__store {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO MEDIA (video panel)
   ============================================================ */
.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__media-bg {
  background-color: var(--color-media-bg);
  border-radius: var(--media-radius);
  width: 100%;
  max-width: 480px;
  aspect-ratio: 9 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--media-radius) - 0.5rem);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 1.2rem var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border-top: 1px solid #eeeeee;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.footer__link {
  font-size: var(--footer-size);
  color: var(--color-footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.footer__dot {
  font-size: var(--footer-size);
  color: var(--color-footer-text);
}

.footer__copy {
  font-size: var(--footer-size);
  color: var(--color-footer-text);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: unset;
    padding-bottom: 2rem;
  }

  /* Stack: media first, then text on mobile */
  .hero__media {
    order: -1;
  }

  .hero__media-bg {
    max-width: 320px;
    aspect-ratio: 9 / 12;
    margin: 0 auto;
  }

  .hero__text {
    align-items: center;
  }

  .hero__cta {
    align-self: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
  .hero__media-bg {
    max-width: 260px;
  }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    animation: none;
  }
}
