/* =====================================================================
   Restaurant Boom - marketing site
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink:      #0E0F12;
  --ink-2:    #4C505A;
  --ink-3:    #868B95;
  --paper:    #FFFFFF;
  --wash:     #FAF8F5;
  --wash-2:   #F3EFEA;
  --line:     #E9E5DF;
  --brand:    #E00818;
  --brand-dk: #B3050F;
  --brand-soft:#FDE8E9;
  --green:    #0E7C5A;
  --green-soft:#E4F3ED;
  --gold:     #F5B93B;

  --maxw: 1180px;
  --pad: 24px;
  --r: 20px;
  --r-lg: 28px;
  --sh: 0 2px 8px rgba(14,15,18,.05), 0 18px 40px -20px rgba(14,15,18,.22);
  --sh-lg: 0 30px 70px -30px rgba(14,15,18,.42);
  --f: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.032em; line-height: 1.06; }
h1 { font-size: clamp(40px, 6.4vw, 74px); }
h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -.024em; line-height: 1.2; }
p  { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 88px) 0; }
.sec--wash { background: var(--wash); }
.sec--ink  { background: var(--ink); color: #fff; }
.sec--ink h2, .sec--ink h3 { color: #fff; }

.lede { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); }
.sec--ink .lede { color: rgba(255,255,255,.7); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.tiny  { font-size: 13.5px; }
.center { text-align: center; }
.mx { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-dk); background: var(--brand-soft);
  padding: 8px 15px; border-radius: 999px;
}
.sec--ink .eyebrow { background: rgba(224,8,24,.16); color: #FF8A63; }

.head { max-width: 720px; }
.head--center { margin: 0 auto; text-align: center; }
.head .lede { margin-top: 18px; }
.head h2 + .lede { margin-top: 20px; }

/* ---------- buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; border: 2px solid transparent;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16.5px;
  line-height: 1; cursor: pointer; transition: transform .14s, box-shadow .2s, background .2s;
  box-shadow: 0 8px 22px -8px rgba(224,8,24,.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(224,8,24,.75); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--wash); box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--light:hover { background: #f2f2f2; box-shadow: none; }
.btn--sm { padding: 12px 20px; font-size: 15px; }
.btn--lg { padding: 20px 38px; font-size: 18px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 520px) {
  .btnrow .btn { flex: 1 1 100%; }
  .btn--lg { padding: 18px 28px; font-size: 17px; }
}

/* ---------- nav -------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 26px; height: 84px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; }
@media (max-width: 640px) { .logo img { height: 34px; } }
@media (max-width: 420px) { .logo img { height: 29px; } }
/* The footer mark sits quieter than the one in the nav. */
.foot .logo img { height: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__in { gap: 14px; height: 74px; } }
.nav .btn { white-space: nowrap; }
@media (max-width: 520px) {
  .nav .btn { padding: 11px 17px; font-size: 14.5px; }
  .logo { font-size: 17px; } }

/* ---------- hero ------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 0; }
.hero::before {
  content: ''; position: absolute; top: -320px; right: -180px;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(224,8,24,.13), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  position: relative;
}
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 24px; max-width: 520px; }
.hero .btnrow { margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: 14.5px; color: var(--ink-3); max-width: 460px; line-height: 1.5; }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { order: 2; }
}

/* ---------- phone frame ------------------------------------------------ */
.phone {
  position: relative; width: 100%; max-width: 320px;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2A2C33, #101116);
  box-shadow: var(--sh-lg);
}
.phone::after {
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.14);
}
.phone img { width: 100%; border-radius: 34px; display: block; }
.phone--sm { max-width: 250px; border-radius: 36px; padding: 9px; }
.phone--xs { max-width: 190px; border-radius: 28px; padding: 7px; }
.phone--xs img { border-radius: 22px; }
.phone--xs::after { width: 54px; height: 5px; top: 14px; }

/* ---------- the playable demo -------------------------------------------
   A phone-shaped frame with a live canvas in it. The scoreboard is plain
   DOM; only the stage is drawn. */
.demowrap { display: flex; flex-direction: column; align-items: center; }
.demowrap__note { color: rgba(255,255,255,.45); margin-top: 16px; }
/* Pointless advice on a phone. */
@media (max-width: 640px), (pointer: coarse) { .demowrap__note { display: none; } }

.phone--play { max-width: 340px; width: 100%; }

.demo {
  background: #fff; border-radius: 34px; overflow: hidden;
  display: flex; flex-direction: column;
}
.demo__bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 16px 18px 14px; background: #fff;
}
.demo__cell { display: grid; gap: 3px; justify-items: center; }
.demo__cell b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.demo__cell i {
  font-style: normal; font-weight: 800; font-size: 21px;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.demo__lives { display: flex; gap: 5px; height: 21px; align-items: center; }
.demo__lives i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.demo__lives i.on { background: var(--brand); }

.demo__screen { position: relative; background: var(--wash); }
#dCanvas { display: block; width: 100%; height: 288px; touch-action: none; }

.demo__card {
  position: absolute; inset: 0; z-index: 2;
  /* This card sits inside .sec--ink, which paints its text white. The card
     itself is white, so set the ink back explicitly for everything in it. */
  color: var(--ink);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 24px; gap: 8px;
}
.demo__card[hidden] { display: none !important; }
.demo__card h3 { font-size: 21px; letter-spacing: -.025em; }
.sec--ink .demo__card h3 { color: var(--ink); }
.demo__card p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); max-width: 260px; }
.demo__card .btn { margin-top: 8px; }
.demo__poster { display: block; width: 100%; max-width: 230px; height: 74px; border-radius: 12px; }
.demo__label { font-size: 12px; color: var(--ink-3); }
.demo__final {
  font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 2px;
}
.demo__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.btn--ghostlight { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghostlight:hover { background: var(--wash); box-shadow: none; }

.demo__goal { height: 6px; background: var(--line); }
.demo__goal span {
  display: block; height: 100%; width: 0%;
  background: var(--brand); transition: width .25s linear;
}

@media (max-width: 900px) {
  .demowrap { margin-top: 40px; }
}

/* The same game in three different kitchens. */
.skins {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 48px); margin-top: 40px;
}
.skins figure { margin: 0; text-align: center; }
.skins .phone { margin: 0 auto; }
.skins figcaption {
  margin-top: 16px; font-size: 14.5px; font-weight: 700; color: #fff;
}
.skins figcaption span {
  display: block; font-weight: 500; font-size: 13px;
  color: rgba(255,255,255,.55); margin-top: 3px;
}
.phone--sm img { border-radius: 28px; }
.phone--sm::after { width: 70px; height: 6px; top: 18px; }

.hero__art { display: flex; justify-content: center; position: relative; }
.hero__art .phone { max-width: 340px; }
.hero__badge {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 16px; box-shadow: var(--sh);
  display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 14.5px;
}
.hero__badge img, .hero__badge svg { width: 34px; height: 34px; }
.hero__badge--a { left: -88px; top: 8%; }
.hero__badge--b { right: -26px; bottom: 30%; }
@media (max-width: 1180px) { .hero__badge { display: none; } }

/* ---------- strip ------------------------------------------------------ */
.strip {
  margin-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.strip__in {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px;
  padding: 26px var(--pad);
}
.strip__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.strip__item svg { color: var(--green); flex: none; }

/* ---------- cards ------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
}
.card--wash { background: var(--wash); border-color: transparent; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card__n {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 20px;
}

/* ---------- steps ------------------------------------------------------ */
.step { display: grid; grid-template-columns: 1fr 270px; gap: 48px; align-items: center; }
.step + .step { margin-top: clamp(48px, 5vw, 72px); }
.step:nth-child(even) .step__art { order: -1; }
.step__art { display: flex; justify-content: center; }
.step__body h3 { margin-bottom: 14px; }
.step__body p { color: var(--ink-2); font-size: 17px; max-width: 460px; }
.step__k {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-dk); font-weight: 800; font-size: 16px;
}
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 30px; }
  .step:nth-child(even) .step__art { order: 0; }
}

/* ---------- earn grid --------------------------------------------------- */
.earn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .earn { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .earn { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .earn { grid-template-columns: 1fr; } }
.earn__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px 24px; transition: transform .16s, box-shadow .2s, border-color .2s;
}
.earn__item:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: transparent; }
.earn__item img { width: 54px; height: 54px; margin-bottom: 16px; }
.earn__item b { display: block; font-size: 16.5px; letter-spacing: -.015em; }
.earn__item span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

.earn__item--wide {
  grid-column: 2 / -1; display: flex; align-items: center; gap: 20px;
  background: var(--ink); border-color: transparent; color: #fff;
  padding: 20px 26px;
}
.earn__item--wide img { margin-bottom: 0; flex: none; }
.earn__item--wide .earn__wtx { flex: 1 1 auto; min-width: 0; }
.earn__item--wide b { color: #fff; }
.earn__item--wide span { color: rgba(255,255,255,.68); margin-top: 4px; }
.earn__item--wide .earn__go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 800; font-size: 15px; color: #fff;
  background: var(--brand); padding: 12px 20px; border-radius: 999px;
}
.earn__item--wide:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
@media (max-width: 1000px) { .earn__item--wide { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .earn__item--wide { flex-wrap: wrap; gap: 14px; }
  .earn__item--wide .earn__go { width: 100%; justify-content: center; }
}

.pullcard {
  margin-top: 26px; border-radius: var(--r-lg); padding: 34px;
  background: var(--green); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.pullcard h3 { color: #fff; }
.pullcard p { color: rgba(255,255,255,.82); margin-top: 10px; font-size: 16.5px; max-width: 640px; }
.pullcard__pts {
  font-size: 15px; font-weight: 800; background: rgba(255,255,255,.16);
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 760px) { .pullcard { grid-template-columns: 1fr; } }

/* ---------- gallery ----------------------------------------------------- */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 8px 0 24px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > figure { flex: none; width: 250px; margin: 0; }
.gallery figcaption { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.gallery figcaption b { color: var(--ink); display: block; font-size: 15.5px; margin-bottom: 3px; }

/* ---------- split ------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split--wide { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 900px) { .split--wide { grid-template-columns: 1fr; } }

.shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-lg); background: #fff;
}
.sec--ink .shot { border-color: rgba(255,255,255,.12); }

/* ---------- brand pair -------------------------------------------------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 640px; margin: 0 auto; }
.pair figure { margin: 0; text-align: center; }
.pair .phone { margin: 0 auto; }
.pair figcaption { margin-top: 18px; font-size: 15px; font-weight: 700; }
.pair figcaption span { display: block; font-weight: 500; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- list -------------------------------------------------------- */
.ticks { display: grid; gap: 15px; margin-top: 28px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; list-style: none; font-size: 16.5px; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 3px; color: var(--green); }
.sec--ink .ticks svg { color: #3DD9A0; }
ul.ticks { padding: 0; margin-left: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 17px;
  font-size: 14.5px; font-weight: 600; background: var(--paper);
}
.sec--ink .pill { border-color: rgba(255,255,255,.16); background: transparent; color: rgba(255,255,255,.86); }

/* ---------- faq --------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 19px; letter-spacing: -.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 16.5px; }

/* ---------- cta --------------------------------------------------------- */
.cta {
  border-radius: 36px; padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
  background: linear-gradient(140deg, #16181D 0%, #0B0C0F 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; right: -120px; top: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 40% 45%, rgba(224,8,24,.36), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { max-width: 620px; }
.cta .lede { color: rgba(255,255,255,.74); max-width: 560px; margin-top: 20px; }

/* ---------- footer ------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding: 44px 0; }
.foot__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot a { color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- reveal ------------------------------------------------------ */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* anchor offset for the sticky nav */
section[id] { scroll-margin-top: 92px; }

/* ---------------------------------------------------------------------
   ROSTER - the restaurants running the app.

   There are none yet, so the slots are honestly empty: a generic grey mark
   behind a dashed outline, which reads as reserved rather than as artwork
   that failed to load. No invented restaurant names or logos go here - a
   made-up customer is a lie whatever the type size, and the one real name
   this section will ever want is the visitor's own.
   --------------------------------------------------------------------- */
.roster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px;
  aspect-ratio: 5 / 4;
  padding: 16px 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: var(--paper);
  text-align: center;
}
.slot svg { color: #CFD2D8; }
.slot__label {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
/* The last slot is the only one a visitor can fill, so it is the only one
   that carries brand color. */
.slot--you {
  border-color: rgba(224,8,24,.38);
  background: var(--brand-soft);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.slot--you svg { color: var(--brand); }
.slot--you .slot__label { color: var(--brand-dk); }
.slot--you:hover { transform: translateY(-3px); box-shadow: var(--sh); }

.roster__note { margin-top: 22px; font-size: 15px; color: var(--ink-3); text-align: center; }
.roster__note a { color: var(--brand-dk); font-weight: 700; }

@media (max-width: 940px) { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) {
  .roster { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  /* Two columns of 5:4 tiles makes six slots taller than the phone. */
  .slot { aspect-ratio: 8 / 5; gap: 8px; }
  .slot svg { width: 28px; height: 28px; }
}
