/* /business and /business/apply (2026-11-05): the app's own place card and
   swipe-up sheet, drawn in HTML to look like the app (SwipeCard.tsx,
   PlaceDetailsBody.tsx, 15-swipe-full-screen.css): the photo fills the whole
   card with 18px corners, glass chips top left at 8px, white words on a dark
   fade at the bottom; the sheet is the app's light page with a grabber, a
   kicker, the name, plain icon-and-word actions between hairlines and
   hairline-parted sections. The sheet stays light in both themes (Lorenzo:
   "I don't want it black"). Buttons here are never black. */

:root {
  --app-sheet-bg: #F7F5F2;
  --app-sheet-ink: #111111;
  --app-sheet-muted: rgba(17, 17, 17, 0.62);
  --app-sheet-faint: rgba(17, 17, 17, 0.42);
  --app-sheet-line: rgba(17, 17, 17, 0.1);
  --app-gold: #c9a227;
  /* Soft buttons (Lorenzo, 2026-11-05: "I hate black buttons"). */
  --soft-btn-bg: rgba(17, 17, 17, 0.07);
  --soft-btn-bg-hover: rgba(17, 17, 17, 0.11);
  --soft-btn-ink: #111111;
  --soft-btn-line: rgba(17, 17, 17, 0.12);
}
[data-theme="dark"] {
  --soft-btn-bg: rgba(247, 245, 242, 0.13);
  --soft-btn-bg-hover: rgba(247, 245, 242, 0.19);
  --soft-btn-ink: #F7F5F2;
  --soft-btn-line: rgba(247, 245, 242, 0.18);
}

/* A rectangular soft button: 12px corners, soft grey, dark ink. */
.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--soft-btn-line);
  background: var(--soft-btn-bg);
  color: var(--soft-btn-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.soft-btn:hover { background: var(--soft-btn-bg-hover); }
.soft-btn:active { transform: scale(0.98); }
.soft-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.soft-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.prose a.soft-btn { color: var(--soft-btn-ink); box-shadow: none; text-decoration: none; }
.soft-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
/* Inside the light sheet the soft button keeps the light look in both themes. */
.app-sheet .soft-btn {
  --soft-btn-bg: rgba(17, 17, 17, 0.07);
  --soft-btn-bg-hover: rgba(17, 17, 17, 0.11);
  --soft-btn-ink: #111111;
  --soft-btn-line: rgba(17, 17, 17, 0.12);
}
.app-sheet .soft-btn:focus-visible { outline-color: #111; }

/* ---------- The Fable example ---------- */
.biz-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 8px;
}
@media (max-width: 560px) {
  .biz-example { grid-template-columns: minmax(0, 1fr); }
}
.biz-shot { margin: 0; min-width: 0; }
.biz-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.biz-example .app-card,
.biz-example .app-sheet {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 17;
  margin: 0 auto;
}
.biz-example .app-sheet { overflow: hidden; }
.biz-example .app-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to top, var(--app-sheet-bg), rgba(247, 245, 242, 0));
  pointer-events: none;
}

/* ---------- The card ---------- */
.app-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1d1d20;
  color: #fff;
  box-shadow: var(--shot-shadow, 0 18px 40px rgba(0, 0, 0, 0.18));
  isolation: isolate;
}
.app-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The gold frame of a Featured card (ff-featured-ring). */
.app-ring {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, #f6e27a, #c9a227 30%, #fff1b0 50%, #b8891f 72%, #f3d36b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.app-chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 56px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.app-chip[hidden] { display: none; }
.app-chip-featured {
  gap: 4px;
  color: #3a2a00;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f6e27a, #d9b13b 55%, #f3d36b);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.app-chip-featured svg { width: 11px; height: 11px; }
.app-chip.is-closed { color: #fecaca; }
.app-dots {
  position: absolute;
  top: 19px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 5px;
}
.app-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 2px rgba(0, 0, 0, 0.35); }
.app-dot.is-on { background: #fff; }
.app-plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 72px 16px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0));
}
.app-grabber {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}
.app-plate p { margin: 0; }
.prose .app-plate p { margin: 0; color: #fff; line-height: 1.3; }
.app-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.prose .app-plate .app-name, .app-name {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.prose .app-plate .app-meta, .app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.app-meta span { display: inline-flex; align-items: center; gap: 4px; }
.app-meta strong { color: #fff; }
.app-meta svg { width: 13px; height: 13px; flex: none; }
.app-star { color: #fbbf24; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- The swipe-up sheet ---------- */
.app-sheet {
  position: relative;
  border-radius: 18px;
  padding: 10px 16px 20px;
  background: var(--app-sheet-bg);
  color: var(--app-sheet-ink);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), var(--shot-shadow, 0 18px 40px rgba(0, 0, 0, 0.18));
  text-align: left;
  color-scheme: light;
}
.app-sheet p { margin: 0; }
.prose .app-sheet p, .prose .app-sheet li { color: var(--app-sheet-ink); line-height: 1.4; margin: 0; }
.app-sheet-grabber {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.2);
}
.prose .app-sheet .app-sheet-kicker, .app-sheet-kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--app-sheet-muted);
}
.prose .app-sheet .app-sheet-name, .app-sheet-name {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.prose .app-sheet .app-sheet-meta, .app-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--app-sheet-muted);
}
.app-open { font-weight: 650; color: #059669; }
.app-open.is-closed { color: var(--app-sheet-faint); font-weight: 500; }
.app-actions {
  display: flex;
  margin-top: 14px;
  border-top: 1px solid var(--app-sheet-line);
  border-bottom: 1px solid var(--app-sheet-line);
}
.app-action {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-sheet-ink);
}
.app-action svg { width: 16px; height: 16px; flex: none; }
.app-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--app-sheet-line);
}
.app-actions + .app-section { border-top: 0; padding-top: 0; }
.prose .app-sheet .app-section-h, .app-section-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--app-sheet-ink);
}
.app-section-h svg { width: 16px; height: 16px; flex: none; }
.prose .app-sheet .app-text, .app-text { font-size: 14px; color: var(--app-sheet-muted); overflow-wrap: anywhere; }
.prose .app-sheet .app-link, .app-link { font-size: 14px; color: var(--app-sheet-muted); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.app-hours { list-style: none; margin: 0; padding: 0; }
.prose .app-sheet .app-hours li { font-size: 14px; color: var(--app-sheet-muted); padding: 1px 0; border: 0; }

/* The Coupon section (FeaturedCoupon.tsx). */
.prose .app-sheet .app-coupon-line, .app-coupon-line { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.app-coupon { display: flex; align-items: center; gap: 8px; }
.app-coupon-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  border: 1.5px dashed rgba(201, 162, 39, 0.75);
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}
.app-coupon-copy {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(17, 17, 17, 0.07);
  border: 1px solid rgba(17, 17, 17, 0.1);
}
.prose .app-sheet .app-coupon-note, .app-coupon-note { margin-top: 6px; font-size: 12px; color: var(--app-sheet-muted); }
