/* =========================================================================
   Norse Runes — base tokens and landing page styles.
   Palette mirrors the app: forest green background, parchment ink,
   light green accent (Assets.xcassets: RunicBackgroundGray, RunicGreen,
   RunicOffWhite, RunicMediumLightGreen).
   ========================================================================= */


:root {
  --bg: #121A20;
  --surface: rgba(18, 26, 32, 0.82);
  --surface-strong: #0C1216;
  --ink: #F4EDE3;
  --ink-70: rgba(244, 237, 227, 0.72);
  --ink-50: rgba(244, 237, 227, 0.5);
  --ink-35: rgba(244, 237, 227, 0.35);
  --accent: #81BD8E;
  --frost: rgba(149, 166, 147, 0.08);
  --frost-strong: rgba(149, 166, 147, 0.16);
  --display: "Avenir Next", Avenir, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Avenir Next", Avenir, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); }

/* Landing backdrop: the forest image sits under the hero and fades into the
   solid background, so text below always sits on plain color. */
body.home {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(18, 26, 32, 0.45) 0%, rgba(18, 26, 32, 0.72) 55%, var(--bg) 96%),
    url("/assets/bg-forest.jpg?v=1");
  background-repeat: no-repeat, no-repeat;
  background-position: top center, top center;
  background-size: max(100%, 1100px) auto, max(100%, 1100px) auto;
}

/* ------------------------------ Landing ------------------------------- */
/* landing main: fill viewport height so the footer pins to the bottom */
.page-main { flex: 1 0 auto; }

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(129, 189, 142, 0.18);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.08;
  margin: 28px 0 12px;
}
.hero .tagline {
  max-width: 540px;
  margin: 0 auto 32px;
  color: var(--ink-70);
  font-size: 18px;
}
.store-badge {
  display: inline-block;
  margin: 14px;
  line-height: 0;
}
.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

/* --------------------------- Screenshot strip -------------------------- */
.screens {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 10px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}
.screen { margin: 0; flex: 0 0 auto; }
.screen img {
  display: block;
  width: 220px;
  height: auto;
  aspect-ratio: 444 / 960;
  border-radius: 18px;
  border: 1px solid var(--frost-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (min-width: 1280px) {
  .screens { justify-content: center; overflow: visible; }
}

.features {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--frost);
  border: 1px solid rgba(149, 166, 147, 0.18);
  text-align: left;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-70);
}

.honest-note {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-50);
}
