/* ==========================================================================
   QRMenu — Public site & auth
   ========================================================================== */

/* --- Site header -------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 17, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-head-in {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 68px;
}





.site-nav { display: flex; gap: var(--s-1); }
.site-nav a {
  padding: 8px 13px;
  border-radius: var(--r-tight);
  font-size: var(--t-sm);
  color: var(--tx-soft);
  transition: color var(--quick), background var(--quick);
}
.site-nav a:hover { color: var(--tx); background: rgba(240, 228, 202, 0.05); }
.site-nav a[aria-current="page"] { color: var(--brass-lit); }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    padding: var(--s-3);
    gap: 2px;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
  }
  .site-nav[data-open="false"] { display: none; }
  .site-nav a { padding: 11px 14px; }
  .nav-toggle { display: inline-flex; }
  .head-actions .btn-ghost { display: none; }
}

/* --- Hero: the table setting -------------------------------------------
   Not a centered headline over a gradient. The hero is a composition of the
   three objects the product actually joins together: the table tent on the
   table, the guest's phone, and the ticket that lands on the kitchen pass. */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto 40%;
  height: 720px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 172, 85, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--s-8);
  align-items: center;
  position: relative;
}
.hero h1 {
  font-family: var(--face-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(2.6rem, 5.6vw, var(--t-4xl));
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.032em;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  margin-bottom: var(--s-5);
  border: 1px solid var(--line-firm);
  border-radius: var(--r-round);
  font-size: var(--t-xs);
  color: var(--tx-soft);
}
.hero-kicker b { color: var(--brass-lit); font-weight: 600; }
.hero p.lead { margin-top: var(--s-5); font-size: 1.0625rem; }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-proof {
  display: flex;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-proof div strong {
  display: block;
  font-family: var(--face-num);
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero-proof div span { font-size: var(--t-xs); color: var(--tx-mute); }

/* The staged composition */
.stage {
  position: relative;
  min-height: 470px;
  perspective: 1200px;
}
.stage-table {
  position: absolute;
  inset: 26% -6% -8% 4%;
  border-radius: var(--r-soft);
  background:
    linear-gradient(168deg, #2A231A 0%, #191410 62%),
    var(--ink-800);
  border: 1px solid var(--line-firm);
  transform: rotateX(46deg) rotateZ(-14deg);
  box-shadow: 0 60px 90px -50px #000;
}
.tent {
  position: absolute;
  left: 4%; bottom: 4%;
  width: 176px;
  padding: 16px 16px 18px;
  background: var(--linen-50);
  color: var(--on-linen);
  border-radius: 4px 4px 2px 2px;
  box-shadow: 0 30px 44px -26px rgba(0, 0, 0, 0.9);
  text-align: center;
  transform: rotate(-3deg);
}
.tent-title {
  font-family: var(--face-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tent .qr { margin: 10px auto 8px; }
.tent-caption { font-size: 10px; color: var(--on-linen-mute); line-height: 1.4; }
.tent::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: var(--linen-300);
  border-radius: 2px;
}

/* Phone showing the guest menu */















/* Ticket landing on the pass */
.pass-ticket {
  position: absolute;
  left: 30%; top: 8%;
  width: 190px;
  z-index: 3;
  transform: rotate(-2deg);
  box-shadow: 0 40px 60px -34px #000;
  animation: ticket-land 900ms var(--ease) 300ms both;
}
@keyframes ticket-land {
  from { opacity: 0; transform: translateY(-26px) rotate(-7deg); }
}
.pass-ticket .docket { background: var(--ink-800); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 420px; margin-top: var(--s-6); }
  .phone { right: 6%; }
}
@media (max-width: 620px) {
  .hero { padding-top: var(--s-7); }
  .stage { min-height: 380px; transform: scale(0.86); transform-origin: top center; }
  .pass-ticket { left: 4%; top: 2%; }
  .phone { right: 0; width: 200px; }
}

/* --- Section framing ---------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-8) 0; }
.section-linen {
  background: var(--linen-100);
  color: var(--on-linen);
}
.section-linen .muted, .section-linen .lead { color: var(--on-linen-soft); }
.section-linen .panel { background: #fff; border-color: var(--line-paper); box-shadow: var(--lift-paper); }

.section-head { max-width: 60ch; margin-bottom: var(--s-7); }
.section-head h2 {
  font-family: var(--face-display);
  font-size: clamp(1.75rem, 3.4vw, var(--t-2xl));
  font-weight: 500;
  letter-spacing: -0.026em;
}
.section-head p { margin-top: var(--s-3); color: var(--tx-mute); font-size: var(--t-md); line-height: 1.6; }
.section-linen .section-head p { color: var(--on-linen-soft); }

/* --- Feature cards ------------------------------------------------------ */
.feature {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ink-850);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feature-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(217, 172, 85, 0.12);
  color: var(--brass-lit);
  border: 1px solid rgba(217, 172, 85, 0.22);
}
.feature h3 { font-size: var(--t-base); font-weight: 600; }
.feature p { font-size: var(--t-sm); color: var(--tx-mute); line-height: 1.6; }
.section-linen .feature { background: #fff; border-color: var(--line-paper); }
.section-linen .feature p { color: var(--on-linen-soft); }

/* --- Flow (setup sequence — genuinely ordered, so it is numbered) ------- */
.flow { counter-reset: step; display: grid; gap: 0; }
.flow-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.section-linen .flow-step { border-color: var(--line-paper); }
.flow-step:last-child { border-bottom: 0; }
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--face-num);
  font-size: var(--t-sm);
  color: var(--brass-lit);
  padding-top: 3px;
}
.flow-step h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: 5px; }
.flow-step p { font-size: var(--t-sm); color: var(--tx-mute); max-width: 58ch; }
.section-linen .flow-step p { color: var(--on-linen-soft); }

/* --- Pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.plan {
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ink-850);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.plan[data-featured="true"] {
  border-color: var(--brass-deep);
  background: linear-gradient(180deg, rgba(217, 172, 85, 0.07), transparent 40%), var(--ink-800);
  box-shadow: var(--lift-2);
}
.plan-name { font-family: var(--face-display); font-size: var(--t-lg); font-weight: 500; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b {
  font-family: var(--face-num);
  font-size: var(--t-2xl);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.plan-price span { font-size: var(--t-sm); color: var(--tx-mute); }





@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* --- Quote -------------------------------------------------------------- */
.quote {
  padding: var(--s-7) var(--s-6);
  border-left: 2px solid var(--brass);
  background: var(--ink-850);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.quote blockquote {
  font-family: var(--face-display);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.015em;
  max-width: 50ch;
}
.quote figcaption { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--tx-mute); }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: var(--t-base);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--face-num);
  color: var(--brass-lit);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--tx-mute); max-width: 66ch; line-height: 1.65; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 160% at 8% 0%, rgba(217, 172, 85, 0.16), transparent 58%),
    var(--ink-800);
  border: 1px solid var(--line-firm);
}
.cta-band h2 {
  font-family: var(--face-display);
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.026em;
  max-width: 20ch;
}

/* --- Footer ------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: var(--s-8) 0 var(--s-6);
  background: var(--ink-950);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
}
.foot-grid h4 { font-size: var(--t-xs); color: var(--tx-mute); font-weight: 550; margin-bottom: var(--s-3); }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid a { font-size: var(--t-sm); color: var(--tx-soft); }
.foot-grid a:hover { color: var(--brass-lit); }
.foot-base {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: var(--tx-faint);
}
@media (max-width: 780px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Auth screens ------------------------------------------------------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
}
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-7) var(--s-6);
}
.auth-box { width: min(410px, 100%); margin-inline: auto; }
.auth-box h1 {
  font-family: var(--face-display);
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.028em;
}
.auth-box > p { margin-top: 8px; color: var(--tx-mute); font-size: var(--t-sm); }
.auth-form { margin-top: var(--s-6); }
.auth-alt {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--tx-mute);
}
.auth-alt a { color: var(--brass-lit); font-weight: 550; }

.auth-aside {
  position: relative;
  padding: var(--s-7) var(--s-6);
  background:
    radial-gradient(90% 70% at 78% 12%, rgba(217, 172, 85, 0.15), transparent 62%),
    linear-gradient(200deg, #1E1A13, var(--ink-950));
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth-aside blockquote {
  font-family: var(--face-display);
  font-size: var(--t-lg);
  line-height: 1.34;
  letter-spacing: -0.018em;
  max-width: 26ch;
}
.auth-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-6); }
.auth-tile {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-tight);
  background: rgba(0, 0, 0, 0.2);
}
.auth-tile b { display: block; font-family: var(--face-num); font-size: var(--t-md); letter-spacing: -0.02em; }
.auth-tile span { font-size: var(--t-xs); color: var(--tx-mute); }

.seed-note {
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--line-firm);
  border-radius: var(--r-tight);
  font-size: var(--t-xs);
  color: var(--tx-mute);
  line-height: 1.6;
}
.seed-note code { font-family: var(--face-num); color: var(--brass-lit); }

@media (max-width: 940px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}

/* --- Role picker (register) -------------------------------------------- */
.role-pick { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-opt {
  padding: var(--s-4);
  border: 1px solid var(--line-firm);
  border-radius: var(--r-tight);
  cursor: pointer;
  transition: all var(--quick);
}
.role-opt:hover { border-color: var(--line-loud); }
.role-opt input { position: absolute; opacity: 0; }
.role-opt:has(input:checked) {
  border-color: var(--brass);
  background: rgba(217, 172, 85, 0.08);
}
.role-opt b { display: block; font-size: var(--t-sm); font-weight: 600; }
.role-opt span { font-size: var(--t-xs); color: var(--tx-mute); }

/* --- Wizard (onboarding) ------------------------------------------------ */
.wizard { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.wizard-steps { list-style: none; display: grid; gap: 2px; position: sticky; top: var(--s-5); }
.wizard-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: var(--s-3);
  padding: 11px var(--s-3);
  border-radius: var(--r-tight);
  align-items: start;
}
.wizard-step[data-state="current"] { background: var(--ink-800); }
.wizard-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-loud);
  font-family: var(--face-num);
  font-size: 11px;
  color: var(--tx-mute);
}
.wizard-step[data-state="done"] .wizard-mark { background: var(--st-ready); border-color: var(--st-ready); color: #06170D; }
.wizard-step[data-state="current"] .wizard-mark { background: var(--brass); border-color: var(--brass); color: #241A05; }
.wizard-step b { font-size: var(--t-sm); font-weight: 550; display: block; }
.wizard-step[data-state="todo"] b { color: var(--tx-mute); }
.wizard-step span { font-size: var(--t-xs); color: var(--tx-faint); }
@media (max-width: 880px) {
  .wizard { grid-template-columns: minmax(0, 1fr); }
  .wizard-steps { position: static; grid-auto-flow: column; overflow-x: auto; }
  .wizard-step { min-width: 190px; }
}

/* --- Linen sections invert the whole component scope ---------------------
   Panels, key/value lists and hairlines all read from dark-mode tokens by
   default. Inside a printed-paper section they must flip, or the labels
   drop to 3:1 contrast on white. */
.section-linen .panel-head,
.section-linen .panel-foot,
.section-linen .kv-row,
.section-linen .tabs { border-color: var(--line-paper); }
.section-linen .panel-foot { background: rgba(27, 23, 16, 0.03); }
.section-linen .kv-row dt { color: var(--on-linen-mute); }
.section-linen .kv-row dd { color: var(--on-linen); }
.section-linen .quote { background: #fff; }
.section-linen .metric { background: #fff; border-color: var(--line-paper); }
.section-linen .metric-label,
.section-linen .metric-foot { color: var(--on-linen-mute); }
.section-linen .notice {
  background: rgba(27, 23, 16, 0.04);
  border-color: var(--line-paper);
  color: var(--on-linen);
}
.section-linen .faq details { border-color: var(--line-paper); }
.section-linen .faq p { color: var(--on-linen-soft); }
.section-linen ol li { color: var(--on-linen-soft); }
.section-linen ol li b { color: var(--on-linen); }

.section-linen .tiny.faint,
.section-linen .small.muted { color: var(--on-linen-mute); }
