/* ScheduleAVisit — warm, calm healthcare. Not purple SaaS. */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fffdf8;
  --ink: #1c2b24;
  --ink-soft: #3d4f46;
  --muted: #5c6d64;
  --line: #d9cfc0;
  --line-strong: #c9bba8;
  --sage: #2d5a4a;
  --sage-deep: #1e3f34;
  --sage-mid: #3d7a64;
  --sage-soft: #e4efe9;
  --sage-wash: #f0f6f2;
  --clay: #c45c3e;
  --clay-deep: #a3482e;
  --clay-soft: #f8ebe6;
  --amber: #b8862c;
  --amber-soft: #f8efd8;
  --sky: #2f5f73;
  --sky-soft: #e4eef2;
  --rose: #8b3d4a;
  --good: #2d5a4a;
  --warn: #b8862c;
  --bad: #c45c3e;
  --shadow: 0 1px 2px rgba(28, 43, 36, 0.04), 0 10px 28px rgba(28, 43, 36, 0.06);
  --shadow-lg: 0 8px 40px rgba(28, 43, 36, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }

.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: var(--card); padding: 8px 12px; z-index: 99; border-radius: 8px; }

/* ——— Header ——— */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 20px; max-width: var(--max); margin: 0 auto;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.wordmark-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage); color: var(--paper);
  display: grid; place-items: center; flex-shrink: 0;
}
.wordmark-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.provider-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 4px;
  white-space: nowrap;
}
.provider-link:hover { color: var(--sage-deep); }
.provider-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}
.wordmark-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.wordmark-name span { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--sage-mid); outline-offset: 2px; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-text {
  background: none; border: none; color: var(--sage); min-height: 40px;
  padding: 0 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ——— Demo switcher ——— */
.switcher {
  background: var(--sage-deep); color: #e8f0ea;
  padding: 8px 16px; display: flex; justify-content: center; gap: 8px 16px;
  flex-wrap: wrap; align-items: center; font-size: 0.86rem;
}
.switcher a, .switcher button {
  color: #fff; background: none; border: none; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: 0 6px;
}
.switcher span { opacity: 0.75; }

/* ——— Landing ——— */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 28px 20px 48px;
  display: grid; gap: 36px;
}
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  color: var(--ink); margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 22px; align-self: end;
}
.hero-card h3 { font-size: 1.15rem; }
.hero-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero-photo-mesa img {
  aspect-ratio: 4 / 3;
  object-position: 50% 50%;
}
.mini-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.slot-chip {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px;
  text-align: center; background: var(--sage-wash); font-size: 0.82rem; font-weight: 600;
}
.slot-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.slot-chip.taken { background: var(--paper-2); color: var(--muted); text-decoration: line-through; }
.slot-chip.rec { background: var(--clay-soft); border-color: #e8c4b6; }

.steps {
  max-width: var(--max); margin: 0 auto; padding: 8px 20px 56px;
  display: grid; gap: 14px;
}
.steps-head { margin-bottom: 8px; }
.step-grid { display: grid; gap: 14px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sage);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-soft); margin: 0; }

.band {
  background: var(--sage); color: #f3f8f5;
  padding: 48px 20px;
}
.band-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 20px; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { color: #d5e6dc; max-width: 48em; }
.stat-row { display: grid; gap: 12px; margin-top: 8px; }
.stat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 16px 18px;
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.stat span { font-size: 0.88rem; color: #cfe0d6; }

.who { max-width: var(--max); margin: 0 auto; padding: 48px 20px 32px; }
.who-grid { display: grid; gap: 12px; margin-top: 16px; }
.who-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
}
.site-footer {
  border-top: 1px solid var(--line); padding: 28px 20px 40px;
  max-width: var(--max); margin: 0 auto; color: var(--muted); font-size: 0.9rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ——— App chrome ——— */
.app-wrap { max-width: var(--max); margin: 0 auto; padding: 18px 16px 64px; }
.page-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.sub { color: var(--muted); margin-bottom: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.card h2, .card h3 { font-size: 1.2rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; color: var(--muted); }

/* Avatars */
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; flex-shrink: 0; font-size: 0.95rem;
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar.sm { width: 36px; height: 36px; font-size: 0.78rem; }
.av-elena { background: #2d5a4a; }
.av-james { background: #2f5f73; }
.av-priya { background: #6b4a6e; }
.av-maya { background: #8a5a32; }

/* Capacity */
.cap-hero { display: grid; gap: 8px; }
.cap-number { font-family: var(--serif); font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.cap-number em { font-style: normal; color: var(--muted); font-size: 1.1rem; }
.bar {
  height: 14px; background: var(--paper-2); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line);
}
.bar > span {
  display: block; height: 100%; border-radius: inherit; width: 0;
  transition: width 0.4s ease;
}
.bar.room > span { background: var(--sage-mid); }
.bar.nearly > span { background: var(--amber); }
.bar.full > span { background: var(--clay); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.badge.room { background: var(--sage-soft); color: var(--sage-deep); }
.badge.nearly { background: var(--amber-soft); color: #7a5a14; }
.badge.full { background: var(--clay-soft); color: var(--clay-deep); }
.badge.weekly { background: var(--sage-soft); color: var(--sage-deep); }
.badge.biweekly { background: var(--sky-soft); color: var(--sky); }
.badge.occasional { background: var(--paper-2); color: var(--muted); }

.fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
label.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
input[type="number"], input[type="text"], input[type="email"], input[type="date"] {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: #fff; padding: 0 12px; color: var(--ink); width: 100%;
}
input:focus { outline: 3px solid rgba(45,90,74,0.25); border-color: var(--sage); }

.link-box {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--sage-wash); border-radius: 12px; padding: 10px 12px;
  border: 1px dashed var(--sage-mid);
}
.link-box code { font-size: 0.88rem; word-break: break-all; color: var(--sage-deep); flex: 1; }

/* Tables / lists */
.list { display: grid; gap: 8px; }
.list-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.list-item:last-child { border-bottom: 0; }
.person { display: flex; gap: 12px; align-items: center; }
.person > div { min-width: 0; flex: 1; }
.person strong, .rec-trust { overflow-wrap: anywhere; }
.person .meta { font-size: 0.82rem; color: var(--muted); }

.week-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.week-col {
  background: var(--sage-wash); border-radius: 12px; padding: 10px 8px;
  text-align: center; border: 1px solid var(--line);
}
.week-col.over { background: var(--clay-soft); border-color: #e8c4b6; }
.week-col.tight { background: var(--amber-soft); border-color: #ead7a0; }
.week-col .wk { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.week-col .hrs { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.week-col .ghost { font-size: 0.7rem; color: var(--clay-deep); margin-top: 2px; }

/* Booking */
.provider-hero {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px;
}
.provider-hero > div { min-width: 0; flex: 1; }
.provider-hero .page-title { overflow-wrap: anywhere; }
.date-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
}
.date-chip {
  flex: 0 0 auto; min-width: 72px; min-height: 76px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 600; color: var(--ink);
}
.date-chip .d { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.date-chip .w { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.date-chip[aria-pressed="true"], .date-chip.active {
  background: var(--sage); color: #fff; border-color: var(--sage);
}
.date-chip[aria-pressed="true"] .w, .date-chip.active .w { color: #d5e6dc; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-slot {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 600;
}
.time-slot:hover { border-color: var(--sage); }
.time-slot.active, .time-slot[aria-pressed="true"] {
  background: var(--sage); color: #fff; border-color: var(--sage);
}
.time-slot.gone { opacity: 0.4; text-decoration: line-through; cursor: default; }

.referral {
  background: linear-gradient(180deg, #fffdf8 0%, #f8efe8 100%);
  border: 1.5px solid #e0c4b4; border-radius: 20px; padding: 20px;
}
.referral h3 { font-size: 1.35rem; }
.rec-card {
  display: grid; gap: 10px; background: #fff; border-radius: 16px;
  padding: 16px; border: 1px solid var(--line); margin: 12px 0;
}
.rec-card.featured {
  border-color: #d7c0b0;
  box-shadow: 0 1px 0 rgba(90, 58, 42, 0.04);
}
.rec-trust {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--sage-deep);
  line-height: 1.35;
}
.rec-hop {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}
.more-list { display: none; margin-top: 8px; }
.more-list.open { display: grid; gap: 10px; }

/* Confirmation */
.confirm {
  text-align: center; padding: 28px 16px 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.confirm-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--sage-soft);
  color: var(--sage); display: grid; place-items: center; margin: 0 auto 16px;
  font-size: 2rem;
}
.confirm-lede {
  margin: 0 auto;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.confirm dl {
  text-align: left; background: var(--sage-wash); border-radius: 16px;
  padding: 16px 18px; margin: 22px 0 8px;
}
.confirm dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.confirm dd { margin: 0 0 12px; font-weight: 600; font-size: 1.05rem; }
.confirm dd:last-child { margin-bottom: 0; }

/* Booked confirmation — next steps */
.booked-page .card.confirm { padding-bottom: 28px; }
.confirm-next {
  text-align: left;
  margin-top: 8px;
  display: grid;
  gap: 14px;
}
.confirm-next-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 12px 0 0;
  color: var(--ink);
  text-align: center;
}
.confirm-next-intro {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.confirm-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 16px 18px;
}
.confirm-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}
.confirm-step-help,
.confirm-portal-lead,
.confirm-portal-help {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}
.confirm-portal-help {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.confirm-step .btn,
.confirm-portal .btn {
  width: 100%;
  max-width: 100%;
}
.confirm-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.confirm-secondary-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
}
.confirm-portal {
  background: var(--clay-soft);
  border: 1.5px solid #e8c4b6;
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: 0 1px 0 rgba(196, 92, 62, 0.08);
}
.confirm-portal-label { color: var(--clay-deep); }
.confirm-portal-btn {
  min-height: 52px;
  font-size: 1.02rem;
  box-shadow: 0 4px 16px rgba(196, 92, 62, 0.22);
}
.confirm-portal-btn:hover {
  box-shadow: 0 6px 20px rgba(196, 92, 62, 0.3);
}
.confirm-step-optional { background: var(--sage-wash); border-color: transparent; }

@media (max-width: 480px) {
  .booked-page { padding-left: 12px; padding-right: 12px; }
  .booked-page .card.confirm {
    padding: 22px 14px 24px;
    border-radius: 16px;
  }
  .confirm-lede { font-size: 0.98rem; }
  .confirm dl { padding: 14px 14px; margin: 18px 0 6px; }
  .confirm-next { gap: 12px; }
  .confirm-next-title { font-size: 1.15rem; margin-top: 8px; }
  .confirm-step,
  .confirm-portal { padding: 14px 14px 16px; }
  .confirm-portal-btn { min-height: 50px; }
  .confirm-secondary-actions { flex-direction: column; gap: 8px; }
  .confirm-secondary-actions .btn { width: 100%; min-width: 0; }
}

@media (max-width: 390px) {
  .booked-page .card.confirm { padding: 18px 12px 22px; }
  .confirm-icon { width: 64px; height: 64px; margin-bottom: 12px; }
  .confirm h1 { font-size: 1.55rem; }
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(28, 43, 36, 0.46);
  display: grid; place-items: end center; z-index: 40; padding: 16px;
}
.modal {
  background: var(--card); border-radius: 20px 20px 16px 16px;
  width: min(480px, 100%); padding: 20px; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow: auto;
}
.ride-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.ride-opt:last-child { border-bottom: 0; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 0.9rem; z-index: 50; box-shadow: var(--shadow-lg);
}

.dash-grid { display: grid; gap: 16px; }
.peer { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.peer:last-child { border-bottom: 0; }

.notice {
  background: var(--amber-soft); border: 1px solid #ead7a0; border-radius: 12px;
  padding: 12px 14px; font-size: 0.92rem; color: #5a4310; margin: 8px 0 0;
}

.directory { display: grid; gap: 12px; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 48px; }
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .week-grid { grid-template-columns: repeat(8, 1fr); }
  .modal-backdrop { place-items: center; }
  .modal { border-radius: 20px; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .directory { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .app-wrap { padding-top: 28px; }
}

body {
  background:
    radial-gradient(1100px 420px at 8% -8%, #efe6d4 0%, transparent 55%),
    radial-gradient(900px 380px at 100% 0%, #e3efe8 0%, transparent 48%),
    var(--paper);
}

.date-chip:focus-visible,
.time-slot:focus-visible {
  outline: 3px solid var(--sage-mid);
  outline-offset: 2px;
}

.more-list.open {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

.hero-card .eyebrow { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar > span { transition: none; }
}

/* ——— Auth & extras (real app) ——— */
input[type="password"], input[type="tel"], input[type="time"], select, textarea {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: #fff; padding: 0 12px; color: var(--ink); width: 100%; font: inherit;
}
textarea { min-height: 110px; padding: 10px 12px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 28px 16px 64px; }
.auth-wrap .card { padding: 28px 24px; }
.auth-split {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 16px; color: var(--muted); font-size: 0.82rem;
}
.auth-split::before, .auth-split::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-google {
  background: var(--paper);
  color: var(--sage);
  border-color: var(--sage);
}
.btn-google:hover {
  background: var(--sage);
  color: var(--paper);
}
.google-hint { margin-top: 10px; color: var(--muted); text-align: center; }
.err { color: var(--clay-deep); font-size: 0.9rem; margin: 0 0 10px; }
.ok-msg { color: var(--sage-deep); font-size: 0.9rem; margin: 0 0 10px; font-weight: 600; }
.demo-hint {
  background: var(--sage-wash); border: 1px dashed var(--sage-mid);
  border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 16px; color: var(--sage-deep);
}
.note-list { display: grid; gap: 10px; }
.notes-head { align-items: flex-start; gap: 12px; }
.notes-unread-badge { margin-left: 8px; vertical-align: middle; }
.note {
  background: var(--sage-wash); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.note.unread {
  background: var(--amber-soft); border-color: #ead7a0;
  box-shadow: inset 3px 0 0 var(--amber);
}
.note-head {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px;
}
.note-dot {
  display: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); margin-top: 6px; flex-shrink: 0;
}
.note.unread .note-dot { display: inline-block; }
.note h4 { font-family: var(--font); font-size: 0.95rem; margin: 0; flex: 1; }
.note-mark-read { flex-shrink: 0; margin-top: -2px; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.time-slot.current { border-style: dashed; border-color: var(--sage-mid); }
#reschedule-modal .date-strip { margin: 0 0 4px; }
#reschedule-modal .slot-grid { margin-bottom: 8px; }
#reschedule-modal .time-slot span.tiny { display: block; font-size: 0.68rem; color: var(--sage); font-weight: 600; }

.badge.dismissed { background: var(--paper-2); color: var(--muted); }
.freed {
  background: var(--sky-soft); border: 1px solid #c5d6de; border-radius: 12px;
  padding: 12px 14px; font-size: 0.92rem; color: var(--sky); margin: 0 0 12px;
}
.topbar-user { font-size: 0.86rem; color: var(--muted); }
footer.site-footer a { color: inherit; }
.hidden { display: none !important; }
.flash-ok { background: var(--sage-soft); color: var(--sage-deep); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.invite-box { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }
.ride-page { max-width: 560px; margin: 0 auto; padding: 28px 16px 64px; }
.dir-link { text-decoration: none; color: inherit; }
.dir-link:hover { color: inherit; }


/* ——— Jason + setup + month calendar ——— */
.av-jason { background: #5c4a3a; }

.setup-wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 72px; }
.setup-section .eyebrow { margin-bottom: 4px; }
.howto { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.howto p { margin: 0 0 10px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); font-weight: 600; font-size: 0.88rem;
}
.day-chip:has(input:checked) { background: var(--sage-wash); border-color: var(--sage); color: var(--sage-deep); }
.day-chip input { accent-color: var(--sage); }
.check-line {
  display: flex !important; flex-direction: row; align-items: center; gap: 10px;
  font-weight: 600; margin-top: 8px;
}
.check-line input { width: auto; min-height: 0; accent-color: var(--sage); }

.choice-grid { display: grid; gap: 8px; }
.choice-card {
  display: grid; gap: 2px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--card); padding: 12px 14px; font-weight: 600; color: var(--ink);
}
.choice-card .tiny { font-weight: 400; }
.choice-card.active, .choice-card:has(input:checked) {
  border-color: var(--sage); background: var(--sage-wash); color: var(--sage-deep);
}
.choice-card input { accent-color: var(--sage); margin-right: 6px; }

.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.month-cal {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
}
.cal-dow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 4px 0;
}
.cal-day {
  min-height: 86px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 4px; display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
}
.cal-day.out { opacity: 0.42; background: var(--paper-2); }
.cal-day-num {
  align-self: flex-start; min-height: 24px; padding: 0 6px; border: 0;
  background: transparent; font-weight: 700; color: var(--ink); border-radius: 8px;
}
.cal-day-num:hover { background: var(--sage-soft); }
.cal-block {
  display: block; width: 100%; text-align: left;
  font-size: 0.68rem; font-weight: 600; line-height: 1.25;
  border: 0; border-radius: 6px; padding: 3px 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-block.booked { background: var(--sage-soft); color: var(--sage-deep); }
.cal-block.manual { background: var(--clay-soft); color: var(--clay-deep); }
.cal-block.ical { background: var(--sky-soft); color: var(--sky); }
.cal-block.ical.session { background: var(--sage); color: #fffdf8; }

input[type="url"], input[type="checkbox"] { font: inherit; }
input[type="url"] {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: #fff; padding: 0 12px; color: var(--ink); width: 100%;
}
input[type="url"]:focus { outline: 3px solid rgba(45,90,74,0.25); border-color: var(--sage); }

@media (min-width: 720px) {
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .choice-grid:not(.two) { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 104px; }
}

@media (max-width: 640px) {
  .month-cal { gap: 3px; }
  .cal-day { min-height: 72px; padding: 3px; }
  .cal-block { font-size: 0.62rem; padding: 2px 3px; }
}

/* ——— Overnight polish: trust, audience, setup, a11y ——— */
.trust-strip {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding: 18px 20px;
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.trust-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sage-wash);
  border: 1px solid var(--line);
}
.trust-item strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--sage-deep);
}
.trust-item span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.audience {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 8px;
}
.audience-grid {
  display: grid;
  gap: 14px;
}
.audience-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.audience-card h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-bottom: 10px;
}
.check-list {
  margin: 0 0 16px;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
}
.check-list li { margin: 0 0 8px; }

.referral-story h3 { font-size: 1.2rem; margin-bottom: 6px; }

.help-tip {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--sage-wash);
  border-left: 3px solid var(--sage-mid);
  padding: 8px 12px;
  border-radius: 0 10px 10px 0;
}
.choice-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}
.choice-card.active .choice-hint,
.choice-card:has(input:checked) .choice-hint {
  color: var(--sage-deep);
}

.empty-state {
  text-align: left;
}
.empty-state.compact {
  padding: 4px 0 2px;
}
.slot-banner { margin: 0 0 10px; grid-column: 1 / -1; }

.setup-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.setup-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.setup-step span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink);
  font-size: 0.75rem;
}
.setup-step.is-active {
  border-color: var(--sage);
  background: var(--sage-wash);
  color: var(--sage-deep);
}
.setup-step.is-active span {
  background: var(--sage);
  color: #fff;
}
.setup-step:focus-visible {
  outline: 3px solid var(--sage-mid);
  outline-offset: 2px;
}

.getting-started .checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.getting-started .checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.getting-started .checklist li span {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.getting-started .checklist li.done {
  color: var(--sage-deep);
}
.getting-started .checklist li.done span {
  background: var(--sage);
  color: #fff;
}
.getting-started .checklist a {
  font-weight: 600;
}

.referral:focus {
  outline: 3px solid var(--sage-mid);
  outline-offset: 3px;
}

/* Stronger focus + contrast */
.choice-card:focus-visible,
.day-chip:focus-within,
.cal-day:focus-within .cal-day-num:focus-visible,
.cal-block:focus-visible {
  outline: 3px solid var(--sage-mid);
  outline-offset: 2px;
}
.btn-ghost {
  border-color: #b7a894;
  color: var(--ink);
}
.muted { color: #4a5c53; }
.tiny { color: #4a5c53; }


.share-strip .link-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--sage-wash);
  border: 1.5px solid #c5d9ce;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.share-strip #copy-link-feedback:not([hidden]) {
  color: var(--sage-deep);
  font-weight: 600;
}
.referral h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  margin-bottom: 0.35em;
}
.referral > p {
  color: var(--ink-soft);
  max-width: 42rem;
}
.choice-card strong {
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
}

@media (min-width: 720px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .site-header { padding: 12px 14px; gap: 8px; }
  .wordmark-name { font-size: 1.02rem; }
  .nav-links .btn-sm { min-height: 36px; padding: 0 11px; font-size: 0.82rem; }
  .hero { padding: 18px 16px 36px; gap: 22px; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .lede { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: min(100%, 160px); }
  .mini-cal { grid-template-columns: 1fr; }
  .steps, .who, .audience { padding-left: 16px; padding-right: 16px; }
  .trust-strip { padding: 14px 16px; }
  .band { padding: 36px 16px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-progress { gap: 6px; }
  .setup-step { font-size: 0.78rem; padding: 7px 10px; }
  .choice-grid.two { grid-template-columns: 1fr; }
  .share-strip .link-box { flex-direction: column; align-items: stretch; }
  .share-strip .link-box code { word-break: break-all; font-size: 0.82rem; }
  .share-strip .link-box .btn { width: 100%; }
  .referral { padding: 18px 16px; }
}

@media (max-width: 420px) {
  .nav-links .btn-ghost.btn-sm[href="/book"] { display: none; }
}

/* ——— Design pass #2: hierarchy, states, calendar, type scale ——— */
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.2rem;
  --text-xl: 1.45rem;
  --text-2xl: clamp(1.7rem, 3.2vw, 2.15rem);
  --text-3xl: clamp(2.15rem, 5.2vw, 3.55rem);
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --focus-ring: 0 0 0 3px rgba(61, 122, 100, 0.35);
  --ease: 0.16s ease;
}

body { font-size: var(--text-base); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
.page-title { font-size: var(--text-2xl); }
.lede { font-size: var(--text-md); line-height: 1.6; }
.tiny { font-size: var(--text-xs); }
.sub { font-size: var(--text-sm); line-height: 1.5; }

.btn {
  transition: background var(--ease), border-color var(--ease), color var(--ease),
    box-shadow var(--ease), transform var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-primary { box-shadow: 0 1px 0 rgba(28, 43, 36, 0.06); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(196, 92, 62, 0.28); }
.btn-sage:hover { box-shadow: 0 4px 14px rgba(45, 90, 74, 0.28); }
.btn-ghost:hover { border-color: var(--sage-mid); background: var(--sage-wash); }

.card {
  transition: box-shadow var(--ease), border-color var(--ease);
}
.card:focus-within {
  border-color: #c5d4cb;
}

/* Landing rhythm */
.hero {
  padding: 40px 20px 56px;
  gap: 40px;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 18px; letter-spacing: -0.03em; }
.hero .lede { margin-bottom: 4px; }
.hero-actions { margin-top: 26px; gap: 12px; }
.hero-card {
  padding: 26px 24px;
  border-radius: 22px;
  border-color: #d5cbbb;
}
.hero-card h3 { font-size: 1.28rem; margin-bottom: 8px; }

.trust-strip { padding: 22px 20px; }
.trust-item {
  padding: 14px 14px;
  min-height: 76px;
  align-content: center;
}
.trust-item strong { font-size: 1.08rem; }

.audience { padding: 56px 20px 20px; }
.audience-card { padding: 26px 24px; }
.audience-card h2 { margin-bottom: 14px; }

.steps { padding: 40px 20px 64px; gap: 18px; }
.steps-head { margin-bottom: 14px; max-width: 40rem; }
.steps-head h2 { margin-bottom: 0; }
.step { padding: 26px 24px 22px; }
.step-num { margin-bottom: 14px; }
.referral-story {
  margin-top: 22px !important;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--card) 0%, var(--sage-wash) 100%);
  border-color: #c9d8cf;
}

.band { padding: 56px 20px; }
.band-inner { gap: 18px; }
.band .stat-row { margin-top: 12px; }

.who { padding: 56px 20px 40px; }
.who > h2 { margin-bottom: 6px; }
.who-grid { margin-top: 22px; gap: 14px; }
.who-card { padding: 20px; }

.site-footer {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 0;
  display: block;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.footer-brand span { color: var(--sage); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.9rem;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer-note {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 42em;
  line-height: 1.45;
}

/* Booking: visit chips + slot states */
#visit-kind-card h2 { margin-bottom: 6px; }
.visit-chips {
  display: grid;
  gap: 10px;
}
.choice-card {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.choice-card.active,
.choice-card:has(input:checked) {
  box-shadow: inset 3px 0 0 var(--sage), 0 1px 0 rgba(28, 43, 36, 0.04);
}
.choice-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), inset 3px 0 0 var(--sage);
}
.choice-card strong { font-size: 0.98rem; }

.slot-grid { gap: 10px; }
.time-slot {
  min-height: 48px;
  border-radius: 14px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.time-slot:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.date-chip:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.slot-loading {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.slot-skel {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--paper-2) 0%, #f7f2e8 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
  animation: sav-shimmer 1.1s ease-in-out infinite;
  border: 1px solid var(--line);
}
@keyframes sav-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slot-skel { animation: none; }
}

.empty-state {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--sage-wash);
  border: 1px dashed #c5d4cb;
}
.empty-state.compact {
  padding: 14px 14px;
}
.empty-state .empty-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 4px;
}
.empty-state .muted { margin: 0; }
.empty-retry { margin-top: 12px; }

.date-strip { padding-bottom: 14px; gap: 10px; }
.date-chip {
  min-width: 76px;
  min-height: 80px;
  border-radius: 16px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

/* Calendar readability */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.cal-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.cal-legend .lg-booked { background: var(--sage-mid); }
.cal-legend .lg-manual { background: var(--clay); }
.cal-legend .lg-ical { background: var(--sky); }
.cal-legend .lg-ical-session { background: var(--sage); }
.cal-legend .lg-today { background: transparent; border: 2px solid var(--sage); box-sizing: border-box; }

.month-cal { gap: 5px; }
.cal-dow {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 6px 0 8px;
}
.cal-day {
  min-height: 92px;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.cal-day:hover:not(.out) {
  border-color: var(--sage-mid);
  box-shadow: 0 2px 10px rgba(28, 43, 36, 0.05);
}
.cal-day.is-today {
  border-color: var(--sage);
  background: var(--sage-wash);
  box-shadow: inset 0 0 0 1px rgba(45, 90, 74, 0.18);
}
.cal-day.is-today .cal-day-num {
  background: var(--sage);
  color: #fff;
}
.cal-day.is-empty:not(.out)::after {
  content: "+";
  align-self: center;
  margin: auto 0 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-mid);
  background: rgba(45, 90, 74, 0.08);
  opacity: 0;
  transition: opacity var(--ease);
}
.cal-day.is-empty:not(.out):hover::after,
.cal-day.is-empty:not(.out):focus-within::after {
  opacity: 1;
}
.cal-day-num {
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0 7px;
}
.cal-day-num:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.cal-block {
  font-size: 0.7rem;
  border-radius: 7px;
  padding: 4px 6px;
  white-space: nowrap;
}
.cal-block:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.cal-loading {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-loading .slot-skel {
  min-height: 86px;
  height: auto;
}

/* Setup progress clarity */
.setup-progress-status {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
}
.setup-progress-wrap {
  margin: 0 0 18px;
}
.setup-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0 0 12px;
}
.setup-progress-bar > span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--sage-mid), var(--sage));
  border-radius: inherit;
  transition: width 0.25s ease;
}
.setup-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.setup-step {
  justify-content: flex-start;
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 48px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.setup-step.is-done {
  border-color: #b7d0c4;
  background: var(--sage-wash);
  color: var(--sage-deep);
}
.setup-step.is-done span {
  background: var(--sage-mid);
  color: #fff;
}
.setup-step.is-active {
  box-shadow: inset 0 0 0 1px rgba(45, 90, 74, 0.12);
}
.setup-section {
  scroll-margin-top: 18px;
}
.setup-section.is-current {
  border-color: #b7d0c4;
  box-shadow: var(--shadow), inset 3px 0 0 var(--sage);
}
.field-help {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.badge.visit-kind {
  background: var(--sage-soft);
  color: var(--sage-deep);
  margin-bottom: 10px;
}
.badge.visit-kind.session {
  background: var(--sky-soft);
  color: var(--sky);
}

.invite-box .payoff {
  background: var(--sage-wash);
  border: 1px solid #c5d4cb;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  margin: 16px 0 20px;
  color: var(--ink-soft);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--sage);
}

@media (min-width: 720px) {
  .hero { padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .visit-chips.two,
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .slot-loading { grid-template-columns: repeat(4, 1fr); }
  .cal-day { min-height: 110px; }
  .setup-progress { gap: 10px; }
}

@media (max-width: 719px) {
  .hero { padding: 22px 16px 40px; gap: 24px; }
  .audience { padding: 40px 16px 12px; }
  .steps { padding: 28px 16px 48px; }
  .band { padding: 44px 16px; }
  .who { padding: 44px 16px 28px; }
  .footer-inner { padding: 28px 16px 40px; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .slot-loading { grid-template-columns: repeat(2, 1fr); }
  .time-slot { min-height: 52px; font-size: 0.95rem; }
  .setup-progress {
    grid-template-columns: 1fr 1fr;
  }
  .setup-step { font-size: 0.8rem; padding: 8px 10px; min-height: 44px; }
  .cal-day { min-height: 74px; }
  .cal-day.is-empty:not(.out)::after { opacity: 0.55; width: 18px; height: 18px; font-size: 0.75rem; }
  .month-cal { gap: 3px; }
  .cal-block { font-size: 0.6rem; padding: 2px 3px; }
}

/* Phones ≤480px — booking slots, referral cards, dashboard calendar, landing, setup */
@media (max-width: 480px) {
  .app-wrap, .setup-wrap, .auth-wrap { padding-left: 12px; padding-right: 12px; }
  .site-header { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 18px 12px 32px; gap: 18px; }
  .hero h1 { font-size: clamp(1.7rem, 8.5vw, 2.2rem); }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; }
  .audience, .steps, .band, .who, .trust-strip { padding-left: 12px; padding-right: 12px; }
  .footer-inner { padding-left: 12px; padding-right: 12px; }
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .slot-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .time-slot {
    min-height: 50px;
    font-size: 0.92rem;
    padding: 8px 6px;
    min-width: 0;
  }
  .date-chip { min-width: 64px; min-height: 70px; }
  .visit-chips .choice-card strong {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }
  .referral { padding: 16px 12px; max-width: 100%; }
  .referral h2 { overflow-wrap: anywhere; }
  .rec-card { padding: 12px; margin: 10px 0; max-width: 100%; }
  .rec-card .row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .rec-card .row .btn { width: 100%; justify-content: center; }
  .month-cal {
    gap: 2px;
    width: 100%;
    max-width: 100%;
  }
  .cal-nav { width: 100%; }
  .cal-nav #cal-title { flex: 1; text-align: center; font-size: 0.95rem; min-width: 0; }
  .cal-day {
    min-height: 68px;
    padding: 3px;
    border-radius: 8px;
    min-width: 0;
  }
  .cal-day-num { min-height: 22px; padding: 0 4px; font-size: 0.85rem; }
  .cal-block {
    font-size: 0.58rem;
    padding: 1px 2px;
    max-width: 100%;
  }
  .cal-dow { font-size: 0.62rem; padding: 4px 0 6px; }
  .cal-legend { gap: 8px 10px; font-size: 0.74rem; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .week-col { padding: 8px 6px; min-width: 0; }
  .week-col .hrs { font-size: 0.95rem; }
  .setup-progress {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .setup-step {
    font-size: 0.75rem;
    padding: 7px 8px;
    min-height: 42px;
    min-width: 0;
  }
  .share-strip .link-box { flex-direction: column; align-items: stretch; }
  .share-strip .link-box code {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.8rem;
    min-width: 0;
  }
  .share-strip .link-box .btn { width: 100%; }
  .fields.two { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .card { max-width: 100%; }
}

/* iPhone 12/13/14 width — tighter than the 480px phone band */
@media (max-width: 390px) {
  .app-wrap, .setup-wrap, .auth-wrap { padding-left: 10px; padding-right: 10px; }
  .site-header { padding-left: 10px; padding-right: 10px; }
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .slot-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .time-slot {
    min-height: 48px;
    font-size: 0.9rem;
    padding: 8px 4px;
  }
  .date-chip { min-width: 58px; min-height: 66px; }
  .referral { padding: 14px 10px; }
  .rec-card { padding: 10px; margin: 10px 0; }
  .month-cal { gap: 2px; }
  .cal-day { min-height: 60px; padding: 2px; }
  .cal-day-num { min-height: 20px; padding: 0 3px; font-size: 0.8rem; }
  .cal-block { font-size: 0.55rem; padding: 1px 2px; }
  .cal-dow { font-size: 0.58rem; }
  .cal-legend { gap: 6px 8px; font-size: 0.7rem; }
  .setup-step { font-size: 0.72rem; padding: 6px 7px; }
  .share-strip .link-box code { font-size: 0.76rem; }
}


/* ——— Design pass #3: rhythm, waitlist, focus, global polish ——— */

/* Skip link — always keyboard-visible when focused */
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-140%);
  transition: transform var(--ease);
}
.skip:focus,
.skip:focus-visible {
  left: 12px;
  top: 12px;
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 3px;
  color: #fff;
  background: var(--sage-deep);
}

/* Global radius / shadow / hover consistency */
:root {
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 43, 36, 0.04), 0 10px 28px rgba(28, 43, 36, 0.06);
  --shadow-hover: 0 4px 18px rgba(28, 43, 36, 0.09);
  --shadow-lg: 0 8px 40px rgba(28, 43, 36, 0.1);
}

.card,
.step,
.audience-card,
.who-card,
.trust-item,
.rec-card,
.waitlist-panel,
.referral {
  border-radius: var(--radius);
}

.hero-card,
.referral,
.waitlist-panel {
  border-radius: var(--radius-lg);
}

.card:hover,
.step:hover,
.audience-card:hover,
.who-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d0c4b2;
}

a:focus-visible,
.wordmark:focus-visible,
.nav-links a:focus-visible,
.setup-step:focus-visible,
.footer-links a:focus-visible,
.btn-text:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

/* Landing spacing rhythm + subtle section dividers */
.hero {
  padding: 44px 20px 52px;
  gap: 44px;
}
.section-rule {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  border: 0;
  height: 0;
  border-top: 1px solid var(--line);
  opacity: 0.85;
}
.trust-strip {
  border-block: 0;
  padding: 28px 20px 8px;
  background: transparent;
}
.trust-inner {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.audience {
  padding: 48px 20px 12px;
}
.steps {
  padding: 36px 20px 52px;
  gap: 20px;
}
.band {
  padding: 60px 20px;
  margin-top: 8px;
}
.band-inner {
  gap: 22px;
  text-align: left;
}
.band h2 { max-width: 18ch; }
.band p { max-width: 46em; margin-bottom: 0; }
.band .stat-row { margin-top: 6px; }
.band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
}
.band-cta .btn-on-sage {
  background: #fff;
  color: var(--sage-deep);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.band-cta .btn-on-sage:hover {
  background: #f3f8f5;
  color: var(--sage-deep);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.band-cta .btn-ghost-on-sage {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.band-cta .btn-ghost-on-sage:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}


/* Landing FAQ accordion */
.faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 40px;
}
.faq-head {
  max-width: 40rem;
  margin-bottom: 18px;
}
.faq-head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 6px;
}
.faq-head .muted { margin: 0; }
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item[open] {
  border-color: #c9d8cf;
  box-shadow: var(--shadow), 0 0 0 1px rgba(45, 90, 74, 0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  padding: 16px 48px 16px 18px;
  position: relative;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq-item summary:focus-visible {
  outline: 3px solid var(--sage-mid);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}
.faq-body {
  padding: 0 18px 16px;
  color: var(--ink-soft);
}
.faq-body p { margin: 0; max-width: 42em; }

/* Final CTA band after “who” */
.final-cta {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 8px 20px 56px;
}
.final-cta-inner {
  background: linear-gradient(180deg, var(--card) 0%, var(--sage-wash) 100%);
  border: 1.5px solid #c9d8cf;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.final-cta-inner h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin: 0;
}
.final-cta-inner p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42em;
}
.final-cta .hero-actions { margin-top: 4px; }

.who {
  padding: 48px 20px 28px;
  border-top: 1px solid var(--line);
}

/* Waitlist panel — aligned with referral cards */
.waitlist-panel {
  background: linear-gradient(180deg, #fffdf8 0%, #f8efe8 100%);
  border: 1.5px solid #e0c4b4;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.waitlist-panel h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  margin-bottom: 0.35em;
}
.waitlist-panel > p {
  color: var(--ink-soft);
  max-width: 42rem;
}
.waitlist-panel:focus,
.waitlist-panel:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow);
}
.referral:focus,
.referral:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow);
}
.waitlist-panel #waitlist-form {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.waitlist-panel #waitlist-ok {
  color: var(--sage-deep);
  font-weight: 650;
  margin-top: 12px;
}

/* Dashboard waitlist rows */
.waitlist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sage-wash);
  margin-bottom: 8px;
}
.waitlist-row:last-child { margin-bottom: 0; }
.waitlist-row strong {
  display: block;
  font-size: 1rem;
}
.waitlist-row .meta {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}
.waitlist-row .waitlist-mins {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sage-deep);
  background: #fff;
  border: 1px solid #c5d4cb;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
#waitlist-card .list { gap: 0; }

/* Calendar legend spacing */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0 4px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
}
.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 8px;
}

@media (min-width: 720px) {
  .hero { padding-top: 60px; padding-bottom: 68px; }
  .final-cta-inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 20px 28px;
  }
  .final-cta-inner .hero-actions { justify-content: flex-end; }
  .band h2 { max-width: 22ch; }
}

@media (max-width: 719px) {
  .hero { padding: 24px 16px 40px; gap: 26px; }
  .section-rule { padding: 0 16px; }
  .audience { padding: 36px 16px 8px; }
  .steps { padding: 28px 16px 44px; }
  .band { padding: 48px 16px; }
  .who { padding: 36px 16px 20px; }
  .faq { padding: 4px 16px 28px; }
  .faq-item summary { padding-right: 44px; }
  .final-cta { padding: 4px 16px 44px; }
  .final-cta-inner { padding: 22px 18px; }
  .waitlist-panel { padding: 18px 16px; }
  .waitlist-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .cal-legend { gap: 10px 14px; padding: 10px 12px; }
}

@media (max-width: 480px) {
  .final-cta { padding-left: 12px; padding-right: 12px; }
  .band-cta .btn { flex: 1 1 100%; }
  .waitlist-panel #waitlist-form { padding: 12px; }
}

/* Referral network pending invites + invite accept CTA */
.pending-invites {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pending-invites-heading {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}
.invite-pending-row {
  background: var(--paper);
}
.invite-ok { color: var(--sage-deep); font-weight: 600; }
.invite-err { color: var(--clay-deep); font-weight: 600; }
.invite-link-code {
  display: inline-block;
  margin: 6px 0;
  word-break: break-all;
  font-size: 0.82rem;
}
.invite-cta { margin-top: 4px; }
.invite-cta-hint {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 36ch;
}
.invite-box .confirm .muted { margin-top: 0; }


/* ——— Design pass #4: type scale, density, spacing polish ——— */

/* Landing — hero type, CTA size, footer breath */
.hero {
  padding: 48px 20px 56px;
  gap: 40px;
}
.hero .eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.62;
  max-width: 38em;
}
.hero-actions {
  margin-top: 28px;
  gap: 12px;
}
.hero-actions .btn {
  min-height: 50px;
  padding: 0 22px;
  font-size: 0.98rem;
}
.hero-actions .btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.hero-card {
  padding: 28px 26px;
}
.hero-card h3 {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.footer-inner {
  padding: 44px 20px 56px;
  gap: 20px;
}
.footer-brand {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.footer-links {
  gap: 12px 22px;
  font-size: 0.92rem;
}
.footer-note {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-top: 2px;
}

/* Booking — faster time-to-slot cues (cream/forest/terracotta only) */
.date-chip.has-none {
  opacity: 0.58;
  background: var(--paper-2);
}
.date-chip.has-none .d { color: var(--muted); }
.date-chip.has-none.active {
  opacity: 1;
  background: var(--sage);
  color: #fff;
}
.date-chip.has-none.active .d { color: #fff; }
.date-chip.has-open {
  border-color: var(--sage-mid, var(--sage));
}
.date-chip.is-closed.has-none {
  border-style: dashed;
}
.time-slot.soonest:not(.active):not(.gone) {
  border-color: var(--sage-mid, var(--sage));
  box-shadow: inset 0 0 0 1px rgba(45, 90, 74, 0.12);
}
.time-slot .soonest-label {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--sage-deep, var(--sage));
  margin-top: 2px;
}
.time-slot.active .soonest-label,
.time-slot[aria-pressed="true"] .soonest-label {
  color: #d5e6dc;
}
#schedule-card .empty-state .empty-retry {
  margin-top: 12px;
}
#need-card {
  scroll-margin-top: 12px;
}

/* Booking — date strip + slot grid + waitlist spacing */
.date-strip {
  gap: 10px;
  padding: 6px 2px 16px;
  scroll-padding-inline: 4px;
}
.date-chip {
  min-width: 78px;
  min-height: 84px;
  padding: 8px 6px;
  border-radius: 16px;
  gap: 4px;
}
.date-chip .d {
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}
.date-chip .w {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.date-chip[aria-pressed="true"],
.date-chip.active {
  box-shadow: 0 2px 10px rgba(45, 90, 74, 0.22);
}

.slot-grid {
  gap: 10px;
  margin-top: 2px;
}
.time-slot {
  min-height: 50px;
  border-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.time-slot:hover:not(.gone):not(:disabled) {
  background: var(--sage-wash);
  border-color: var(--sage-mid);
}
.time-slot.active,
.time-slot[aria-pressed="true"] {
  box-shadow: 0 2px 10px rgba(45, 90, 74, 0.22);
}

.waitlist-panel {
  padding: 24px 24px 22px;
  margin-top: 8px;
  margin-bottom: 18px;
}
.waitlist-panel h2 {
  margin-bottom: 0.4em;
}
.waitlist-panel > p {
  margin-bottom: 0;
  line-height: 1.55;
}
.waitlist-panel #waitlist-form {
  margin-top: 16px;
  padding: 18px 16px;
  display: grid;
  gap: 12px;
}
.waitlist-panel #waitlist-form .fields {
  gap: 12px;
}
.waitlist-panel #waitlist-ok {
  margin-top: 14px;
  margin-bottom: 0;
}

/* Dashboard — denser readable cards, clearer section gaps */
.app-wrap {
  padding: 16px 16px 72px;
}
.page-title {
  margin-bottom: 0.25em;
}
.sub {
  margin-bottom: 20px;
}
.dash-grid {
  gap: 14px;
}
.card {
  padding: 16px 18px;
  margin-bottom: 12px;
}
.card h2,
.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45em;
}
.list {
  gap: 0;
}
.list-item {
  padding: 10px 0;
  gap: 6px 12px;
}
.peer {
  gap: 4px;
  padding: 10px 0;
}
.waitlist-row {
  padding: 12px 12px;
  margin-bottom: 6px;
  gap: 6px 12px;
}
.cap-hero {
  gap: 6px;
}
.cap-number {
  font-size: 2.35rem;
}
.week-grid {
  gap: 6px;
  margin-top: 4px;
}
.week-col {
  padding: 8px 6px;
}
.share-strip .link-box {
  margin-top: 8px;
  padding: 10px 12px;
}
.getting-started .checklist {
  margin-top: 10px;
  gap: 6px;
}
.note-list {
  gap: 8px;
}
.note {
  padding: 10px 12px;
}
.pending-invites {
  margin-top: 14px;
  padding-top: 12px;
}

/* Setup — consistent field rhythm */
.setup-wrap {
  padding: 16px 16px 80px;
}
.setup-progress-wrap {
  margin: 0 0 16px;
}
.setup-section {
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.setup-section .eyebrow {
  margin-bottom: 6px;
}
.setup-section .fields {
  gap: 14px;
  margin-top: 4px;
}
.setup-section label.field {
  gap: 7px;
}
.setup-section .field-help {
  margin-top: 5px;
}
.setup-section .days {
  gap: 8px;
  margin-top: 4px;
}
.setup-section .choice-grid {
  gap: 10px;
  margin-top: 4px;
}
.setup-section .howto {
  margin-top: 16px;
}
.setup-section .check-line {
  margin-top: 10px;
}
.setup-section .btn {
  margin-top: 4px;
}

@media (min-width: 720px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 72px;
    gap: 48px;
  }
  .hero-actions .btn {
    min-height: 52px;
    padding: 0 24px;
  }
  .footer-inner {
    padding: 52px 20px 64px;
  }
  .app-wrap {
    padding-top: 24px;
  }
  .dash-grid {
    gap: 16px;
  }
  .card {
    padding: 18px 20px;
  }
  .setup-section .fields.two {
    gap: 14px 16px;
  }
}

@media (max-width: 719px) {
  .hero {
    padding: 26px 16px 42px;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.55rem);
  }
  .hero-actions .btn {
    min-height: 48px;
  }
  .footer-inner {
    padding: 32px 16px 48px;
    gap: 16px;
  }
  .date-chip {
    min-width: 70px;
    min-height: 76px;
  }
  .waitlist-panel {
    padding: 20px 16px 18px;
  }
  .card {
    padding: 14px 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  }
  .hero-actions .btn {
    min-height: 48px;
    padding: 0 16px;
  }
  .footer-inner {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 44px;
  }
  .date-chip {
    min-width: 64px;
    min-height: 72px;
  }
  .time-slot {
    min-height: 50px;
  }
}


/* Dashboard client name filter */
.client-filter {
  margin: 4px 0 10px;
}
.client-filter label.field {
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.client-filter input[type="search"] {
  min-height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  width: 100%;
}
.client-filter input[type="search"]:focus {
  outline: 3px solid rgba(45,90,74,0.25);
  border-color: var(--sage);
}
.client-filter input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
#clients-filter-empty {
  margin-top: 4px;
}

/* Booking link QR (MVP via public QR image API) */
.booking-share {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}
.qr-block {
  flex: 0 0 auto;
  text-align: center;
  max-width: 140px;
}
.qr-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
}
.qr-img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  box-sizing: border-box;
}
.booking-share-link {
  flex: 1;
  min-width: 0;
}
.booking-share-link .link-box {
  margin-top: 0;
}
@media (max-width: 719px) {
  .booking-share {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .qr-block {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


/* ——— Not found / generic error empty states ——— */
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.empty-state .eyebrow {
  margin-bottom: 6px;
}
.empty-state .notfound-actions {
  margin-top: 14px;
}
.invite-box .notfound-actions {
  margin-top: 18px;
  justify-content: flex-start;
}


/* ——— Friendly empty / not-found ——— */
.empty-hero {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}
.empty-hero-card {
  max-width: 520px;
  width: 100%;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--card) 0%, var(--sage-wash) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--clay);
}
.empty-hero-card .eyebrow {
  color: var(--clay);
  margin-bottom: 8px;
}
.empty-hero-card .page-title {
  margin: 0 0 8px;
  color: var(--sage-deep);
}
.empty-hero-card .sub {
  margin-bottom: 20px;
}
.empty-hero-card .hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.empty-hero-help {
  margin: 0;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

/* ——— Design pass #5: soft hero accent, FAQ breath, chip selected, QR align ——— */

/* Landing — cream→sage hero wash + thin terracotta accent bar */
.hero {
  position: relative;
  padding: 52px 20px 60px;
  background:
    linear-gradient(
      165deg,
      var(--card) 0%,
      var(--paper) 42%,
      var(--sage-wash) 100%
    );
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(
    90deg,
    var(--clay) 0%,
    var(--clay-soft) 38%,
    var(--sage-mid) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero::before {
    left: 28px;
    right: 28px;
  }
}

/* Landing FAQ — more air between items and inside answers */
.faq {
  padding: 20px 20px 48px;
}
.faq-head {
  margin-bottom: 24px;
}
.faq-head h2 {
  margin-bottom: 10px;
}
.faq-list {
  gap: 14px;
}
.faq-item summary {
  padding: 18px 52px 18px 20px;
}
.faq-body {
  padding: 2px 20px 20px;
  line-height: 1.65;
}
.faq-body p {
  margin: 0;
  max-width: 42em;
}

/* Booking — richer selected date-chip (forest fill, cream type, clay tick) */
.date-chip {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}
.date-chip[aria-pressed="true"],
.date-chip.active {
  background: linear-gradient(180deg, var(--sage-mid) 0%, var(--sage) 55%, var(--sage-deep) 100%);
  color: #fffdf8;
  border-color: var(--sage-deep);
  box-shadow:
    0 2px 0 rgba(28, 43, 36, 0.12),
    0 6px 16px rgba(45, 90, 74, 0.28),
    inset 0 1px 0 rgba(255, 253, 248, 0.18);
  transform: translateY(-1px);
  position: relative;
}
.date-chip[aria-pressed="true"]::after,
.date-chip.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--clay);
  opacity: 0.9;
}
.date-chip[aria-pressed="true"] .d,
.date-chip.active .d {
  color: #fffdf8;
}
.date-chip[aria-pressed="true"] .w,
.date-chip.active .w {
  color: #d5e6dc;
}
.date-chip:hover:not(.active):not([aria-pressed="true"]) {
  border-color: var(--sage-mid);
  background: var(--sage-wash);
}

/* Dashboard — QR block aligned with link box */
.booking-share {
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 12px;
  background: var(--sage-wash);
  border: 1.5px solid #c5d9ce;
  border-radius: var(--radius-sm);
  max-width: none;
  box-sizing: border-box;
}
.qr-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qr-img {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 4px;
  background: #fff;
}
.booking-share-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.booking-share-link .link-box {
  margin-top: 0;
  min-height: 52px;
  align-items: center;
}
.share-strip .booking-share-link .link-box {
  margin-top: 0;
}
@media (max-width: 719px) {
  .booking-share {
    align-items: stretch;
    gap: 12px;
  }
  .qr-block {
    flex-direction: column;
    align-items: center;
    max-width: none;
  }
}


/* Specialty / category matching */
.need-chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.need-chip {
  min-height: 48px;
  padding: 10px 12px;
  justify-content: center;
}
.need-chip strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.need-chip.active {
  border-color: var(--sage);
  background: var(--sage-wash);
  color: var(--sage-deep);
  box-shadow: inset 3px 0 0 var(--clay);
}
.rec-need {
  color: var(--sage-deep);
  font-weight: 600;
  margin-top: 2px;
}
.recommend-count {
  margin: -4px 0 10px;
}
.peer-cat {
  margin-top: 8px;
}
.peer-cat select {
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  width: 100%;
}
.peer-cat select:focus {
  outline: 3px solid rgba(45,90,74,0.25);
  border-color: var(--sage);
}
#invite-form select {
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 0 12px;
  width: 100%;
}
@media (min-width: 720px) {
  .need-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .need-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-chip { min-height: 50px; padding: 10px 8px; }
  .need-chip strong { font-size: 0.9rem; overflow-wrap: anywhere; }
  .peer-cat { margin-top: 10px; }
}

#reminders-card .check-line { margin-top: 4px; }
#reminders-card .fields { max-width: 420px; }


/* Privacy / Terms — cream page, forest type, terracotta accent */
.legal-page { max-width: 760px; }
.legal-page .legal-card {
  padding: 32px 28px 36px;
  border-top: 4px solid var(--clay);
  background: var(--card);
}
.legal-page .eyebrow { color: var(--sage); }
.legal-page h2 {
  font-family: var(--serif);
  color: var(--sage-deep);
  font-size: 1.22rem;
  margin: 28px 0 8px;
}
.legal-page p, .legal-page li { color: var(--ink-soft); max-width: 42em; }
.legal-page ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-page a { color: var(--sage); font-weight: 600; }
.legal-page a:hover { color: var(--clay-deep); }
@media (max-width: 480px) {
  .legal-page .legal-card { padding: 22px 16px 28px; }
}


/* ——— Client-first landing: calm provider door ——— */
.provider-door {
  margin-top: 28px;
  max-width: 360px;
  padding: 16px 18px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.provider-door .eyebrow {
  margin-bottom: 4px;
  color: var(--muted);
  letter-spacing: 0.07em;
}
.provider-door-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.provider-door .tiny { margin: 0 0 10px; }
.provider-door-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.provider-door-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.provider-door-actions a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage);
}
.provider-door-actions a:not(.btn):hover { color: var(--sage-deep); }
.audience-card-clinician {
  background: var(--sage-wash);
  border-color: #c9d8cf;
  box-shadow: none;
}
.audience-card-clinician .hero-actions { margin-top: 8px; }
.audience-card-clinician .btn-text { padding-left: 4px; }

@media (max-width: 719px) {
  .provider-door {
    max-width: none;
    margin-top: 22px;
    padding: 14px 14px 12px;
  }
  .provider-door-actions .btn { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 480px) {
  .provider-door { padding: 14px 12px 12px; }
}


/* ——— Lighter landing: one CTA, quiet proof, more air ——— */
.hero {
  padding: 56px 20px 72px;
  gap: 48px;
}
.hero-copy { max-width: 560px; }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.55;
  max-width: 32em;
  margin-bottom: 0;
}
.hero-actions { margin-top: 28px; }
.hero-actions .btn-primary {
  min-height: 50px;
  padding: 0 26px;
}
.hero-card {
  padding: 16px 16px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--card);
  border: 1px solid var(--line);
  align-self: center;
}
.hero-card h3 { display: none; }
.hero-card-caption {
  margin: 12px 2px 2px;
  color: var(--muted);
  line-height: 1.45;
}
.mini-cal { margin-top: 0; }

.trust-strip { display: none; }

@media (min-width: 720px) {
  .hero { padding-top: 64px; padding-bottom: 80px; gap: 56px; }
}

@media (max-width: 719px) {
  .hero { padding: 32px 16px 48px; gap: 28px; }
  .hero-actions .btn {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 48px;
  }
  .hero-card { padding: 14px 12px 12px; }
  .hero .mini-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding: 24px 16px 40px; gap: 24px; }
  .hero-actions .btn {
    flex: 1 1 100%;
    min-height: 48px;
  }
  .wordmark-logo { width: 32px; height: 32px; }
}

/* ——— Public family: Open Path quiet, ScheduleAVisit materials ——— */
.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;
}

.nav-client {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 2px;
  white-space: nowrap;
}
.nav-client:hover { color: var(--sage-deep); }
.nav-client:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

body.public-chrome {
  background: var(--paper);
}
.public-chrome .site-header {
  padding: 22px 28px 18px;
  max-width: 1080px;
}
.public-chrome .wordmark-logo { border-radius: 50%; }
.public-chrome .wordmark-name { font-size: 1.22rem; }
.public-chrome .nav-links { gap: 16px; }
.public-chrome .provider-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.public-chrome .site-footer .footer-inner {
  padding: 40px 28px 56px;
}
.public-chrome .hero {
  padding: 56px 28px 80px;
  gap: 48px;
  max-width: 1080px;
}
.public-chrome .hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.public-chrome .hero.hero-solo {
  position: relative;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 88px;
  padding-bottom: 72px;
  gap: 0;
}
.public-chrome .hero.hero-solo .hero-copy { max-width: 38em; }
.public-chrome .hero.hero-solo::before,
.public-chrome .hero.hero-solo::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.public-chrome .hero.hero-solo::before {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 24px;
  background: var(--sage-soft);
  border-radius: 64% 36% 58% 42% / 46% 54% 38% 62%;
  opacity: 0.7;
}
.public-chrome .hero.hero-solo::after {
  width: 140px;
  height: 140px;
  left: -48px;
  bottom: 40px;
  background: #f0d8cc;
  border-radius: 42% 58% 36% 64% / 58% 36% 64% 42%;
  opacity: 0.55;
}
.home-find { margin-top: 28px; max-width: 34em; }

.public-chrome .hero-photo {
  position: relative;
  border: 0;
  box-shadow: none;
  background: var(--sage);
  padding: 14px;
  border-radius: 64% 36% 58% 42% / 46% 54% 38% 62%;
  overflow: hidden;
  transform: rotate(-2.5deg);
}
.public-chrome .hero-photo img {
  border-radius: 62% 38% 56% 44% / 48% 52% 40% 60%;
  aspect-ratio: 1 / 1;
  transform: rotate(2.5deg) scale(1.06);
  object-position: 48% 18%;
}
.public-chrome .step,
.public-chrome .audience-card,
.public-chrome .who-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 4px 20px;
}
.public-chrome .step:hover,
.public-chrome .audience-card:hover,
.public-chrome .who-card:hover {
  box-shadow: none;
  border-color: transparent;
}
.public-chrome .step-num {
  background: var(--sage-soft);
  color: var(--sage-deep);
}
.public-chrome .audience {
  padding: 48px 28px 24px;
}
.public-chrome .audience-card-clinician {
  background: transparent;
  border: 0;
}
.public-chrome .steps,
.public-chrome .who,
.public-chrome .faq {
  padding-left: 28px;
  padding-right: 28px;
}
.public-chrome .referral-story {
  margin-top: 12px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  background: none;
  box-shadow: none;
}
.public-chrome .section-rule {
  opacity: 0.55;
}

.quiet-band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 56px;
}
.quiet-band-inner {
  padding: 8px 0 0;
  display: grid;
  gap: 16px;
}
.quiet-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  max-width: 18ch;
}
.quiet-band p { color: var(--ink-soft); max-width: 46em; margin: 0; }
.quiet-band .stat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
}
.quiet-band .stat strong {
  color: var(--sage);
  font-size: 1.45rem;
}
.quiet-band .stat span { color: var(--muted); }
.quiet-band .band-cta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }

.public-chrome .final-cta {
  padding: 8px 28px 64px;
}
.public-chrome .final-cta-inner {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0;
}

/* Find / book search */
.find-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 96px;
}
.find-hero { padding-bottom: 12px; }
.find-hero .page-title {
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.find-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}
.find-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.find-input,
input[type="search"].find-input {
  flex: 1 1 240px;
  min-height: 56px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  padding: 0 18px;
  color: var(--ink);
  font-size: 1.05rem;
  width: 100%;
}
.find-input:focus,
input[type="search"].find-input:focus {
  outline: 3px solid rgba(45, 90, 74, 0.22);
  border-color: var(--sage);
}
.find-form .btn-primary {
  min-height: 56px;
  padding: 0 26px;
  font-size: 1rem;
}
.find-hint { margin: 22px 0 0; }
.find-browse-title {
  margin: 72px 0 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.find-count { margin: 20px 0 8px; font-size: 0.92rem; }
.find-page .directory {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.person-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px 22px 10px 10px;
  background: #fff;
  border: 1px solid #eadfcf;
  border-radius: 999px;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}
.person-card:hover {
  color: inherit;
  border-color: #d2c4ae;
  box-shadow: 0 4px 16px rgba(28, 43, 36, 0.06);
}
.find-page .person-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: 0 0 64px;
}
.person-card-copy { min-width: 0; }
.person-card strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
}
.person-cred {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}
.person-place {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.person-line {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 4px;
}
.find-empty {
  margin-top: 36px;
  padding: 8px 0;
}
.find-empty .empty-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 8px;
}
.find-live-empty { margin-top: 20px; color: var(--muted); }

@media (min-width: 720px) {
  .public-chrome .hero { padding-top: 72px; padding-bottom: 88px; }
  .quiet-band .stat-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 719px) {
  .public-chrome .site-header { padding: 16px 16px 14px; }
  .public-chrome .hero,
  .public-chrome .steps,
  .public-chrome .who,
  .public-chrome .faq,
  .public-chrome .audience,
  .quiet-band,
  .public-chrome .final-cta { padding-left: 16px; padding-right: 16px; }
  .find-page { padding: 24px 16px 72px; }
  .find-form .btn-primary { flex: 1 1 100%; border-radius: 999px; }
  .public-chrome .hero-photo { transform: none; padding: 10px; }
  .public-chrome .hero-photo img { transform: none; }
  .find-browse-title { margin-top: 48px; }
}
