/* =========================================================
   Flowsier 24/7 Receptionist — builds on styles.css
   ========================================================= */
.rx .nav__links a { white-space: nowrap; }
@media (max-width: 1100px) { .rx .status-pill { display: none; } }

/* Headline sized so "EVERY CALL" fits the column */
.rx .hero__title { font-size: clamp(2.5rem, 4.8vw, 4.6rem); }

/* ---------- Live call console ---------- */
.call__clock { margin-left: auto; font-size: var(--t-xs); color: var(--on-ink-muted); }
.call__clock b { color: var(--on-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.call .console__bar .live { margin-left: 14px; }
.call__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-ink); }
.call__ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bright); color: var(--ink); }
.call__ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.call__ring::before, .call__ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok-bright); animation: ringOut 1.8s ease-out infinite; }
.call__ring::after { animation-delay: .9s; }
.call.ringing .call__ring { background: var(--signal); animation: shake .5s ease-in-out infinite; }
.call.ringing .call__ring::before, .call.ringing .call__ring::after { border-color: var(--signal); }
@keyframes ringOut { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes shake { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.call__who { font-weight: 600; color: var(--on-ink); font-size: var(--t-sm); }
.call__meta { font-size: var(--t-xs); color: var(--on-ink-muted); margin-top: 2px; }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--on-ink-muted); transition: height .12s ease; }
.wave.talk-ai i { background: var(--signal); }
.wave.talk-caller i { background: var(--ok-bright); }
@media (max-width: 520px) { .wave { display: none; } .call__head { grid-template-columns: auto 1fr; } }

.call__body { height: 250px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 18px; }
.line-say { max-width: 84%; display: grid; gap: 3px; animation: logIn .35s var(--ease); }
.line-say small { font: 500 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.line-say p { padding: 9px 13px; border-radius: 10px; font-size: var(--t-sm); line-height: 1.45; }
.line-say--caller { align-self: flex-start; }
.line-say--caller p { background: var(--ink-3); color: var(--on-ink); border-bottom-left-radius: 2px; }
.line-say--ai { align-self: flex-end; text-align: right; }
.line-say--ai p { background: var(--signal); color: var(--ink); border-bottom-right-radius: 2px; text-align: left; font-weight: 500; }
.line-say.out { animation: bubbleOut .3s forwards; }
.typing-caret::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink .7s steps(1) infinite; }

.call__actions { list-style: none; margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line-ink); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; min-height: 76px; font-size: 11.5px; color: var(--on-ink-muted); }
.call__actions li { display: flex; gap: 8px; align-items: center; animation: logIn .35s var(--ease); }
.call__actions li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ok-bright); }
.call__actions li b { color: var(--on-ink); font-weight: 500; }
@media (max-width: 520px) { .call__actions { grid-template-columns: 1fr; } }

/* ---------- SMS demo tile ---------- */
.sms { display: grid; gap: 8px; margin-top: 4px; }
.sms p { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: var(--t-sm); line-height: 1.4; opacity: 0; transform: translateY(8px); }
.sms__in { justify-self: start; background: var(--ink); color: var(--on-ink); border-bottom-left-radius: 2px; }
.sms__out { justify-self: end; background: var(--signal); color: var(--ink); border-bottom-right-radius: 2px; }
.tile.in .sms p { animation: smsIn 6s var(--ease) infinite; }
.tile.in .sms p:nth-child(2) { animation-delay: .9s; }
.tile.in .sms p:nth-child(3) { animation-delay: 1.8s; }
@keyframes smsIn { 0% { opacity: 0; transform: translateY(8px); } 8%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }

/* ---------- Compare table ---------- */
.compare { display: grid; gap: 0; border: 1px solid var(--line-ink); border-radius: 6px; overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; }
.compare__row > span { padding: 16px 20px; border-top: 1px solid var(--line-ink); display: flex; align-items: center; gap: 10px; }
.compare__row--head > span { border-top: 0; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--on-ink-muted); background: var(--ink-2); }
.compare__row--head > span:last-child { color: var(--signal); }
.compare__row > span:first-child { font-weight: 600; }
.compare .no { color: var(--on-ink-muted); }
.compare .no::before { content: "✕"; color: #e0685a; font-weight: 700; }
.compare .yes { color: var(--on-ink); background: rgba(255, 79, 18, .07); }
.compare .yes::before { content: "✓"; color: var(--ok-bright); font-weight: 700; }
.compare__row:not(.compare__row--head):hover > span { background: rgba(236, 238, 233, .04); }
.compare__row:not(.compare__row--head):hover > .yes { background: rgba(255, 79, 18, .14); }
@media (max-width: 640px) {
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; border-top: 1px solid var(--line-ink); }
  .compare__row > span:not(:first-child) { border-top: 0; padding-top: 6px; font-size: var(--t-sm); }
  .compare__row--head > span:first-child { display: none; }
  .compare__row--head > span:not(:first-child) { padding-top: 16px; }
}

/* ---------- Industries ---------- */
.inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.inds li { display: grid; gap: 4px; padding: 20px; background: var(--paper-2); border: 1.5px solid var(--line-strong); border-radius: var(--r); transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; }
.inds li:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); background: #fff; }
.inds b { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: 1rem; }
.inds span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 960px) { .inds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .inds { grid-template-columns: 1fr; } }

/* ---------- Setup ---------- */
.setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.setup li { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--paper-2); border: 1.5px solid var(--line-strong); border-radius: var(--r); position: relative; }
.setup li span { font-size: var(--t-sm); color: var(--signal-deep); font-weight: 700; }
.setup li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translate(50%, -50%); z-index: 1; font-family: var(--f-mono); color: var(--muted); }
.setup h3 { font-size: 1.05rem; }
.setup p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 1000px) { .setup { grid-template-columns: repeat(2, 1fr); } .setup li::after { display: none; } }
@media (max-width: 480px) { .setup { grid-template-columns: 1fr; } }

/* FAQ without chat */
.faq-grid--single { grid-template-columns: minmax(0, 820px); }

@media (prefers-reduced-motion: reduce) {
  .sms p { opacity: 1 !important; transform: none !important; animation: none !important; }
  .call__ring, .call__ring::before, .call__ring::after { animation: none !important; }
}

/* Example call summary in the Voice AI tile */
.summary { min-height: 0; display: grid; gap: 10px; }
.summary__head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--on-ink-muted); padding-bottom: 8px; border-bottom: 1px dashed var(--line-ink); }
.summary__head span:first-child { color: var(--signal); }
.summary dl { margin: 0; display: grid; gap: 6px; }
.summary dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.summary dt { color: var(--on-ink-muted); }
.summary dd { margin: 0; color: var(--on-ink); }
.summary dd.hot { color: var(--signal); font-weight: 700; }

.call__clock, .call .console__bar > span:first-child { white-space: nowrap; }
@media (max-width: 420px) { .call .console__bar { gap: 10px; padding-inline: 12px; } .call .console__bar > span:first-child { display: none; } }

/* =========================================================
   Receptionist identity: 24h dial, switchboard strip,
   split feature list, timestamped call timeline
   ========================================================= */
.hero--rx { background: var(--panel); border-bottom: 1.5px solid var(--line-strong); }
.rx-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .rx-hero { grid-template-columns: 1fr; } }

.dial-wrap { position: relative; width: min(100%, 520px); justify-self: center; }
.dial { display: block; width: 100%; height: auto; overflow: visible; }
.dial__face { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; }
.dial__night { fill: none; stroke: var(--ink); stroke-width: 16; stroke-linecap: butt; }
.dial__day { fill: none; stroke: var(--line-strong); stroke-width: 16; opacity: .25; }
.tick { stroke: var(--muted); stroke-width: 1.5; }
.tick--major { stroke: var(--ink); stroke-width: 3; }
.dial__lbl { font: 500 11px var(--f-mono); fill: var(--muted); letter-spacing: .06em; }
.dial__hand { transform-origin: 200px 200px; transition: transform 1.4s cubic-bezier(.3, .8, .2, 1.1); }
.dial__hand line { stroke: var(--signal); stroke-width: 4; stroke-linecap: round; }
.dial__hand circle { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.dial__hub { fill: var(--ink); }
.blip circle { fill: var(--signal); stroke: var(--ink); stroke-width: 2; transition: opacity .6s; }
.blip .blip__ring { fill: none; stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: blipRing 1.6s ease-out infinite; }
.blip.old circle { fill: var(--ink); }
.blip.old .blip__ring { display: none; }
@keyframes blipRing { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.dial__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; }
.dial__center span:first-child { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dial__center b { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 34px; }
.dial__tag { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line-strong); }
.dial__tag.is-night { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dial__legend { display: flex; justify-content: center; gap: 8px 16px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lg { display: inline-block; width: 18px; height: 6px; margin-right: 6px; vertical-align: middle; }
.lg--night { background: var(--ink); }
.lg--day { background: var(--line-strong); opacity: .5; }

/* Wide switchboard strip under the hero */
.rx-live { padding-block: 40px 56px; background: var(--panel); }
.call--wide { display: grid; grid-template-columns: 1.4fr .8fr; grid-template-areas: "bar bar" "head side" "body side"; opacity: 1; transform: none; animation: none; box-shadow: 12px 12px 0 var(--signal); }
.call--wide .console__bar { grid-area: bar; }
.call--wide .call__head { grid-area: head; }
.call--wide .call__body { grid-area: body; height: 230px; }
.call__side { grid-area: side; border-left: 1px solid var(--line-ink); padding: 18px; display: grid; align-content: start; gap: 12px; }
.call__side-label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--signal); }
.call--wide .call__actions { border-top: 0; padding: 0; grid-template-columns: 1fr; gap: 10px; font-size: 12.5px; }
@media (max-width: 820px) {
  .call--wide { grid-template-columns: 1fr; grid-template-areas: "bar" "head" "body" "side"; }
  .call__side { border-left: 0; border-top: 1px solid var(--line-ink); }
}

/* What it handles: pinned Voice AI card + feature rows */
.rx-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0 40px; align-items: start; }
.rx-split > .tile--ai { grid-column: 1; grid-row: 1 / span 7; position: sticky; top: 90px; }
.rx-split > .tile:not(.tile--ai) { grid-column: 2; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; background: transparent; padding: 22px 0; box-shadow: none; transform: none; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 6px; }
.rx-split > .tile:not(.tile--ai):last-child { border-bottom: 1.5px solid var(--ink); }
.rx-split > .tile:not(.tile--ai) .tile__head { grid-row: span 3; display: block; margin: 0; }
.rx-split > .tile:not(.tile--ai) .tile__head .tag { display: none; }
.rx-split > .tile:not(.tile--ai) .ico { width: 48px; height: 48px; padding: 11px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper-2); transition: background .2s; }
.rx-split > .tile:not(.tile--ai):hover .ico { background: var(--signal); }
.rx-split > .tile:not(.tile--ai) h3 { font-size: 1.05rem; }
.rx-split > .tile:not(.tile--ai) .sms { grid-column: 2; max-width: 420px; }
.rx-split > .tile.reveal.in:hover { transform: none; box-shadow: none; }
.rx-split > .tile--ai.reveal.in:hover { transform: translate(-3px, -3px); }
@media (max-width: 900px) {
  .rx-split { grid-template-columns: 1fr; }
  .rx-split > .tile--ai { grid-row: auto; position: static; margin-bottom: 20px; }
  .rx-split > .tile:not(.tile--ai) { grid-column: 1; }
}

/* How it works: timestamped call timeline with playhead */
.ctl { position: relative; padding-top: 34px; }
.ctl__track { position: absolute; top: 44px; left: 0; right: 0; height: 4px; background: var(--line-strong); }
.ctl__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.ctl__head { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--ink); border: 3px solid var(--signal); border-radius: 50%; }
.ctl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ctl__list li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 38px; }
.ctl__t { position: absolute; top: -34px; left: 0; font-size: var(--t-sm); font-weight: 700; color: var(--muted); transition: color .3s; }
.ctl__dot { position: absolute; top: 2px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink); transition: background .3s, transform .3s var(--spring); }
.ctl__list li:last-child .ctl__dot { left: auto; right: 0; }
.ctl__list li:last-child .ctl__t { left: auto; right: 0; }
.ctl__list li:last-child { text-align: right; }
.ctl__list li.hit .ctl__dot { background: var(--signal); transform: scale(1.15); }
.ctl__list li.hit .ctl__t { color: var(--signal-deep); }
.ctl__list p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 860px) {
  .ctl { padding-top: 0; padding-left: 40px; }
  .ctl__track { top: 0; bottom: 0; left: 9px; right: auto; width: 4px; height: auto; }
  .ctl__fill { transform-origin: top; }
  .ctl__head { display: none; }
  .ctl__list { grid-template-columns: 1fr; gap: 22px; }
  .ctl__list li, .ctl__list li:last-child { padding-top: 0; text-align: left; }
  .ctl__t, .ctl__list li:last-child .ctl__t { position: static; }
  .ctl__dot, .ctl__list li:last-child .ctl__dot { left: -40px; right: auto; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dial__hand { transition: none; }
  .blip .blip__ring { animation: none; }
}
