/* BookUno Web — desktop & responsive layout
   Extends tokens.css. Same design language; adds web chrome.
*/

/* Make body fill on web (no design canvas wrap when running standalone) */
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Web root container scoping (mirrors .bu) */
.web {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  min-height: 100%;
  position: relative;
  /* Container queries so the page reflows based on its OWN width
     (e.g. inside a 375px mobile-browser preview), not the viewport. */
  container-type: inline-size;
  container-name: web;
  /* Prevent any rogue overflow (e.g. rotated phone mockups, marquees,
     decorative blobs) from creating a horizontal scrollbar on narrow
     mobile previews. */
  overflow-x: clip;
}
.web *, .web *::before, .web *::after { box-sizing: border-box; }
.web a { color: inherit; text-decoration: none; }
.web button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.web input, .web textarea, .web select { font-family: inherit; color: inherit; }
.web h1, .web h2, .web h3, .web h4 { margin: 0; letter-spacing: -0.025em; }
.web p { margin: 0; }
.web img { max-width: 100%; display: block; }

.web .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Same buttons / inputs / cards / chips as mobile (already in tokens.css under .bu).
   We re-declare the same patterns under .web so nothing depends on the mobile root. */
.web .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  background: var(--ink); color: #fff;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.web .btn:hover { transform: translateY(-1px); }
.web .btn:active { transform: scale(0.98); }
.web .btn.primary { background: var(--pri); color: #fff; box-shadow: var(--sh-pri); }
.web .btn.primary:hover { background: var(--pri-600); }
.web .btn.ghost { background: var(--chip); color: var(--ink); box-shadow: none; }
.web .btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.web .btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--muted-2); }
.web .btn.dark { background: var(--ink); color: #fff; }
.web .btn.lg { height: 52px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.web .btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.web .btn.pill { border-radius: 999px; }
.web .btn.block { width: 100%; }
.web .btn svg { width: 18px; height: 18px; }

.web .input {
  height: 48px; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
  transition: box-shadow 0.15s;
}
.web .input:focus-within { box-shadow: inset 0 0 0 2px var(--pri), 0 0 0 4px var(--pri-50); }
.web .input input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 14.5px; color: var(--ink); }
.web .input input::placeholder { color: var(--muted-2); }
.web .input.lg { height: 56px; border-radius: 14px; font-size: 15.5px; }

.web .chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-weight: 600; font-size: 13px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.web .chip:hover { background: var(--line-2); }
.web .chip.on { background: var(--ink); color: #fff; }
.web .chip.pri { background: var(--pri); color: #fff; }
.web .chip.tint { background: var(--pri-50); color: var(--pri-700); }

.web .card {
  background: #fff; border-radius: 20px;
  box-shadow: var(--sh-2);
  padding: 18px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.web .card.hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.web [data-cards="flat"] .card { box-shadow: none; border: 1px solid var(--line); background: #fff; }
.web [data-cards="tinted"] .card { box-shadow: none; background: var(--pri-50); }
.web [data-cards="elevated"] .card { box-shadow: var(--sh-3); border-radius: 24px; }

.web .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--chip); color: var(--muted);
}
.web .badge.ok { background: var(--green-bg); color: var(--green); }
.web .badge.pri { background: var(--pri-50); color: var(--pri-700); }
.web .badge.amber { background: var(--amber-bg); color: #B45309; }
.web .badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 2px; }

.web .micro { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.web .muted { color: var(--muted); }
.web .star { color: var(--amber); }

/* Shimmer & reveal: shared classnames */
.web .skel {
  background: linear-gradient(90deg, #EAE6F2 0%, #F4F1FB 50%, #EAE6F2 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 8px;
}
.web .rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  transition-delay: var(--rv-d, 0ms);
}
.web .rv.in { opacity: 1; transform: none; }
.web .press { transition: transform 0.12s; }
.web .press:active { transform: scale(0.97); }

/* Gradient placeholder — shared */
.web .gph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, var(--g-1, #C8B8FF) 0%, transparent 60%),
    radial-gradient(140% 130% at 100% 100%, var(--g-2, #FF9DB6) 0%, transparent 55%),
    linear-gradient(135deg, var(--g-3, #6B57FF) 0%, var(--g-4, #B58CFF) 100%);
  color: rgba(255,255,255,0.92);
  display: flex; align-items: flex-end;
}
.web .gph::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 110%, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}
.web .gph > * { position: relative; z-index: 1; }

/* Responsive 2-column layout helpers */
.web .col-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.web .col-2.lead-left  { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.web .col-2.lead-pri   { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.web .col-2.wide-left  { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@container web (max-width: 900px) {
  .web .col-2 { grid-template-columns: minmax(0, 1fr) !important; gap: 28px; }
}

/* ────── Top nav ────── */
.web .nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,255,0.85);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(236,233,244,0.6);
  padding-top: env(safe-area-inset-top, 0px);
  /* Own compositor layer so the frosted sticky bar doesn't lag/jitter during
     iOS momentum scrolling. */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}
.web .nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 22px;
}
.web .nav-links { display: flex; align-items: center; gap: 6px; }
.web .nav-link {
  height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.12s, color 0.12s;
}
.web .nav-link:hover { background: var(--line-2); color: var(--ink); }
.web .nav-link.act { color: var(--pri); background: var(--pri-50); }

.web .nav-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.web .nav-search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 13.5px; }
.web .nav-search .kbd { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 3px 6px; border-radius: 5px; background: var(--chip); color: var(--muted); }

.web .nav-actions { display: flex; align-items: center; gap: 8px; }
.web .icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); position: relative;
  transition: color 0.12s, box-shadow 0.12s;
}
.web .icon-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted-2); }
.web .icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--pri); border: 2px solid #fff; }

/* Mobile nav hamburger / menu (when ≤900) */
.web .nav-menu-btn { display: none; }

/* ────── Section ────── */
.web .section { padding: 56px 0; }
.web .section-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.web .section-h h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.web .section-h p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Hero — sits behind sticky nav so the nav reads transparent over the dark hero */
.web .hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1A0E4A 0%, #2B1373 60%, #3D1FA5 100%);
  color: #fff;
  margin-top: -68px;
  padding-top: 68px;
}
.web .hero-inner { max-width: 1240px; margin: 0 auto; padding: 88px 28px 72px; position: relative; }

/* Hero 2-column layout — copy on left, phone mockup animation on right. */
.web .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px;
  align-items: center;
}
.web .hero-grid .hero-phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.web .hero-grid .hero-trust {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px 22px;
  flex-wrap: wrap;
  opacity: 0.85;
}
.web .hero-grid .hero-trust-item {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
}
@container web (max-width: 1080px) {
  .web .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .web .hero-grid .hero-phone-col { order: 2; }
}
@container web (max-width: 560px) {
  /* On narrow mobile the phone stage takes too much room — hide it. */
  .web .hero-grid .hero-phone-col { display: none; }
}
.web .hero h1 {
  font-size: clamp(44px, 6.4cqi, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 920px;
}
.web .hero .lead { font-size: clamp(15px, 1.6cqi, 19px); opacity: 0.85; margin-top: 22px; max-width: 540px; }
.web .hero .grad-text {
  background: linear-gradient(90deg, #FFCFE5 0%, #C8B8FF 60%, #A8D8FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.web .hero-search {
  margin-top: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: center;
  gap: 4px;
  box-shadow: 0 24px 60px rgba(15,14,30,0.35);
  max-width: 820px;
}
.web .hero-search .field { padding: 8px 14px; min-width: 0; overflow: hidden; }
.web .hero-search .field + .field { border-left: 1px solid var(--line-2); }
.web .hero-search .field label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.web .hero-search .field input {
  width: 100%; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 2px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.web .hero-search .field input::placeholder { color: var(--muted-2); font-weight: 500; }
.web .hero-search .submit {
  height: 56px; min-width: 56px; padding: 0 22px;
  background: var(--pri); color: #fff; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--sh-pri);
}
.web .hero-search .submit:hover { background: var(--pri-600); }

/* Blobs */
.web .blob {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: 0.6;
  pointer-events: none;
}

/* Categories — desktop grid */
.web .cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.web .cat-card {
  position: relative; overflow: hidden;
  border-radius: 20px; aspect-ratio: 1.1 / 1;
  padding: 16px;
  background: #fff; box-shadow: var(--sh-2);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.18s, box-shadow 0.18s;
}
.web .cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.web .cat-card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.web .cat-card .name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.web .cat-card .count { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Storefront card grid */
.web .sf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.web .sf-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--sh-2);
  transition: transform 0.18s, box-shadow 0.18s;
}
.web .sf-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.web .sf-card .cover { height: 180px; }
.web .sf-card .body { padding: 16px; }

/* Footer */
.web .footer {
  background: #0F0E1A; color: #fff;
  padding: 64px 0 36px;
}
.web .footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; }
.web .footer h5 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 14px; margin-top: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.web .footer a { display: block; color: rgba(255,255,255,0.7); font-size: 13.5px; padding: 5px 0; }
.web .footer a:hover { color: #fff; }
.web .footer-bot { max-width: 1240px; margin: 36px auto 0; padding: 24px 28px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 14px; }

/* Footer column accordion (mobile only) */
.web .footer-chev { transition: transform 0.25s; flex-shrink: 0; opacity: 0.6; display: none; }
@container web (max-width: 900px) {
  .web .footer-chev { display: block; }
  .web .footer-col h5 { cursor: pointer; }
  .web .footer-col-body { display: none; padding-bottom: 8px; }
  .web .footer-col.open .footer-col-body { display: block; }
  .web .footer-col.open .footer-chev { transform: rotate(180deg); }
}

/* Two-column page (storefront, account) */
.web .col2 {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.web .aside-sticky { position: sticky; top: 90px; }

/* Sidebar (account & dashboard) */
.web .side {
  width: 248px; flex-shrink: 0;
  background: #fff; border-radius: 18px;
  padding: 14px;
  box-shadow: var(--sh-1);
}
.web .side-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  width: 100%; text-align: left;
}
.web .side-item:hover { background: var(--line-2); color: var(--ink); }
.web .side-item.act { background: var(--pri); color: #fff; box-shadow: 0 6px 16px var(--pri-glow); }
.web .side-group { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 14px 12px 6px; font-weight: 700; }

/* App-shell layout (account + dashboard) */
.web .shell { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; max-width: 1240px; margin: 28px auto; padding: 0 28px; }

/* Search/results page */
.web .filters-side { width: 280px; flex-shrink: 0; }
.web .results-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.web .search-shell { display: flex; gap: 28px; align-items: start; max-width: 1240px; margin: 28px auto; padding: 0 28px; }

/* ────── Responsive — mobile browser ────── */
@container web (max-width: 900px) {
  .web .nav-inner { padding: 10px 16px; gap: 12px; }
  .web .nav-search { display: none; }
  .web .nav-links { display: none; }
  .web .nav-logo { margin-right: auto; }
  .web .nav-menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
  .web .nav-actions .desktop-only { display: none; }

  .web .container { padding: 0 16px; }
  .web .section { padding: 36px 0; }
  .web .section-h h2 { font-size: 24px; }

  .web .hero-inner { padding: 56px 16px 44px; }
  .web .hero-search {
    grid-template-columns: 1fr auto;
    padding: 6px;
    gap: 6px;
  }
  .web .hero-search .field { padding: 8px 12px; }
  /* "What" takes the full first row; "Where" + compact button share the second row */
  .web .hero-search .field:first-child { grid-column: 1 / -1; }
  .web .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line-2); }
  .web .hero-search .submit {
    height: auto; min-height: 46px; width: auto; min-width: 50px;
    padding: 0 16px; align-self: stretch; border-radius: 12px;
  }

  .web .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .web .sf-grid { grid-template-columns: 1fr; gap: 16px; }
  .web .sf-gallery { grid-template-columns: 1fr !important; grid-template-rows: 200px !important; }
  .web .sf-gallery > *:not(:first-child) { display: none; }

  .web .col2 { grid-template-columns: 1fr; gap: 18px; }
  .web .aside-sticky { position: static; }
  .web .storefront-service-card {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: start !important;
    gap: 12px !important;
  }
  .web .storefront-service-card .storefront-service-price {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .web .storefront-service-card .storefront-service-book {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .web .shell { grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
  .web .side { width: 100%; }
  .web .side .desktop-side { display: none; }
  .web .search-shell { flex-direction: column; padding: 0 16px; }
  .web .filters-side { display: none; }
  .web .results-grid { grid-template-columns: 1fr; }

  /* Business onboarding split layout → stack on mobile */
  .web .onboarding-split { grid-template-columns: 1fr !important; min-height: auto !important; }
  .web .onboarding-split aside { display: none; }
  .web .onboarding-split > main { padding: 28px 20px 64px !important; }

  .web .footer .container { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
  .web .footer-bot { padding: 18px 16px 0; }
}

/* Tablet tier — between the phone stack and the desktop grid */
@container web (min-width: 641px) and (max-width: 900px) {
  .web .cats { grid-template-columns: repeat(3, 1fr); }
  .web .sf-grid { grid-template-columns: repeat(2, 1fr); }
  .web .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@container web (min-width: 901px) and (max-width: 1200px) {
  .web .cats { grid-template-columns: repeat(4, 1fr); }
  .web .sf-grid { grid-template-columns: repeat(3, 1fr); }
  .web .results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hide breakpoint helpers */
.web .show-mobile { display: none; }
@container web (max-width: 900px) {
  .web .hide-mobile { display: none !important; }
  .web .show-mobile { display: initial; }
}

/* Page transition */
.page-fade-in {
  animation: pageFadeIn 0.18s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════ Mobile-browser audit ══════════════════════ */

/* ── Mobile nav drawer (opened by the hamburger) ──
   Rendered via ReactDOM.createPortal into document.body so position:fixed
   is relative to the viewport, not the .web container-type:inline-size context. */
.nav-drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 8, 28, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-drawer-scrim.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: min(82vw, 340px);
  background: var(--bg);
  box-shadow: 0 0 60px rgba(10, 8, 28, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 18px 16px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font);
}
.nav-drawer.open { transform: none; }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 16px; border-bottom: 1px solid var(--line);
}
.nav-drawer-close {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--chip); color: var(--muted);
  border: 0; cursor: pointer;
}
.nav-drawer-links { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; }
.nav-drawer-links a {
  display: flex; align-items: center; height: 48px; padding: 0 12px;
  border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
.nav-drawer-links a.act { background: var(--pri-50); color: var(--pri); }
.nav-drawer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.nav-drawer-cta .btn { width: 100%; height: 50px; font-size: 15px; }
/* Drawer hidden on desktop */
@media (min-width: 901px) {
  .nav-drawer, .nav-drawer-scrim { display: none !important; }
}

/* ── Swipeable card rows on mobile ──────────────────────────────────
   Turns a stacked card grid into a horizontal scroll-snap carousel that
   peeks the next card. Applied to .swipe-row grids (how-it-works,
   testimonials, pricing). The !important overrides the inline grid styles. */
@container web (max-width: 760px) {
  .web .swipe-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px !important;
    margin: 0 -16px !important;
    padding: 4px 16px 16px !important;
    max-width: none !important;
    scrollbar-width: none;
  }
  .web .swipe-row::-webkit-scrollbar { display: none; }
  .web .swipe-row > * {
    scroll-snap-align: start;
    flex: 0 0 82%;
    max-width: 82%;
    min-width: 0;
  }
  /* Subtle "swipe me" hint under each carousel */
  .web .swipe-hint { display: flex; }
}
.web .swipe-hint {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.web .swipe-hint .track { width: 42px; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.web .swipe-hint .track::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  border-radius: 2px; background: var(--pri);
  animation: swipeHint 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes swipeHint {
  0%, 12% { left: 0; }
  60%, 72% { left: 60%; }
  100% { left: 0; }
}
