/* =========================================================================
   chairday.io/services (decision 030): websites with booking built in, and
   Chairday set-up. Loaded only by the services pages. Tokens only, so the
   light and dark themes both work. Prefix cd-svc-.
   ========================================================================= */

/* ---------- Hero ---------- */
.cd-svc-hero { position: relative; overflow: hidden; }
.cd-svc-hero::after {
  content: ""; position: absolute; right: -10%; top: 10%; width: 55%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--cd-accent-soft) 0%, transparent 65%);
}
.cd-svc-hero .cd-hero__inner { position: relative; z-index: 1; }
.cd-svc-hero__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .cd-svc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* The example website with its booking screen: drawn in markup, decorative */
.cd-svc-mock { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cd-svc-mock__stage { position: relative; padding: 0 0 48px; }
.cd-svc-mock__browser {
  background: var(--cd-surface); border: 1px solid var(--cd-border); border-radius: var(--cd-radius-lg);
  box-shadow: var(--cd-shadow-3); overflow: hidden; max-width: 560px;
}
.cd-svc-mock__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cd-surface-sunk); border-bottom: 1px solid var(--cd-border); }
.cd-svc-mock__chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--cd-border-strong); }
.cd-svc-mock__chrome b { margin-left: 10px; font: 500 0.75rem/1 var(--cd-font-ui); color: var(--cd-text-muted); background: var(--cd-surface); border-radius: 999px; padding: 6px 12px; flex: 1; }
.cd-svc-mock__site { display: flex; flex-direction: column; }
.cd-svc-mock__nav { display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-size: 0.75rem; color: var(--cd-text-muted); }
.cd-svc-mock__nav b { font: 700 0.875rem/1 var(--cd-font-display); color: var(--cd-text); margin-right: auto; }
.cd-svc-mock__book { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px; background: var(--cd-accent); color: var(--cd-on-accent); font: 700 0.75rem/1 var(--cd-font-ui); }
.cd-svc-mock__book--lg { padding: 10px 18px; font-size: 0.875rem; align-self: flex-start; }
.cd-svc-mock__banner { display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 30px; background: var(--cd-ink-2); color: var(--cd-chalk); }
.cd-svc-mock__kicker { font: 600 0.6875rem/1 var(--cd-font-ui); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.cd-svc-mock__title { font: 800 1.5rem/1.1 var(--cd-font-display); max-width: 14ch; }
.cd-svc-mock__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 8px 18px 18px; }
.cd-svc-mock__rows { display: flex; flex-direction: column; }
.cd-svc-mock__rows span { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cd-border); font-size: 0.8125rem; }
.cd-svc-mock__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; padding-top: 10px; }
.cd-svc-mock__gallery span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--cd-surface-3), var(--cd-surface-2)); }
.cd-svc-mock__gallery span:nth-child(2), .cd-svc-mock__gallery span:nth-child(3) { background: linear-gradient(135deg, var(--cd-accent-soft), var(--cd-surface-2)); }
.cd-svc-mock__rows em { font-style: normal; color: var(--cd-text-muted); }
.cd-svc-mock__rows i { font-style: normal; font-weight: 700; }
.cd-svc-mock__rows u { text-decoration: none; font-weight: 700; color: var(--cd-link); }
.cd-svc-mock__phone {
  position: absolute; right: 0; bottom: 0; width: min(250px, 46%);
  background: var(--cd-surface); border: 1px solid var(--cd-border); border-radius: 24px; padding: 10px;
  box-shadow: var(--cd-shadow-3);
}
.cd-svc-mock__phone .cd-mk-shot__screen { box-shadow: none; border: 0; padding: 12px; }
@media (min-width: 640px) { .cd-svc-mock__stage { padding-right: 24px; } .cd-svc-mock__phone { right: -4px; bottom: -6px; } }
@media (max-width: 639.98px) {
  .cd-svc-mock__phone { position: static; width: auto; margin-top: -24px; margin-left: 24px; }
  .cd-svc-mock__stage { padding: 0; }
  .cd-svc-mock__nav span:not(.cd-svc-mock__book) { display: none; }
  .cd-svc-mock__body { grid-template-columns: minmax(0, 1fr); }
  .cd-svc-mock__gallery { display: none; }
}

/* ---------- Where are you starting from ---------- */
.cd-svc-path { position: relative; display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; height: 100%; padding-top: 26px; overflow: hidden; }
.cd-svc-path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--cd-accent); }
@media (prefers-reduced-motion: no-preference) { .cd-svc-path { transition: transform 0.15s ease, box-shadow 0.15s ease; } .cd-svc-path:hover { transform: translateY(-3px); box-shadow: var(--cd-shadow-3); } }
.cd-svc-path__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cd-accent-soft); color: var(--cd-text); }
.cd-svc-path__title { font: 700 1.125rem/1.25 var(--cd-font-display); }
.cd-svc-path__price { font-weight: 700; margin-top: auto; }
.cd-svc-path__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cd-link); }

/* ---------- Booking built in ---------- */
.cd-svc-everywhere { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .cd-svc-everywhere { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; } }
.cd-svc-flow { margin: 0; min-width: 0; }
.cd-svc-flow__map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.cd-svc-flow__from { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-svc-flow__from li { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--cd-surface); border: 1px solid var(--cd-border); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.cd-svc-flow__from li::after { content: ""; position: absolute; left: 100%; top: 50%; width: 14px; height: 2px; background: var(--cd-accent); }
.cd-svc-flow__from .cd-icon { width: 18px; height: 18px; }
.cd-svc-flow__hub { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 168px; padding: 20px 14px; background: var(--cd-primary); color: var(--cd-on-primary); border-radius: var(--cd-radius-lg); box-shadow: var(--cd-shadow-3); }
.cd-svc-flow__hub b { font: 800 1rem/1.2 var(--cd-font-display); }
.cd-svc-flow__hub > span:last-child { font-size: 0.75rem; opacity: 0.85; }
.cd-svc-flow__logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cd-accent); color: var(--cd-on-accent); }
.cd-svc-flow__logo .cd-logo { width: 26px; height: 26px; }
.cd-svc-flow__done { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; background: var(--cd-success-soft); border-radius: var(--cd-radius-lg); color: var(--cd-text); }
.cd-svc-flow__done::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 2px; background: var(--cd-accent); }
.cd-svc-flow__done .cd-icon { color: var(--cd-success); width: 26px; height: 26px; }
.cd-svc-flow__done b { font: 800 1.125rem/1.1 var(--cd-font-display); }
.cd-svc-flow__done span { font-size: 0.8125rem; color: var(--cd-text); }
@media (max-width: 639.98px) {
  .cd-svc-flow__map { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .cd-svc-flow__from { flex-direction: row; flex-wrap: wrap; }
  .cd-svc-flow__from li::after, .cd-svc-flow__done::before { display: none; }
  .cd-svc-flow__hub { width: auto; }
}
.cd-svc-values { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .cd-svc-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cd-svc-values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cd-svc-values li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 14px; row-gap: 4px; padding: 18px; background: var(--cd-surface); border: 1px solid var(--cd-border); border-radius: var(--cd-radius-lg); }
.cd-svc-values__icon { grid-row: span 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cd-accent-soft); color: var(--cd-text); }
.cd-svc-values b { font: 700 1rem/1.3 var(--cd-font-display); }
.cd-svc-values span:not(.cd-svc-values__icon) { font-size: 0.9375rem; color: var(--cd-text-muted); }

/* ---------- Packages ---------- */
.cd-svc-package { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.cd-svc-package--featured { border: 2px solid var(--cd-primary); box-shadow: var(--cd-shadow-3); }
@media (min-width: 1024px) { .cd-svc-package--featured { transform: translateY(-8px); } }
.cd-svc-package__price { font: 800 2rem/1.1 var(--cd-font-display); }
.cd-svc-includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cd-svc-includes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 0.9375rem; }
.cd-svc-includes .cd-icon { color: var(--cd-success); width: 18px; height: 18px; margin-top: 2px; }
.cd-svc-includes--short { flex: 0; }
.cd-svc-care { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.cd-svc-careplan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.cd-svc-careplan__price { font-weight: 700; white-space: nowrap; }
@media (max-width: 639.98px) { .cd-svc-careplan { grid-template-columns: auto minmax(0, 1fr); } .cd-svc-careplan__price { grid-column: 2; } }

/* ---------- Questions ---------- */
.cd-svc-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.cd-svc-faq__item p { padding: 0 0 4px; max-width: 70ch; }

/* ---------- How it works: one line through the steps ---------- */
@media (min-width: 1024px) {
  .cd-mk-band .cd-mk-steps--4 { position: relative; }
  .cd-mk-band .cd-mk-steps--4::before { content: ""; position: absolute; left: 40px; right: 40px; top: 38px; height: 2px; background: var(--cd-accent); z-index: 0; }
  .cd-mk-band .cd-mk-steps--4 li { position: relative; z-index: 1; }
}
.cd-mk-band .cd-mk-steps__num { background: var(--cd-accent); color: var(--cd-on-accent); }

/* ---------- Closing call to action ---------- */
.cd-svc-cta .cd-btn--quiet { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- AI receptionist (decision 041) ----------
   A deliberately dark band in both themes (Dawn Ink to Night, with the sunrise glow), so the new
   service stands out; its colours are set here, never left to the page theme. Prices below it use
   the page tokens. */
.cd-svc-hero__new {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--cd-border);
  background: var(--cd-surface); color: var(--cd-text); font: 600 0.875rem/1.3 var(--cd-font-ui); text-decoration: none;
  box-shadow: 0 6px 18px -10px rgba(11, 51, 65, 0.35);
}
.cd-svc-hero__new span { padding: 3px 10px; border-radius: 999px; background: var(--cd-accent); color: var(--cd-on-accent); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cd-svc-hero__new:hover { border-color: var(--cd-accent); }

.cd-svc-ai__band {
  position: relative; overflow: hidden; color: #FBF9F5; color-scheme: dark;
  background:
    radial-gradient(640px 360px at 12% 0%, rgba(255, 149, 72, 0.22), transparent 62%),
    radial-gradient(560px 380px at 92% 100%, rgba(120, 186, 206, 0.16), transparent 62%),
    linear-gradient(160deg, #0B3341 0%, #06202A 100%);
}
.cd-svc-ai__band .cd-h2, .cd-svc-ai__band .cd-display { color: #FBF9F5; }
.cd-svc-ai__band .cd-lead, .cd-svc-ai__band p { color: rgba(251, 249, 245, 0.84); }
.cd-svc-ai__band .cd-mk-shot__caption { color: rgba(251, 249, 245, 0.7); }
.cd-svc-ai__band .cd-btn--secondary { background: transparent; color: #FBF9F5; border-color: rgba(251, 249, 245, 0.42); }
.cd-svc-ai__band .cd-btn--secondary:hover { border-color: #FF9548; }
.cd-svc-ai__band :focus-visible { outline-color: #FF9548; }
.cd-svc-ai__intro { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .cd-svc-ai__intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.cd-svc-ai__title { font-size: clamp(2rem, 4.4vw, 3.25rem); text-wrap: balance; }
.cd-svc-ai__band .cd-svc-ai__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 700 0.8125rem/1 var(--cd-font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: #FFC79B; }
.cd-svc-ai__new { padding: 4px 10px; border-radius: 999px; background: #FF9548; color: #06202A; letter-spacing: 0.04em; }
.cd-svc-ai__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cd-svc-ai__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cd-svc-ai__points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.cd-svc-ai__points .cd-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 149, 72, 0.16); color: #FFB27A; }
.cd-svc-ai__points span { font-size: 0.9375rem; color: rgba(251, 249, 245, 0.78); }
.cd-svc-ai__points b { display: block; margin-bottom: 2px; color: #FBF9F5; font-weight: 700; }
.cd-svc-ai__band .cd-svc-ai__from { color: rgba(251, 249, 245, 0.72); }

/* The scripted example call: a phone card, the lines appear one by one, then the booking lands */
.cd-call { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 480px; justify-self: center; width: 100%; }
.cd-call__phone {
  border-radius: 28px; padding: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
}
.cd-call__top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.cd-call__top b { color: #FBF9F5; font: 700 1rem/1.2 var(--cd-font-display); }
.cd-call__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FF9548; color: #06202A; }
.cd-call__status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: rgba(251, 249, 245, 0.7); }
.cd-call__live { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
.cd-call__timer { font: 600 0.875rem/1 var(--cd-font-ui); font-variant-numeric: tabular-nums; color: rgba(251, 249, 245, 0.7); }
.cd-call__lines { list-style: none; margin: 0; padding: 16px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.cd-call__line { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.4; }
.cd-call__line--ai { align-self: flex-start; background: #FFE3CC; color: #0B3341; border-bottom-left-radius: 6px; }
.cd-call__line--caller { align-self: flex-end; background: rgba(255, 255, 255, 0.14); color: #FBF9F5; border-bottom-right-radius: 6px; }
.cd-call__typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: #FFE3CC; width: max-content; }
.cd-call__typing i { width: 6px; height: 6px; border-radius: 50%; background: #0B3341; opacity: 0.5; }
.cd-call__diary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; border-radius: 16px; padding: 14px 16px; background: #FBF9F5; color: #0B3341; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.cd-call__diary b { font: 700 1rem/1.2 var(--cd-font-display); }
.cd-call__diary span span { font-size: 0.875rem; color: #3F5A64; font-variant-numeric: tabular-nums; }
.cd-call__diary-icon .cd-icon { width: 28px; height: 28px; color: #1B7350; }
.cd-call__text { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border-radius: 999px; padding: 8px 14px; background: rgba(74, 222, 128, 0.14); color: #C9F5D9; font-size: 0.875rem; font-weight: 600; }
.cd-call__text .cd-icon { width: 16px; height: 16px; }
.cd-svc-ai__band .cd-call__replay { align-self: flex-start; color: #FBF9F5; }
/* With the script running, lines and the booking show in turn (call-preview.js adds .is-playing) */
.cd-call.is-playing [data-call-line]:not(.is-shown), .cd-call.is-playing [data-call-done]:not(.is-shown) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cd-call [data-call-line].is-shown, .cd-call [data-call-done].is-shown { animation: cd-call-in 0.35s ease both; }
  .cd-call__typing i { animation: cd-call-dot 1s ease-in-out infinite; }
  .cd-call__typing i:nth-child(2) { animation-delay: 0.15s; }
  .cd-call__typing i:nth-child(3) { animation-delay: 0.3s; }
  .cd-call__live { animation: cd-call-pulse 2s ease-out infinite; }
}
@keyframes cd-call-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cd-call-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes cd-call-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* The live demo, beside its introduction */
.cd-svc-ai__demo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 28px; border-radius: var(--cd-radius-lg); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
@media (min-width: 1024px) { .cd-svc-ai__demo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); padding: 36px 40px; } }

/* Prices: two plans and the bundle */
.cd-svc-ai__plan { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.cd-svc-ai__bundle { border: 2px solid var(--cd-accent); box-shadow: var(--cd-shadow-3); }
.cd-svc-ai__badge { align-self: flex-start; }
