:root {
  --canvas: #f8f4ec;
  --card: #ffffff;
  --ink: #1d1d1d;
  --primary: #f04b28;
  /* darker orange for small text / fills: >=4.5:1 on cream and white (WCAG AA) */
  --primary-deep: #c23818;
  --primary-soft: #fdebe5;
  --line: #d8d4cd;
  /* 4.7:1 on cream (WCAG AA for body text) */
  --muted: #6b6965;
  --radius: 16px;
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; }
.accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: #d63f1e; /* 4.6:1 with white label (AA) */
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 75, 40, 0.3);
}
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 16px 36px; font-size: 18px; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(8px);
}
.brand img { height: 38px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* clip only horizontally so the swirl can rise into the transparent header */
  overflow-x: clip;
  overflow-y: visible;
  padding: 56px 0 64px;
}
.swirl {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.swirl-hero {
  top: -40px;
  right: -80px;
  width: 340px;
  opacity: 0.5;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}
.eyebrow, .section-eyebrow {
  color: var(--primary-deep);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.subhead {
  margin-top: 16px;
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--muted);
  max-width: 34em;
}
.ticks {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.ticks li {
  font-size: 14px;
  font-weight: 500;
}
.ticks li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 24px 60px rgba(29, 29, 29, 0.12), 0 4px 16px rgba(29, 29, 29, 0.06);
  max-width: 460px;
  width: 100%;
  scroll-margin-top: 90px;
}
.field { margin-bottom: 14px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: #f5f1e9;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  appearance: none;
  transition: background 0.15s ease;
}
.field input:hover,
.field select:hover { background: #f0ebe1; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c7a76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
}
.field input.invalid,
.field select.invalid {
  border-color: #c70002;
}
.form-error {
  color: #c70002;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}
.microcopy {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.form-success .success-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary-deep);
}
.form-success p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Restaurants growing with Nift ---------- */
.logo-wall {
  padding: 44px 0 56px;
  background: var(--card);
}
.logo-wall .section-eyebrow { text-align: center; }
.brand-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.brand-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 28px rgba(29, 29, 29, 0.12);
}
.tile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 29, 29, 0.12);
}
.tile-logo img {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px 16px;
  height: 52px;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  box-shadow: 0 6px 20px rgba(29, 29, 29, 0.18);
}

/* ---------- Sections shared ---------- */
section h2 {
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22em;
}

/* ---------- How it works ---------- */
.how { padding: 72px 0; }
.steps {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 6px 24px rgba(29, 29, 29, 0.07);
}
.step-num {
  display: inline-block;
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }
.how .center { margin-top: 40px; }

/* ---------- Network credibility band ---------- */
.network {
  text-align: center;
}
.steps-eyebrow {
  margin-top: 56px;
  margin-bottom: 0;
  text-align: left;
}
.steps { margin-top: 18px; }
.network-stat {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 24em;
  margin: 0 auto;
}
.network-stat .accent { font-size: 1.35em; }
.network-row { margin-top: 28px; }
.network-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 38px;
  padding: 0 12px;
}
.logo-row img {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}
/* square badge marks need more height to read next to wordmarks */
.logo-row img.logo-badge { height: 42px; }

/* ---------- Brands beyond restaurants (inside logo-wall) ---------- */
.brands-band {
  margin-top: 48px;
  text-align: center;
}
.brands-band .section-eyebrow {
  color: var(--muted);
  margin-bottom: 24px;
}
.brands-band .logo-row { gap: 24px 44px; }
.brands-band .logo-row img { height: 32px; max-width: 150px; }

/* ---------- Case study ---------- */
.case-study {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--card);
}
.swirl-case {
  right: -100px;
  bottom: -60px;
  width: 300px;
  opacity: 0.35;
}
.case-study .container { position: relative; z-index: 1; }
.case-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  align-items: center;
}
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(29, 29, 29, 0.16);
}
#case-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #1d1d1d;
}
.pull-quote blockquote {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.pull-quote figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.stat {
  text-align: center;
  padding: 20px 10px;
  background: var(--canvas);
  border-radius: var(--radius);
}
.stat-value {
  display: block;
  font-size: clamp(20px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.reviews { margin-top: 36px; }
.reviews-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 14px;
}
.review-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.review-track figure {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-track blockquote { font-size: 14.5px; }
.review-track figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Pricing + FAQ ---------- */
.pricing { padding: 72px 0; }
.pricing-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}
.faq {
  margin-top: 36px;
  max-width: 720px;
}
.faq details {
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(29, 29, 29, 0.06);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
}
.swirl-final {
  left: -80px;
  top: -40px;
  width: 300px;
  opacity: 0.25;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { margin: 0 auto 24px; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  background: var(--canvas);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-row p { font-size: 13px; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .hero { padding: 48px 0 52px; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }
  .form-card { justify-self: end; padding: 32px 30px; }
  .brand-tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  /* keep all 7 partner logos on a single line */
  .network .logo-row { flex-wrap: nowrap; gap: 30px; }
  .network .logo-row img { height: 25px; max-width: 118px; }
  .tile-logo img { height: 60px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .review-track figure { flex-basis: 340px; }
  .swirl-hero { width: 460px; right: -60px; top: -60px; }
}
