/* HailAFare app — the desktop showcase (agent B, app_contract.md §6). On viewports of 900 px and up the page becomes a
   presentation: a centred phone bezel (430 × 880, 44 px radius, a notch, a status bar whose clock reads the demo
   clock) around the live app (.phone > .app), with the presentation panels in #showcase-left and #showcase-right
   (max 440 px each; the left one hides under 1200 px and its lines move into the right panel). Below 900 px none of
   this applies: the app is the whole viewport and the shell's own CSS rules. Tokens only, light and dark; the bezel is
   a device and stays dark in both themes. The showcase never traps focus and is aria-hidden to nothing. */
@media (min-width: 900px) {
  body.app-body { overflow: auto; }
  .showcase { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; justify-items: center; gap: var(--s-8); min-height: 100dvh; height: auto; padding: var(--s-6) var(--s-6); background: var(--bg); background-image: radial-gradient(circle at 50% 40%, var(--estimate-tint) 0, transparent 55%); }
  .showcase-side { width: 100%; max-width: 440px; max-height: calc(100dvh - 48px); overflow: auto; display: grid; gap: var(--s-3); align-content: start;   /* start, not center: a centred panel taller than the viewport clips its top (seen on 1280×720 laptops, 2026-11-07); the grid row already centres the panel when it is shorter */ color: var(--ink); font-size: var(--fs-15); line-height: var(--lh-body); scrollbar-width: thin; }
  .showcase-side:empty { display: none; }
  #showcase-left { justify-self: end; }
  #showcase-right { justify-self: start; }

  /* the phone: 430 × 880 screen (shorter only when the viewport is), padding for the status bar, the bezel as rings */
  .phone { position: relative; flex: none; width: 430px; height: min(880px, calc(100dvh - 48px)); min-height: 560px; box-sizing: border-box; padding-top: 44px; border-radius: 44px; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 10px #0B0F1A, 0 0 0 12px #3A4661, 0 30px 70px rgba(11, 15, 26, .45); display: block; }
  .phone > .app { height: 100%; max-width: 430px; border-radius: 0; }
  .phone::before { content: ""; position: absolute; left: 50%; top: 10px; width: 118px; height: 30px; transform: translateX(-50%); border-radius: 15px; background: #0B0F1A; z-index: 3; pointer-events: none; }
  .phone-status { position: absolute; left: 0; right: 0; top: 0; height: 44px; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0; color: #FFFFFF; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
  .phone-status .ps-right { display: inline-flex; align-items: center; gap: 6px; }
  .phone-status svg { width: 20px; height: 14px; display: block; }
  .phone:has(.app.bare) { background: var(--bg); }          /* onboarding hides the navy top bar: the status strip follows */
  .phone:has(.app.bare) .phone-status { color: var(--ink); }

  /* the presentation panels */
  .sc-brand { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); line-height: 1.1; }
  .sc-brand span { color: var(--amber); }
  .sc-title { margin: 0; font-size: var(--fs-20); font-weight: 800; color: var(--ink); }
  .sc-lede { margin: 0; font-size: 14px; max-width: 44ch; }
  .sc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-2); }
  .sc-card h3 { margin: 0; font-size: var(--fs-15); font-weight: 800; }
  .sc-qr { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
  .sc-qr img { width: 148px; height: 148px; border-radius: 10px; background: #FFFFFF; padding: 6px; box-sizing: border-box; border: 1px solid var(--line); image-rendering: pixelated; }
  .sc-qr p { margin: 0; font-size: var(--fs-15); font-weight: 600; }
  .sc-qr small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-13); margin-top: 4px; }
  .sc-buttons { display: grid; gap: var(--s-2); }
  .sc-buttons .btn { width: 100%; white-space: normal; }
  .sc-buttons .btn[aria-busy="true"] { opacity: .7; }
  .sc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-13); line-height: 1.35; }
  .sc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
  .sc-list .chip { margin-top: 1px; }
  .sc-links { margin: 0; font-size: var(--fs-15); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
  .sc-links a { font-weight: 700; min-height: var(--tap); display: inline-flex; align-items: center; }
  .sc-note { margin: 0; font-size: var(--fs-13); color: var(--muted); }
  .sc-status { font-size: var(--fs-13); color: var(--muted); min-height: 1.3em; margin: 0; }
  /* v2.2: the market picker */
  .sc-label { font-size: var(--fs-13); font-weight: 700; color: var(--muted); }
  .sc-markets select.input { width: 100%; min-width: 0; }
}
/* under 1200 px there is room for the phone and one panel: the left panel hides and its lines appear in the right one */
@media (min-width: 900px) and (max-width: 1199px) {
  .showcase { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); }
  #showcase-left { display: none; }
  #showcase-right { justify-self: start; max-width: 400px; }
}
@media (min-width: 1200px) {
  .sc-compact { display: none; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .sc-buttons .btn { transition: none; }
}
