/* The voice demo. A full-screen call that grows out of the talk panel.
   The yellow marker follows the voice word by word. Facts stay marked. No orb, no gradient. */

/* The panel that starts a call ------------------------------------------ */
.talk { background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(16px, 1.7vw, 24px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.talk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.talk-free { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 500; color: #d7d9de; }
.talk-free::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); animation: freeP 2.4s ease-out infinite; }
@keyframes freeP { 0% { box-shadow: 0 0 0 0 rgba(255, 213, 0, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 213, 0, 0); } }
.talk h2 { font: 700 var(--fs-2)/1.14 var(--voice); letter-spacing: -.014em; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.door { display: grid; gap: 4px; align-content: start; text-align: left; padding: 13px; min-height: 104px; border-radius: 10px; background: #fff; color: var(--ink); transition: transform .14s var(--ease), background .14s; }
.door:hover { background: var(--mark); }
.door:active { transform: scale(.985); }
.door b { display: flex; align-items: center; gap: 8px; font: 700 18px/1.2 var(--voice); letter-spacing: -.01em; }
.door b svg { font-size: 17px; }
.door small { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.door-1 { background: var(--mark); }
.door-1:hover { background: #fff; }
.door-1 small { color: var(--ink); }
.asbiz { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: #d7d9de; }
.asbiz input { flex: 1; min-width: 130px; background: transparent; border: 0; border-bottom: 1.5px solid #6b6f79; color: #fff; font: 600 14px/1.3 var(--ui); padding: 3px 2px; border-radius: 0; }
.asbiz input::placeholder { color: #b6b9c1; font-weight: 500; }
.asbiz input:focus { outline: none; border-bottom-color: var(--mark); }
.tries { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tries > span { font-size: 13.5px; color: #d7d9de; width: 100%; }
.try { min-height: 34px; padding: 5px 10px; border: 1.5px solid #565a64; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: #fff; text-align: left; line-height: 1.25; }
.try:hover { background: #fff; color: var(--ink); border-color: #fff; }
.talk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 13px; color: #c3c6cd; border-top: 1px solid #33363e; padding-top: 10px; }
.talk-foot button { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; min-height: 30px; }
@media (max-width: 520px) { .door { min-height: 88px; padding: 11px; } .door b { font-size: 15.5px; gap: 6px; } .door small { font-size: 13px; } .tries .try:nth-of-type(3) { display: none; } }

/* The call --------------------------------------------------------------- */
.call { position: fixed; inset: 0; z-index: 80; background: var(--navy); color: #fff; perspective: 1400px; overflow: hidden; animation: callGrow .34s var(--ease); clip-path: inset(0); }
@keyframes callGrow { from { clip-path: inset(var(--from, 40% 8% 12% 50%) round 16px); } to { clip-path: inset(0 round 0); } }
.call[hidden] { display: none; }
.call-face { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .26s ease-in, opacity .26s; overflow: hidden; }
.call-face.turn-out { transform: rotateY(82deg); opacity: .2; }
.call-face.turn-in { transform: rotateY(-82deg); opacity: .2; }
.call.owner { background: var(--mark); color: var(--ink); }
.call.owner-private { background: var(--navy); color: #fff; }

.call-bar { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); flex: none; }
.call-who { display: grid; gap: 1px; min-width: 0; }
.call-who b { font: 700 16px/1.2 var(--voice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-who small { font-size: 13px; color: var(--navy-text); }
.call.owner .call-who small { color: var(--ink-2); }
.call.owner-private .call-who small { color: var(--navy-text); }
.call-right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; }
.call-left { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy-text); }
.call-tool { min-width: 42px; min-height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; font-size: 19px; }
.call-tool:hover { background: var(--navy-2); }
.call.owner .call-tool:hover { background: var(--mark-deep); }
.call.owner-private .call-tool:hover { background: var(--navy-2); }
.call-meter { height: 3px; background: var(--navy-2); flex: none; }
.call-meter i { display: block; height: 100%; background: var(--mark); width: 100%; transition: width 1s linear; }

.call-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.call-stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2vh, 20px); padding: 14px var(--gutter) 16px; min-height: 0; overflow-y: auto; }
.call-you { font-size: 15px; color: var(--navy-text); max-width: 42em; }
.call-you b { color: #fff; font-weight: 600; }
.call-line { font: 700 clamp(23px, min(3vw, 5.4vh), 44px)/1.2 var(--voice); letter-spacing: -.014em; max-width: 24em; }
.call-line .w { display: inline-block; line-height: 1.14; opacity: .26; transition: opacity .12s; border-radius: 2px; padding: 0 .05em; margin: 0 -.05em; }
.call-line .w.said { opacity: 1; }
.call-line .w.now { opacity: 1; background: var(--mark); color: var(--ink); }
.call-line .w.fact.said { background: var(--mark); color: var(--ink); opacity: 1; }
.shot .call-line .w { opacity: 1; }

.call-state { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy-text); min-height: 24px; }
.bars { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.bars i { width: 3.5px; height: 100%; background: var(--mark); border-radius: 2px; transform: scaleY(.22); }
.call[data-state="speaking"] .bars i, .call[data-state="listening"] .bars i { animation: bar .9s ease-in-out infinite; }
.call[data-state="listening"] .bars i { background: #fff; animation-duration: 1.5s; }
.bars i:nth-child(2) { animation-delay: .12s; } .bars i:nth-child(3) { animation-delay: .24s; } .bars i:nth-child(4) { animation-delay: .36s; } .bars i:nth-child(5) { animation-delay: .48s; }
@keyframes bar { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }

.call-foot { flex: none; border-top: 1px solid var(--navy-line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.call-says { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.call-says > span { font-size: 13.5px; color: var(--navy-text); width: 100%; }
.say-btn { min-height: 44px; padding: 8px 13px; background: var(--navy-2); border: 1.5px solid var(--navy-line); border-radius: 8px; color: #fff; font-weight: 500; font-size: 15px; text-align: left; line-height: 1.25; transition: background .12s, color .12s; }
.say-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.call-ctl { display: flex; gap: 8px; align-items: center; }
.call-type { flex: 1; min-width: 0; display: flex; gap: 6px; }
.call-type input { flex: 1; min-width: 0; min-height: 46px; background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 8px 12px; font-size: 16px; }
.call-type .btn { min-height: 46px; padding-inline: 14px; }
.btn-end { background: #fff; color: var(--ink); min-height: 46px; padding-inline: 14px; white-space: nowrap; }
.btn-end:hover { background: var(--mark); }
.btn-end svg { transform: rotate(135deg); }

.call-notes { background: #fff; color: var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; border-radius: 12px; align-self: center; margin-right: var(--gutter); max-height: calc(100% - 28px); }
.call-notes h3 { font: 600 14px/1.3 var(--ui); color: var(--ink-2); margin-bottom: 6px; }
.note-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.note-row dt { color: var(--ink-3); }
.note-row dd { margin: 0; font: 600 15px/1.5 var(--voice); min-height: 1.5em; }
.note-row dd:empty::before { content: ""; display: block; width: 60%; height: .8em; margin-top: .3em; background: var(--wash); border-radius: 2px; }
.note-row dd .t { animation: stamp .35s var(--ease); }
@keyframes stamp { from { background: #fff; } to { background: var(--mark); } }
.note-hint { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* Setup and problem screens */
.call-center { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: center; justify-items: start; gap: 14px; padding: 20px var(--gutter); max-width: 720px; margin-inline: auto; width: 100%; }
.call-center h2 { font: 700 var(--fs-1)/1.12 var(--voice); letter-spacing: -.016em; }
.call-center p { color: var(--navy-text); max-width: 36em; }
.call-center .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.call-center .btn-line { color: #fff; }
.ring-dot { width: 76px; height: 76px; border-radius: 50%; background: var(--mark); color: var(--ink); display: grid; place-items: center; font-size: 30px; }
.call[data-state="connecting"] .ring-dot { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 213, 0, .45); } 100% { box-shadow: 0 0 0 34px rgba(255, 213, 0, 0); } }

/* After the call: the owner's side of the phone */
.call-owner { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(20px, 4.4vw, 72px); align-content: center; align-items: center; padding: 12px var(--gutter) 28px; }
.call-owner .col { display: grid; gap: 14px; }
.call-owner h2 { font: 700 var(--fs-1)/1.12 var(--voice); letter-spacing: -.016em; }
.call-owner .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.call-owner small { font-size: 13.5px; line-height: 1.45; display: block; max-width: 46em; color: #3a3a1f; }
.owner-private .call-owner small { color: var(--navy-text); }
.owner-private .btn-line { color: #fff; }
.owner-private .msgcard { background: var(--navy-2); }
.owner-card-wrap { display: grid; gap: 8px; }
.owner-card-wrap > span { font-size: 13.5px; font-weight: 500; }

@media (max-width: 860px) {
  .call-main { display: flex; flex-direction: column; }
  .call-notes { order: -1; flex: none; margin: 0; align-self: stretch; padding: 8px var(--gutter); border-radius: 0; background: var(--navy-2); color: #fff; flex-direction: row; flex-wrap: wrap; gap: 5px; min-height: 40px; max-height: 92px; overflow-y: auto; }
  .call-notes h3, .note-hint { display: none; }
  .call-notes dl { display: contents; }
  .note-row { display: block; padding: 0; border: 0; }
  .note-row dt { display: none; }
  .note-row dd { font: 600 13px/1.45 var(--ui); min-height: 0; }
  .note-row dd:empty { display: none; }
  .call-notes:not(:has(dd:not(:empty)))::before { content: "What I take down shows up here"; font-size: 13.5px; color: var(--navy-text); align-self: center; }
  .call-stage { flex: 1; justify-content: flex-end; }
  .say-btn { min-height: 40px; font-size: 14.5px; padding: 7px 11px; }
  .call-owner { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .call-owner .acts .btn { flex: 1 1 100%; }
  .btn-end span { display: none; }
  .btn-end { padding-inline: 12px; }
}

/* Live call: the marker sits on the word being spoken */
.call-mic { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--navy-text); }
.say-btn[disabled] { opacity: .5; cursor: default; }
.call-center small { color: var(--navy-text); font-size: 13.5px; max-width: 36em; }
