/* ============================================================
   Zylo AI: the AI Receptionist page
   Used by the /ai-receptionist/ page.
   Uses the sub-page tokens from zylo-page.css; the prefix rp- keeps it
   out of the way of the template's own classes.
   ============================================================ */

/* ---------- the phone frame with a conversation in it ---------- */
.rp-phone { width: min(100%, 23rem); background: #0a0f0d; border: 1px solid var(--line, rgba(157,179,170,.28)); border-radius: 24px; padding: .8rem .7rem; display: grid; gap: .6rem; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(238,244,241,.06); }
.rp-phone--wide { width: 100%; }
.rp-ph { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--ink-soft); padding: .1rem .3rem; }
.rp-ph i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 10px var(--accent); }
.rp-ph b { color: var(--ink); font-weight: 600; }
.rp-ph small { margin-left: auto; color: var(--ink-dim); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.rp-chat { display: grid; gap: .45rem; min-height: 12rem; align-content: start; font-size: .82rem; }
.rp-msg { max-width: 88%; padding: .5rem .7rem; border-radius: 12px; line-height: 1.5; }
.rp-msg.ai { background: #0c1210; border: 1px solid var(--line); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.rp-msg.me { background: rgba(52,211,153,.16); color: var(--ink); justify-self: end; border-bottom-right-radius: 4px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.rp-chip { font-size: .68rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; color: var(--ink-soft); }
.rp-typebar { display: flex; gap: .4rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; font-size: .74rem; color: var(--ink-dim); }
.rp-typebar span { flex: 1; }
.rp-livebtn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 2.7rem; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 .86rem var(--font-text, "Geist", system-ui, sans-serif); color: #04120c; background: var(--accent); }
.rp-livebtn:hover { background: #6ee7b7; }
.rp-livebtn.is-on { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.rp-live { display: none; }
.rp-live iframe { display: block; width: 100%; height: 34rem; max-height: 70vh; border: 0; border-radius: 14px; background: #0c1210; }
.rp-phone.is-live .rp-chat, .rp-phone.is-live .rp-chips, .rp-phone.is-live .rp-typebar { display: none; }
.rp-phone.is-live .rp-live { display: block; }
.rp-note { font-size: .72rem; color: var(--ink-dim); line-height: 1.5; margin: 0; }
.rp-note a { color: var(--ink-soft); }

/* ---------- two-column blocks ---------- */
.rp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .rp-split { grid-template-columns: 1fr; } .rp-split .rp-phone { justify-self: center; } }
.rp-copy { display: grid; gap: 1rem; }
.rp-copy h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.01em; color: var(--ink); margin: 0; }
.rp-copy p { color: var(--ink-soft); line-height: 1.7; margin: 0; max-width: 58ch; }

/* ---------- tabs ---------- */
.rp-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.6rem; }
.rp-tabs button { all: unset; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); padding: .5rem .9rem .6rem; border-bottom: 2px solid var(--line); transition: color .2s, border-color .2s; }
.rp-tabs button:hover { color: var(--ink); }
.rp-tabs button.on { color: var(--ink); border-color: var(--accent); }
.rp-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .rp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } .rp-tabs::-webkit-scrollbar { display: none; } .rp-tabs button { white-space: nowrap; font-size: .86rem; } }

/* ---------- plans ---------- */
.rp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 900px) { .rp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rp-plans { grid-template-columns: 1fr; } }
.rp-plan { position: relative; background: linear-gradient(180deg, rgba(15,21,19,.92), rgba(8,11,10,.92)); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.2rem 1.4rem; display: grid; gap: .8rem; align-content: start; font-size: .86rem; box-shadow: inset 0 1px 0 rgba(238,244,241,.05); }
.rp-plan.hi { border-color: rgba(52,211,153,.5); box-shadow: inset 0 1px 0 rgba(52,211,153,.25), 0 24px 60px -36px rgba(52,211,153,.35); }
.rp-plan .tag { position: absolute; top: -.6rem; right: 1rem; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #04120c; background: var(--accent); border-radius: 999px; padding: .22rem .6rem; }
.rp-plan .nm { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.rp-plan .bl { font-size: .8rem; color: var(--ink-dim); margin-top: -.5rem; }
.rp-plan .pr { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.rp-plan .pr small { font-size: .74rem; font-weight: 500; color: var(--ink-dim); letter-spacing: 0; margin-left: .2rem; }
.rp-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; color: var(--ink-soft); }
.rp-plan li { display: flex; gap: .55rem; align-items: baseline; }
.rp-plan li::before { content: ""; flex: 0 0 auto; width: .4rem; height: .4rem; border-radius: 50%; background: rgba(52,211,153,.6); transform: translateY(-.1rem); }
.rp-plan li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rp-plan .ov { border-top: 1px solid var(--line); padding-top: .7rem; color: var(--ink-dim); font-size: .74rem; line-height: 1.6; }
.rp-plan .ov b { color: var(--ink-soft); font-weight: 500; }
.rp-plan .go { justify-self: start; margin-top: .2rem; font-size: .84rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(52,211,153,.4); padding-bottom: 2px; }
.rp-plan .go:hover { border-color: var(--accent); }
.rp-plans-note { margin: 1.1rem 0 0; font-size: .76rem; color: var(--ink-dim); line-height: 1.6; max-width: 70ch; }

/* ---------- small things ---------- */
.rp-kicker { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 .6rem; }
.rp-badge { display: inline-block; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #e2a648; border: 1px dashed rgba(226,166,72,.6); border-radius: 999px; padding: .2rem .55rem; }
.rp-cards-tight .card p { font-size: .9rem; }

/* ---------- industries: the copy and the example sit as a matched pair of panels ---------- */
.rp-split--industry { align-items: stretch; }
.rp-copy--panel { border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.4rem); background: linear-gradient(180deg, rgba(15,21,19,.55), rgba(8,11,10,.55)); box-shadow: inset 0 1px 0 rgba(238,244,241,.05); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.rp-copy--panel h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }
.rp-copy--panel #rp-label { margin: 0 0 -.4rem; }
.rp-copy--panel .ctas { justify-content: flex-start; margin-top: .3rem; }
.rp-phone--wide { display: flex; flex-direction: column; }
.rp-phone--wide .rp-chat { flex: 1; }
.rp-livebar { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .8rem; display: grid; gap: .55rem; }
.rp-livebar-t { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); }
.rp-phone.is-live .rp-livebar-t { display: none; }
.rp-phone.is-live .rp-ph small { color: var(--accent); }
.rp-phone.is-live .rp-ph i { animation: rp-pulse 1.4s ease-in-out infinite; }
@keyframes rp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }

/* ---------- plans: the cards light up under the pointer ---------- */
.rp-plan { transition: transform .35s var(--ease, cubic-bezier(.23,1,.32,1)), border-color .3s, box-shadow .35s; }
.rp-plan::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 40%), rgba(52,211,153,.16), transparent 62%); }
.rp-plan::after { content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: 1px; pointer-events: none; opacity: .35; transition: opacity .3s;
  background: linear-gradient(90deg, rgba(110,231,183,0), rgba(110,231,183,.8) 30%, rgba(110,231,183,.2) 70%, rgba(110,231,183,0)); }
.rp-plan > * { position: relative; z-index: 1; }
.rp-plan:hover, .rp-plan:focus-within { transform: translateY(-6px); border-color: rgba(52,211,153,.6); box-shadow: 0 34px 70px -34px rgba(52,211,153,.45), inset 0 1px 0 rgba(52,211,153,.3); }
.rp-plan:hover::before, .rp-plan:focus-within::before, .rp-plan:hover::after { opacity: 1; }
.rp-plan .pr { transition: color .3s; }
.rp-plan:hover .pr { color: var(--accent); }
.rp-plan li b { transition: color .3s; }
.rp-plan .go { display: block; text-align: center; margin-top: .4rem; padding: .7rem 1rem; border: 1px solid rgba(52,211,153,.45); border-radius: 10px; color: var(--accent); font-weight: 600; font-size: .88rem; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.rp-plan:hover .go, .rp-plan .go:focus-visible { background: var(--accent); color: #04120c; border-color: var(--accent); }
.rp-plan.hi::before { opacity: .55; }
.rp-plan.hi .tag { box-shadow: 0 0 18px rgba(52,211,153,.45); }
@media (prefers-reduced-motion: reduce) { .rp-plan, .rp-plan::before, .rp-plan .go, .rp-plan .pr { transition: none; } .rp-plan:hover { transform: none; } .rp-phone.is-live .rp-ph i { animation: none; } }

/* how it works: the sticky index beside the rows only takes a row's number once that row's label reaches the
   panel while the panel is still pinned, so the last row needs to be at least as tall as the panel */
.eng:last-of-type { min-height: 19rem; }

/* ---------- industries: a segmented control, so the names read as controls rather than
     sinking into the grid behind them ---------- */
.rp-tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .32rem; margin-bottom: 1.9rem;
  border: 1px solid var(--line-str, rgba(157,179,170,.28)); border-radius: 999px;
  background: rgba(8,12,11,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(238,244,241,.05), 0 18px 40px -28px rgba(0,0,0,.9); }
.rp-tabs button { border-bottom: 0; border-radius: 999px; padding: .62rem 1.15rem; font-size: 1rem;
  color: var(--ink-soft); transition: color .2s, background .2s, box-shadow .2s; }
.rp-tabs button:hover { color: var(--ink); background: rgba(238,244,241,.06); }
.rp-tabs button.on, .rp-tabs button.on:hover { color: #04120c; background: var(--accent); box-shadow: 0 10px 26px -12px rgba(52,211,153,.75); }
.rp-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) {
  .rp-tabs { display: flex; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rp-tabs button { flex: 1 1 auto; white-space: nowrap; font-size: .92rem; padding: .55rem .85rem; }
}

/* the plan badge sits above the card edge, so the card must not clip it, and it must not wrap */
.rp-plan { overflow: visible; }
.rp-plan .tag { white-space: nowrap; z-index: 2; }

/* By industry and Plans sit on the hero's solid ground rather than the animated box grid.
   The `no-grid` class on each section is what tells motion.js to leave them alone. */
#industries, #plans { background: #050505; }
