/* BetaWave shared shell: one header, footer, font set and button for every page.
   Classes start with bw- so they never collide with a product's own styles.
   The HTML comes from scripts/shell.mjs. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); }

.bw-head, .bw-foot {
  --bw-ink: #0d0f12; --bw-ink-2: #3f4550; --bw-rule: #d3d7de; --bw-wash: #f2f4fa; --bw-blue: #1740d0; --bw-blue-deep: #0f2fa3;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--bw-ink); background: #fff; line-height: 1.4;
}
.bw-head *, .bw-foot * { box-sizing: border-box; }
.bw-head ul, .bw-foot ul { list-style: none; margin: 0; padding: 0; }
.bw-head p, .bw-foot p { margin: 0; }
.bw-head a, .bw-foot a { color: inherit; }
.bw-head { position: relative; z-index: 30; }
.bw-skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; background: #0d0f12; color: #fff; font: 500 17px/1.4 "Schibsted Grotesk", system-ui, sans-serif; }
.bw-skip:focus { top: 12px; }
.bw-in { width: min(1280px, 100% - 64px); margin-inline: auto; }
.bw-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.bw-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; letter-spacing: -0.025em; text-decoration: none; white-space: nowrap; }
.bw-brand svg { width: 32px; height: 32px; flex: none; }
.bw-nav { display: flex; align-items: center; gap: 28px; }
.bw-nav > a, .bw-menu > summary { display: inline-block; padding-block: 8px; font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.bw-nav > a:hover, .bw-menu > summary:hover { color: var(--bw-blue); }
.bw-nav > a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.bw-call .bw-short, .bw-n { display: none; }
.bw-menu > summary { list-style: none; }
.bw-menu > summary::-webkit-details-marker { display: none; }
.bw-menu > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); }
.bw-menu[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.bw-menu { position: relative; }
.bw-panel { position: absolute; left: -26px; top: 100%; width: 340px; margin-top: -8px; padding: 8px 0 0; background: #fff; border: 2px solid var(--bw-ink); }
.bw-prods li + li { border-top: 1px solid var(--bw-rule); }
.bw-panel .bw-prods a { display: block; padding: 14px 24px; text-decoration: none; }
.bw-panel .bw-prods a:hover { background: var(--bw-wash); }
.bw-prods .bw-nm { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.bw-prods a:hover .bw-nm { color: var(--bw-blue); }
.bw-prods .bw-ds { display: block; margin-top: 2px; font-size: 16px; font-weight: 400; color: var(--bw-ink-2); }
.bw-prods .bw-tag { padding: 1px 6px; border: 1px solid var(--bw-blue); color: var(--bw-blue); font-size: 13px; font-weight: 500; line-height: 1.3; }
.bw-panel .bw-more a { display: inline-block; padding: 6px 0; font-size: 16px; font-weight: 500; text-decoration: none; }
.bw-panel .bw-more a:hover { color: var(--bw-blue); }
.bw-more { display: none; }
.bw-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 0; background: var(--bw-blue, #1740d0); color: #fff !important; font: 500 18px/1.2 "Schibsted Grotesk", system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease-out; }
.bw-btn:hover { background: var(--bw-blue-deep, #0f2fa3); }
/* The menu's link rule would otherwise override the button's centering. */
.bw-nav > a.bw-btn { display: inline-flex; padding-block: 0; }
.bw-head :focus-visible, .bw-foot :focus-visible { outline: 3px solid var(--bw-blue); outline-offset: 3px; }

.bw-foot { --bw-foot-ink: #ffffff; --bw-foot-dim: #b9c0cc; --bw-foot-rule: #2a2f38; padding-block: 64px 28px; font-size: 16px; background: #0d0f12; color: var(--bw-foot-dim); }
.bw-foot :focus-visible { outline-color: #ffffff; }
.bw-foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--bw-foot-rule); }
.bw-foot-big { color: var(--bw-foot-ink); font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.bw-foot-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bw-foot .bw-foot-btn { display: inline-flex; min-height: 50px; padding: 0 26px; font-size: 18px; font-weight: 500; background: #1740d0; }
.bw-foot .bw-foot-btn:hover { background: #2a55ee; }
.bw-foot .bw-foot-tel { color: var(--bw-foot-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #5d6675; }
.bw-foot .bw-foot-tel:hover { text-decoration-color: #ffffff; }
.bw-foot-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.bw-foot-about { display: grid; gap: 14px; line-height: 1.5; }
.bw-foot-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bw-foot-ink); font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.bw-foot-brand svg { width: 26px; height: 26px; flex: none; }
.bw-foot-brand svg path { fill: #ffffff; }
.bw-foot-about a { color: var(--bw-foot-ink); font-weight: 500; text-decoration: none; }
.bw-foot-about a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bw-foot-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.bw-foot h2 { margin: 0 0 14px; padding-top: 12px; border-top: 2px solid #1740d0; font: 700 16px/1.3 "Schibsted Grotesk", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--bw-foot-ink); }
.bw-foot-cols ul { display: grid; gap: 0; }
.bw-foot-trades ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.bw-foot a { display: inline-block; padding-block: 6px; }
.bw-foot-cols a { color: var(--bw-foot-dim); text-decoration: none; transition: color 120ms ease-out; }
.bw-foot-cols a:hover { color: var(--bw-foot-ink); text-decoration: underline; text-underline-offset: 3px; }
.bw-foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--bw-foot-rule); font-size: 15px; }
.bw-foot-bar a { color: var(--bw-foot-dim); }
.bw-foot-bar p a:hover { color: var(--bw-foot-ink); }
.bw-foot .bw-social { display: flex; gap: 10px; }
.bw-foot .bw-social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bw-foot-rule); border-radius: 50%; color: var(--bw-foot-ink); transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.bw-foot .bw-social svg { width: 19px; height: 19px; fill: currentColor; }
.bw-foot .bw-social a:hover { background: #1740d0; border-color: #1740d0; }
@media (max-width: 900px) {
  .bw-foot { padding-block: 48px 24px; }
  .bw-foot-cta { padding-bottom: 36px; margin-bottom: 36px; }
  .bw-foot-in { grid-template-columns: minmax(0, 1fr); }
  .bw-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-foot-trades { grid-column: 1 / -1; order: 3; }
  .bw-foot-bar { margin-top: 40px; }
}

/* 901px to 1100px: the full menu (with How it works) needs about 960px, or 1000px on Consulting pages. The phone number
   shortens to "Call", the gaps tighten and the Consulting button uses its short words, so nothing wraps or overlaps. */
@media (min-width: 901px) and (max-width: 1100px) {
  .bw-nav { gap: 18px; }
  .bw-call .bw-full, .bw-btn .bw-w { display: none; }
  .bw-call .bw-short, .bw-btn .bw-n { display: inline; }
}

@media (max-width: 900px) {
  .bw-in { width: calc(100% - 40px); }
  .bw-bar { gap: 12px; padding-block: 10px; }
  .bw-brand { font-size: 20px; gap: 8px; padding-block: 10px; }
  .bw-brand svg { width: 24px; height: 24px; }
  .bw-nav { gap: 14px; }
  .bw-nav > .bw-wide { display: none; }
  .bw-call .bw-full, .bw-w { display: none; }
  .bw-call .bw-short, .bw-n { display: inline; }
  .bw-nav > a, .bw-menu > summary { padding-block: 11px; }
  .bw-btn { min-height: 44px; padding: 0 14px; font-size: 16px; }
  .bw-menu { position: static; }
  .bw-panel { left: 0; right: 0; width: auto; margin-top: 0; }
  .bw-panel .bw-prods a { padding-block: 14px; }
  .bw-more { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 10px 24px 12px; background: var(--bw-wash); border-top: 2px solid var(--bw-ink); }
  .bw-panel .bw-more a { padding-block: 10px; }
}
@media (max-width: 420px) {
  .bw-in { width: calc(100% - 32px); }
  .bw-bar, .bw-nav { gap: 8px; }
  .bw-brand { font-size: 18px; gap: 6px; }
  .bw-menu > summary::after { margin-left: 6px; }
  .bw-btn { padding: 0 10px; }
}
@media (max-width: 350px) {
  .bw-brand svg { display: none; }
  .bw-btn { padding: 0 8px; font-size: 15px; }
}
/* "Call" fits beside Products and the button from 375px up (measured: the bar needs 337px). Below that it stays in the Products menu. */
@media (max-width: 374px) {
  .bw-nav > .bw-call { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bw-btn { transition: none; } }
@media print { .bw-skip, .bw-head, .bw-foot { display: none !important; } }
