/* Master-palette hex values only (6-digit, from art-spec.json) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #f5f1e8;
  color: #23140b;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: #f5f1e8;
  color: #23140b;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
canvas:focus-visible {
  outline: 3px solid #2c4a7a;
  outline-offset: 3px;
}

/* Header */
.site-header {
  background-color: #efe0c2;
  border-bottom: 3px solid #23140b;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-badge {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #23140b;
}

.preview-pill {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f7d969;
  color: #23140b;
  border: 2px solid #23140b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hero */
.hero {
  padding: 36px 0 44px;
  border-bottom: 3px solid #23140b;
  background-color: #efe0b8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.stage-card {
  background-color: #ebe2d5;
  border: 3px solid #23140b;
  box-shadow: 6px 6px 0 #23140b;
  padding: 16px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.stage-sky {
  background-color: #dff1fa;
  border: 3px solid #23140b;
  border-bottom: none;
  padding: 20px 12px 4px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 188px;
}

.pet-canvas {
  display: block;
  width: 160px;
  height: 160px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.stage-ground {
  height: 18px;
  background-color: #97c25a;
  border: 3px solid #23140b;
  box-shadow: inset 0 5px 0 #c6e08a;
}

.stage-caption {
  margin: 10px 0 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #472713;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #633616;
}

h1 {
  margin: 0 0 12px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  color: #23140b;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #3d2210;
  max-width: 44ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.play-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #6a9a3f;
  color: #f5f1e8;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 3px solid #23140b;
  box-shadow: 4px 4px 0 #23140b;
  transition: transform 120ms ease, background-color 120ms ease;
}

.play-button:hover {
  background-color: #46702f;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #23140b;
}

.play-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #23140b;
}

.cta-note {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a4540;
}

/* Sections */
.section {
  padding: 44px 0;
}

.how-it-works {
  background-color: #f5f1e8;
  border-bottom: 3px solid #23140b;
}

.section-header {
  margin-bottom: 24px;
}

h2 {
  margin: 0 0 6px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 1.65rem;
  color: #23140b;
}

.section-sub {
  margin: 0;
  font-size: 1rem;
  color: #472713;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background-color: #efe0c2;
  border: 3px solid #23140b;
  box-shadow: 4px 4px 0 #23140b;
  padding: 18px;
}

.card-step {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  background-color: #eab263;
  color: #23140b;
  border: 2px solid #23140b;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #23140b;
}

.feature-card p {
  margin: 0;
  color: #3d2210;
  font-size: 0.95rem;
}

.needs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.need-chip {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: #f5f1e8;
  color: #23140b;
  border: 2px solid #23140b;
}

/* Promises */
.promises {
  background-color: #ebe2d5;
  border-bottom: 3px solid #23140b;
}

.promises-panel {
  background-color: #f5f1e8;
  border: 3px solid #23140b;
  box-shadow: 6px 6px 0 #23140b;
  padding: 24px 18px;
}

.promise-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background-color: #efe0c2;
  border: 2px solid #23140b;
}

.promise-Check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-color: #97c25a;
  color: #23140b;
  border: 2px solid #23140b;
  font-weight: 800;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}

.promise-item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: #23140b;
}

.promise-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #3d2210;
}

.bottom-cta {
  text-align: center;
  padding-top: 4px;
}

/* Footer */
.site-footer {
  background-color: #efe0c2;
  padding: 20px 0;
}

.footer-inner {
  text-align: center;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #472713;
}

@media (min-width: 680px) {
  .hero-grid {
    grid-template-columns: 300px 1fr;
    gap: 36px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .promises-panel {
    padding: 32px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-button {
    transition: none;
  }

  .play-button:hover,
  .play-button:active {
    transform: none;
  }
}
