/* The phone page: a red button at the bottom, captions above it, prices and the hand-off card
   in the scrolling area. Tokens come from sherlock.css. */
:root { --red: #d8322a; --red-deep: #a8211b; --dock: 232px; }
body.talkpage { height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tbar { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); }
.tbar .brand { font-size: 22px; }
.tbar .brand .mark { width: 22px; height: 22px; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(var(--dock) + env(safe-area-inset-bottom)); }

.hero h1 { font: 700 30px/1.1 var(--serif); margin: 10px 0 10px; letter-spacing: -.01em; }
.hero p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; max-width: 40ch; }

.prices { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-top: 12px; }
.prices .phead h2 { font-size: 19px; }
.prices .tiers { margin: 10px 0 6px; display: flex; }
.prices .tiers button { flex: 1; }
.list { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 1fr 72px; grid-template-areas: "name price" "track price"; column-gap: 10px; row-gap: 3px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--line); cursor: pointer; }
.prow:first-child { border-top: 0; }
.prow .name { grid-area: name; }
.prow .track { grid-area: track; height: 12px; }
.prow .band { top: 2px; height: 8px; }
.prow .dot { top: 2px; width: 8px; height: 8px; }
.prow .price { grid-area: price; }
.prow .price small { white-space: nowrap; font-size: 10.5px; }
.talkpage .fine { margin-top: 16px; padding: 0; }
.prow.chosen { background: var(--brass-soft); border-radius: 10px; }
.prow.reference { opacity: .8; }
.prices .legend { margin-top: 10px; }

.log { margin-top: 14px; color: var(--ink-soft); font-size: 13.5px; }
.log summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.log .m { max-width: 100%; margin-top: 8px; font-size: 14px; }
.log .m.me { margin-left: 14%; }
.log .m.bot { margin-right: 14%; }

.handoff { margin: 12px 0 0; }
.handoff .ways { grid-template-columns: 1fr; }
.handoff .call { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--live); color: #fff; border-radius: 12px; padding: 14px; font-size: 17px; font-weight: 700; text-decoration: none; }
.handoff .call svg { width: 20px; height: 20px; fill: currentColor; }
.handoff .call.off { background: var(--ink-mute); }
.handoff .alt { background: var(--card); border: 1px dashed var(--brass); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }

/* the dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(27,31,38,.35); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 5; }
.cap { font: 500 18px/1.35 var(--serif); text-align: center; min-height: 3.6em; max-height: 4.8em; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; color: var(--ink); max-width: 44ch; }
.cap .you { color: var(--ink-mute); font-style: italic; font-size: 16px; }
.cap .cursor { display: inline-block; width: .5em; height: .9em; background: var(--red); vertical-align: -.1em; margin-left: 3px; border-radius: 2px; animation: blink 1s steps(2) infinite; }
.orb { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(216,50,42,.7); transition: transform .15s ease, background .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.orb:active { transform: scale(.95); }
.orb:disabled { background: var(--ink-mute); box-shadow: none; }
.orb .ic { width: 40px; height: 40px; fill: currentColor; position: relative; z-index: 1; }
.orb .ic.stop { display: none; }
.orb.on .ic.mic { display: none; }
.orb.on .ic.stop { display: block; }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--red); opacity: 0; }
.orb.on .ring { animation: ripple 1.8s ease-out infinite; }
.orb.on .ring.r2 { animation-delay: .9s; }
.orb.hearing { transform: scale(1.06); background: var(--red-deep); }
.orb.speaking .ring { animation-duration: 1s; border-color: var(--brass); }
.orb.busy .ring { animation-duration: .7s; border-color: var(--ink-mute); }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.label { color: var(--ink-soft); font-size: 13px; min-height: 1.3em; }
.novoice { margin: 0; color: var(--ink-soft); font-size: 13px; text-align: center; }

@media (min-width: 700px) {
  .tbar, .scroll { max-width: 560px; margin: 0 auto; width: 100%; }
  .dock { padding-left: 0; padding-right: 0; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --red: #e4453c; --red-deep: #c4302a; } }
:root[data-theme="dark"] { --red: #e4453c; --red-deep: #c4302a; }
