/* app.css — booking.emm.sa page-local styles on top of tokens/base/components. */
.logo-mark .ic, .nav-brand .ic { width: 22px; height: 22px; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.wa-btn { background: #0e7a45; color: #fff; }
.wa-btn:hover { background: #0b6339; }
.inline-form { display: inline; }
.stack { display: grid; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: var(--space-md); align-items: end; }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-tight { padding-block: var(--space-2xl); }
.sec-title { text-align: center; margin-bottom: var(--space-sm); }
.sec-sub { text-align: center; color: var(--text-muted); margin-bottom: var(--space-2xl); }
.faq-wrap { max-width: var(--container-narrow); margin-inline: auto; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid-4 { grid-template-columns: 1fr; } }
.steps-light .step { color: var(--on-navy); }
.steps-light .step::before { background: var(--accent); color: #fff; }
.steps-light .step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.steps-light .step p { color: var(--on-navy-muted); }
.cta-box h1, .cta-box h2 { color: var(--on-navy); } /* qa:cta-box — h2 was navy-on-navy (invisible) */
.cta-box .text-muted { color: var(--on-navy-muted); }
.cta-box { background: var(--navy-2); color: var(--on-navy); border-radius: var(--radius-lg); padding: var(--space-2xl); text-align: center; }
.cta-box .lead { color: var(--on-navy-muted); }
.card-center { text-align: center; padding: var(--space-2xl); }
.card-center h1 { font-size: var(--text-2xl); }
.waitlist-form { text-align: start; margin-top: var(--space-lg); }
.waitlist-form .label, .waitlist-form .hint { color: var(--on-navy); }
.waitlist-form .input { background: var(--navy-700); border-color: var(--navy-500); color: var(--on-navy); }
.cta-box .waitlist-form { color: var(--on-navy); }
.price-per { font-size: var(--text-sm); color: var(--text-muted); }
.price-card.current { outline: 2px solid var(--success); }
.pay-badge { font-weight: var(--weight-bold); }
.alert { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); margin-block: var(--space-md); font-size: var(--text-sm); border: 1px solid transparent; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: var(--success); }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: var(--danger); }
.alert-warning { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); border-color: var(--warning); }
.disclosure { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); font-size: var(--text-sm); text-align: start; }
.disclosure p { margin-bottom: var(--space-2xs); }
.draft-banner { background: var(--warning); color: #1a1a2e; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-weight: var(--weight-bold); margin-bottom: var(--space-lg); }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-xl); }
.legal p, .legal li { line-height: 1.8; }
.contact-list li { margin-bottom: var(--space-2xs); }
.footer-legal li { font-size: var(--text-sm); }
.footer .footer-grid > div:first-child { color: var(--text-muted); }
.footer-legal a { text-decoration: underline; }
/* public booking page */
.biz-head h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2xs); }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.steps-inline { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-block: var(--space-lg); }
.chip { font-size: var(--text-xs); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.chip.done { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); border-color: var(--accent); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.book-grid .card-span { grid-column: 1 / -1; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.provider-pick { font-size: var(--text-lg); }
.days-row { display: flex; gap: var(--space-2xs); overflow-x: auto; padding-bottom: var(--space-2xs); margin-bottom: var(--space-md); }
.day-pill { flex: 0 0 auto; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--border); text-decoration: none; color: var(--text); min-width: 92px; }
.day-pill small { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; }
.day-pill.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--space-2xs); }
.slot { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); }
.slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.book-form { margin-top: var(--space-lg); }
.wa-text { white-space: pre-wrap; background: var(--surface-2); padding: var(--space-md); border-radius: var(--radius-sm); font-family: inherit; text-align: start; }
.summary { display: grid; gap: var(--space-sm); margin-block: var(--space-lg); text-align: start; }
.summary > div { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-sm); border-bottom: 1px dashed var(--border); padding-bottom: var(--space-2xs); }
.summary dt { color: var(--text-muted); font-size: var(--text-sm); }
.summary dd { margin: 0; }
/* business app */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.page-head h1 { font-size: var(--text-2xl); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 760px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-2xs); }
.plan-name { font-size: var(--text-lg); }
.day-block { margin-bottom: var(--space-lg); }
.day-head { font-size: var(--text-md); margin-bottom: var(--space-2xs); display: flex; gap: var(--space-2xs); align-items: center; }
.actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; align-items: center; }
.actions-bar { margin-top: var(--space-lg); }
tr.bk-cancelled td, tr.bk-no_show td { opacity: .6; text-decoration: line-through; }
tr.bk-pending td:first-child { border-inline-start: 3px solid var(--warning); }
tr.bk-confirmed td:first-child { border-inline-start: 3px solid var(--success); }
.row-list { display: grid; gap: var(--space-2xs); }
.row-item { display: flex; gap: var(--space-2xs); align-items: center; padding: var(--space-2xs) 0; border-bottom: 1px solid var(--border); }
.row-form { display: flex; gap: var(--space-2xs); align-items: center; flex-wrap: wrap; }
.row-form.wrap { align-items: end; }
.grow { flex: 1 1 200px; }
.input-sm, .select-sm { padding: 8px 10px; font-size: var(--text-sm); min-height: 40px; }
.input-prefix { background: var(--surface-2); border: 1.5px solid var(--border); border-inline-end: 0; border-radius: var(--radius-sm); padding: 0 10px; display: inline-flex; align-items: center; font-size: var(--text-sm); color: var(--text-muted); }
.input-group { display: flex; }
.input-group .input { border-start-start-radius: 0; border-end-start-radius: 0; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--text-sm); margin-inline-end: var(--space-2xs); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.htmx-request .spinner, .spinner.htmx-request { display: inline-block; }

.checkout-embed{margin-top:var(--space-lg)}
.checkout-embed #stream-checkout{min-height:560px}

/* Mobile navigation (hamburger) — the desktop .nav-links is hidden ≤760px */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-md, 10px); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .nav-links { display: none; }
  .nav.nav-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm); position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-md); z-index: 50; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.08)); }
  .nav.nav-open .nav-links li { width: 100%; }
  .nav.nav-open .nav-links a, .nav.nav-open .nav-links .btn { display: block; width: 100%; text-align: start; padding: var(--space-sm) var(--space-md); }
  .nav.nav-open .theme-toggle { display: none; }
}
/* copyable code blocks (API docs / agents) */
pre.code { direction: ltr; text-align: left; background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-md, 10px); padding: var(--space-md); overflow-x: auto; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } /* qa:pre-mono */}
pre.code code { background: none; padding: 0; }
.endpoint { border: 1px solid var(--border); border-radius: var(--radius-md, 10px); padding: var(--space-lg); margin-bottom: var(--space-lg); background: var(--surface); }
.method { display: inline-block; font-family: ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2, #eef); margin-inline-end: var(--space-sm); }
.method-GET { color: #0a7d3a; } .method-POST { color: #0b5ed7; } .method-PUT, .method-PATCH { color: #8a5a0b; } /* qa:method-contrast */ [data-theme="dark"] .method-PUT, [data-theme="dark"] .method-PATCH { color: #fcd34d; } .method-DELETE { color: #a3262a; } /* qa:method-contrast */ [data-theme="dark"] .method-DELETE { color: #fca5a5; }
.key-reveal { direction: ltr; text-align: left; font-family: ui-monospace, monospace; word-break: break-all; background: var(--surface-2, #eef); padding: var(--space-md); border-radius: var(--radius-md, 10px); border: 1px dashed var(--border); }
.badge-scope { display: inline-block; font-size: 0.72rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); margin-inline-end: 4px; }
