:root {
  color-scheme: light;
  --ink: #202c25;
  --muted: #4b5c51;
  --green: #245144;
  --pale: #edf4e9;
  --border: #d5e1d4;
  --cream: #fcfbf6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #995024; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.shell { width: min(calc(100% - 32px), 1100px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner, .site-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.35rem;
  padding-block: .9rem;
}

.site-header-inner { justify-content: space-between; }
.wordmark { font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.wordmark span { padding-inline-start: .2em; color: #995024; }
.back-link { font-weight: 650; }

.skip { position: absolute; left: 1rem; top: -5rem; padding: .65rem; background: white; z-index: 2; }
.skip:focus { top: 1rem; }

.language-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding-block: 1rem; }
.language-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 2rem;
  padding: .25rem .65rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.language-nav a[aria-current], .language-nav a:hover { background: #dfece1; color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.75rem;
  align-items: center;
  padding: clamp(1.1rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--pale);
}
.hero-copy { min-width: 0; }
.app-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .8rem;
  color: var(--green);
  font-weight: 800;
  margin: 0 0 .55rem;
}
.app-name span { color: var(--muted); font-size: .83rem; font-weight: 600; }
h1, h2 { margin: 0; line-height: 1.22; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4.3vw, 3.45rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.85rem); }
.lead { max-width: 68ch; margin: 1rem 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; }
.play {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  border-radius: .6rem;
  padding: .65rem 1rem;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 750;
}
.play:hover { background: #173c31; }
.audience { color: var(--muted); font-size: .9rem; }
.app-icon { width: clamp(5rem, 16vw, 12rem); border-radius: 23%; }

.gallery-section { margin-block: clamp(1.5rem, 4vw, 2.5rem); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: .9rem;
}
.gallery figure { margin: 0; min-width: 0; }
.screen { display: block; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.screen img { width: 100%; aspect-ratio: 9 / 16; background: var(--pale); }
figcaption { margin-top: .45rem; color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }

.steps {
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  background: white;
}
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem 1.6rem; padding-inline-start: 1.35rem; }
.steps li::marker { color: var(--green); font-weight: 800; }
.reward { color: var(--muted); margin: 1rem 0 0; font-size: .92rem; }
.site-footer { margin-top: 1rem; border-top: 1px solid var(--border); font-size: .92rem; }
.site-footer a { min-height: 36px; display: flex; align-items: center; }
.site-footer span { color: var(--muted); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 510px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .app-icon { grid-row: 1; width: 72px; }
  .language-nav a { min-height: 44px; }
  .gallery { gap: .9rem; }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
}
