/* Fraunces (SIL Open Font License, see fonts/OFL.txt): one variable file covers every weight. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-bg: #faf6ef;
  --color-surface: #ffffff;
  --color-text: #1f2a24;
  --color-muted: #5b665f;
  --color-line: #d9d2c4;
  --color-primary: #1f5c45;
  --color-primary-text: #ffffff;
  --color-warning-bg: #fdecc8;
  --color-warning-text: #5c3d00;
  --color-error: #a3261d;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --radius: 0.625rem;
  --page-width: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141a17;
    --color-surface: #1d2622;
    --color-text: #eef1ec;
    --color-muted: #a9b5ad;
    --color-line: #37443d;
    --color-primary: #7fd1ae;
    --color-primary-text: #0e1a15;
    --color-warning-bg: #4a3608;
    --color-warning-text: #ffe2a1;
    --color-error: #ff9c92;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 var(--space-2); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 var(--space-2); }
a { color: var(--color-primary); }
[hidden] { display: none !important; }

:focus-visible { outline: 0.1875rem solid var(--color-primary); outline-offset: 0.125rem; }

/* ---------- shared layout ---------- */

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-2);
}
.site-footer { justify-content: center; border-top: 0.0625rem solid var(--color-line); margin-top: var(--space-4); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-text); text-decoration: none; }
.nav-link { color: var(--color-text); }
.account-email { color: var(--color-muted); font-size: 0.875rem; overflow-wrap: anywhere; }

main { max-width: var(--page-width); margin: 0 auto; padding: var(--space-2); }
.narrow { max-width: 28rem; }
.prose { max-width: 42rem; }

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 0.125rem solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: progress; }
.button-small { padding: 0.4rem 0.8rem; font-size: 0.9375rem; }
.button-quiet { background: transparent; color: var(--color-primary); }
.link-button, .icon-button {
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
}
.link-button { text-decoration: underline; }
.icon-button { border: 0.0625rem solid var(--color-line); border-radius: var(--radius); min-width: 2.25rem; }

.hint { color: var(--color-muted); font-size: 0.9375rem; }
.eyebrow { color: var(--color-muted); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.loading { text-align: center; padding: var(--space-4); color: var(--color-muted); }

/* ---------- landing ---------- */

.hero { padding: var(--space-4) 0; max-width: 40rem; }
.lead { font-size: 1.125rem; color: var(--color-muted); }
.steps, .pricing { padding: var(--space-3) 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.step, .pricing {
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.pricing { margin-top: var(--space-3); max-width: 26rem; }
.price { font-size: 1.125rem; }
.price-amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; }
.feature-list { padding-left: 1.25rem; margin: 0 0 var(--space-3); }

/* ---------- forms ---------- */

.form { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.field { display: grid; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; }
.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
}
.input.is-invalid { border-color: var(--color-error); }
.form-error, .save-status.is-error { color: var(--color-error); font-weight: 600; }

/* ---------- dashboard ---------- */

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.notice p { margin: 0; flex: 1 1 14rem; }
.notice.is-warning { background: var(--color-warning-bg); color: var(--color-warning-text); }

.dashboard-grid { display: grid; gap: var(--space-4); }
.editor { display: grid; gap: var(--space-2); min-width: 0; }
.section-editor {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius);
}
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.item-editor { display: grid; gap: var(--space-1); padding-top: var(--space-2); border-top: 0.0625rem dashed var(--color-line); }
.item-main { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: var(--space-1); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.allergen-summary { cursor: pointer; font-size: 0.9375rem; padding: 0.25rem 0; }
.allergen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.25rem var(--space-2); padding: var(--space-1) 0; }
.allergen-option { font-size: 0.9375rem; }
.save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  background: var(--color-bg);
  border-top: 0.0625rem solid var(--color-line);
}
.save-status { margin: 0; color: var(--color-muted); }

.qr-panel { min-width: 0; }
/* The card stays black on white in dark mode too: it is what gets printed and scanned. */
.qr-card { background: #ffffff; color: #111111; border: 0.0625rem solid var(--color-line); border-radius: var(--radius); padding: var(--space-3); text-align: center; max-width: 22rem; }
.qr-card-name { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; margin-bottom: var(--space-1); overflow-wrap: anywhere; }
.qr-card-caption { margin: var(--space-1) 0 0; }
.qr-canvas { width: 100%; max-width: 16rem; height: auto; }
.qr-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* ---------- public menu ---------- */

.menu-header { padding: var(--space-4) var(--space-2) var(--space-2); text-align: center; border-bottom: 0.0625rem solid var(--color-line); }
.menu-header h1 { margin: 0; overflow-wrap: anywhere; }
.menu-main { max-width: 40rem; }
.menu-message { text-align: center; padding-top: var(--space-4); }
.menu-section { padding: var(--space-3) 0 0; }
.menu-section-title { border-bottom: 0.125rem solid var(--color-primary); padding-bottom: 0.25rem; overflow-wrap: anywhere; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.75rem 0; border-bottom: 0.0625rem dashed var(--color-line); }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.menu-item-name { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; overflow-wrap: anywhere; min-width: 0; }
.menu-item-price { font-weight: 700; white-space: nowrap; }
.menu-item-description, .menu-item-allergens { margin: 0.25rem 0 0; color: var(--color-muted); font-size: 0.9375rem; overflow-wrap: anywhere; }
.allergen-label { font-weight: 700; color: var(--color-text); }
.menu-footer { max-width: 40rem; margin: var(--space-4) auto 0; padding: var(--space-2); color: var(--color-muted); font-size: 0.875rem; text-align: center; }

@media (min-width: 48rem) {
  h1 { font-size: 2.75rem; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .qr-panel { position: sticky; top: var(--space-2); }
  .dashboard h1 { font-size: 2rem; }
}

/* Print only the table card. */
@media print {
  .no-print, .loading { display: none !important; }
  body { background: #ffffff; }
  .dashboard-grid { display: block; }
  .qr-card { border: 0.0625rem solid #000000; margin: 2rem auto; }
  .qr-canvas { max-width: 14rem; }
}

/* ---------- brand mark ---------- */

:root {
  --color-gold: #b9770e;
  /* Paper and phone screens in the pictures stay light in both themes, like the real things. */
  --art-paper: #ffffff;
  --art-ink: #1f2a24;
  --art-soft: #5b665f;
  --art-green: #1f5c45;
  --art-gold: #f2b84b;
  --art-phone: #1c2420;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-gold: #f2b84b;
    --art-phone: #0b0f0d;
  }
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; transition: transform 0.2s ease; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-mark-bg { fill: var(--color-primary); }
.brand-mark-ink { fill: var(--color-primary-text); }
.brand-mark-dot { fill: var(--art-gold); }
.brand-word { font-size: 1.5rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--color-primary); }

/* ---------- hero slideshow ---------- */

.hero { display: grid; gap: var(--space-3); max-width: none; padding: var(--space-3) 0 var(--space-4); }
.hero-text { max-width: 40rem; }

.slideshow { min-width: 0; max-width: 30rem; width: 100%; margin: 0 auto; }
.art-defs { position: absolute; width: 0; height: 0; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-art { display: block; width: 100%; height: auto; }
.slide-caption { text-align: center; font-weight: 600; padding: var(--space-1) var(--space-1) 0; min-height: 3.2em; }
.slide-dots { display: flex; justify-content: center; gap: var(--space-1); }
.slide-dot { width: 2rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-dot::before { content: ""; display: block; height: 0.3rem; border-radius: 1rem; background: var(--color-line); transition: background 0.3s ease; }
.slide-dot.is-active::before { background: var(--color-primary); }

.art-backdrop { fill: var(--color-surface); stroke: var(--color-line); }
.art-table { fill: var(--color-line); opacity: 0.45; }
.art-paper, .art-screen { fill: var(--art-paper); }
.art-paper { stroke: var(--color-line); }
.art-phone { fill: var(--art-phone); stroke: var(--color-line); }
.art-title { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; fill: var(--art-ink); }
.art-section { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; fill: var(--art-ink); }
.art-item, .art-price { font-size: 0.625rem; font-weight: 600; fill: var(--art-ink); }
.art-price { font-weight: 700; }
.art-small { font-size: 0.5625rem; fill: var(--art-soft); }
.art-note { font-size: 0.5rem; fill: var(--art-soft); }
.art-note-dark { font-size: 0.5625rem; font-weight: 600; fill: var(--art-ink); }
.art-rule { fill: var(--art-green); }
.art-dot { fill: var(--color-line); }
.art-field { fill: none; stroke: #c9c2b4; }
.art-field-active { stroke: var(--art-green); stroke-width: 2; }
.art-pill { fill: var(--art-green); }
.art-pill-text { font-size: 0.5625rem; font-weight: 700; fill: #ffffff; }
.art-chip { fill: var(--color-primary); }
.art-chip-text { font-size: 0.625rem; font-weight: 700; fill: var(--color-primary-text); }
.art-frame { fill: none; stroke: var(--art-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-beam { fill: var(--art-gold); animation: art-scan 2.2s ease-in-out infinite alternate; }
.art-dash { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.art-arrow { fill: none; stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-highlight { fill: var(--art-gold); }
.art-live { fill: #2e9e6b; animation: art-pulse 1.6s ease-in-out infinite; }
.art-float { animation: art-bob 4s ease-in-out infinite; }
.art-float-late { animation-delay: -2s; }
.art-pop { transform-box: fill-box; transform-origin: center; animation: art-pop 2.4s ease-in-out infinite; }

@keyframes art-scan { from { transform: translateY(0); } to { transform: translateY(56px); } }
@keyframes art-pulse { 50% { opacity: 0.35; } }
@keyframes art-bob { 50% { transform: translateY(-6px); } }
@keyframes art-pop { 50% { transform: scale(1.12); } }

/* ---------- pricing plans ---------- */

.plans { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.plan-featured { border: 0.125rem solid var(--color-primary); }
.plan-tag { align-self: flex-start; margin: 0; padding: 0.15rem 0.6rem; border-radius: 1rem; background: var(--color-primary); color: var(--color-primary-text); font-size: 0.8125rem; font-weight: 700; }
.plan .price { margin: 0; }
.plan .button { margin-top: auto; align-self: flex-start; }
.pricing-section { padding: var(--space-3) 0; }

@media (min-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--space-4); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .brand-mark { transition: none; }
  .art-beam, .art-live, .art-float, .art-pop { animation: none; }
}
.slide-art text { font-family: var(--font-body); }
.slide-art .art-title, .slide-art .art-section { font-family: var(--font-heading); }

/* ---------- what both plans include ---------- */

.plan-includes { background: none; border-style: dashed; }
.include-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.include-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.include-list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .plan-includes { grid-column: 1 / -1; }
  .plan-includes .include-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); }
  .plan-includes { grid-column: auto; }
  .plan-includes .include-list { grid-template-columns: 1fr; }
}

/* The tag sits in the card's corner so both prices line up across the two plans. */
.plan { position: relative; }
.plan-tag { position: absolute; top: var(--space-2); right: var(--space-2); }

/* ---------- button and link effects ---------- */

:root { --glow: rgba(31, 92, 69, 0.35); }
@media (prefers-color-scheme: dark) {
  :root { --glow: rgba(127, 209, 174, 0.45); }
}

.button {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
/* A band of light that sweeps across the button on hover. */
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.button:hover, .button:focus-visible { transform: translateY(-0.125rem); box-shadow: 0 0.4rem 1.4rem var(--glow); filter: brightness(1.06); }
.button:hover::after { transform: translateX(120%); transition: transform 0.6s ease; }
/* Pressing lights the button up and pushes it in. */
.button:active { transform: translateY(0) scale(0.97); box-shadow: 0 0 0 0.3rem var(--glow), 0 0 1.6rem var(--glow); filter: brightness(1.15); }
.button:disabled { transform: none; box-shadow: none; filter: none; }

.nav-link, .link-button { transition: color 0.2s ease, text-shadow 0.2s ease; }
.nav-link:hover, .link-button:hover { color: var(--color-primary); text-shadow: 0 0 0.8rem var(--glow); }
.nav-link:active, .link-button:active { text-shadow: 0 0 0.4rem var(--color-primary); }
.icon-button { transition: background 0.15s ease, box-shadow 0.2s ease; }
.icon-button:hover { box-shadow: 0 0 0.8rem var(--glow); }
.icon-button:active { background: var(--glow); }

@media (prefers-reduced-motion: reduce) {
  .button, .button::after, .nav-link, .link-button, .icon-button { transition: none; }
  .button:hover, .button:focus-visible, .button:active { transform: none; }
  .button:hover::after { transform: translateX(-120%); }
}

/* ---------- how it works ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.steps h2 { font-size: 1.75rem; margin-bottom: var(--space-3); }
.step-list { gap: var(--space-3); }
.step {
  position: relative;
  overflow: hidden;
  padding: var(--space-3);
  border-top: 0.25rem solid var(--color-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-0.25rem); box-shadow: 0 0.6rem 1.8rem var(--glow); border-color: var(--art-gold); }
.step h3 { font-size: 1.3125rem; margin-bottom: var(--space-1); }
.step p { margin: 0; color: var(--color-muted); font-size: 1.0625rem; }

/* Big faint numeral in the corner gives each card its place in the order. */
.step-number {
  position: absolute;
  top: -0.6rem;
  right: 0.9rem;
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.14;
  transition: opacity 0.2s ease;
}
.step:hover .step-number { opacity: 0.3; }

.step-badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-2);
  border-radius: 1rem;
  background: var(--color-primary);
  color: var(--color-primary-text);
  transition: transform 0.2s ease;
}
.step:hover .step-badge { transform: rotate(-6deg) scale(1.08); }
.step-icon { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 48rem) {
  .steps h2 { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .step-badge, .step-number { transition: none; }
  .step:hover, .step:hover .step-badge { transform: none; }
}

/* ---------- menu editor (easier to use) ---------- */

.section-editor { padding: var(--space-3) var(--space-2) var(--space-2); border-top: 0.25rem solid var(--color-primary); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-1) var(--space-2); }
.field-title { flex: 1 1 14rem; }
.field-title .input { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.dish-count { color: var(--color-muted); font-size: 0.875rem; margin-right: var(--space-1); }
.row-actions-end { margin-left: auto; }
.item-editor { padding: var(--space-2); border: 0.0625rem solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); }
.item-editor:focus-within { border-color: var(--color-primary); }
.item-footer { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-1); }
.allergen-picker { flex: 1 1 14rem; min-width: 0; }
.icon-button:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

/* Allergens as tappable pills: ticked ones fill in. */
.allergen-list { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.allergen-option { position: relative; cursor: pointer; }
.allergen-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.allergen-option span { display: block; padding: 0.3rem 0.75rem; border: 0.0625rem solid var(--color-line); border-radius: 2rem; font-size: 0.875rem; }
.allergen-option input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); font-weight: 700; }
.allergen-option input:focus-visible + span { outline: 0.1875rem solid var(--color-primary); outline-offset: 0.125rem; }

.add-row {
  width: 100%;
  padding: 0.7rem;
  border: 0.125rem dashed var(--color-line);
  border-radius: var(--radius);
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.add-row:hover { border-color: var(--color-primary); background: var(--glow); }
.add-row-section { padding: 1rem; font-size: 1.0625rem; }

.empty-state { padding: var(--space-3); border: 0.125rem dashed var(--color-line); border-radius: var(--radius); text-align: center; }
.empty-state .row-actions { justify-content: center; }

.save-bar { z-index: 2; }
.save-bar.has-changes { border-top-color: var(--art-gold); }
.save-bar.has-changes .save-status::before { content: "● "; color: var(--art-gold); }
.save-bar.has-changes .save-status.is-error::before { content: ""; }

/* ---------- QR table card ---------- */

.qr-card { padding: 0; overflow: hidden; border: 0; box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.qr-card-head { background: var(--art-green); color: #ffffff; padding: var(--space-2) var(--space-2) 1.1rem; }
.qr-card-eyebrow { margin: 0 0 0.15rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--art-gold); font-weight: 700; }
.qr-card-name { margin: 0; font-size: 1.5rem; }
.qr-card-body { padding: var(--space-3) var(--space-2) var(--space-2); }
/* Gold brackets at the four corners, like a camera's scan frame. */
.qr-frame {
  --bracket: 0.25rem;
  --reach: 1.6rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0.6rem;
  background:
    linear-gradient(var(--art-gold) 0 0) top left / var(--reach) var(--bracket),
    linear-gradient(var(--art-gold) 0 0) top left / var(--bracket) var(--reach),
    linear-gradient(var(--art-gold) 0 0) top right / var(--reach) var(--bracket),
    linear-gradient(var(--art-gold) 0 0) top right / var(--bracket) var(--reach),
    linear-gradient(var(--art-gold) 0 0) bottom left / var(--reach) var(--bracket),
    linear-gradient(var(--art-gold) 0 0) bottom left / var(--bracket) var(--reach),
    linear-gradient(var(--art-gold) 0 0) bottom right / var(--reach) var(--bracket),
    linear-gradient(var(--art-gold) 0 0) bottom right / var(--bracket) var(--reach);
  background-repeat: no-repeat;
}
.qr-canvas { display: block; max-width: 14rem; }
.qr-card-caption { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: var(--space-2) 0 0.25rem; font-weight: 700; font-size: 1.0625rem; }
.qr-card-icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--art-green); stroke-width: 1.8; stroke-linecap: round; }
.qr-card-url { margin: 0; font-size: 0.8125rem; color: var(--art-soft); overflow-wrap: anywhere; }
.qr-actions { margin-top: var(--space-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); max-width: 22rem; }
.qr-actions .button { text-align: center; }
.qr-panel .hint { max-width: 22rem; margin-top: var(--space-2); }

@media print {
  .qr-card { box-shadow: none; border: 0.0625rem solid #000000; }
}

/* ---------- public menu: welcoming look ---------- */

.menu-page { background: var(--color-bg); }
.menu-header {
  padding: var(--space-4) var(--space-2) var(--space-3);
  border-bottom: 0;
  border-radius: 0 0 1.75rem 1.75rem;
  background: var(--art-green);
  color: #ffffff;
  text-align: center;
}
.menu-icon { width: 3.25rem; height: 3.25rem; margin-bottom: var(--space-1); fill: none; stroke: var(--art-gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.menu-welcome { margin: 0 0 0.25rem; color: var(--art-gold); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.menu-header h1 { font-size: 2.25rem; }
.menu-tagline { max-width: 30rem; margin: var(--space-1) auto 0; font-size: 1.0625rem; opacity: 0.92; overflow-wrap: anywhere; }

/* Section links stay at the top while the customer scrolls. */
.menu-nav { position: sticky; top: 0; z-index: 1; background: var(--color-bg); border-bottom: 0.0625rem solid var(--color-line); }
.menu-nav-list { display: flex; gap: var(--space-1); max-width: 40rem; margin: 0 auto; padding: 0.75rem var(--space-2); list-style: none; overflow-x: auto; scrollbar-width: none; }
.menu-nav-link { display: block; padding: 0.4rem 0.9rem; border: 0.0625rem solid var(--color-line); border-radius: 2rem; background: var(--color-surface); color: var(--color-text); font-size: 0.9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-nav-link:hover, .menu-nav-link:focus-visible { border-color: var(--color-primary); color: var(--color-primary); }

.menu-section { scroll-margin-top: 4.5rem; padding-top: var(--space-3); }
.menu-section-title { border-bottom: 0; padding-bottom: 0; margin-bottom: var(--space-2); font-size: 1.625rem; }
.menu-section-title::after { content: ""; display: block; width: 3rem; height: 0.25rem; margin-top: 0.4rem; border-radius: 1rem; background: var(--art-gold); }
.menu-items { display: grid; gap: 0.75rem; }
.menu-item { padding: var(--space-2); border: 0.0625rem solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); }
.menu-item-name { font-size: 1.125rem; }
.menu-item-price { padding: 0.15rem 0.6rem; border-radius: 2rem; background: var(--color-primary); color: var(--color-primary-text); font-size: 0.9375rem; }
.menu-item-description { font-size: 1rem; }
.menu-item-allergens { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.allergen-label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }
.allergen-chip { padding: 0.1rem 0.55rem; border: 0.0625rem solid var(--color-line); border-radius: 2rem; font-size: 0.8125rem; color: var(--color-text); }
.menu-empty { text-align: center; padding: var(--space-4) 0; color: var(--color-muted); }
.menu-thanks { font-family: var(--font-heading); font-size: 1.125rem; color: var(--color-text); }

@media (min-width: 48rem) {
  .menu-header h1 { font-size: 3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.menu-page) { scroll-behavior: smooth; }
}

/* ---------- banner pictures: public menu ---------- */

.menu-header { position: relative; overflow: hidden; }
.menu-header-inner { position: relative; }
.menu-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-header.has-cover { padding-top: 4.5rem; padding-bottom: var(--space-4); }
/* Darkens the photo so the white words stay readable whatever the picture is. */
.menu-header.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(10, 20, 15, 0.45), rgba(10, 20, 15, 0.78)); }
.menu-header.has-cover .menu-header-inner { z-index: 2; text-shadow: 0 0.0625rem 0.5rem rgba(0, 0, 0, 0.6); }
.menu-logo { display: block; width: 6rem; height: 6rem; margin: 0 auto var(--space-2); border: 0.1875rem solid #ffffff; border-radius: 50%; background: #ffffff; object-fit: contain; box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35); }

/* ---------- banner pictures: dashboard ---------- */

.banner-images { min-width: 0; margin: 0; padding: var(--space-2); border: 0.0625rem solid var(--color-line); border-radius: var(--radius); }
.banner-images legend { padding: 0 var(--space-1); font-size: 0.875rem; font-weight: 600; }
.image-tiles { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.image-tile { display: grid; gap: var(--space-1); align-content: start; min-width: 0; }
.image-tile h3 { margin: 0; font-family: var(--font-body); font-size: 0.9375rem; }
.image-frame { display: grid; place-items: center; overflow: hidden; border: 0.125rem dashed var(--color-line); border-radius: var(--radius); background: var(--color-bg); }
.image-frame-cover { aspect-ratio: 16 / 7; }
.image-frame-logo { width: 7rem; aspect-ratio: 1; border-radius: 50%; }
.image-preview { width: 100%; height: 100%; object-fit: cover; }
.image-frame-logo .image-preview { object-fit: contain; background: #ffffff; }
.image-empty { margin: 0; padding: var(--space-1); color: var(--color-muted); font-size: 0.875rem; text-align: center; }
.image-choose { cursor: pointer; }
.image-choose:focus-within { outline: 0.1875rem solid var(--color-primary); outline-offset: 0.125rem; }
.image-status { margin: 0; min-height: 1.4em; color: var(--color-muted); font-size: 0.875rem; }
.image-status.is-error { color: var(--color-error); font-weight: 600; }

@media (min-width: 36rem) {
  .image-tiles { grid-template-columns: minmax(0, 1fr) 11rem; }
}

/* ---------- heading font ---------- */

h1, h2, .brand-word, .price-amount { font-variation-settings: "SOFT" 50, "WONK" 0; letter-spacing: -0.015em; }
h1 { font-weight: 650; }

/* ---------- menu colours (owner's choice) ---------- */

/* --accent is dark enough for white text; --accent-soft is the light version for dark mode. */
.accent-green { --accent: #1f5c45; --accent-soft: #7fd1ae; }
.accent-navy { --accent: #1d3a6e; --accent-soft: #a3bdf0; }
.accent-burgundy { --accent: #7a2335; --accent-soft: #f2a7b6; }
.accent-terracotta { --accent: #9c4227; --accent-soft: #f4ae90; }
.accent-plum { --accent: #5b2e6b; --accent-soft: #d8ade8; }
.accent-teal { --accent: #12666a; --accent-soft: #84d8d8; }
.accent-charcoal { --accent: #2d3133; --accent-soft: #cdd3d6; }

/* Pages without a colour class (like "menu not found") fall back to green. */
.menu-page { --art-green: var(--accent, #1f5c45); --color-primary: var(--accent, #1f5c45); --color-primary-text: #ffffff; }
@media (prefers-color-scheme: dark) {
  .menu-page { --color-primary: var(--accent-soft, #7fd1ae); --color-primary-text: #111111; }
}

/* ---------- dish photos: public menu ---------- */

.menu-item.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: var(--space-2); align-items: start; }
.menu-item-body { min-width: 0; }
.menu-item-photo { display: block; width: 5.5rem; height: 5.5rem; border-radius: calc(var(--radius) * 0.8); object-fit: cover; background: var(--color-line); }

@media (min-width: 36rem) {
  .menu-item.has-photo { grid-template-columns: minmax(0, 1fr) 7.5rem; }
  .menu-item-photo { width: 7.5rem; height: 7.5rem; }
}

/* ---------- example menu banner ---------- */

.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem var(--space-2); padding: 0.75rem var(--space-2); background: var(--color-warning-bg); color: var(--color-warning-text); text-align: center; font-weight: 600; }
.demo-banner p { margin: 0; }
.demo-banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
/* The bar is light yellow in both themes' text colours, so the quiet button borrows its text colour. */
.demo-banner .demo-home { border-color: currentColor; color: inherit; }

/* ---------- editor: colour picker and dish photos ---------- */

.accent-picker { min-width: 0; margin: 0; padding: var(--space-2); border: 0.0625rem solid var(--color-line); border-radius: var(--radius); }
.accent-picker legend { padding: 0 var(--space-1); font-size: 0.875rem; font-weight: 600; }
.accent-options { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-1); }
.accent-picker .hint { margin: 0; }
.accent-option { position: relative; display: grid; justify-items: center; gap: 0.25rem; width: 4.5rem; font-size: 0.8125rem; cursor: pointer; }
.accent-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.accent-swatch { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); border: 0.1875rem solid var(--color-surface); box-shadow: 0 0 0 0.0625rem var(--color-line); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.accent-option input:checked + .accent-swatch { box-shadow: 0 0 0 0.1875rem var(--color-text); transform: scale(1.06); }
.accent-option input:focus-visible + .accent-swatch { outline: 0.1875rem solid var(--color-primary); outline-offset: 0.25rem; }
.accent-option input:checked ~ .accent-name { font-weight: 700; }

.dish-photo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.dish-photo-thumb { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex: none; overflow: hidden; border: 0.125rem dashed var(--color-line); border-radius: calc(var(--radius) * 0.8); background: var(--color-surface); color: var(--color-muted); font-size: 1.25rem; }
.dish-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo-thumb.has-photo { border-style: solid; }
.dish-photo-status { margin: 0; flex-basis: 100%; min-height: 0; color: var(--color-muted); font-size: 0.8125rem; }
.dish-photo-status:empty { display: none; }
.dish-photo-status.is-error { color: var(--color-error); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .accent-swatch { transition: none; }
}

/* ---------- landing: hero buttons ---------- */

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; margin-bottom: var(--space-1); }
.hero-actions .hint { flex-basis: 100%; margin: 0; }

/* ---------- landing: real screenshots ---------- */

.section-head-center { text-align: center; max-width: 40rem; margin: 0 auto var(--space-3); }
.showcase { padding: var(--space-4) 0 var(--space-3); }
.showcase h2, .faq h2, .pricing-section h2 { font-size: 1.75rem; }
.showcase-grid { display: grid; gap: var(--space-4); align-items: end; }
.showcase-item { margin: 0; display: grid; gap: var(--space-2); justify-items: center; min-width: 0; }
.showcase-item figcaption { max-width: 24rem; text-align: center; color: var(--color-muted); }
.showcase-item figcaption strong { display: block; color: var(--color-text); font-size: 1.0625rem; }

/* A plain phone outline around the real menu screenshot. */
.device-phone { width: min(16.5rem, 80vw); padding: 0.6rem; border-radius: 2.25rem; background: var(--art-phone); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.22); }
.device-phone img { display: block; width: 100%; height: auto; border-radius: 1.7rem; }

/* A simple browser window around the real editor screenshot. */
.device-browser { width: 100%; max-width: 34rem; overflow: hidden; border: 0.0625rem solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18); }
.device-browser-bar { display: flex; gap: 0.35rem; padding: 0.6rem 0.8rem; border-bottom: 0.0625rem solid var(--color-line); }
.device-browser-bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--color-line); }
.device-browser img { display: block; width: 100%; height: auto; }

@media (min-width: 48rem) {
  .showcase h2, .faq h2, .pricing-section h2 { font-size: 2.25rem; }
  .showcase-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
}

/* ---------- landing: questions ---------- */

.faq { padding: var(--space-3) 0; }
.faq-list { display: grid; gap: var(--space-1); max-width: 46rem; margin: 0 auto; }
.faq-item { border: 0.0625rem solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: var(--space-2); font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-primary); color: var(--color-primary-text); font-size: 1.25rem; line-height: 1; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--color-primary); }
.faq-item p { margin: 0; padding: 0 var(--space-2) var(--space-2); color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}

/* ---------- landing: closing banner ---------- */

.cta-band { position: relative; overflow: hidden; margin: var(--space-4) 0 var(--space-2); padding: var(--space-4) var(--space-3); border-radius: 1.5rem; background: var(--art-green); color: #ffffff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: auto -4rem -6rem auto; width: 16rem; height: 16rem; border-radius: 50%; background: var(--art-gold); opacity: 0.18; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: 1.75rem; margin-bottom: var(--space-1); }
.cta-band p { max-width: 32rem; margin: 0 auto var(--space-3); opacity: 0.92; }
.cta-band .button { background: var(--art-gold); border-color: var(--art-gold); color: #1f2a24; }
.cta-band .button-quiet { background: transparent; border-color: #ffffff; color: #ffffff; }
.cta-band .hero-actions { justify-content: center; }

@media (min-width: 48rem) {
  .cta-band h2 { font-size: 2.5rem; }
}

/* ---------- full footer ---------- */

.footer-full { display: grid; gap: var(--space-3); justify-content: stretch; align-items: start; padding: var(--space-4) var(--space-2) var(--space-3); }
.footer-about { max-width: 20rem; }
.footer-about p { margin: var(--space-1) 0 0; color: var(--color-muted); font-size: 0.9375rem; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: var(--space-3); }
.footer-links h2 { margin: 0 0 var(--space-1); font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.footer-links ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.footer-base { grid-column: 1 / -1; margin: 0; padding-top: var(--space-2); border-top: 0.0625rem dashed var(--color-line); color: var(--color-muted); font-size: 0.875rem; }

@media (min-width: 48rem) {
  .footer-full { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}

/* ---------- fade in on scroll (home page, js/reveal.js) ---------- */

/* Uses `translate`, not `transform`, so it never fights the cards' own hover lift. */
.js-reveal [data-reveal] { opacity: 0; }
.js-reveal [data-reveal].is-visible { animation: reveal-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s) both; }
@keyframes reveal-in {
  from { opacity: 0; translate: 0 1.75rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; }
  .js-reveal [data-reveal].is-visible { animation: none; }
}

/* ---------- QR card preview: a printed card standing on a café table ---------- */

/* The scene is a picture of the real thing, so it keeps the same warm look in dark mode. */
.qr-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  max-width: 22rem;
  padding: 1.75rem 1.25rem 2.6rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 25% 0%, rgba(255, 238, 205, 0.7), transparent 70%),
    linear-gradient(#ece3d5, #d9cbb7);
  box-shadow: inset 0 0 3rem rgba(80, 55, 30, 0.18);
}
/* Wooden tabletop: long grain lines over a warm brown with lighter and darker boards. */
.qr-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 4.5rem;
  border-top: 0.0625rem solid rgba(255, 236, 210, 0.35);
  background:
    linear-gradient(rgba(255, 230, 200, 0.22), transparent 0.6rem),
    repeating-linear-gradient(177deg, rgba(55, 28, 10, 0.16) 0 0.07rem, transparent 0.07rem 0.5rem),
    repeating-linear-gradient(183deg, rgba(255, 220, 180, 0.07) 0 0.12rem, transparent 0.12rem 0.9rem),
    linear-gradient(90deg, #6d4224, #8e5c35 30%, #7d4f2d 55%, #966339 78%, #6a3f22);
}
.qr-stand { position: relative; display: grid; justify-items: center; width: 100%; }
/* Soft shadow where the stand meets the table. */
.qr-stand::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  z-index: -1;
  width: 92%;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 15, 5, 0.55), transparent);
  filter: blur(0.15rem);
}

.qr-scene .qr-card {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 0.3rem;
  /* Pure white, the same as the QR code's own background, so the code has no visible box. */
  background-color: #ffffff;
  box-shadow:
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2),
    0 1.2rem 1.6rem -0.7rem rgba(40, 20, 5, 0.5),
    0.6rem 0.4rem 1.5rem -0.6rem rgba(40, 20, 5, 0.25);
}
/* Paper: a faint grain and light falling from the top left. Kept faint so the code scans. */
.qr-scene .qr-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(60, 40, 20, 0.07)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.qr-scene .qr-card-head { background: var(--accent, var(--art-green)); }
.qr-card-logo {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.5rem;
  border: 0.125rem solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

/* Clear acrylic stand: the card's bottom edge sits in its slot. */
.qr-stand-base {
  position: relative;
  width: 78%;
  height: 1.1rem;
  margin-top: -0.55rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.75);
  border-radius: 0.2rem;
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.3) 45%, rgba(220, 230, 235, 0.45));
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0.35rem 0.6rem -0.2rem rgba(30, 15, 5, 0.5);
  backdrop-filter: blur(0.125rem);
}

/* The panel is narrow on every screen (22rem at most), so the caption is a touch smaller to stay on one line. */
.qr-scene .qr-card-caption { font-size: 0.9375rem; }

/* Printing gives only the card: no table, stand, shadow or paper effect. */
@media print {
  .qr-scene { display: block; max-width: none; padding: 0; background: none; box-shadow: none; overflow: visible; }
  .qr-scene::after, .qr-stand::after, .qr-stand-base, .qr-scene .qr-card::after { display: none; }
  .qr-scene .qr-card { width: auto; max-width: 22rem; background: #ffffff; box-shadow: none; border-radius: var(--radius); }
}
