/* Shared shell for the page mockups: the shipped site's tokens, base, header and footer
   (agency150/website styles/tokens.css, styles/base.css, components/site/*). Pages add their own CSS. */

:root {
  --vega-navy: #1b1b4f;
  --vega-indigo: #2b3990;
  --vega-blue: #1099d6;
  --bright-blue: #27aae1;
  --vega-baby-blue: #dbe8f3;
  --vega-light-grey: #f4f6f8;

  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --col: min(36rem, 40vw);
  --wrap: 80rem;
  --frame: calc(var(--wrap) + 2 * var(--gutter));
  --nav-h: 88px;
  --bar-size: 56px;
  --bar-h: 0px;
  --section: clamp(72px, 10vw, 136px);
}

@media (max-width: 991px) {
  :root {
    --nav-h: 76px;
    --bar-size: 52px;
    --col: 100%;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --paper: #ffffff;
  --ink: var(--vega-navy);
  --ink-2: #474a74;
  --ink-3: #5f6384;
  --dot: #c9d6e2;
  --rule: #dbe3ec;
  --rule-ink: rgba(27, 27, 79, 0.3);
  --t1: var(--vega-navy);
  --t2: var(--vega-indigo);
  --t3: var(--vega-blue);
  --t4: var(--bright-blue);
  --accent: var(--vega-blue);
  --label-accent: var(--vega-indigo);
  --btn-bg: var(--vega-navy);
  --btn-fg: #ffffff;
  --btn-hover-bg: var(--vega-indigo);
  --btn-hover-fg: #ffffff;
  --bar-bg: #ffffff;
  --bar-rule: #dbe3ec;
  --shot-bg: var(--vega-light-grey);
  --film-bg: var(--vega-indigo);
  --selection-bg: var(--vega-baby-blue);
  --selection-fg: var(--vega-navy);
  --logo-filter: none;
  --mark-filter: brightness(0);
  --shot-filter: none;
  --c-field: #a9bdd0;
  --c-field-dim: #e2e9f0;
  --c-lit: #1099d6;
  --c-leader: rgba(27, 27, 79, 0.42);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1030;
  --ink: #eef3f8;
  --ink-2: #aeb9cf;
  --ink-3: #8f9bb7;
  --dot: #3a4674;
  --rule: #26285c;
  --rule-ink: rgba(219, 232, 243, 0.3);
  --t1: #dbe8f3;
  --t2: #8a97e8;
  --t3: #1099d6;
  --t4: #27aae1;
  --accent: #27aae1;
  --label-accent: #a8b5f4;
  --btn-bg: #27aae1;
  --btn-fg: #0f1030;
  --btn-hover-bg: #eef3f8;
  --btn-hover-fg: #0f1030;
  --bar-bg: #1b1b4f;
  --bar-rule: rgba(219, 232, 243, 0.18);
  --shot-bg: #1b1b4f;
  --film-bg: #1b1b4f;
  --selection-bg: #2b3990;
  --selection-fg: #eef3f8;
  --logo-filter: brightness(0) invert(1);
  --mark-filter: brightness(0) invert(1);
  --shot-filter: brightness(0.92);
  --c-field: #4a5a85;
  --c-field-dim: #1c2150;
  --c-lit: #27aae1;
  --c-leader: rgba(219, 232, 243, 0.45);
  scrollbar-color: #3a4674 #0f1030;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--bar-h);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 991px) {
  h1 {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }
}

p,
figure,
blockquote {
  margin: 0;
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-2);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.skip:focus {
  top: 12px;
}

.frame {
  max-width: var(--frame);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section);
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1.0625rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule-ink);
  transition: text-decoration-color 0.2s ease-out;
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-link:hover {
  text-decoration-color: var(--accent);
}

.arrow-link:hover svg {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

/* Copy the mockup has no source for yet: visible, never mistaken for real copy */
.tbd {
  outline: 1px dashed var(--ink-3);
  outline-offset: 3px;
  color: var(--ink-3);
}

.source {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* Hero nav */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--frame);
  margin-inline: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: block;
}

.logo img {
  width: auto;
  height: 44px;
}

.logo img,
.bar__logo img {
  filter: var(--logo-filter);
}

.nav__tag {
  padding-left: 18px;
  border-left: 1px solid var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu ul a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.menu ul a:hover,
.menu ul a[aria-current] {
  text-decoration: underline;
}

.toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.bars,
.bars::before {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease-out;
}

.bars {
  transform: translateY(-4px);
}

.bars::before {
  content: "";
  transform: translateY(8px);
}

.toggle[aria-expanded="true"] .bars {
  transform: rotate(45deg);
}

.toggle[aria-expanded="true"] .bars::before {
  transform: rotate(-90deg);
}

/* Condensed bar */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: var(--bar-bg);
  border-bottom: 1px solid var(--bar-rule);
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.2s ease-out,
    visibility 0s linear 0.2s;
}

.bar.on {
  transform: none;
  visibility: visible;
  transition: transform 0.2s ease-out;
}

.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--frame);
  height: calc(var(--bar-size) - 1px);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bar__logo img {
  width: auto;
  height: 28px;
}

.bar .btn {
  min-height: 40px;
}

.bar .bar__cta {
  display: none;
}

@media (max-width: 1199px) {
  .logo img {
    height: 40px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .nav__tag {
    padding-left: 0;
    border-left: 0;
    font-size: 0.8125rem;
  }

  .menu ul {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .nav {
    background: var(--paper);
  }

  .logo img {
    height: 33px;
  }

  .brand {
    gap: 4px;
  }

  .nav__tag {
    font-size: 0.75rem;
  }

  .bar__logo {
    min-width: 0;
  }

  .bar__logo img {
    height: auto;
    max-height: 26px;
  }

  .bar .bar__cta {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0 14px;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .bar .menu .btn {
    display: none;
  }

  .toggle {
    display: block;
    flex-shrink: 0;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 12px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .bar .menu {
    background: var(--bar-bg);
    border-bottom-color: var(--bar-rule);
  }

  .toggle[aria-expanded="true"] + .menu {
    display: flex;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .menu ul a {
    display: block;
    padding: 10px 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
}

/* Footer */
.foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  max-width: var(--frame);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 32px;
  font-size: 0.9375rem;
}

.foot::before {
  content: "";
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  margin-bottom: 16px;
}

.foot__logo img {
  width: 116px;
}

.foot__logo img,
.foot__badge {
  filter: var(--logo-filter);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot ul a {
  display: inline-block;
  padding: 10px 0;
  text-decoration: none;
}

.foot ul a:hover {
  text-decoration: underline;
}

.foot__badge {
  width: auto;
  height: 44px;
}

.compliance {
  text-decoration: none;
}

.foot .compliance ul {
  gap: 12px 0;
}

.compliance li {
  display: grid;
  padding-right: 24px;
  line-height: 1.35;
}

.compliance li + li {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.compliance b {
  font-weight: 600;
}

.compliance span {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.compliance:hover b {
  text-decoration: underline;
}

.legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.foot .legal a {
  padding: 6px 0;
}

@media (max-width: 991px) {
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .foot .compliance ul {
    gap: 12px 32px;
  }

  .compliance li,
  .compliance li + li {
    padding: 0;
    border-left: 0;
  }
}

/* Review chrome: jump between versions of the same page. Not part of the design. */
.review {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #0b0b22;
  color: #eef3f8;
  font: 600 0.75rem/1 var(--font-sans);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.review a,
.review span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: inherit;
  text-decoration: none;
}

.review a:hover {
  background: #26285c;
}

.review a[aria-current] {
  background: #27aae1;
  color: #0f1030;
}

.review span {
  color: #8f9bb7;
}

@media print {
  .review {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
