/* RetellVoiceTCO — ARCH-04 Editorial FinOps Research */
:root {
  --rvt-bg: #fbfaf8;
  --rvt-surface: #ffffff;
  --rvt-surface-alt: #f4f1ea;
  --rvt-ink: #1c1917;
  --rvt-muted: #57534e;
  --rvt-accent: #b91c1c;
  --rvt-accent-dark: #991b1b;
  --rvt-accent-soft: #fee2e2;
  --rvt-border: #e7e0d6;
  --rvt-ok: #15803d;
  --rvt-ok-soft: #dcfce7;
  --rvt-warn: #b45309;
  --rvt-blue: #1d4ed8;
  --rvt-serif: Georgia, 'Times New Roman', serif;
  --rvt-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --rvt-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--rvt-bg); color: var(--rvt-ink);
  font-family: var(--rvt-sans); font-size: 16px; line-height: 1.65;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: var(--rvt-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rvt-accent-dark); }
img, svg { max-width: 100%; height: auto; display: block; }
.rvt-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--rvt-accent); color: #ffffff;
  padding: 0.55rem 1rem; font-weight: 700; z-index: 100;
}
.rvt-skip:focus { left: 0.75rem; top: 0.75rem; }
.rvt-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 1.25rem; }

.rvt-edition-bar {
  background: var(--rvt-ink); color: #fbfaf8;
  border-bottom: 2px solid var(--rvt-accent);
  padding: 0.42rem 0; font-family: var(--rvt-mono); font-size: 0.75rem; letter-spacing: 0.03em;
}
.rvt-edition-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem;
}
.rvt-badge-live {
  display: inline-block; background: var(--rvt-accent); color: #ffffff;
  padding: 0.08rem 0.45rem; border-radius: 3px; font-weight: 800; margin-right: 0.4rem;
}

.rvt-header { background: var(--rvt-surface); border-bottom: 1.5px solid var(--rvt-border); }
.rvt-header-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 1.25rem; padding: 0.9rem 0;
}
.rvt-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--rvt-ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.rvt-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; border-radius: 6px;
  background: var(--rvt-accent-soft); color: var(--rvt-accent);
  border: 1.5px solid var(--rvt-accent);
  font-family: var(--rvt-mono); font-size: 0.86rem; font-weight: 800;
}
.rvt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; }
.rvt-nav a {
  color: var(--rvt-muted); text-decoration: none; font-size: 0.91rem;
  font-weight: 600; padding: 0.3rem 0.58rem; border-radius: 6px;
}
.rvt-nav a[aria-current="page"], .rvt-nav a:hover {
  color: var(--rvt-accent); background: var(--rvt-accent-soft);
}
.rvt-disclosure-bar {
  background: var(--rvt-surface-alt); border-top: 1px solid var(--rvt-border);
  padding: 0.38rem 1.25rem; font-size: 0.79rem; color: var(--rvt-muted); text-align: center;
}

.rvt-main { padding: 1.7rem 0 5.5rem; }
.rvt-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.84rem; color: var(--rvt-muted); margin-bottom: 1rem;
}
.rvt-hero {
  background: var(--rvt-surface); border: 1px solid var(--rvt-border);
  border-top: 4px solid var(--rvt-accent); border-radius: 10px;
  padding: 1.45rem 1.55rem; margin-bottom: 1.35rem;
}
.rvt-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  font-family: var(--rvt-mono); font-size: 0.75rem; font-weight: 700;
  color: var(--rvt-accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.55rem;
}
.rvt-eyebrow time {
  color: var(--rvt-muted); padding: 0.1rem 0.55rem;
  border: 1px solid var(--rvt-border); border-radius: 999px; background: var(--rvt-bg);
}
h1 {
  font-family: var(--rvt-serif); font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.65rem; color: var(--rvt-ink);
}
h2 {
  font-family: var(--rvt-serif); font-size: clamp(1.24rem, 2.1vw, 1.55rem); line-height: 1.28;
  margin: 1.75rem 0 0.75rem; color: var(--rvt-ink);
  border-left: 3.5px solid var(--rvt-accent); padding-left: 0.72rem;
}
h3 { font-size: 1.06rem; line-height: 1.35; margin: 1.05rem 0 0.4rem; color: var(--rvt-ink); }
.rvt-lead { font-size: 1.03rem; color: var(--rvt-muted); margin: 0; }
.rvt-muted { color: var(--rvt-muted); }
.rvt-mono { font-family: var(--rvt-mono); }

.rvt-deal-banner {
  background: var(--rvt-surface); border: 1.5px solid var(--rvt-border);
  border-radius: 10px; padding: 1.15rem 1.25rem; margin-bottom: 1.4rem;
}
.rvt-deal-banner-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.5rem; margin-bottom: 0.75rem;
}
.rvt-deal-banner-head h2 { margin: 0; border-left: none; padding-left: 0; font-size: 1.18rem; }
.rvt-deal-pill {
  font-family: var(--rvt-mono); font-size: 0.74rem; font-weight: 700;
  background: var(--rvt-accent-soft); color: var(--rvt-accent);
  padding: 0.18rem 0.55rem; border-radius: 999px;
}

.rvt-ledger-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.35rem; align-items: start;
}
@media (min-width: 980px) {
  .rvt-ledger-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.rvt-panel {
  background: var(--rvt-surface); border: 1.5px solid var(--rvt-border);
  border-radius: 10px; padding: 1.3rem;
}
.rvt-panel-accent { border-color: var(--rvt-accent); box-shadow: 0 6px 22px rgba(28, 25, 23, 0.05); }
.rvt-panel-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem; padding-bottom: 0.65rem; margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--rvt-border);
  font-family: var(--rvt-mono); font-size: 0.77rem; font-weight: 700; color: var(--rvt-accent);
}
.rvt-panel h2 { margin-top: 0; font-size: 1.25rem; }

.rvt-preset-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.95rem; }
.rvt-preset-btn, .rvt-tab-btn, .rvt-copy-btn {
  background: var(--rvt-surface-alt); color: var(--rvt-ink);
  border: 1px solid var(--rvt-border); border-radius: 6px;
  padding: 0.4rem 0.72rem; font-family: var(--rvt-sans);
  font-size: 0.81rem; font-weight: 600; cursor: pointer;
}
.rvt-preset-btn[aria-pressed="true"], .rvt-tab-btn[aria-pressed="true"],
.rvt-preset-btn:hover, .rvt-tab-btn:hover, .rvt-copy-btn:hover {
  background: var(--rvt-accent); border-color: var(--rvt-accent); color: #ffffff;
}

.rvt-controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.75rem 0.9rem; margin-bottom: 0.95rem;
}
.rvt-field label {
  display: block; font-size: 0.8rem; font-weight: 700; color: var(--rvt-ink); margin-bottom: 0.24rem;
}
.rvt-field input, .rvt-field select {
  width: 100%; background: var(--rvt-bg); color: var(--rvt-ink);
  border: 1px solid var(--rvt-border); border-radius: 6px;
  padding: 0.48rem 0.62rem; font-family: var(--rvt-mono); font-size: 0.87rem;
}

.rvt-kpi-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem; margin: 0.95rem 0;
}
.rvt-kpi {
  background: var(--rvt-surface-alt); border: 1px solid var(--rvt-border);
  border-radius: 8px; padding: 0.72rem 0.85rem;
}
.rvt-kpi dt {
  font-size: 0.72rem; color: var(--rvt-muted); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 700;
}
.rvt-kpi dd {
  margin: 0.2rem 0 0; font-family: var(--rvt-mono); font-size: 1rem;
  font-weight: 800; color: var(--rvt-accent);
}
.rvt-kpi-save dd { color: var(--rvt-ok); }

.rvt-stack-box {
  background: var(--rvt-bg); border: 1px solid var(--rvt-border);
  border-radius: 8px; padding: 0.82rem 0.95rem; margin: 0.9rem 0;
}
.rvt-stack-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 0.4rem; font-size: 0.82rem; margin-bottom: 0.45rem;
}
.rvt-stack-bar {
  display: flex; width: 100%; height: 18px; border-radius: 5px;
  overflow: hidden; background: var(--rvt-surface-alt); border: 1px solid var(--rvt-border);
}
.rvt-seg { height: 100%; }
.rvt-seg-tts { background: var(--rvt-accent); }
.rvt-seg-stt { background: var(--rvt-blue); }
.rvt-seg-llm { background: var(--rvt-warn); }
.rvt-seg-infra { background: var(--rvt-ok); }
.rvt-seg-headroom { background: #d6cfc4; }
.rvt-stack-legend {
  display: flex; flex-wrap: wrap; gap: 0.48rem 0.9rem;
  margin-top: 0.55rem; font-size: 0.75rem; color: var(--rvt-muted);
}
.rvt-leg-item { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--rvt-mono); }
.rvt-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.rvt-table-wrap {
  overflow-x: auto; margin: 0.95rem 0;
  border: 1px solid var(--rvt-border); border-radius: 8px; background: var(--rvt-surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td {
  padding: 0.58rem 0.75rem; border-bottom: 1px solid var(--rvt-border);
  text-align: left; vertical-align: top;
}
th {
  background: var(--rvt-surface-alt); color: var(--rvt-ink);
  font-family: var(--rvt-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }

pre {
  background: #1c1917; border: 1px solid #44403c; border-radius: 7px;
  padding: 0.85rem; overflow-x: auto; font-family: var(--rvt-mono);
  font-size: 0.79rem; color: #fbfaf8; line-height: 1.5; margin: 0;
}
code { font-family: var(--rvt-mono); font-size: 0.88em; color: var(--rvt-accent-dark); }
pre code { color: #fbfaf8; }

.rvt-code-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.rvt-cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.rvt-btn-primary, .rvt-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.62rem 1.05rem; border-radius: 7px; font-weight: 700;
  font-size: 0.89rem; text-decoration: none;
}
.rvt-btn-primary {
  background: var(--rvt-accent); color: #ffffff; border: 1px solid var(--rvt-accent);
}
.rvt-btn-primary:hover { background: var(--rvt-accent-dark); color: #ffffff; }
.rvt-btn-secondary {
  background: var(--rvt-surface); color: var(--rvt-accent); border: 1px solid var(--rvt-accent);
}
.rvt-btn-secondary:hover { background: var(--rvt-accent-soft); color: var(--rvt-ink); }
.rvt-table-cta {
  display: inline-block; background: var(--rvt-accent); color: #ffffff;
  text-decoration: none; padding: 0.3rem 0.65rem; border-radius: 5px;
  font-size: 0.79rem; font-weight: 700; white-space: nowrap;
}
.rvt-table-cta:hover { background: var(--rvt-accent-dark); color: #ffffff; }

.rvt-figure {
  margin: 1.25rem 0; background: var(--rvt-surface);
  border: 1px solid var(--rvt-border); border-radius: 10px; padding: 0.9rem;
}
.rvt-figure figcaption { margin-top: 0.55rem; font-size: 0.83rem; color: var(--rvt-muted); }

.rvt-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 1rem 0;
}
.rvt-card {
  background: var(--rvt-surface); border: 1px solid var(--rvt-border);
  border-radius: 9px; padding: 1.05rem 1.15rem;
}
.rvt-card-meta {
  font-family: var(--rvt-mono); font-size: 0.73rem; font-weight: 700;
  color: var(--rvt-accent); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.rvt-card h3 { margin-top: 0; }
.rvt-callout {
  background: var(--rvt-accent-soft); border: 1px solid #fca5a5;
  border-left: 4px solid var(--rvt-accent); border-radius: 8px;
  padding: 0.95rem 1.1rem; margin: 1.15rem 0;
}
.rvt-faq-item {
  background: var(--rvt-surface); border: 1px solid var(--rvt-border);
  border-radius: 8px; padding: 0.95rem 1.1rem; margin-bottom: 0.75rem;
}
.rvt-faq-item h3 { margin-top: 0; }
.rvt-tab-panel[hidden] { display: none; }

.rvt-footer {
  border-top: 2px solid var(--rvt-ink); background: var(--rvt-surface);
  padding: 2rem 0 5.2rem; font-size: 0.87rem; color: var(--rvt-muted);
}
.rvt-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.rvt-footer-links { list-style: none; padding: 0; margin: 0.45rem 0 0; }
.rvt-footer-links li { margin-bottom: 0.35rem; }
.rvt-footer-links a { color: var(--rvt-muted); text-decoration: none; }
.rvt-footer-links a:hover { color: var(--rvt-accent); }

.mob-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.62rem 1.15rem; background: var(--rvt-surface);
  border-top: 2px solid var(--rvt-accent);
  box-shadow: 0 -4px 16px rgba(28, 25, 23, 0.08);
}
.mob-sticky-text { font-size: 0.84rem; font-weight: 700; color: var(--rvt-ink); }
.mob-sticky-cta {
  background: var(--rvt-accent); color: #ffffff; text-decoration: none;
  padding: 0.44rem 0.92rem; border-radius: 6px; font-weight: 700;
  font-size: 0.83rem; white-space: nowrap;
}
.mob-sticky-cta:hover { background: var(--rvt-accent-dark); color: #ffffff; }
@media (min-width: 980px) { .mob-sticky { padding: 0.62rem 2rem; } }
.rvt-w-0 { width: 0%; }
.rvt-w-1 { width: 1%; }
.rvt-w-2 { width: 2%; }
.rvt-w-3 { width: 3%; }
.rvt-w-4 { width: 4%; }
.rvt-w-5 { width: 5%; }
.rvt-w-6 { width: 6%; }
.rvt-w-7 { width: 7%; }
.rvt-w-8 { width: 8%; }
.rvt-w-9 { width: 9%; }
.rvt-w-10 { width: 10%; }
.rvt-w-11 { width: 11%; }
.rvt-w-12 { width: 12%; }
.rvt-w-13 { width: 13%; }
.rvt-w-14 { width: 14%; }
.rvt-w-15 { width: 15%; }
.rvt-w-16 { width: 16%; }
.rvt-w-17 { width: 17%; }
.rvt-w-18 { width: 18%; }
.rvt-w-19 { width: 19%; }
.rvt-w-20 { width: 20%; }
.rvt-w-21 { width: 21%; }
.rvt-w-22 { width: 22%; }
.rvt-w-23 { width: 23%; }
.rvt-w-24 { width: 24%; }
.rvt-w-25 { width: 25%; }
.rvt-w-26 { width: 26%; }
.rvt-w-27 { width: 27%; }
.rvt-w-28 { width: 28%; }
.rvt-w-29 { width: 29%; }
.rvt-w-30 { width: 30%; }
.rvt-w-31 { width: 31%; }
.rvt-w-32 { width: 32%; }
.rvt-w-33 { width: 33%; }
.rvt-w-34 { width: 34%; }
.rvt-w-35 { width: 35%; }
.rvt-w-36 { width: 36%; }
.rvt-w-37 { width: 37%; }
.rvt-w-38 { width: 38%; }
.rvt-w-39 { width: 39%; }
.rvt-w-40 { width: 40%; }
.rvt-w-41 { width: 41%; }
.rvt-w-42 { width: 42%; }
.rvt-w-43 { width: 43%; }
.rvt-w-44 { width: 44%; }
.rvt-w-45 { width: 45%; }
.rvt-w-46 { width: 46%; }
.rvt-w-47 { width: 47%; }
.rvt-w-48 { width: 48%; }
.rvt-w-49 { width: 49%; }
.rvt-w-50 { width: 50%; }
.rvt-w-51 { width: 51%; }
.rvt-w-52 { width: 52%; }
.rvt-w-53 { width: 53%; }
.rvt-w-54 { width: 54%; }
.rvt-w-55 { width: 55%; }
.rvt-w-56 { width: 56%; }
.rvt-w-57 { width: 57%; }
.rvt-w-58 { width: 58%; }
.rvt-w-59 { width: 59%; }
.rvt-w-60 { width: 60%; }
.rvt-w-61 { width: 61%; }
.rvt-w-62 { width: 62%; }
.rvt-w-63 { width: 63%; }
.rvt-w-64 { width: 64%; }
.rvt-w-65 { width: 65%; }
.rvt-w-66 { width: 66%; }
.rvt-w-67 { width: 67%; }
.rvt-w-68 { width: 68%; }
.rvt-w-69 { width: 69%; }
.rvt-w-70 { width: 70%; }
.rvt-w-71 { width: 71%; }
.rvt-w-72 { width: 72%; }
.rvt-w-73 { width: 73%; }
.rvt-w-74 { width: 74%; }
.rvt-w-75 { width: 75%; }
.rvt-w-76 { width: 76%; }
.rvt-w-77 { width: 77%; }
.rvt-w-78 { width: 78%; }
.rvt-w-79 { width: 79%; }
.rvt-w-80 { width: 80%; }
.rvt-w-81 { width: 81%; }
.rvt-w-82 { width: 82%; }
.rvt-w-83 { width: 83%; }
.rvt-w-84 { width: 84%; }
.rvt-w-85 { width: 85%; }
.rvt-w-86 { width: 86%; }
.rvt-w-87 { width: 87%; }
.rvt-w-88 { width: 88%; }
.rvt-w-89 { width: 89%; }
.rvt-w-90 { width: 90%; }
.rvt-w-91 { width: 91%; }
.rvt-w-92 { width: 92%; }
.rvt-w-93 { width: 93%; }
.rvt-w-94 { width: 94%; }
.rvt-w-95 { width: 95%; }
.rvt-w-96 { width: 96%; }
.rvt-w-97 { width: 97%; }
.rvt-w-98 { width: 98%; }
.rvt-w-99 { width: 99%; }
.rvt-w-100 { width: 100%; }
