/*
 * /bypass/datadome — "Two milliseconds" (reworked).
 *
 * Chrome owned by _shared/chrome.css. Composition intentionally differs from
 * the other bypass pages: villain-first hero, a scrubbable 2ms timeline, an
 * inline one-line call (no terminal box), and a single-line teal closer with
 * inline siblings (no chip grid). Palette: red #F0524B = blocked, teal
 * #7ADAE6 = human/closer. One saturated region (the teal closer). No mid band.
 */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.dd-main { position: relative; z-index: 1; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 720ms cubic-bezier(0.22,1,0.36,1), transform 720ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 1 — the verdict (villain-first). Sticky; the score climbs to BLOCKED
   and stays. Left-anchored: a full-width score readout on top, H1 beneath.
   ═══════════════════════════════════════════════════════════════════════ */
.dd-hero { position: relative; min-height: 260vh; --score: 0; }
.dd-hero-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 7vh, 92px); padding: 92px clamp(20px, 5vw, 80px) clamp(48px, 8vh, 96px); }

.dd-verdict { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 44px); max-width: 900px; }
.dd-dial { font-family: var(--font-display); font-weight: 500; font-size: clamp(60px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.04em; color: var(--text-tertiary); font-variant-numeric: tabular-nums; transition: color 320ms ease; }
.is-scoring .dd-dial { color: var(--text-primary); }
.is-blocked .dd-dial { color: #F0524B; }
.dd-dial-unit { font-family: var(--font-code); font-size: var(--mkt-body-sm); color: var(--text-quaternary); letter-spacing: 0.06em; }
.dd-bar { position: relative; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-primary) 12%, transparent); }
.dd-bar-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--score, 0) * 100%); border-radius: 999px; background: var(--text-secondary); transition: background 320ms ease; }
.is-blocked .dd-bar-fill { background: #F0524B; }
.dd-verdict-tag { font-family: var(--font-code); font-size: 12.5px; letter-spacing: 0.06em; white-space: nowrap; color: var(--text-secondary); transition: color 320ms ease; }
.is-blocked .dd-verdict-tag { color: #F0524B; }

.dd-hero-copy { max-width: 780px; }
.dd-hero-copy .eyebrow { margin-bottom: 16px; }
.dd-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-xlarge); line-height: var(--leading-display-xlarge, 1.02); letter-spacing: var(--tracking-dense, -0.024em); color: var(--text-primary); margin: 0; text-wrap: balance; }
.dd-hero-h1 .l2 { display: block; }
.dd-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 20px 0 0; max-width: 48ch; }
.dd-hero-cta { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dd-hero-cta .link-cta { align-self: center; transform: translateY(3px); }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — inside the two milliseconds (scrubbable timeline). Horizontal
   0.0→2.0ms track; mouse scrubs the playhead; the active stop's detail shows.
   ═══════════════════════════════════════════════════════════════════════ */
.dd-inside { padding: clamp(120px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1180px; margin: 0 auto; }
.dd-inside-head { max-width: 620px; margin: 0 0 clamp(56px, 8vh, 104px); }
.dd-inside-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-medium); line-height: 1.08; letter-spacing: -0.02em; color: var(--text-primary); margin: 12px 0 0; text-wrap: balance; }
.dd-inside-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px 0 0; max-width: 52ch; }

.dd-timeline { position: relative; --play: 0; padding: 8px 0 0; }
.dd-track { position: relative; height: 2px; background: var(--border-subtle); margin: 40px 0 0; }
.dd-track-play { position: absolute; top: 50%; left: 0; width: calc(var(--play) * 100%); height: 2px; transform: translateY(-50%); background: color-mix(in srgb, var(--text-primary) 60%, transparent); transition: width 160ms linear; }
.dd-track-head { position: absolute; top: 50%; left: calc(var(--play) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--text-primary); transition: left 160ms linear; }
.dd-stops { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.dd-stop { position: relative; padding-top: 22px; text-align: left; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.dd-stop::before { content: ""; position: absolute; top: -7px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--background); border: 1.5px solid var(--border); transition: border-color 240ms ease, background 240ms ease; }
.dd-stop.is-on::before { border-color: var(--text-primary); background: var(--text-primary); }
.dd-stop-t { font-family: var(--font-code); font-size: 12px; letter-spacing: 0.04em; color: var(--text-quaternary); transition: color 240ms ease; }
.dd-stop.is-on .dd-stop-t { color: var(--text-primary); }
.dd-stop-k { display: block; font-family: var(--font-base); font-size: 13.5px; color: var(--text-tertiary); margin-top: 6px; transition: color 240ms ease; }
.dd-stop.is-on .dd-stop-k { color: var(--text-secondary); }
.dd-details { position: relative; margin-top: clamp(40px, 6vh, 72px); min-height: 120px; }
.dd-stop-detail { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 400ms cubic-bezier(0.22,1,0.36,1), transform 400ms cubic-bezier(0.22,1,0.36,1); pointer-events: none; }
.dd-stop-detail.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dd-detail-name { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h3); color: var(--text-primary); margin: 0; letter-spacing: -0.02em; }
.dd-detail-desc { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-tertiary); margin: 14px 0 0; max-width: 56ch; }
.dd-detail-desc.is-final { color: #F0524B; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 3 — the turn. Dark, editorial. The call is ONE inline mono line, not a
   terminal box.
   ═══════════════════════════════════════════════════════════════════════ */
.dd-turn { padding: clamp(120px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 900px; margin: 0 auto; text-align: center; }
.dd-turn-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-large); line-height: 1.04; letter-spacing: -0.024em; color: var(--text-primary); margin: 14px 0 0; text-wrap: balance; }
.dd-turn-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 22px auto 0; max-width: 50ch; }
.dd-inline-call { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin: clamp(40px, 5vh, 64px) auto 0; font-family: var(--font-code); font-size: var(--mkt-body-sm); color: var(--text-secondary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 20px 4px; }
.dd-inline-call .c-cmd { color: var(--text-primary); font-weight: 500; }
.dd-inline-call .c-arrow { color: var(--text-quaternary); }
.dd-inline-call .c-ok { color: #7ADAE6; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 4 — closer (SOLID teal, bloom). One line, siblings inline. No chip grid.
   ═══════════════════════════════════════════════════════════════════════ */
.dd-closer { position: relative; background: #7ADAE6; color: #0B1416; --rise: 0; clip-path: circle(calc(var(--rise) * 150%) at 50% 100%); padding: clamp(130px, 22vh, 260px) clamp(20px, 5vw, 80px) clamp(90px, 14vh, 160px); will-change: clip-path; }
.dd-closer-inner { max-width: 940px; margin: 0 auto; text-align: center; }
.dd-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-large); line-height: 1.04; letter-spacing: -0.024em; color: #0B1416; margin: 0; text-wrap: balance; }
.dd-closer-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dd-closer-tagline { font-family: var(--font-base); font-size: 14px; color: #14494f; }
.dd-closer-more { font-family: var(--font-base); font-size: 15px; line-height: 1.6; color: #103a40; margin: clamp(40px, 6vh, 72px) auto 0; max-width: 60ch; }
.dd-closer-more a { color: #0B1416; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,20,22,0.4); transition: text-decoration-color 200ms ease; }
.dd-closer-more a:hover { text-decoration-color: #0B1416; }

/* Topbar adaptation (teal closer): dark chrome, purple CTA. */

/* Cursor portal — O only on the scrub timeline (the one explorable widget). */
.dd-timeline, .dd-timeline * { cursor: none; }

@media (min-width: 1600px) { .dd-verdict { max-width: 1040px; } .dd-inside { max-width: 1320px; } }

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px): hero static (blocked), timeline stacks.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dd-hero { min-height: auto; }
  .dd-hero-stage { position: static; height: auto; overflow: visible; padding: 120px 20px 64px; gap: 44px; }
  .dd-verdict { grid-template-columns: auto 1fr; }
  .dd-verdict-tag { grid-column: 1 / -1; }
  .dd-stops { grid-template-columns: 1fr; gap: 4px; }
  .dd-stop { padding: 14px 0 14px 20px; }
  .dd-stop::before { top: 18px; }
  .dd-track, .dd-track-play, .dd-track-head { display: none; }
  .dd-details { position: static; min-height: 0; margin-top: 32px; }
  .dd-stop-detail { position: static; opacity: 1; transform: none; display: none; }
  .dd-stop-detail.is-on { display: block; }
  .dd-closer { clip-path: none !important; }
}

/* Closer CTA: fixed contrast for the closer background, never scroll-dependent. */
