/* ===========================
   Storymade — styles.css
   Font: Lexend (Google Fonts)
   Palette: pure white / pure black, minimal accent
   =========================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Lexend', Arial, sans-serif;
  font-weight: 400;
  background-color: #ffffff;
  color: #111111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ---- Header ---- */
.site-header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: block;
  height: 50px;
  width: auto;
}

/* ---- Main ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 64px;
  gap: 56px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
}

.brand-name {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 36px;
}

.subheading {
  font-size: clamp(1.8rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: #444444;
  letter-spacing: 0.01em;
}

/* ---- Phone images ---- */
.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
}

.phone-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-img {
  width: auto;
  height: 800px;
  max-width: 800px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.phone-figure figcaption {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Store section ---- */
.store-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  text-align: center;
}

.store-tagline {
  font-size: clamp(1.5rem, 2vw, 1.1rem);
  font-weight: 300;
  color: #000000;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 0.18s ease, transform 0.18s ease;
  outline-offset: 4px;
}

.badge-link:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.badge-link:focus-visible {
  outline: 2px solid #111111;
}

.store-badge {
  height: 56px;
  width: auto;
  display: block;
}


/* ---- Footer ---- */
.site-footer {
  padding: 60px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  border-top: 1px solid #eeeeee;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 1.2rem;
  font-weight: 400;
  color: #000000;
  text-decoration: underline;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
  border-radius: 2px;
}

.middot {
  font-size: 1rem;
  color: #bbbbbb;
  user-select: none;
  line-height: 1;
}

.copyright {
  font-size: 0.9rem;
  font-weight: 300;
  color: #000000;
  letter-spacing: 0.01em;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-header {
    padding: 20px 24px;
  }
  .logo{
    height:40px;
  }
  .main {
    padding: 36px 20px 48px;
    gap: 44px;
  }

  .phones {
    gap: 20px;
  }

  .phone-img {
    height: 400px;
    max-width: 400px;
    padding: 20px;
  }

  .store-badge {
    height: 48px;
  }

  .store-badge--play {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-link {
    transition: none;
  }
}