/* ============================================================
   VERTEX DIGITAL — standalone page theme (rate-card.html only)
   Loaded INSTEAD OF theme-cyber.css, after style.css. The rest of the
   site stays on the dark navy "cyberpunk" theme; this page intentionally
   breaks from that with its own identity: dark red, black and white,
   light sections with dark ink text rather than the glowing neon-on-navy
   look used elsewhere. Shared header/footer chrome is left untouched
   (both are hardcoded dark in style.css itself, not theme-dependent) so
   site navigation still reads as one site.
   Palette is picked for contrast first: the accent red is only ever used
   as a dark tone on white/light backgrounds, or as a lighter tone on
   black backgrounds — never a mid-tone red on a similarly dark backdrop,
   which was the contrast problem with the previous teal version. ---- */

:root{
  --vd-red:#8f1d1d;          /* primary dark-red accent, used on light backgrounds */
  --vd-red-hover:#711616;
  --vd-red-bright:#f3726e;   /* light red accent, used on black backgrounds */
  --vd-red-mid:#c23b3b;      /* secondary red, used on black backgrounds */
  --vd-text-dark:#141111;    /* near-black ink — headings and primary text on white */
  --vd-text-muted:#4b4040;   /* muted warm dark-gray — secondary text on light bg */
  --vd-bg-light:#ffffff;     /* page / light-section background — plain white */
  --vd-bg-tint:#f6f1f0;      /* barely-off-white, for alternating light sections */
  --vd-bg-dark:#171010;      /* near-black section background */
  --vd-bg-deep:#0a0707;      /* deepest, almost pure black section */
  --vd-bg-card-dark:#261616; /* card surface sitting on a black section */
  --vd-on-dark-text:#e9dede; /* muted off-white text, used on black backgrounds */
}

body{ background:var(--vd-bg-light); color:var(--vd-text-dark); }
h1,h2,h3,h4{ color:var(--vd-text-dark); }

/* ---------- Shared nav: match every other page ----------
   The comment above says shared header/footer chrome stays untouched
   "so site navigation still reads as one site" — but that was only ever
   true for structure, not style: .btn-primary below is a generic rule
   that also happens to catch the nav's "Talk To Us" button, turning it
   red, and theme-cyber.css's uppercase/monospace nav-link type and
   notched button shape never load on this page at all since this file
   replaces theme-cyber.css rather than layering on top of it. Re-apply
   both here, scoped to the nav only, so the header looks identical to
   every other page while the rest of this page keeps its own red/black/
   white identity. */
.nav-links a{
  font-family:'Space Mono','Courier New',monospace;
  text-transform:uppercase;
  font-size:.76rem;
  letter-spacing:.06em;
}
.nav-cta .btn{
  background:var(--teal-500);
  color:#04211f;
  border-radius:2px;
  clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
  box-shadow:0 0 0 1px rgba(23,195,189,.35), 0 10px 26px -10px rgba(23,195,189,.6);
}
.nav-cta .btn:hover{
  background:var(--teal-400);
  box-shadow:0 0 0 1px rgba(23,195,189,.6), 0 0 26px rgba(23,195,189,.6), 0 0 52px rgba(23,195,189,.35);
}

/* ---------- Hero ---------- */
.rc-hero{
  background:
    radial-gradient(55% 65% at 18% -10%, rgba(143,29,29,.12), transparent 60%),
    linear-gradient(155deg, var(--vd-bg-tint) 0%, var(--vd-bg-light) 55%, #ffffff 100%);
}
.rc-hero h1,.rc-hero h2,.rc-hero h3,.rc-hero h4{ color:var(--vd-text-dark); }
.rc-hero p{ color:var(--vd-text-muted); }
.hero .lead,.rc-hero .lead{ color:var(--vd-text-muted); }
.rc-hero.circuit-bg::before{
  opacity:.35;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%238f1d1d' stroke-opacity='0.16' stroke-width='1.5'%3E%3Cpath d='M20 0v40h60v50'/%3E%3Cpath d='M120 0v30h-30'/%3E%3Cpath d='M0 90h40v70h90v40'/%3E%3Cpath d='M160 20h40v90h20'/%3E%3Cpath d='M60 160h50v60'/%3E%3Ccircle cx='20' cy='40' r='2.5' fill='%238f1d1d' fill-opacity='.28' stroke='none'/%3E%3Ccircle cx='80' cy='90' r='2.5' fill='%238f1d1d' fill-opacity='.28' stroke='none'/%3E%3Ccircle cx='170' cy='110' r='2.5' fill='%238f1d1d' fill-opacity='.28' stroke='none'/%3E%3Ccircle cx='110' cy='220' r='2.5' fill='%238f1d1d' fill-opacity='.28' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Eyebrow / accent ---------- */
.eyebrow{ color:var(--vd-red); }
.eyebrow::before{ background:currentColor; }
.accent{ color:var(--vd-red); }
/* Eyebrows that land on a black section need the lighter variant instead,
   so they still read clearly against the darker backdrop. */
.section-dark .eyebrow,.section-deep .eyebrow,.retainer .eyebrow{ color:var(--vd-red-bright); }

/* ---------- Section shells ---------- */
.section-light{ background:var(--vd-bg-light); }
.section-tint{ background:var(--vd-bg-tint); }
.section-dark{ background:var(--vd-bg-dark); }
.section-deep{ background:var(--vd-bg-deep); }

/* ---------- Cards on black sections ---------- */
.card{ background:var(--vd-bg-card-dark); border-color:rgba(255,255,255,.12); }
.card::before{ background:linear-gradient(90deg,var(--vd-red-mid),var(--vd-red-bright)); }
.card.alt::before{ background:linear-gradient(90deg,var(--vd-red-bright),var(--vd-red-mid)); }
.card p{ color:var(--vd-on-dark-text); }
.card .num{ color:var(--vd-red-bright); }

/* ---------- Cards on light sections ---------- */
/* .card-light::before{...} alone wasn't enough: the .card rule above
   ("cards on black sections") ties with style.css's .card-light rule on
   specificity, and this file loads after style.css, so .card's dark
   background and off-white text were winning on every .card.card-light
   element — leaving a dark reddish-brown card with a near-invisible
   navy heading sitting in the middle of a light section. Re-assert the
   light-card look with the two-class selector so it wins outright;
   style.css's own .card-light h3{color:var(--navy-900)} was never
   contested and already reads correctly against a white background. */
.card.card-light{ background:var(--vd-bg-light); }
.card.card-light::before{ background:linear-gradient(90deg,var(--vd-red),var(--vd-red-mid)); }
.card.card-light p{ color:var(--vd-text-muted); }

/* ---------- Stat tiles (used by the "why this matters" section) ---------- */
.stat-tile{ background:var(--vd-bg-card-dark); border-color:rgba(255,255,255,.12); }
.stat-tile::before{ background:linear-gradient(90deg,var(--vd-red-mid),var(--vd-red-bright)); }
.stat-tile b{ color:var(--vd-red-bright); }
.stat-tile .label{ color:#fff; }
.stat-tile p{ color:var(--vd-on-dark-text); }
.vd-sources{ font-size:.74rem; color:var(--vd-on-dark-text); opacity:.8; margin-top:1.5rem; max-width:72ch; }

/* ---------- Stat icons ---------- */
.stat-icon{
  width:44px; height:44px; border-radius:50%;
  background:rgba(243,114,110,.14); border:1px solid rgba(243,114,110,.32);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:.9rem; color:var(--vd-red-bright);
}
.stat-icon svg{ width:22px; height:22px; display:block; }

/* ---------- Query-length comparison chart ---------- */
.vd-querychart{
  background:var(--vd-bg-card-dark); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius); padding:clamp(1.4rem,2vw,2rem);
  margin-top:clamp(1.5rem,2.5vw,2.25rem);
}
.vd-chart-label{
  font-family:var(--font-head); font-weight:700; font-size:.76rem;
  letter-spacing:.06em; text-transform:uppercase; color:var(--vd-red-bright);
  margin:0 0 1.1rem;
}
.vd-bar-row{ margin-bottom:1.25rem; }
.vd-bar-row:last-child{ margin-bottom:0; }
.vd-bar-row-label{ display:block; font-family:var(--font-head); font-weight:700; font-size:.78rem; color:var(--vd-on-dark-text); margin-bottom:.4rem; }
.vd-bar-track{ background:rgba(255,255,255,.1); border-radius:999px; height:26px; overflow:hidden; }
.vd-bar{ height:100%; border-radius:999px; transition:width .8s var(--ease); }
.vd-bar-a{ background:var(--vd-red-mid); width:18%; }
.vd-bar-b{ background:var(--vd-red-bright); width:92%; }
.vd-bar-value{ display:block; font-size:.82rem; color:#fff; margin-top:.4rem; }
/* Scroll-fill: only once reveal-ready JS is confirmed working (see
   theme-cyber.js) do the bars start at 0 and grow to their set width when
   the chart's [data-reveal] wrapper becomes visible; otherwise (no JS, or
   JS failed) they simply render at full width already, per the rules above. */
.reveal-ready .vd-bar-a,.reveal-ready .vd-bar-b{ width:0; }
.reveal-ready .is-visible .vd-bar-a{ width:18%; }
.reveal-ready .is-visible .vd-bar-b{ width:92%; transition-delay:.3s; }

/* ---------- Retainer ---------- */
.retainer{ background:linear-gradient(155deg,var(--vd-bg-dark),var(--vd-bg-card-dark)); border-color:rgba(255,255,255,.12); }
.retainer .price small{ color:var(--vd-red-bright); }
.retainer .note{ color:var(--vd-on-dark-text); }
.retainer li::before{ background:var(--vd-red-bright); }

/* ---------- Rate tables ---------- */
.rate-table caption{ background:var(--vd-bg-tint); border-bottom-color:var(--vd-red); color:var(--vd-text-dark); }
.rate-table td{ color:var(--vd-text-muted); }
.rate-table td:last-child{ color:var(--vd-text-dark); }

/* ---------- Terms box ---------- */
.terms-box{ background:var(--vd-bg-dark); border-left-color:var(--vd-red); color:var(--vd-on-dark-text); }
.terms-box strong{ color:#fff; }

/* ---------- Buttons ---------- */
.btn-primary{ background:var(--vd-red); color:#fff; box-shadow:0 10px 24px -10px rgba(143,29,29,.55); }
.btn-primary:hover{ background:var(--vd-red-hover); }

/* ---------- Scroll progress bar (ported from theme-cyber.css, recolored) ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:6px; width:0%;
  background:linear-gradient(90deg,var(--vd-red),var(--vd-red-bright));
  box-shadow:0 0 14px rgba(143,29,29,.55);
  z-index:10000; pointer-events:none;
}

/* ---------- Magnetic buttons (color-agnostic, ported from theme-cyber.css) ---------- */
.btn{ transform:translate(var(--mx,0),var(--my,0)); transition:transform .15s var(--ease),background .25s var(--ease),border-color .25s var(--ease),box-shadow .25s var(--ease); }

/* ---------- Tilt cards (color-agnostic, ported from theme-cyber.css) ---------- */
.tilt{
  transform:perspective(700px) rotateX(var(--tx,0)) rotateY(var(--ty,0)) translateZ(0);
  transition:transform .25s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease);
  will-change:transform;
}
