/* ============================================================
   idv.css — TruU IDV (Identity Verification) page
   Built on the shared TruU brand system (styles.css tokens).
   Orange is reserved for ONE thing: the Persona. Everything
   else is monochrome and builds up to the Persona foundation.
   ============================================================ */

.idv-page { background: var(--bg); }
.idv-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; width: 100%; }
.idv-narrow { max-width: 900px; }

.idv-sec { position: relative; z-index: 2; padding: 104px 0; border-top: .5px solid var(--border); }
.idv-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-family: "Inter Tight", sans-serif; font-weight: 600; margin-bottom: 22px; }
.idv-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px,3.6vw,50px); line-height: 1.12; letter-spacing: -.012em; color: var(--text); max-width: 880px; }
.idv-h2 em { font-style: italic; color: var(--text); }
.idv-h2 .dim { display: block; color: var(--text-2); font-weight: 300; }
.idv-lede { margin-top: 24px; font-size: clamp(17px,1.5vw,20px); line-height: 1.6; color: var(--text-2); max-width: 620px; }

/* ---- Hero ---- */
.idv-hero { position: relative; z-index: 2; padding: 172px 0 100px; overflow: hidden; text-align: center; }
.idv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 520px at 50% -12%, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 58%); }
.idv-hero-copy { max-width: 1080px; margin: 0 auto; }
.idv-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px,5vw,62px); line-height: 1.06; letter-spacing: -.018em; color: var(--text); }
.idv-h1 .l1 { display: block; }
.idv-h1 .dim { display: block; color: var(--text-2); }
@media (min-width: 760px) { .idv-h1 .l1 { white-space: nowrap; } }
.idv-hero .idv-lede { margin: 28px auto 0; max-width: 640px; }
.idv-hero-sub { margin-top: 14px; font-size: 15px; color: var(--text-3); }
.idv-hero .cta-row { justify-content: center; margin-top: 40px; }
.idv-hero-shot { max-width: 1060px; margin: 70px auto 0; }

/* ---- Screenshot frame ---- */
.idv-frame { position: relative; border: .5px solid var(--border); border-radius: 16px; overflow: hidden; background: #0c0c0d; box-shadow: 0 50px 130px -58px rgba(0,0,0,.92); }
.idv-frame::after { content: ""; position: absolute; inset: 0; border-radius: 16px; border: 1px solid rgba(255,255,255,.045); pointer-events: none; }
.idv-frame img { display: block; width: 100%; height: auto; }

/* ---- Problem ---- */
.idv-problems { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 0 44px; }
.idv-problems li { position: relative; font-size: 16px; color: var(--text-2); padding: 15px 0 15px 24px; border-bottom: .5px solid var(--border); }
.idv-problems li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 1px; background: var(--text-3); }
.idv-fixes { margin-top: 44px; font-family: "Inter", sans-serif; font-weight: 400; font-size: clamp(19px,2vw,25px); line-height: 1.46; color: var(--text-2); max-width: 760px; }
.idv-fixes strong { color: var(--text); font-weight: 600; }

/* ---- Define list ---- */
.idv-define { list-style: none; margin: 38px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1px; background: var(--border); border: .5px solid var(--border); border-radius: 13px; overflow: hidden; }
.idv-define li { background: var(--base); padding: 24px 22px; font-family: "Inter Tight", sans-serif; font-size: 15.5px; font-weight: 500; color: var(--text); }
.idv-define li b { display: block; color: var(--text-3); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }

/* ---- How it works: feature rows ---- */
.idv-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 90px; }
.idv-feature.flip .idv-feature-copy { order: 2; }
.idv-feature-num { font-family: "Inter Tight", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.idv-feature-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px,2.6vw,34px); line-height: 1.14; letter-spacing: -.01em; color: var(--text); margin-bottom: 15px; }
.idv-feature-copy p { font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 460px; }

/* ---- Text mini-features ---- */
.idv-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 90px; }
.idv-mini { background: var(--surface); border: .5px solid var(--border); border-radius: 14px; padding: 28px; }
.idv-mini h3 { font-family: "Inter Tight", sans-serif; font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.idv-mini p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---- Trust questions ---- */
.idv-questions { list-style: none; margin: 44px 0 0; padding: 0; max-width: 800px; }
.idv-questions li { position: relative; font-family: var(--font-display); font-style: italic; font-size: clamp(18px,1.9vw,24px); line-height: 1.4; color: var(--text-2); padding: 19px 0 19px 32px; border-bottom: .5px solid var(--border); }
.idv-questions li::before { content: "?"; position: absolute; left: 0; top: 19px; font-family: "Inter Tight", sans-serif; font-style: normal; font-size: 15px; font-weight: 600; color: var(--text-3); }

/* ---- Use-case cards ---- */
.idv-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 50px; }
.idv-card { background: var(--surface); border: .5px solid var(--border); border-radius: 14px; padding: 28px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.idv-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: -.005em; color: var(--text); margin-bottom: 10px; }
.idv-card p { font-size: 14.5px; line-height: 1.56; color: var(--text-2); }
.material-symbols-outlined { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24; }
.idv-uc .idv-card { padding: 32px; }
.idv-uc-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; border: .5px solid var(--border); background: rgba(255,255,255,.02); margin-bottom: 24px; transition: border-color .25s var(--ease), background .25s var(--ease); }
.idv-uc-ic .material-symbols-outlined { font-size: 24px; color: var(--text-2); transition: color .25s var(--ease); }
.idv-uc .idv-card h3 { font-size: 21px; margin-bottom: 13px; }
.idv-uc .idv-card p { font-size: 15px; line-height: 1.6; }

/* ---- Use-case grid: depth, cataloged index, staggered cascade, monochrome ignite on hover (shared by idv + insider-threat) ---- */
.idv-uc.reveal { opacity: 1; transform: none; }                /* the container itself never fades; only the cards cascade */
.idv-uc { counter-reset: uc; }
.idv-uc .idv-card {
  position: relative;
  counter-increment: uc;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(255,255,255,.04), rgba(255,255,255,0) 56%), var(--surface);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .55s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.idv-uc.in .idv-card { opacity: 1; transform: none; }
.idv-uc.in .idv-card:nth-child(1) { transition-delay: .04s; }
.idv-uc.in .idv-card:nth-child(2) { transition-delay: .11s; }
.idv-uc.in .idv-card:nth-child(3) { transition-delay: .18s; }
.idv-uc.in .idv-card:nth-child(4) { transition-delay: .25s; }
.idv-uc.in .idv-card:nth-child(5) { transition-delay: .32s; }
.idv-uc.in .idv-card:nth-child(6) { transition-delay: .39s; }
.idv-uc .idv-card::after {
  content: counter(uc, decimal-leading-zero);
  position: absolute; top: 34px; right: 32px;
  font-family: "Inter Tight", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: var(--text-3); transition: color .4s var(--ease);
}
.idv-uc-ic {
  width: 54px; height: 54px; border-radius: 15px;
  background: linear-gradient(158deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.idv-uc-ic .material-symbols-outlined { font-size: 27px; }
@media (prefers-reduced-motion: reduce) {
  .idv-uc .idv-card { opacity: 1; transform: none; transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease); }
}

/* ---- Comparison ---- */
.idv-compare { margin-top: 50px; border: .5px solid var(--border); border-radius: 14px; overflow: hidden; }
.idv-compare-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--border); }
.idv-compare-row:last-child { border-bottom: 0; }
.idv-compare-cell { padding: 20px 28px; font-size: 15px; line-height: 1.5; }
.idv-compare-cell.old { color: var(--text-3); border-right: .5px solid var(--border); }
.idv-compare-cell.new { color: var(--text); background: rgba(255,255,255,.018); }
.idv-compare-head .idv-compare-cell { font-family: "Inter Tight", sans-serif; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 16px 28px; }
.idv-compare-head .old { color: var(--text-3); }
.idv-compare-head .new { color: var(--text); }
.idv-ones { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 11px 14px; }
.idv-one { font-family: "Inter Tight", sans-serif; font-size: 13.5px; color: var(--text-2); border: .5px solid var(--border); border-radius: 999px; padding: 9px 17px; }
.idv-one strong { color: var(--text); font-weight: 600; }

/* ---- Persona foundation pill — the ONE orange moment (everything builds to it) ---- */
.idv-foundation { margin: 56px 0 0; }
.idv-foundation .ucf-text { white-space: normal; }

/* ---- How it works: 3-step strip + showcase ---- */
.idv-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; margin-top: 56px; }
.idv-step { border-top: .5px solid var(--border); padding-top: 22px; }
.idv-step-num { display: block; font-family: "Inter Tight", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--text-3); margin-bottom: 18px; }
.idv-step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px,2.3vw,28px); line-height: 1.12; color: var(--text); margin-bottom: 10px; }
.idv-step-tag { display: block; font-family: "Inter Tight", sans-serif; font-size: 14px; font-weight: 400; color: var(--text-3); }
.idv-tabs .idv-step { appearance: none; -webkit-appearance: none; background: none; border: 0; border-top: .5px solid var(--border); border-radius: 0; padding: 22px 0 0; margin: 0; text-align: left; cursor: pointer; font-family: inherit; color: inherit; display: block; width: 100%; transition: border-color .25s var(--ease); }
.idv-tabs .idv-step h3 { transition: color .25s var(--ease); }
.idv-tabs .idv-step.is-active { border-top-color: var(--primary); }
.idv-tabs .idv-step:not(.is-active) h3 { color: var(--text-2); }
.idv-tabs .idv-step:not(.is-active) .idv-step-num, .idv-tabs .idv-step:not(.is-active) .idv-step-tag { opacity: .5; }
.idv-tabs .idv-step:hover:not(.is-active) { border-top-color: var(--border-hover); }
.idv-tabs .idv-step:hover:not(.is-active) h3 { color: var(--text); }
.idv-showcase { margin: 60px 0 0; }
.idv-shot-cap { margin: 18px auto 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-3); max-width: 660px; }

/* centered "statement" sections (the mess, the stakes) */
.idv-mid { text-align: center; }
.idv-mid .idv-h2, .idv-mid .idv-lede, .idv-mid .idv-fixes { margin-left: auto; margin-right: auto; }

/* ---- The problem: verification matrix ---- */
.idv-problem-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 58px; align-items: center; }
.idv-matrix-fig { margin: 0; min-width: 0; }
.idv-matrix { width: 100%; height: auto; display: block; }
.idv-matrix .idv-ax { fill: var(--text-3); font-family: "Inter Tight", sans-serif; font-size: 13px; }
@media (max-width: 860px) { .idv-problem-grid { grid-template-columns: 1fr; gap: 34px; } }
.idv-legend { display: flex; gap: 30px; justify-content: center; margin-top: 26px; }
.idv-leg-item { display: inline-flex; align-items: center; gap: 9px; font-family: "Inter Tight", sans-serif; font-size: 13px; color: var(--text-2); }
.idv-leg-dot { width: 9px; height: 9px; border-radius: 50%; }
.idv-leg-dot.strong { background: rgba(255,255,255,.3); }
.idv-leg-dot.weak { background: #ef4444; }

/* ---- Risk: the signal path (flows carry risk -> feeds the Persona) ---- */
.idv-signal { margin-top: 58px; }
.idv-signal-flows { position: relative; border: .5px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.idv-sf-row { display: grid; grid-template-columns: 124px minmax(0,1fr) 128px 96px; align-items: center; gap: 22px; padding: 22px 28px 22px 48px; border-bottom: .5px solid var(--border); transition: background .4s var(--ease); }
.idv-sf-row:last-child { border-bottom: 0; }
.idv-sf-row:nth-last-child(2) { border-bottom: 0; }
.idv-sf-tier { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--text); }
.idv-sf-factors { font-family: "Inter Tight", sans-serif; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.idv-sf-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.idv-sf-track i { display: block; height: 100%; border-radius: 4px; }
.idv-sf-track i.strong { background: #35c08a; }
.idv-sf-track i.fair { background: #d8a23e; }
.idv-sf-track i.weak { background: #ef4444; }
.idv-sf-level { font-family: "Inter Tight", sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); text-align: right; white-space: nowrap; }
.idv-sf-level.strong { color: #35c08a; }
.idv-sf-level.fair { color: #d8a23e; }
.idv-sf-level.weak { color: #ef4444; }
.idv-sf-total { border-top: 1px solid var(--border-hover); background: rgba(255,255,255,.022); }
.idv-sf-total .idv-sf-factors { font-style: italic; }

/* ---- Risk: fallback-descent animation ---- */
.idv-sf-rail { position: absolute; left: 26px; width: 1.5px; transform: translateX(-50%); background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.025)); z-index: 1; pointer-events: none; }
.idv-sf-dot { position: absolute; left: 26px; top: 0; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%,-50%); background: var(--text-3); opacity: 0; z-index: 3; pointer-events: none; transition: top .7s cubic-bezier(.5,0,.2,1), background-color .5s var(--ease), box-shadow .5s var(--ease), opacity .45s var(--ease); }
.idv-sf-dot.strong { background: #35c08a; box-shadow: 0 0 0 5px rgba(53,192,138,.14), 0 0 14px 2px rgba(53,192,138,.5); }
.idv-sf-dot.weak { background: #ef4444; box-shadow: 0 0 0 5px rgba(239,68,68,.14), 0 0 14px 2px rgba(239,68,68,.5); }
.idv-sf-row.is-active { background: rgba(255,255,255,.032); }
.idv-sf-track i { transition: filter .5s var(--ease); }
.idv-sf-row.is-active .idv-sf-track i { filter: brightness(1.4); }
.idv-sf-total.is-active { background: rgba(239,68,68,.06); }
@media (prefers-reduced-motion: reduce) { .idv-sf-dot, .idv-sf-rail { display: none; } }
.idv-sf-dot.pulse { animation: idv-dot-pulse 1.05s ease-in-out infinite; }
@keyframes idv-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(239,68,68,.14), 0 0 14px 2px rgba(239,68,68,.5); }
  50% { box-shadow: 0 0 0 11px rgba(239,68,68,.04), 0 0 26px 6px rgba(239,68,68,.78); }
}
.idv-sf-row.is-risk { background: rgba(239,68,68,.075); }
.idv-sf-row.is-risk .idv-sf-track i { filter: brightness(1.6); }
.idv-sf-factors { position: relative; }
.idv-sf-warn { position: absolute; top: 100%; left: 0; margin-top: 4px; white-space: nowrap; font-family: "Inter Tight", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: #ef4444; opacity: 0; transform: translateY(-3px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.idv-sf-row.is-risk .idv-sf-warn { opacity: 1; transform: translateY(0); }
/* signal is now a simple stack: full-width flows, then the full-width Persona foundation pill */

/* ---- Final CTA ---- */
.idv-final { position: relative; z-index: 3; padding: 124px 0 134px; text-align: center; border-top: .5px solid var(--border); background: radial-gradient(112% 82% at 50% 26%, rgba(64,69,80,.26) 0%, rgba(11,11,12,0) 58%), linear-gradient(180deg,#0b0c0e 0%,#08080a 100%); overflow: hidden; }
.idv-final .idv-h1 { font-size: clamp(36px,4.6vw,60px); }
.idv-final .idv-lede { margin: 26px auto 0; max-width: 680px; }
.idv-final-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.idv-final .cta-row { justify-content: center; margin-top: 40px; }

/* hero renders immediately at every breakpoint; observer may miss on mobile */
.idv-hero .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }


/* ---- responsive ---- */
@media (max-width: 980px) {
  .idv-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .idv-wrap { padding: 0 22px; }
  .idv-sec { padding: 76px 0; }
  .idv-hero { padding: 122px 0 74px; }
  .idv-hero-shot { margin-top: 48px; }
  .idv-problems, .idv-feature, .idv-mini-grid, .idv-steps { grid-template-columns: 1fr; gap: 30px; }
  .idv-feature { margin-top: 64px; }
  .idv-feature.flip .idv-feature-copy { order: 0; }
  .idv-feature .idv-frame { order: -1; }
  .idv-compare-row { grid-template-columns: 1fr; }
  .idv-compare-cell.old { border-right: 0; border-bottom: .5px solid var(--border); }
}
@media (max-width: 760px) {
  .idv-page .idv-wrap { padding: 0 22px; }
  .idv-page .idv-hero { padding: 104px 0 56px; text-align: left; }
  .idv-page .idv-hero-copy { text-align: left; margin: 0; }
  .idv-page .idv-hero .idv-lede { margin: 22px 0 0; }
  .idv-page .idv-hero .cta-row { justify-content: flex-start; margin-top: 28px; }
  .idv-page .idv-hero-shot { margin-top: 36px; }
  .idv-page .idv-sec { padding: 60px 0; }
  .idv-page .idv-problem-grid { grid-template-columns: 1fr; gap: 28px; }
  .idv-page .idv-cards.idv-uc { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .idv-page .idv-uc .idv-card { padding: 24px; }
  .idv-page .idv-uc .idv-card::after { top: 24px; right: 22px; }
  .idv-page .idv-steps { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .idv-page .idv-tabs .idv-step { padding-top: 16px; }
  .idv-page .idv-showcase { margin-top: 36px; }
  .idv-page .idv-signal { margin-top: 36px; }
  .idv-page .idv-sf-row { grid-template-columns: 92px minmax(0,1fr) 64px; gap: 12px; padding: 16px 18px 16px 34px; }
  .idv-page .idv-sf-level { display: none; }
  .idv-page .idv-sf-tier { font-size: 16px; }
  .idv-page .idv-sf-factors { white-space: normal; font-size: 12px; }
  .idv-page .idv-sf-warn { position: static; display: block; margin-top: 4px; white-space: normal; transform: none; opacity: 1; }
  .idv-page .idv-sf-rail, .idv-page .idv-sf-dot { left: 18px; }
  .idv-page .idv-foundation { margin-top: 32px; }
  .idv-page .idv-final { padding: 84px 0 94px; text-align: left; }
  .idv-page .idv-final .idv-h1 { font-size: clamp(28px, 7.2vw, 36px); }
  .idv-page .idv-final .idv-lede { margin-top: 22px; }
  .idv-page .idv-final .cta-row { justify-content: flex-start; margin-top: 32px; }
  .idv-page .idv-mid { text-align: left; }
  .idv-page .idv-mid .idv-h2, .idv-page .idv-mid .idv-lede, .idv-page .idv-mid .idv-fixes { margin-left: 0; margin-right: 0; }
  .idv-page .idv-shot-cap { text-align: left; margin: 18px 0 0; max-width: none; }
  .idv-page .idv-legend { justify-content: flex-start; }
  .idv-page .idv-h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.08; max-width: none; }
  .idv-page .idv-lede { font-size: 15.5px; line-height: 1.55; margin-top: 22px; max-width: none; }
  .idv-page .idv-hero .idv-h1 { font-size: clamp(34px, 9vw, 42px); line-height: 1.06; }
}
@media (max-width: 640px) {
  .idv-cards { grid-template-columns: 1fr; }
}
