:root {
  color-scheme: light;
  --cream: #fbf1df;
  --shop: #f2e8d3;
  --ticket: #ffe7b8;
  --forest: #41624d;
  --forest-dark: #2f4a39;
  --sage: #6e8b5e;
  --brown: #4a2e1f;
  --ink: #36322a;
  --muted: #6f7463;
  --caramel: #f2a63b;
  --berry: #c94b4b;
  --line: rgb(74 46 31 / 0.12);
  --card: #fffaf0;
  font-family: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at top right, rgb(242 166 59 / 0.18), transparent 40%),
    radial-gradient(ellipse at 0% 40%, rgb(110 139 94 / 0.14), transparent 40%),
    var(--shop);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.topbar, main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--brown);
}

/* logo_white.png is white on transparent; tint it to the café brown */
.brand img { width: 32px; height: auto; filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1300%) hue-rotate(338deg); }

.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 15px; font-weight: 700; }
.nav-links a:hover { color: var(--forest); }

h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; color: var(--brown); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding: 28px 0 88px;
}

.hero-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }

.hero-title-row img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 0 rgb(74 46 31 / 0.18), 0 18px 30px rgb(74 46 31 / 0.18);
}

.hero-title-row .eyebrow { margin: 0; }
.hero-title-row strong { display: block; font-family: "Fredoka", sans-serif; font-size: 26px; font-weight: 600; color: var(--brown); line-height: 1.1; }

.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 7.4vw, 86px);
  line-height: 0.98;
}

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

.hero-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }

.hero-meta li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ticket);
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}

.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.15s ease;
}

.primary-button {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 5px 0 var(--forest-dark);
}

.primary-button svg { width: 20px; height: 20px; fill: currentColor; }

.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); }

.secondary-button {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--brown);
}

.launch-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* Phone mock with a real capture, and Bean sprinting past it */
.phone {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 44px;
  background: var(--brown);
  box-shadow: 0 10px 0 #2e1c12, 0 40px 70px rgb(74 46 31 / 0.3);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.hero-visual { position: relative; }

.hero-visual .bean {
  position: absolute;
  left: -48px;
  bottom: 40px;
  width: 132px;
  height: 132px;
  border: 6px solid var(--cream);
  border-radius: 32px;
  box-shadow: 0 18px 30px rgb(74 46 31 / 0.3);
  animation: bob 2.4s ease-in-out infinite alternate;
}

.hero-visual .ticket {
  position: absolute;
  right: -28px;
  top: 70px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ticket);
  color: var(--brown);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  box-shadow: 0 10px 20px rgb(74 46 31 / 0.18);
  transform: rotate(4deg);
}

@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-12px) rotate(2deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-visual .bean { animation: none; }
  .primary-button, .secondary-button { transition: none; }
}

/* ─── Sections ─── */
.section { padding: 72px 0; border-top: 2px dashed var(--line); }

.section-heading { max-width: 660px; margin-bottom: 36px; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 5px 0 rgb(74 46 31 / 0.06);
}

.card h3 { margin: 0; font-size: 23px; }

.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.card-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--ticket);
  color: var(--brown);
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.card-highlight { border-color: rgb(65 98 77 / 0.35); background: #eef2e4; }

/* ─── Screenshot strip ─── */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 18px;
  margin: 0;
  padding: 4px 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.shots li { scroll-snap-align: start; }

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid var(--brown);
  border-radius: 26px;
  background: var(--brown);
  box-shadow: 0 6px 0 #2e1c12;
}

.shots figcaption {
  margin-top: 14px;
  color: var(--brown);
  font-family: "Fredoka", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.shots-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ─── Feature rows: text beside a capture ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse { grid-template-columns: 300px 1fr; }
.feature-row.reverse .feature-media { order: -1; }

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid var(--brown);
  border-radius: 30px;
  box-shadow: 0 8px 0 #2e1c12, 0 30px 50px rgb(74 46 31 / 0.2);
}

.feature-media figure { margin: 0; }
.feature-media figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.feature-title { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }

.check-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fbf1df' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat,
    var(--sage);
}

.check-list strong { color: var(--brown); }

/* ─── Café sizes ─── */
.sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: size;
}

.sizes li {
  position: relative;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 2px solid var(--line);
}

.sizes li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -15px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--brown);
  font-weight: 900;
}

.sizes span { display: block; color: var(--sage); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sizes strong { display: block; margin-top: 6px; font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 600; color: var(--brown); }

.sub-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 26px;
}

.sub-heading .count {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.equip-grid li { text-align: center; }

.equip-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #d6d6d6;
}

.equip-grid span { display: block; margin-top: 10px; color: var(--brown); font-size: 14px; font-weight: 800; line-height: 1.3; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--brown);
  font-weight: 800;
  font-size: 15px;
}

.chips.food { margin-top: 10px; }
.chips.food li { background: var(--ticket); border-color: transparent; }

/* ─── Team ─── */
.team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.staff-card { padding: 0; overflow: hidden; gap: 0; }

.staff-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #a8a59d;
}

.staff-card div { padding: 18px 22px 22px; }
.staff-card h3 { font-size: 24px; }
.staff-card p { margin-top: 4px; }

.roles-label { margin: 22px 0 10px; color: var(--muted); font-weight: 700; }

/* ─── Extras and decor ─── */
.split { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.split .card h3 { font-size: 26px; }

.palette-list, .grade-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.palette-list li, .grade-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--shop);
  color: var(--brown);
  font-weight: 800;
}

/* wall / accent / floor, from the palettes in the game's cafe-catalog.json */
.swatch { display: inline-flex; flex: none; }
.swatch i { width: 16px; height: 16px; margin-left: -4px; border: 2px solid var(--card); border-radius: 50%; }
.swatch i:first-child { margin-left: 0; }

.beans { color: var(--caramel); letter-spacing: 2px; }

/* ─── CTA ─── */
.cta {
  margin: 24px 0 96px;
  padding: 64px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgb(242 166 59 / 0.35), transparent 45%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream);
  text-align: center;
}

.cta-icon {
  width: 96px;
  height: 96px;
  border: 5px solid var(--cream);
  border-radius: 26px;
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.25);
}

.cta h2 { margin: 18px 0 0; color: var(--cream); font-size: clamp(34px, 5vw, 56px); }

.cta > p:not(.eyebrow) { margin: 14px auto 0; max-width: 540px; color: rgb(251 241 223 / 0.82); font-size: 17px; line-height: 1.7; }

.cta .eyebrow { margin-top: 18px; color: var(--ticket); }

.cta .actions { justify-content: center; }

.cta .primary-button { background: var(--cream); color: var(--forest-dark); box-shadow: 0 5px 0 #c9bea7; }

.cta .secondary-button { border-color: rgb(251 241 223 / 0.25); background: rgb(251 241 223 / 0.08); color: var(--cream); }

.footnote { margin: -64px 0 64px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 1020px) {
  .equip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }

  .hero-visual { max-width: 340px; margin: 0 auto; }

  .card-grid,
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .feature-row.reverse .feature-media { order: 0; }

  .feature-media { max-width: 300px; }
}

@media (max-width: 640px) {
  .topbar, main { width: calc(100% - 32px); }

  .nav-links { display: none; }

  .hero-visual .bean { left: -8px; width: 104px; height: 104px; }
  .hero-visual .ticket { right: -6px; }

  .card-grid,
  .split { grid-template-columns: 1fr; }

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

  .staff-card div { padding: 14px 16px 18px; }

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

  .sizes li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; margin: 0 0 0 -15px; }

  .equip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .shots { grid-auto-columns: 70%; }

  .cta { padding: 44px 24px; }

  .actions > * { width: 100%; }
}
