:root {
  --brand: #b5502e;
  --brand-deep: #8f3c20;
  --ink: #3b1a0f;
  --muted: #7a5a4f;
  --cream: #fff5f5;
  --card: #ffffff;
  --line: rgba(181, 80, 46, 0.18);
  --glow: rgba(181, 80, 46, 0.22);
  --radius: 22px;
  --max: 1080px;
  color-scheme: only light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, #ffe4d6 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #fde9e4 0%, transparent 55%),
    var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); }

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

h1, h2, h3, .wordmark {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 40px; height: 40px; }
.wordmark { font-size: 28px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 72px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  margin: 20px 0 28px;
  max-width: 34em;
}
.hero-logo {
  justify-self: center;
  width: min(420px, 80vw);
  /* The width/height attributes reserve space; without this the phone
     layout keeps the 420px height and stretches the logo. */
  height: auto;
  filter: drop-shadow(0 30px 50px var(--glow));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.store small { display: block; font-weight: 400; opacity: 0.75; font-size: 12px; }
.store[aria-disabled="true"] { background: #5b3a2f; cursor: default; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store svg[data-brand="android"] { color: #3ddc84; }
.soon {
  font-size: 14px;
  color: var(--muted);
  width: 100%;
  margin-top: 4px;
}

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(32px, 4.4vw, 46px); text-align: center; }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 36em;
  margin: 12px auto 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(59, 26, 15, 0.06);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fde9e4;
  display: grid;
  place-items: center;
  font-size: 24px;
}

/* Shared restaurant / dish page */
.share {
  max-width: 560px;
  margin: 8px auto 64px;
}
.share .card { padding: 0; overflow: hidden; }
.share .photo {
  aspect-ratio: 4 / 3;
  background: #fde9e4 center / cover no-repeat;
}
.share .body { padding: 24px 26px 28px; }
.share h1 { font-size: clamp(32px, 7vw, 44px); }
/* .card .price, not .price: ".card p" would otherwise win and mute it. */
.card .price { color: var(--brand); font-weight: 700; font-size: 22px; margin: 8px 0 4px; }
.place { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; }
.resto-head { display: flex; gap: 16px; align-items: center; padding: 24px 26px 8px; }
.resto-head img {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--brand); object-fit: cover; flex: none;
}
.menu { list-style: none; margin: 0; padding: 8px 26px 20px; }
.menu li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.menu li:last-child { border-bottom: 0; }
.menu .thumb {
  width: 56px; height: 56px; border-radius: 12px; flex: none;
  background: #fde9e4 center / cover no-repeat;
}
.menu .name { flex: 1; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu .name:hover { color: var(--brand); text-decoration: underline; }
.menu .p { color: var(--brand); font-weight: 700; white-space: nowrap; }
.menu .out { color: var(--muted); font-weight: 400; }
.cta-box { text-align: center; padding: 24px 26px 28px; border-top: 1px solid var(--line); }
.cta-box p { color: var(--muted); margin: 0 0 16px; }
.cta-box .stores { justify-content: center; }

/* Restaurants page + homepage "Run a restaurant?" */
.nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.nav-link:hover { border-color: var(--brand); color: var(--brand); }
.invited {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fde9e4;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 15px;
}
.invited[hidden] { display: none; }
.join { margin-top: 8px; }
.join-center { text-align: center; margin-top: 32px; }
.wa-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px var(--glow);
}
.wa-button:hover { background: var(--brand-deep); }
.join-note { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.owner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.owner-cta h2 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 6px; }

/* Restaurants hero: the customer's pickup screen in a phone */
.phone-demo { margin: 0; justify-self: center; text-align: center; }
.phone {
  width: 270px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 42px;
  background: #2a1710;
  box-shadow: 0 30px 60px rgba(59, 26, 15, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone-screen {
  position: relative;
  border-radius: 32px;
  background: var(--cream);
  padding: 44px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.phone-screen::before { /* the notch */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #2a1710;
}
.phone-bar {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 26px;
}
.phone-back { font-size: 24px; line-height: 1; }
.demo-resto { margin: 0; font-weight: 600; font-size: 15px; }
.demo-amount { margin: 2px 0 16px; font-size: 13px; color: var(--muted); }
.demo-qr {
  background: #fff;
  border: 1.5px solid rgba(181, 80, 46, 0.35);
  border-radius: 14px;
  padding: 10px;
}
.demo-qr img { width: 170px; height: 170px; }
.demo-caption { margin: 14px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.phone-demo figcaption {
  margin: 18px auto 0;
  max-width: 300px;
  font-size: 14px;
  color: var(--muted);
}

/* Authenticator-style countdown, as in the app: empties over 30s and turns
   red for the last 5. */
@property --left {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
.pie {
  --pie: var(--brand);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from calc(360deg - var(--left)), var(--pie) var(--left), rgba(181, 80, 46, 0.15) 0);
  animation: pie-left 30s linear infinite, pie-colour 30s step-end infinite;
}
@keyframes pie-left { from { --left: 360deg; } to { --left: 0deg; } }
@keyframes pie-colour {
  0% { --pie: var(--brand); }
  83.34% { --pie: #ba1a1a; }
}
@media (prefers-reduced-motion: reduce) {
  .pie { animation: none; --left: 250deg; }
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 0 0 24px; gap: 12px; }
  .hero-logo { order: -1; width: min(240px, 60vw); }
  section { padding: 36px 0; }
  .lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .steps, .split { grid-template-columns: 1fr; }
  .owner-cta { flex-direction: column; text-align: center; }
}

/* Small phones: keep the two store buttons side by side in share pages. */
@media (max-width: 420px) {
  .store { padding: 10px 14px; gap: 8px; }
  .cta-box { padding: 20px 14px 24px; }
  .cta-box .stores { gap: 8px; }
}
