/* Wizarm CX marketing site — product-specific pieces on top of styles.css + demos.css */

:root { --answered: #00929F; --missed: #DD4B39; }

/* header: log in link + trial button */
.site-head__actions { display: flex; align-items: center; gap: 18px; }
.site-head__login { font-weight: 500; text-decoration: none; }
.site-head__login:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .site-head__actions { display: none; }
  .site-head.is-open .site-head__actions { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; margin: 4px 0 6px; }
  .site-head.is-open .site-head__actions .btn { justify-content: center; }
  .site-head.is-open .site-head__login { padding: 10px 10px; font-size: 18px; }
}

.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__ctas .btn--ghost { background: rgba(250,252,252,.6); }
.assure { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 16px; height: 16px; color: #1F7A4D; }

/* ---------- hero band: the live wallboard on its own ---------- */
.live-band { background: var(--sky); padding: 36px 0 28px; }
.live-band__tv { max-width: 900px; margin: 0 auto; box-shadow: 0 34px 70px -26px rgba(18,76,82,.6); }
.live-band__tv .wb { font-size: 13px; }
.live-band__controls { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--teal); }
.live-band__controls label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.live-band__note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- missed calls feature ---------- */
.missed-feature__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .missed-feature__grid { grid-template-columns: 1fr; } .missed-feature__copy { order: -1; } }
.missed-feature__copy .lede { margin: 20px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--mint); color: #1F7A4D; }
.inbox__body { padding: 16px; display: grid; gap: 12px; }
.inbox__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inbox__stats div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.inbox__stats small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__stats strong { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.inbox__search { font: 400 13px var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 34px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23557478' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") 11px center / 16px no-repeat; width: 100%; }
.inbox__search:focus { outline: none; border-color: var(--teal); background-color: #fff; }
.inbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; height: 318px; overflow-y: auto; align-content: start; scrollbar-width: thin; }
.inbox__empty { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 0; margin: 0; }
.call { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; transition: background .25s ease, border-color .25s ease; }
.call.is-new { animation: slot-in .5s cubic-bezier(.2,.7,.2,1); background: #FFF4F2; border-color: #F6CFC8; }
.call__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FDECEA; color: var(--missed); }
.call__icon svg { width: 17px; height: 17px; }
.call b { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.call small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.tries { font-size: 10.5px; font-weight: 600; color: #fff; background: var(--missed); border-radius: 99px; padding: 2px 8px; }
.call__act button { font: 600 12px/1 var(--font); border: 0; border-radius: 9px; padding: 9px 12px; background: var(--teal); color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.call__act button:hover { background: var(--teal-deep); }
.call__act button[disabled] { cursor: default; }
.call.is-calling .call__act button { background: var(--sky-soft); color: var(--teal); }
.call.is-done { background: #F2FAF6; border-color: #CFE9DC; }
.call.is-done .call__icon { background: var(--mint); color: #1F7A4D; }
.call__done { font-size: 11.5px; font-weight: 600; color: #1F7A4D; text-align: right; white-space: nowrap; }
.call__done small { font-weight: 400; color: var(--muted); }
@media (max-width: 560px) {
  .inbox__stats { grid-template-columns: 1fr 1fr; }
  .call { grid-template-columns: 34px minmax(0, 1fr); }
  .call__act { grid-column: 2; }
  .inbox .seg button { padding: 7px 8px; }
}

/* wallboard: dark theme for the builder preview */
.wb.is-dark { background: #12172E; color: #EEF0FF; }
.wb.is-dark .tile, .wb.is-dark .agent { background: #1E2546; color: #EEF0FF; }
.wb.is-dark .tile small, .wb.is-dark .wb__top span:not(.wb__live), .wb.is-dark .agent small { color: #9AA0C8; }
.wb.is-dark .tile--hot { background: #6E5CE6; }
.wb.is-dark .bar { background: #2C3463; }

/* ---------- features: wallboard builder ---------- */
.builder__body { display: grid; grid-template-columns: 220px 1fr; min-height: 400px; }
.builder__side { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.builder__side label, .builder__side .lbl { font-weight: 600; font-size: 12px; display: block; margin-bottom: 6px; }
.builder__side select { width: 100%; font: 400 13px var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 9px; background: var(--paper); }
.builder__widgets { display: grid; gap: 5px; }
.builder__widgets div { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 5px 0; border-bottom: 1px solid #EEF3F3; }
.builder__stage { background: repeating-linear-gradient(45deg, #F3F7F7 0 10px, #EEF4F4 10px 20px); padding: 18px; display: grid; place-items: center; }
.builder__stage .tv { width: 100%; }
@media (max-width: 640px) { .builder__body { grid-template-columns: 1fr; } .builder__side { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- features: reports ---------- */
.report__body { padding: 16px 18px 18px; }
.report__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.report__top b { font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.kpis div { background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.kpis small { color: var(--muted); font-size: 11.5px; display: block; }
.kpis strong { font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart { position: relative; }
.chart svg { width: 100%; height: 210px; overflow: visible; }
.chart .grid line { stroke: #E3ECEC; stroke-width: 1; }
.chart .axis text { fill: #6B8285; font-size: 10.5px; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .col.is-hover rect:not(.hit) { filter: brightness(1.08); }
.chart .col.is-dim rect:not(.hit) { opacity: .45; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 9px; padding: 8px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: var(--shadow); opacity: 0; transition: opacity .12s ease; }
.tip.is-on { opacity: 1; }
.tip b { display: block; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
@media (prefers-reduced-motion: no-preference) { .chart rect.bar-seg { transition: y .45s cubic-bezier(.2,.7,.2,1), height .45s cubic-bezier(.2,.7,.2,1); } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- features: team ---------- */
.team__body { display: grid; grid-template-columns: 1fr 230px; min-height: 380px; }
.team__main { padding: 16px; }
.invite { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-bottom: 14px; }
.invite input, .invite select { font: 400 13px var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 10px; background: var(--paper); min-width: 0; }
.invite input:focus, .invite select:focus { outline: none; border-color: var(--teal); background: #fff; }
.invite .mini-btn { width: auto; margin: 0; padding: 9px 14px; border-radius: 9px; font-size: 12.5px; }
.invite__msg { font-size: 12px; min-height: 16px; margin: -6px 0 10px; color: var(--muted); }
.invite__msg[data-state="error"] { color: #B23A2A; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.person { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.person.is-new { animation: slot-in .45s cubic-bezier(.2,.7,.2,1); background: var(--butter-soft); }
.avatar-i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--sky); }
.person b { font-size: 12.5px; font-weight: 600; display: block; }
.person small { color: var(--muted); font-size: 11px; }
.role { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 4px 9px; background: var(--sky-soft); }
.role--owner { background: var(--teal); color: var(--paper); }
.role--admin { background: var(--butter); }
.team__roles { border-left: 1px solid var(--line); background: var(--paper); padding: 16px; display: grid; gap: 10px; align-content: start; font-size: 12px; }
.team__roles h5 { margin: 0; font-size: 12.5px; }
.team__roles p { margin: 2px 0 0; color: var(--muted); line-height: 1.45; }
.team__roles div { padding: 8px 10px; border-radius: 10px; transition: background .2s ease; }
.team__roles div.is-on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--teal); }
@media (max-width: 640px) { .team__body { grid-template-columns: 1fr; } .team__roles { border-left: 0; border-top: 1px solid var(--line); } .invite { grid-template-columns: 1fr 1fr; } .invite .mini-btn { grid-column: 1 / -1; } }

/* ---------- pricing ---------- */
.pricing { background: var(--butter-soft); position: relative; overflow: hidden; isolation: isolate; }
.pricing::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: var(--butter); right: -320px; top: -260px; z-index: -1; }
.calc { background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc__input label { font-weight: 600; display: block; margin-bottom: 6px; }
.calc__input p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.range { width: 100%; accent-color: var(--teal); height: 28px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.calc__result { background: var(--teal); color: var(--paper); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.calc__result .seg { background: rgba(250,252,252,.12); margin-bottom: 18px; }
.calc__result .seg button { color: var(--paper); }
.calc__result .seg button[aria-pressed="true"] { background: var(--butter); color: var(--teal); }
.calc__plan { font-size: 15px; color: #CFE2E4; }
.calc__price { font-size: clamp(48px, 6vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.calc__price small { font-size: 18px; font-weight: 500; letter-spacing: 0; color: #CFE2E4; }
.calc__break { color: #CFE2E4; font-size: 14.5px; min-height: 44px; }
.calc__result .btn { margin-top: 18px; width: 100%; justify-content: center; }
.save { display: inline-block; background: var(--butter); color: var(--teal); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 2px 7px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border-radius: var(--radius-m); border: 1.5px solid var(--line); padding: 22px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.plan.is-pick { border-color: var(--teal); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .plan.is-pick { transform: translateY(-4px); } }
.plan h3 { font-size: 20px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; }
.plan h3 span { font-size: 11px; font-weight: 600; background: var(--butter); border-radius: 99px; padding: 4px 9px; letter-spacing: 0; visibility: hidden; }
.plan.is-pick h3 span { visibility: visible; }
.plan__price { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan__price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 15px; }
.included { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: 15px; list-style: none; padding: 0; }
.included li { display: inline-flex; gap: 8px; align-items: center; }
.included svg { width: 16px; height: 16px; color: #1F7A4D; }

/* ---------- FAQ ---------- */
.faq__list { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); max-width: 860px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -.015em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23124C52' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s ease, background-color .2s ease; }
.faq__list details[open] summary::after { transform: rotate(45deg); background-color: var(--butter); }
.faq__list details > div { padding: 0 2px 24px; color: var(--muted); max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) { .faq__list details[open] > div { animation: panel-in .35s ease; } }

/* ---------- final CTA ---------- */
.cta-band { background: var(--teal); color: var(--paper); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--teal-deep); left: -240px; bottom: -280px; z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,242,187,.14); right: -120px; top: -140px; z-index: -1; }
.cta-band .lede { margin: 20px auto 32px; color: #CFE2E4; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(250,252,252,.5); }
.cta-band .btn--ghost:hover { background: rgba(250,252,252,.08); }
.made-by { display: inline-flex; align-items: center; gap: 8px; color: #A9C6C9; font-size: 14px; text-decoration: none; }
.made-by:hover { color: var(--paper); }

/* ---------- custom dropdown (enhanced <select data-custom>) ---------- */
.dd { position: relative; min-width: 0; }
.dd__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 400 13px/1.3 var(--font); color: var(--ink); text-align: left; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 10px; background: var(--paper); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dd__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__btn svg { flex: none; width: 15px; height: 15px; transition: transform .2s ease; }
.dd__btn:hover { border-color: var(--teal-soft); }
.dd__btn[aria-expanded="true"] { border-color: var(--teal); background: #fff; }
.dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 280px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(18,76,82,.08), 0 14px 34px -12px rgba(18,76,82,.4); }
.dd__list:focus { outline: none; }
.dd__list:focus-visible { box-shadow: 0 0 0 2px var(--teal), 0 14px 34px -12px rgba(18,76,82,.4); }
@media (prefers-reduced-motion: no-preference) { .dd__list:not([hidden]) { animation: dd-in .16s ease; } }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd__opt { display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: start; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dd__opt b { display: block; font-weight: 600; }
.dd__opt small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.dd__opt.is-active { background: var(--sky-soft); }
.dd__check { width: 16px; height: 16px; margin-top: 1px; color: var(--teal); visibility: hidden; }
.dd__opt[aria-selected="true"] .dd__check { visibility: visible; }
.invite .dd__list { left: auto; right: 0; }
.live-band__tv .tile strong { font-size: clamp(28px, 4.6vw, 58px); }
.live-band__tv .tile small { font-size: 12.5px; }
.live-band__tv .wb__top b { font-size: 16px; }

/* ---------- call recording ---------- */
:root { --agent: #00929F; --caller: #6E5CE6; }
.recording { background: var(--sky-soft); }
.recording__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 1180px) { .recording__grid { grid-template-columns: minmax(0, 1fr); } .recording__copy { max-width: 720px; } }
.recording__copy .lede { margin: 20px 0 26px; }
.rec__example { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.rec__body { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 470px; }
.rec__side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rec__search { font: 400 13px var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 10px 9px 32px; width: 100%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23557478' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") 10px center / 15px no-repeat; }
.rec__search:focus { outline: none; border-color: var(--teal); background-color: #fff; }
.rec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-y: auto; align-content: start; min-height: 0; scrollbar-width: thin; }
.rec__item { width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; transition: border-color .15s ease, background .15s ease; }
.rec__item:hover { border-color: var(--teal-soft); }
.rec__item[aria-current="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--sky-soft); }
.rec__item b { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__item small { grid-column: 1; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__item .dur { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec__item .tag { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 99px; padding: 1px 7px; margin-left: 6px; background: var(--butter); color: var(--teal); vertical-align: 1px; }
.rec__none { color: var(--muted); font-size: 12.5px; padding: 8px 2px; }
.rec__player { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.rec__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rec__head b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.rec__head small { color: var(--muted); font-size: 12px; }
.rec__flag { flex: none; font: 600 12px/1 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 11px; cursor: pointer; }
.rec__flag:hover { border-color: var(--teal-soft); }
.rec__flag[aria-pressed="true"] { background: var(--butter); border-color: #EBD883; }
.rec__wave { position: relative; height: 76px; border-radius: 10px; background: var(--paper); cursor: pointer; flex: none; }
.rec__wave:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.rec__wave svg { position: absolute; inset: 8px 10px; width: calc(100% - 20px); height: calc(100% - 16px); }
.rec__wave rect.sp-agent { fill: var(--agent); }
.rec__wave rect.sp-caller { fill: var(--caller); }
.rec__wave rect.ahead { opacity: .28; }
.rec__wave .mark { fill: var(--ink); }
.rec__head-line { position: absolute; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--ink); left: 10px; pointer-events: none; }
.rec__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: none; }
.rec__play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--teal); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.rec__play:hover { background: var(--teal-deep); }
.rec__play svg { width: 18px; height: 18px; }
.rec__time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; min-width: 92px; }
.rec__legend { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.rec__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rec__legend i { width: 10px; height: 10px; border-radius: 3px; }
.rec__legend i.sp-agent { background: var(--agent); }
.rec__legend i.sp-caller { background: var(--caller); }
.rec__transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; overflow-y: auto; align-content: start; flex: 1; min-height: 0; scrollbar-width: thin; }
.rec__line { width: 100%; display: grid; grid-template-columns: 40px 64px minmax(0, 1fr); gap: 8px; text-align: left; font: inherit; font-size: 12.5px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.rec__line:hover { background: var(--paper); }
.rec__line time { font-variant-numeric: tabular-nums; }
.rec__line b { font-weight: 600; }
.rec__line b.sp-agent { color: var(--agent); }
.rec__line b.sp-caller { color: var(--caller); }
.rec__line.is-now { background: var(--butter-soft); color: var(--ink); }
.rec__line.is-note { background: #FFF6D6; color: var(--ink); }
.rec__note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; flex: none; }
.rec__note input { font: 400 13px var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 10px; background: var(--paper); min-width: 0; }
.rec__note input:focus { outline: none; border-color: var(--teal); background: #fff; }
.rec__note .mini-btn { width: auto; margin: 0; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; }

.rec__line { align-items: baseline; }
.rec__item .dur { grid-row: 1 / span 3; }

/* recording player responds to its own width, not the viewport */
.rec { container-type: inline-size; }
.rec__note .mini-btn, .rec__time { font-variant-numeric: tabular-nums; }
.rec__note .mini-btn { width: 136px; text-align: center; }
.rec__head b { white-space: nowrap; }
@container (max-width: 440px) {
  .rec__head { flex-direction: column; }
  .rec__legend { margin-left: 0; }
  .rec__note { grid-template-columns: 1fr; }
  .rec__note .mini-btn { width: 100%; }
  .rec__body { overflow: hidden; }
}

/* collapsible call list */
.rec__toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 9px 5px 6px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.rec__toggle:hover { background: var(--sky-soft); }
.rec__toggle svg { width: 18px; height: 18px; }
.rec__toggle .chev { transition: transform .25s ease; transform-origin: 5.8px 12px; }
.rec__toggle[aria-expanded="false"] { background: var(--sky-soft); border-color: transparent; }
.rec__toggle[aria-expanded="false"] .chev { transform: scaleX(-1); }
.rec__side { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .rec__body { transition: grid-template-columns .3s cubic-bezier(.2,.7,.2,1); } }
.rec:not(.is-narrow).is-collapsed .rec__body { grid-template-columns: 0px minmax(0, 1fr); }
.rec:not(.is-narrow).is-collapsed .rec__side { visibility: hidden; padding-inline: 0; border-right-width: 0; }

/* narrow player: the call list becomes a slide-out panel over the player */
.rec__scrim { display: none; }
.rec.is-narrow .rec__body { grid-template-columns: minmax(0, 1fr); height: auto; position: relative; }
.rec.is-narrow .rec__side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 6; width: min(290px, 88%); padding: 12px; background: #fff; border-right: 1px solid var(--line); box-shadow: 14px 0 30px -18px rgba(18,76,82,.5); transform: translateX(-102%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s; }
.rec.is-narrow.is-drawer-open .rec__side { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.rec.is-narrow .rec__scrim { display: block; position: absolute; inset: 0; z-index: 5; background: rgba(18,76,82,.2); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.rec.is-narrow.is-drawer-open .rec__scrim { opacity: 1; pointer-events: auto; }
.rec.is-narrow .rec__transcript { flex: none; height: 230px; }
.rec.is-narrow .rec__example { display: none; }
@media (prefers-reduced-motion: reduce) { .rec.is-narrow .rec__side, .rec.is-narrow .rec__scrim { transition: none; } }

/* pricing: - [number] + with the slider underneath */
.calc__users { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.calc__users > span { color: var(--muted); margin-left: 4px; }
.calc__num { width: 3.4ch; font: 700 54px/1 var(--font); letter-spacing: -.04em; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; border: 2px solid transparent; border-radius: 14px; background: transparent; padding: 6px 4px; transition: border-color .15s ease, background .15s ease; }
.calc__num:hover { border-color: var(--line); }
.calc__num:focus { outline: none; border-color: var(--teal); background: var(--paper); }
.calc__step { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sky-soft); color: var(--teal); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; user-select: none; transition: background .15s ease, transform .1s ease; }
.calc__step svg { width: 20px; height: 20px; }
.calc__step:hover { background: var(--sky); }
.calc__step:active { transform: scale(.94); }
.calc__step:disabled { opacity: .4; cursor: default; transform: none; }
