/* The talk-to-us voice form (/talk/, /sv/prata/): look 2, The Card Table, as on the review
   site's form screens. Phone first; on a wide screen the same column sits in the middle of the
   table. Built by build.py. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }
/* The voice line's green, yellow and red share the blue's whiteness and blackness and only turn the hue
   (Ola, 2026-09-29): --blue #008EB9 is hwb(194 0% 27.45%); --listen hwb(145 0% 27.45%), --speak hwb(50 ...),
   --error hwb(3 ...). The DONE and LATER stamps keep their own fills: white text on the HWB green is 2.6:1. */
:root { --table: #ECEEE9; --paper: #FFFFFF; --ink: #1B1F23; --ink2: #4C535A; --rule: #CFD3CC; --blue: #008EB9; --done: #1FA34F; --later: #C98C00; --listen: #00B94D; --speak: #B99A00; --error: #B90900; --field: rgba(27, 31, 35, .07); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Figtree", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--table); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
input { border: 0; outline: none; min-width: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.if { width: 22px; height: 22px; fill: currentColor; flex: none; display: block; }
.if .ko { fill: none; stroke: var(--k, #fff); }

.app { max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 14px 22px 24px; display: flex; flex-direction: column; }
@media (min-width: 700px) { .app { padding-top: 32px; min-height: min(100dvh, 940px); } }

/* bar: ear and name before the talk; card count and cards left during it; the cog always */
.bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 850; font-size: 18px; letter-spacing: -.01em; }
.brand .ear { width: 21.7px; height: 26px; color: var(--blue); flex: none; }
.brand > span { white-space: nowrap; }
.brand .by { margin-left: 6px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.count { font-size: 14px; font-weight: 800; }
.left { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.cb { --s: 26px; width: var(--s); height: var(--s); border-radius: 10.53%; background: var(--blue) url("/img/ear-white.svg") 50% 50% / 50% no-repeat;
  box-shadow: calc(var(--s) * .0197) calc(var(--s) * .0188) calc(var(--s) * .1053) rgba(0, 0, 0, .7); }
.deck { position: relative; width: 36px; height: 36px; }
.deck .cb { position: absolute; left: 0; top: 0; }
.deck .cb:nth-child(2) { left: 5px; top: 5px; }
.deck .cb:nth-child(3) { left: 10px; top: 10px; }
.cog { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
body.live .cog { margin-left: 4px; }
.cog:hover, .cog[aria-expanded="true"] { background: var(--paper); }
body.intro .count, body.intro .left, body.done .count, body.done .left { display: none; }
body.live .brand { display: none; }

/* cog menu */
.menu { position: absolute; right: 0; top: 50px; z-index: 10; width: min(312px, calc(100vw - 32px)); background: var(--paper); border-radius: 20px; padding: 8px;
  box-shadow: 0 18px 40px rgba(27, 31, 35, .16), 0 2px 6px rgba(27, 31, 35, .06); display: flex; flex-direction: column; }
.mi { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15.5px; text-align: left; width: 100%; }
.mi:hover { background: var(--table); }
.mi .val { margin-left: auto; font-weight: 500; color: var(--ink2); }
.mi small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.sw { margin-left: auto; width: 42px; height: 26px; border-radius: 13px; background: #C9CEC6; position: relative; flex: none; transition: background .2s ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.mi[aria-checked="true"] .sw { background: var(--blue); }
.mi[aria-checked="true"] .sw::after { transform: translateX(16px); }
.sep { height: 1px; background: var(--rule); margin: 6px 10px; }
body:not(.intro) #modeToggle { display: none; }

/* screens */
.screen { display: none; flex: 1; flex-direction: column; }
body.intro #intro, body.live #live, body.done #done { display: flex; }

/* before the talk */
#intro h1 { font-size: 34px; line-height: 1.04; font-weight: 900; letter-spacing: -.03em; margin-top: 30px; text-wrap: balance; text-align: center; }
.lede { font-size: 16px; line-height: 1.5; color: var(--ink2); margin-top: 12px; }
#intro .lede { text-align: center; text-wrap: balance; }   /* headline and intro line centred, as in the talk (Ola, 2026-09-28) */
.fields { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.fields label { font-size: 13px; font-weight: 750; color: var(--ink2); margin-top: 6px; }
.fld { height: 54px; border-radius: 12px; background: var(--field); padding: 0 16px; font-size: 17px; width: 100%; }
.fld::placeholder { color: #545B61; opacity: 1; }
.fld:focus { background: rgba(27, 31, 35, .1); box-shadow: 0 0 0 2px var(--blue); }
.fld[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--error); }
.consent { font-size: 13px; line-height: 1.5; color: var(--ink2); margin-top: 16px; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.consent details { margin-top: 4px; }
.consent summary { cursor: pointer; list-style: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.consent summary::-webkit-details-marker { display: none; }
.consent details p { margin-top: 6px; }
.err { margin-top: 12px; font-size: 14px; line-height: 1.45; font-weight: 700; color: var(--error); white-space: pre-line; }
.err:empty { display: none; }
.ts { display: flex; justify-content: center; }
.ts:not(:empty) { margin-top: 12px; }
.resume { background: var(--paper); border-radius: 16px; padding: 14px 16px; margin-top: 18px; font-size: 14.5px; line-height: 1.45; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; }
.btn.ghost { background: var(--field); color: var(--ink); }

/* start: the round pulsing button, as in the Podcast Planner, in the cards' blue */
.go { flex-shrink: 0; margin: auto auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 148px; height: 148px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 142, 185, .4); animation: pulse 2s ease-out infinite; transition: transform .1s ease; }
#intro .consent + .err, #intro .go { margin-top: 26px; }
#intro .ts + .go { margin-top: 20px; }
.go:active { transform: scale(.96); }
.go:disabled { opacity: .6; animation: none; }
.go span { max-width: 124px; text-align: center; line-height: 1.12; }
.go .if { width: 40px; height: 40px; }
.go .i { width: 40px; height: 40px; stroke-width: 2; display: none; }
body.typed-start .go .if { display: none; }
body.typed-start .go .i { display: block; }
body.typed-start .go { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 12px 30px rgba(0, 142, 185, .4), 0 0 0 0 rgba(0, 142, 185, .35); } 100% { box-shadow: 0 12px 30px rgba(0, 142, 185, .4), 0 0 0 30px rgba(0, 142, 185, 0); } }
.micnote { text-align: center; font-size: 13px; color: var(--ink2); margin-top: 14px; }
/* the one credit line on every Lissenin form, at the bottom of the start screen and the done screen (Ola, 2026-10-01) */
.builton { flex-shrink: 0; text-align: center; font-size: 13px; color: var(--ink2); margin-top: 16px; }
.builton a { color: var(--ink); text-underline-offset: 3px; }

/* the talk */
.dealt { --s: min(244px, 60vw); position: relative; display: flex; justify-content: center; margin-top: 16px; height: calc(var(--s) + 16px); flex-shrink: 0; }
.card { position: absolute; top: 4px; width: var(--s); height: var(--s); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.card img { width: 100%; height: 100%; border-radius: 10.53%; transform: rotate(-2deg); pointer-events: none;
  box-shadow: calc(var(--s) * .0197) calc(var(--s) * .0188) calc(var(--s) * .1053) rgba(0, 0, 0, .7); }
.card.enter img { animation: deal 700ms cubic-bezier(.16, 1, .3, 1) 1; }
@keyframes deal { from { transform: translate(110px, -120px) rotate(14deg); opacity: 0; } }
.card.fly { transition: transform .45s ease, opacity .45s ease; pointer-events: none; }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; padding: 6px 16px; border-radius: 10px; font-weight: 900; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #fff; pointer-events: none; }
.stamp.done { background: var(--done); }
.stamp.later { background: var(--later); }
.voice { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; min-height: 26px; flex-shrink: 0; }   /* centred with the question (Ola, 2026-09-28) */
.bars { display: flex; align-items: center; gap: 4px; height: 26px; }
.bars span { width: 5px; height: 6px; border-radius: 3px; background: var(--ink2); transition: height .3s ease, background .3s ease; }
/* green while the guide listens, yellow while it speaks, red on an error (Ola, 2026-09-29) */
.voice.listening .bars span, .voice.speaking .bars span { background: var(--listen); animation: bar 1.1s ease-in-out infinite alternate; }
.voice.speaking .bars span { background: var(--speak); }
.voice.error .bars span { background: var(--error); }
.voice.error p { color: var(--error); }
.voice.listening .bars span:nth-child(1), .voice.speaking .bars span:nth-child(1) { height: 10px; animation-delay: -.2s; }
.voice.listening .bars span:nth-child(2), .voice.speaking .bars span:nth-child(2) { height: 20px; animation-delay: -.5s; }
.voice.listening .bars span:nth-child(3), .voice.speaking .bars span:nth-child(3) { height: 26px; animation-delay: -.1s; }
.voice.listening .bars span:nth-child(4), .voice.speaking .bars span:nth-child(4) { height: 16px; animation-delay: -.7s; }
.voice.listening .bars span:nth-child(5), .voice.speaking .bars span:nth-child(5) { height: 8px; animation-delay: -.35s; }
@keyframes bar { to { transform: scaleY(.45); } }
.voice p { font-size: 14px; font-weight: 700; color: var(--ink2); }
/* "Switch to typing" under the voice line. There is no typing box during a spoken talk (Ola,
   2026-09-28: it says the voice does not work); this appears only after the guide has listened
   for 20 s without hearing the person (form.js quietWatch). A quiet link, not a button that
   says the voice failed. The engine's .type-switch, in this page's colours. */
.type-switch { display: block; width: fit-content; margin: 4px auto 0; padding: 8px 12px; font-size: 14px; color: var(--ink2);
  text-decoration: underline; text-underline-offset: 3px; }
body.typed .type-switch { display: none; }
.q { font-size: 28px; line-height: 1.12; font-weight: 900; letter-spacing: -.025em; margin-top: 10px; text-wrap: balance; text-align: center; }
.q2 { font-size: 17px; line-height: 1.45; color: var(--ink2); margin-top: 6px; text-align: center; text-wrap: balance; }
.chat { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 34vh; overflow-y: auto; }
.chat:empty { display: none; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.msg.ai { background: var(--paper); align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; }
/* the typing bar: only in a typed talk (chosen up front, or after Switch to typing); in a spoken
   talk the buttons take its place at the bottom */
.typebar { flex-shrink: 0; display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
body.live:not(.typed) .typebar { display: none; }
.send { width: 54px; height: 54px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ctrl { flex-shrink: 0; display: flex; gap: 10px; margin-top: 10px; }
body.live:not(.typed) .ctrl { margin-top: auto; padding-top: 16px; }
.ctrl button { height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; }
.skip { flex: 1; background: var(--field); }
.next { flex: 1.6; background: var(--ink); color: #fff; }
.next .i { width: 20px; height: 20px; }
.banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 408px; margin: 0 auto; background: var(--paper); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(27, 31, 35, .2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 15px; line-height: 1.4; }
.banner p { flex: 1 1 180px; }

/* after the talk */
.enddots { display: flex; gap: 8px; margin-top: 34px; }
.enddots i { width: 14px; height: 14px; border-radius: 50%; background: var(--rule); }
.enddots i.on { background: var(--blue); animation: pop .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: .4; } }
#done h1 { font-size: 34px; line-height: 1.04; font-weight: 900; letter-spacing: -.03em; margin-top: 20px; }
.status { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.status:empty { display: none; }
body.done.err .status { color: var(--error); font-weight: 700; }
.plan { margin-top: 20px; background: var(--paper); border-radius: 16px; padding: 22px 20px 8px; }
#done .row { margin-top: 20px; }
#done .builton { margin-top: auto; padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .go, .card.enter img, .enddots i.on, .voice .bars span { animation: none !important; }
  .card.fly { transition: none; }
}
