/* STEP-181 §16 (Ivana, 24 Oct 16:19: the agreed option 2, "The ring", artifact 3ZXJdVAh54GsncrAva7mZx; STEP-178 §1's pill was a
   mistake): one Talk to AVA button everywhere (the home, its bar, every chapter, the investor area's bar and the Overview): the watch's
   own ring around a mic. A 44 px circle in solid cobalt with the white mic inside and a thin 2 px ring-blue outline; the words beside
   it, 16 px semibold, in the surface's own text colour (white on dark, ink on light). No background, no pill, no border around the
   words. On hover a second thin ring grows out of the circle (opacity .5, scale .8 → 1, 0.4 s) and the words brighten; while a talk
   runs (.talking) the ring pulses with AVA's voice (--tp-lvl, 0 to 1, set by home.js) and the words say Stop. .small for bars and
   slides (15 px words); .icon-only and a phone's bar: the ring alone (the words kept for screen readers). Watch the film is a filled
   light pill with its play sign in a cobalt circle (STEP-199 §5, below), so the two never look alike. Loaded by index.html and book.html */
.talk-ring { --tp-lvl: 0; position: relative; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 4px 0 2px; border: 0; border-radius: 0; background: none; color: inherit; font: 600 16px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; }
.talk-ring:focus-visible { outline: 2px solid #88BDE8; outline-offset: 4px; border-radius: 999px; }
.tp-ico { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; box-sizing: border-box; border: 2px solid #88BDE8; border-radius: 50%; background: var(--cobalt, #1A5FD6); transition: background-color .2s; }
.tp-ico svg { width: 18px; height: 18px; fill: #fff; }
.tp-ico::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid #88BDE8; border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s; pointer-events: none; }
.tp-w { opacity: .9; font-weight: 600; transition: opacity .2s; }
@media (hover: hover) {
  .talk-ring:hover .tp-ico { background: var(--cobalt-hover, #2E70E4); }
  .talk-ring:hover .tp-ico::after { opacity: .5; transform: scale(1); }
  .talk-ring:hover .tp-w { opacity: 1; }
}
.talk-ring.talking .tp-ico { transform: scale(calc(1 + var(--tp-lvl) * .12)); }
.talk-ring.talking .tp-ico::after { opacity: calc(.25 + var(--tp-lvl) * .5); transform: scale(calc(1 + var(--tp-lvl) * .3)); transition: none; }
.talk-ring.small { height: 44px; gap: 10px; font-size: 15px; }
.tp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.talk-ring.icon-only { gap: 0; padding: 0; }
.talk-ring.icon-only .tp-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .tp-ico::after { display: none; }
  .talk-ring.talking .tp-ico { transform: none; }
}
/* in the investor area's bar: the bar's own tool styles never repaint the ring */
html .bar .talk-ring.tool { height: 44px; padding: 0 4px 0 2px; border: 0; background: none; color: inherit; }
html .bar .talk-ring.tool:hover { background: none; }
/* the home's bar on a phone: the ring alone */
@media (max-width: 760px) { .hm-bar .talk-ring { gap: 0; padding: 0; } .hm-bar .talk-ring .tp-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
html .hm-bar .talk-ring.hm-tab, html .hm-bar .talk-ring.hm-tab:hover { height: 44px; padding: 0 4px 0 2px; border-radius: 0; color: #fff; background: none; line-height: 1 !important; } /* white words on the night */
html.onlight .hm-bar .talk-ring.hm-tab { color: var(--ink, #0F1A26); } /* ink on the light chapters */
/* the opening on a phone: Talk to AVA and Watch the film stay side by side, Talk first, down to 360 px */
@media (max-width: 420px) {
  .hm-pitch .hm-acts .talk-ring { gap: 8px; font-size: 15px; }
  .hm-pitch .hm-acts .hm-btn { height: 48px; padding: 0 14px; gap: 8px; font-size: 15px; }
  .hm-pitch .hm-acts .film-btn { height: 48px; padding: 0 12px 0 4px; gap: 8px; font-size: 15px; } .hm-pitch .hm-acts .fb-ico { width: 36px; height: 36px; }
}
@media (max-width: 374px) { .hm-pitch .hm-acts .talk-ring, .hm-pitch .hm-acts .hm-btn, .hm-pitch .hm-acts .film-btn { font-size: 14px; } .hm-pitch .hm-acts .hm-btn { padding: 0 12px; } .hm-pitch .hm-acts .film-btn { padding-right: 10px; } }

/* STEP-199 §5 (Ivana, 29 Oct 18:47): Watch the film, a real button beside Talk to AVA: the same height, a full pill, a light fill with
   ink words, the play sign in a small cobalt circle on its left, Talk to AVA's hover (the circle lighter, its ring showing) */
.film-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px 0 4px; box-sizing: border-box; border: 0; border-radius: 999px; background: #E3E7EC; color: #122033; font: 600 16px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background-color .2s; }
.film-btn:focus-visible { outline: 2px solid #88BDE8; outline-offset: 4px; }
.fb-ico { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt, #1A5FD6); transition: background-color .2s; }
.fb-ico svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.fb-ico::after { content: ""; position: absolute; inset: -5px; border: 1.5px solid var(--cobalt, #1A5FD6); border-radius: 50%; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s; pointer-events: none; }
@media (hover: hover) {
  .film-btn:hover { background: #fff; }
  .film-btn:hover .fb-ico { background: var(--cobalt-hover, #2E70E4); }
  .film-btn:hover .fb-ico::after { opacity: .5; transform: scale(1); }
}
@media (max-width: 480px) { .film-btn { height: 46px; padding-right: 16px; gap: 10px; font-size: 15px; } .fb-ico { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .fb-ico::after { display: none; } }
