:root {
  color-scheme: light;
  --paper: #f8f3df;
  --cream: #fffdf5;
  --meadow: #eef4dc;
  --meadow-deep: #d8e7b8;
  --ink: #233f2c;
  --ink-soft: #3b513d;
  --muted: #4e614d;
  --green: #2c623d;
  --green-bright: #4b793f;
  --line: #d9dec8;
  --line-strong: #c5cfb0;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

html, body {
  margin: 0;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #a14b21;
  outline-offset: 4px;
}

.wrap {
  width: min(1140px, calc(100% - 64px));
  margin-inline: auto;
}

/* Shared subpage header (for /about, /guide, /tos) */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 900;
  font-size: 23px;
  text-decoration: none;
  letter-spacing: -0.8px;
}

.brand img {
  display: block;
  border-radius: 12px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.header-nav a,
.support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.header-nav a:hover {
  background: var(--meadow);
}

.header-nav a.nav-arcade {
  color: var(--green);
  font-weight: 850;
}

/* ==========================================================================
   Above-the-Fold Hero: 1:1 Match with the 1200x630 OpenGraph Card
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 40px;
  padding-block: 30px 38px;
}

.intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Top-left Gauri Icon + HerdJam + Pill Lockup */
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  margin-bottom: 26px;
}

.hero-brand-icon {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(20, 42, 44, 0.16);
}

.hero-brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-brand-name {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.9px;
  line-height: 1;
  color: var(--ink);
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: #e6ebd3;
  font: 800 14.5px/1.2 ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.4px;
  color: var(--green);
}

.hero h1 {
  font-size: clamp(54px, 6.2vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--green-bright);
}

.hero .description {
  font: 700 clamp(20px, 2.2vw, 25px)/1.44 ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 520px;
}

/* Three clean single-line buttons matching the OpenGraph card: App Store | Google Play | /web */
.stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  background: var(--ink);
  color: #fff9e8;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Hide multi-line caption inside hero buttons so they match the clean OpenGraph card pills */
.hero .store small {
  display: none;
}

.store strong {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.2px;
}

.store.ios,
.store.android {
  background: var(--ink);
  color: #fff9e8;
}

.store.web-play {
  min-width: 146px;
  background: var(--green);
  color: #fff9e8;
}

.store:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(35, 63, 44, 0.22);
}

/* Right-side Rounded Meadow Stage with Tall Board + Overlapping Square Gauri Inset */
.art {
  position: relative;
  margin: 0;
  padding: 20px 26px 20px 26px;
  background: var(--meadow-deep);
  border: 3px solid var(--line-strong);
  border-radius: 44px;
  overflow: hidden;
  isolation: isolate;
  min-height: 574px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun {
  position: absolute;
  width: 130px;
  height: 130px;
  background: #f3cb5e;
  border-radius: 50%;
  top: 28px;
  right: 30px;
  z-index: -1;
}

.stage-canvas {
  position: relative;
  width: 100%;
  max-width: 492px;
  min-height: 534px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.board-frame {
  width: 300px;
  border-radius: 28px;
  padding: 7px;
  background: var(--paper);
  border: 2px solid rgba(35, 63, 44, 0.22);
  box-shadow: 0 14px 32px rgba(35, 63, 44, 0.16);
  margin-right: 12px;
}

.board-frame picture {
  display: block;
  border-radius: 21px;
  overflow: hidden;
}

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

.gauri-inset {
  position: absolute;
  left: 6px;
  bottom: 34px;
  width: 218px;
  height: 218px;
  padding: 6px;
  border-radius: 28px;
  background: var(--paper);
  border: 2px solid rgba(35, 63, 44, 0.22);
  box-shadow: 0 14px 30px rgba(35, 63, 44, 0.18);
  z-index: 2;
}

.gauri-inset-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
}

/* ==========================================================================
   Organized Underneath the Hero Fold
   ========================================================================== */
.subhero-bar {
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.subhero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  font: 700 12px/1.3 system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
}

.subhero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.subhero-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 9px;
  font: 750 13.5px/1.3 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  text-decoration: none;
}

.subhero-nav a:hover {
  background: var(--meadow);
}

.subhero-nav a.nav-arcade {
  background: var(--meadow);
  color: var(--green);
  border: 1px solid var(--line-strong);
}

.release-note {
  width: 100%;
  font: 400 12.5px/1.5 system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--muted);
}

/* 3-Step How to Play */
.how-section {
  padding-block: 28px 24px;
  border-block: 1px solid var(--line);
}

.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.how > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-width: 0;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 12px;
  font-weight: 800;
  background: #e6ebd3;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.step::before {
  content: attr(data-step);
}

.how p {
  margin: 0;
  font: 400 14.5px/1.62 system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
}

.how strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 2px;
}

.how-note {
  margin: 18px 0 0;
  font: 500 13px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--muted);
}

/* 2-Card Row: /web & Sanctuary Guide */
.destinations {
  margin-block: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.surface-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  min-width: 0;
}

.surface-card.arcade-card {
  background: #fff8e7;
  border: 1.5px solid var(--line-strong);
}

.surface-card.guide-card {
  background: var(--meadow);
  border: 1.5px solid var(--line-strong);
}

.card-kicker {
  display: inline-block;
  font: 800 10.5px/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.surface-card h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  line-height: 1.22;
}

.surface-card p {
  margin: 0;
  font: 400 14px/1.6 system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff9e8;
  text-decoration: none;
}

.card-cta::after {
  content: "\00a0→";
}

.card-cta.green {
  background: var(--green);
  box-shadow: 0 3px 0 #163e29;
}

.card-cta.ink {
  background: var(--ink);
  box-shadow: 0 3px 0 #122116;
}

/* Optional Gated Social Proof */
.social-proof {
  margin-block: 0 32px;
  padding: 22px 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.social-proof-count {
  margin: 0 0 12px;
  font: 600 14.5px/1.5 system-ui, -apple-system, sans-serif;
}

.social-proof-count:last-child {
  margin-bottom: 0;
}

.social-proof-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.social-proof-quotes blockquote {
  margin: 0;
  padding: 14px;
  background: var(--meadow);
  border-radius: 12px;
}

/* Compact Founder Strip */
.founder-strip {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.founder-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 680px;
  min-width: 0;
}

.founder-emblem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.founder-monogram-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff9e8;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
}

.founder-monogram-mark::before {
  content: attr(data-mark);
  font-size: 18px;
}

.founder-monogram-mark::after {
  content: attr(data-sub);
  font: 700 8px/1.1 system-ui, -apple-system, sans-serif;
  letter-spacing: 0.8px;
  opacity: 0.85;
  margin-top: 2px;
}

.founder-emblem-cow {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #142a2c;
  border: 2px solid var(--paper);
}

.founder-text {
  min-width: 0;
}

.founder-text h2 {
  font-size: 15.5px;
  font-weight: 850;
  margin: 0 0 4px;
  line-height: 1.35;
}

.founder-text p {
  margin: 0;
  font: 400 14px/1.6 system-ui, -apple-system, sans-serif;
  color: var(--muted);
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.founder-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 750 14px/1.4 system-ui, -apple-system, sans-serif;
  color: var(--green);
}

.founder-links a.founder-story::after {
  content: "\00a0→";
  text-decoration: none;
}

/* Mobile Store Availability */
.availability-section {
  padding-block: 24px 30px;
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
}

.availability {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.availability h2 {
  font-size: 15.5px;
  font-weight: 850;
  margin: 0 0 6px;
}

.availability p {
  font: 400 13.5px/1.68 system-ui, -apple-system, sans-serif;
  margin: 0;
  max-width: 440px;
  color: var(--muted);
}

.availability > div:target {
  outline: 2px solid #73995c;
  outline-offset: 8px;
  border-radius: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font: 400 12.5px/1.6 system-ui, -apple-system, sans-serif;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
}

/* Responsive Tablet & 375px Mobile */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 22px 32px;
  }

  .art {
    max-width: 540px;
    width: 100%;
    justify-self: center;
  }

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

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .hero-brand {
    gap: 14px;
    margin-bottom: 20px;
  }

  .hero-brand-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .hero-brand-name {
    font-size: 30px;
  }

  .hero-brand-pill {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero h1 {
    font-size: clamp(44px, 11.5vw, 62px);
    margin-bottom: 18px;
  }

  .hero .description {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .how,
  .availability {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .destinations {
    margin-block: 28px;
  }

  .surface-card {
    padding: 22px 20px;
  }

  .founder-main {
    flex-direction: column;
    gap: 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .store,
  .store.web-play {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
    height: 50px;
  }

  .store strong {
    font-size: 15px;
  }

  .art {
    padding: 18px 14px;
    border-radius: 32px;
    min-height: 440px;
  }

  .stage-canvas {
    min-height: 410px;
  }

  .board-frame {
    width: 232px;
    margin-right: 0;
  }

  .gauri-inset {
    width: 156px;
    height: 156px;
    left: 0;
    bottom: 20px;
    border-radius: 22px;
  }

  .gauri-inset-img {
    border-radius: 16px;
  }
}
