/* ==========================================================================
   AI receptionist template — design system
   A calm, warm, legible system built around deep teal, ivory, and one
   terracotta accent. Type: Instrument Serif for display, Atkinson Hyperlegible
   for everything a customer or staff member has to read.
   ========================================================================== */

:root {
  --ink: #17312e;
  --ink-soft: #45605b;
  --ink-faint: #6d817c;
  --teal: #0f3f3a;
  --teal-deep: #0a302c;
  --teal-mid: #1d5d55;
  --teal-bright: #2c786c;
  --mint: #dfeee6;
  --mint-deep: #c8e2d6;
  --ivory: #f7f5ee;
  --paper: #fffdf8;
  --sand: #f1e6d4;
  --sand-deep: #e6d5bb;
  --coral: #c86f47;
  --coral-deep: #a85531;
  --coral-soft: #f4ded0;
  --rose: #b65b5b;
  --rose-soft: #f6e2de;
  --sky: #5e8c99;
  --sky-soft: #e2edf0;
  --gold: #9a7329;
  --gold-soft: #f4e8ca;
  --line: rgba(23, 49, 46, 0.13);
  --line-strong: rgba(23, 49, 46, 0.23);
  --line-dark: rgba(247, 245, 238, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 63, 58, 0.06), 0 4px 14px rgba(15, 63, 58, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 63, 58, 0.05), 0 18px 40px -18px rgba(15, 63, 58, 0.25);
  --shadow-lg: 0 30px 80px -34px rgba(15, 63, 58, 0.45);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-body: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --site-width: 1240px;
  --sidebar-width: 264px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--coral);
}

::selection {
  background: var(--mint-deep);
  color: var(--teal-deep);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.muted {
  color: var(--ink-faint);
}

.nowrap {
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.btn:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(15, 63, 58, 0.06);
  border-color: var(--teal);
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--teal-mid);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(29, 93, 85, 0.32);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.text-button:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.icon-button:hover {
  background: var(--mint);
  color: var(--teal);
  border-color: var(--mint-deep);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button-small {
  width: 36px;
  height: 36px;
}

.icon-button-small svg {
  width: 17px;
  height: 17px;
}

/* ── Brand / eyebrow ─────────────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ivory);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
}

.brand-mark.small svg {
  width: 23px;
  height: 23px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}

.brand-copy strong {
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-mid);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(44, 120, 108, 0.14);
  animation: live-pulse 2.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(44, 120, 108, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(44, 120, 108, 0.04); }
}

/* ==========================================================================
   Public site
   ========================================================================== */

.site-body {
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(200, 226, 214, 0.5), transparent 66%),
    radial-gradient(760px 420px at -10% 34%, rgba(241, 230, 212, 0.55), transparent 68%),
    var(--ivory);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: calc(var(--site-width) + 48px);
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(247, 245, 238, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 200ms ease, background-color 200ms ease;
}

.site-header:has(+ *) {
  border-bottom-color: var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav > a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.btn):hover {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-phone svg {
  width: 17px;
  height: 17px;
  color: var(--teal-mid);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: clamp(36px, 5vw, 72px);
  width: 100%;
  max-width: calc(var(--site-width) + 48px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) 24px 72px;
}

.hero-copy {
  padding-top: 18px;
}

.hero-copy h1 {
  max-width: 10.5ch;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.1vw, 5.35rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-copy h1 em {
  display: inline;
  font-weight: 400;
}

.lede {
  max-width: 50ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row > div {
  flex: 1 1 0;
  min-width: 110px;
  padding-right: 20px;
}

.trust-row > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.trust-row dt {
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-row dd {
  margin-top: 5px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.3;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.service-chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  color: var(--ink-faint);
  font-size: 0.87rem;
}

.hero-note svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--coral);
}

.hero-note a {
  color: var(--teal-mid);
  font-weight: 700;
}

/* ── Chat card ───────────────────────────────────────────────────────────── */

.chat-column {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(223, 238, 230, 0.65), rgba(255, 253, 248, 0.2)),
    var(--paper);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ivory);
  box-shadow: 0 0 0 4px rgba(223, 238, 230, 0.7);
}

.chat-avatar svg {
  width: 26px;
  height: 26px;
}

.chat-title-group {
  min-width: 0;
  flex: 1;
}

.chat-title-group h2 {
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-title-group p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.chat-title-group .live-dot {
  width: 6px;
  height: 6px;
}

.chat-head .icon-button {
  width: 38px;
  height: 38px;
}

.chat-head .icon-button svg {
  width: 18px;
  height: 18px;
}

.demo-banner,
.setup-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.45;
}

.demo-banner {
  background: var(--gold-soft);
  color: #6e5318;
}

.demo-banner span {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(110, 83, 24, 0.14);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-banner {
  background: var(--rose-soft);
  color: #7c3b3b;
}

.demo-banner code,
.setup-banner code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: clamp(300px, 38vh, 380px);
  padding: 20px 18px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--mint-deep) transparent;
  background:
    radial-gradient(430px 220px at 100% 0%, rgba(223, 238, 230, 0.32), transparent 70%),
    var(--paper);
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: 92%;
  animation: message-in 320ms var(--ease-out) both;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-assistant {
  align-self: flex-start;
}

.message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
}

.message-avatar svg {
  width: 18px;
  height: 18px;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.message-user .message-content {
  align-items: flex-end;
}

.message-bubble {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(15, 63, 58, 0.03);
}

.message-user .message-bubble {
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  background: var(--teal);
  color: #fbfaf5;
}

.message-meta {
  padding: 0 3px;
  color: var(--ink-faint);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.booking-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid var(--mint-deep);
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal);
  font-size: 0.78rem;
  line-height: 1.4;
}

.booking-note > span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-weight: 700;
}

.booking-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.booking-note small {
  padding-left: 23px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.message-error .message-bubble {
  border-color: rgba(182, 91, 91, 0.35);
  background: var(--rose-soft);
  color: #7c3b3b;
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 13px 16px;
}

.typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: typing 1.2s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.14s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.28s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid rgba(182, 91, 91, 0.2);
  background: var(--rose-soft);
  color: #7c3b3b;
  font-size: 0.8rem;
}

.chat-error[hidden] {
  display: none;
}

.chat-error-icon {
  display: grid;
  place-items: center;
  flex: none;
}

.chat-error-icon svg {
  width: 18px;
  height: 18px;
}

.chat-error .text-button {
  margin-left: auto;
  color: #7c3b3b;
  white-space: nowrap;
}

.quick-replies {
  display: flex;
  gap: 7px;
  padding: 0 18px 12px;
  overflow-x: auto;
  background: var(--paper);
  scrollbar-width: none;
}

.quick-replies[hidden] {
  display: none;
}

.quick-replies::-webkit-scrollbar {
  display: none;
}

.quick-replies button {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.quick-replies button:hover {
  background: var(--mint);
  border-color: var(--mint-deep);
  color: var(--teal);
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 0;
  padding: 12px 14px 8px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 132px;
  padding: 11px 14px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.45;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.composer textarea::placeholder {
  color: #84948f;
}

.composer textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(44, 120, 108, 0.12);
}

.send-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  color: #fffaf4;
  transition:
    background-color 160ms ease,
    transform 160ms var(--ease-spring);
}

.send-button svg {
  width: 21px;
  height: 21px;
}

.send-button:hover:not(:disabled) {
  background: var(--coral-deep);
  transform: scale(1.04);
}

.send-button:active:not(:disabled) {
  transform: scale(0.96);
}

.send-button:disabled {
  background: var(--sand-deep);
  color: #7b725f;
  cursor: not-allowed;
}

.chat-foot {
  padding: 2px 18px 13px;
  color: var(--ink-faint);
  font-size: 0.69rem;
  line-height: 1.45;
  text-align: center;
  background: var(--paper);
}

.chat-foot a {
  color: var(--teal-mid);
  font-weight: 700;
}

/* ── Visit card ──────────────────────────────────────────────────────────── */

.visit-card {
  padding: 20px 22px;
  border: 1px solid rgba(230, 213, 187, 0.8);
  border-radius: var(--radius);
  background:
    radial-gradient(320px 160px at 100% 0%, rgba(255, 253, 248, 0.7), transparent 70%),
    var(--sand);
}

.visit-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visit-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
  color: var(--coral-deep);
}

.visit-icon svg {
  width: 20px;
  height: 20px;
}

.visit-card-head h2 {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.visit-card-head p {
  margin-top: 3px;
  color: #6c5b47;
  font-size: 0.82rem;
}

.visit-card-head p.visit-area {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.45;
}

.visit-meta {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(108, 91, 71, 0.16);
}

.meta-label {
  display: block;
  margin-bottom: 7px;
  color: #7a6852;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hours-list {
  list-style: none;
  color: #524635;
  font-size: 0.8rem;
  line-height: 1.7;
}

.visit-meta > div {
  min-width: 0;
}

.visit-meta > div > a {
  display: block;
  color: #4f4232;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(79, 66, 50, 0.25);
}

.visit-meta > div > a:hover {
  color: var(--coral-deep);
}

/* ── Care section ────────────────────────────────────────────────────────── */

.care-section {
  padding: clamp(56px, 7vw, 92px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(23, 49, 46, 0.09);
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(255, 253, 248, 0.66), transparent 66%),
    var(--mint);
}

.section-heading,
.care-grid,
.step-list {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  align-items: end;
  gap: 32px;
  padding-bottom: 34px;
}

.section-heading h2 {
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.care-card {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid rgba(23, 49, 46, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

.care-card:hover {
  transform: translateY(-3px);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
}

.care-card h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.detail-list {
  margin-top: 14px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.detail-list li::before {
  display: none;
}

.card-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps-section {
  padding: clamp(60px, 7vw, 100px) 24px;
  background:
    radial-gradient(800px 360px at 90% 110%, rgba(44, 120, 108, 0.28), transparent 70%),
    var(--teal);
  color: var(--ivory);
}

.steps-section .eyebrow {
  color: var(--mint-deep);
}

.steps-section .section-heading h2 {
  color: var(--paper);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.step-list li {
  display: flex;
  gap: 18px;
  padding: 28px 30px 0 0;
}

.step-list li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line-dark);
}

.step-number {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid rgba(247, 245, 238, 0.24);
  border-radius: 50%;
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.step-list h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-list p {
  max-width: 34ch;
  margin-top: 7px;
  color: rgba(247, 245, 238, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--site-width) + 48px);
  margin: 0 auto;
  padding: 28px 24px 38px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer p {
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer nav a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 4px;
}

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

.admin-body {
  background:
    radial-gradient(900px 440px at 100% -10%, rgba(223, 238, 230, 0.7), transparent 62%),
    #f4f2ea;
  min-height: 100vh;
}

.admin-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 22px 16px 18px;
  background:
    radial-gradient(360px 220px at 0% 100%, rgba(44, 120, 108, 0.28), transparent 70%),
    var(--teal-deep);
  color: var(--ivory);
}

.sidebar-brand {
  padding: 2px 8px 22px;
  color: var(--ivory);
}

.sidebar-brand .brand-mark {
  width: 39px;
  height: 39px;
  background: rgba(247, 245, 238, 0.1);
  color: var(--mint-deep);
  border: 1px solid rgba(247, 245, 238, 0.16);
}

.sidebar-brand .brand-mark svg {
  width: 23px;
  height: 23px;
}

.sidebar-brand .brand-copy strong {
  font-size: 0.98rem;
}

.sidebar-brand .brand-copy small {
  color: rgba(247, 245, 238, 0.5);
  font-size: 0.63rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: rgba(247, 245, 238, 0.66);
  font-size: 0.87rem;
  font-weight: 400;
  text-align: left;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.nav-item svg {
  width: 19px;
  height: 19px;
  flex: none;
  opacity: 0.9;
}

.nav-item:hover {
  background: rgba(247, 245, 238, 0.07);
  color: var(--ivory);
}

.nav-item.is-active {
  background: rgba(247, 245, 238, 0.11);
  border-color: rgba(247, 245, 238, 0.09);
  color: var(--ivory);
  font-weight: 700;
}

.nav-item.is-active::before {
  position: absolute;
  left: -16px;
  width: 3px;
  height: 21px;
  border-radius: 0 3px 3px 0;
  background: var(--coral);
  content: "";
}

.nav-badge {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--coral);
  color: #fffaf4;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.nav-badge[hidden] {
  display: none;
}

.nav-item-quiet {
  color: rgba(247, 245, 238, 0.48);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 245, 238, 0.1);
}

.assistant-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.status-light {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #8fd2b4;
  box-shadow: 0 0 0 4px rgba(143, 210, 180, 0.1);
}

.assistant-status div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.assistant-status strong {
  font-size: 0.73rem;
  letter-spacing: 0.02em;
}

.assistant-status span:not(.status-light) {
  overflow: hidden;
  color: rgba(247, 245, 238, 0.48);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-bottom form {
  margin: 0;
}

.sidebar-bottom .nav-item {
  min-height: 40px;
  font-size: 0.8rem;
}

.sidebar-scrim {
  display: none;
}

.admin-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 clamp(20px, 3.4vw, 46px) 56px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 calc(clamp(20px, 3.4vw, 46px) * -1);
  padding: 16px clamp(20px, 3.4vw, 46px);
  border-bottom: 1px solid rgba(23, 49, 46, 0.08);
  background: rgba(244, 242, 234, 0.86);
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-title h1 {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.topbar-title .eyebrow {
  font-size: 0.61rem;
  letter-spacing: 0.15em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.model-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  content: "";
}

.menu-button {
  display: none;
}

.admin-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #e9e6dc 25%, #f4f1e8 40%, #e9e6dc 55%);
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-card {
  height: 128px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.admin-error {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid rgba(182, 91, 91, 0.25);
  border-radius: var(--radius);
  background: var(--rose-soft);
}

.admin-error h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-error p {
  margin: 8px 0 18px;
  color: #6d4444;
  font-size: 0.9rem;
}

.admin-content {
  padding-top: 26px;
}

#admin-content {
  padding-top: 26px;
}

.admin-view {
  animation: view-in 280ms var(--ease-out) both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(23, 49, 46, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.8);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-icon.mint { background: var(--mint); color: var(--teal-mid); }
.stat-icon.sand { background: var(--sand); color: #826332; }
.stat-icon.sky { background: var(--sky-soft); color: #3f6875; }
.stat-icon.rose { background: var(--rose-soft); color: #8c4646; }

.stat-card > div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 4px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1;
}

.stat-caption {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.69rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 13px;
  margin-top: 13px;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(23, 49, 46, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 15px;
}

.panel-head h2,
.panel-head h3 {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-head p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.77rem;
}

.panel-head .eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.chart-panel {
  min-width: 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding-top: 5px;
  color: var(--ink-faint);
  font-size: 0.67rem;
  font-weight: 700;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-dot.messages { background: var(--teal-bright); }
.legend-dot.appointments { background: var(--coral); }

.activity-chart {
  min-height: 190px;
  padding: 8px 20px 18px;
}

.activity-chart > .muted {
  padding: 50px 0;
  font-size: 0.82rem;
  text-align: center;
}

.chart-bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(7px, 2vw, 20px);
  height: 172px;
  padding-top: 8px;
}

.chart-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}

.chart-count {
  min-height: 16px;
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 700;
}

.chart-day-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: calc(100% - 36px);
  border-bottom: 1px solid var(--line);
}

.chart-bar {
  display: block;
  width: min(13px, 38%);
  height: var(--bar-height, 4%);
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  transition: height 500ms var(--ease-out), opacity 160ms ease;
}

.chart-bar-messages {
  background: var(--teal-bright);
  opacity: 0.85;
}

.chart-bar-appointments {
  background: var(--coral);
  opacity: 0.8;
}

.chart-day:hover .chart-bar {
  opacity: 1;
}

.chart-label {
  min-height: 20px;
  padding-top: 7px;
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.recent-list {
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px;
}

.recent-empty {
  padding: 22px 12px 26px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 0;
  background: none;
  text-align: left;
}

.recent-row + .recent-row {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.recent-row-button {
  width: 100%;
  transition: background-color 160ms ease;
}

.recent-row-button:hover {
  background: rgba(223, 238, 230, 0.5);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-mid);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar-soft {
  background: var(--sand);
  color: #7b6038;
}

.avatar-small {
  width: 31px;
  height: 31px;
  font-size: 0.61rem;
}

.recent-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.3;
}

.recent-copy strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-meta {
  flex: none;
  color: var(--ink-faint);
  font-size: 0.64rem;
  white-space: nowrap;
}

.recent-list-wide .recent-row {
  min-height: 62px;
}

.recent-list-wide .recent-copy span {
  max-width: 66ch;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.status-requested { background: var(--gold-soft); color: #72551d; }
.status-confirmed { background: var(--mint); color: var(--teal-mid); }
.status-completed { background: var(--sky-soft); color: #3e6570; }
.status-cancelled { background: var(--rose-soft); color: #8a4444; }

.overview-grid + .panel {
  margin-top: 13px;
}

/* ── Views / filters ─────────────────────────────────────────────────────── */

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.view-head h2 {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.view-subtitle {
  max-width: 70ch;
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.55;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(23, 49, 46, 0.07);
  color: var(--ink-faint);
  font-size: 0.62rem;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.filter-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

.filter-chip.is-active span {
  background: rgba(247, 245, 238, 0.16);
  color: var(--paper);
}

.table-panel {
  overflow: hidden;
  contain: paint;
}

.table-wrap {
  overflow-x: auto;
}

.table-hint {
  display: none;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.5);
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.table-hint::before {
  content: "↔";
  color: var(--teal-mid);
  font-size: 0.9rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 234, 0.62);
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(23, 49, 46, 0.07);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background-color 140ms ease;
}

.data-table tbody tr:hover {
  background: rgba(223, 238, 230, 0.28);
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.person-cell > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.person-cell strong {
  font-size: 0.8rem;
  font-weight: 700;
}

.person-cell span:not(.avatar) {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 0.66rem;
}

.preferred-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  white-space: nowrap;
}

.preferred-cell strong {
  font-size: 0.79rem;
  font-weight: 700;
}

.preferred-cell span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.phone-link {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-decoration-color: rgba(23, 49, 46, 0.2);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--teal);
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.status-select {
  min-height: 32px;
  max-width: 172px;
  padding: 4px 30px 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%2345605b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  appearance: none;
  cursor: pointer;
}

.status-select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.status-select.is-busy {
  opacity: 0.6;
}

.status-select.status-requested { background-color: var(--gold-soft); color: #72551d; }
.status-select.status-confirmed { background-color: var(--mint); color: var(--teal-mid); }
.status-select.status-completed { background-color: var(--sky-soft); color: #3e6570; }
.status-select.status-cancelled { background-color: var(--rose-soft); color: #8a4444; }

.last-message {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  line-height: 1.35;
}

.last-message > span:last-child {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-role {
  color: var(--ink-faint);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 56px 24px 62px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-mid);
}

.empty-icon svg {
  width: 26px;
  height: 26px;
}

.empty-state h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.empty-state p {
  max-width: 42ch;
  margin: 7px auto 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ── Business form ───────────────────────────────────────────────────────── */

.business-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-panel {
  padding-bottom: 6px;
}

.form-panel .panel-head {
  padding-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  padding: 0 20px 14px;
}

.field label {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.87rem;
  line-height: 1.45;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(44, 120, 108, 0.1);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(182, 91, 91, 0.45);
}

.field-help {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 0.69rem;
  line-height: 1.45;
}

.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.save-bar strong {
  display: block;
  font-size: 0.84rem;
}

.save-bar p {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.71rem;
}

/* ── Transcript dialog ───────────────────────────────────────────────────── */

.transcript-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(82vh, 780px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.transcript-dialog::backdrop {
  background: rgba(10, 40, 36, 0.48);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dialog-head h2 {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dialog-subtitle {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

.dialog-appointments {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.dialog-appointments[hidden] {
  display: none;
}

.dialog-appointment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.dialog-appointment > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dialog-appointment strong {
  font-size: 0.8rem;
}

.dialog-appointment span:not(.status-pill) {
  color: var(--ink-faint);
  font-size: 0.7rem;
}

.transcript-messages {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 50vh;
  padding: 20px 22px 28px;
  overflow-y: auto;
}

.transcript-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.transcript-assistant {
  align-self: flex-start;
}

.transcript-user {
  align-self: flex-end;
  align-items: flex-end;
}

.transcript-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.transcript-meta span {
  color: var(--ink-soft);
}

.transcript-bubble {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: var(--ivory);
  font-size: 0.87rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.transcript-user .transcript-bubble {
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
  background: var(--teal);
  color: #fbfaf5;
}

.dialog-open {
  overflow: hidden;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  max-width: min(380px, calc(100vw - 40px));
  padding: 12px 17px;
  border: 1px solid rgba(223, 238, 230, 0.24);
  border-radius: 10px;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.toast[data-tone="error"] {
  background: #6f3535;
  border-color: rgba(255, 220, 214, 0.2);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Login
   ========================================================================== */

.login-body {
  min-height: 100vh;
  background: var(--ivory);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  min-height: 100vh;
}

.login-aside {
  display: flex;
  flex-direction: column;
  padding: 34px clamp(28px, 5vw, 72px) 30px;
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(44, 120, 108, 0.38), transparent 68%),
    radial-gradient(500px 300px at 100% 0%, rgba(200, 111, 71, 0.16), transparent 66%),
    var(--teal-deep);
  color: var(--ivory);
}

.login-aside .brand {
  color: var(--ivory);
}

.login-aside .brand-mark {
  background: rgba(247, 245, 238, 0.1);
  border: 1px solid rgba(247, 245, 238, 0.16);
  color: var(--mint-deep);
}

.login-aside .brand-copy small {
  color: rgba(247, 245, 238, 0.5);
}

.login-quote {
  margin: auto 0;
  padding: 50px 0;
}

.login-quote .eyebrow {
  color: var(--mint-deep);
}

.login-quote h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.1vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.login-quote h1 em {
  color: #e0a27f;
}

.login-quote p:not(.eyebrow) {
  max-width: 42ch;
  margin-top: 24px;
  color: rgba(247, 245, 238, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.login-footnote {
  color: rgba(247, 245, 238, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(24px, 5vw, 64px);
  background:
    radial-gradient(600px 420px at 100% 100%, rgba(223, 238, 230, 0.55), transparent 70%),
    var(--ivory);
}

.login-card {
  width: 100%;
  max-width: 390px;
}

.login-card h2 {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-subtitle {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.55;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(182, 91, 91, 0.24);
  border-radius: 9px;
  background: var(--rose-soft);
  color: #7c3b3b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-alert svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 26px;
}

.login-form .field {
  padding: 0;
}

.login-form .field label {
  font-size: 0.75rem;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-faint);
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--teal);
  background: var(--mint);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.password-toggle .eye-closed,
.password-toggle.is-showing .eye-open {
  display: none;
}

.password-toggle.is-showing .eye-closed {
  display: block;
}

.login-help {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.55;
}

.login-help code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(23, 49, 46, 0.06);
  font-size: 0.68rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .table-hint {
    display: flex;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav .nav-phone {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
    gap: 36px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    max-width: 760px;
    padding-top: 44px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(3.2rem, 9vw, 5rem);
  }

  .chat-column {
    position: static;
  }

  .chat-messages {
    height: 350px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-heading h2 {
    max-width: 24ch;
  }

  .care-grid {
    grid-template-columns: 1fr 1fr;
  }

  .care-card:last-child {
    grid-column: 1 / -1;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list li {
    padding: 22px 0;
  }

  .step-list li + li {
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .step-list p {
    max-width: 58ch;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 240ms var(--ease-out);
    box-shadow: 0 0 50px rgba(10, 40, 36, 0.35);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(10, 40, 36, 0.5);
  }

  .sidebar-scrim[hidden] {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .menu-button {
    display: inline-grid;
  }

  .menu-open {
    overflow: hidden;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-aside {
    min-height: 300px;
    padding-bottom: 34px;
  }

  .login-quote {
    padding: 44px 0 10px;
  }

  .login-quote h1 {
    font-size: clamp(2.5rem, 7vw, 3.6rem);
  }

  .login-quote p:not(.eyebrow) {
    margin-top: 16px;
  }

  .login-panel {
    padding: 46px 24px 64px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-header {
    gap: 12px;
    padding: 11px 18px;
  }

  .site-nav > a:not(.btn) {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
  }

  .hero {
    padding: 34px 18px 52px;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 12vw, 4rem);
    max-width: 11ch;
  }

  .lede {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .trust-row {
    margin-top: 30px;
    padding: 15px 0;
  }

  .trust-row > div {
    min-width: 0;
    padding-right: 10px;
  }

  .trust-row > div + div {
    padding-left: 12px;
  }

  .trust-row dd {
    font-size: 0.85rem;
  }

  .service-chips {
    margin-top: 22px;
  }

  .chat-card {
    border-radius: 19px;
  }

  .chat-messages {
    height: 280px;
    padding: 16px 14px 12px;
  }

  .chat-head {
    padding: 13px 14px;
  }

  .chat-avatar {
    width: 38px;
    height: 38px;
  }

  .chat-avatar svg {
    width: 23px;
    height: 23px;
  }

  .chat-title-group h2 {
    font-size: 0.92rem;
  }

  .quick-replies {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0 14px 10px;
  }

  .composer {
    padding: 10px 10px 7px;
  }

  .chat-foot {
    padding: 2px 14px 11px;
  }

  .visit-card {
    padding: 18px;
  }

  .visit-meta {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .care-section,
  .steps-section {
    padding: 54px 18px;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .care-card {
    padding: 22px;
  }

  .card-number {
    margin-bottom: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px 32px;
  }

  .site-footer nav {
    gap: 16px;
  }

  .admin-topbar {
    gap: 10px;
  }

  .topbar-title h1 {
    font-size: 1.13rem;
  }

  .model-chip {
    display: none;
  }

  .topbar-actions .btn {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .stat-card {
    min-height: 112px;
    padding: 14px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .view-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-head .btn {
    align-self: flex-start;
  }

  .save-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .save-bar .btn {
    width: 100%;
  }

  .recent-meta {
    display: none;
  }

  .data-table th,
  .data-table td {
    padding: 11px 12px;
  }

  .transcript-messages {
    max-height: 44vh;
  }

  .login-aside {
    min-height: 260px;
    padding: 24px 22px 26px;
  }

  .login-quote {
    padding: 30px 0 4px;
  }

  .login-quote h1 {
    font-size: 2.35rem;
  }

  .login-quote p:not(.eyebrow) {
    display: none;
  }

  .login-footnote {
    display: none;
  }

  .login-panel {
    align-items: flex-start;
    padding: 38px 22px 54px;
  }
}

@media (max-width: 460px) {
  .save-bar,
  .panel-head {
    padding-inline: 14px;
  }

  .field {
    padding-inline: 14px;
  }

  .filter-bar {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: none;
  }

  .stat-grid {
    gap: 9px;
  }

  .stat-card {
    gap: 9px;
    padding: 12px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .chart-bars {
    gap: 5px;
  }

  .chart-bar {
    width: 8px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Operations panels ─────────────────────────────────────────────────── */
.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}
.inline-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.inline-form input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}
.plan-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}
.plan-card h4 { margin: 0 0 2px; font-size: 18px; }
.plan-card .plan-price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.plan-card .plan-price span { font-size: 12px; font-weight: 600; color: var(--muted); }
.plan-card ul { margin: 10px 0 14px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.billing-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.pill-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-status.sent { color: #20734b; }
.pill-status.queued { color: #9a6b13; }
.pill-status.failed { color: #b23a3a; }

/* ==========================================================================
   Demo mode
   ========================================================================== */

.demo-banner form {
  display: inline;
  margin: 0 0 0 auto;
}

.demo-banner .text-button {
  color: #6e5318;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(223, 238, 230, 0.8), transparent 60%),
    var(--ivory);
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: calc(var(--site-width) + 48px);
  margin: 0 auto;
  padding: 24px;
}

.demo-wrap {
  width: 100%;
  max-width: calc(var(--site-width) + 48px);
  margin: 0 auto;
  padding: 12px 24px 72px;
}

.demo-hero {
  max-width: 900px;
  padding: 28px 0 40px;
}

.demo-hero h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.demo-lede {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.demo-toast {
  max-width: 620px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(44, 120, 108, 0.25);
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.demo-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.demo-label {
  margin: 0 0 10px;
  color: var(--coral-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: demo-step;
}

.demo-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  counter-increment: demo-step;
}

.demo-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.demo-step::before {
  content: counter(demo-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 700;
}

.demo-step h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.demo-step p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-step p:last-child {
  margin-bottom: 0;
}

.demo-say {
  padding-left: 12px;
  border-left: 2px solid var(--coral);
  color: var(--ink) !important;
  font-style: italic;
}

.demo-side {
  display: grid;
  gap: 18px;
}

.demo-proof {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-proof li {
  position: relative;
  padding: 9px 0 9px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-proof li:first-child {
  border-top: 0;
  padding-top: 0;
}

.demo-proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-bright);
  font-weight: 700;
}

.demo-close {
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(223, 238, 230, 0.9), transparent 70%),
    var(--teal);
  color: var(--ivory);
}

.demo-close .demo-label {
  color: #f0c9a8;
}

.demo-close p {
  color: rgba(247, 245, 238, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-price {
  margin: 6px 0 12px !important;
  color: var(--ivory) !important;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
}

.demo-price span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.demo-close .btn {
  margin-top: 8px;
  background: var(--ivory);
  color: var(--teal);
}

.demo-reset-card form {
  margin-top: 12px;
}

.demo-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.demo-footer p {
  margin: 0;
}

.demo-footer a {
  color: var(--teal);
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero {
    padding-top: 12px;
  }
}

@media (max-width: 620px) {
  .demo-nav,
  .demo-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .demo-card {
    padding: 20px;
  }

  .demo-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .demo-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* The admin sidebar is fixed over the demo banner; keep banner copy clear of it. */
.admin-body .demo-banner {
  padding-left: calc(var(--sidebar-width) + 18px);
}

@media (max-width: 1020px) {
  .admin-body .demo-banner {
    padding-left: 18px;
  }
}

/* Standalone chat surface used inside the embeddable widget iframe. */
.embed-body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

.embed-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
}

.embed-body .chat-card {
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.embed-body .chat-messages {
  flex: 1;
  height: auto;
  min-height: 0;
}

.embed-body .composer,
.embed-body .chat-foot {
  flex: none;
}

/* ==========================================================================
   iPhone / standalone web app
   ========================================================================== */

/* The global nav link color was overriding the dark button's light text. */
.site-nav > a.btn {
  color: var(--paper);
}

.site-nav > a.btn:hover {
  color: var(--paper);
}

@supports (padding: env(safe-area-inset-bottom)) {
  .site-header {
    padding-top: max(11px, env(safe-area-inset-top));
  }

  .demo-nav {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .admin-topbar {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .sidebar {
    padding-top: max(22px, calc(env(safe-area-inset-top) + 10px));
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  }

  .composer {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .chat-foot {
    padding-bottom: max(11px, env(safe-area-inset-bottom));
  }

  .demo-wrap {
    padding-bottom: max(72px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px; /* prevents iOS Safari from zooming the page on focus */
  }

  .composer textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .demo-banner {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.35;
  }
}

/* ── v2.1 setup, scheduling, and recovery UI ───────────────────────────── */

.setup-card {
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 63, 58, .07), transparent 34%),
    var(--paper);
}

.setup-card .panel-head { margin-bottom: 8px; }
.setup-card .panel-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.setup-list { display: grid; gap: 2px; }

.setup-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.setup-item p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.setup-item.is-done { opacity: .68; }
.setup-item.is-done strong { text-decoration: line-through; text-decoration-thickness: 1px; }

.setup-check {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
}

.setup-item.is-done .setup-check {
  background: var(--mint);
  border-color: var(--mint);
}

.weekday-picker {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-picker legend {
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.weekday-picker input { accent-color: var(--teal); }

.availability-bulk-form .inline-form {
  align-items: end;
}

.reschedule-dialog { width: min(480px, calc(100vw - 32px)); }
.reschedule-dialog form { padding: 4px 24px 24px; display: grid; gap: 10px; }
.reschedule-dialog select { min-height: 46px; width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }

@media (max-width: 760px) {
  .setup-item { grid-template-columns: 24px minmax(0, 1fr); }
  .setup-item .text-button { grid-column: 2; justify-self: start; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
}

.availability-day-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.availability-day-picker select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 760px) {
  .availability-table th:first-child,
  .availability-table td:first-child {
    display: none;
  }
  .availability-table td,
  .availability-table th {
    padding-left: 10px;
    padding-right: 10px;
  }
}
