/* ============================================================
   HYDREVAL — Interactive modules
   dashboard · tabs · before/after · faq · timeline · marquee
   All resting states are visible without relying on animation.
   ============================================================ */

/* ---------- Audit dashboard card (hero) ---------- */
.dash { padding: 24px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-head .t { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.dash-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; color: var(--blue); }
.dash-head .live i { width: 7px; height: 7px; border-radius: 50%; background: #14b86a; box-shadow: 0 0 0 0 rgba(20,184,106,.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,184,106,.5); } 70% { box-shadow: 0 0 0 9px rgba(20,184,106,0); } 100% { box-shadow: 0 0 0 0 rgba(20,184,106,0); } }

.dash-top { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.gauge {
  --deg: 306deg; /* resting = final (≈ -38% of full sweep). JS animates from 0. */
  position: relative; width: 124px; height: 124px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--blue) 0deg, var(--magenta) var(--deg), rgba(12,18,48,.08) var(--deg));
}
.gauge::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: inset 0 1px 4px rgba(12,18,48,.08); }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.gauge .val b { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.gauge .val span { display: block; font-size: .62rem; color: var(--ink-faint); margin-top: 3px; letter-spacing: .04em; }
.dash-top .meta { display: flex; flex-direction: column; gap: 4px; }
.dash-top .meta .big { font-size: 1.05rem; font-weight: 600; }
.dash-top .meta .small { font-size: .8rem; color: var(--ink-soft); }
.dash-top .meta .tag-ok { align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 600; color: #0c7a4a; background: rgba(20,184,106,.12); padding: 4px 10px; border-radius: 100px; }

.dash-rows { display: flex; flex-direction: column; gap: 14px; }
.dash-row .lbl { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; color: var(--ink-soft); }
.dash-row .lbl b { color: var(--ink); font-weight: 600; }
.track { height: 9px; border-radius: 100px; background: rgba(12,18,48,.07); overflow: hidden; }
.track .fill { --w: 50%; height: 100%; width: var(--w); border-radius: 100px; background: var(--brand-grad); }
.dash-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.dash-foot .k { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.dash-foot .v { font-size: 1.45rem; font-weight: 700; }

/* ---------- Marquee (references) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scrollx 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee .logo-ph { flex: none; width: 178px; }

/* ---------- Service tabs ---------- */
.tabs-nav { display: inline-flex; gap: 6px; padding: 6px; border-radius: 100px; margin-bottom: 30px; }
.tab-btn { font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; border: 0; background: transparent; color: var(--ink-soft); padding: 11px 22px; border-radius: 100px; transition: color .25s, background .25s; }
.tab-btn[aria-selected="true"] { color: #fff; background: var(--brand-grad); box-shadow: 0 8px 20px -10px rgba(70,20,255,.6); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tabIn .5s var(--ease); }
@keyframes tabIn { from { transform: translateY(12px); } to { transform: none; } } /* opacity stays 1 → freeze-safe */
.presta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.presta { padding: 26px 24px; }
.presta .pn { font-size: .8rem; font-weight: 700; color: var(--magenta); letter-spacing: .05em; }
.presta h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.presta p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.tab-intro { max-width: 620px; margin-bottom: 26px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Before / After compare slider ---------- */
.compare { --x: 50%; position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; min-height: 380px; }
.compare .layer { position: absolute; inset: 0; }
.compare .layer .ph { width: 100%; height: 100%; border-radius: 0; min-height: 0; }
.compare .after { clip-path: inset(0 0 0 var(--x)); }
.compare .before .ph { justify-items: start; }
.compare .before .ph span { margin-left: 22px; }
.compare .after .ph { justify-items: end; }
.compare .after .ph span { margin-right: 22px; }
.compare .badge { position: absolute; top: 18px; padding: 7px 14px; border-radius: 100px; font-size: .76rem; font-weight: 600; z-index: 3; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); }
.compare .badge.b-before { left: 18px; color: var(--ink-soft); }
.compare .badge.b-after { right: 18px; color: #fff; background: var(--brand-grad); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; z-index: 4; transform: translateX(-1px); box-shadow: 0 0 12px rgba(12,18,48,.3); }
.compare .knob { position: absolute; top: 50%; left: var(--x); z-index: 5; width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 6px 18px -4px rgba(12,18,48,.4); display: grid; place-items: center; color: var(--blue); font-weight: 700; }
.compare .delta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 8px 16px; border-radius: 100px; font-weight: 700; color: #fff; background: var(--brand-grad); box-shadow: 0 10px 24px -10px rgba(70,20,255,.6); font-size: .92rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-inline: auto; }
#faq .sec-head { text-align: center; margin-inline: auto; }
#faq .eyebrow { justify-content: center; }
.faq-item { padding: 0 26px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; background: none; border: 0; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); cursor: pointer; padding: 22px 0; }
.faq-q .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,255,.08); color: var(--blue); transition: transform .35s var(--ease), background .25s; font-size: 1.1rem; line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--brand-grad); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { margin: 0 0 22px; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }

/* ---------- Method timeline (draws on scroll) ---------- */
.timeline { position: relative; padding-left: 4px; }
.timeline .line { position: absolute; left: 22px; top: 10px; bottom: 10px; width: 2px; background: rgba(12,18,48,.10); border-radius: 2px; }
.timeline .line i { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: var(--brand-grad); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 34px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node { position: absolute; left: 11px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid rgba(12,18,48,.15); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-faint); z-index: 1; transition: border-color .3s, color .3s, background .3s; }
.tl-item.lit .node { background: var(--brand-grad); border-color: transparent; color: #fff; }
.tl-item .when { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); }
.tl-item h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.tl-item p { margin: 0; color: var(--ink-soft); max-width: 560px; }

@media (max-width: 980px) {
  .presta-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-top { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .presta-grid { grid-template-columns: 1fr; }
  .tabs-nav { display: flex; width: 100%; }
  .tab-btn { flex: 1; padding: 11px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .tab-panel.active { animation: none; }
  .dash-head .live i { animation: none; }
}
