/* The universal selector makes element sizing easier to understand. */
* {
  box-sizing: border-box;
}

/* These CSS variables keep colors and spacing easy to reuse. */
:root {
  --ink: #1c1715;
  --muted: #6e6259;
  --paper: #fbf6ed;
  --surface: #ffffff;
  --line: #e8d9c5;
  --tomato: #a5382f;
  --basil: #25684c;
  --gold: #c5913f;
  --charcoal: #171312;
  --shadow: 0 18px 45px rgba(28, 23, 21, 0.12);
  --radius: 8px;
  --app-height: 100vh;
  --ask-ai-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

/* The body sets the default font, background, and text color for the page. */
html {
  margin: 0;
  background: var(--charcoal);
}

body {
  margin: 0;
  min-height: 0;
  background: var(--charcoal);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.video-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

main {
  background: var(--paper);
}

/* Links and buttons inherit the font so the interface feels consistent. */
a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* The header has the first screen content guests see after scanning the QR code. */
.site-header {
  background:
    linear-gradient(rgba(23, 19, 18, 0.32), rgba(23, 19, 18, 0.72)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1400&q=80")
      center / cover;
  color: white;
}

/* The top bar keeps the restaurant name and menu link visible. */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.brand {
  font-size: 1.08rem;
  font-weight: 850;
}

.top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-note {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

/* The hero uses compact mobile spacing first, then grows on wider screens. */
.hero {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 78px 20px 54px;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

/* Main sections are constrained so they are readable on large displays. */
.qr-section,
.menu-section,
.pricing-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 34px 20px 0;
}

/* This section explains the QR flow before guests reach the menu. */
.qr-section {
  padding-bottom: 8px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  color: var(--gold);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
}

/* The steps use simple rows so beginners can edit the text easily. */
.qr-steps {
  display: grid;
  gap: 12px;
}

.qr-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.qr-step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 850;
}

.qr-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* The grid starts as one column for phones. */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* A menu card groups image, description, price, and the AR button. */
.menu-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 10px 28px rgba(28, 23, 21, 0.07);
}

/* Real dish photos make the menu feel more restaurant-ready. */
.dish-image {
  display: block;
  width: 100%;
  height: 190px;
  border-radius: var(--radius);
  background: #efe3d2;
  object-fit: cover;
}

.dish-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 4px;
}

.dish-content h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.dish-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Pricing cards show restaurant package options without adding checkout. */
.pricing-section {
  padding-bottom: 18px;
}

.pricing-heading {
  max-width: 620px;
}

.pricing-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pricing-card,
.founding-package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 12px 34px rgba(28, 23, 21, 0.08);
}

.pricing-card-featured {
  border-color: rgba(197, 145, 63, 0.7);
  background: linear-gradient(180deg, #fffaf1, #ffffff 42%);
  box-shadow: 0 18px 46px rgba(165, 56, 47, 0.14);
}

.pricing-badge {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.pricing-card-header h3,
.founding-package h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.pricing-card-header p,
.founding-package > div > p,
.pricing-note,
.founding-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

.pricing-price,
.founding-price {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.pricing-price p,
.founding-price p {
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.35;
}

.pricing-price span,
.founding-price span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.pricing-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.42;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.pricing-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.founding-package {
  margin-top: 18px;
  overflow: hidden;
  border-color: rgba(37, 104, 76, 0.28);
  background:
    linear-gradient(135deg, rgba(37, 104, 76, 0.08), rgba(197, 145, 63, 0.12)),
    var(--surface);
}

.founding-package .eyebrow {
  color: var(--basil);
}

.founding-list {
  grid-template-columns: 1fr;
}

.pricing-demo-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* The standalone pricing page is for restaurant owners, separate from the demo menu. */
.pricing-page-header {
  background:
    linear-gradient(rgba(23, 19, 18, 0.7), rgba(23, 19, 18, 0.86)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80")
      center / cover;
  color: white;
}

.pricing-hero {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 70px 20px 38px;
}

.pricing-hero h1 {
  margin-bottom: 14px;
}

.pricing-market-note {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.55;
}

.market-toggle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 440px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
}

.market-toggle button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 850;
}

.market-toggle button.is-active {
  background: var(--surface);
  color: var(--charcoal);
}

.pricing-main {
  background: var(--paper);
}

.pricing-structure,
.included-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 34px 20px 0;
}

.pricing-steps {
  display: grid;
  gap: 14px;
}

.pricing-steps article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.pricing-steps h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.pricing-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.pricing-page-section {
  padding-top: 24px;
}

.pricing-plan-grid {
  align-items: stretch;
}

.setup-card {
  border-color: rgba(37, 104, 76, 0.34);
  background:
    linear-gradient(180deg, rgba(37, 104, 76, 0.08), rgba(255, 255, 255, 0) 42%),
    var(--surface);
}

.included-section {
  padding-bottom: 30px;
}

.feature-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 12px 34px rgba(28, 23, 21, 0.07);
}

.fair-usage-note {
  margin: 16px 0 0;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 14px 16px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--charcoal);
  font-weight: 850;
  white-space: nowrap;
}

/* Buttons use a clear tap target for mobile customers. */
.ar-button,
.ar-launch-button,
.secondary-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.ar-button,
.ar-launch-button {
  background: linear-gradient(135deg, var(--tomato), #7f2a24);
  color: white;
  box-shadow: 0 10px 20px rgba(165, 56, 47, 0.2);
}

.ar-button {
  padding: 10px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.ar-button:focus-visible,
.ar-launch-button:focus-visible,
.secondary-action:focus-visible,
.close-button:focus-visible {
  outline: 3px solid rgba(45, 122, 85, 0.45);
  outline-offset: 3px;
}

.ar-button:hover,
.ar-launch-button:hover {
  background: linear-gradient(135deg, #b84438, #873027);
}

.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

/* The dish dialog is the premium visual menu detail view. */
.dish-dialog {
  width: min(92vw, 640px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dish-dialog::backdrop {
  background: rgba(23, 19, 18, 0.62);
}

.dish-detail-media {
  position: relative;
  background: #efe3d2;
}

.dish-detail-image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.dish-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.dish-detail-body {
  padding: 18px;
}

.dish-detail-body .eyebrow {
  color: var(--gold);
}

.dish-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dish-detail-heading h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.dish-detail-price {
  margin-bottom: 0;
  color: var(--charcoal);
  font-weight: 850;
  white-space: nowrap;
}

.dish-detail-description {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.dish-detail-list {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dish-detail-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dish-detail-list p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.dish-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.dish-detail-actions .ar-button,
.secondary-action {
  display: grid;
  place-items: center;
  padding: 0 16px;
  text-align: center;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.dish-action-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* The photo gallery reuses the clean modal style for a simple placeholder. */
.photo-dialog {
  width: min(92vw, 620px);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo-dialog::backdrop {
  background: rgba(23, 19, 18, 0.62);
}

.photo-gallery-image {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  background: var(--paper);
  object-fit: contain;
}

.photo-gallery-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 0;
}

.photo-gallery-controls span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

/* The video modal is full-screen and vertical, like a simple food Reel. */
.video-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: var(--app-height);
  max-height: var(--app-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050505;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-dialog::-webkit-scrollbar,
.video-stage::-webkit-scrollbar {
  display: none;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
}

.video-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #050505;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
}

.dish-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #050505;
  object-fit: cover;
}

.video-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 5;
}

.video-caption {
  position: absolute;
  left: 16px;
  right: 104px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 3;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.video-caption h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.video-caption p {
  margin-bottom: 0;
}

.video-side-actions {
  position: absolute;
  right: 12px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 64px;
}

.video-action {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 3px;
  width: 54px;
  min-height: 64px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.video-action.is-active {
  color: #ffddd8;
}

.video-action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(23, 19, 18, 0.54);
  font-size: 1.35rem;
  line-height: 1;
}

.video-action.is-active .video-action-icon {
  background: rgba(165, 56, 47, 0.9);
}

.video-action-count {
  font-size: 0.68rem;
  line-height: 1.1;
}

.video-bottom-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.video-bottom-controls .secondary-action {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(23, 19, 18, 0.48);
  color: white;
  font-size: 0.76rem;
}

.video-bottom-controls span {
  color: white;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.video-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.video-tip {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 4;
  max-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(23, 19, 18, 0.72);
  color: white;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 16px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-tip.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.video-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.86);
}

/* The dialog creates a focused 3D preview without leaving the menu page. */
.viewer-dialog {
  width: min(92vw, 680px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.viewer-dialog::backdrop {
  background: rgba(23, 19, 18, 0.62);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 12px;
}

.dialog-header .eyebrow {
  color: var(--gold);
}

.dialog-header h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.close-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.dish-viewer {
  display: block;
  width: 100%;
  height: 390px;
  background: linear-gradient(180deg, #fbf6ed, #e8d9c5);
}

.ar-launch-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 0 18px;
}

.viewer-help {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* The fake AR dialog is only used by the photo-based Signature Burger test. */
.fake-ar-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--charcoal);
}

.fake-ar-dialog::backdrop {
  background: rgba(23, 19, 18, 0.82);
}

/* This stage holds the camera feed, burger object, header, and help text. */
.fake-ar-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #171312;
  touch-action: none;
}

/* The phone camera fills the fake AR background. */
.fake-ar-camera {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #171312;
  object-fit: cover;
}

/* The burger is centered first, then JavaScript moves and scales it. */
.fake-burger-viewer {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(78vw, 390px);
  aspect-ratio: 0.96;
  background: transparent;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  touch-action: none;
  pointer-events: none;
  z-index: 2;
}

/* The burger is now a clean transparent photo, not a 3D card. */
.fake-burger-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

/* This soft shadow makes the photo feel like it is sitting in the camera view. */
.fake-burger-shadow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 1;
  width: 72%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 68%);
  filter: blur(7px);
  transform: translateX(-50%);
}

/* The top bar floats over the camera so guests can close the experience. */
.fake-ar-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: calc(16px + env(safe-area-inset-top)) 16px 12px;
  color: white;
  background: linear-gradient(rgba(23, 19, 18, 0.78), rgba(23, 19, 18, 0));
  pointer-events: none;
}

.fake-ar-topbar h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.fake-ar-close {
  pointer-events: auto;
}

/* The help text stays at the bottom of the camera view. */
.fake-ar-help {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 3;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(23, 19, 18, 0.72);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  pointer-events: none;
}

/* Ask AI is a front-end-only recommendation helper for the MVP. */
.ask-ai-button {
  position: fixed;
  left: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #171312, #5b2c5f 52%, #a5382f);
  color: white;
  cursor: pointer;
  font-weight: 850;
  padding: 8px 16px 8px 9px;
  box-shadow: 0 16px 34px rgba(23, 19, 18, 0.28);
  transition: grid-template-columns 0.2s ease, padding 0.2s ease, transform 0.2s ease;
}

.ask-ai-button.is-compact {
  grid-template-columns: 34px 0;
  padding-right: 9px;
}

.ask-ai-button.is-compact .ask-ai-label {
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.ask-ai-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, #f3c96c, #e45f49 52%, #6a4edb);
  color: #171312;
  font-size: 0.78rem;
  font-weight: 900;
}

.ask-ai-label {
  white-space: nowrap;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.ask-ai-dialog {
  width: 100vw;
  max-width: none;
  height: var(--app-height);
  max-height: var(--app-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

body.ask-ai-keyboard-open .ask-ai-dialog {
  height: var(--ask-ai-height);
  max-height: var(--ask-ai-height);
}

.ask-ai-dialog::backdrop {
  background: rgba(23, 19, 18, 0.46);
}

.ask-ai-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: min(86vh, 720px);
  min-height: 560px;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(197, 145, 63, 0.22), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(165, 56, 47, 0.26), transparent 30%),
    linear-gradient(160deg, #161112, #211522 54%, #101316);
  color: white;
  box-shadow: 0 -24px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

body.ask-ai-keyboard-open .ask-ai-sheet {
  height: calc(var(--ask-ai-height) - 8px);
  max-height: calc(var(--ask-ai-height) - 8px);
  min-height: 0;
}

.ask-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 8px;
}

.ask-ai-header h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.ask-ai-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-weight: 850;
}

.ask-ai-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 12px 18px 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.ask-ai-message,
.ask-ai-result-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
  padding: 13px 14px;
  line-height: 1.45;
}

.assistant-message {
  justify-self: start;
  max-width: 88%;
}

.user-message {
  justify-self: end;
  max-width: 86%;
  background: rgba(243, 201, 108, 0.16);
  color: white;
}

.ask-ai-prompts,
.ask-ai-options,
.ask-ai-result-actions {
  display: grid;
  gap: 10px;
}

.ask-ai-prompts {
  grid-template-columns: 1fr;
}

.ask-ai-prompts button,
.ask-ai-options button,
.ask-ai-result-actions button,
.ask-ai-result-actions a {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-weight: 850;
  padding: 0 16px;
  text-align: center;
}

.ask-ai-prompts button:hover,
.ask-ai-options button:hover,
.ask-ai-result-actions button:hover,
.ask-ai-result-actions a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ask-ai-step {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ask-ai-quiz h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.ask-ai-result {
  display: grid;
  gap: 12px;
}

.ask-ai-result[hidden],
.ask-ai-quiz[hidden] {
  display: none;
}

.ask-ai-result-card h3 {
  margin-bottom: 6px;
  font-size: 1.14rem;
}

.ask-ai-result-card .price {
  color: #f3c96c;
}

.ask-ai-result-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ask-ai-result-actions {
  margin-top: 12px;
}

.ask-ai-result-actions .primary-result-action {
  border: 0;
  background: linear-gradient(135deg, #d04d3f, #8f3029);
}

.ask-ai-input-row {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.18);
}

body.ask-ai-keyboard-open .ask-ai-input-row {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.ask-ai-input-row input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0 16px;
  font: inherit;
}

.ask-ai-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.ask-ai-input-row button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3c96c, #e45f49 55%, #6a4edb);
  color: #171312;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

/* The footer is intentionally simple so the business name is easy to replace. */
.site-footer {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Wider screens can show more menu cards per row while keeping mobile as the base. */
@media (min-width: 720px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  h1 {
    font-size: 4rem;
  }

  .qr-section,
  .menu-section,
  .pricing-section {
    padding-top: 38px;
  }

  .pricing-hero {
    padding-top: 96px;
    padding-bottom: 54px;
  }

  .market-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .qr-step {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 0;
    border-top: 0;
  }

  .qr-step:last-child {
    border-bottom: 0;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .pricing-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .pricing-steps article {
    grid-template-columns: 1fr;
    align-content: start;
    border-top: 0;
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
    box-shadow: 0 10px 28px rgba(28, 23, 21, 0.06);
  }

  .menu-card {
    min-height: 100%;
  }

  .pricing-card {
    min-height: 100%;
  }

  .founding-package {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 18px 24px;
    padding: 24px;
  }

  .founding-package .pricing-list,
  .founding-note {
    grid-column: 1 / -1;
  }

  .founding-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-demo-button {
    width: auto;
    justify-self: start;
    padding: 0 22px;
  }

  .dish-image {
    height: 210px;
  }

  .ask-ai-sheet {
    left: 50%;
    right: auto;
    width: min(520px, calc(100vw - 32px));
    border-radius: 26px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1040px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Very narrow screens stack the price and button so nothing feels cramped. */
@media (max-width: 380px) {
  .dish-image {
    height: 175px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
