:root {
  --bg: #f7f1e8;
  --bg-elevated: #fffdf9;
  --ink: #1d3557;
  --ink-soft: #2d4a6e;
  --muted: #5c6b7d;
  --rule: #e4d9c8;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --pop: #c45c26;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(29, 53, 87, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  hyphens: none;
  -webkit-hyphens: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #1d4ed8;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

.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;
}

/* Headings & display lines: one sans stack + balanced wrapping */
h1,
h2,
h3,
.hero-badge,
.section-label,
.tagline-game {
  font-family: var(--font-sans);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 20px;
  background: rgba(247, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-face-wrap {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.brand-face {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  row-gap: 8px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.hero {
  padding: 36px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
}

.hero-lede {
  max-width: 62ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.pillar {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px dashed var(--rule);
  background: var(--bg-elevated);
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.section {
  margin-bottom: 64px;
}

.section-kick {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.section-kick .section-label {
  margin: 0;
}

.section-puzzle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 46px;
  height: 46px;
  gap: 4px;
  flex-shrink: 0;
}

.section-puzzle span {
  display: block;
  border-radius: 6px;
  background: rgba(29, 53, 87, 0.06);
  border: 1px solid rgba(29, 53, 87, 0.12);
}

/* Two halves of one “whole”: consulting lifts the insight piece; play lifts the joy piece */
.section-puzzle--consult span:nth-child(1) {
  background: linear-gradient(145deg, var(--accent-soft), rgba(37, 99, 235, 0.22));
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.section-puzzle--play span:nth-child(4) {
  background: linear-gradient(145deg, rgba(196, 92, 38, 0.14), rgba(196, 92, 38, 0.26));
  border-color: rgba(196, 92, 38, 0.55);
  box-shadow: inset 0 0 0 1px rgba(196, 92, 38, 0.22);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pop);
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 22px;
  text-wrap: pretty;
}

/* Align section headings / intros with inner text of cards below (card border + padding) */
.section--align-card > .section-kick,
.section--align-card > h2,
.section--align-card > .section-intro,
.section--align-card > .game-title-row,
.section--align-card > .tagline-game {
  padding-left: calc(22px + 1px);
}

@media (min-width: 640px) {
  .section--align-card > .section-kick,
  .section--align-card > h2,
  .section--align-card > .section-intro,
  .section--align-card > .game-title-row,
  .section--align-card > .tagline-game {
    padding-left: calc(28px + 1px);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px 28px;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .card {
    padding: 28px 28px 32px;
  }
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 24px 0 10px;
}

.card h3:first-child {
  margin-top: 0;
}

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

.list-check li {
  position: relative;
  padding-left: 1.35em;
  margin-bottom: 10px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.list-check li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--pop);
  font-weight: 700;
}

.game-title-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 12px;
}

.game-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

.game-title-row h2 {
  margin: 0;
}

.game-title-row .game-icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  object-fit: cover;
}

@media (max-width: 520px) {
  .game-title-row {
    flex-wrap: wrap;
  }

  .game-title-row .game-icon {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    margin-left: auto;
  }
}

.tagline-game {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 18px;
  line-height: 1.35;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.feature-tile {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(29, 53, 87, 0.04);
  border: 1px solid var(--rule);
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.feature-tile strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.feature-tile--worlds .worlds-lead {
  margin: 0 0 14px;
  text-wrap: pretty;
}

.worlds-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 14px 16px;
  margin-top: 4px;
  border-radius: 12px;
  background: rgba(29, 53, 87, 0.06);
  border: 1px solid var(--rule);
}

.worlds-stat__num {
  font-size: clamp(2.1rem, 5.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  flex-shrink: 0;
}

.worlds-stat__copy {
  margin: 0;
  flex: 1 1 14rem;
  min-width: min(100%, 200px);
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
  text-wrap: pretty;
  padding-top: 0.2em;
}

.pullquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
  color: var(--ink);
  text-wrap: pretty;
}

/* Screenshots + stores side by side */
.game-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: 20px;
}

.game-showcase__shots {
  min-width: 0;
}

.game-showcase__stores {
  min-width: 0;
}

.carousel-wrap {
  margin: 0;
  position: relative;
  max-width: min(100%, 340px);
  margin-left: auto;
  margin-right: auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 9 / 18;
  max-height: min(56vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  background: linear-gradient(180deg, #eef2f7, var(--bg-elevated));
}

.carousel-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(29, 53, 87, 0.12));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: background 0.15s, transform 0.15s;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-btn--prev {
  left: 6px;
}

.carousel-btn--next {
  right: 6px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--rule);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.carousel-dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.15);
}

.showcase-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}

.store-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.store-block {
  max-width: 100%;
}

.store-badge-row {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Same outer box for both stores — shared width/height so left & right edges line up */
.store-badge-frame {
  width: 168px;
  max-width: 100%;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.store-badge-frame a,
.store-badge-frame .badge-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
}

.store-badge-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.store-block--soon .badge-wrap {
  cursor: not-allowed;
}

.store-block--soon .badge-img--apple {
  filter: grayscale(1) opacity(0.45);
  pointer-events: none;
}

.store-caption {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 36ch;
  text-wrap: pretty;
}

.store-caption strong {
  color: var(--ink);
}

.game-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.game-legal h3 {
  margin-top: 0;
  font-size: 1rem;
}

.game-legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}

.game-legal__nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.game-legal__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-grid input,
.form-grid textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: #152a45;
  transform: translateY(-1px);
}

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

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 12px;
  text-wrap: pretty;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.card > p {
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .game-showcase {
    grid-template-columns: 1fr;
  }

  .carousel-wrap {
    max-width: min(100%, 300px);
  }

  .game-showcase__stores {
    padding-bottom: 4px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand-face-wrap {
    width: 60px;
    height: 60px;
  }

  .brand-face {
    width: 56px;
    height: 56px;
  }

  .carousel-slide {
    max-height: min(50vh, 400px);
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .store-badge-frame {
    width: 156px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .carousel-wrap {
    max-width: min(100%, 300px);
  }
}

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

  .carousel-track {
    transition: none;
  }
}
