/* Worldwide Clean — Design System */
:root {
  --bg: oklch(0.985 0.005 130);
  --bg-2: oklch(0.965 0.008 140);
  --bg-3: oklch(0.94 0.01 145);
  --ink: oklch(0.18 0.01 150);
  --ink-2: oklch(0.34 0.01 150);
  --ink-3: oklch(0.52 0.01 150);
  --line: oklch(0.9 0.005 150);
  --line-strong: oklch(0.82 0.008 150);

  --accent: oklch(0.42 0.09 155);
  --accent-2: oklch(0.62 0.14 150);
  --accent-ink: oklch(0.98 0.005 150);
  --accent-soft: oklch(0.95 0.025 150);

  --warn: oklch(0.78 0.13 85);
  --warn-ink: oklch(0.32 0.08 70);
  --info: oklch(0.6 0.1 230);
  --info-soft: oklch(0.95 0.02 230);
  --danger: oklch(0.58 0.18 25);
  --danger-soft: oklch(0.95 0.03 25);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(20, 30, 25, 0.04), 0 0 0 1px var(--line);
  --shadow-2: 0 6px 24px -8px rgba(20, 30, 25, 0.12), 0 0 0 1px var(--line);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.h-display-roman {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.mono { font-family: var(--font-mono); }

/* ---------- Layout primitives ---------- */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top nav ---------- */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent-ink);
  opacity: 0.6;
}
.brand .mark::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 2px; height: 10px;
  background: var(--accent-ink);
  transform: translate(-50%, -50%) rotate(35deg);
  border-radius: 1px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all .14s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-link {
  background: transparent;
  padding: 6px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card-tight { padding: 14px; }

/* ---------- Inputs ---------- */
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .14s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--bg-2);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
}
.badge-pending { color: var(--warn-ink); background: oklch(0.97 0.04 85); border-color: oklch(0.88 0.08 85); }
.badge-pending::before { background: var(--warn); }
.badge-confirmed { color: oklch(0.32 0.08 150); background: var(--accent-soft); border-color: oklch(0.85 0.06 150); }
.badge-confirmed::before { background: var(--accent-2); }
.badge-completed { color: oklch(0.34 0.1 230); background: var(--info-soft); border-color: oklch(0.85 0.06 230); }
.badge-completed::before { background: var(--info); }
.badge-cancelled { color: oklch(0.36 0.14 25); background: var(--danger-soft); border-color: oklch(0.85 0.08 25); }
.badge-cancelled::before { background: var(--danger); }

/* ---------- Hairline divider ---------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Imagery placeholders ---------- */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0 12px,
      var(--bg-3) 12px 13px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
}

/* ---------- Tables ---------- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.tbl td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.tbl tr:hover td { background: var(--bg-2); }

/* ---------- Page wrappers ---------- */
.page {
  flex: 1;
  padding: 40px 0 80px;
}
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}
.page-subtitle {
  color: var(--ink-3);
  margin-top: 8px;
  font-size: 14px;
}

/* ---------- Sidebar layout for admin ---------- */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand { padding: 4px 12px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.sidebar-section {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 16px 12px 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  transition: background .12s ease;
}
.sidebar-link:hover { background: var(--bg-2); color: var(--ink); }
.sidebar-link.active {
  background: var(--ink);
  color: var(--bg);
}
.sidebar-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5;
}
.main-area {
  padding: 32px 40px 80px;
  background: var(--bg-2);
  min-height: 100vh;
}

/* ---------- Stat tiles ---------- */
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  margin-top: 10px;
  letter-spacing: -0.02em;
}
.stat-trend { font-size: 12px; color: var(--ink-3); margin-top: 8px; font-family: var(--font-mono); }

/* ---------- Step indicator ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.step.is-active { color: var(--ink); }
.step.is-active .step-num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step.is-done { color: var(--accent); }
.step.is-done .step-num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step-bar { width: 36px; height: 1px; background: var(--line-strong); }

/* ---------- Calendar grid ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-cell {
  background: var(--bg);
  min-height: 110px;
  padding: 10px;
  position: relative;
  cursor: pointer;
  transition: background .1s ease;
}
.cal-cell:hover { background: var(--bg-2); }
.cal-cell.is-other { background: var(--bg-2); color: var(--ink-3); }
.cal-cell.is-today .cal-num { color: var(--accent); font-weight: 600; }
.cal-cell.is-selected { background: var(--accent-soft); }
.cal-num { font-family: var(--font-mono); font-size: 12px; }
.cal-head {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px;
  text-align: center;
}
.cal-evt {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  background: var(--accent-soft);
  color: oklch(0.32 0.08 150);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Misc ---------- */
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--ink-3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.grow { flex: 1; }

.divider-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.divider-label::before, .divider-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Selectable tile */
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .12s ease;
  background: var(--bg);
}
.tile:hover { border-color: var(--line-strong); }
.tile.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Auth split */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-art {
  background: var(--ink);
  color: var(--bg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art::after {
  /* Subtle radial vignette accent */
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.auth-form { width: 100%; max-width: 380px; }

/* Hero */
.hero {
  position: relative;
  height: calc(100vh - 73px);
  min-height: 640px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  pointer-events: none;
}
.hero-overlay > * { pointer-events: auto; }
.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 14ch;
  color: var(--ink);
  mix-blend-mode: multiply;
}
.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item b { color: var(--ink); font-weight: 500; }

/* Section */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-eyebrow { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  max-width: 18ch;
}

/* Process / package grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.three-col > div {
  background: var(--bg);
  padding: 36px 32px;
}

/* Package card */
.pkg {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pkg-price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pkg-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pkg-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pkg-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink-3);
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li { color: var(--ink-2); font-size: 14px; }

/* Scroll fade utility */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Tweaks panel positioning override (bottom-left so it doesn't cover hero CTAs) */
