/* booqit.css — shared styles for the BooqIt public website.
   Light + dark via prefers-color-scheme. System font stack, no external assets. */

:root {
  color-scheme: light dark;
  --bg: #fbfcff;
  --surface: rgba(128, 128, 128, 0.05);
  --text: #1a1e2e;
  --muted: #52607a;
  --accent: #3d78e0;
  --accent-contrast: #ffffff;
  --border: rgba(128, 128, 128, 0.25);
  --border-strong: rgba(128, 128, 128, 0.4);
  --hero-a: #1a1e2e;
  --hero-b: #141a33;
  --hero-text: #f4f6fb;
  --hero-muted: #aab6cc;
  --pill-bg: rgba(255, 255, 255, 0.12);
  --pill-text: #a7c4ff;
  --star: #f5b544;
  --shadow: 0 6px 24px rgba(20, 26, 51, 0.10);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e18;
    --surface: rgba(128, 128, 128, 0.08);
    --text: #e7ebf5;
    --muted: #aab6cc;
    --accent: #7db3ff;
    --accent-contrast: #0b0e18;
    --border: rgba(128, 128, 128, 0.28);
    --border-strong: rgba(128, 128, 128, 0.45);
    --hero-a: #141a33;
    --hero-b: #080a16;
    --hero-text: #f4f6fb;
    --hero-muted: #aab6cc;
    --pill-bg: rgba(255, 255, 255, 0.10);
    --pill-text: #a7c4ff;
    --shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---- Header / footer ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(160deg, #3d78e0, #7db3ff);
  color: #fff; font-weight: 800; font-size: 1.05rem;
}
.brand-name { font-size: 1.12rem; letter-spacing: -0.01em; }

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--muted); font-size: 0.92rem; }
.foot-note { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 600; font-size: 1rem; line-height: 1.1;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-secondary {
  background: transparent; color: var(--accent);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.btn-row.center { justify-content: center; }

/* ---- Cards / sections ---- */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 12px 0;
}
.section { margin: 34px 0; }
.section > h2 {
  font-size: 1.15rem; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card h2 { margin-top: 4px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Landing hero ---- */
.hero {
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-text);
  border-radius: 0 0 28px 28px;
  padding: 56px 0 48px;
}
.hero .wrap { text-align: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p.lede { color: var(--hero-muted); font-size: 1.12rem; max-width: 34em; margin: 0 auto 24px; }
.hero .btn-secondary { color: var(--hero-text); border-color: rgba(255,255,255,0.35); }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 20px 0;
}
.feature-grid .card { margin: 0; }
.feature-grid h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; padding: 4px 0 16px 44px; margin: 0;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: 0.9rem;
}
.steps li b { display: block; }
.steps li span { color: var(--muted); }

/* ---- Profile hero ---- */
.profile-hero {
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-text);
  border-radius: 0 0 28px 28px;
  padding: 40px 0 34px;
}
.profile-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.22);
  background: #2a3148;
}
.avatar-fallback {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 700; color: #fff;
  border: 3px solid rgba(255,255,255,0.22);
}
/* Name-hashed avatar tones (matches the in-app BookdAvatar palette). */
.tone-0 { background: linear-gradient(160deg, #2a3148, #1A1E2E); }
.tone-1 { background: linear-gradient(160deg, #7AAAFF, #4F8EF7); }
.tone-2 { background: linear-gradient(160deg, #6EE7A3, #2ECC71); }
.tone-3 { background: linear-gradient(160deg, #FFCA72, #F39C12); }
.tone-4 { background: linear-gradient(160deg, #F59EB3, #D94F6E); }
.tone-5 { background: linear-gradient(160deg, #B8C3DC, #7A879E); }
.profile-hero h1 { font-size: 1.7rem; margin: 16px 0 4px; letter-spacing: -0.01em; }
.trade-pill {
  display: inline-block; margin-top: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-text);
  font-size: 0.85rem; font-weight: 600;
}
.hero-meta { color: var(--hero-muted); font-size: 0.95rem; margin: 12px 0 0; }
.hero-meta span + span::before { content: "·"; margin: 0 8px; opacity: 0.6; }
.hero-bio { color: var(--hero-muted); max-width: 40em; margin: 14px auto 0; }

/* ---- Services ---- */
.svc { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc + .svc { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.svc-name { font-weight: 600; }
.svc-desc { color: var(--muted); font-size: 0.92rem; margin: 2px 0 0; }
.svc-meta { white-space: nowrap; text-align: right; }
.svc-price { font-weight: 700; }
.svc-dur { display: block; color: var(--muted); font-size: 0.85rem; }

/* ---- Reviews ---- */
.rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rating-summary .big { font-size: 1.7rem; font-weight: 700; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }
.stars .empty { color: var(--border-strong); }
.review + .review { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.review-author { font-weight: 600; font-size: 0.95rem; }
.review-text { margin: 6px 0 0; }

/* ---- Events ---- */
.event { display: flex; gap: 14px; align-items: flex-start; }
.event + .event { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.event-cover {
  width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none;
  background: linear-gradient(160deg, #2D1B69, #1A1E2E);
}
.event-body { flex: 1; min-width: 0; }
.event-title { font-weight: 600; }
.event-meta { color: var(--muted); font-size: 0.9rem; margin: 3px 0 0; }
.event-price { font-weight: 700; margin-top: 4px; }

/* ---- Tiers ---- */
.tier + .tier { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.tier-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tier-name { font-weight: 600; }
.tier-price { font-weight: 700; white-space: nowrap; }
.tier-price small { font-weight: 500; color: var(--muted); }
.tier-desc { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }

/* ---- QR block ---- */
.qr-block { text-align: center; margin: 8px 0; }
.qr-card {
  display: inline-block; padding: 14px; border-radius: 16px;
  background: #ffffff; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.qr { display: block; width: 168px; height: 168px; }
.qr-caption { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }

/* ---- Booking note ---- */
.booking-note {
  background: rgba(61,120,224,0.10);
  border: 1px solid rgba(61,120,224,0.35);
  border-radius: var(--radius);
  padding: 14px 16px; font-size: 0.95rem;
}

/* ---- Not-found / simple pages ---- */
.simple { padding: 64px 0; text-align: center; }
.simple h1 { font-size: 1.9rem; margin: 0 0 8px; }
.simple p { color: var(--muted); max-width: 34em; margin: 0 auto 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 0.9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .event-cover { width: 60px; height: 60px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .hero .btn, .profile-actions .btn { width: 100%; }
}
