/*  Wave web — framework-free, build-step-free (Dingo Web/ pattern).
    Tokens carried exactly from Docs/theme-tokens.md.  */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #4f46e5;
  --accent: #7c3aed;
  --bg: #f8fafc;
  --bg-via: #eff6ff;
  --bg-to: #faf5ff;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --radius: 20px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #1e3a5f;
    --bg: #0f172a;
    --bg-via: #1e293b;
    --bg-to: #1e1b4b;
    --surface: #1e293b;
    --ink: #f1f5f9;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --border: #334155;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
  }
}

* { box-sizing: border-box; margin: 0; }

html { color-scheme: light dark; }

body {
  /* House type voice: rounded first (Safari renders ui-rounded as SF Rounded,
     matching the apps), then the plain system stack everywhere else. */
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg), var(--bg-via), var(--bg-to)) fixed;
  min-height: 100vh;
  line-height: 1.5;
}

/* Aurora ambient — same idea as the apps: soft brand-color blobs drifting
   under the glass so the blur has real color to bend. Fixed, behind
   everything, no pointer events, and frozen under prefers-reduced-motion. */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at 18% 12%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(38% 38% at 85% 25%, rgba(124, 58, 237, 0.14), transparent 70%),
    radial-gradient(34% 34% at 22% 82%, rgba(34, 211, 238, 0.13), transparent 70%),
    radial-gradient(28% 28% at 80% 78%, rgba(249, 115, 22, 0.12), transparent 70%);
  filter: blur(40px);
  animation: wave-aurora 24s ease-in-out infinite alternate;
}
@keyframes wave-aurora {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to   { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Liquid-glass mirror for the web */
.glass {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--surface) 65%, transparent);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.10);
  border-radius: var(--radius);
  position: relative;
}
/* Rim light — the "liquid" edge: a hair-thin highlight catching the top-left
   corner and fading away, the way real glass catches light (mirrors the apps'
   WaveRimLight). Inset so it never fights the layout. */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.03) 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }

nav.glass {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; margin: 12px 0 24px;
}
nav .brand { font-weight: 800; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: var(--primary); }
nav .spacer { flex: 1; }

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px 32px; margin-bottom: 24px;
  box-shadow: 0 16px 40px color-mix(in srgb, #2563eb 30%, transparent);
}
/* Decorative wave rings — poppy, weightless, pure CSS */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
}
.hero::before { width: 340px; height: 340px; right: -110px; top: -140px; }
.hero::after  { width: 220px; height: 220px; right: -40px;  top: -60px; }
.hero h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.hero p { margin-top: 8px; opacity: 0.88; max-width: 560px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.card { padding: 18px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 12%, transparent);
}
.card h3 { font-size: 1rem; font-weight: 700; }
.card p { font-size: 0.85rem; color: var(--ink-2); margin-top: 4px; }
.card .price {
  display: inline-block; margin-top: 10px;
  font-weight: 800; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 4px 12px; border-radius: 999px; font-size: 0.85rem;
}

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--primary); color: #fff;
  font: 600 0.95rem/1 inherit; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
}
.btn:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.badge.pending   { color: #d97706; background: #fffbeb; border: 1px solid #fde68a; }
.badge.confirmed { color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0; }
.badge.active    { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.badge.progress  { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }
.badge.cancelled { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }

footer { color: var(--ink-3); font-size: 0.8rem; text-align: center; padding: 32px 0; }

/* Small button — used on cards and rows. */
.btn.small { padding: 8px 16px; font-size: 0.8rem; }
