/* Expo KDS website: landing page and privacy policy. Same black/white look and fonts as the app. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111113;
  --surface-2: #18181b;
  --line: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #71717a;
  --green: #16a34a;
  --green-hi: #22c55e;
  /* Order-type header colors from the app */
  --dine: #7f1d1d;
  --take: #7e22ce;
  --dine2: #1d4ed8;
  --drive: #ea580c;
  --deliv: #16a34a;
  --wrap: 1120px;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(0 0 0 / .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #3f3f46; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; color: #000; }
.nav .btn:hover { color: #000; background: #e4e4e7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 "Poppins", sans-serif; text-decoration: none;
  background: #fff; color: #000; border: 1px solid #fff;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #e4e4e7; border-color: #e4e4e7; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: #3f3f46; }
.btn-ghost:hover { background: var(--surface-2); border-color: #52525b; }
.nav .btn { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* Hero */
.hero { padding: 88px 0 80px; text-align: center; overflow: hidden; }
.eyebrow { font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
  margin: 0 auto 22px; max-width: 14ch;
}
.hero .lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 40em; margin: 0 auto 34px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

.device {
  position: relative;
  margin: 64px auto 0;
  width: min(100%, 1040px);
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: clamp(16px, 2.4vw, 30px);
  background: linear-gradient(#2a2a2e, #141416);
  border: 1px solid #3f3f46;
  box-shadow: 0 40px 120px -20px rgb(34 197 94 / .16), 0 30px 60px -30px rgb(0 0 0 / .9);
}
.device img { border-radius: clamp(8px, 1.2vw, 14px); width: 100%; }
.device-fade { height: 1px; }

/* Color rail: the five order-type colors, like a row of ticket headers */
.rail { display: flex; height: 6px; }
.rail span { flex: 1; }
.rail span:nth-child(1) { background: var(--dine); }
.rail span:nth-child(2) { background: var(--take); }
.rail span:nth-child(3) { background: var(--dine2); }
.rail span:nth-child(4) { background: var(--drive); }
.rail span:nth-child(5) { background: var(--deliv); }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 28px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font: 400 44px/1 var(--display); letter-spacing: .01em; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* How it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.flow .tag { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font: 400 22px/1 var(--display); letter-spacing: .04em; color: #fff; }
.flow li:nth-child(1) .tag { background: var(--dine2); }
.flow li:nth-child(2) .tag { background: var(--take); }
.flow li:nth-child(3) .tag { background: var(--deliv); }
.flow .tag i { font-style: normal; background: #fff; color: #000; border-radius: 6px; padding: 4px 8px 2px; font-size: 18px; }
.flow .body { padding: 20px 18px 24px; }
.flow h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -15px; width: 10px; height: 10px; z-index: 2;
  border-top: 2px solid #52525b; border-right: 2px solid #52525b; transform: translateY(-50%) rotate(45deg);
}
.flow li { overflow: visible; }
.flow .tag { border-radius: 15px 15px 0 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature { background: var(--bg); padding: 28px 24px 30px; }
.feature svg { width: 26px; height: 26px; stroke: var(--green-hi); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Keys */
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center;
  font: 500 12.5px/1.5 "Poppins", sans-serif; color: var(--text);
  background: var(--surface-2); border: 1px solid #3f3f46; border-bottom-width: 2px; border-radius: 6px;
}

/* Get it */
.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.get-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; }
.get-card .label { font: 400 18px/1 var(--display); letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.get-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.get-card p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.get-card ul { margin: 0 0 24px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.get-card li { margin: 4px 0; }
.get-card .btn { margin-top: auto; align-self: flex-start; }

/* Requirements */
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 6.9-6.9 1.7 1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.7-1.7 3.3 3.3 6.9-6.9 1.7 1.7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist b { font-weight: 600; display: block; }
.checklist span { color: var(--muted); font-size: 14.5px; }

/* Contact band */
.band { padding: 0 0 104px; }
.band .inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.02em; font-weight: 600; }
.band p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--faint); font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .disclaimer { flex-basis: 100%; margin: 6px 0 0; }

/* Privacy policy (long-form) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; line-height: 1.1; font-weight: 600; margin: 0 0 10px; }
.doc .meta { color: var(--faint); font-size: 14px; margin: 0 0 36px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 22px 24px; margin: 0 0 44px; }
.doc .summary p { margin: 0; color: var(--text); }
.doc .summary p + p { margin-top: 10px; color: var(--muted); }
.doc h2 { font-size: 22px; letter-spacing: -.015em; font-weight: 600; margin: 48px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { color: #d4d4d8; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--green-hi); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 500; font-size: 13px; }
.doc td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.doc td { color: #d4d4d8; }
.doc .toc { columns: 2; column-gap: 32px; padding-left: 20px; margin: 0 0 8px; font-size: 15px; }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--text); text-decoration: underline; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding: 80px 0; }
.notfound b { font: 400 120px/1 var(--display); }
.notfound p { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .get { grid-template-columns: 1fr; }
  .get-card .btn { align-self: stretch; }
  .reqs { grid-template-columns: 1fr; gap: 24px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow li:not(:last-child)::after { top: auto; bottom: -20px; right: 50%; transform: translateX(50%) rotate(135deg); }
  section { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .band .inner { padding: 32px 24px; }
  .doc .toc { columns: 1; }
  .doc td:first-child { white-space: normal; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .facts b { font-size: 36px; }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.doc code { font: 500 .88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--text); }
section.tight { padding-top: 0; }
.section-head.flush { margin: 0; }
