/* ============================================================
   WE HAVE GOATS! — site styles
   Palette drawn from the game: logo red, meadow green,
   box-art sky blue, card yellow, warm cream.
   ============================================================ */

:root {
  --red: #d94a3d;
  --red-dark: #b93a2f;
  --ink: #26221e;
  --ink-soft: #55504a;
  --sky: #1d4f9c;
  --sky-deep: #123b7a;
  --grass: #5da838;
  --yellow: #f6d43c;
  --cream: #fdf8ee;
  --white: #ffffff;
  --line: #eadfca;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 34, 30, .10);
  --shadow-lg: 0 18px 50px rgba(18, 59, 122, .18);
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .95rem;
}
.announce strong { color: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .55rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(253, 248, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand-logo { height: 52px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; gap: 1.3rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red); }
.header-cta { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: .62rem 1.5rem;
  font-size: 1rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(217, 74, 61, .35);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-light { background: #fff; color: var(--sky-deep); }
.btn-lg { padding: .85rem 2rem; font-size: 1.12rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(93, 168, 56, .18), transparent 60%),
    linear-gradient(180deg, #eaf2ff 0%, var(--cream) 78%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}
.eyebrow {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--grass); font-size: .85rem; margin: 0 0 .8rem;
}
.hero h1 .accent { color: var(--red); }
.lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 34rem; }
.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding: 0; margin: 1.4rem 0 1.8rem;
}
.hero-stats li { font-size: .85rem; color: var(--ink-soft); line-height: 1.25; }
.hero-stats li span {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--ink);
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  padding: 0; margin: 1.3rem 0 0;
  font-size: .88rem; font-weight: 700; color: var(--ink-soft);
}
.hero-art { margin: 0; }
.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

/* ---------- sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- shop ---------- */
.shop { background: var(--white); }
.cards {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-featured { outline: 3px solid var(--yellow); outline-offset: -3px; }
.ribbon {
  position: absolute; top: 14px; right: -34px; z-index: 2;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  padding: .25rem 2.6rem; transform: rotate(35deg);
}
.card-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* bundle card: two tilted "snapshots" on box-art blue */
.bundle-media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 4%;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, .16), transparent 55%),
    linear-gradient(135deg, #2c66c4 0%, var(--sky-deep) 75%);
}
.polaroid {
  margin: 0;
  width: 42%;
  background: #fff;
  padding: 4% 4% 2%;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.polaroid img { aspect-ratio: 1 / 1; height: auto; border-radius: 3px; }
.polaroid-frame { overflow: hidden; border-radius: 3px; }
.polaroid-mat { transform: rotate(-5deg); }
.polaroid-mat img { object-position: 50% 45%; transform: scale(1.28); }
.polaroid-tiles { transform: rotate(4deg); }
.polaroid-tiles img { object-position: 50% 80%; }
.polaroid figcaption {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.62rem, 1.4vw, .8rem);
  color: var(--ink); text-align: center;
  padding: .35em 0 .45em; line-height: 1.1;
}
.plus-badge {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  transform: rotate(-6deg);
}
.card-body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-tag { color: var(--grass); font-weight: 800; font-size: .9rem; margin: -0.3rem 0 .6rem; }
.card-list { padding-left: 1.1rem; margin: 0 0 1rem; color: var(--ink-soft); font-size: .95rem; }
.card-list li { margin-bottom: .3rem; }
.price-row { display: flex; align-items: baseline; gap: .6rem; margin: auto 0 .9rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.compare { color: var(--ink-soft); font-size: 1.05rem; }
.save-pill {
  background: var(--grass); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  border-radius: 999px; padding: .12rem .7rem;
}
.btn-buy { width: 100%; }
.shop-note {
  max-width: 720px; margin: 2.2rem auto 0; text-align: center;
  color: var(--ink-soft); font-size: .92rem;
}

/* ---------- how to play ---------- */
.how { background: var(--sky-deep); color: #fff; }
.how .section-head h2 { color: #fff; }
.how .section-head p { color: #cfdcf5; }
.steps {
  list-style: none; counter-reset: step;
  max-width: 1180px; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.steps li {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: .8rem;
}
.steps h3 { color: #fff; font-size: 1.15rem; }
.steps p { color: #cfdcf5; font-size: .95rem; margin: 0; }

/* ---------- gallery ---------- */
.gallery {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .gallery-3 { grid-template-columns: 1fr; max-width: 560px; }
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}
.gallery figcaption {
  font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; text-align: center;
}

/* ---------- about ---------- */
.about { background: var(--white); }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about-copy p { color: var(--ink-soft); font-size: 1.08rem; }
.about-sign { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- faq ---------- */
.faq-grid { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.3rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  list-style-position: outside;
}
.faq details p { color: var(--ink-soft); margin: .7rem 0 0; }

/* ---------- final cta ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #ffe3df; margin-top: 0; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  background: var(--cream);
}
.footer-logo { height: 60px; width: auto; margin: 0 auto .6rem; mix-blend-mode: multiply; }
.site-footer .fine { color: var(--ink-soft); font-size: .82rem; }

/* ---------- order dialog ---------- */
dialog {
  border: none; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 26rem; width: calc(100vw - 2.5rem);
  padding: 0;
}
dialog::backdrop { background: rgba(38, 34, 30, .5); }
.order-box { padding: 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.order-box h3 { margin-bottom: 0; }
.order-box p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .5rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .site-nav { display: none; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
