/* OQS · AI Receptionist — "Meet Cathy. Try Her Live." (private prototype).
   One self-contained section above the configurator plus a modal that hosts the official Telnyx widget.
   Scoped to .cathy / .cathy-dlg — no shared styles change. */
.cathy { padding-top: var(--section-y); }
.cathy__card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: 28px; color: #f4efe9;
  background: radial-gradient(70% 90% at 85% 50%, rgba(255, 112, 52, .2), rgba(255, 112, 52, 0) 60%), linear-gradient(150deg, #17110e 0%, #0d0b0a 60%, #120c09 100%);
  box-shadow: 0 40px 80px -40px rgba(16, 10, 6, .55); }
.cathy__chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 176, 138, .28); font: 500 .6875rem/1 var(--font-meta); letter-spacing: .12em; text-transform: uppercase; color: #ffcfb5; }
.cathy__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--oqs-orange); box-shadow: 0 0 10px var(--oqs-orange); }
.cathy__card h2 { margin: 0; font-size: var(--fs-h2, clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem)); line-height: 1.02; font-weight: 400; letter-spacing: -.05em; color: #fff; }
.cathy__card h2 strong { font-weight: 600; }
.cathy__lead { max-width: 52ch; margin: 22px 0 0; color: #cfc6be; font-size: 1.0625rem; line-height: 1.6; }
.cathy__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.cathy__facts li { padding: 7px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); font: 400 .6875rem/1 var(--font-meta); letter-spacing: .08em; text-transform: uppercase; color: #b9afa7; }
.cathy__cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cathy .btn.cathy__go { --btn-bg: var(--oqs-orange); --btn-fg: #14100d; padding-left: 20px; gap: 12px; }
.cathy__go .cathy__mic { width: 18px; height: 18px; flex: none; }
.cathy__go .btn__arrow { background: rgba(20, 16, 13, .14); }
.cathy__go .btn__arrow svg:last-child { color: #14100d; }
.cathy__hint { margin: 0; font-size: .8125rem; color: #9c928a; }
/* Cathy's "voice": soft copper rings and a breathing waveform (decorative) */
.cathy__orb { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.cathy__orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 140, 90, .28); animation: cathy-ring 6s ease-in-out infinite; }
.cathy__orb i:nth-child(2) { inset: 12%; border-color: rgba(255, 140, 90, .4); animation-delay: -2s; }
.cathy__orb i:nth-child(3) { inset: 24%; border-color: rgba(255, 176, 138, .55); animation-delay: -4s; }
.cathy__core { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffb48a, #ff7034 45%, #8a2f0f 100%); box-shadow: 0 0 60px rgba(255, 112, 52, .55), inset 0 -10px 30px rgba(60, 14, 0, .45); }
.cathy__wave { display: flex; align-items: center; gap: 4px; height: 34%; }
.cathy__wave b { display: block; width: 4px; height: 100%; border-radius: 2px; background: rgba(255, 248, 242, .92); transform: scaleY(.3); animation: cathy-bar 1.6s ease-in-out infinite; }
.cathy__wave b:nth-child(2) { animation-delay: -.2s; } .cathy__wave b:nth-child(3) { animation-delay: -.5s; } .cathy__wave b:nth-child(4) { animation-delay: -.8s; } .cathy__wave b:nth-child(5) { animation-delay: -1.1s; }
.cathy__name { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap; font: 500 .6875rem/1 var(--font-meta); letter-spacing: .14em; text-transform: uppercase; color: #ffcfb5; }
@keyframes cathy-ring { 0%, 100% { transform: scale(.97); opacity: .7; } 50% { transform: scale(1.02); opacity: 1; } }
@keyframes cathy-bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ── The conversation panel (native dialog: Esc and the close button always work) ── */
.cathy-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 24px; overflow: auto; color: #f4efe9;
  background: linear-gradient(160deg, #1a1310, #0e0b0a); box-shadow: 0 0 0 1px rgba(255, 176, 138, .18), 0 40px 90px rgba(0, 0, 0, .6); }
.cathy-dlg::backdrop { background: rgba(8, 6, 5, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cathy-dlg__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0 24px; }
.cathy-dlg__id { display: flex; align-items: center; gap: 12px; font: 500 .6875rem/1.3 var(--font-meta); letter-spacing: .1em; text-transform: uppercase; color: #ffcfb5; }
.cathy-dlg__dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb48a, #ff7034 50%, #8a2f0f); box-shadow: 0 0 16px rgba(255, 112, 52, .55); }
.cathy-dlg__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cathy-dlg__x svg { width: 18px; height: 18px; }
.cathy-dlg__body { padding: 18px 24px 24px; }
.cathy-dlg h3 { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; color: #fff; }
.cathy-dlg p { margin: 12px 0 0; color: #cfc6be; font-size: .9375rem; line-height: 1.55; }
.cathy-dlg__note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.cathy-dlg__note p { margin: 0; font-size: .8125rem; color: #b9afa7; }
.cathy-dlg__note p + p { margin-top: 8px; }
.cathy-dlg__note a { color: #ffcfb5; text-decoration: underline; text-underline-offset: 2px; }
.cathy-dlg__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cathy-dlg__btn { min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 500 .75rem/1 var(--font-meta); letter-spacing: .12em; text-transform: uppercase; }
.cathy-dlg__btn svg { width: 16px; height: 16px; }
.cathy-dlg__btn--go { background: var(--oqs-orange); color: #14100d; }
.cathy-dlg__btn--end { background: #ffe1d3; color: #7a2408; }
.cathy-dlg__btn--ghost { background: transparent; color: #f4efe9; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cathy-dlg__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font: 500 .6875rem/1 var(--font-meta); letter-spacing: .1em; text-transform: uppercase; color: #9c928a; }
.cathy-dlg__time { padding: 7px 12px; border-radius: var(--radius-pill); background: rgba(255, 112, 52, .14); color: #ffcfb5; font-variant-numeric: tabular-nums; }
.cathy-dlg__stage { position: relative; min-height: 120px; margin-top: 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); display: grid; place-items: center; padding: 12px; }
.cathy-dlg__stage:empty::before { content: "Connecting to Cathy…"; font: 500 .6875rem/1 var(--font-meta); letter-spacing: .1em; text-transform: uppercase; color: #9c928a; }
.cathy-dlg__err { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 112, 52, .1); border: 1px solid rgba(255, 112, 52, .35); }
.cathy-dlg__err p { margin: 0; color: #ffd9c6; }
.cathy-dlg [hidden] { display: none !important; }

@media (max-width: 860px) {
  .cathy__card { grid-template-columns: 1fr; }
  .cathy__orb { order: -1; width: min(62%, 240px); }
}
@media (max-width: 560px) {
  .cathy__card { border-radius: 22px; padding: 28px 20px 32px; }
  .cathy__cta .btn { width: 100%; justify-content: flex-start; }
  .cathy__cta .btn .btn__arrow { margin-left: auto; }
  .cathy-dlg { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .cathy-dlg__acts .cathy-dlg__btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cathy__orb i, .cathy__wave b { animation: none; } .cathy__wave b { transform: scaleY(.6); } }
html.cathy-open { overflow: hidden; }
