/* © 2026 Qder.ai (Itay Funes). All rights reserved. Proprietary; see LICENSE. */
/*
 * Screenshots in the guides (2026-10-03): the real screens, taken by
 * scripts/guide-shots.mjs. A phone screen is drawn in a phone's frame at a
 * size you can read; a panel is drawn across the column. Each one opens full size
 * (js/guide-zoom.js); without the script the link opens the image itself.
 */
.shot { margin: 1.1rem 0 1.5rem; }
.shot > a { display: inline-block; border-radius: 30px; cursor: zoom-in; }
.shot > a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shot img { display: block; height: auto; background: #fff; }
.shot.phone img {
  width: min(270px, 70vw);
  border: 7px solid #0A1330; border-radius: 30px;
  box-shadow: 0 22px 44px -22px rgba(10, 19, 48, .55);
}
.shot.wide > a { display: block; border-radius: 14px; }
.shot.wide img {
  width: 100%;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -26px rgba(10, 19, 48, .45);
}
.shot figcaption { margin-top: .6rem; font-size: .9rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }

/* Two or three phones side by side when there is room; one under the other on a phone. */
.shots { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: flex-start; margin: 1rem 0 1.4rem; }
.shots .shot { margin: 0; flex: 0 1 min(270px, 70vw); }
.shots .shot figcaption { max-width: min(270px, 70vw); }

/* A step with its screenshot: text first, the phone beside it on a wide screen. */
@media (min-width: 760px) {
  .steps > li.with-shot { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.6rem; align-items: start; }
  .steps > li.with-shot > .shot { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .steps > li.with-shot > .shot.phone img { width: 230px; }
  .steps > li.with-shot > .shot figcaption { max-width: 230px; }
}

/* Full size. */
.zoom-dlg { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.zoom-dlg::backdrop { background: rgba(10, 19, 48, .78); }
.zoom-dlg img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; background: #fff; }
.zoom-dlg button {
  display: block; margin: .7rem auto 0; min-height: 44px; padding: 0 1.4rem;
  border-radius: 999px; border: 0; background: #fff; color: #0A1330; font: inherit; font-weight: 700; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .zoom-dlg[open] { animation: zoom-in .18s ease-out; }
  @keyframes zoom-in { from { opacity: 0; transform: scale(.97); } }
}

/* ===================================================== the guide layout (2026-10-17)
 * The two guides in the /waiter language: a centred hero with one promise, the
 * journey as joined numbered cards, a table of contents that stays beside the
 * text on a wide screen, every section a white card on the page ground with
 * its number, drawn screens where there is no screenshot, and a closing card
 * in the band's cobalt. The reading itself stays a document (legal.css .doc):
 * one column of about 70 characters. Scoped to .gd and .gd-page, which only the
 * guides use, so the legal pages that share legal.css are untouched.
 */

body.gd-page { background: var(--ground); }
body.gd-page > header { background: var(--ground); border-bottom: 0; }

/* ------------------------------------------------------------- the hero */
.gd-hero {
  max-width: 920px; margin: 0 auto; padding: 64px 16px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gd-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--cobalt-wash); color: var(--cobalt-deep);
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.gd-hero h1 { font-size: 54px; line-height: 62px; letter-spacing: -.02em; font-weight: 500; max-width: 860px; }
.gd-sub { margin-top: 20px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--body); }
.gd-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.gd-ctas .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.gd-fine { margin-top: 16px; font-size: 13px; line-height: 19px; color: var(--muted); }

/* The journey, as joined numbered cards that open their section. */
.gd-flow {
  list-style: none; counter-reset: f;
  max-width: 1120px; margin: 48px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(var(--gd-cols, 4), minmax(0, 1fr)); gap: 12px;
}
.gd-flow li { counter-increment: f; position: relative; margin: 0; }
.gd-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 33px; inset-inline-end: -13px;
  width: 14px; height: 2px; background: var(--cobalt-line);
}
.gd-flow a {
  display: grid; gap: 6px; align-content: start; height: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease);
}
.gd-flow a::before {
  content: counter(f); width: 30px; height: 30px; border-radius: 999px;
  background: var(--cobalt); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.gd-flow a:hover { border-color: var(--cobalt-line); }
.gd-flow a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.gd-flow b { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.gd-flow span { font-size: 14px; line-height: 21px; color: var(--body); }

/* ------------------------------------------- the contents and the text */
.gd-layout {
  max-width: 1120px; margin: 56px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start;
}
.gd-toc {
  position: sticky; top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-bottom: 8px;
}
.gd-toc-t { margin: 0 0 8px; padding-inline-start: 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.gd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 2px; }
.gd-toc li { counter-increment: t; margin: 0; }
.gd-toc a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px;
  border-radius: 10px; color: var(--body); font-size: 15px; line-height: 20px; font-weight: 500;
  text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease);
}
.gd-toc a::before {
  content: counter(t); flex: 0 0 24px; height: 24px; border-radius: 999px;
  background: var(--cobalt-wash); color: var(--cobalt-deep);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.gd-toc a:hover { background: var(--bg); color: var(--ink); }
.gd-toc a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; }

.gd-doc.doc { padding: 0; min-width: 0; counter-reset: sec; }
.gd-sec {
  counter-increment: sec;
  background: var(--bg); border: 1px solid var(--line); border-radius: 28px;
  padding: 40px 44px;
}
.gd-sec + .gd-sec { margin-top: 16px; }
.gd-doc .gd-sec > h2 {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; font-size: 28px; line-height: 36px; font-weight: 500;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.gd-sec > h2::before {
  content: counter(sec); flex: 0 0 36px; height: 36px; border-radius: 999px;
  background: var(--cobalt); color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.gd-doc h3 { font-size: 18px; line-height: 26px; margin: 1.8rem 0 .5rem; }
.gd-doc [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.gd-doc .gd-lead { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.gd-doc .callout { border-radius: var(--r-card); padding: 16px 18px; }
.gd-doc code { font-size: .9em; background: var(--line-2); border-radius: 6px; padding: 1px 6px; }

/* Numbered steps, each a card, joined by a short rail. */
.gd .steps { list-style: none; margin: 20px 0 1.2rem; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.gd .steps > li {
  counter-increment: s; position: relative; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px 22px; padding-inline-start: 64px;
  font-size: 16px; line-height: 27px;
}
.gd .steps > li::before {
  content: counter(s); position: absolute; inset-inline-start: 20px; top: 18px;
  width: 30px; height: 30px; border-radius: 999px; background: var(--cobalt); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.gd .steps > li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 34px; bottom: -13px;
  width: 2px; height: 14px; background: var(--cobalt-line);
}
.gd .steps h3 { margin: 2px 0 6px; font-size: 17px; line-height: 25px; font-weight: 600; }
.gd .steps p { margin: 0 0 .5rem; font-size: 16px; line-height: 27px; }
.gd .steps p:last-child { margin-bottom: 0; }
.gd .steps > li > b:first-child { display: block; margin: 2px 0 4px; font-size: 17px; line-height: 25px; font-weight: 600; color: var(--ink); }
@media (min-width: 760px) {
  .gd .steps > li.with-shot > .draw { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .gd .steps > li.with-shot > .draw figcaption { max-width: 200px; }
}

/* Two or three plain cards side by side. */
.gd-pair { display: grid; grid-template-columns: repeat(var(--gd-cols, 2), minmax(0, 1fr)); gap: 12px; margin: 20px 0 1.4rem; }
.gd-pair.three { --gd-cols: 3; }
.gd-card { border-radius: var(--r-card); padding: 20px 22px; background: var(--ground); border: 1px solid var(--line); }
.gd-doc .gd-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 22px; font-weight: 600; }
.gd-card p, .gd-card li { font-size: 15px; line-height: 25px; }
.gd-card p:last-child, .gd-card ul:last-child { margin-bottom: 0; }
.gd-card ul { padding-inline-start: 1.1rem; margin: 0; }
.gd-card li { margin-bottom: .35rem; }
.gd-card.is-key { background: linear-gradient(135deg, var(--cobalt-wash), #fff 75%); border-color: var(--cobalt-line); }

/* The one dark card: the argument that matters most on the page. */
.gd-sec.gd-dark {
  position: relative; overflow: hidden; isolation: isolate; border: 0; color: #C9D5F5;
  background: linear-gradient(160deg, #0B1633 0%, #0A1F5C 55%, var(--cobalt-deep) 100%);
}
.gd-sec.gd-dark::before {
  content: ""; position: absolute; z-index: -1; width: 1100px; height: 240px; left: -200px; top: -130px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); transform: rotate(-9deg);
}
.gd-doc .gd-dark h2, .gd-dark b, .gd-dark strong { color: #fff; }
.gd-dark > h2::before { background: #fff; color: var(--cobalt-deep); }
.gd-dark p { color: #C9D5F5; }
.gd-doc .gd-dark .gd-lead { color: #fff; }

/* ---------------------------------------------------------- drawn screens
 * Where there is no screenshot, the screen drawn in markup: the same parts the
 * product shows, in the guide's own words. Hidden from screen readers; the
 * caption says what it shows. */
.draw { margin: 1.2rem 0 1.5rem; }
.draw figcaption { margin-top: .6rem; font-size: .9rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.dr-box { border: 1px solid var(--line); border-radius: 20px; background: var(--ground); padding: 18px; }
.dr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 500;
}
.dr-chip.on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.dr-chip.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); font-weight: 600; }
.dr-chip.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); font-weight: 600; }
.dr-chip.crit { background: var(--crit-bg); border-color: transparent; color: var(--crit); font-weight: 700; }
.dr-arrow { color: var(--cobalt); font-weight: 600; }

/* The table sticker. */
.dr-sticker {
  width: 200px; border-radius: 22px; background: var(--cobalt); color: #fff;
  padding: 18px 18px 14px; display: grid; justify-items: center; gap: 10px;
  box-shadow: 0 22px 44px -24px rgba(11, 63, 217, .7);
}
.dr-sticker svg { width: 124px; height: 124px; background: #fff; border-radius: 12px; padding: 8px; }
.dr-sticker .t { font-size: 13px; line-height: 18px; color: #fff; }
.dr-sticker .c { font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: .14em; direction: ltr; font-variant-numeric: tabular-nums; }

/* A short chat, as the table screen draws it. */
.dr-chat { display: grid; gap: 8px; max-width: 440px; }
.dr-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 21px; }
.dr-msg.me { justify-self: end; background: var(--cobalt); color: #fff; border-end-end-radius: 6px; }
.dr-msg.bot { justify-self: start; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-end-start-radius: 6px; }

/* Kitchen tickets. */
.dr-tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dr-ticket {
  background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--cobalt-line);
  border-radius: 14px; padding: 12px 14px; display: grid; gap: 7px; align-content: start;
}
.dr-ticket.late { border-top-color: var(--crit); }
.dr-ticket .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 18px; color: var(--muted); }
.dr-ticket .top b { font-size: 14px; color: var(--ink); }
.dr-ticket .line { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.dr-ticket .line span { color: var(--muted); font-weight: 500; }
.dr-ticket .acts { display: flex; gap: 6px; margin-top: 2px; }
.dr-ticket .acts span { flex: 1; text-align: center; border-radius: 10px; padding: 6px 8px; font-size: 13px; font-weight: 600; background: var(--ground); border: 1px solid var(--line); color: var(--ink); }
.dr-ticket .acts span.go { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.dr-ticket .dr-chip { justify-self: start; min-height: 24px; padding: 2px 10px; font-size: 12px; }

/* A grid of named tiles (the settings groups, the plans, the account kinds). */
.gd-tiles { display: grid; grid-template-columns: repeat(var(--gd-cols, 3), minmax(0, 1fr)); gap: 12px; margin: 20px 0 1.4rem; }
.gd-tiles.four { --gd-cols: 4; }
.gd-tile { border-radius: var(--r-card); padding: 16px 18px; background: var(--ground); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.gd-tile b { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.gd-tile span { font-size: 14px; line-height: 22px; color: var(--body); }
.gd-tile .v { font-size: 26px; line-height: 32px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.gd-tile.lead { background: linear-gradient(135deg, var(--cobalt-wash), #fff 75%); border-color: var(--cobalt-line); }

/* Questions and answers, kept together. */
.gd .faq { margin-top: 1rem; display: grid; gap: 8px; }
.gd .faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; background: var(--bg); }
.gd .faq details[open] { background: var(--ground); }
.gd .faq summary {
  cursor: pointer; list-style: none; padding: 12px 0; min-height: 48px;
  display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 16px; line-height: 24px;
}
.gd .faq summary::-webkit-details-marker { display: none; }
.gd .faq summary::after { content: "+"; margin-inline-start: auto; font-weight: 400; font-size: 22px; color: var(--muted); line-height: 1; }
.gd .faq details[open] summary::after { content: "−"; }
.gd .faq summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 8px; }
.gd .faq details > p { margin: 0 0 1rem; font-size: 16px; line-height: 27px; }
.gd .faq details > figure { margin-top: 0; }

.gd .legal-index { margin-top: 16px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); }

/* ------------------------------------------------------ the closing card */
.gd-close { max-width: 1120px; margin: 56px auto 72px; padding: 0 16px; }
.gd-close-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: 28px; padding: 68px 48px; color: #fff;
  background: linear-gradient(158deg, var(--cobalt-lift) 0%, var(--cobalt) 46%, var(--cobalt-deep) 100%);
}
.gd-close-card::before {
  content: ""; position: absolute; z-index: -1; width: 1200px; height: 280px; left: -220px; top: -150px;
  border-radius: 999px; background: rgba(255, 255, 255, .10); transform: rotate(-9deg);
}
.gd-close-card h2 { color: #fff; font-size: 36px; line-height: 46px; font-weight: 500; }
.gd-close-card p { margin: 14px auto 28px; max-width: 560px; font-size: 17px; line-height: 27px; color: #fff; }
.gd-close-card .gd-ctas { margin-top: 0; }
.gd-close-card .btn-primary { background: #fff; color: var(--cobalt-deep); }
.gd-close-card .btn-primary:hover { background: #EDF2FE; }
.gd-close-card .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.gd-close-card .btn-ghost:hover { border-color: #fff; }
.gd-close-card a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ------------------------------------------------------------ narrower */
@media (max-width: 1100px) {
  .gd-flow { --gd-cols: 2; }
  .gd-flow li:nth-child(2n)::after { display: none; }
  .gd-tiles.four { --gd-cols: 2; }
}
@media (max-width: 960px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
  .gd-toc { position: static; max-height: none; overflow: visible; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
  .gd-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .gd-toc a { min-height: 44px; }
}
@media (max-width: 760px) {
  .gd-pair, .gd-pair.three, .gd-tiles { --gd-cols: 1; }
  .gd-tiles.four { --gd-cols: 2; }
}
@media (max-width: 680px) {
  .gd-hero { padding-top: 36px; }
  .gd-hero h1 { font-size: 34px; line-height: 42px; }
  .gd-sub { font-size: 16px; line-height: 25px; }
  .gd-hero .gd-ctas { flex-direction: column; align-self: stretch; }
  .gd-flow { --gd-cols: 1; margin-top: 32px; }
  .gd-flow li::after { display: none; }
  .gd-flow a { grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
  .gd-flow a::before { grid-row: span 2; }
  .gd-toc ol { grid-template-columns: minmax(0, 1fr); }
  .gd-sec { padding: 26px 18px; border-radius: 22px; }
  .gd-doc .gd-sec > h2 { font-size: 23px; line-height: 30px; gap: 12px; }
  .gd-sec > h2::before { flex-basis: 32px; height: 32px; font-size: 15px; }
  .gd-doc .gd-lead { font-size: 17px; line-height: 28px; }
  .gd .steps > li { padding: 16px; padding-inline-start: 56px; }
  .gd .steps > li::before { inset-inline-start: 14px; top: 16px; }
  .gd .steps > li:not(:last-child)::after { inset-inline-start: 28px; }
  .gd .legal-index { padding: 20px 18px; border-radius: 22px; }
  .gd-close-card { padding: 44px 22px; border-radius: 22px; }
  .gd-close-card h2 { font-size: 26px; line-height: 34px; }
  .gd-close-card .gd-ctas { flex-direction: column; }
}
.gd-doc .gd-says { list-style: none; padding: 0; margin: 4px 0 1.2rem; }
.gd-doc .gd-says li { margin: 0; }
[dir="ltr"] .dr-arrow { display: inline-block; transform: scaleX(-1); }
.gd-doc .gd-card h4 { margin: 0 0 8px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.gd-doc > .gd-sec > .gd-card { margin: 1.4rem 0; }
.gd-doc .gd-updated { margin: 1.4rem 0 0; font-size: 13px; color: var(--muted); }

/* The one thing on the business guide a restaurant must not get wrong. */
.gd-doc .callout.hard { border-color: #E6BDBD; border-inline-start-color: var(--crit); background: #FCF4F4; }
.gd-doc .callout.hard b { color: #8B1D1D; }

/* The money card: its drawing and its three lines, on the dark ground. */
.gd-dark .dr-arrow { color: #A9C0FF; }
.gd-dark figcaption { color: #B8C6EC; }
.gd-dark .dr-money .dr-chip { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.gd-dark .dr-money .dr-chip.on { background: #fff; border-color: #fff; color: var(--cobalt-deep); font-weight: 600; }
.gd-doc .gd-dark .gd-checks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 2px; }
.gd-dark .gd-checks li {
  position: relative; margin: 0; padding: 10px 0; padding-inline-start: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .10); color: #E3EAFB;
}
.gd-dark .gd-checks li:last-child { border-bottom: 0; }
.gd-dark .gd-checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 15px; width: 18px; height: 18px; border-radius: 999px;
  background: #3DD68C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23062E1B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.gd-close-card p { text-wrap: balance; }
.gd-sub, .gd-flow span { text-wrap: pretty; }
