/* Treasure Farm — farm-forward palette + tactile UI (lime / gold / sky / forest) */

:root {
  --lime: #a9d943;
  --lime-dark: #8fc12a;
  --orange: #f9a021;
  --orange-dark: #d97706;
  --cream: #fff9c4;
  --sky: #66ccff;
  --sky-deep: #3aa7e6;
  --forest: #2d5a27;
  --barn: #e63946;
  --barn-dark: #c1121f;
  --wood: #6b4423;
  --wood-dark: #4a2f18;
  --panel: #fff7e6;
  --text: #1b2e18;
  --muted: #3f5a3a;
  --white: #ffffff;
  --shadow-3d: 0 10px 0 rgba(45, 90, 39, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #bfefff 0%, #dff6ff 38%, #f4fff0 100%);
  min-height: 100vh;
  line-height: 1.6;
  /* Reduce accidental pull-to-refresh / scroll chaining on some mobile browsers (not a full substitute for diagnosing real reloads). */
  overscroll-behavior-y: contain;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--forest);
  color: var(--cream);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}

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

.icon-inline {
  vertical-align: -3px;
  margin-right: 0.35rem;
}

/* --- Background scene --- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene__sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, #dff7ff 0%, #bfefff 45%, #a6e7ff 100%);
}

.bg-scene__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.9;
}

.bg-scene__cloud--1 {
  width: 220px;
  height: 72px;
  top: 12%;
  left: 8%;
  box-shadow: 60px 10px 0 -10px rgba(255, 255, 255, 0.85), -40px 14px 0 -12px rgba(255, 255, 255, 0.75);
}

.bg-scene__cloud--2 {
  width: 180px;
  height: 58px;
  top: 22%;
  right: 6%;
  box-shadow: 48px 8px 0 -8px rgba(255, 255, 255, 0.8);
}

.bg-scene__cloud--3 {
  width: 140px;
  height: 46px;
  top: 42%;
  left: 35%;
  opacity: 0.65;
}

.bg-scene__hills {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 38vh;
  background: radial-gradient(ellipse 90% 120% at 50% 0%, #7ccf5a 0%, #4fa83f 55%, #2d6a2a 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: saturate(1.05);
}

/* --- Header / navbar (wood grain hint + sticky) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 28px rgba(15, 42, 18, 0.22);
}

body.nav-open {
  overflow: hidden;
}

.navbar {
  background: linear-gradient(180deg, #8b5a2f 0%, var(--wood) 55%, var(--wood-dark) 100%);
  color: var(--cream);
  border-bottom: 4px solid #3d2414;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}

.navbar::after {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0 6px,
    rgba(0, 0, 0, 0.06) 6px 12px
  );
  opacity: 0.35;
}

.navbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.brand:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff3b0, #ffe08a);
  border: 3px solid #3d2414;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 4px 0 #2a1a0d;
}

.brand__mark img {
  border-radius: 12px;
}

.brand__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #2a1a0d;
}

.brand__tag {
  display: block;
  font-size: 0.78rem;
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255, 249, 196, 0.45);
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--cream);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 999px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links__a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links__a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-links__a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

.nav-cta {
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn:active {
  transform: translateY(2px) scale(0.99);
}

.btn:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--cta {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #1a1206;
  border: 3px solid #5a2e00;
  box-shadow: 0 6px 0 #5a2e00, 0 12px 24px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 5px 0 #5a2e00, 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn--store {
  background: linear-gradient(180deg, #fff7da 0%, #ffe08a 100%);
  color: var(--forest);
  border: 3px solid var(--forest);
  box-shadow: 0 6px 0 var(--forest), 0 10px 20px rgba(45, 90, 39, 0.15);
}

.btn--store:hover {
  filter: brightness(1.03);
}

.btn--store-alt {
  background: linear-gradient(180deg, #e8fff0 0%, #c9f7c5 100%);
}

.btn--light {
  background: linear-gradient(180deg, #fff6cf 0%, #ffe08a 100%);
  color: var(--forest);
  border: 3px solid var(--forest);
  box-shadow: 0 6px 0 var(--forest);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border: 3px solid rgba(255, 249, 196, 0.75);
  box-shadow: none;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 2.5rem 1.25rem 0;
  overflow: clip;
}

.hero__banner {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(52vh, 520px);
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 55%, transparent 100%);
}

.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.38;
  filter: saturate(1.08) contrast(1.02);
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: var(--panel);
  clip-path: polygon(0 60%, 10% 45%, 20% 55%, 35% 38%, 50% 52%, 65% 40%, 78% 54%, 90% 44%, 100% 58%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.hero__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(45, 90, 39, 0.25);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 0 rgba(45, 90, 39, 0.12);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  line-height: 1.05;
}

.hero__title-word {
  display: block;
}

.hero__title-word--gold {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #ffe566;
  text-shadow:
    0 1px 0 #fff8c2,
    0 3px 0 #caa400,
    0 4px 0 #8a6a00,
    0 8px 0 rgba(45, 90, 39, 0.35),
    0 12px 22px rgba(0, 0, 0, 0.18);
  -webkit-text-stroke: 2px var(--forest);
  paint-order: stroke fill;
}

.hero__title-word--lime {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  color: var(--lime);
  text-shadow:
    0 1px 0 #d8ff9a,
    0 3px 0 #6aa62a,
    0 5px 0 rgba(45, 90, 39, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.12);
  -webkit-text-stroke: 2px var(--forest);
  paint-order: stroke fill;
}

.hero__title-word--plank {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.35rem 1rem 0.5rem;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  color: var(--cream);
  background: linear-gradient(180deg, #c98a4d 0%, #8b5a2f 100%);
  border-radius: 14px;
  border: 3px solid #3d2414;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    0 6px 0 #3d2414,
    0 14px 28px rgba(0, 0, 0, 0.18);
  text-shadow: 0 2px 0 #3d2414;
  transform: rotate(-1deg);
}

.hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}

.hero__leaves {
  position: absolute;
  left: -18px;
  bottom: 10%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 0 rgba(45, 90, 39, 0.25));
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  padding: 14px;
  background: linear-gradient(160deg, #2b2b2b, #0f0f0f);
  border: 4px solid #1f1f1f;
  box-shadow: var(--shadow-3d), 0 30px 60px rgba(0, 0, 0, 0.25);
}

.phone-frame__bezel {
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-frame__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 9 / 18.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* HUD strip */
.hud-strip {
  position: relative;
  z-index: 2;
  margin-top: -0.5rem;
  padding: 0 1.25rem 2.5rem;
}

/* --- Screenshots: 2–6.png — focal row (center largest, sides step down), natural image ratio --- */
.shots {
  padding-top: 2.5rem;
}

.shots__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0 1.25rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.shots__collage {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shots__item {
  margin: 0;
  display: block;
  flex: 0 0 auto;
}

.shots__figure {
  margin: 0 auto;
  display: block;
  max-width: 100%;
  border-radius: calc(var(--radius-md) + 4px);
  overflow: hidden;
  border: 3px solid rgba(45, 90, 39, 0.22);
  background: linear-gradient(160deg, #fff 0%, #f4fff0 100%);
  box-shadow:
    0 10px 0 rgba(45, 90, 39, 0.1),
    0 22px 44px rgba(58, 120, 90, 0.12);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  transform-origin: center center;
}

.shots__item--t3 .shots__figure {
  border-radius: calc(var(--radius-md) + 8px);
  border-color: rgba(45, 90, 39, 0.28);
  box-shadow:
    0 12px 0 rgba(45, 90, 39, 0.12),
    0 28px 52px rgba(58, 120, 90, 0.18);
  z-index: 1;
  position: relative;
}

.shots__figure:hover {
  border-color: rgba(249, 160, 33, 0.65);
  box-shadow:
    0 14px 0 rgba(45, 90, 39, 0.07),
    0 30px 56px rgba(58, 120, 90, 0.2);
}

.shots__figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tier widths: t3 center (largest) > t2 inner > t1 outer (smallest) */
.shots__collage--focal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-inline: auto;
  gap: clamp(0.45rem, 1.4vw, 1rem);
  padding: 0.5rem 0.5rem 1.25rem;
  max-width: min(100%, 72rem);
}

.shots__item--t1 .shots__figure {
  width: clamp(7.5rem, 17vw, 12.75rem);
}

.shots__item--t2 .shots__figure {
  width: clamp(8.5rem, 19vw, 14.5rem);
}

.shots__item--t3 .shots__figure {
  width: clamp(9.75rem, 21vw, 16.25rem);
}

.shots__item:hover .shots__figure {
  transform: translateY(-6px);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .shots__item:hover .shots__figure {
    transform: none;
  }
}

/* Tablet: same focal row, slightly tighter gaps */
@media (min-width: 721px) and (max-width: 1024px) {
  .shots__collage--focal {
    gap: clamp(0.35rem, 1.2vw, 0.75rem);
    padding-inline: 0.35rem;
    max-width: min(100%, 64rem);
  }

  .shots__item--t1 .shots__figure {
    width: clamp(7rem, 18vw, 12rem);
  }

  .shots__item--t2 .shots__figure {
    width: clamp(8rem, 20vw, 13.5rem);
  }

  .shots__item--t3 .shots__figure {
    width: clamp(9rem, 22vw, 15rem);
  }
}

/* Phone: vertical stack, same small → large → small rhythm (no horizontal page scroll) */
@media (max-width: 720px) {
  .shots__stage {
    margin: 0;
    padding: 0.25rem 0 1rem;
  }

  .shots__collage--focal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.35rem 0.75rem 0.75rem;
    max-width: 100%;
  }

  .shots__item--t1 .shots__figure {
    width: min(13.25rem, 72vw);
  }

  .shots__item--t2 .shots__figure {
    width: min(14.25rem, 78vw);
  }

  .shots__item--t3 .shots__figure {
    width: min(15.5rem, 84vw);
  }

  .shots__figure {
    border-radius: 20px;
  }
}

.hud-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff4dc 0%, #f2e3c7 100%);
  border: 3px solid #caa574;
  box-shadow: inset 0 2px 0 #fffdfb, 0 8px 0 rgba(61, 36, 20, 0.12);
}

.hud-strip__bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 220px;
}

.hud-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(45, 90, 39, 0.12);
  border: 2px solid rgba(45, 90, 39, 0.2);
  overflow: hidden;
}

.hud-bar__fill {
  position: absolute;
  inset: 0;
  width: var(--p, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #58d36a, #2fbf55);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.hud-bar__label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--forest);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hud-strip__pill {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff8e7;
  background: linear-gradient(180deg, var(--barn) 0%, var(--barn-dark) 100%);
  border: 3px solid #5c0f16;
  box-shadow: 0 5px 0 #5c0f16, 0 12px 22px rgba(193, 18, 31, 0.25);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* --- Sections --- */
.section {
  padding: 3.25rem 1.25rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--forest);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65);
}

.section__title--light {
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f3fff0 100%);
  border: 3px solid rgba(45, 90, 39, 0.22);
  box-shadow: 0 8px 0 rgba(45, 90, 39, 0.1), 0 18px 36px rgba(58, 120, 90, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 160, 33, 0.65);
  box-shadow: 0 12px 0 rgba(45, 90, 39, 0.08), 0 26px 44px rgba(58, 120, 90, 0.12);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--forest);
  background: linear-gradient(180deg, var(--lime) 0%, var(--lime-dark) 100%);
  border: 3px solid var(--forest);
  box-shadow: 0 4px 0 var(--forest);
  margin-bottom: 0.85rem;
}

.feature-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest);
}

.feature-card__text {
  margin: 0;
  color: var(--muted);
}

/* Download */
.download {
  padding-bottom: 4rem;
}

.download__panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.75rem;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, #2f6b2a 0%, #1f4a1c 55%, #163c16 100%);
  border: 4px solid #0f2a12;
  box-shadow: 0 14px 0 rgba(15, 42, 18, 0.35), 0 28px 60px rgba(0, 0, 0, 0.2);
}

.download__lead {
  margin: 0 0 1.25rem;
  color: #e9ffe8;
  font-size: 1.05rem;
}

.download__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download__art {
  display: grid;
  place-items: center;
}

.download__art img {
  width: min(220px, 70%);
  filter: drop-shadow(0 16px 0 rgba(0, 0, 0, 0.18));
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #5a361c 0%, var(--wood-dark) 100%);
  color: #fdeecf;
  padding: 2.25rem 1.25rem 2.5rem;
  border-top: 6px solid #2a190e;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__brand img {
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.site-footer__tag {
  margin: 0.15rem 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: #fff6c2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__links a:focus-visible {
  outline: 3px solid #fff6c2;
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 12, 0.55);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f6fff4 100%);
  border: 4px solid var(--forest);
  box-shadow: 0 14px 0 rgba(45, 90, 39, 0.2), 0 28px 60px rgba(0, 0, 0, 0.25);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(45, 90, 39, 0.25);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--forest);
  transition: background 0.2s ease, transform 0.15s ease;
}

.modal__close:hover {
  background: #f1fff0;
}

.modal__close:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest);
}

.modal__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.modal__ok {
  width: 100%;
}

/* Mobile nav */
@media (max-width: 880px) {
  .hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 0;
    justify-self: center;
  }

  .hero__lead,
  .hero__note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta-row {
    justify-content: center;
  }

  .hero__badge {
    justify-content: center;
  }

  .hero__title-word--plank {
    transform: none;
  }

  .download__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download__cta-row {
    justify-content: center;
  }

  .download__art {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
    border-bottom: 4px solid #3d2414;
    transform-origin: top;
    transform: scaleY(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links__a {
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 1.75rem;
  }

  .btn--store {
    width: 100%;
  }
}
