/* Shared stylesheet for the hand-authored static public pages (welcome) served OUTSIDE the
   SPA. These pages can't use src/global.css - that's the NativeWind/Tailwind build for the
   React Native Web app (utility classes + @theme, not a plain stylesheet). The palette below
   mirrors global.css's @theme tokens (the source of truth); keep it in sync if those change. Fonts reuse the bundled NotoSans woff2 in
   public/fonts so the public pages match the app's typography. */

@font-face {
  font-family: "NotoSans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/NotoSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "NotoSans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/NotoSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "NotoSans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/NotoSans-Bold.woff2") format("woff2");
}

:root {
  --bg: #fbf7f5;
  --surface: #ffffff;
  --surface-2: #f6efec;
  --content: #4a4453;
  --soft: #847c8c;
  --line: #ece2de;
  --brand: #d98ba0;
  --brand-deep: #c26b86;
  --brand-tint: #fbeaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--content);
  font-family: "NotoSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav - full-width sticky bar with a .wrap-constrained row inside. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #ffffff; border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
/* Wordmark: the "B" mark SVG + live "ump"/"li" text, composed like the app's Wordmark. */
.wordmark { display: inline-flex; align-items: baseline; }
.wordmark-mark { height: 1.9rem; width: auto; margin-right: 0.06em; transform: translateY(0.3rem); }
.wordmark-text { font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; color: var(--content); }
.wordmark-text .li { color: var(--brand-deep); }
.nav-signin { color: var(--brand-deep); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; border-radius: 999px; padding: 0.8rem 1.6rem;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand-deep); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; color: var(--soft); max-width: 34rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Cross-platform section */
.platforms { text-align: center; padding: 1.5rem 0 3rem; }
.platforms h2 { font-size: 1.7rem; margin: 0 0 0.4rem; }
.web-shot {
  display: block; width: 100%; max-width: 56rem; margin: 1.75rem auto 1.5rem;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(194, 107, 134, 0.12);
}
.stores { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.playstore-link img { display: block; height: 54px; width: auto; }
.platform-note { color: var(--soft); font-size: 0.9rem; margin: 1rem auto 0; max-width: 34rem; }

/* Feature showcase - alternating phone/text rows, revealed one at a time on scroll. */
.showcase { padding: 1rem 0 2rem; }
.feature-row { display: flex; align-items: center; justify-content: center; gap: 3rem; padding: 2rem 0; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { max-width: 26rem; }
.feature-text h3 { font-size: 1.5rem; color: var(--brand-deep); margin: 0 0 0.6rem; }
.feature-text p { font-size: 1.05rem; color: var(--soft); margin: 0; }
.phone {
  flex: 0 0 auto; width: 200px; background: #2b2530; border: 6px solid #2b2530;
  border-radius: 28px; overflow: hidden; box-shadow: 0 14px 34px rgba(74, 68, 83, 0.2);
}
.phone img { display: block; width: 100%; }

/* Reveal-on-scroll - scoped to .js so no-JS shows every row. */
.js .feature-row { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .feature-row.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  /* Respect the setting by dropping the movement, but keep the one-at-a-time opacity fade so
     the reveal still guides reading (a crossfade is fine for reduced motion). */
  .js .feature-row { transform: none; transition: opacity 0.6s ease; }
}
@media (max-width: 46rem) {
  .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; gap: 1.25rem; padding: 1.25rem 0; }
  .feature-text { max-width: 32rem; }
}

/* Pricing / tiers */
.pricing { padding: 1rem 0 3.5rem; }
.pricing h2 { text-align: center; font-size: 1.7rem; margin: 0 0 0.4rem; }
.pricing .lede { text-align: center; color: var(--soft); margin: 0 0 2rem; }
.tiers { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.5rem; flex: 1 1 16rem; max-width: 20rem; display: flex; flex-direction: column;
}
.tier.popular { border-color: var(--brand); box-shadow: 0 8px 30px rgba(194, 107, 134, 0.12); position: relative; }
.badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.tier-name { font-weight: 700; font-size: 1.2rem; }
.tier-price { font-size: 1.9rem; font-weight: 700; margin: 0.5rem 0 0; }
.tier-price .per { font-size: 0.95rem; font-weight: 500; color: var(--soft); }
.tier-sub { color: var(--soft); font-size: 0.85rem; margin: 0.15rem 0 1rem; }
.tier-sub .save { color: var(--brand-deep); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.tier li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; font-size: 0.95rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-deep); font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 0.85rem 0; color: var(--soft); font-size: 0.9rem; text-align: center; }
footer p { margin: 0.15rem 0; }
footer a { color: var(--brand-deep); }

@media (max-width: 30rem) {
  .hero h1 { font-size: 1.9rem; }
}
