/*
 * /security — Company spoke.
 *
 *  Editorial five-act page anchored on the dark base with one
 *  saturated teal band at Act 3 (the encryption story).  No
 *  gradients on brand fills; the band is SOLID #7ADAE6 with a
 *  clip-path curtain-wipe entry.
 *
 *  Cursor language: native pointer on every CTA + nav.  Cursor
 *  portal scoped to the compliance cards (interactive widgets
 *  with hover-reveal accent line) + back-to-top.  Per DESIGN.md
 *  cursor language rule.
 *
 *  Layout topology varies per act: asymmetric hero, grid,
 *  saturated band with sticky head, two-column columns,
 *  centered closer.
 */

@import url("../_ds/fonts.css");
@import url("../_ds/theme.css");
@import url("../_shared/chrome.css");
@import url("../_shared/components.css");
@import url("../_shared/audience-switcher.css");

/* Cursor portal scope — compliance cards are interactive (top
   accent line on hover); back-to-top is the universal entry. */
.back-to-top,
.sec-comp-card,
.sec-comp-card * { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   ACT 1 — Hero. Asymmetric: editorial stack left, status
   row to the right (or below on narrow viewports).
═══════════════════════════════════════════════════════════ */

.sec-act-1 {
  position: relative;
  padding: clamp(120px, 16vh, 180px) clamp(24px, 5vw, 56px) clamp(64px, 8vh, 96px);
  background: var(--surface);
}

.sec-act-1-frame {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
}

.sec-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sec-hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-hero-xl);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 14ch;
}

.sec-hero-em {
  font-style: normal;
  color: var(--text-primary);
}

.sec-hero-sub {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--mkt-body);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}

.sec-hero-cta {
  margin-top: clamp(8px, 1.2vh, 16px);
}

.sec-hero-talk { align-self: center; }

/* Status row — three at-a-glance compliance pills, hairline-
   bordered, transparent fill.  Each carries a small dot whose
   color encodes state (active=teal, in-progress=purple). */
.sec-status {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-status-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: transparent;
}

.sec-status-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ADAE6;
  margin-top: 6px;
}

.sec-status-item[data-state="progress"] .sec-status-dot {
  background: #7C4FE8;
}

.sec-status-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.sec-status-meta {
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════
   ACT 2 — Compliance grid. 3-col tile grid mirroring the
   /pricing primitives recipe: hairline + 14px radius +
   transparent fill; MCP-style top accent on hover; cursor
   portal.
═══════════════════════════════════════════════════════════ */

.sec-act-2 {
  position: relative;
  padding: clamp(96px, 12vh, 140px) clamp(24px, 5vw, 56px);
  background: var(--surface);
}

.sec-act-2-frame {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 64px);
}

.sec-act-2-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
}

.sec-act-2-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-h2);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.sec-act-2-sub {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 64ch;
}

.sec-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}

.sec-comp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2vw, 32px) clamp(20px, 1.8vw, 26px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease;
}

.sec-comp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7C4FE8 0%, #7ADAE6 35%, transparent 80%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.sec-comp-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.sec-comp-card:hover::before { opacity: 1; }

.sec-comp-grid.is-visible .sec-comp-card { opacity: 1; transform: translateY(0); }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(1) { transition-delay:   0ms; }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(2) { transition-delay:  60ms; }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(3) { transition-delay: 120ms; }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(4) { transition-delay: 180ms; }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(5) { transition-delay: 240ms; }
.sec-comp-grid.is-visible .sec-comp-card:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .sec-comp-card { opacity: 1; transform: none; transition: border-color 240ms ease; }
}

.sec-comp-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.sec-comp-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--mkt-h4);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.sec-comp-scope {
  margin: 0;
  font-family: var(--font-base);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

.sec-comp-state {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.sec-comp-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ADAE6;
}

.sec-comp-card[data-state="progress"] .sec-comp-dot {
  background: #7C4FE8;
}

/* ═══════════════════════════════════════════════════════════
   ACT 3 — Encryption (saturated teal band).  SOLID #7ADAE6,
   no gradient.  Curtain-wipe in from bottom via clip-path.
═══════════════════════════════════════════════════════════ */

.sec-act-3 {
  position: relative;
  padding: clamp(96px, 14vh, 160px) clamp(24px, 5vw, 56px);
  background: transparent;
  isolation: isolate;
  overflow: hidden;
}

.sec-act-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #7ADAE6;
  z-index: -1;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1100ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: clip-path;
}

.sec-act-3.is-revealed::before { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .sec-act-3::before { transition: none; clip-path: inset(0); }
}

.sec-act-3-frame {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.sec-act-3-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: clamp(80px, 10vh, 120px);
}

.sec-act-3-kicker { margin: 0; color: rgba(29, 22, 18, 0.7); }

.sec-act-3-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-hero);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: #1D1612;
}

.sec-act-3-sub {
  margin: 0;
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(29, 22, 18, 0.78);
}

.sec-enc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sec-enc-beat {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  padding: clamp(22px, 2.2vw, 32px) 0;
  border-bottom: 1px solid rgba(29, 22, 18, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sec-enc-beat:first-child { padding-top: 0; }
.sec-enc-beat:last-child  { border-bottom: none; padding-bottom: 0; }

.sec-enc-list.is-visible .sec-enc-beat              { opacity: 1; transform: translateY(0); }
.sec-enc-list.is-visible .sec-enc-beat:nth-child(1) { transition-delay:   0ms; }
.sec-enc-list.is-visible .sec-enc-beat:nth-child(2) { transition-delay: 120ms; }
.sec-enc-list.is-visible .sec-enc-beat:nth-child(3) { transition-delay: 240ms; }
.sec-enc-list.is-visible .sec-enc-beat:nth-child(4) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .sec-enc-beat { opacity: 1; transform: none; transition: none; }
}

.sec-enc-num {
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(29, 22, 18, 0.6);
  padding-top: 6px;
}

.sec-enc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-enc-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--mkt-h4);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1D1612;
}

.sec-enc-line {
  margin: 0;
  font-family: var(--font-base);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(29, 22, 18, 0.82);
  max-width: 52ch;
}

/* ═══════════════════════════════════════════════════════════
   ACT 4 — Access + Infrastructure (two-column lists).
   Editorial spec lists with hairline-divided rows, on dark.
═══════════════════════════════════════════════════════════ */

.sec-act-4 {
  position: relative;
  padding: clamp(96px, 12vh, 140px) clamp(24px, 5vw, 56px);
  background: var(--surface);
}

.sec-act-4-frame {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 64px);
}

.sec-act-4-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 64ch;
}

.sec-act-4-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--mkt-h2);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.sec-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}

.sec-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-col-head {
  margin: 0 0 14px;
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.sec-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sec-col-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 22px);
  padding: clamp(18px, 1.8vw, 24px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sec-col-row:last-child { border-bottom: none; padding-bottom: 0; }
.sec-col-row:first-child { padding-top: 0; }

.sec-col-num {
  font-family: var(--font-code, "IBM Plex Mono", monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding-top: 4px;
}

.sec-col-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.sec-col-line {
  margin: 0;
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48ch;
}

/* ═══════════════════════════════════════════════════════════
   ACT 5 — Closer.  Centered editorial on dark.
═══════════════════════════════════════════════════════════ */

.sec-act-5 {
  position: relative;
  padding: clamp(96px, 14vh, 160px) clamp(24px, 5vw, 56px) clamp(80px, 12vh, 140px);
  background: var(--surface);
}

.sec-act-5-frame {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2vw, 28px);
}

.sec-act-5-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}

.sec-act-5-sub {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--mkt-body);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
  text-wrap: pretty;
}

.sec-act-5-cta { margin-top: clamp(16px, 2vh, 28px); }

.sec-act-5-pack {
  margin-top: clamp(12px, 1.6vh, 20px);
  align-self: center;
}

/* ═══════════════════════════════════════════════════════════
   Wide-desktop tiers — same cadence as /pricing.
═══════════════════════════════════════════════════════════ */

@media (min-width: 1600px) {
  .sec-act-1-frame, .sec-act-2-frame, .sec-act-3-frame, .sec-act-4-frame {
    max-width: 1600px;
  }
  
  .sec-act-2-h2, .sec-act-4-h2 { font-size: clamp(40px, 3.4vw, 60px); }
  
  
}

@media (min-width: 1920px) {
  .sec-act-1-frame, .sec-act-2-frame, .sec-act-3-frame, .sec-act-4-frame {
    max-width: 1760px;
  }
}

@media (min-width: 2400px) {
  .sec-act-1-frame, .sec-act-2-frame, .sec-act-3-frame, .sec-act-4-frame {
    max-width: 2080px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Responsive — collapses.
═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .sec-act-1-frame { grid-template-columns: 1fr; gap: clamp(32px, 4vw, 48px); align-items: stretch; }
  .sec-comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sec-act-3-frame { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); }
  .sec-act-3-head { position: static; }
  .sec-cols { grid-template-columns: 1fr; gap: clamp(40px, 5vw, 56px); }
}

@media (max-width: 600px) {
  /* stack is a column here (global cta-stack--inline rule): left-align the
     secondary link under the button, not the row's vertical-centering. */
  .sec-hero-talk { align-self: flex-start; }
  .sec-act-1 { padding: clamp(96px, 14vh, 140px) clamp(20px, 5vw, 28px) clamp(48px, 6vh, 72px); }
  
  .sec-hero-sub { font-size: 14px; }
  .sec-act-2 { padding: clamp(64px, 10vh, 100px) clamp(20px, 5vw, 28px); }
  .sec-act-2-h2, .sec-act-4-h2 { font-size: var(--mkt-h4); }
  .sec-comp-grid { grid-template-columns: 1fr; }
  .sec-comp-card { padding: 20px; }
  .sec-act-3 { padding: clamp(72px, 11vh, 110px) clamp(20px, 5vw, 28px); }
  
  .sec-act-3-sub { font-size: 14px; }
  .sec-enc-beat { grid-template-columns: 40px 1fr; gap: 12px; }
  .sec-enc-name { font-size: 20px; }
  .sec-enc-line { font-size: 14px; }
  .sec-act-4 { padding: clamp(64px, 10vh, 100px) clamp(20px, 5vw, 28px); }
  .sec-col-row { grid-template-columns: 36px 1fr; gap: 12px; }
  .sec-col-name { font-size: 17px; }
  .sec-col-line { font-size: 13.5px; }
  .sec-act-5 { padding: clamp(72px, 11vh, 110px) clamp(20px, 5vw, 28px); }
  
  .sec-act-5-sub { font-size: 14px; }
}

/* ══════════════════════════════════════════════════════════
   BU light overrides.  Body bg recess + non-saturated hover
   border flipped.  --font-display auto-flips to Mq12 via the
   DS-level override in _shared/audience-switcher.css.
═══════════════════════════════════════════════════════════ */

html:not(.dark) body {
  background: var(--zen-gray-3);
  color: var(--text-primary);
}

/* .sec-comp-card hover border was rgba(255,255,255,0.18) on warm
   dark — invisible against light bg.  Flip to warm-dark alpha. */
html:not(.dark) .sec-comp-card:hover {
  border-color: rgba(29, 22, 18, 0.18);
}
