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

/* ── Variables ── */
:root {
  --bg:      #fdf0e6;
  --text:    #0b0d63;
  --coral:   #d66e5e;
  --shadow:  #faeae1;
  --link:    #0099ff;
  --max:     1212px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: 85px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Esteban', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-support {
  font-family: 'Esteban', serif;
  font-size: 16px;
  color: var(--coral);
  text-decoration: none;
}
.nav-support:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding-top: 240px;
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
}

.hero h1 {
  font-family: 'Esteban', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

/* ── App Cards ── */
.apps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Info column */
.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  flex: 0 0 auto;
  width: 260px;
}

.app-icon {
  width: 130px;
  height: 130px;
  border-radius: 28px;
  box-shadow: 0 8px 32px var(--shadow);
  object-fit: cover;
}

.app-name {
  font-family: 'Esteban', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.8px;
  color: var(--text);
}

.app-desc {
  font-family: 'Esteban', serif;
  font-size: 18px;
  line-height: 1.5em;
  color: var(--text);
}

.app-store-btn img {
  display: block;
  height: 44px;
  width: auto;
}

/* Screenshots */
.screenshots {
  display: flex;
  gap: 12px;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.screenshots img {
  height: 340px;
  width: auto;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
}

/* ── Two-column app row ── */
.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ── Featured App Card (centered, stacked) ── */
.app-card--featured {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.app-card--featured .app-desc {
  max-width: 600px;
}

.app-card--featured .screenshots {
  justify-content: center;
}

/* ── Footer ── */
footer {
  background: var(--bg);
  padding: 80px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 80px;
}

.footer-col { flex: 1; }

.footer-col h3 {
  font-family: 'Esteban', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--link);
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }

/* ── Tablet (810–1211px) ── */
@media (min-width: 810px) and (max-width: 1211px) {
  .apps { gap: 100px; }

  .app-card { gap: 32px; }

  .screenshots img { height: 280px; }
}

/* ── Mobile (≤809px) ── */
@media (max-width: 809px) {
  .hero { padding-top: 60px; padding-bottom: 48px; }
  .hero h1 { font-size: 28px; }

  .apps { gap: 64px; padding-bottom: 80px; }

  .app-row {
    grid-template-columns: 1fr;
  }

  .app-card {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .app-info { width: 100%; }

  .screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .screenshots img {
    height: auto;
    width: 100%;
    border-radius: 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 48px;
  }
}
