/* Ascend CRM demo landing page (/demo/). Mobile first: most visitors arrive from Instagram.
   Visual language from the Crimson Plinth system: warm paper, Instrument Serif display type,
   1px hairlines instead of shadows, a 12px radius family, and one crimson press button per view.
   The crimson is Ascend's brand red. */

:root {
  --paper: #f6f2ec;
  --surface: #ffffff;
  --sunken: #efe9e0;
  --ink: #1a1614;
  --ink-2: #4a433d;
  --muted: #6b645d;
  --faint: #8e867e;
  --hairline: #e5dfd6;
  --hairline-strong: #d6cfc3;
  --crimson: #a3202f;
  --crimson-deep: #6e1520;
  --crimson-soft: #f8ecee;
  --radius: 12px;
  --nav-h: 64px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-press: cubic-bezier(0.3, 0.7, 0.4, 1);
  --ease-snap: cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.demo {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.demo a { color: inherit; }
.demo main > section { max-width: 1120px; margin: 0 auto; padding: 80px 24px 0; scroll-margin-top: var(--nav-h); }

/* Display type: serif, with one italic crimson phrase per heading. */
.hero h1,
.section-head h2,
.spotlight-copy h2,
.final h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.section-head h2, .spotlight-copy h2 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
.demo h1 em, .demo h2 em { font-style: italic; color: var(--crimson); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Buttons ---------- */
/* Primary: the press button, the only element with depth. Its edge sits under the face and compresses on click. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--radius);
  background: var(--crimson); color: #fff !important;
  font: 600 1rem/1.1 var(--sans); letter-spacing: 0.005em; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation;
  box-shadow: 0 4px 0 var(--crimson-deep), 0 6px 0 rgba(26, 22, 20, 0.2);
  transition: transform 600ms var(--ease-press), box-shadow 600ms var(--ease-press), filter 250ms;
}
.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--crimson-deep), 0 9px 0 rgba(26, 22, 20, 0.16);
  transition-duration: 250ms; transition-timing-function: var(--ease-snap);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--crimson-deep), 0 2px 0 rgba(26, 22, 20, 0.2);
  transition-duration: 34ms;
}
.btn:focus-visible { outline: 2px solid var(--crimson); outline-offset: 5px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }

/* Secondary: flat, hairline. */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  color: var(--ink); font-weight: 500; text-decoration: none;
  transition: background-color 120ms, border-color 120ms;
}
.btn-ghost:hover { background: var(--sunken); border-color: var(--ink); }

/* Tertiary: text link, underline turns crimson on hover. */
.link {
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--hairline-strong);
  transition: color 120ms, text-decoration-color 120ms;
}
.link:hover { color: var(--crimson); text-decoration-color: var(--crimson); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.nav-logo img { display: block; height: 38px; width: auto; }
.nav .btn { margin-bottom: 4px; }

/* ---------- Hero: video sales letter ---------- */
/* One column, centred on the video: headline, the walkthrough, then a single call to action. */
.hero { padding-top: 32px !important; text-align: center; }
.vsl-for { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.hero h1 { max-width: 13ch; margin: 0 auto; font-size: clamp(2.9rem, 12.6vw, 5.5rem); }
.lede { margin: 16px auto 0; max-width: 32em; color: var(--muted); font-size: 1.125rem; }
.hero-media { max-width: 980px; margin: 28px auto 0; text-align: left; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 30px auto 0; }
.hero-actions .btn { width: 100%; max-width: 440px; }
.hero-alt { font-size: 0.95rem; color: var(--muted); }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  max-width: 640px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--hairline);
}

/* Play overlay on the poster: a round press button, gone once the video starts. */
.vsl-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 0; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
  font: 600 1rem/1.2 var(--sans);
}
.vsl-play-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 4px 0 var(--crimson-deep), 0 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 250ms var(--ease-snap), box-shadow 250ms var(--ease-snap);
}
.vsl-play-icon svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.vsl-play:hover .vsl-play-icon { transform: translateY(-2px); box-shadow: 0 6px 0 var(--crimson-deep), 0 9px 0 rgba(0, 0, 0, 0.25); }
.vsl-play:active .vsl-play-icon { transform: translateY(3px); box-shadow: 0 1px 0 var(--crimson-deep), 0 2px 0 rgba(0, 0, 0, 0.3); }
.vsl-play:focus-visible { outline: 2px solid var(--crimson); outline-offset: -6px; }
/* The poster carries its own headline, so the label is for screen readers only and the centre stays clear. */
.vsl-play-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.video.is-playing .vsl-play { display: none; }
@media (max-width: 480px) {
  .vsl-play { gap: 10px; font-size: 0.9rem; }
  .vsl-play-icon { width: 56px; height: 56px; }
  .vsl-play-icon svg { width: 22px; height: 22px; margin-left: 3px; }
}
.hero-facts dt, .extras dt {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }

/* ---------- Video ---------- */
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #0b0809; border: 1px solid var(--hairline);
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; background: var(--surface); text-align: center;
}
.video-soon img { width: min(42%, 240px); height: auto; }
.video-soon p { margin: 0; max-width: 360px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Booking ---------- */
.book-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.book-card .asc-booking { flex: 1; min-height: 0; }
.book-note { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }
.book-note .link { color: var(--ink); }

/* ---------- Product ---------- */
.features {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.feature { min-width: 0; display: flex; flex-direction: column; padding: 28px 24px; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.feature > p { margin: 8px 0 22px; color: var(--muted); font-size: 0.95rem; }
.ui {
  margin-top: auto;
  background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 10px;
  overflow: hidden; font-size: 0.84rem; color: var(--ink);
}
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--hairline);
}
.inbox li:last-child { border-bottom: 0; }
.inbox-who strong { font-weight: 600; }
.inbox-who span { margin-left: 4px; color: var(--muted); font-size: 0.76rem; }
.inbox-msg { grid-column: 1; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-ago { grid-column: 2; grid-row: 1; color: var(--faint); font-size: 0.74rem; }
.renewals { width: 100%; border-collapse: collapse; }
.renewals th {
  padding: 9px 14px; text-align: left;
  background: var(--sunken); color: var(--muted);
  font-size: 0.72rem; font-weight: 600;
}
.renewals td { padding: 11px 14px; border-top: 1px solid var(--hairline); vertical-align: top; }
.renewals td:first-child { font-weight: 600; }
.renewals td:nth-child(2), .renewals td:nth-child(3) { white-space: nowrap; }
.renew-who { display: block; color: var(--muted); font-weight: 400; font-size: 0.76rem; }
.state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.state-due { background: #fbeedd; color: #8f4f08; }
.state-sent { background: #ece9f5; color: #4b3f8a; }
.state-done { background: #e4f1ea; color: #22603f; }
.docs { padding: 16px; }
.docs-for { margin: 0 0 12px; font-weight: 600; }
.docs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-btn {
  padding: 8px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  font-size: 0.8rem; font-weight: 600;
}
.doc-btn:nth-child(2) { background: var(--ink); border-color: var(--ink); color: #fff; }
.docs-done { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #22603f; font-weight: 600; }
.docs-done svg { width: 16px; height: 16px; flex: none; }

.more { display: grid; margin: 40px 0 0; border-top: 1px solid var(--hairline); }
.more > div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.more dt { font-weight: 600; font-size: 1.05rem; }
.more dd { margin: 4px 0 0; color: var(--muted); }
.sample-note { margin: 14px 0 0; color: var(--faint); font-size: 0.78rem; }

/* ---------- Image plates ---------- */
.plate {
  margin: 0;
  border-radius: var(--radius); overflow: hidden;
  background: #0d0f14; border: 1px solid var(--hairline);
}
.plate img { display: block; width: 100%; height: auto; }
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.spotlight-copy p { margin: 16px 0 22px; max-width: 32em; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Pricing ---------- */
.offer {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin: 0; padding: 14px 18px;
  background: var(--crimson-soft); border: 1px solid #ecd3d7; border-radius: var(--radius);
}
.offer strong { color: var(--crimson); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.offer span { font-weight: 600; }
.offer .offer-left { margin-left: auto; color: var(--crimson-deep); font-weight: 500; font-variant-numeric: tabular-nums; }
.price-head { margin: 48px 0 4px; font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.price-intro { margin: 0 0 18px; color: var(--muted); }
.plans {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.plan { min-width: 0; padding: 26px 24px 24px; }
.plan + .plan { border-top: 1px solid var(--hairline); }
.plan.is-featured { box-shadow: inset 0 3px 0 var(--crimson); }
.plan-name {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.25;
}
.plan-badge, .addon-note {
  flex: none; padding: 4px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-badge { background: var(--crimson-soft); color: var(--crimson-deep); }
.addon-note { border: 1px solid var(--hairline-strong); color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 14px 0 6px; color: var(--muted); font-size: 0.9rem; }
.plan-price strong { font: 400 clamp(3.25rem, 14vw, 4.25rem)/0.95 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.plan-cur { align-self: flex-start; margin-top: 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-limits { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.plan-founding { margin: 0 0 4px; color: var(--crimson); font-size: 0.9rem; font-weight: 600; }
.plan-incl { margin-top: 18px; border-top: 1px solid var(--hairline); }
.plan-incl summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 14px 28px 0 0; font-size: 0.92rem; font-weight: 600;
}
.plan-incl summary::-webkit-details-marker { display: none; }
.plan-incl summary::after {
  content: "+"; position: absolute; right: 2px; top: 8px;
  font-size: 1.35rem; font-weight: 400; color: var(--faint); transition: transform 0.2s;
}
.plan-incl[open] summary::after { transform: rotate(45deg); }
.incl-intro { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; }
.ticks li { position: relative; padding: 5px 0 5px 22px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--crimson); border-bottom: 1.5px solid var(--crimson);
  transform: rotate(-45deg);
}
.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; margin: 24px 0 0; }
.extras > div { padding: 14px 0; border-top: 1px solid var(--hairline); }
.extras dd { margin: 4px 0 0; font-size: 0.95rem; font-weight: 600; }
.price-fine { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.addon {
  margin-top: 32px; padding: 24px;
  background: var(--sunken); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.addon .plan-price { margin-bottom: 0; }
.addon .price-fine { color: var(--faint); }
.benchmark {
  margin: 44px 0 0; padding-top: 20px; max-width: 46em;
  border-top: 1px solid var(--hairline);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--muted);
}
.pricing-cta { margin: 28px 0 0; }

/* ---------- How the demo works ---------- */
.step-row { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.step-row li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
}
.step-num { grid-row: 1 / span 2; font: 400 3.25rem/0.9 var(--serif); letter-spacing: -0.03em; }
.step-row li:last-child .step-num { color: var(--crimson); }
.step-row strong { font-size: 1.1rem; font-weight: 600; }
.step-row p { margin: 4px 0 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { max-width: 760px; border-bottom: 1px solid var(--hairline); }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 36px 18px 0; font-size: 1.05rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 1.5rem; font-weight: 400; color: var(--faint); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 62ch; color: var(--muted); }

/* ---------- Final + footer ---------- */
.final { padding-top: 112px !important; padding-bottom: 96px; }
.final h2 { max-width: 11em; font-size: clamp(3rem, 12vw, 4.75rem); }
.final p { margin: 16px 0 30px; color: var(--muted); font-size: 1.0625rem; }
.foot {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 24px calc(100px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: 0.85rem;
}
.foot img { display: block; height: 30px; width: auto; }
.foot p { margin: 0; text-align: right; }

/* ---------- Sticky mobile CTA ---------- */
.sticky.btn {
  position: fixed; left: 16px; right: 16px; z-index: 40;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 4px);
  min-height: 54px;
}
.sticky.is-hidden { transform: translateY(170%); opacity: 0; pointer-events: none; }

/* ---------- Zamili chat bubble (Ascend Assistant) ---------- */
/* Phones: the sticky button stops short of the bubble, and the bubble hides while the booking form is on screen. */
@media (max-width: 880px) {
  .sticky.btn { right: 92px; }
  body.book-in-view #zamili-chatbot-widget:not(.zcb-open) {
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transition: opacity 200ms, visibility 0s 200ms;
  }
}

/* ---------- Larger screens ---------- */
@media (min-width: 881px) {
  .demo main > section { padding-top: 112px; }
  .nav { padding: 0 32px; }
  /* Keep the video high on the screen: two-line headline, tight rhythm above the player. */
  .hero { padding-top: 40px !important; }
  .hero h1 { max-width: 19ch; font-size: clamp(3.5rem, 5.4vw, 4.5rem); }
  .lede { margin-top: 14px; }
  .hero-media { max-width: 900px; margin-top: 30px; }
  .vsl-play-icon { width: 96px; height: 96px; }
  .vsl-play-icon svg { width: 34px; height: 34px; }
  .vsl-play { font-size: 1.125rem; }

  .book-card { height: min(88vh, 720px); }
  .book-card .asc-booking { max-height: 100%; }

  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature + .feature { border-top: 0; border-left: 1px solid var(--hairline); }
  .more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .more > div { border-top: 1px solid var(--hairline); border-bottom: 0; }

  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }

  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--hairline); }
  .extras { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
  .addon { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0 40px; padding: 28px 32px; }
  .addon-head { grid-column: 1; }
  .addon .ticks { grid-column: 2; grid-row: 1; margin-top: 0; }
  .addon .price-fine { grid-column: 1 / -1; }

  .step-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .step-row li { display: block; padding: 24px 0 0; border-bottom: 0; }
  .step-num { display: block; margin-bottom: 18px; font-size: 5rem; }

  .foot { padding-bottom: 32px; }
  .sticky.btn { display: none; }
}

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

/* ---------- Booking widget colours ---------- */
/* booking.css hard-codes a blue and navy palette; these rules map it to the page palette, scoped to the demo widget. */
.asc-booking--demo { color: #1a1614; }
.asc-booking--demo .asc-cal__info { border-right: 1px solid #e5dfd6; }
.asc-booking--demo .asc-cal__info.is-overlay-scrollbar-visible { scrollbar-color: rgba(26, 22, 20, 0.38) transparent; }
.asc-booking--demo .asc-cal__info.is-overlay-scrollbar-visible::-webkit-scrollbar-thumb { background: rgba(26, 22, 20, 0.38); }
.asc-booking--demo .asc-cal__info.is-overlay-scrollbar-visible::-webkit-scrollbar-thumb:hover { background: rgba(26, 22, 20, 0.52); }
.asc-booking--demo .asc-cal__brand-sep { background: #e5dfd6; }
.asc-booking--demo .asc-cal__brand span { color: #a3202f; }
.asc-booking--demo .asc-cal__avatar { border: 3px solid #efe9e0; }
.asc-booking--demo .asc-cal__host { color: #6b645d; }
.asc-booking--demo .asc-cal__title { color: #1a1614; }
.asc-booking--demo .asc-cal__meta li { color: #4a433d; }
.asc-booking--demo .asc-cal__meta svg { color: #6b645d; }
.asc-booking--demo .asc-cal__meta li:nth-child(2) { color: #6b645d; }
.asc-booking--demo .asc-cal__desc { color: #4a433d; }
.asc-booking--demo .asc-cal__desc-lead { color: #1a1614; }
.asc-booking--demo .asc-cal__more-toggle { color: #a3202f; }
.asc-booking--demo .asc-cal__section { border-top: 1px solid #e5dfd6; }
.asc-booking--demo .asc-cal__section summary { color: #1a1614; }
.asc-booking--demo .asc-cal__section summary::after { color: #6b645d; }
.asc-booking--demo .asc-cal__check, .asc-booking--demo .asc-cal__dots, .asc-booking--demo .asc-cal__nope { color: #4a433d; }
.asc-booking--demo .asc-cal__dots li::before { background: #a3202f; }
.asc-booking--demo .asc-cal__invest strong { color: #1a1614; }
.asc-booking--demo .asc-cal__foot { border-top: 1px solid #e5dfd6; border-right: 1px solid #e5dfd6; }
.asc-booking--demo .asc-cal__foot-link { color: #a3202f; }
.asc-booking--demo .asc-cal__view-title { color: #1a1614; }
.asc-booking--demo .asc-booking-error { border-left: 3px solid #a3202f; background: #f8ecee; color: #8a1a27; }
.asc-booking--demo .asc-cal__month { color: #1a1614; }
.asc-booking--demo .asc-cal__nav-btn { color: #4a433d; }
.asc-booking--demo .asc-cal__nav-btn:hover:not(:disabled) { background: rgba(26, 22, 20, 0.06); }
.asc-booking--demo .asc-cal__weekdays span { color: #8e867e; }
.asc-booking--demo .asc-cal__picker.has-times .asc-cal__picker-left { border-right: 1px solid #e5dfd6; }
.asc-booking--demo .asc-cal__slots-day { color: #1a1614; }
.asc-booking--demo .asc-cal__day { color: #1a1614; }
.asc-booking--demo .asc-cal__day--available { background: #f8ecee; color: #a3202f; }
.asc-booking--demo .asc-cal__day--available:hover { background: #a3202f; }
.asc-booking--demo .asc-cal__day--selected { background: #a3202f; }
.asc-booking--demo .asc-cal__day--disabled { color: #cfc7bb; }
.asc-booking--demo .asc-cal__tz { border-top: 1px solid #e5dfd6; }
.asc-booking--demo .asc-cal__tz-label { color: #1a1614; }
.asc-booking--demo .asc-cal__tz-toggle { color: #1a1614; }
.asc-booking--demo .asc-cal__tz-toggle:hover { background: rgba(26, 22, 20, 0.04); border-color: #e5dfd6; }
.asc-booking--demo .asc-cal__tz-globe { color: #6b645d; }
.asc-booking--demo .asc-cal__tz-caret { color: #6b645d; }
.asc-booking--demo .asc-cal__tz-panel { border: 1px solid #e5dfd6; box-shadow: 0 16px 48px rgba(26, 22, 20, 0.18); }
.asc-booking--demo .asc-cal__tz-search { border-bottom: 1px solid #efe9e0; color: #6b645d; }
.asc-booking--demo .asc-cal__tz-search input { color: #1a1614; }
.asc-booking--demo .asc-cal__tz-head-label { color: #8e867e; }
.asc-booking--demo .asc-cal__tz-fmt { color: #6b645d; }
.asc-booking--demo .asc-cal__switch { background: #a3202f; }
.asc-booking--demo .asc-cal__tz-item { color: #4a433d; }
.asc-booking--demo .asc-cal__tz-item:hover { background: #f6f2ec; }
.asc-booking--demo .asc-cal__tz-item.is-selected { background: #f8ecee; color: #a3202f; }
.asc-booking--demo .asc-cal__tz-item-time { color: #1a1614; }
.asc-booking--demo .asc-cal__tz-empty { color: #8e867e; }
.asc-booking--demo .asc-cal__back { color: #a3202f; }
.asc-booking--demo .asc-cal__slots-hint { color: #8e867e; }
.asc-booking--demo .asc-cal__slot-btn { border: 1px solid #a3202f; color: #a3202f; }
.asc-booking--demo .asc-cal__slot-btn:hover { background: #a3202f; }
.asc-booking--demo .asc-cal__slot-btn.is-selected { background: #a3202f; }
.asc-booking--demo .asc-cal__picked { color: #a3202f; }
.asc-booking--demo .asc-cal__field label { color: #1a1614; }
.asc-booking--demo .asc-cal__field input[type="text"], .asc-booking--demo .asc-cal__field input[type="email"], .asc-booking--demo .asc-cal__field input[type="tel"] { border: 1px solid #d6cfc3; color: #1a1614; }
.asc-booking--demo .asc-cal__field textarea { border: 1px solid #d6cfc3; color: #1a1614; }
.asc-booking--demo .asc-cal__field-note { color: #8e867e; }
.asc-booking--demo .asc-cal__field input:focus { border-color: #a3202f; box-shadow: 0 0 0 3px rgba(163, 32, 47, 0.12); }
.asc-booking--demo .asc-cal__field textarea:focus { border-color: #a3202f; box-shadow: 0 0 0 3px rgba(163, 32, 47, 0.12); }
.asc-booking--demo .asc-cal__invest-q legend { color: #4a433d; }
.asc-booking--demo .asc-cal__choice span { border: 1px solid #d6cfc3; color: #4a433d; }
.asc-booking--demo .asc-cal__choice input:checked + span { border-color: #a3202f; background: #f8ecee; color: #a3202f; }
.asc-booking--demo .asc-cal__submit { background: #a3202f; }
.asc-booking--demo .asc-cal__progress-pct { color: #a3202f; }
.asc-booking--demo .asc-cal__progress-label { color: #4a433d; }
.asc-booking--demo .asc-cal__step-title { color: #1a1614; }
.asc-booking--demo .asc-cal__step-hint { color: #6b645d; }
.asc-booking--demo .asc-cal__chip-q legend { color: #1a1614; }
.asc-booking--demo .asc-cal__chip span { border: 1px solid #d6cfc3; color: #4a433d; }
.asc-booking--demo .asc-cal__chip span:hover { border-color: #cfc7bb; }
.asc-booking--demo .asc-cal__chip input:checked + span { border-color: #a3202f; background: #f8ecee; color: #a3202f; }
.asc-booking--demo .asc-cal__invest-lead { color: #4a433d; }
.asc-booking--demo .asc-cal__agree { color: #1a1614; }
.asc-booking--demo .asc-cal__agree input { accent-color: #a3202f; }
.asc-booking--demo .asc-cal__qualify-back { border: 1px solid #d6cfc3; color: #4a433d; }
.asc-booking--demo .asc-cal__qualify-back:hover { border-color: #a3202f; color: #a3202f; }
.asc-booking--demo .asc-cal__success-title { color: #1a1614; }
.asc-booking--demo .asc-cal__success-when { color: #a3202f; }
.asc-booking--demo .asc-cal__success-line { color: #4a433d; }
.asc-booking--demo .asc-cal__success-line--strong { color: #1a1614; }
@media (max-width: 768px) {
  .asc-booking--demo .asc-cal__foot { border-top: 1px solid #e5dfd6; }
  .asc-booking--demo .asc-cal__schedule { border-top: 1px solid #e5dfd6; }
  .asc-booking--demo .asc-cal__picker.has-times .asc-cal__picker-left { border-bottom: 1px solid #e5dfd6; }
  .asc-booking--demo .asc-cal__qualify-nav { border-top: 1px solid #efe9e0; }
}

/* ---------- Booking widget: type, buttons and surfaces ---------- */
.asc-booking--demo,
.asc-booking--demo button,
.asc-booking--demo input,
.asc-booking--demo textarea { font-family: var(--sans); }
.asc-booking--demo { color: var(--ink); }
.asc-booking--demo .asc-cal__title { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -0.015em; }
.asc-booking--demo .asc-cal__view-title { font-weight: 600; }
.asc-booking--demo .asc-cal__milestone { background: var(--paper); border: 1px solid var(--hairline); }
.asc-booking--demo .asc-cal__progress-track { background: var(--sunken); }
.asc-booking--demo .asc-cal__progress-bar { background: var(--crimson); }
.asc-booking--demo .asc-cal__slot-btn,
.asc-booking--demo .asc-cal__chip span,
.asc-booking--demo .asc-cal__field input[type="text"],
.asc-booking--demo .asc-cal__field input[type="email"],
.asc-booking--demo .asc-cal__field input[type="tel"] { border-radius: 10px; }
.asc-booking--demo .asc-cal__submit {
  border-radius: var(--radius);
  background: var(--crimson);
  font-weight: 600; font-size: 1rem;
  animation: none;
  box-shadow: 0 4px 0 var(--crimson-deep), 0 6px 0 rgba(26, 22, 20, 0.2);
  transition: transform 600ms var(--ease-press), box-shadow 600ms var(--ease-press), filter 250ms;
}
.asc-booking--demo .asc-cal__submit:hover:not(:disabled) {
  background: var(--crimson); filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--crimson-deep), 0 9px 0 rgba(26, 22, 20, 0.16);
  transition-duration: 250ms; transition-timing-function: var(--ease-snap);
}
.asc-booking--demo .asc-cal__submit:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--crimson-deep), 0 2px 0 rgba(26, 22, 20, 0.2);
  transition-duration: 34ms;
}
.asc-booking--demo .asc-cal__qualify-back { border-radius: var(--radius); font-weight: 500; }
.asc-booking--demo .asc-cal__qualify-back:hover { border-color: var(--ink); color: var(--ink); background: var(--sunken); }
/* The base widget uses an emoji check here; use the page's drawn tick instead. */
.asc-booking--demo .asc-cal__check li::before {
  content: ""; left: 2px; top: 7px;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--crimson); border-bottom: 1.5px solid var(--crimson);
  transform: rotate(-45deg);
}

/* ---------- Booking form: pinned header and buttons, scrolling questions ---------- */
/* Scoped to the demo widget so the audit booking popup on the homepage keeps its own layout. */
.asc-booking--demo .asc-cal__schedule:has(.asc-cal__view[data-view="qualify"].is-active) { overflow: hidden; }
.asc-booking--demo .asc-cal__view.is-active[data-view="qualify"] {
  display: flex; flex-direction: column; min-height: 0;
  scroll-margin-top: calc(var(--nav-h) + 6px);
}
.asc-booking--demo .asc-cal__view[data-view="qualify"] > .asc-cal__back,
.asc-booking--demo .asc-cal__milestone,
.asc-booking--demo .asc-cal__picked { flex: none; }
/* Always show "Change time" at the top, on every step and screen size. */
.asc-booking--demo .asc-cal__back[data-goto="calendar"] { display: inline-flex !important; padding-bottom: 10px; }
.asc-booking--demo .asc-cal__steps {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin: 0 -4px; padding: 2px 4px 8px;
  border-top: 1px solid var(--hairline);
}
.asc-booking--demo .asc-cal__steps .asc-cal__step-title { margin-top: 14px; }
.asc-booking--demo .asc-cal__qualify-nav {
  flex: none; position: static;
  margin: 0; padding: 14px 0 6px;
  background: var(--surface); border-top: 1px solid var(--hairline);
}

/* ---------- Booking widget on phones ---------- */
@media (max-width: 768px) {
  .book { padding-left: 0 !important; padding-right: 0 !important; }
  .book .section-head, .book-note { padding: 0 24px; }
  .book-card { border-radius: 0; border-left: 0; border-right: 0; }
  /* Let the page scroll instead of the widget. */
  .book-card .asc-booking { overflow: visible; }
  .book-card .asc-cal { overflow: visible; height: auto; }
  .book-card .asc-cal__info { padding-top: 22px; }
  .book-card .asc-cal__desc { display: none; }
  .asc-booking--demo .asc-cal__title { font-size: 1.75rem; }

  /* The form becomes a full-screen panel under the site bar: header and buttons stay put. */
  .asc-booking--demo .asc-cal__schedule:has(.asc-cal__view[data-view="qualify"].is-active) { overflow: visible; padding-bottom: 0; }
  .asc-booking--demo .asc-cal__view.is-active[data-view="qualify"] {
    flex: 0 0 auto; /* the base widget sets flex: 1, which would override this height */
    height: calc(100dvh - var(--nav-h) - 12px);
    padding-bottom: 0;
  }
  .asc-booking--demo .asc-cal__qualify-nav {
    padding: 12px 0 max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--hairline);
  }
  /* Errors float above the buttons so they are never scrolled out of sight. */
  .asc-booking--demo .asc-booking-error:not([hidden]) {
    position: fixed; left: 16px; right: 16px;
    bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; margin: 0;
    border-radius: 10px;
  }
}
