/* Rio chat + the AI sales representative page. Uses the site's colour tokens (light and dark). */
.rio { --rio-teal: #19b5c9; --rio-ink: #04222a; --rio-bot: var(--surface-alt); --rio-line: var(--line-teal); font-family: Inter, sans-serif; }
:root[data-theme="light"] .rio { --rio-bot: #eef6f9; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .rio { --rio-bot: #eef6f9; } }

.rio-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rio-line); border-radius: 22px;
  box-shadow: var(--shadow-teal); overflow: hidden; color: var(--text); }
.rio--inline .rio-panel { height: 640px; max-height: calc(100svh - 120px); min-height: 520px; }
.rio-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 10px;
  background: linear-gradient(120deg, #0b3c49, #0f2a3a 60%, #2a1c22); color: #fff; }
.rio-back, .rio-min { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 6px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; }
.rio-back svg, .rio-min svg { width: 18px; height: 18px; }
.rio-back[hidden] { display: none; }
.rio-back:disabled { opacity: .45; cursor: default; }
.rio-back.is-restart { padding: 0 12px; }
.rio-back.is-restart svg { display: none; }
.rio-back:not(:disabled):hover, .rio-min:hover { background: rgba(255,255,255,.18); }
.rio-min { padding: 0; width: 36px; justify-content: center; }
.rio-spk { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-left: auto; padding: 0 12px 0 9px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.rio-spk svg { width: 19px; height: 19px; flex: none; }
.rio-spk .off, .rio-spk.is-off .on { display: none; }
.rio-spk.is-off .off { display: block; }
.rio-spk.is-off { color: #cfe7ee; }
.rio-spk.is-ready { background: #19b5c9; border-color: #19b5c9; color: #04222a; animation: rio-pulse 1.8s ease-in-out infinite; }
.rio-spk:hover { background: rgba(255,255,255,.18); }
.rio-spk.is-ready:hover { background: #3cc6d7; }
.rio-spk:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@keyframes rio-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(25,181,201,.6); } 50% { box-shadow: 0 0 0 7px rgba(25,181,201,0); } }
@media (prefers-reduced-motion: reduce) { .rio-spk.is-ready { animation: none; } }
@media (max-width: 380px) { .rio-spk-t { display: none; } .rio-spk { padding: 0; width: 36px; justify-content: center; } }
.rio--inline .rio-spk { margin-right: 0; }
.rio--inline .rio-min { display: none; }
.rio-head:not(:has(.rio-spk)) .rio-min { margin-left: auto; }
.rio-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rio-head-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #a8e3e0; border: 2px solid rgba(255,255,255,.85); flex: none; }
.rio-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rio-name strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rio-name span { font-size: 12.5px; color: #cfe7ee; }
.rio-fallback { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rio-teal); color: var(--rio-ink); font-weight: 800; }
.rio-disc { margin: 0; padding: 7px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-grey); background: var(--surface); }

.rio-log { position: relative; flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.rio-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.rio-msg-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: #a8e3e0; font-size: 13px; }
.rio-bubble { padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; max-width: 86%; overflow-wrap: anywhere; }
.rio-bot .rio-bubble { background: var(--rio-bot); border: 1px solid var(--line-grey); border-bottom-left-radius: 5px; }
.rio-me { justify-content: flex-end; }
.rio-me .rio-bubble { background: var(--rio-teal); color: var(--rio-ink); font-weight: 500; border-bottom-right-radius: 5px; }
.rio-typing .rio-bubble { display: inline-flex; gap: 4px; padding: 13px 14px; }
.rio-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: rio-dot 1s infinite ease-in-out; }
.rio-typing i:nth-child(2) { animation-delay: .15s; } .rio-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rio-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .rio-typing i { animation: none; opacity: .7; } .rio-log { scroll-behavior: auto; } }

.rio-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rio-card-t { font-size: 16px; line-height: 1.3; }
.rio-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rio-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line-grey); color: var(--muted); }
.rio-tag--fund { border-color: var(--rio-teal); color: var(--text); background: rgba(25,181,201,.12); }
.rio-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 2px 0 0; font-size: 14px; }
.rio-card dt { color: var(--muted); }
.rio-card dd { margin: 0; }
.rio-card-d { font-size: 14px; color: var(--soft); }
.rio-card-n { font-size: 12.5px; color: var(--muted); }
.rio-runs { display: flex; flex-direction: column; gap: 8px; }
.rio-run { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--rio-line); background: var(--surface); }
.rio-run strong { font-size: 15px; }
.rio-run span { font-size: 13.5px; color: var(--muted); }
.rio-few { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); }

.rio-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; max-height: 42%; overflow-y: auto; border-top: 1px solid var(--line-grey); }
.rio-opts:empty { display: none; }
.rio-pill { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border-radius: 18px; cursor: pointer; text-align: left;
  font: 600 14px/1.3 Inter, sans-serif; color: var(--text); background: transparent; border: 1.5px solid var(--rio-teal); transition: background .15s, transform .15s; }
.rio-pill small { font-weight: 500; font-size: 12px; color: var(--muted); }
.rio-pill:not(:disabled):hover { background: rgba(25,181,201,.14); transform: translateY(-1px); }
.rio-pill--primary { background: var(--rio-teal); color: var(--rio-ink); }
.rio-pill--primary small { color: #0b3c49; }
.rio-pill--primary:not(:disabled):hover { background: #3cc6d7; }
.rio-pill--back { border-color: var(--line-grey); color: var(--muted); }
.rio-pill--link { text-decoration: none; background: #1fae5b; border-color: #1fae5b; color: #04220f; }
.rio-pill--link:hover { background: #2fc56d; }
.rio-pill:disabled { opacity: .45; cursor: default; }
.rio-pill:focus-visible, .rio-back:focus-visible, .rio-min:focus-visible, .rio-send:focus-visible, .rio-launch:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.rio-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line-grey); background: var(--surface); }
.rio-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-grey); background: var(--bg); color: var(--text); font: 16px Inter, sans-serif; }
.rio-form input:focus { outline: none; border-color: var(--rio-teal); box-shadow: 0 0 0 3px rgba(25,181,201,.25); }
.rio-form input::placeholder { color: var(--muted); }
.rio-form .rio-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rio-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rio-send svg { width: 20px; height: 20px; }
.rio-error { padding: 24px; border: 1px solid var(--line-teal); border-radius: 18px; color: var(--muted); }

/* Floating launcher + panel (any page) */
.rio-launch { position: fixed; right: 20px; bottom: 20px; z-index: 1001; display: inline-flex; align-items: center; gap: 10px; padding: 5px 18px 5px 5px; border-radius: 40px;
  border: 1px solid var(--line-teal); background: var(--surface); color: var(--text); font: 700 15px Inter, sans-serif; cursor: pointer; box-shadow: var(--shadow-teal); }
.rio-launch-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #a8e3e0; font-size: 20px; }
.rio-launch:hover { box-shadow: var(--shadow-teal-hover); }
.rio--float .rio-panel { position: fixed; right: 20px; bottom: 20px; width: 400px; height: min(640px, calc(100svh - 40px)); z-index: 1002; display: none; }
.rio--float.open .rio-panel { display: flex; }
.rio--float.open .rio-launch { display: none; }
.rio-launch--page { opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.rio-launch--page.show { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 600px) {
  .rio--float .rio-panel { inset: 0; width: auto; height: 100svh; max-height: none; border-radius: 0; border: 0; }
  .rio--inline .rio-panel { height: 80svh; min-height: 480px; }
  .rio-bubble { max-width: 90%; }
  .rio-launch-t { display: none; }
  .rio-launch { padding: 5px; }
}

/* ---------------- Page: AI sales representative ---------------- */
.rio-hero { padding-top: 56px; }
.rio-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; }
.rio-hero h1 { font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 20px; }
.rio-hero .lead-p { margin: 0 0 26px; }
.rio-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.rio-points li { display: flex; gap: 10px; color: var(--soft); font-size: 16.5px; }
.rio-points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2304222a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.rio-demo-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.rio-demo-note strong { color: var(--text); }
.rio-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 8px; }
.rio-stats div { display: flex; flex-direction: column; }
.rio-stats b { font-size: 30px; font-weight: 800; line-height: 1.1; }
.rio-stats span { font-size: 13.5px; color: var(--muted); }

/* Image 1: before / after */
.rio-fig { margin: 0; background: var(--surface); border: 1px solid var(--line-teal); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-teal); }
.rio-fig figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); }
.rio-ba { display: grid; gap: 28px; }
.rio-ba-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.rio-ba-who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; line-height: 1.25; }
.rio-ba-who small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.rio-ba-ic { width: 52px; height: 52px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(242,107,56,.15); color: var(--orange); }
.rio-ba-ic svg { width: 28px; height: 28px; }
.rio-ba-ic img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.rio-bar { display: flex; min-height: 72px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-grey); }
.rio-bar > div { display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.2; border-right: 1px solid rgba(0,0,0,.18); }
.rio-bar > div:last-child { border-right: 0; }
.rio-bar b { font-size: 15px; }
.rio-bar span { overflow-wrap: anywhere; }
.rio-bar .rep { background: linear-gradient(180deg, #f26b38, #d9572a); color: #2a0e02; }
.rio-bar .rep2 { background: linear-gradient(180deg, #f5875c, #e86d42); color: #2a0e02; }
.rio-bar .bot { background: linear-gradient(180deg, #2cc3d6, #19a5b8); color: #04222a; }
.rio-ba-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.rio-ba-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.rio-ba-arrow { display: flex; align-items: center; gap: 10px; padding-left: 190px; color: var(--teal); font-weight: 700; font-size: 15px; }
.rio-ba-arrow svg { width: 22px; height: 22px; }

/* Image 2: journey */
.rio-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.rio-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-grey); min-width: 0; }
.rio-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -14px; width: 14px; height: 2px; background: var(--grad); }
.rio-step .n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--teal); color: #04222a; }
.rio-step.bot { border-color: var(--teal); background: linear-gradient(180deg, rgba(25,181,201,.12), transparent 70%), var(--bg); }
.rio-step.rep { border-color: var(--orange); background: linear-gradient(180deg, rgba(242,107,56,.12), transparent 70%), var(--bg); }
.rio-step.rep .n { background: var(--orange); color: #2a0e02; }
.rio-step h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.rio-step p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.rio-mock { border-radius: 12px; padding: 9px 10px; font-size: 12.5px; line-height: 1.4; background: var(--surface); border: 1px solid var(--line-grey); }
.rio-mock .me { display: block; margin-left: auto; width: fit-content; max-width: 100%; padding: 5px 9px; border-radius: 10px 10px 3px 10px; background: var(--teal); color: #04222a; font-weight: 600; }
.rio-mock .it { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.rio-mock .it img { width: 22px; height: 22px; border-radius: 50%; }
.rio-mock .it span { padding: 5px 9px; border-radius: 10px 10px 10px 3px; background: var(--rio-bot, rgba(25,181,201,.1)); border: 1px solid var(--line-grey); }
.rio-mock .row { display: flex; justify-content: space-between; gap: 8px; }
.rio-mock .row b { font-weight: 700; }
.rio-mock .hot { color: #fff; background: #d9472a; border-radius: 8px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.rio-mock.wa { background: #e7f8ee; border-color: #bfe8cf; color: #0f2a19; }
:root:not([data-theme="light"]) .rio-mock.wa { background: #0f2a1d; border-color: #1f5a3a; color: #d8f5e4; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .rio-mock.wa { background: #e7f8ee; border-color: #bfe8cf; color: #0f2a19; } }
.rio-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rio-chips em { font-style: normal; border: 1px solid var(--teal); border-radius: 10px; padding: 1px 7px; font-size: 11px; }

/* Calculator */
.rio-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.rio-calc .card { display: flex; flex-direction: column; gap: 20px; }
.rio-field { display: flex; flex-direction: column; gap: 8px; }
.rio-field label, .rio-field .lbl { font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 10px; }
.rio-field output { color: var(--teal); font-weight: 800; }
.rio-field small { color: var(--muted); font-size: 13px; }
.rio-money { display: flex; align-items: center; border: 1px solid var(--line-grey); border-radius: 12px; overflow: hidden; background: var(--bg); }
.rio-money span { padding: 0 12px; color: var(--muted); font-weight: 600; }
.rio-money input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: 600 17px Inter, sans-serif; padding-right: 12px; }
.rio-money:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,181,201,.22); }
.rio-money input:focus { outline: none; }
.rio-field input[type=range] { width: 100%; accent-color: var(--teal); height: 28px; }
.rio-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.rio-check input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 1px; }
.rio-out { justify-content: space-between; }
.rio-big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rio-big div { padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line-teal); }
.rio-big span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.rio-big b { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.15; margin-top: 4px; letter-spacing: -.01em; }
.rio-big .yr b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rio-math { font-size: 14px; color: var(--muted); line-height: 1.55; }
.rio-math b { color: var(--text); }
.rio-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.rio-tbl th, .rio-tbl td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--line-grey); }
.rio-tbl th:first-child, .rio-tbl td:first-child { text-align: left; }
.rio-tbl thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.rio-tbl tr.on td { color: var(--teal); font-weight: 700; }
.rio-revenue { padding: 16px 18px; border-radius: 14px; border-left: 4px solid var(--orange); background: rgba(242,107,56,.08); font-size: 15px; color: var(--soft); }
.rio-revenue b { color: var(--text); }

.rio-feats .card h3 { margin: 12px 0 8px; }
.rio-feats .icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(25,181,201,.14); color: var(--teal); }
.rio-feats .icon svg { width: 24px; height: 24px; }
.rio-cta { text-align: center; }
.rio-cta .title { margin-left: auto; margin-right: auto; }
.rio-cta .btn-row { justify-content: center; gap: 14px; }

@media (max-width: 1100px) {
  .rio-hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .rio-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rio-step:not(:last-child)::after { display: none; }
  .rio-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .rio-hero-grid, .rio-calc { grid-template-columns: 1fr; }
  .rio-ba-row { grid-template-columns: 1fr; gap: 10px; }
  .rio-ba-arrow { padding-left: 0; }
}
@media (max-width: 600px) {
  .rio-fig { padding: 18px; border-radius: 18px; }
  .rio-flow { grid-template-columns: 1fr; }
  .rio-step:last-child { grid-column: auto; }
  .rio-bar { height: auto; flex-direction: column; }
  .rio-bar > div { flex: none !important; width: 100% !important; padding: 8px 12px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.18); }
    .rio-bar > div.bot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rio-big { grid-template-columns: 1fr; }
  .rio-tbl { font-size: 14px; }
}

/* ---------------- Page: Rio, the WhatsApp Sales Rep ---------------- */
.wa-try { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin: 4px 0 6px; }
.wa-btn { background: #1fae5b; color: #04220f; }
.wa-btn svg { width: 22px; height: 22px; }
.wa-btn:hover { box-shadow: 0 0 26px rgba(31,174,91,.45); }
.wa-qr { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-teal); }
.wa-qr img { width: 112px; height: 112px; border-radius: 10px; background: #fff; }
.wa-qr span { font-size: 14px; color: var(--muted); max-width: 150px; line-height: 1.4; }
.wa-qr b { color: var(--text); display: block; }
.wa-hero-phone { display: flex; justify-content: center; }

/* WhatsApp-style phone mock-up (illustration) */
.wa-phone { width: 100%; max-width: 360px; border-radius: 34px; padding: 10px; background: #111b21; box-shadow: 0 24px 60px rgba(0,0,0,.35), var(--shadow-teal); border: 1px solid rgba(255,255,255,.08); }
.wa-bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px; border-radius: 24px 24px 0 0; background: #075e54; color: #fff; }
.wa-bar img, .wa-av { width: 34px; height: 34px; border-radius: 50%; background: #a8e3e0; object-fit: cover; flex: none; }
.wa-av { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #075e54; }
.wa-bar b { display: block; font-size: 14.5px; line-height: 1.2; }
.wa-bar small { font-size: 12px; color: #cfe9e5; }
.wa-back { font-size: 26px; line-height: 1; margin: -2px 2px 0 0; opacity: .9; }
.wa-chat { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 16px; border-radius: 0 0 24px 24px; min-height: 300px;
  background: #efeae2 radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0/14px 14px; font: 13.5px/1.4 Inter, -apple-system, sans-serif; color: #111b21; }
.wa-in, .wa-out { display: flex; flex-direction: column; max-width: 86%; }
.wa-in { align-self: flex-start; }
.wa-out { align-self: flex-end; }
.wa-bub { position: relative; padding: 7px 9px 18px; border-radius: 9px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-in .wa-bub { border-top-left-radius: 2px; }
.wa-out .wa-bub { background: #d9fdd3; border-top-right-radius: 2px; min-width: 80px; }
.wa-bub i { position: absolute; right: 8px; bottom: 3px; font-style: normal; font-size: 10.5px; color: #667781; }
.wa-bub em { font-style: italic; }
.wa-foot { display: block; margin-top: 6px; font-style: normal !important; font-size: 11.5px; color: #667781; }
.wa-btns { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.wa-btns span { display: block; padding: 8px 6px; border-radius: 9px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); color: #027eb5; font-weight: 600; text-align: center; font-size: 13.5px; }

.wa-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.wa-steps .card { gap: 8px; }
.wa-steps .n { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--teal); color: #04222a; margin-bottom: 6px; }
.wa-steps h3 { margin: 0 0 6px; }
.wa-duo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; justify-items: center; }
.wa-duo-grid > div:not(.wa-duo-arrow) { width: 100%; display: flex; flex-direction: column; align-items: center; }
.wa-cap { font-weight: 700; margin-bottom: 10px; }
.wa-duo-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; font-size: 14px; text-align: center; max-width: 110px; }
.wa-duo-arrow svg { width: 40px; height: 40px; }
.wa-duo .wa-chat { min-height: 340px; }

@media (max-width: 1100px) { .wa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .wa-duo-grid { grid-template-columns: 1fr; }
  .wa-duo-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .wa-steps { grid-template-columns: 1fr; }
  .wa-qr img { width: 96px; height: 96px; }
  .wa-phone { border-radius: 28px; }
}

/* Real-conversation gallery (screens built from Rio's engine: tools/rio_wa_demo_chats.php) */
.wa-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.wa-shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wa-shot figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; min-height: 86px; }
.wa-shot figcaption .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--teal); color: #04222a; }
.wa-shot figcaption b { font-size: 16px; line-height: 1.3; }
.wa-shot figcaption small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.wa-shot .wa-phone { max-width: none; border-radius: 28px; padding: 8px; }
.wa-shot .wa-bar { border-radius: 20px 20px 0 0; padding: 10px; }
.wa-shot .wa-chat { height: 520px; min-height: 0; overflow-y: auto; border-radius: 0 0 20px 20px; font-size: 12.5px; scrollbar-width: thin; }
.wa-shot .wa-btns span { font-size: 12.5px; padding: 7px 4px; }
.wa-swipe { display: none; margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .wa-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wa-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter, 16px)); }
  .wa-shot { flex: 0 0 82%; scroll-snap-align: start; }
  .wa-swipe { display: block; }
}

/* "Try it yourself" QR panel */
.wa-tryit { display: flex; align-items: center; gap: 32px; margin-top: 40px; padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-teal); box-shadow: var(--shadow-teal); }
.wa-tryit > img { width: 180px; height: 180px; flex: none; border-radius: 16px; background: #fff; padding: 6px; border: 1px solid var(--line-grey); }
.wa-tryit h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.wa-tryit ol { margin: 0 0 18px; padding-left: 22px; color: var(--soft); font-size: 16px; line-height: 1.6; }
.wa-tryit-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.wa-qr-cta { margin: 26px auto 0; width: fit-content; text-align: left; }
@media (max-width: 700px) {
  .wa-tryit { flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; }
  .wa-tryit > img { width: 160px; height: 160px; }
}

/* Real iPhone screenshots */
.wa-realshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 6px 0 56px; }
.wa-realshots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wa-realframe { width: 100%; max-width: 300px; padding: 9px; border-radius: 40px; background: #0b0f14; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.35), var(--shadow-teal); }
.wa-realframe img { display: block; width: 100%; height: auto; border-radius: 32px; }
.wa-realshots figcaption { text-align: center; font-size: 15px; font-weight: 600; max-width: 280px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wa-realtag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #04220f; background: #25d366; padding: 3px 10px; border-radius: 20px; }
.wa-sub { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; margin: 0 0 12px; }
.wa-sub + .lead-p { margin-top: 0; }
@media (max-width: 900px) {
  .wa-realshots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 8px; }
  .wa-realshots figure { flex: 0 0 72%; scroll-snap-align: start; }
}

/* QR codes are tappable (phones can't scan their own screen) */
.wa-qr-link { display: inline-flex; flex: none; border-radius: 12px; transition: transform .15s, box-shadow .15s; }
.wa-qr-link:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(31,174,91,.45); }
.wa-qr-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.only-phone { display: none; }
@media (hover: none) and (pointer: coarse) { .only-phone { display: inline; } .only-desk { display: none; } }

/* ================= Home: AI agents ================= */
.ai-hero .ai-kicker { margin: 0 0 14px; color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 18px rgba(25,181,201,.6); }
.ai-hero .cap-t .grad-text { display: inline; }
.ai-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ai-hero-btns .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(8,13,23,.35); }
.ai-intro .ai-h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; max-width: 980px; margin: 14px auto 22px; }
.ai-intro .lead-p { margin: 0 auto 40px; }
.ai-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.ai-stats div { padding: 22px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-teal); box-shadow: var(--shadow-teal); display: flex; flex-direction: column; gap: 6px; }
.ai-stats b { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-stats span { font-size: 14px; color: var(--muted); }

.ai-agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.ai-agent { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-teal); box-shadow: var(--shadow-teal); transition: transform .25s, box-shadow .25s; }
.ai-agent:hover { transform: translateY(-4px); box-shadow: var(--shadow-teal-hover); }
.ai-agent.featured { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 0 40px rgba(242,107,56,.18), 0 0 40px rgba(25,181,201,.18); }
.ai-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 14px; border-radius: 20px; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; }
.ai-agent h3 { font-size: 22px; font-weight: 800; }
.ai-agent p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ai-agent ul { list-style: none; padding: 0; margin: 2px 0 10px; display: grid; gap: 6px; }
.ai-agent li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--soft); }
.ai-agent li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2304222a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.ai-agent .btn { margin-top: auto; align-self: flex-start; }
.ai-agent-n { color: var(--teal) !important; font-size: 12.5px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.ai-agent-vis { height: 230px; border-radius: 16px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, rgba(25,181,201,.22), transparent 60%), radial-gradient(circle at 80% 90%, rgba(242,107,56,.18), transparent 55%), var(--bg); border: 1px solid var(--line-grey); }
.ai-mini-chat { width: 86%; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.ai-mini-chat .m { display: flex; gap: 6px; align-items: flex-end; }
.ai-mini-chat .m img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.ai-mini-chat .m span { padding: 7px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-grey); }
.ai-mini-chat .me { justify-content: flex-end; }
.ai-mini-chat .me span { background: var(--teal); color: #04222a; border: 0; font-weight: 600; }
.ai-mini-chat .chips { display: flex; gap: 6px; padding-left: 30px; }
.ai-mini-chat .chips em { font-style: normal; font-size: 11.5px; border: 1.5px solid var(--teal); border-radius: 14px; padding: 3px 9px; }
.ai-mini-wa { width: 76%; border-radius: 16px; overflow: hidden; background: #efeae2; box-shadow: 0 10px 30px rgba(0,0,0,.3); font: 12.5px/1.4 Inter, sans-serif; color: #111b21; padding-bottom: 8px; }
.ai-mini-wa .wa-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #075e54; color: #fff; font-size: 12.5px; }
.ai-mini-wa .wa-top img { width: 22px; height: 22px; border-radius: 50%; }
.ai-mini-wa .wa-b { margin: 8px 10px 4px; padding: 6px 9px; border-radius: 8px; background: #fff; max-width: 85%; }
.ai-mini-wa .wa-btn { margin: 3px 10px 0; padding: 6px; border-radius: 8px; background: #fff; color: #027eb5; font-weight: 600; text-align: center; max-width: 85%; }
.ai-vis-voice .ai-maya { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.ai-wave { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: center; height: 36px; padding: 0 14px; border-radius: 20px; background: rgba(8,13,23,.6); backdrop-filter: blur(6px); }
.ai-wave i { width: 4px; height: 10px; border-radius: 3px; background: var(--grad); animation: aiwave 1.1s ease-in-out infinite; }
.ai-wave i:nth-child(2) { animation-delay: .1s; } .ai-wave i:nth-child(3) { animation-delay: .2s; } .ai-wave i:nth-child(4) { animation-delay: .3s; }
.ai-wave i:nth-child(5) { animation-delay: .4s; } .ai-wave i:nth-child(6) { animation-delay: .5s; } .ai-wave i:nth-child(7) { animation-delay: .6s; }
@keyframes aiwave { 0%, 100% { height: 8px; } 50% { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .ai-wave i { animation: none; height: 16px; } }

.ai-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 4px 0 40px; }
.ai-funnel .f { position: relative; padding: 24px 22px 24px 30px; display: flex; flex-direction: column; gap: 6px; color: #fff; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); }
.ai-funnel .f:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); border-radius: 18px 0 0 18px; }
.ai-funnel .f:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); border-radius: 0 18px 18px 0; }
.ai-funnel .f1 { background: #0b3c49; } .ai-funnel .f2 { background: #128a9a; } .ai-funnel .f3 { background: #c4562e; } .ai-funnel .f4 { background: #f26b38; }
.ai-funnel b { font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; line-height: 1.1; }
.ai-funnel span { font-size: 14px; opacity: .92; line-height: 1.4; }
.ai-why .card h3 { margin: 12px 0 8px; }
.ai-why .icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(25,181,201,.14); color: var(--teal); }
.ai-why .icon svg { width: 24px; height: 24px; }
.ai-uplift { padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(25,181,201,.14), rgba(242,107,56,.14)); border: 1px solid var(--line-teal); display: flex; flex-direction: column; gap: 4px; }
.ai-uplift span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ai-uplift b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.ai-uplift small { font-size: 13.5px; color: var(--muted); }
.ai-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.ai-app { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.ai-app img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.ai-app h3 { margin-top: 6px; }
.ai-app .link-arrow { color: var(--teal); font-weight: 700; margin-top: auto; }
.ai-apps .section-foot { margin-top: 28px; text-align: center; }

@media (max-width: 1100px) {
  .ai-agents { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .ai-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ai-funnel .f, .ai-funnel .f:first-child, .ai-funnel .f:last-child { clip-path: none; border-radius: 16px; }
}
@media (max-width: 760px) {
  .ai-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-funnel { grid-template-columns: 1fr; }
}
.ai-agent-id { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.ai-agent-id img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--teal); box-shadow: 0 0 18px rgba(25,181,201,.35); background: #fff; }
.ai-agent-id .ai-face-maya { object-position: 66% 22%; transform: scale(1); }
.ai-agent.featured .ai-agent-id img { border-color: var(--orange); box-shadow: 0 0 18px rgba(242,107,56,.35); }
.ai-agent-id h3 { font-size: 28px; line-height: 1; margin: 0; }
.ai-agent-id .ai-agent-n { margin: 6px 0 0; }

/* ================= Home hero: AI ANN-style robot banner ================= */
.ann-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 70px); min-height: calc(100svh - var(--nav-h, 68px) - 50px); display: flex; align-items: center; background: var(--bg); }
.ann-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 32px; align-items: center; width: 100%; }
.ann-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.ann-h1 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: clamp(38px, 4.7vw, 70px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 34px; }
.ann-grad { display: block; background: linear-gradient(90deg, #19b5c9 0%, #3d8bfd 45%, #f26b38 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.ann-ask { display: flex; gap: 10px; align-items: stretch; max-width: 680px; }
.ann-ask input { flex: 1; min-width: 0; height: 60px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-grey); background: var(--surface); color: var(--text); font: 16px Inter, sans-serif; box-shadow: 0 10px 30px rgba(13,23,41,.08); }
.ann-ask input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25,181,201,.18); }
.ann-ask input::placeholder { color: var(--muted); }
.ann-go { flex: none; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer; font: 700 16px Inter, sans-serif; color: #fff; background: var(--grad); transition: transform .2s, box-shadow .2s; }
.ann-go:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(25,181,201,.45); }
.ann-mic { flex: none; width: 60px; border-radius: 12px; border: 1px solid var(--line-grey); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ann-mic svg { width: 24px; height: 24px; }
.ann-mic:hover { border-color: var(--teal); color: var(--teal); }
.ann-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.ann-tags a, .ann-tags button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid transparent; background: rgba(25,181,201,.1); color: var(--text); font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.ann-tags a:hover, .ann-tags button:hover { border-color: var(--teal); background: rgba(25,181,201,.18); }
.ann-tags img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 66% 22%; background: #fff; }
.ann-meta { margin: 0; font-size: 15px; color: var(--muted); }
.ann-meta b { color: var(--text); }

.ann-stage { position: relative; height: min(620px, 70vh); min-height: 460px; }
.ann-ring { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -48%); border-radius: 50%;
  background: radial-gradient(circle, rgba(25,181,201,.28) 0%, rgba(61,139,253,.14) 45%, transparent 70%); }
.ann-ring::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(25,181,201,.45); animation: annspin 40s linear infinite; }
.ann-robot { position: absolute; left: 50%; bottom: 4%; height: 86%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.28)); animation: annfloat 6s ease-in-out infinite; }
.ann-say { position: absolute; left: 6%; top: 10%; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--text); font-size: 15px; line-height: 1.35; box-shadow: 0 12px 30px rgba(0,0,0,.18); border: 1px solid var(--line-teal); animation: annpop .6s .6s both, annfloat 7s 1.2s ease-in-out infinite; }
.ann-tile { position: absolute; border-radius: 25%; overflow: hidden; background: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.7); animation: annfloat 7s ease-in-out infinite; }
.ann-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ann-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0 4px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.ann-tile.t1 { width: 104px; height: 104px; right: 2%; top: 6%; animation-delay: -1s; }
.ann-tile.t1 img { object-position: 66% 22%; transform: scale(1.6); transform-origin: 66% 30%; }
.ann-tile.t2 { width: 70px; height: 70px; right: 0; top: 46%; animation-delay: -3s; }
.ann-tile.t3 { width: 58px; height: 58px; left: 6%; top: 52%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; animation-delay: -2s; }
.ann-tile.t3 svg { width: 34px; height: 34px; }
.ann-tile.t4 { width: 66px; height: 66px; left: 0; top: 27%; background: linear-gradient(135deg, #0b3c49, #19b5c9); animation-delay: -4s; }
.ann-tile.t4 img { object-fit: contain; padding: 4px; }
.ann-tile.t5 { width: 74px; height: 44px; left: 10%; bottom: 14%; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--surface); animation-delay: -5s; }
.ann-tile.t5 i { width: 4px; height: 10px; border-radius: 3px; background: var(--grad); animation: aiwave 1.1s ease-in-out infinite; }
.ann-tile.t5 i:nth-child(2) { animation-delay: .15s; } .ann-tile.t5 i:nth-child(3) { animation-delay: .3s; } .ann-tile.t5 i:nth-child(4) { animation-delay: .45s; } .ann-tile.t5 i:nth-child(5) { animation-delay: .6s; }
.ann-tile.t6 { right: 4%; bottom: 10%; width: auto; height: auto; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 5px; animation-delay: -2.5s; }
.ann-tile.t6 span { position: static; background: none; color: #027eb5; font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(2,126,181,.25); background: #fff; }
.ann-matrix { position: absolute; z-index: 1; right: 0; top: 0; width: 60%; height: 100%; display: flex; flex-direction: column; justify-content: space-around; overflow: hidden; pointer-events: none;
  font: 15px/1.2 'SFMono-Regular', Menlo, Consolas, monospace; color: var(--text); opacity: .07; white-space: pre;
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at 55% 45%, #000 20%, transparent 72%); }
.ann-matrix span { display: block; animation: anndrift 38s linear infinite; }
.ann-matrix span:nth-child(odd) { animation-direction: reverse; animation-duration: 46s; }
.ann-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.ann-glow.g1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(25,181,201,.55), transparent 65%); }
.ann-glow.g2 { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(242,107,56,.38), transparent 65%); }
:root[data-theme="light"] .ann-hero { background: #f2f8fd; }
:root[data-theme="light"] .ann-glow { opacity: .35; }
@keyframes annfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes annspin { to { transform: rotate(360deg); } }
@keyframes annpop { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes anndrift { from { transform: translateX(0); } to { transform: translateX(-140px); } }
@media (prefers-reduced-motion: reduce) { .ann-robot, .ann-say, .ann-tile, .ann-matrix span, .ann-ring::after { animation: none !important; } }

/* Word-by-word reveal statement (lights up as you scroll) */
.ai-reveal { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: clamp(28px, 3.6vw, 52px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; max-width: 1050px; margin: 14px auto 40px; }
.ai-reveal .w { opacity: .16; transition: opacity .35s ease; }
.ai-reveal .w.on { opacity: 1; }
.ai-reveal .w.hl { color: #fff; } /* site.css .hl: gradient box sweeps in behind the word (AI ANN 'Future' style) */

@media (max-width: 960px) {
  .ann-grid { grid-template-columns: 1fr; }
  .ann-stage { height: 440px; min-height: 0; max-width: 520px; margin: 0 auto; width: 100%; }
  .ann-matrix { width: 100%; opacity: .05; }
}
@media (max-width: 600px) {
  .ann-ask { flex-wrap: wrap; }
  .ann-ask input { flex: 1 1 100%; height: 54px; }
  .ann-go { flex: 1; height: 50px; }
  .ann-mic { width: 54px; height: 50px; }
  .ann-stage { height: 380px; }
  .ann-tile.t1 { width: 78px; height: 78px; } .ann-tile.t6 { display: none; }
  .ann-say { font-size: 13.5px; top: 4%; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* "What's new: Meet your smart AI Sales Agents" (AI ANN section heading style) */
.ann-new { overflow: hidden; background: radial-gradient(ellipse at 100% 100%, rgba(31,174,91,.16), transparent 45%), radial-gradient(ellipse at 0% 0%, rgba(25,181,201,.12), transparent 50%), var(--surface-alt); }
:root[data-theme="light"] .ann-new { background: radial-gradient(ellipse at 100% 100%, #c9ebc4 0%, transparent 42%), linear-gradient(135deg, #e6f1f6 0%, #e9f3f2 60%, #e3f2e8 100%); }
.ann-new-eyebrow { margin: 0 0 22px; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ann-new-title { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-size: clamp(44px, 6.4vw, 96px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 22px; color: var(--text); }
.ann-new .lead-p { margin: 0 0 48px; }

/* /talk-to-ava/ hero: Ava robot next to the live chat, with callout tags */
.ava-hero .rio-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 740px); gap: 36px; }
.ava-stage { display: grid; grid-template-columns: 280px 420px; column-gap: 40px; align-items: center; position: relative; }
.ava-figure { position: relative; margin: 0; height: 560px; z-index: 1; }
.ava-halo { position: absolute; left: 50%; top: 52%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(25,181,201,.35), rgba(242,107,56,.12) 55%, transparent 72%); }
.ava-halo::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1.5px dashed rgba(25,181,201,.45); animation: annspin 36s linear infinite; }
.ava-bot { position: absolute; left: 50%; bottom: 40px; height: 380px; width: auto; transform: translateX(-50%); filter: drop-shadow(0 26px 30px rgba(0,0,0,.28)); animation: annfloat 6s ease-in-out infinite; }
.ava-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; white-space: nowrap;
  background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; border: 1px solid var(--line-teal); box-shadow: 0 10px 26px rgba(0,0,0,.18); animation: annpop .6s both; }
.ava-tag b { color: var(--teal); }
.ava-tag i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s ease-in-out infinite; }
.ava-tag.tag-a { left: 6px; top: 6px; animation-delay: .3s; }
.ava-tag.tag-b { left: -6px; bottom: 98px; animation-delay: .7s; }
.ava-tag.tag-b i { background: var(--orange); box-shadow: 0 0 0 4px rgba(242,107,56,.2); }
.ava-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.ava-lines path { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; }
.ava-lines .lb { stroke: var(--orange); }
.ava-stage #rio-chat { position: relative; z-index: 2; }
@media (max-width: 1250px) {
  .ava-hero .rio-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .ava-stage { grid-template-columns: 1fr; }
  .ava-figure { margin: 0 0 -60px; height: 330px; }
  .ava-bot { height: 270px; bottom: 50px; }
  .ava-halo { width: 220px; height: 220px; }
  .ava-tag.tag-a { left: 2%; top: 14px; }
  .ava-tag.tag-b { left: auto; right: 2%; bottom: auto; top: 150px; }
  .ava-lines { display: none; }
}
@media (max-width: 900px) { .ava-hero .rio-hero-grid { grid-template-columns: 1fr; } .ava-stage { max-width: 480px; margin: 0 auto; width: 100%; } }
@media (max-width: 520px) { .ava-tag { font-size: 12px; padding: 6px 10px; } }
.ava-hero h1 { font-size: clamp(34px, 3.5vw, 52px); }

/* Grid columns must never grow wider than the screen (mobile audit: Ava's chat pushed the page 16px sideways after a tap) */
.rio-hero-grid > *, .ann-grid > *, .ava-stage > *, .rio-calc > *, .wa-duo-grid > * { min-width: 0; }
.ava-stage, #rio-chat, .rio, .rio-panel { min-width: 0; max-width: 100%; }
.rio-opts .rio-pill { max-width: 100%; }
/* the rotating dashed ring behind Ava sweeps its square corners outward: keep it inside on phones/tablets */
@media (max-width: 1250px) { .ava-figure { overflow: hidden; } }
