/*
 * /bypass/akamai — "The seal".
 *
 * Chrome owned by _shared/chrome.css. Palette: teal #7ADAE6 = valid/allowed,
 * red #F0524B = invalid/challenged (semantic danger, allowed per Pablo),
 * purple #7C4FE8 = the closer/band brand fill. Two SOLID regions: purple band
 * (Acts 3-4), teal closer. No gradients on act backgrounds. Right-aligned hero.
 */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.ak-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 _abck seal. Sticky stage; the seal panel sits LEFT, the copy is
   RIGHT-ANCHORED (right-aligned text) — a fresh hero axis across the set.
   ═══════════════════════════════════════════════════════════════════════ */
.ak-hero { position: relative; min-height: 280vh; --seal: 0; }
.ak-hero-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 110px); padding: 92px clamp(20px, 5vw, 80px) clamp(48px, 8vh, 96px); }

.ak-seal { justify-self: start; width: min(500px, 100%); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg, 14px); padding: 30px 30px 32px; background: transparent; }
.ak-seal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ak-seal-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-quaternary); }
.ak-seal-dot { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text-primary) 22%, transparent); transition: background 300ms ease, box-shadow 300ms ease; }
.is-invalid .ak-seal-dot { background: #F0524B; box-shadow: 0 0 0 4px color-mix(in srgb, #F0524B 18%, transparent); }
.is-valid .ak-seal-dot { background: #7ADAE6; box-shadow: 0 0 0 4px color-mix(in srgb, #7ADAE6 20%, transparent); }
.ak-seal-token { font-family: var(--font-code); font-size: var(--mkt-body-xs); line-height: 1.7; color: var(--text-tertiary); word-break: break-all; }
.ak-seal-token b { color: var(--text-secondary); font-weight: 500; }
.ak-seal-token [data-ak-marker] { color: #F0524B; transition: color 300ms ease; font-weight: 700; }
.is-valid .ak-seal-token [data-ak-marker] { color: #7ADAE6; }
.ak-seal-bar { position: relative; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--text-primary) 12%, transparent); margin: 24px 0 12px; overflow: hidden; }
.ak-seal-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--seal, 0) * 100%); background: #F0524B; transition: background 300ms ease; }
.is-valid .ak-seal-fill { background: #7ADAE6; }
.ak-seal-status { font-family: var(--font-code); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-secondary); transition: color 300ms ease; }
.is-invalid .ak-seal-status { color: #F0524B; }
.is-valid .ak-seal-status { color: #7ADAE6; }

.ak-hero-copy { justify-self: end; text-align: right; max-width: 560px; }
.ak-hero-copy .eyebrow { margin-bottom: 16px; }
.ak-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; }
.ak-hero-h1 .l2 { display: block; }
.ak-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 20px 0 0 auto; max-width: 46ch; }
.ak-hero-cta { margin-top: 26px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.ak-hero-cta .link-cta { align-self: center; transform: translateY(3px); }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — what the sensor records (Pattern J manifesto). Oversize rows,
   hairline-divided, alternating indent; each expands a caption on hover.
   ═══════════════════════════════════════════════════════════════════════ */
.ak-records { padding: clamp(120px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1080px; margin: 0 auto; }
.ak-records-head { max-width: 640px; margin: 0 0 clamp(40px, 5vh, 68px); }
.ak-records-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; }
.ak-records-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; }

.ak-lines { border-top: 1px solid var(--border-subtle); }
.ak-line { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: border-color 240ms ease; }
.ak-line:nth-child(even) { padding-left: clamp(0px, 6vw, 96px); }
.ak-line-num { font-family: var(--font-code); font-size: 13px; color: var(--text-quaternary); letter-spacing: 0.05em; }
.ak-line-name { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h3); color: var(--text-primary); letter-spacing: -0.015em; line-height: 1.05; }
.ak-line-cap { font-family: var(--font-base); font-size: 14.5px; line-height: 1.5; color: var(--text-tertiary); max-width: 52ch; margin: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 400ms cubic-bezier(0.22,1,0.36,1), opacity 300ms ease, margin 400ms ease; }
.ak-line:hover, .ak-line:focus-within, .ak-line.is-open { border-bottom-color: color-mix(in srgb, var(--text-primary) 32%, var(--border-subtle)); }
.ak-line:hover .ak-line-cap, .ak-line:focus-within .ak-line-cap, .ak-line.is-open .ak-line-cap { max-height: 80px; opacity: 1; margin-top: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   ACTS 3-4 — one call, sealed valid. SOLID purple band, bloom bottom-right.
   ═══════════════════════════════════════════════════════════════════════ */
.ak-band { position: relative; background: #7C4FE8; color: #fff; --rise: 0; clip-path: circle(calc(var(--rise) * 150%) at 92% 100%); will-change: clip-path; }
.ak-band-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.ak-call { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; padding: clamp(120px, 18vh, 220px) 0 clamp(90px, 12vh, 150px); }
.ak-call-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-large); line-height: 1.04; letter-spacing: -0.024em; color: #fff; margin: 14px 0 0; text-wrap: balance; }
.ak-call-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: rgba(255,255,255,0.9); margin: 20px 0 0; max-width: 44ch; }
.ak-code { border: 1px solid rgba(255,255,255,0.32); border-radius: var(--radius-lg, 12px); background: transparent; overflow: hidden; }
.ak-code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.24); }
.ak-code-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.ak-code-tag { margin-left: auto; font-family: var(--font-code); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.ak-code pre { margin: 0; padding: 20px 18px; font-family: var(--font-code); font-size: var(--mkt-body-xs); line-height: 1.7; color: #fff; overflow-x: auto; }
.ak-code .tok-cmd { color: #fff; font-weight: 700; }
.ak-code .tok-flag { color: rgba(255,255,255,0.78); }
.ak-code .tok-str { color: #E8DCFF; }
.ak-code-out { border-top: 1px dashed rgba(255,255,255,0.32); padding: 14px 18px; font-family: var(--font-code); font-size: 12.5px; color: rgba(255,255,255,0.86); }
.ak-code-out b { color: #fff; }

.ak-sealed { padding: clamp(20px, 4vh, 60px) 0 clamp(120px, 18vh, 220px); border-top: 1px solid rgba(255,255,255,0.24); }
.ak-sealed-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-medium); line-height: 1.06; letter-spacing: -0.02em; color: #fff; margin: 0 0 clamp(28px, 4vh, 48px); max-width: 22ch; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ak-chip { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 10px 18px; font-family: var(--font-base); font-size: 14px; color: #fff; }
.ak-chip svg { width: 15px; height: 15px; flex: none; }
.ak-chip svg path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ak-sealed-note { font-family: var(--font-base); font-size: 13.5px; color: rgba(255,255,255,0.82); margin: 24px 0 0; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 5 — closer. SOLID teal.
   ═══════════════════════════════════════════════════════════════════════ */
.ak-closer { position: relative; background: #7ADAE6; color: #0B1416; padding: clamp(120px, 20vh, 240px) clamp(20px, 5vw, 80px) clamp(80px, 12vh, 140px); }
.ak-closer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.ak-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; }
.ak-closer-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: #103a40; margin: 22px auto 0; max-width: 52ch; }
.ak-closer-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ak-closer-tagline { font-family: var(--font-base); font-size: 14px; color: #14494f; }
.ak-siblings { max-width: 900px; margin: clamp(56px, 8vh, 96px) auto 0; padding-top: 32px; border-top: 1px solid rgba(11,20,22,0.2); }
.ak-siblings-label { font-family: var(--font-code); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #14494f; margin: 0 0 16px; text-align: center; }
.ak-siblings-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.ak-sibling { font-family: var(--font-base); font-size: 13.5px; color: #0B1416; border: 1px solid rgba(11,20,22,0.28); border-radius: 999px; padding: 8px 15px; transition: background 200ms ease, border-color 200ms ease; }
.ak-sibling:hover, .ak-sibling:focus-visible { background: rgba(11,20,22,0.06); border-color: #0B1416; outline: none; }

/* ═══════════════════════════════════════════════════════════════════════
   Topbar adaptation (incl. CTA: teal button on purple, purple button on teal).
   ═══════════════════════════════════════════════════════════════════════ */

/* Wide tiers — cap the hero content so the seal + right-aligned copy stay a
   contained pair instead of drifting to opposite screen edges past ~1920. */
@media (min-width: 1440px) { .ak-hero-stage { max-width: 1500px; margin-inline: auto; column-gap: clamp(48px, 4vw, 96px); } }
@media (min-width: 1600px) { .ak-band-inner { max-width: 1400px; } }
@media (min-width: 1920px) { .ak-band-inner { max-width: 1560px; } }

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px).
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ak-hero { min-height: auto; }
  .ak-hero-stage { position: static; height: auto; overflow: visible; display: block; padding: 120px 20px 64px; }
  .ak-seal { width: 100%; margin: 0 0 40px; }
  .ak-hero-copy { justify-self: auto; text-align: left; max-width: none; }
  .ak-hero-sub { margin-left: 0; }
  .ak-hero-cta { justify-content: flex-start; }
  .ak-line { grid-template-columns: 40px 1fr; }
  .ak-line:nth-child(even) { padding-left: 4px; }
  .ak-line-cap { max-height: none; opacity: 1; margin-top: 12px; }
  .ak-call { grid-template-columns: 1fr; gap: 32px; padding: 96px 0 64px; }
  .ak-band { clip-path: none !important; }
}

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