/* Monena landing — “Financial Sanctuary” tokens from DESIGN.md */

:root {
  --color-primary: #325749;
  --color-surface: #fbf9f8;
  --color-on-surface: #1c1b1a;
  --color-on-surface-muted: #5c5a57;
  --color-badge-bg: rgba(122, 89, 0, 0.12);
  --color-badge-text: #5c4a1f;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 1.5rem;
  --radius-btn: 0.875rem;
  --shadow-soft: 0 24px 60px rgba(28, 27, 26, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-on-surface-muted);
  background: var(--color-surface);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-btn);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Mobile: badge → title → image → lead → downloads block (heading + badges) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 1.25rem;
  padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2rem
    max(1rem, env(safe-area-inset-right));
  max-width: 1200px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  margin: 0 auto 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-badge-text);
  background: var(--color-badge-bg);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
}

.hero__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.2vw + 0.3rem, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.hero__visual {
  width: 100%;
  max-width: min(100%, 18.5rem);
  margin-left: auto;
  margin-right: auto;
}

.hero__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__lead strong {
  font-weight: 600;
  color: var(--color-on-surface);
}

.hero__downloads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.hero__download-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.store-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 21rem;
  margin: 0;
  padding: 0;
}

.store-btn {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  max-width: 100%;
}

.store-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.store-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Same height for both badges; width follows each SVG’s aspect ratio */
.store-btn__badge {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* Tablet: larger type, image, badges */
@media (min-width: 720px) and (max-width: 899px) {
  .hero {
    gap: 1.75rem;
    padding: 1.75rem 1.75rem 2.25rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    line-height: 1.15;
  }

  .hero__visual {
    max-width: min(100%, 28rem);
  }

  .hero__lead {
    font-size: 1rem;
  }

  .store-row {
    max-width: 26rem;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .store-btn__badge {
    max-height: clamp(80px, 11vw, 120px);
  }
}

/* Desktop: two columns — text + stores left, image right */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
    text-align: left;
    padding: 2.75rem 3rem 3.5rem;
    gap: 0;
  }

  .hero__badge {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 1.25rem;
  }

  .hero__title {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 0 0;
    font-size: clamp(1.85rem, 5.5vw, 3rem);
    line-height: 1.15;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    max-width: none;
    width: 100%;
  }

  .hero__lead {
    grid-column: 1;
    grid-row: 3;
    margin: 1rem 0 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-size: 1.05rem;
    max-width: none;
  }

  .hero__downloads {
    grid-column: 1;
    grid-row: 4;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero__download-heading {
    margin: 0;
    text-align: left;
  }

  .store-row {
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    max-width: none;
  }

  .store-btn {
    flex: 0 1 auto;
  }

  .store-btn__badge {
    height: clamp(64px, 6vw, 100px);
  }
}

.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-on-surface-muted);
}

.site-footer p {
  margin: 0;
}
