/* ==========================================================================
   Bookrodera - the public website and the sign-in pages.

   Loaded after app.css on the homepage and on the restaurant / platform
   sign-in and sign-up pages only, so the restaurant panel and the customer
   pages are untouched. Same tokens as app.css (orange identity, charcoal
   text); written mobile first. No inline style or script anywhere - the
   Content-Security-Policy (style-src 'self') stays as it is.

   Contrast: white text sits on --site-cta (#c6431e, about 5:1), not on the
   lighter brand orange (about 3.7:1), so buttons pass WCAG AA at any size.
   ========================================================================== */

.site, .auth-split {
  --site-cta:        #c6431e;
  --site-cta-hover:  #a8381a;
  --site-ink:        #16191d;
  --site-soft:       #4b5563;
  --site-muted:      #5f6672;
  --site-line:       #e7e8eb;
  --site-tint:       #f7f7f8;
  --site-warm:       #fff6f2;
  --site-max:        1180px;
  --site-radius:     18px;
}

.site { background: #fff; color: var(--site-ink); }
.site a { color: var(--site-cta); }
.site a:hover { color: var(--site-cta-hover); }

.site-container { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .site-container { padding: 0 1.5rem; } }

.site-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; border-radius: 10px; background: #fff; color: var(--site-ink);
  font-weight: 700; text-decoration: none;
}
.site-skip:focus { top: .75rem; box-shadow: var(--shadow-lg); }

/* Buttons for the website: the app's .btn, with an AA-contrast orange. */
.site .btn--primary, .auth-split .btn--primary { background: var(--site-cta); border-color: var(--site-cta); color: #fff; }
.site .btn--primary:hover, .auth-split .btn--primary:hover { background: var(--site-cta-hover); border-color: var(--site-cta-hover); color: #fff; }
.site .btn--outline { background: #fff; color: var(--site-ink); border-color: var(--border-dark); }
.site .btn--outline:hover { border-color: var(--site-ink); color: var(--site-ink); }
.site-btn-lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }

/* The Bookrodera mark: the app's orange square with a B. */
.site-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; color: var(--site-ink); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.01em; text-decoration: none;
}
.site-logo:hover { color: var(--site-ink); }
.site-logo__mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: var(--brand); color: #fff; font-size: 1.05rem; font-weight: 800;
}

/* -------------------------------------------------------- header / nav -- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--site-line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }

.site-nav__links { display: none; }
.site-nav__actions { display: none; }

/* Phone: a disclosure that works without JavaScript. */
.site-menu { position: relative; }
.site-menu > summary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 46px; min-height: 46px; padding: 0 .85rem;
  border: 1px solid var(--border-dark); border-radius: 12px;
  background: #fff; color: var(--site-ink); font-weight: 650; cursor: pointer; list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary .icon { width: 20px; height: 20px; }
.site-menu[open] > summary { border-color: var(--site-ink); }
.site-menu__panel {
  position: absolute; right: 0; top: calc(100% + .5rem);
  width: min(300px, calc(100vw - 2rem));
  padding: .5rem; border: 1px solid var(--site-line); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.site-menu__panel a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 .85rem;
  border-radius: 10px; color: var(--site-ink); font-weight: 600; text-decoration: none;
}
.site-menu__panel a:not(.btn):hover { background: var(--site-tint); }
.site-menu__panel .btn { width: 100%; margin-top: .35rem; }

@media (min-width: 900px) {
  .site-menu { display: none; }
  .site-nav__links { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
  .site-nav__links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
    border-radius: 10px; color: var(--site-soft); font-weight: 600; text-decoration: none;
  }
  .site-nav__links a:hover { color: var(--site-ink); background: var(--site-tint); }
  .site-nav__actions { display: flex; align-items: center; gap: .5rem; }
  .site-nav__actions .btn { min-height: 44px; }
  .site-nav__signin { color: var(--site-ink) !important; font-weight: 650; text-decoration: none; padding: 0 .8rem;
    display: inline-flex; align-items: center; min-height: 44px; border-radius: 10px; }
  .site-nav__signin:hover { background: var(--site-tint); }
}

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

.site-hero { position: relative; overflow: hidden; padding: 2.75rem 0 1.5rem;
  background: linear-gradient(180deg, var(--site-warm) 0%, #fff 70%); }
.site-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.site-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  padding: .3rem .75rem; border-radius: 999px; border: 1px solid #f6d3c6;
  background: #fff; color: var(--site-cta); font-size: .85rem; font-weight: 700;
}
.site-eyebrow .icon { width: 16px; height: 16px; }
.site-hero h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 7.4vw, 3.5rem); line-height: 1.07;
  letter-spacing: -.03em; font-weight: 800; color: var(--site-ink); overflow-wrap: break-word;
}
.site-hero__lead { max-width: 34rem; margin: 0 0 1.75rem; color: var(--site-soft); font-size: clamp(1.05rem, 2.6vw, 1.2rem); line-height: 1.6; }
.site-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-hero__cta .btn { flex: 1 1 12rem; }
.site-hero__note { margin: 1rem 0 0; color: var(--site-muted); font-size: .92rem; }

@media (min-width: 960px) {
  .site-hero { padding: 4.5rem 0 2.5rem; }
  .site-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; }
  .site-hero__cta .btn { flex: 0 0 auto; }
}

/* ---------------------------------------------- product illustration -- */
/* Drawn with the same parts as the real screens: the restaurant's order
   queue and a customer's menu on a phone. Decorative (aria-hidden); the
   figure has a text caption for screen readers. */

.mock { position: relative; margin: 0; }
.mock__window {
  position: relative; border: 1px solid var(--site-line); border-radius: 16px;
  background: #fff; box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .25), 0 8px 20px rgba(16, 24, 40, .06);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--site-line); background: var(--site-tint); }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #d7d9de; }
.mock__url { margin-left: .5rem; flex: 1; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--site-line); }
.mock__body { display: grid; grid-template-columns: 1fr; }
.mock__side { display: none; }
.mock__main { padding: 1rem; }
.mock__title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.mock__h { font-weight: 800; font-size: 1rem; }
.mock__tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.mock__tab { padding: .2rem .6rem; border-radius: 999px; background: var(--site-tint); color: var(--site-soft); font-size: .72rem; font-weight: 700; }
.mock__tab--on { background: var(--brand); color: #fff; }
.mock__orders { display: grid; gap: .6rem; }
.mock__order { padding: .7rem .8rem; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; }
.mock__order-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; }
.mock__order-head strong { font-size: .9rem; }
.mock__pill { padding: .1rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.mock__pill--new { background: var(--brand-soft); color: var(--site-cta); }
.mock__pill--paid { background: var(--green-bg); color: var(--green); }
.mock__pill--prep { background: var(--blue-bg); color: var(--blue); }
.mock__lines { margin: .45rem 0 .55rem; color: var(--site-soft); font-size: .78rem; line-height: 1.5; }
.mock__actions { display: flex; gap: .4rem; }
.mock__btn { flex: 1; padding: .35rem .5rem; border-radius: 8px; font-size: .72rem; font-weight: 800; text-align: center; border: 1px solid var(--border-dark); color: var(--site-ink); background: #fff; }
.mock__btn--go { background: var(--brand); border-color: var(--brand); color: #fff; }

.mock__phone {
  display: none; position: absolute; right: -6px; bottom: -28px; width: 190px;
  padding: 10px; border-radius: 28px; background: #1f2937;
  box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .45);
}
.mock__screen { border-radius: 20px; background: #fff; overflow: hidden; }
.mock__cover { height: 64px; background: linear-gradient(135deg, #f8b49b, var(--brand)); }
.mock__venue { padding: .55rem .7rem .3rem; }
.mock__venue strong { display: block; font-size: .82rem; }
.mock__venue span { display: block; margin-top: .1rem; color: var(--site-muted); font-size: .66rem; line-height: 1.4; }
.mock__dish { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin: 0 .7rem; padding: .45rem 0; border-top: 1px solid var(--site-line); font-size: .7rem; }
.mock__add { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 800; font-size: .8rem; line-height: 1; }
.mock__basket { margin: .5rem .6rem .7rem; padding: .45rem .6rem; border-radius: 10px; background: var(--site-cta); color: #fff; font-size: .7rem; font-weight: 800; display: flex; justify-content: space-between; }

@media (min-width: 560px) {
  .mock { padding: 0 2.5rem 1.5rem 0; }
  .mock__phone { display: block; }
}
@media (min-width: 720px) {
  .mock__body { grid-template-columns: 150px 1fr; }
  .mock__side { display: block; padding: 1rem .75rem; border-right: 1px solid var(--site-line); background: #fcfcfd; }
  .mock__nav { display: flex; align-items: center; gap: .45rem; padding: .4rem .5rem; border-radius: 8px; color: var(--site-soft); font-size: .76rem; font-weight: 650; }
  .mock__nav .icon { width: 15px; height: 15px; }
  .mock__nav--on { background: var(--brand-soft); color: var(--site-cta); }
  .mock__orders { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ sections -- */

.site-section { padding: 3.5rem 0; }
.site-section--tint { background: var(--site-tint); border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
.site-section__head { max-width: 40rem; margin: 0 0 2rem; }
.site-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.site-kicker { margin: 0 0 .5rem; color: var(--site-cta); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-section h2 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 4.6vw, 2.35rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.site-section__lead { margin: 0; color: var(--site-soft); font-size: 1.05rem; }
@media (min-width: 960px) { .site-section { padding: 5rem 0; } }

/* Feature cards */
.site-features { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .site-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.site-feature {
  height: 100%; padding: 1.5rem; border: 1px solid var(--site-line); border-radius: var(--site-radius);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.site-feature:hover { border-color: #f1c3b2; box-shadow: 0 12px 30px -18px rgba(198, 67, 30, .45); }
.site-feature__icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 14px; background: var(--brand-soft); color: var(--site-cta);
}
.site-feature__icon .icon { width: 24px; height: 24px; }
.site-feature h3 { margin: 0 0 .4rem; font-size: 1.12rem; font-weight: 750; }
.site-feature p { margin: 0; color: var(--site-soft); }
.site-feature__note { display: block; margin-top: .6rem; color: var(--site-muted); font-size: .86rem; }

/* How it works */
.site-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .site-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .site-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-step {
  position: relative; height: 100%; padding: 1.5rem 1.25rem 1.35rem;
  border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff;
}
.site-step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: .9rem;
  border-radius: 50%; background: var(--site-ink); color: #fff; font-weight: 800;
}
.site-step__icon { position: absolute; right: 1.25rem; top: 1.6rem; color: #d9a08b; }
.site-step__icon .icon { width: 26px; height: 26px; }
.site-step h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 750; }
.site-step p { margin: 0; color: var(--site-soft); font-size: .96rem; }

/* Pricing - three cards (Booking, Ordering, All-in-One), read from the plan rows.
   Ordering and All-in-One carry a Standard / Zero Commission switch (radios;
   pricing.js shows the picked option, and without it both are listed). */
.price-cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; } }
.price-card {
  display: flex; flex-direction: column; padding: 1.6rem 1.4rem;
  border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff;
}
.price-card--both { border: 2px solid var(--site-cta); box-shadow: 0 18px 40px -24px rgba(198, 67, 30, .55); }
.price-card__name { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 800; }
.price-card__desc { margin: 0 0 1rem; color: var(--site-soft); font-size: .95rem; }

.price-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 1rem; padding: 4px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-tint); }
.price-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.price-switch__label {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .35rem .5rem;
  border-radius: 9px; color: var(--site-soft); font-size: .92rem; font-weight: 700; text-align: center; cursor: pointer;
}
.price-switch__input:checked + .price-switch__label { background: #fff; color: var(--site-ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.price-switch__input:focus-visible + .price-switch__label { outline: 3px solid var(--site-cta); outline-offset: 1px; }
/* Without the switch (no JavaScript) both options are stacked, so each is labelled. */
.price-card:not(.has-switch) .price-switch { display: none; }
.price-card.has-switch .price-option__variant { display: none; }

.price-option { padding: 0 0 1rem; }
.price-option + .price-option { padding-top: 1rem; border-top: 1px dashed var(--site-line); }
.price-option[hidden] { display: none; }
.price-card.has-switch .price-option + .price-option { padding-top: 0; border-top: 0; }
.price-option__variant { margin: 0 0 .1rem; color: var(--site-cta); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.price-option__price { margin: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.price-option__price span { color: var(--site-muted); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.price-option__commission { margin: .25rem 0 .5rem; font-weight: 700; }
.price-option__commission--plus { color: var(--site-cta-hover); }
.price-option__pay { margin: 0 0 1rem; color: var(--site-soft); font-size: .9rem; }
.price-option .btn { margin-top: .5rem; }

.price-card__list { margin: .5rem 0 0; padding: .85rem 0 0; border-top: 1px solid var(--site-line); list-style: none; }
.price-card__list li { display: flex; align-items: flex-start; gap: .55rem; padding: .32rem 0; font-size: .94rem; }
.price-card__list .icon { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.price-card__yes .icon { color: var(--green); }
.price-card__no { color: var(--site-muted); }
.price-card__no .icon { color: #9aa1ab; }
.site-pricing__note { margin: 1.25rem 0 0; color: var(--site-muted); font-size: .92rem; text-align: center; }
.site-pricing__more { margin: 1.25rem 0 0; text-align: center; }
.site-pricing__more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Pricing page: narrower reading sections, the cost facts, comparison, calculator, FAQ. */
.site-pricing-hero h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.site-narrow { max-width: 820px; }
.site-h2-sm { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.site-facts { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.site-facts li { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--site-line); border-radius: 14px; background: #fff; }
.site-facts .icon { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--site-cta); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: .8rem .9rem; border-bottom: 1px solid var(--site-line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--site-tint); font-size: 1rem; font-weight: 800; }
.compare tbody th { width: 38%; font-weight: 600; color: var(--site-ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare__line { display: block; }
.compare__na { color: var(--site-muted); }
.compare .icon { width: 20px; height: 20px; }
.compare__yes { color: var(--green); }
.compare__no { color: #9aa1ab; }

.calc { padding: 1.25rem; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: #fff; }
.calc__label { display: block; margin: 0 0 .5rem; font-weight: 700; }
.calc__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.calc__input { display: flex; align-items: center; flex: 1 1 14rem; min-height: 52px; padding: 0 .9rem; border: 1px solid var(--border-dark); border-radius: 12px; background: #fff; }
.calc__input:focus-within { border-color: var(--site-cta); box-shadow: 0 0 0 3px rgba(198, 67, 30, .2); }
.calc__input span { color: var(--site-muted); font-weight: 700; }
.calc__input input { flex: 1; min-width: 0; height: 50px; margin-left: .35rem; padding: 0; border: 0; outline: 0; font: inherit; font-size: 1.15rem; font-weight: 700; background: transparent; }
.calc__help { margin: .6rem 0 0; color: var(--site-muted); font-size: .9rem; }
.calc__error { margin: .5rem 0 0; color: var(--red); font-weight: 600; }
.calc__results { margin-top: 1.25rem; }
.calc-table { width: 100%; border-collapse: collapse; border: 1px solid var(--site-line); border-radius: 14px; overflow: hidden; background: #fff; font-size: .95rem; }
.calc-table th, .calc-table td { padding: .75rem .8rem; border-bottom: 1px solid var(--site-line); text-align: right; }
.calc-table th:first-child { text-align: left; }
.calc-table thead th { background: var(--site-tint); font-size: .85rem; color: var(--site-soft); }
.calc-table tbody th { font-weight: 650; }
.calc-table tr.is-cheapest th, .calc-table tr.is-cheapest td { background: var(--site-warm); }
.calc-badge { display: inline-block; margin-left: .35rem; padding: .1rem .5rem; border-radius: 999px; background: #e7f6ec; color: #166534; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.calc-badge[hidden] { display: none; }
.calc__breakeven { margin: 1rem 0 0; }
.calc__note { margin: 1rem 0 0; color: var(--site-muted); font-size: .9rem; }
@media (max-width: 520px) {
  .calc-table thead { display: none; }
  .calc-table, .calc-table tbody, .calc-table tr { display: block; width: 100%; }
  .calc-table tr { padding: .6rem .8rem; border-bottom: 1px solid var(--site-line); }
  .calc-table th, .calc-table td { display: flex; justify-content: space-between; padding: .2rem 0; border: 0; text-align: left; }
  .calc-table td::before { color: var(--site-muted); font-weight: 600; }
  .calc-table td[data-calc-cell="price"]::before { content: "Subscription"; }
  .calc-table td[data-calc-cell="commission"]::before { content: "Commission"; }
  .calc-table td[data-calc-cell="total"]::before { content: "Total"; }
  .calc-table tbody th { display: block; }
}

.faq { display: grid; gap: .6rem; }
.faq__item { border: 1px solid var(--site-line); border-radius: 14px; background: #fff; }
.faq__item summary { display: flex; align-items: center; min-height: 52px; padding: .75rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; margin-left: auto; padding-left: 1rem; color: var(--site-cta); font-size: 1.3rem; font-weight: 700; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; padding: 0 1.1rem 1rem; color: var(--site-soft); }

/* Final call to action */
.site-cta { padding: 0 0 3rem; }
.site-cta__box {
  display: grid; gap: 1.25rem; align-items: center; padding: 2rem 1.5rem; border-radius: 24px;
  background: var(--site-ink); color: #fff;
}
.site-cta__box h2 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 4.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.site-cta__box p { margin: 0; color: #d1d5db; }
@media (min-width: 760px) {
  .site-cta { padding: 0 0 4.5rem; }
  .site-cta__box { grid-template-columns: 1fr auto; padding: 2.75rem 3rem; }
}

/* Footer */
.site-footer { padding: 2.5rem 0 2rem; border-top: 1px solid var(--site-line); background: #fff; }
.site-footer__grid { display: grid; gap: 1.5rem; }
.site-footer__about { max-width: 22rem; margin: .5rem 0 0; color: var(--site-soft); font-size: .95rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--site-soft); font-weight: 600; text-decoration: none; border-radius: 8px; }
.site-footer__nav a:hover { color: var(--site-ink); background: var(--site-tint); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--site-line); color: var(--site-muted); font-size: .88rem; }
.site-footer__base a { color: var(--site-muted); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ============================================================ sign-in ===
   Restaurant and platform sign-in (and sign-up) share this split layout:
   on a phone the form comes first; from 960px a product panel sits beside it. */

.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--site-tint); color: var(--site-ink); }
.auth-split__main { display: flex; flex-direction: column; align-items: center; padding: 1.25rem 1rem 2rem; }
.auth-split__top { width: 100%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.auth-split__top a.auth-split__back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--site-soft); font-weight: 600; text-decoration: none; font-size: .95rem; }
.auth-split__top a.auth-split__back:hover { color: var(--site-ink); }
.auth-split__card {
  width: 100%; max-width: 440px; padding: 1.75rem 1.35rem;
  border: 1px solid var(--site-line); border-radius: 20px; background: #fff;
  box-shadow: 0 24px 50px -30px rgba(16, 24, 40, .35);
}
@media (min-width: 480px) { .auth-split__card { padding: 2.25rem 2rem; } }
.auth-split__card h1 { margin: 0 0 .35rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.auth-split__sub { margin: 0 0 1.5rem; color: var(--site-soft); }
.auth-split__card .field label { font-weight: 650; }
.auth-split__card input[type=email], .auth-split__card input[type=password], .auth-split__card input[type=text] { min-height: 50px; font-size: 16px; border-radius: 12px; }
.auth-split__card .btn--lg { min-height: 52px; border-radius: 12px; }
.auth-split__alt { margin: 1.5rem 0 0; text-align: center; color: var(--site-soft); }
.auth-split__alt a { font-weight: 700; color: var(--site-cta); }
.auth-split__legal { width: 100%; max-width: 440px; margin: 1.25rem 0 0; text-align: center; color: var(--site-muted); font-size: .86rem; }
.auth-split__legal a { color: var(--site-muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 .35rem; }

/* "Forgot password?" under the password: a full 44px tap target. */
.auth-forgot { margin: .2rem 0 0; text-align: right; }
.auth-forgot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 650; color: var(--site-cta); }

/* The smaller account pages (reset password, confirm email, sign out, legal):
   the same card and logo, one centred column, no product panel. */
.auth-split--solo .auth-split__main { justify-content: center; }
.auth-split--solo .auth-split__top { display: flex; justify-content: center; }
.auth-split--solo .auth-split__card--wide { max-width: 560px; }
.auth-split--solo .auth-split__card h1 { font-size: 1.4rem; text-align: center; }
.auth-split__card .auth__lead { text-align: center; }
.auth-split__card .auth__foot { margin-top: 1.25rem; text-align: center; color: var(--site-muted); font-size: .9rem; }
.auth-split__card .auth__foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; color: var(--site-cta); font-weight: 650; }
.auth-split__card a:not(.btn) { color: var(--site-cta); }
.auth-split__card .btn + .btn, .auth-split__card .btn + form { margin-top: .6rem; }

/* Password with a show/hide button (the button is drawn hidden; site.js shows it). */
.pw { position: relative; }
.pw input { padding-right: 5.25rem; }
.pw__toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  min-width: 64px; min-height: 44px; padding: 0 .7rem;
  border: 0; border-radius: 9px; background: transparent; color: var(--site-soft);
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.pw__toggle:hover { background: var(--site-tint); color: var(--site-ink); }

/* A small, quiet note (session expired) - not a large warning. */
.auth-note {
  display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 1.25rem; padding: .7rem .85rem;
  border: 1px solid #f3d6ca; border-radius: 12px; background: var(--site-warm); color: var(--site-ink); font-size: .93rem;
}
.auth-note .icon { width: 18px; height: 18px; flex: none; margin-top: .12rem; color: var(--site-cta); }

/* Product panel beside the form */
.auth-split__aside { display: none; }
@media (min-width: 960px) {
  .auth-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth-split__aside {
    order: -1; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: 2.5rem 3rem; overflow: hidden;
    background: radial-gradient(1200px 500px at 0% 0%, #ffe9e0 0%, transparent 60%), linear-gradient(180deg, #fff7f3, #fdeee9);
    border-right: 1px solid #f3d6ca;
  }
  .auth-split__main { justify-content: center; padding: 2.5rem 2rem; }
  .auth-split__top { display: none; }
  .auth-split--solo { grid-template-columns: minmax(0, 1fr); }
}
.auth-aside__pitch h2 { margin: 0 0 .75rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.auth-aside__pitch p { margin: 0; max-width: 30rem; color: var(--site-soft); font-size: 1.05rem; }
.auth-aside__list { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.auth-aside__list li { display: flex; align-items: center; gap: .55rem; color: var(--site-ink); font-weight: 600; }
.auth-aside__list .icon { width: 18px; height: 18px; color: var(--site-cta); }
.auth-aside__foot { color: var(--site-muted); font-size: .88rem; }
.auth-split__aside .mock { max-width: 560px; }

/* Platform console: the same layout in the console's own indigo. */
.is-superadmin .auth-split { --site-cta: #4338ca; --site-cta-hover: #3730a3; --site-warm: #eef2ff; }
.is-superadmin .site-logo__mark { background: #4338ca; }
.is-superadmin .auth-split__aside {
  background: radial-gradient(1100px 480px at 0% 0%, #e0e7ff 0%, transparent 60%), linear-gradient(180deg, #f5f7ff, #eef2ff);
  border-right-color: #c7d2fe;
}
.is-superadmin .auth-note { border-color: #c7d2fe; }
.auth-console { display: grid; gap: .75rem; max-width: 440px; }
.auth-console__row { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid #c7d2fe; border-radius: 14px; background: #fff; font-weight: 650; }
.auth-console__row .icon { width: 20px; height: 20px; color: #4338ca; }

/* ============================================================ focus ===
   A keyboard focus ring that keeps 3:1 against every background used on
   these pages (the app-wide ring is a pale orange); indigo on the console,
   white on the dark call-to-action box. Form fields keep their own ring. */
html { scroll-padding-top: 5.5rem; }   /* in-page links and focus clear the sticky header */
.site :is(a, button, summary):focus-visible,
.auth-split :is(a, button, summary):focus-visible { outline: 3px solid var(--site-cta); outline-offset: 2px; }
.site-cta__box :is(a, button):focus-visible { outline-color: #fff; }
#main:focus { outline: none; }   /* the skip link's target */

/* The flash message's dismiss button: full contrast and a 44px target. */
.site .alert__close, .auth-split .alert__close { opacity: 1; min-width: 44px; min-height: 44px; margin: -.5rem -.4rem -.5rem 0; }

/* Launch trial offer (layouts/trial_offer.php) - no countdown, no scarcity */
.trial-offer { padding-top: 1rem; }
.trial-offer__box {
  display: grid; gap: .9rem; padding: 2rem 1.5rem; border-radius: 24px; text-align: center;
  background: var(--brand-soft); border: 2px solid var(--brand);
}
.trial-offer__kicker { margin: 0; font-weight: 700; color: var(--site-cta); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.trial-offer__title { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; color: var(--site-ink); }
.trial-offer__points { display: grid; gap: .45rem; justify-content: center; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.trial-offer__points li { display: flex; gap: .5rem; align-items: flex-start; text-align: left; }
.trial-offer__points li svg { flex: 0 0 auto; margin-top: .2rem; }
.trial-offer__then { margin: 0 auto; max-width: 40rem; color: var(--site-soft); }
.trial-offer__note { margin: 0; font-size: .9rem; color: var(--site-soft); }
