:root {
  --navy: #0B1B3A;
  --navy-2: #12254F;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --accent: #0EA5E9;
  --green: #10B981;
  --green-dark: #059669;
  --radius: 16px;
  --shadow: 0 18px 50px -28px rgba(11, 27, 58, 0.45);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 12px; border: 0; padding: .75rem 1.15rem; font-weight: 700;
  cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline {
  background: #fff; color: var(--navy); border: 1px solid var(--line);
}
.btn-outline:hover { border-color: #cbd5e1; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input, .select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .9rem; background: #fff; color: var(--ink);
}
.input:focus, .select:focus {
  outline: 2px solid rgba(16,185,129,.25); border-color: var(--green);
}
.label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: .35rem; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .2rem .55rem; font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-navy { background: #DBEAFE; color: #1E3A8A; }

/* Marketing */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11,27,58,.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--accent));
  display: grid; place-items: center; font-size: .85rem;
}
.nav-links { display: none; gap: 1.1rem; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: .6rem; align-items: center; }

.hero {
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(14,165,233,.25), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(16,185,129,.18), transparent 50%),
    linear-gradient(160deg, #071225 0%, var(--navy) 48%, #153063 100%);
  color: #fff; padding: 4.5rem 0 5rem;
}
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .nav-links { display: flex; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05;
  margin: 0 0 1rem; letter-spacing: -.02em;
}
.hero p { color: rgba(226,232,240,.88); font-size: 1.05rem; max-width: 34rem; }
.hero-checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .55rem; }
.hero-checks li {
  display: flex; align-items: center; gap: .55rem;
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .95rem;
}
.check {
  width: 18px; height: 18px; border-radius: 999px; background: var(--green);
  display: grid; place-items: center; color: #fff; font-size: .7rem; flex-shrink: 0;
}
.book-widget { padding: 1.25rem; }
.book-widget h3 { margin: 0 0 1rem; color: var(--navy); font-size: 1.15rem; }
.book-widget .stack { display: grid; gap: .75rem; }

.section { padding: 4rem 0; }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .5rem;
  letter-spacing: -.02em; color: var(--navy);
}
.section .lead { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

.feature-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.feature-card { padding: 1.25rem; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #ECFDF5; color: var(--green-dark); font-size: 1.1rem; margin-bottom: .85rem;
}
.feature-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.pricing-toggle {
  display: inline-flex; background: #EEF2FF; border-radius: 999px; padding: .25rem; gap: .2rem; margin-bottom: 1.5rem;
}
.pricing-toggle button {
  border: 0; border-radius: 999px; padding: .45rem .9rem; font-weight: 700; cursor: pointer;
  background: transparent; color: #475569;
}
.pricing-toggle button.active { background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgba(15,23,42,.08); }

.plans {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}
.plan {
  padding: 1.4rem; position: relative; display: flex; flex-direction: column;
}
.plan.popular {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(11,27,58,.5);
}
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .45rem; flex: 1; }
.plan li { display: flex; gap: .45rem; font-size: .9rem; color: #334155; }
.cta-band {
  background: linear-gradient(120deg, #071225, var(--navy) 55%, #0EA5E9);
  color: #fff; border-radius: 24px; padding: 2rem; display: flex;
  flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}

.site-footer {
  border-top: 1px solid var(--line); background: #fff; padding: 2rem 0;
  color: var(--muted); font-size: .9rem;
}

/* App shell */
.app-shell { display: grid; min-height: 100vh; }
@media (min-width: 900px) {
  .app-shell { grid-template-columns: 240px 1fr; }
}
.sidebar {
  background: var(--navy); color: #fff; padding: 1.1rem .85rem;
  display: none; flex-direction: column; gap: .35rem;
}
@media (min-width: 900px) { .sidebar { display: flex; } }
.sidebar a {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .8rem; border-radius: 12px; color: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.app-main { padding: 1.25rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 1rem 1.1rem; }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat .value { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-top: .25rem; }
.stat .delta { font-size: .75rem; font-weight: 700; color: var(--green-dark); margin-top: .2rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .85rem .7rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

.flash {
  border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; font-weight: 600;
}
.flash-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(16,185,129,.18), transparent),
    linear-gradient(160deg, #071225, var(--navy));
}
.auth-card { width: min(420px, 100%); padding: 1.5rem; }
.auth-card h1 { margin: 0 0 .35rem; color: var(--navy); font-size: 1.45rem; }
.auth-card p { margin: 0 0 1.1rem; color: var(--muted); font-size: .9rem; }
.stack { display: grid; gap: .8rem; }

.venue-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.venue-card { overflow: hidden; }
.venue-card .cover {
  aspect-ratio: 16/10; background: linear-gradient(135deg, #DBEAFE, #D1FAE5);
}
.venue-card .body { padding: 1rem; }

/* Calendar */
.cal-wrap {
  display: grid;
  grid-template-columns: 56px 1fr;
  overflow: auto;
  max-height: calc(100vh - 160px);
}
.cal-hours {
  padding-top: 42px;
  border-right: 1px solid var(--line);
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 2;
}
.cal-hour {
  height: 56px;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 700;
  padding: .2rem .35rem 0 0;
  text-align: right;
  border-top: 1px solid var(--line);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}
.cal-day { border-right: 1px solid var(--line); }
.cal-day:last-child { border-right: 0; }
.cal-day-head {
  position: sticky; top: 0; z-index: 1;
  background: #F8FAFC; border-bottom: 1px solid var(--line);
  padding: .65rem .5rem; font-size: .8rem; font-weight: 800; color: var(--navy);
  text-align: center;
}
.cal-day-body {
  position: relative;
  height: calc(12 * 56px);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 55px,
    var(--line) 55px,
    var(--line) 56px
  );
}
.cal-event {
  position: absolute; left: 4px; right: 4px;
  border-radius: 10px; padding: .35rem .45rem;
  color: #fff; font-size: .72rem; overflow: hidden;
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, .55);
  display: flex; flex-direction: column; gap: .1rem;
}
.cal-event strong { font-size: .7rem; }
.cal-event span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event em { font-style: normal; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress-steps {
  display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; color: var(--muted);
}
.progress-steps .on { color: var(--green-dark); }
.slot-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.slot-btn {
  display: inline-flex; cursor: pointer; border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .7rem; background: #fff; font-size: .85rem; font-weight: 700;
}
.slot-btn input { display: none; }
.slot-btn:has(input:checked) {
  border-color: var(--green); background: #ECFDF5; color: #065F46;
}
.slot-btn small { display: block; font-weight: 600; color: var(--muted); font-size: .7rem; }
.mobile-nav {
  display: flex; gap: .35rem; overflow: auto; padding: .5rem 0 1rem;
}
@media (min-width: 900px) { .mobile-nav { display: none; } }
.mobile-nav a {
  flex: 0 0 auto; padding: .45rem .7rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: .75rem; font-weight: 700; color: var(--navy);
}
