@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --green: #357a5e;
  --green-dark: #2b654d;
  --green-tint: #e3f1ea;
  --doodle: #9abdaf;
  --red: #e8432f;
  --red-dark: #c93522;
  --ink: #12202a;
  --body: #3a4a54;
  --muted: #5a6670;
  --line: #dde2e6;
  --paper: #ffffff;
  --mist: #f6f8f9;
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-dark);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  padding: 72px 0 88px;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-logo { width: 150px; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p.lede {
  font-size: 19px;
  max-width: 30ch;
  margin: 0 0 28px;
  opacity: 0.92;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stats strong { display: block; font-size: 30px; line-height: 1.1; }
.stats span { font-size: 14px; opacity: 0.8; }

.phones {
  position: relative;
  height: 600px;
}
.phones img {
  position: absolute;
  width: 300px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25));
}
.phones .phone-back { right: 0; top: 0; }
.phones .phone-front { right: 210px; top: 60px; }

.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

/* Sections */

section { padding: 96px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.section-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-intro p { color: var(--body); font-size: 18px; margin: 0; }

/* Screens gallery */

.gallery-wrap { position: relative; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 250px;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 24px 28px;
  margin: 0 -24px;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(18, 32, 42, 0.12);
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  box-shadow: 0 6px 20px rgba(18, 32, 42, 0.18);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.2s ease;
}
.gallery-arrow svg { width: 22px; height: 22px; }
.gallery-arrow:hover { transform: scale(1.06); }
.gallery-arrow:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.gallery-arrow.prev { left: -12px; }
.gallery-arrow.next { right: -12px; }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 20px; margin: 0 0 8px; }
.feature p { color: var(--body); margin: 0; }

/* Yum band */

.band {
  background: var(--green-tint);
}
.band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.band p { color: var(--body); font-size: 18px; }
.band img {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(18, 32, 42, 0.18);
}

/* Spots */

.spots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.spot {
  border-radius: 16px;
  padding: 20px 18px;
  min-height: 110px;
  background: var(--green-tint);
  border: 1px solid #cfe3d8;
}
.spot:nth-child(4n + 1),
.spot:nth-child(4n + 4) { background: var(--green); color: #fff; border-color: var(--green); }
.spot .pin { color: var(--red); font-size: 18px; }
.spot strong { display: block; margin-top: 8px; font-size: 16px; line-height: 1.25; }
.spot span { font-size: 14px; opacity: 0.8; }

/* Download CTA */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.cta .wrap { position: relative; }
.cta img.cta-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cta p { opacity: 0.92; font-size: 18px; max-width: 36ch; margin: 0 auto 32px; }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: left;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store[aria-disabled="true"] { cursor: default; opacity: 0.92; }
.soon { margin-top: 18px; font-size: 14px; opacity: 0.8; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #c9d1d6;
  font-size: 14px;
  padding: 32px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

/* Document pages */

.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--body); font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* Responsive */

@media (max-width: 960px) {
  .hero .wrap, .band .wrap, .section-intro { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 480px; margin: 0 auto; width: 100%; }
  .phones img { width: 250px; }
  .phones .phone-front { right: auto; left: 0; top: 50px; }
  .features { grid-template-columns: 1fr 1fr; }
  .spots { grid-template-columns: repeat(3, 1fr); }
  .doodle { display: none; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .phones { height: 440px; }
  .gallery { grid-auto-columns: 72%; gap: 14px; }
  .gallery-arrow { width: 40px; height: 40px; margin-top: -20px; }
  .gallery-arrow.prev { left: -6px; }
  .gallery-arrow.next { right: -6px; }
  .phones img { width: 210px; }
  .stats { gap: 28px; }
  .features { grid-template-columns: 1fr; }
  .spots { grid-template-columns: 1fr 1fr; }
}

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