/**
 * AI Protection marketing + conversion header — Signal chrome
 * Cobalt #3664ef / hover #1f53e6 · radius 0 · 2px ink · hard offset shadows
 */
:root {
  --ap-bg: #f0f1f3;
  --ap-surface: #ffffff;
  --ap-ink: #0e1116;
  --ap-body: #49505f;
  --ap-muted: #6b7280;
  --ap-cobalt: #3664ef;
  --ap-cobalt-ink: #1f53e6;
  --ap-cobalt-soft: #e8effe;
  --ap-signal: #e23b3b;
  --ap-hair: #d3d8e2;
  --ap-display: "Space Grotesk", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ap-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  --ap-wordmark: "Schibsted Grotesk", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ap-shadow-ink: 5px 5px 0 var(--ap-ink);
  --ap-maxw: 1240px;
  --ap-gutter: 28px;
  --ap-nav-h: 72px;
  --ap-anim: 140ms;
}

.ap-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ap-ink); color: var(--ap-bg);
  padding: 12px 20px; font-family: var(--ap-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.ap-skip:focus { left: 0; }

.ap-hdr, .ap-hdr * { box-sizing: border-box; }
.ap-hdr {
  font-family: var(--ap-display);
  position: sticky; top: 0; z-index: 50;
  background: var(--ap-surface);
  border-bottom: 2px solid var(--ap-ink);
  color: var(--ap-ink);
}
.ap-hdr a { color: inherit; }
.ap-hdr :focus-visible {
  outline: 3px solid var(--ap-cobalt);
  outline-offset: 2px;
  border-radius: 0;
}

.ap-ribbon-host:empty,
.ap-ribbon-host[aria-hidden="true"]:empty { display: none; }
.ap-ribbon {
  background: var(--ap-ink); color: #fff; font-size: 0.8rem;
  padding: 9px var(--ap-gutter); display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--ap-ink);
}
.ap-ribbon__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ap-signal); flex: none;
}
.ap-ribbon a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ap-ribbon__dismiss {
  margin-left: auto; background: transparent; border: 0;
  color: #9aa3b2; cursor: pointer; font: inherit;
  min-height: 44px; min-width: 44px; padding: 4px 8px;
}

.ap-hdr__bar {
  max-width: var(--ap-maxw); margin: 0 auto; height: var(--ap-nav-h);
  padding: 0 var(--ap-gutter); display: flex; align-items: center; gap: 28px;
  border-left: 2px solid var(--ap-ink); border-right: 2px solid var(--ap-ink);
  position: relative; background: var(--ap-surface);
}

.ap-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex: none; color: var(--ap-ink);
}
.ap-brand:hover { text-decoration: none; }
.ap-brand__lockup { height: 32px; width: auto; display: block; }
span.ap-brand { cursor: default; }

.ap-nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.ap-nav__link, .ap-nav__trigger {
  font-family: var(--ap-display); font-size: 0.9rem; font-weight: 500;
  color: var(--ap-ink); text-decoration: none; background: transparent;
  border: 0; border-bottom: 2px solid transparent;
  padding: 8px 10px; cursor: pointer; line-height: 1.2;
  white-space: nowrap; display: inline-flex; align-items: center;
  gap: 5px; border-radius: 0;
}
.ap-nav__link:hover, .ap-nav__trigger:hover {
  color: var(--ap-cobalt-ink); border-bottom-color: var(--ap-cobalt);
  text-decoration: none;
}
.ap-nav__trigger[aria-expanded="true"] {
  color: var(--ap-cobalt-ink); border-bottom-color: var(--ap-cobalt);
}
.ap-nav__caret { font-size: 0.7rem; color: var(--ap-body); line-height: 1; }

.ap-rail {
  display: flex; align-items: center; gap: 12px; flex: none; margin-left: 8px;
}
.ap-rail__signin {
  font-family: var(--ap-display); font-size: 0.9rem; font-weight: 500;
  color: var(--ap-body); text-decoration: none; padding: 8px 10px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.ap-rail__signin:hover {
  color: var(--ap-ink); border-bottom-color: var(--ap-hair); text-decoration: none;
}
.ap-rail__reassure {
  font-size: 0.84rem; font-weight: 500; color: var(--ap-body); white-space: nowrap;
}

.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0.7rem 1.35rem;
  border: 2px solid var(--ap-cobalt); border-radius: 0;
  font-family: var(--ap-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  background: var(--ap-cobalt); color: #fff;
  transition: box-shadow 0.12s linear, transform 0.12s linear, background 0.12s linear;
  white-space: nowrap;
}
.ap-btn:hover {
  text-decoration: none; transform: translate(-2px, -2px);
  background: var(--ap-cobalt-ink); border-color: var(--ap-cobalt-ink);
  box-shadow: var(--ap-shadow-ink); color: #fff;
}
.ap-btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }

.ap-toggle {
  display: none; margin-left: auto; background: transparent;
  border: 2px solid var(--ap-ink); width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
  padding: 0; border-radius: 0; flex: none;
}
.ap-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ap-ink); position: relative;
}
.ap-toggle span::before, .ap-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ap-ink);
}
.ap-toggle span::before { top: -6px; }
.ap-toggle span::after { top: 6px; }
.ap-toggle[aria-expanded="true"] span { background: transparent; }
.ap-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ap-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.ap-mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ap-surface);
  border-bottom: 2px solid var(--ap-ink);
  border-left: 2px solid var(--ap-ink);
  border-right: 2px solid var(--ap-ink);
  box-shadow: var(--ap-shadow-ink); z-index: 60;
  padding: 28px var(--ap-gutter) 26px;
  max-width: var(--ap-maxw); margin: 0 auto;
}
.ap-mega[data-open="true"] { display: block; }
.ap-mega__inner { display: grid; gap: 28px; }
.ap-mega__inner--2 { grid-template-columns: 1fr 1.1fr; }
.ap-mega__inner--3 { grid-template-columns: 1fr 1fr 1.05fr; }
.ap-mega__inner--4 { grid-template-columns: 1fr 1fr 1fr 1.05fr; }
.ap-mega__col h4 {
  font-family: var(--ap-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ap-body);
  margin: 0 0 12px;
}
.ap-mega__link {
  display: block; text-decoration: none; padding: 10px 12px;
  margin: 0 -12px 2px; border: 1px solid transparent; border-radius: 0;
  color: var(--ap-ink);
}
.ap-mega__link:hover {
  background: var(--ap-cobalt-soft); border-color: var(--ap-hair); text-decoration: none;
}
.ap-mega__label {
  display: block; font-size: 0.92rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ap-ink); line-height: 1.35;
}
.ap-mega__desc {
  display: block; font-size: 0.8rem; color: var(--ap-body);
  margin-top: 2px; line-height: 1.4; font-weight: 400;
}
.ap-mega__badge {
  display: inline-block; margin-left: 8px; font-family: var(--ap-mono);
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ap-cobalt-ink);
  border: 1px solid var(--ap-cobalt); padding: 1px 6px; vertical-align: 2px;
}
.ap-mega__more {
  display: inline-block; margin-top: 10px; font-size: 0.84rem;
  font-weight: 600; color: var(--ap-cobalt); text-decoration: none;
}
.ap-mega__more:hover { color: var(--ap-cobalt-ink); text-decoration: underline; }
.ap-mega__note { font-size: 0.82rem; color: var(--ap-muted); margin: 0 0 8px; }

.ap-promo {
  background: var(--ap-cobalt-soft); border: 2px solid var(--ap-ink);
  border-radius: 0; padding: 20px; box-shadow: var(--ap-shadow-ink);
}
.ap-promo__kicker {
  font-family: var(--ap-display); font-size: 1.5rem; font-weight: 700;
  color: var(--ap-cobalt); display: block; line-height: 1;
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.ap-promo h5 {
  font-family: var(--ap-display); font-size: 1rem; font-weight: 700;
  color: var(--ap-ink); margin: 0 0 6px; letter-spacing: -0.015em;
}
.ap-promo p {
  font-size: 0.83rem; margin: 0 0 14px; line-height: 1.5;
  color: var(--ap-body); max-width: none;
}
.ap-promo .ap-btn { font-size: 0.85rem; min-height: 40px; padding: 0.5rem 1rem; }

.ap-drawer-root {
  display: none; position: fixed; inset: 0; z-index: 80;
}
.ap-drawer-root[data-open="true"] { display: block; }
.ap-drawer__scrim {
  position: absolute; inset: 0; background: rgba(14, 17, 22, 0.45);
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.ap-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(100%, 400px); background: var(--ap-surface);
  border-left: 2px solid var(--ap-ink);
  display: flex; flex-direction: column; overflow: hidden;
}
.ap-drawer__head {
  display: flex; align-items: center; height: var(--ap-nav-h);
  padding: 0 16px; border-bottom: 2px solid var(--ap-ink); flex: none;
}
.ap-drawer__close {
  margin-left: auto; width: 44px; height: 44px;
  border: 2px solid var(--ap-ink); background: transparent;
  cursor: pointer; font-size: 1.35rem; line-height: 1;
  border-radius: 0; color: var(--ap-ink);
}
.ap-drawer__panels { position: relative; flex: 1; overflow: hidden; }
.ap-drawer__panel {
  position: absolute; inset: 0; overflow-y: auto; padding: 8px 0 24px;
  background: var(--ap-surface); transform: translateX(100%);
  transition: transform var(--ap-anim) ease; z-index: 1;
}
.ap-drawer__panel[data-active="true"] { transform: translateX(0); z-index: 2; }
.ap-drawer__panel.is-behind { transform: translateX(-28%); z-index: 0; }

.ap-drawer__cta { padding: 16px 18px 8px; display: grid; gap: 10px; }
.ap-drawer__cta .ap-btn { width: 100%; min-height: 48px; }

.ap-drawer__row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 12px 18px; font-size: 1.02rem; font-weight: 600;
  color: var(--ap-ink); border-bottom: 1px solid var(--ap-hair);
  text-decoration: none; background: transparent;
  border-left: 0; border-right: 0; border-top: 0; width: 100%;
  cursor: pointer; font-family: inherit; text-align: left; border-radius: 0;
}
.ap-drawer__row:hover {
  color: var(--ap-cobalt-ink); text-decoration: none; background: var(--ap-cobalt-soft);
}
.ap-drawer__row .chev { color: var(--ap-body); font-weight: 400; font-size: 1.15rem; }
.ap-drawer__back {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 18px; font-size: 0.92rem; font-weight: 600;
  color: var(--ap-cobalt-ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--ap-hair); width: 100%; cursor: pointer;
  font-family: inherit; text-align: left;
}
.ap-drawer__section {
  padding: 14px 18px 4px; font-family: var(--ap-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ap-body);
}
.ap-drawer__sublink {
  display: block; min-height: 48px; padding: 12px 18px;
  border-bottom: 1px solid var(--ap-hair); color: var(--ap-ink); text-decoration: none;
}
.ap-drawer__sublink:hover { background: var(--ap-cobalt-soft); text-decoration: none; }
.ap-drawer__sublabel { display: block; font-size: 0.98rem; font-weight: 500; }
.ap-drawer__subdesc {
  display: block; font-size: 0.8rem; color: var(--ap-body); margin-top: 2px; font-weight: 400;
}
.ap-drawer__signin { font-weight: 500; color: var(--ap-body); }
.ap-drawer__ribbon-slot {
  margin-top: auto; padding: 14px 18px; border-top: 2px solid var(--ap-ink);
  font-size: 0.82rem; color: var(--ap-body); background: var(--ap-bg);
}
.ap-drawer__ribbon-slot:empty { display: none; }
/* ribbon.js copies the ribbon's children (not the .ap-ribbon wrapper) here. */
.ap-drawer__ribbon-slot:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ap-drawer__ribbon-slot a { text-decoration: underline; text-underline-offset: 3px; }
.ap-drawer__ribbon-slot .ap-ribbon__dismiss { min-height: 32px; }

.ap-sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--ap-surface); border-top: 2px solid var(--ap-ink);
}
.ap-sticky-cta .ap-btn { width: 100%; min-height: 48px; }

body.ap-drawer-open { overflow: hidden; }

@media (max-width: 1080px) {
  .ap-hdr--marketing .ap-nav,
  .ap-hdr--marketing .ap-rail { display: none; }
  .ap-hdr--marketing .ap-toggle { display: flex; }
  .ap-hdr--conversion .ap-rail { display: flex; margin-left: auto; }
  .ap-hdr--conversion .ap-rail__reassure { display: none; }
  .ap-hdr--conversion .ap-toggle { display: none; }
}
@media (max-width: 720px) {
  .ap-hdr--conversion .ap-rail .ap-btn { display: none; }
  body[data-header-variant="conversion"] .ap-sticky-cta { display: block; }
  body[data-header-variant="conversion"] { padding-bottom: 76px; }
}
@media (max-width: 860px) {
  .ap-mega__inner--3, .ap-mega__inner--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ap-mega__inner--2, .ap-mega__inner--3, .ap-mega__inner--4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-btn { transition: none; }
  .ap-btn:hover { transform: none; }
  .ap-drawer__panel { transition: none; }
  .ap-mega, .ap-drawer-root * { transition: none !important; animation: none !important; }
}


/* HTML naming aliases */
.ap-skip { position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ap-ink); color: var(--ap-bg); padding: 12px 20px;
  font-family: var(--ap-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; }
.ap-skip:focus { left: 0; }
.ap-mega__note { font-size: 0.82rem; color: var(--ap-muted); margin: 0 0 8px; }
.ap-promo__kicker { font-family: var(--ap-display); font-size: 1.5rem; font-weight: 700;
  color: var(--ap-cobalt); display: block; line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.ap-drawer__head { display: flex; align-items: center; height: var(--ap-nav-h);
  padding: 0 16px; border-bottom: 2px solid var(--ap-ink); flex: none; }
.ap-drawer__cta { padding: 16px 18px 8px; display: grid; gap: 10px; }
.ap-drawer__cta .ap-btn { width: 100%; min-height: 48px; }
.ap-drawer__ribbon-slot { margin-top: auto; padding: 14px 18px; border-top: 2px solid var(--ap-ink);
  font-size: 0.82rem; color: var(--ap-body); background: var(--ap-bg); }
.ap-drawer__ribbon-slot:empty { display: none; }
.ap-drawer__subdesc { display: block; font-size: 0.8rem; color: var(--ap-body); margin-top: 2px; font-weight: 400; }
.ap-drawer__row .chev { color: var(--ap-body); font-weight: 400; font-size: 1.15rem; }
