/* The Promised Land: game page. Warm, sunlit and calm, like the game:
   parchment background, deep meadow green, a touch of church gold. Flat colours, no glow. */

@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #fbf6ec;
  --bg-2: #f4ecdc;
  --card: #fffdf8;
  --text: #2b2216;
  --muted: #74674f;
  --line: rgba(80, 60, 20, .12);
  --green: #2f6b3c;
  --green-2: #3f8a4f;
  --gold: #c8922e;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Var", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
p a { color: var(--green); }
p a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 48px); }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 236, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; font-size: 14px; }
.bar .title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.bar .title img { width: 26px; height: 26px; border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 22px; color: var(--muted); }
.bar nav a:hover { color: var(--text); }
.bar .get { height: 30px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; display: inline-flex; align-items: center; font-weight: 500; }
.bar .get:hover { background: var(--green-2); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(72px, 11vw, 128px) 0 0; overflow: hidden; isolation: isolate; }
.hero .app-icon { width: 128px; height: 128px; margin: 0 auto 32px; border-radius: 22.5%; box-shadow: 0 18px 40px rgba(110, 70, 10, .25); }
.hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(44px, 8vw, 84px); line-height: 1.03; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { margin: 24px auto 0; max-width: 36ch; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.38; color: var(--muted); text-wrap: balance; }
.hero .actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 500; background: var(--text); color: #fff; transition: transform .2s ease, background .2s ease; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: scale(1.03); }
.btn.light { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(43, 34, 22, .22); }
.btn.light:hover { background: rgba(43, 34, 22, .05); }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 88px); }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 40px rgba(90, 60, 10, .18); }
.shots img:nth-child(even) { transform: translateY(28px); }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 136px) 0; }
.headline { margin: 0 0 16px; max-width: 18ch; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.lead { margin: 0 0 64px; max-width: 44ch; font-size: 21px; line-height: 1.42; color: var(--muted); }
.tint { background: var(--bg-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.feature .glyph { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(47, 107, 60, .1); color: var(--green); margin-bottom: 20px; }
.feature .glyph svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.02em; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Quote band ---------- */
.verse { text-align: center; padding: clamp(80px, 11vw, 128px) 0; }
.verse blockquote { margin: 0 auto; max-width: 24ch; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.verse cite { display: block; margin-top: 20px; font-style: normal; font-size: 17px; color: var(--muted); }

/* ---------- Comparison ---------- */
.compare { border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgba(80, 60, 20, .06), 0 12px 40px rgba(80, 60, 20, .06); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 22px 28px; vertical-align: top; }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare thead th.us { color: var(--green); }
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare td:first-child { font-weight: 600; width: 22%; }
.compare td.us { color: var(--text); }
.compare td.them { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 26px; max-width: 62ch; color: var(--muted); font-size: 17px; }

/* ---------- Closing call ---------- */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22.5%; box-shadow: 0 14px 30px rgba(110, 70, 10, .22); }
.cta .actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 40px); }
  .bar nav .hide-s { display: none; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 0 20px 24px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots img { flex: none; width: 58vw; max-width: 260px; scroll-snap-align: center; }
  .shots img:nth-child(even) { transform: none; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .compare thead { display: none; }
  .compare table, .compare tbody, .compare tr, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 22px 22px; }
  .compare tbody tr + tr { border-top: 1px solid var(--line); }
  .compare tbody tr + tr td { border-top: 0; }
  .compare td { padding: 0; }
  .compare td:first-child { width: auto; font-size: 19px; margin-bottom: 12px; }
  .compare td.us, .compare td.them { font-size: 16px; }
  .compare td.them { margin-top: 10px; }
  .compare td.us::before, .compare td.them::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .compare td.us::before { color: var(--green); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
