:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f6f5ef;
  --card: rgba(255,255,255,.82);
  --line: rgba(16,24,40,.12);
  --lime: #c7f36a;
  --lime-dark: #8dbb31;
  --coral: #ff6b57;
  --blue: #5b67f1;
  --shadow: 0 24px 80px rgba(36, 43, 74, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(199,243,106,.22), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(91,103,241,.12), transparent 30rem),
    var(--paper);
  overflow-x: hidden;
}

button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.topbar, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.topbar { height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 850; letter-spacing: -.04em; }
.brand em { font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 7px; }
.brand-mark { width: 34px; height: 34px; background: var(--ink); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: rotate(-3deg); }
.brand-mark i { width: 3px; display: block; background: var(--lime); border-radius: 99px; }
.brand-mark i:nth-child(1) { height: 9px; }.brand-mark i:nth-child(2) { height: 17px; }.brand-mark i:nth-child(3) { height: 12px; }
.live-stat { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.live-stat span { width: 8px; height: 8px; background: #2bb673; border-radius: 50%; box-shadow: 0 0 0 5px rgba(43,182,115,.12); margin-right: 4px; }
.live-stat strong { color: var(--ink); }

main { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 164px); margin: 0 auto; display: grid; }
.screen { grid-area: 1/1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility .3s; pointer-events: none; }
.screen.active { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
#welcomeScreen { display: grid; grid-template-columns: 1fr minmax(420px, .82fr); gap: clamp(48px, 7vw, 110px); align-items: center; padding: 44px 0 74px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { font-size: clamp(58px, 8vw, 106px); line-height: .91; letter-spacing: -.075em; margin: 0; font-weight: 880; }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lead { max-width: 570px; margin: 32px 0 0; color: #475467; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; letter-spacing: -.02em; }
.start-card { background: var(--card); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); border-radius: 28px; padding: 30px; backdrop-filter: blur(18px); }
fieldset { border: 0; padding: 0; margin: 0 0 27px; }
legend { font-size: 13px; font-weight: 750; margin-bottom: 12px; }
.choice-grid { display: grid; gap: 10px; }.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice { cursor: pointer; min-height: 118px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; align-items: flex-start; transition: .2s ease; background: rgba(255,255,255,.65); }
.choice:hover, .topic:hover { border-color: rgba(16,24,40,.35); transform: translateY(-1px); }
.choice.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.choice input, .topic input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { height: 34px; min-width: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef0ff; color: var(--blue); font-weight: 850; margin-bottom: 10px; }
.choice strong { font-size: 15px; }.choice small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.66); border-radius: 999px; padding: 10px 13px; font-size: 12px; font-weight: 650; transition: .2s ease; }
.topic span { margin-right: 7px; color: var(--blue); }.topic.selected { color: #fff; background: var(--ink); border-color: var(--ink); }.topic.selected span { color: var(--lime); }
.age-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; margin: 4px 0 17px; }
.age-check input { appearance: none; width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid #98a2b3; border-radius: 5px; display: grid; place-items: center; margin: 0; }
.age-check input:checked { background: var(--ink); border-color: var(--ink); }.age-check input:checked::after { content: "✓"; color: var(--lime); font-size: 12px; font-weight: 900; }
.primary-button, .danger-button { width: 100%; border: 0; border-radius: 15px; background: var(--ink); color: white; min-height: 54px; padding: 0 20px; font-weight: 780; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: transform .16s, box-shadow .16s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,24,40,.18); }.primary-button span { color: var(--lime); font-size: 22px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.privacy-note { margin: 13px 0 0; text-align: center; font-size: 11px; color: #98a2b3; }

.centered { align-self: center; justify-self: center; text-align: center; width: min(540px, 100%); padding: 80px 0; }
.centered h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 14px; }
.search-orbit { position: relative; width: 210px; height: 210px; margin: 0 auto 34px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(91,103,241,.22); border-radius: 50%; animation: orbitPulse 2.2s ease-in-out infinite; }.orbit-one { width: 150px; height: 150px; }.orbit-two { width: 205px; height: 205px; animation-delay: .4s; }
.orbit-core, .voice-orb { width: 96px; height: 96px; background: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 20px 50px rgba(16,24,40,.25); }
.orbit-core i, .voice-orb span { width: 5px; background: var(--lime); border-radius: 99px; animation: bars 1s ease-in-out infinite alternate; }.orbit-core i:nth-child(1), .voice-orb span:nth-child(1) { height: 18px; }.orbit-core i:nth-child(2), .voice-orb span:nth-child(2) { height: 33px; animation-delay: -.2s; }.orbit-core i:nth-child(3), .voice-orb span:nth-child(3) { height: 48px; animation-delay: -.45s; }.orbit-core i:nth-child(4), .voice-orb span:nth-child(4) { height: 30px; animation-delay: -.15s; }.orbit-core i:nth-child(5), .voice-orb span:nth-child(5) { height: 14px; animation-delay: -.35s; }
.queue-copy { color: var(--muted); margin: 0; }.queue-tip { margin: 28px auto 20px; padding: 13px 18px; width: fit-content; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 10px; }

#conversationScreen { padding: 30px 0 64px; }
.conversation-shell { min-height: min(700px, calc(100vh - 180px)); display: grid; grid-template-columns: 1.45fr .75fr; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.76); backdrop-filter: blur(20px); box-shadow: var(--shadow); border-radius: 30px; overflow: hidden; }
.call-panel { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px); }
.call-header { display: flex; justify-content: space-between; align-items: flex-start; }.call-header .eyebrow { margin-bottom: 8px; }.call-header h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.055em; line-height: 1; margin: 0; }.call-header time { font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(16,24,40,.05); padding: 9px 12px; border-radius: 10px; font-weight: 750; }
.voice-stage, .text-only-stage { flex: 1; min-height: 330px; display: grid; place-items: center; text-align: center; }
.voice-person, .text-only-stage { align-content: center; }.voice-person { display: grid; justify-items: center; }.voice-orb { width: 156px; height: 156px; margin-bottom: 25px; position: relative; }.voice-orb::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(16,24,40,.12); animation: orbitPulse 2s infinite; }.voice-orb span { width: 7px; }
.voice-orb.quiet span { animation-play-state: paused; height: 7px; }.voice-person strong, .text-only-stage strong { font-size: 19px; }.voice-person small, .text-only-stage small { color: var(--muted); margin-top: 6px; }.text-only-stage { justify-items: center; }.text-badge { width: 130px; height: 130px; display: grid; place-items: center; border-radius: 38px; background: var(--ink); color: var(--lime); font-weight: 900; font-size: 42px; margin-bottom: 25px; transform: rotate(-3deg); }
.call-actions { display: flex; justify-content: center; gap: clamp(16px, 4vw, 36px); padding-top: 10px; }.round-action { border: 0; background: transparent; color: var(--ink); display: grid; justify-items: center; gap: 8px; cursor: pointer; }.round-action > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 21px; font-weight: 800; transition: .2s ease; }.round-action:hover > span { transform: translateY(-3px); }.round-action.accent > span { background: var(--lime); border-color: var(--lime-dark); }.round-action.danger > span { background: var(--coral); border-color: var(--coral); color: #fff; }.round-action[aria-pressed="true"] > span { background: var(--ink); color: var(--lime); }.round-action small { font-size: 11px; color: var(--muted); }
.report-button { display: block; margin: 25px auto 0; border: 0; background: transparent; color: #98a2b3; font-size: 11px; cursor: pointer; }
.chat-panel { border-left: 1px solid var(--line); background: rgba(248,248,245,.8); display: flex; flex-direction: column; min-width: 0; }.chat-heading { display: flex; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }.chat-heading div { display: grid; gap: 3px; }.chat-heading small { color: var(--muted); font-size: 10px; }.secure-dot { width: 9px; height: 9px; background: #2bb673; border-radius: 50%; }
.messages { flex: 1; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 11px; min-height: 0; }.system-message { align-self: center; text-align: center; color: #98a2b3; font-size: 11px; max-width: 220px; line-height: 1.45; }.message { max-width: 83%; padding: 11px 13px; border-radius: 16px 16px 16px 5px; background: #fff; font-size: 13px; line-height: 1.45; word-break: break-word; }.message.mine { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 5px 16px; }
.message-form { display: flex; gap: 8px; margin: 16px; padding: 6px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }.message-form input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; padding: 8px 9px; font-size: 13px; }.message-form button { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 11px; background: var(--ink); color: var(--lime); cursor: pointer; font-weight: 900; }
.hidden { display: none !important; }

.ended-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 24px; background: var(--lime); border-radius: 28px; font-size: 32px; transform: rotate(-4deg); }.feedback-buttons { display: flex; justify-content: center; gap: 10px; margin: 27px 0; }.feedback-buttons button { border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; background: #fff; cursor: pointer; }.feedback-buttons button.selected { color: #fff; background: var(--ink); }.primary-button.compact { width: min(360px,100%); margin: 0 auto 8px; }

dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 0; box-shadow: 0 30px 100px rgba(16,24,40,.3); }dialog::backdrop { background: rgba(16,24,40,.58); backdrop-filter: blur(4px); }dialog form { padding: 30px; position: relative; }dialog h2 { margin: 0 0 8px; letter-spacing: -.04em; }dialog p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; }.dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; font-size: 25px; cursor: pointer; }.reason-list { display: grid; gap: 8px; margin: 22px 0; }.reason-list label { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; cursor: pointer; }.danger-button { background: var(--coral); justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translate(-50%, 20px); background: var(--ink); color: white; border-radius: 12px; padding: 12px 18px; font-size: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { min-height: 80px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }footer nav { display: flex; gap: 18px; }

@keyframes bars { from { transform: scaleY(.38); opacity: .75; } to { transform: scaleY(1); opacity: 1; } }
@keyframes orbitPulse { 0%,100% { transform: scale(.95); opacity: .35; } 50% { transform: scale(1.05); opacity: 1; } }

@media (max-width: 880px) {
  #welcomeScreen { grid-template-columns: 1fr; gap: 40px; padding-top: 25px; }
  .welcome-copy { text-align: center; }.lead { margin-inline: auto; }.conversation-shell { grid-template-columns: 1fr; min-height: auto; }.chat-panel { border-left: 0; border-top: 1px solid var(--line); min-height: 360px; }.voice-stage, .text-only-stage { min-height: 300px; }
}
@media (max-width: 560px) {
  .topbar, main, footer { width: min(100% - 24px, 1180px); }.topbar { height: 70px; }h1 { font-size: 54px; }.lead { font-size: 17px; margin-top: 22px; }.start-card { border-radius: 22px; padding: 19px; }.choice-grid.two { grid-template-columns: 1fr 1fr; }.choice { min-height: 108px; padding: 14px; }.topic { padding: 9px 10px; }.live-stat { font-size: 11px; }.conversation-shell { border-radius: 21px; }.call-panel { padding: 22px 18px 28px; }.call-header h2 { font-size: 28px; }.call-header time { font-size: 12px; }.voice-orb { width: 125px; height: 125px; }.voice-stage, .text-only-stage { min-height: 285px; }.round-action > span { width: 56px; height: 56px; }.chat-panel { min-height: 380px; }.centered { padding: 45px 0 80px; }footer { align-items: flex-start; padding: 24px 0; }footer nav { flex-direction: column; gap: 7px; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
