/* ============================================================
   Tel-IQ homepage revamp — loaded AFTER style.css
   Brand tokens unchanged: blue = identity, orange = CTA only.
   Dials: VARIANCE 7 / MOTION 5 / DENSITY 4
   ============================================================ */

:root {
  --rv-gap:      clamp(64px, 8vw, 128px);
  --rv-hair:     rgba(255,255,255,.08);
  --rv-surface:  #202024;
  --rv-surface2: #1e1e22;
}

.rv { padding: var(--rv-gap) 0; }
.rv-hair-top { border-top: 1px solid var(--rv-hair); }

/* ---------- 1. HERO — asymmetric split, left-weighted ---------- */
.rv-hero {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.rv-hero::before {                       /* ambient depth, not a flat gradient */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 84% -18%, rgba(34,113,197,.22), transparent 62%),
    radial-gradient(760px 520px at -12% 116%, rgba(245,146,30,.07), transparent 64%);
}
.rv-hero .container { position: relative; z-index: 1; }
.rv-hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: clamp(34px, 5vw, 76px); align-items: center;
}
.rv-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -2px;
  text-wrap: balance; margin-bottom: 20px;
}
.rv-hero h1 .lo { display: block; color: var(--brand); }
.rv-hero .lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--muted); max-width: 46ch; margin-bottom: 32px;
}
.rv-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* answer card — real content, not a mock product screenshot */
.rv-answer {
  background: var(--rv-surface);
  border: 1px solid var(--rv-hair);
  border-radius: 16px; padding: 26px 26px 24px;
  box-shadow: 0 26px 70px rgba(8,10,16,.5);
}
.rv-answer .q, .rv-answer .a { display: grid; grid-template-columns: 26px 1fr; gap: 13px; }
.rv-answer .q { padding-bottom: 18px; border-bottom: 1px solid var(--rv-hair); }
.rv-answer .a { padding-top: 18px; }
.rv-tag {
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .5px;
}
.rv-tag.is-q { background: rgba(255,255,255,.09); color: #d6d6dd; }
.rv-tag.is-a { background: rgba(34,113,197,.20); color: #6cb0f2; }
.rv-answer p { font-size: .935rem; line-height: 1.62; color: #d4d4db; }
.rv-answer .a p { color: var(--muted); }
.rv-answer strong { color: #fff; font-weight: 600; }
.rv-cite {
  margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--rv-hair);
  font-size: .76rem; color: #85858f; letter-spacing: .2px;
}

/* ---------- 2. DOMAIN MARQUEE — breadth without a list ---------- */
.rv-strip {
  border-top: 1px solid var(--rv-hair); border-bottom: 1px solid var(--rv-hair);
  background: var(--bg-2); padding: 19px 0; overflow: hidden;
}
.rv-track { display: flex; gap: 12px; width: max-content; animation: rv-scroll 46s linear infinite; }
.rv-chip {
  border: 1px solid var(--rv-hair); border-radius: 7px;
  padding: 8px 15px; font-size: .83rem; color: #c2c2ca; white-space: nowrap;
}
.rv-chip b { color: var(--brand); font-weight: 600; }
@keyframes rv-scroll { to { transform: translateX(-50%); } }
.rv-strip:hover .rv-track { animation-play-state: paused; }

/* ---------- 3. BENTO — 1 large + 2 stacked. 3 items, 3 cells ---------- */
.rv-bento { display: grid; grid-template-columns: 1.32fr 1fr; gap: 18px; }
.rv-cell {
  background: var(--rv-surface2); border: 1px solid var(--rv-hair);
  border-radius: 16px; padding: 30px;
}
.rv-cell.is-lead {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(620px 300px at 108% -22%, rgba(34,113,197,.17), transparent 66%),
    var(--rv-surface2);
}
.rv-cell h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 10px; }
.rv-cell.is-lead h3 { font-size: 1.5rem; letter-spacing: -.5px; }
.rv-cell p { color: var(--muted); font-size: .93rem; line-height: 1.62; }
.rv-figure {
  margin-top: 26px; border-top: 1px solid var(--rv-hair); padding-top: 20px;
  display: flex; align-items: baseline; gap: 11px;
}
.rv-figure b {
  font-size: 2.5rem; font-weight: 800; color: #fff;
  letter-spacing: -1.5px; font-variant-numeric: tabular-nums;
}
.rv-figure span { color: #85858f; font-size: .82rem; }

/* ---------- 4. TIMELINE — numbered left rail, not cards ---------- */
.rv-steps { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(30px,5vw,70px); }
.rv-step { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--rv-hair); }
.rv-step:last-child { border-bottom: 1px solid var(--rv-hair); }
.rv-num {
  font-size: .82rem; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
.rv-step h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: 6px; }
.rv-step p { color: var(--muted); font-size: .91rem; line-height: 1.6; }
.rv-sticky { position: sticky; top: 108px; align-self: start; }

/* ---------- 5. AUDIENCE — typographic 2x2, hairlines not cards ---------- */
.rv-who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px,5vw,64px); }
.rv-who > div { padding: 26px 0; border-top: 1px solid var(--rv-hair); }
.rv-who h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 7px; }
.rv-who p { color: var(--muted); font-size: .91rem; line-height: 1.6; }

/* ---------- shared section header, left-aligned (anti-center bias) ---------- */
.rv-head { max-width: 40ch; margin-bottom: clamp(34px, 4vw, 52px); }
.rv-head h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem); font-weight: 700;
  letter-spacing: -1.1px; line-height: 1.1; text-wrap: balance; margin-bottom: 12px;
}
.rv-head p { color: var(--muted); font-size: 1rem; line-height: 1.62; }

/* ---------- motion: entry only, transform + opacity ---------- */
/* FAILSAFE: visible by default. Only the current main.js adds html.rv-js, so a
   stale cached main.js can never leave the page blank. */
.rv-in { opacity: 1; transform: none; }
html.rv-js .rv-in { opacity: 0; transform: translateY(18px); transition: opacity .62s cubic-bezier(.16,1,.3,1), transform .62s cubic-bezier(.16,1,.3,1); }
html.rv-js .rv-in.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .rv-hero-grid, .rv-bento, .rv-steps, .rv-who { grid-template-columns: 1fr; }
  .rv-cell.is-lead { grid-row: auto; }
  .rv-sticky { position: static; }
  .rv-hero h1 { font-size: clamp(2.2rem, 8.4vw, 3rem); }
  .rv-who > div:first-child + div { border-top: 1px solid var(--rv-hair); }
}

@media (prefers-reduced-motion: reduce) {
  .rv-track { animation: none; }
  html.rv-js .rv-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* left rail needs weight of its own, otherwise the column reads as empty */
.rv-railcta { margin-top: 22px; }
@media (max-width: 900px) { .rv-railcta { margin-bottom: 8px; } }

/* ---------- Televerse additions ---------- */
/* hero-side service index: real navigation, not decoration */
.rv-index { background: var(--rv-surface); border: 1px solid var(--rv-hair); border-radius: 16px; padding: 10px 8px;
            box-shadow: 0 26px 70px rgba(8,10,16,.5); }
.rv-index a { display: flex; justify-content: space-between; align-items: center; gap: 16px;
              padding: 13px 16px; border-radius: 10px; transition: background .2s ease, color .2s ease; }
.rv-index a + a { border-top: 1px solid var(--rv-hair); }
.rv-index a:hover { background: rgba(255,255,255,.05); }
.rv-index .nm { font-size: .95rem; font-weight: 500; }
.rv-index .go { color: var(--brand); font-size: 1rem; transition: transform .2s ease; }
.rv-index a:hover .go { transform: translateX(3px); }

/* 6-item asymmetric service grid: 2 lead + 4 supporting. Six items, six cells */
.rv-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rv-svc > .rv-cell:nth-child(1),
.rv-svc > .rv-cell:nth-child(2) { grid-column: span 2; }
.rv-svc .rv-more { display: inline-block; margin-top: 14px; color: var(--brand); font-size: .87rem; font-weight: 500; }
.rv-svc .rv-more:hover { text-decoration: underline; }
.rv-cell ul { margin-top: 12px; }
.rv-cell ul li { color: var(--muted); font-size: .875rem; line-height: 1.75; padding-left: 15px; position: relative; }
.rv-cell ul li::before { content: ''; position: absolute; left: 0; top: .68em;
                         width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .65; }
@media (max-width: 1000px) { .rv-svc { grid-template-columns: repeat(2, 1fr); }
  .rv-svc > .rv-cell:nth-child(1), .rv-svc > .rv-cell:nth-child(2) { grid-column: span 2; } }
@media (max-width: 640px)  { .rv-svc { grid-template-columns: 1fr; }
  .rv-svc > .rv-cell:nth-child(1), .rv-svc > .rv-cell:nth-child(2) { grid-column: auto; } }

/* three-up typographic row, hairlines instead of cards */
.rv-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px,4.5vw,60px); }
.rv-three > div { padding: 26px 0; border-top: 1px solid var(--rv-hair); }
.rv-three h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 7px; }
.rv-three p { color: var(--muted); font-size: .91rem; line-height: 1.6; }
@media (max-width: 860px) { .rv-three { grid-template-columns: 1fr; } }

/* ---------- base classes televerse lacked (teliq has these in style.css) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cta); color: #1a1a1a; font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.pill {
  display: inline-block; background: rgba(34,113,197,.16); color: var(--brand);
  border: 1px solid rgba(34,113,197,.30); border-radius: 999px;
  padding: 6px 15px; font-size: .74rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 22px;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}
.btn:active, .btn-outline:active { transform: translateY(1px) scale(.995); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
