/* ============================================================
   Booking/assets/book.css — book.briggsfam.us
   Bold & modern, deliberately different from the dark family hub.
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1222;
  --ink-2: #434a60;
  --muted: #7b8197;
  --line: #e7e9f2;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-ink: #ffffff;
  --brand-wash: #eef0fe;
  --ok: #16a34a;
  --danger: #e11d48;
  --shadow: 0 10px 30px -12px rgba(23, 23, 64, .25);
  --shadow-sm: 0 2px 10px -4px rgba(23, 23, 64, .22);
  --r: 18px;
  --r-sm: 12px;
  --maxw: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .host-name, .hero, .cal-title, .dur-btn { font-family: 'Space Grotesk', 'Inter', sans-serif; }
a { color: var(--brand); text-decoration: none; }

/* floating gradient orbs */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.bg-orbs span:nth-child(1) { width: 440px; height: 440px; top: -140px; right: -100px;
  background: radial-gradient(circle at 30% 30%, #a5b4fc, transparent 70%); }
.bg-orbs span:nth-child(2) { width: 380px; height: 380px; bottom: -160px; left: -120px;
  background: radial-gradient(circle at 60% 40%, #ddd6fe, transparent 70%); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px clamp(16px, 4vw, 36px);
  max-width: 1120px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--ink); }
.brand b { color: var(--brand); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow-sm);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 8px clamp(16px, 4vw, 24px) 60px; }
.wrap.wide { max-width: 1040px; }
.site-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  padding: 11px 18px; border-radius: 999px; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .6); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #22263c; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost.danger, .btn.danger { color: var(--danger); border-color: #f3c6d1; }
.btn-ghost.danger:hover { background: #fff1f4; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 18px;
}
.icon-btn:hover { color: var(--ink); border-color: #cfd3e6; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- text ---------- */
.muted { color: var(--muted); }
.sm { font-size: 13px; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.01em; }

/* ---------- cards & forms ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px clamp(18px, 3vw, 26px); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.center { text-align: center; }
.stack { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; width: 100%; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); cursor: pointer; margin-top: 6px; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip input:checked + span { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.alert { background: #fff1f4; border: 1px solid #f3c6d1; color: #b4123f; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; }
.form-error { background: #fff1f4; border: 1px solid #f3c6d1; color: #b4123f; padding: 10px 14px; border-radius: var(--r-sm); margin-top: 12px; font-size: 14px; }
.empty { color: var(--muted); padding: 14px 0; }
.toast { background: #e7f8ee; border: 1px solid #b7e8c9; color: #0f7a3d; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-weight: 600; width: fit-content; }

/* ---------- auth ---------- */
.auth-card {
  max-width: 400px; margin: 7vh auto 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow); text-align: center;
}
.auth-mark { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 16px;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-sm); }
.auth-card form { text-align: left; margin-top: 18px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-card .muted.sm { margin-top: 18px; }

/* ---------- avatars ---------- */
.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-family: 'Space Grotesk', sans-serif;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; box-shadow: var(--shadow-sm); }

/* ---------- dashboard head ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 10px 0 20px; }
.status-pill { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.status-pill.on { background: #e7f8ee; color: #0f7a3d; }
.status-pill.off { background: #f1f2f7; color: var(--muted); }
.save-bar { position: sticky; bottom: 0; padding: 14px 0; display: flex; justify-content: flex-end; }
.save-bar .btn { box-shadow: var(--shadow); }

/* ---------- hours editor ---------- */
.hours { display: flex; flex-direction: column; gap: 10px; }
.day-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: #fcfcff; }
.day-row.is-off { opacity: .55; }
.day-row.is-off .day-body { display: none; }
.day-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.day-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.day-name { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.day-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.win-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.win-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.win-row { display: flex; align-items: center; gap: 8px; }
.win-row input[type=time] { border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; font: inherit; }
.win-row span { color: var(--muted); font-size: 13px; }

/* ---------- connected accounts ---------- */
.account { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 12px; background: #fcfcff; }
.account-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-head strong { font-size: 15px; }
.account-head .btn { margin-left: auto; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; }
.badge.g { background: #e8f0fe; color: #1a73e8; }
.badge.m { background: #e5f1fb; color: #0a66c2; }
.tag { font-size: 12px; font-weight: 700; background: var(--brand-wash); color: var(--brand); padding: 4px 10px; border-radius: 999px; }
.tag.ro { background: #eef1f6; color: #5b6472; }
.connect-provider { display: inline-flex; align-items: center; gap: 6px; }
.account-cals { margin-top: 12px; }
.connect-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cal-pick { border-top: 1px dashed var(--line); padding-top: 12px; }
.cp-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.cp-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.cp-row > input { accent-color: var(--brand); width: 17px; height: 17px; }
.cp-row em { color: var(--muted); font-style: normal; font-size: 12px; }
.cp-write { margin-left: auto; font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.cp-write.disabled { opacity: .4; }
.cp-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cp-saved { color: var(--ok); font-weight: 600; font-size: 13px; }

/* ---------- bookings list ---------- */
.booking-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.booking-item { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: #fcfcff; }
.bi-when { min-width: 120px; }
.bi-date { display: block; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.bi-time { font-size: 13px; color: var(--muted); }
.bi-who { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bi-who strong { font-size: 15px; }
.bi-reason { font-size: 13px; color: var(--ink-2); }
.booking-item .btn { margin-left: auto; }

/* ---------- directory ---------- */
.hero { text-align: center; padding: 36px 0 26px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.05; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-2); font-size: 17px; max-width: 440px; margin: 10px auto 0; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.host-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
  color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.host-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d9ec; }
.host-card .avatar { margin-bottom: 6px; }
.hc-name { font-weight: 700; font-size: 18px; font-family: 'Space Grotesk', sans-serif; }
.hc-tag { color: var(--ink-2); font-size: 14px; }
.hc-meta { color: var(--muted); font-size: 13px; }
.hc-go { margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 14px; }
.foot-signin { text-align: center; margin-top: 28px; }

/* ---------- booking page ---------- */
.booking { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin-top: 10px; }
.booking-side { padding: 30px 26px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #fbfdff, #f3f7fd); }
.host-name { font-size: 24px; margin: 14px 0 4px; }
.host-tagline { color: var(--ink-2); margin: 0 0 18px; }
.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.meta li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.host-notes { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }

.booking-main { padding: 26px clamp(18px, 3vw, 30px); min-width: 0; }
.dur-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.dur-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.dur-btn { font: inherit; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.dur-btn.active { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }

.picker { display: grid; grid-template-columns: 1fr 230px; gap: 22px; }
.cal { position: relative; }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 17px; font-weight: 700; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; }
.cal-day.disabled { color: #c3c7d8; cursor: default; }
.cal-day.open { background: var(--brand-wash); color: var(--brand); }
.cal-day.open:hover { background: #dbeafe; }
.cal-day.selected { background: var(--brand); color: #fff; }
.cal-day.today::after { content: ''; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-loading { position: absolute; inset: 44px 0 0; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--muted); font-size: 14px; border-radius: 12px; }

.slots { min-width: 0; }
.slots-title { font-weight: 700; margin-bottom: 12px; }
.slots-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.slot { font: inherit; font-weight: 600; padding: 12px; border-radius: 12px; border: 1px solid var(--brand); color: var(--brand); background: #fff; cursor: pointer; transition: transform .1s, background .15s; }
.slot:hover { background: var(--brand-wash); transform: translateY(-1px); }

.book-form { margin-top: 10px; max-width: 520px; }
.chosen { display: flex; flex-direction: column; gap: 2px; background: var(--brand-wash); border: 1px solid #bfdbfe; border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 18px; }
.chosen strong { font-family: 'Space Grotesk', sans-serif; }
.chosen span { color: var(--brand); font-weight: 600; font-size: 14px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

.confirmation { text-align: center; padding: 30px 10px; }
.confirmation .check { width: 64px; height: 64px; border-radius: 50%; background: #e7f8ee; color: var(--ok); display: grid; place-items: center; font-size: 32px; margin: 0 auto 16px; }
.conf-when { font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin: 0 0 4px; }
.when-big { font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; margin: 10px 0 2px; }
.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .booking-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .picker { grid-template-columns: 1fr; }
  .slots-list { max-height: none; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .day-body { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .topbar-actions .btn-ghost:first-child { display: none; }
  .booking-item { flex-wrap: wrap; }
}

/* ============================================================
   SaaS layer — nav, account pages, family & plan, marketing site
   ============================================================ */

/* ---------- nav + footer ---------- */
.nav-link { color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 6px 4px; }
.nav-link:hover, .nav-link.is-active { color: var(--brand); }
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--brand); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .35); }
.notice { background: #fff8e6; border: 1px solid #f3dfa2; color: #7a5a00; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 14px; }
.toast .link { text-decoration: underline; }

/* ---------- account pages ---------- */
.auth-card.auth-wide { max-width: 460px; margin-top: 4vh; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { margin: 4px 0 16px; font-size: 14px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan-opt-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.plan-opt-body strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.plan-opt-body em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.plan-opt-body small { font-size: 12px; color: var(--muted); }
.plan-opt input:checked + .plan-opt-body { border-color: var(--brand); background: var(--brand-wash); }
.plan-opt input:focus-visible + .plan-opt-body { box-shadow: 0 0 0 4px var(--brand-wash); }

/* ---------- dashboard checklist ---------- */
.checklist ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.checklist li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd3e6; font-size: 12px; color: #fff; text-decoration: none; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); }

/* ---------- family & plan ---------- */
.count { font-size: 13px; font-weight: 700; color: var(--muted); background: #f1f2f7; padding: 3px 9px; border-radius: 999px; margin-left: 6px; font-family: 'Inter', sans-serif; }
.member-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fcfcff; }
.member.is-pending { border-style: dashed; }
.member-who { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.member form { margin: 0; }
.avatar.ghost { background: #e7e9f2; color: var(--muted); }
.invite-form { border-top: 1px dashed var(--line); padding-top: 16px; }
.invite-form .btn { margin-right: 10px; }
.leave-form { margin-top: 4px; }
.invite-sent { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.invite-sent input { font: inherit; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; background: #fcfcff; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--brand-wash); border: 1px solid #bfdbfe; border-radius: var(--r-sm); padding: 14px 16px; }
.upsell > div { display: flex; flex-direction: column; }
.upsell form { margin: 0; }
.plan-now { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-now form { margin: 0; }
.plan-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 16px; background: #fcfcff; }
.plan-card.is-current { border-color: var(--brand); }
.plan-card form { margin: auto 0 0; }
.plan-card .tag { align-self: flex-start; margin-top: auto; }
.plan-card-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.plan-card-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 28px; }
.plan-card-price small { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- prose (privacy) ---------- */
.prose h2 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- account ---------- */
.danger-zone { border-color: #f3c6d1; }
.danger-zone h2 { color: var(--danger); }
.danger-list { color: var(--ink-2); padding-left: 20px; margin: 0 0 12px; }
.danger-list li { margin-bottom: 6px; }
.narrow-field { max-width: 320px; }

/* ---------- single sign-on + teams ---------- */
.sso-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.btn-sso { background: #fff; color: var(--ink); border-color: #d6d9ec; width: 100%; }
.btn-sso:hover { background: #f8f9ff; border-color: #c3c7e0; }
.sso-g { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #4285f4; font-size: 17px; }
.sso-m { display: inline-grid; grid-template-columns: 8px 8px; gap: 2px; }
.sso-m i { width: 8px; height: 8px; display: block; }
.sso-m i:nth-child(1) { background: #f25022; } .sso-m i:nth-child(2) { background: #7fba00; }
.sso-m i:nth-child(3) { background: #00a4ef; } .sso-m i:nth-child(4) { background: #ffb900; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.plan-pick.plan-pick-3 { grid-template-columns: repeat(3, 1fr); }
.plan-pick-3 .plan-opt-body { padding: 11px 10px; }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 480px) { .plan-pick.plan-pick-3 { grid-template-columns: 1fr; } }

/* ---------- company identity provider ---------- */
.idp-live { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.idp-live .tag { align-self: flex-start; }
.idp-live input, .idp-steps input { font: inherit; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; background: #fcfcff; margin-top: 4px; }
.idp-setup summary, .company-sso summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: 14px; }
.idp-setup[open] summary { margin-bottom: 12px; }
.idp-steps { color: var(--ink-2); font-size: 14px; padding-left: 20px; margin: 0 0 16px; }
.idp-steps li { margin-bottom: 8px; }
.idp-steps code { background: #f1f2f7; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.company-sso { text-align: left; margin-top: 16px; }
.company-sso form { margin-top: 10px; }

/* ---------- email-first sign-in ---------- */
.auth-who { display: inline-flex; align-items: center; gap: 10px; background: #f3f7fd; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 4px 0 10px; max-width: 100%; overflow-wrap: anywhere; }
.auth-who .link { font-size: 13px; }

/* ============================================================
   Design system v2 (Nov 2026) — restrained palette, one accent,
   consistent radii. Overrides earlier rules where they differ.
   ============================================================ */
:root {
  --bg: #f7f8fa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #0891b2;
  --brand-hover: #1d4ed8;
  --brand-wash: #eff6ff;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 12px 32px -16px rgba(15, 23, 42, .28);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --focus: 0 0 0 3px rgba(37, 99, 235, .35);
}
.bg-orbs { display: none; }
h1, h2, h3, .brand, .host-name, .hero, .cal-title, .dur-btn { letter-spacing: -.015em; }
.btn-primary { background: var(--brand); box-shadow: none; }
.btn-primary:hover { background: var(--brand-hover); box-shadow: none; }
.btn-ghost { background: #fff; }
.brand-mark, .auth-mark, .avatar { background: var(--brand); }
.brand b { color: inherit; }
.brand { font-weight: 700; }
.grad { background: linear-gradient(110deg, var(--brand) 10%, var(--brand-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 8px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.nav-public .site-foot { border-top: 0; margin-top: 0; }

/* ---------- setup checklist ---------- */
.checklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checklist ol { flex-direction: column; gap: 10px; margin-top: 14px; }
.checklist li { align-items: flex-start; }
.checklist li a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #bfdbfe; }
.checklist li.next a { color: var(--brand); font-weight: 700; }
.checklist .step-text { display: flex; flex-direction: column; }
.checklist .step-text small { color: var(--muted); font-weight: 500; }
.progress { height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

/* ---------- marketing pages ---------- */
.lp { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px) 24px; }
.lp h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.lp h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; }
.lp h3 { font-size: 17px; margin: 0 0 6px; }
.lp-toast { margin: 18px auto 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); margin: 0 0 26px; max-width: 560px; }
.lead-sm { font-size: 17px; color: var(--ink-2); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-light { background: #fff; color: var(--brand); }

.hero2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 12px; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-price { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.hero2-price strong { color: var(--ink); }
.hero2-shot, .wide-shot, .phone { margin: 0; }
.hero2-shot img, .wide-shot img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.hero2-shot figcaption, .wide-shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.phone { justify-self: center; }
.phone img { display: block; width: min(300px, 100%); height: auto; border-radius: 28px; border: 8px solid #0f172a; box-shadow: var(--shadow); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(32px, 5vw, 56px); }
.strip > div { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.strip strong { font-size: 15px; }
.strip span { font-size: 14px; color: var(--muted); }

.sec { padding: clamp(56px, 8vw, 96px) 0 0; scroll-margin-top: 12px; }
.sec-first { padding-top: clamp(36px, 6vw, 64px); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.sec-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
.sec-p { color: var(--ink-2); font-size: 17px; }
.sec-more { text-align: center; margin-top: 22px; }
.sec-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

.steps2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps2 li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps2 p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-wash); color: var(--brand); font-weight: 700; margin-bottom: 12px; }

.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ticks li::before { content: '✓'; background: #dcfce7; color: #15803d; }
.crosses li::before { content: '✕'; background: #f1f5f9; color: #64748b; }

.compare, .perm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col, .perm-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.compare-col h3, .perm-col h3 { margin-bottom: 14px; }
.compare-col.is-us { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 18px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.plan.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-top h3 { font-size: 20px; margin: 0; }
.plan-price { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin: 0; line-height: 1; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-note { margin: 0; font-size: 14px; color: var(--muted); }
.plan .ticks { margin-top: 6px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--brand-wash); color: var(--brand); }
.pill-muted { background: #f1f5f9; color: var(--ink-2); }
.plans-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 18px auto 0; max-width: 640px; }

.calc { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; max-width: 720px; margin: 0 auto; }
.calc-input label { font-weight: 600; display: block; margin-bottom: 10px; }
.calc-row { display: flex; align-items: center; gap: 14px; }
.calc-row input[type=range] { flex: 1; accent-color: var(--brand); }
.calc-row input[type=number] { width: 84px; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.calc-out { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.calc-total { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.calc-per { color: var(--muted); font-size: 14px; }
.calc-detail { color: var(--muted); font-size: 13px; margin-top: 6px; }
.price-table, .metric-table, .perm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.price-table { max-width: 720px; margin: 18px auto 0; }
.price-table th, .price-table td, .metric-table th, .metric-table td, .perm-table th, .perm-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table th, .metric-table th, .perm-table th { background: #f8fafc; font-size: 13px; color: var(--muted); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-weight: 700; }
.perm-table td { vertical-align: top; color: var(--ink-2); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

.cta-band { margin-top: clamp(56px, 8vw, 96px); text-align: center; color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 60px) 24px; background: var(--ink); }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 0 0 22px; color: #cbd5e1; }

.prose { max-width: 820px; margin: 24px auto; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); }
.prose .perm-table { margin: 6px 0 14px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { font-size: 24px; }
.stat small { color: var(--muted); }

@media (max-width: 900px) {
  .hero2, .sec-split { grid-template-columns: 1fr; }
  .feat-grid, .steps2 { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 520px); }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .topbar { flex-wrap: wrap; }
  .feat-grid, .steps2, .compare, .perm, .strip { grid-template-columns: 1fr; }
  .hero2-cta .btn { flex: 1 1 100%; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { align-items: flex-start; text-align: left; }
  .perm-table, .perm-table tbody, .perm-table tr, .perm-table td { display: block; }
  .perm-table thead { display: none; }
  .perm-table tr { border-bottom: 1px solid var(--line); }
  .perm-table td { border-bottom: 0; }
  .perm-table td:first-child::before { content: 'Can: '; font-weight: 700; color: #15803d; }
  .perm-table td:last-child::before { content: 'Can\2019t: '; font-weight: 700; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.hero2 h1 { font-size: clamp(32px, 4.4vw, 48px); }

/* Ocean blue gradient accents (homepage headline + closing band) */
.cta-band { background: linear-gradient(120deg, #1e3a8a 0%, var(--brand) 55%, var(--brand-2) 100%); }
.cta-band p { color: #dbeafe; }
.hero2-price strong { color: var(--brand); }

/* ---------- super-admin console ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.admin-tabs a { padding: 10px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a.is-active, .admin-tabs a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-bar h2 { margin: 0; }
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filters a { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.admin-filters a.is-active { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.admin-search { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-search input, .admin-search select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.admin-search input { min-width: 220px; }
.table-wrap { overflow-x: auto; }
.table-wrap .metric-table { min-width: 720px; }
.metric-table td small { display: block; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.status.s-active { background: #dcfce7; color: #15803d; }
.status.s-trialing { background: var(--brand-wash); color: var(--brand); }
.status.s-past_due { background: #fef3c7; color: #b45309; }
.status.s-canceled { background: #fee2e2; color: #b91c1c; }
.admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; font-size: 14px; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; }

/* ---------- logo images ---------- */
.brand .wordmark { display: block; height: 32px; width: auto; }
.brand-mark:has(.logo-img), .auth-mark:has(.logo-img) { background: none; box-shadow: none; width: auto; }
.auth-mark .logo-img { height: 44px; width: auto; }
@media (max-width: 640px) { .brand .wordmark { height: 24px; } }
