/*
  northloop.com.br: the home's layout (NOR-740), materialized from the Claude Design project "Northloop site" (Home).
  Tokens and the .nl-* vocabulary come from northloop.css, generated from the design system's copy in packages/ui; this
  file only lays the page out and reads tokens: the display scale, the product lockup and the photo-surface tokens are
  the design system's since 1.46.0 (NOR-743, NOR-744), and the enlarged mark in the hero is its documented brand
  supergraphic (NOR-745, assets/Logo/README.md). Class names are the site's own (`site-*`), never `nl-*`: that prefix
  belongs to the design system. The document rules below mirror @northloop/ui/base.css by hand (its
  body rules are the applications'); a change there is applied here on purpose.
*/

/* Inter, self-hosted: the same files the applications ship (@fontsource-variable/inter), copied by scripts/build.mjs. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ document */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: light;
  /* The sticky header's height: what sections and headings scroll under. */
  --site-header-height: 64px;
}
html[data-theme='dark'] {
  color-scheme: dark;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}
/* Zero specificity: a design-system class always outranks the default link colour. */
:where(a) {
  color: var(--northloop-link);
}
:where(a:hover) {
  color: var(--northloop-text);
}
a.nl-btn {
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--northloop-focus);
  outline-offset: 2px;
}
.site-muted {
  color: var(--northloop-text-muted);
}
.site-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--northloop-space-3);
}
.site-defs {
  position: absolute;
}
.site-product-icon {
  flex: none;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--northloop-bg);
  border-bottom: 1px solid var(--northloop-border-subtle);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--northloop-space-7);
  min-height: var(--site-header-height);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
  border-radius: var(--northloop-radius-md);
}
.site-brand__mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  margin-right: 6px;
}
.site-brand__wordmark {
  display: block;
  height: 26px;
  width: auto;
}
.site-brand__wordmark--dark,
[data-theme='dark'] .site-brand__wordmark--light {
  display: none;
}
[data-theme='dark'] .site-brand__wordmark--dark {
  display: block;
}
.site-nav {
  display: flex;
  gap: var(--northloop-space-1);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--northloop-space-2);
  margin-left: auto;
}
/* The two toggles need the script; without it the navigation is inline and the page stays in the light theme. */
.site-theme-toggle,
.site-menu-toggle {
  display: none;
}
.js .site-theme-toggle {
  display: inline-flex;
}
.site-theme-toggle__sun,
[data-theme='dark'] .site-theme-toggle__moon {
  display: none;
}
[data-theme='dark'] .site-theme-toggle__sun {
  display: block;
}
.site-menu {
  display: grid;
  gap: var(--northloop-space-4);
  padding: var(--northloop-space-2) 0 var(--northloop-space-5);
}
.site-menu[hidden] {
  display: none;
}
.site-menu__actions {
  display: grid;
  gap: var(--northloop-space-2);
}
@media (min-width: 768px) {
  .site-menu {
    display: none;
  }
}
@media (max-width: 767px) {
  .site-header__bar {
    flex-wrap: wrap;
    gap: var(--northloop-space-3);
  }
  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
  .js .site-nav,
  .js .site-header__cta {
    display: none;
  }
  .js .site-menu-toggle {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------------ hero */
.site-main {
  overflow-x: clip;
}
.site-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(72px, 9vw, 120px);
}
/* Architectural photograph at 20%, behind everything; the hero stands without it. */
.site-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background: url(hero-architecture.jpg) 50% 50% / cover no-repeat;
}
.site-hero__inner {
  position: relative;
  z-index: 1;
}
.site-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--northloop-space-8) var(--northloop-space-6);
  align-items: center;
  min-height: min(calc(100vh - 160px), 760px);
}
.site-hero__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--northloop-space-7);
  justify-items: start;
}
.site-hero__lede {
  max-width: 30rem;
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}
.site-hero__art {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
@media (min-width: 1024px) {
  .site-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .site-hero__art {
    margin-right: calc(-1 * min(4vw, 48px));
  }
}

/* Echoes of the mark's strokes, drawn outward on load, each with a short dash travelling along it. */
.site-echoes {
  position: absolute;
  left: -150%;
  top: -150%;
  width: 400%;
  height: 400%;
  pointer-events: none;
  overflow: visible;
}
.site-echo {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2600ms cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0ms);
}
.site-echo--a {
  stroke: var(--northloop-border-subtle);
}
.site-echo--b {
  stroke: var(--northloop-color-accent);
}
.site-run {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 0.07 0.93;
  opacity: 0;
  animation:
    site-loop-in 1600ms ease var(--fade-delay, 0ms) forwards,
    site-loop-run var(--run, 7s) linear var(--run-delay, 0s) infinite var(--direction, normal);
}
.site-run--a {
  stroke: var(--northloop-color-mid);
  --direction: reverse;
}
.site-run--b {
  stroke: var(--northloop-color-accent);
}
/* The mark itself, large and at 18% (NOR-745), at the centre of the echoes. */
.site-mark-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0.18;
  transform: scale(1.15);
  transform-origin: 50% 50%;
  transition: opacity 3600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-mark-art path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 3600ms cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0ms);
}
/* The light-gray loop would vanish on the light ground: mid there, light on dark (NOR-745). */
.site-mark-art__a {
  stroke: var(--northloop-color-mid);
}
[data-theme='dark'] .site-mark-art__a {
  stroke: var(--northloop-color-light);
}
.site-mark-art__b,
.site-mark-art__c {
  stroke: var(--northloop-color-accent);
}
@keyframes site-loop-run {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -1;
  }
}
@keyframes site-loop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* The two products, as fragments over the art. */
.site-fragment {
  position: absolute;
  display: grid;
  color: var(--northloop-text);
  text-decoration: none;
  border-radius: var(--northloop-radius-xl);
  transition:
    opacity 520ms var(--northloop-easing) var(--delay, 0ms),
    transform 520ms var(--northloop-easing) var(--delay, 0ms),
    border-color var(--northloop-duration-fast) var(--northloop-easing);
}
.site-fragment:hover {
  color: var(--northloop-text);
}
.site-fragment--leads {
  --delay: 300ms;
  left: 44%;
  top: 2%;
  width: min(340px, 56%);
  gap: var(--northloop-space-3);
  padding: var(--northloop-space-4);
  background: var(--northloop-surface);
  border: 1px solid var(--northloop-border-subtle);
  box-shadow: var(--northloop-shadow-sm);
}
.site-fragment--leads:hover,
.site-fragment--leads:focus-visible {
  border-color: var(--northloop-border);
}
.site-fragment--ads {
  --delay: 520ms;
  left: 0;
  top: 67%;
  width: min(280px, 48%);
  gap: var(--northloop-space-2);
  padding: var(--northloop-space-4) var(--northloop-space-5);
  background: var(--northloop-bg);
  border: 1.5px dashed var(--northloop-border);
}
.site-fragment--ads:hover,
.site-fragment--ads:focus-visible {
  border-color: var(--northloop-text-muted);
}
.site-fragment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--northloop-space-2);
}
.site-fragment__name {
  display: inline-flex;
  align-items: center;
  gap: var(--northloop-space-2);
}
.site-fragment__body {
  display: grid;
  gap: var(--northloop-space-2);
}
.site-fragment .nl-row-item {
  cursor: inherit;
}
.site-fragment__bubble {
  display: block;
  max-width: none;
}
.site-fragment__bubble-text {
  display: block;
  margin-top: var(--northloop-space-1);
  font-size: var(--northloop-font-size-secondary);
}
@media (max-width: 559px) {
  .site-fragment--leads {
    left: 24%;
    width: 76%;
  }
  .site-fragment--ads {
    width: 66%;
  }
  .site-fragment__bubble {
    display: none;
  }
}

/* The travelling dashes run only while the hero is on screen (site.js keeps `is-visible` on it) and never on a coarse
   pointer: every frame repaints the whole hero, which a phone cannot afford (NOR-757). The draw-in stays everywhere. */
.js .site-hero:not(.is-visible) .site-run {
  animation-play-state: paused;
}
@media (hover: none) and (pointer: coarse) {
  .site-run {
    display: none;
  }
}

/* Load-in: the script adds `js` at once and `is-drawn` after the first frames. Without a script the art is at rest. */
.js:not(.is-drawn) .site-echo,
.js:not(.is-drawn) .site-mark-art path {
  stroke-dashoffset: 1;
}
.js:not(.is-drawn) .site-mark-art {
  opacity: 0;
}
.js:not(.is-drawn) .site-run {
  animation: none;
}
.js:not(.is-drawn) .site-fragment {
  opacity: 0;
  transform: translateY(12px);
}

/* ------------------------------------------------------------------ sections */
.site-section {
  scroll-margin-top: var(--site-header-height);
  padding: clamp(72px, 9vw, 128px) 0;
}
.site-section--leads {
  background: var(--northloop-shell-surface);
  border-top: 1px solid var(--northloop-shell-border-subtle);
}
.site-section--ads {
  background: var(--northloop-surface);
  border-block: 1px solid var(--northloop-border-subtle);
}
.site-section--principles {
  background: linear-gradient(180deg, var(--northloop-bg) 0%, var(--northloop-primary-soft) 100%);
}
.site-section__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--northloop-space-7) var(--northloop-space-10);
}
.site-section__intro--leads {
  scroll-margin-top: 96px;
  margin-bottom: var(--northloop-space-9);
}
.site-section__title {
  flex: 1 1 32rem;
  max-width: 46rem;
  display: grid;
  gap: var(--northloop-space-4);
}
.site-section__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--northloop-space-3);
}
.site-section__aside {
  flex: 1 1 20rem;
  max-width: 26rem;
  display: grid;
  gap: var(--northloop-space-5);
}
.site-section__aside p {
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}
.site-section__head {
  display: grid;
  gap: var(--northloop-space-4);
  max-width: 44rem;
  margin-bottom: var(--northloop-space-9);
}

/* ------------------------------------------------------------------ Inbox preview */
.site-preview {
  position: relative;
  perspective: 2400px;
  perspective-origin: 50% 0%;
}
.site-preview__frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 620px;
  overflow: hidden;
  background: var(--northloop-bg);
  border: 1px solid var(--northloop-border-subtle);
  border-radius: var(--northloop-radius-xl);
  box-shadow: var(--northloop-shadow-sm);
  font-size: var(--northloop-font-size-body);
  transform-origin: 50% 100%;
  will-change: transform;
  /* One row the height of the frame: a column's content never stretches it (the columns clip inside). */
  grid-template-rows: minmax(0, 1fr);
}
.site-preview__frame.is-tilted {
  box-shadow: var(--northloop-shadow-lg);
}
/* Full shell when there is room, then list and conversation, then the conversation alone. */
.site-preview__sidebar,
.site-preview__list,
.site-preview__thread,
.site-preview__panel {
  min-height: 0;
}
.site-preview__sidebar,
.site-preview__list,
.site-preview__panel {
  display: none;
}
.site-preview__sidebar {
  flex-direction: column;
  gap: var(--northloop-space-4);
  min-width: 0;
  padding: var(--northloop-space-4) var(--northloop-space-3);
  border-right: 1px solid var(--northloop-shell-border-subtle);
}
.site-preview__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--northloop-space-1) var(--northloop-space-2);
}
.site-preview__brand-name {
  color: var(--northloop-text);
  white-space: nowrap;
  font-size: var(--northloop-font-size-section);
  font-weight: var(--northloop-weight-page);
  letter-spacing: var(--northloop-tracking-section);
  line-height: 1.25;
}
.site-preview__brand-product {
  font-weight: 400;
}
.site-preview__sidebar .nl-ws__trigger {
  min-width: 0;
}
.site-preview__sidebar .nl-ws__text {
  min-width: 0;
  overflow: hidden;
}
.site-preview__dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--northloop-color-danger);
}
.site-preview__sidebar .nl-divider {
  margin: 0;
}
.site-preview__attention {
  margin-top: auto;
  display: grid;
  gap: 2px;
  padding: var(--northloop-space-3);
  border-radius: var(--northloop-radius-lg);
  background: var(--northloop-surface);
}
.site-preview__list {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--northloop-surface);
  border-right: 1px solid var(--northloop-border-subtle);
}
.site-preview__list-head {
  display: grid;
  gap: var(--northloop-space-2);
  padding: var(--northloop-space-4) var(--northloop-space-4) 0;
  border-bottom: 1px solid var(--northloop-border-subtle);
}
.site-preview__list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--northloop-space-2);
}
.site-preview__search {
  display: inline-flex;
  align-items: center;
  gap: var(--northloop-space-2);
  height: 32px;
  padding: 0 var(--northloop-space-2);
  border: 1px solid var(--northloop-border-subtle);
  border-radius: var(--northloop-radius-md);
  color: var(--northloop-text-muted);
  font-size: var(--northloop-font-size-secondary);
}
.site-preview__rows {
  display: grid;
  gap: 2px;
  padding: 0 var(--northloop-space-2) var(--northloop-space-2);
  overflow: hidden;
}
.site-preview__thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--northloop-bg);
}
.site-preview__thread-head {
  display: flex;
  align-items: center;
  gap: var(--northloop-space-3);
  min-height: 64px;
  padding: var(--northloop-space-3) var(--northloop-space-5);
  border-bottom: 1px solid var(--northloop-border-subtle);
  background: var(--northloop-surface);
}
.site-preview__thread-head .nl-avatar {
  width: 36px;
  height: 36px;
}
.site-preview__who {
  display: grid;
  min-width: 0;
}
.site-preview__stage {
  margin-left: auto;
  min-height: 36px;
  white-space: nowrap;
}
.site-preview__messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--northloop-space-3);
  padding: var(--northloop-space-5);
  overflow: hidden;
}
.site-preview__messages .nl-bubble {
  max-width: 80%;
}
.site-preview__messages .nl-bubble--ai {
  max-width: 88%;
  margin-left: auto;
}
.site-preview__ai-text {
  margin-top: var(--northloop-space-2);
}
.site-preview__ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--northloop-space-2);
  margin-top: var(--northloop-space-3);
}
.site-preview__composer {
  padding: 14px var(--northloop-space-6) var(--northloop-space-5);
  border-top: 1px solid var(--northloop-border-subtle);
}
.site-preview__composer .nl-composer__field {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--northloop-space-4);
  color: var(--northloop-text-muted);
  font-size: var(--northloop-font-size-secondary);
}
.site-preview__panel {
  flex-direction: column;
  gap: var(--northloop-space-5);
  min-width: 0;
  padding: var(--northloop-space-5);
  background: var(--northloop-surface);
  border-left: 1px solid var(--northloop-border-subtle);
}
.site-preview__block {
  display: grid;
  gap: var(--northloop-space-3);
}
.site-preview__panel .nl-timeline {
  padding: 0;
  list-style: none;
}
.site-preview__captions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--northloop-space-6);
  padding: var(--northloop-space-6) 0 0;
  list-style: none;
}
.site-caption {
  display: grid;
  gap: var(--northloop-space-2);
  align-content: start;
  padding-top: var(--northloop-space-3);
  border-top: 2px solid var(--northloop-color-accent);
}
.site-caption h3 {
  font-size: var(--northloop-font-size-body);
}
.site-caption p {
  color: var(--northloop-text-muted);
  font-size: var(--northloop-font-size-secondary);
  text-wrap: pretty;
}
.site-caption--spacer,
.site-caption--panel {
  display: none;
}
@media (min-width: 640px) {
  .site-preview__frame,
  .site-preview__captions {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .site-preview__list {
    display: flex;
  }
}
@media (min-width: 980px) {
  .site-preview__frame,
  .site-preview__captions {
    grid-template-columns: 300px minmax(0, 1fr) 264px;
  }
  .site-preview__panel {
    display: flex;
  }
  .site-caption--panel {
    display: grid;
  }
}
@media (min-width: 1180px) {
  .site-preview__frame,
  .site-preview__captions {
    grid-template-columns: 212px 300px minmax(0, 1fr) 264px;
  }
  .site-preview__sidebar {
    display: flex;
  }
  .site-caption--spacer {
    display: block;
  }
}

/* ------------------------------------------------------------------ the problem, before and after */
.site-problem {
  margin-top: clamp(72px, 8vw, 112px);
}
.site-problem__head {
  display: grid;
  gap: var(--northloop-space-4);
  max-width: 44rem;
  margin-bottom: var(--northloop-space-8);
}
.site-steps__labels {
  display: none;
}
.site-steps {
  display: grid;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--northloop-shell-border-subtle);
}
.site-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--northloop-space-3) var(--northloop-space-6);
  padding: var(--northloop-space-6) 0;
  border-top: 1px solid var(--northloop-shell-border-subtle);
}
.site-step__n {
  padding-top: 3px;
  color: var(--northloop-text-muted);
  font-size: var(--northloop-font-size-secondary);
}
.site-step__before {
  max-width: 28rem;
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}
.site-step__after {
  display: grid;
  gap: var(--northloop-space-2);
}
.site-step__after p {
  max-width: 32rem;
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}
@media (min-width: 820px) {
  .site-steps__labels {
    display: grid;
    grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--northloop-space-6);
    padding-bottom: var(--northloop-space-3);
  }
  .site-step {
    grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ------------------------------------------------------------------ principles */
.site-principles {
  display: grid;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--northloop-border-subtle);
}
.site-principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--northloop-space-3) var(--northloop-space-8);
  align-items: baseline;
  padding: var(--northloop-space-7) 0;
  border-top: 1px solid var(--northloop-border-subtle);
}
.site-principle p {
  max-width: 34rem;
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}
@media (min-width: 820px) {
  .site-principle {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ------------------------------------------------------------------ security */
.site-security {
  display: flex;
  flex-wrap: wrap;
  gap: var(--northloop-space-9) var(--northloop-space-10);
}
.site-security__intro {
  flex: 1 1 20rem;
  max-width: 26rem;
  display: grid;
  gap: var(--northloop-space-5);
  align-content: start;
}
.site-legal-links {
  display: grid;
  margin-top: var(--northloop-space-2);
  padding: 0;
  list-style: none;
}
.site-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--northloop-font-size-label);
  font-weight: var(--northloop-weight-strong);
}
.site-security__points {
  flex: 2 1 30rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--northloop-space-8) var(--northloop-space-7);
  align-content: start;
}
.site-point {
  display: grid;
  gap: var(--northloop-space-2);
  align-content: start;
  padding-top: var(--northloop-space-4);
  border-top: 1px solid var(--northloop-border);
}
.site-point dd {
  color: var(--northloop-text-muted);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ call to action, on the photograph */
/* The overlay and the button are the design system's photo-surface tokens, fixed in both themes (1.46.0, NOR-743). The
   ground under the photograph is the overlay colour, so the white text keeps its contrast while the file loads. */
.site-cta {
  color: var(--northloop-color-white);
  background:
    linear-gradient(
      90deg,
      color-mix(in oklab, var(--northloop-photo-overlay) 70%, transparent) 0%,
      color-mix(in oklab, var(--northloop-photo-overlay) 45%, transparent) 50%,
      color-mix(in oklab, var(--northloop-photo-overlay) 10%, transparent) 100%
    ),
    url(cta-bridge.jpg) 100% 50% / cover no-repeat,
    var(--northloop-photo-overlay);
}
.site-cta__inner {
  display: grid;
  gap: var(--northloop-space-5);
  justify-items: start;
  max-width: 40rem;
}
.site-cta .nl-eyebrow,
.site-cta p {
  color: var(--northloop-color-white);
}
.site-cta p {
  max-width: 32rem;
  text-wrap: pretty;
}
/* Size of the call to action's button; its colours come from .nl-btn--on-photo. */
.site-cta__button {
  display: inline-flex;
  align-items: center;
  gap: var(--northloop-space-3);
  min-height: 56px;
  margin-top: var(--northloop-space-4);
  padding: 0 var(--northloop-space-6) 0 var(--northloop-space-7);
  font-size: var(--northloop-font-size-body);
  font-weight: var(--northloop-weight-bold);
  border: 0;
  border-radius: var(--northloop-radius-md);
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  padding: var(--northloop-space-9) 0 var(--northloop-space-8);
  border-top: 1px solid var(--northloop-shell-border-subtle);
}
.site-footer .site-brand__mark {
  width: 28px;
  height: 28px;
}
.site-footer .site-brand__wordmark {
  height: 24px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--northloop-space-7);
}
.site-footer__col {
  display: grid;
  gap: var(--northloop-space-2);
  align-content: start;
}
.site-footer__links {
  display: grid;
  padding: 0;
  list-style: none;
}
.site-footer__links a,
.site-footer__links span {
  display: inline-flex;
  align-items: center;
  gap: var(--northloop-space-2);
  min-height: 44px;
  font-size: var(--northloop-font-size-label);
}
.site-footer__links span {
  color: var(--northloop-text-muted);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--northloop-space-4);
  margin-top: var(--northloop-space-8);
  padding-top: var(--northloop-space-5);
  border-top: 1px solid var(--northloop-shell-border-subtle);
}
.site-footer address {
  max-width: 40rem;
  font-style: normal;
  color: var(--northloop-text-muted);
}
.site-footer__legal p {
  color: var(--northloop-text-muted);
}

/* ------------------------------------------------------------------ documents (the legal pages, NOR-756) */
/* The site's document template, from the screen Documento of the Claude Design project: reading column, document header,
   navigation between the three documents, optional table of contents, body typography. Tokens only; `site-document-*`. */
.site-document {
  padding: var(--northloop-space-9) 0 var(--northloop-space-10);
}
.site-document__header {
  display: grid;
  gap: var(--northloop-space-3);
  justify-items: start;
}
.site-document__header .nl-page-title {
  text-wrap: balance;
}
.site-document__updated strong {
  font-weight: var(--northloop-weight-strong);
}
/* Navigation between the three documents: the system's tabs; below 560px a vertical list with the marker on the left. */
.site-document__nav {
  margin-top: var(--northloop-space-7);
  border-bottom: 1px solid var(--northloop-border-subtle);
}
.site-document__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--northloop-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-document__nav .nl-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px;
  font-size: var(--northloop-font-size-label);
}
.site-document__nav .nl-tab:hover {
  color: var(--northloop-text);
}
@media (max-width: 559px) {
  .site-document__nav {
    border-bottom: 0;
    border-left: 1px solid var(--northloop-border-subtle);
  }
  .site-document__nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-document__nav .nl-tab {
    display: flex;
    margin: 0 0 0 -1px;
    padding: 0 var(--northloop-space-4);
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .site-document__nav .nl-tab[aria-current='page'] {
    border-left-color: var(--northloop-text);
  }
}
.site-document__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--northloop-space-7);
  margin-top: var(--northloop-space-8);
}
/* Table of contents: a sticky column on the right from 1024px; below that, a closed <details> above the text. */
.site-document__toc {
  display: none;
}
@media (min-width: 1024px) {
  .site-document__layout--toc {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: var(--northloop-space-9);
  }
  .site-document__toc {
    display: grid;
    gap: var(--northloop-space-3);
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: calc(var(--site-header-height) + var(--northloop-space-6));
    max-height: calc(100vh - var(--site-header-height) - var(--northloop-space-9));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .site-document__toc-compact {
    display: none;
  }
}
.site-document__toc-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--northloop-border-subtle);
}
.site-document__toc-list a {
  display: flex;
  align-items: center;
  gap: var(--northloop-space-2);
  min-height: 44px;
  margin-left: -1px;
  padding: var(--northloop-space-1) var(--northloop-space-3);
  border-left: 2px solid transparent;
  color: var(--northloop-text-muted);
  font-size: var(--northloop-font-size-secondary);
  line-height: var(--northloop-line-tight);
  text-decoration: none;
  transition:
    color var(--northloop-duration-fast) var(--northloop-easing),
    border-color var(--northloop-duration-fast) var(--northloop-easing);
}
.site-document__toc-list a:hover {
  color: var(--northloop-text);
  border-left-color: var(--northloop-border);
}
.site-document__toc-list .site-document__n {
  min-width: 1.75em;
}
.site-document__toc-compact {
  border: 1px solid var(--northloop-border-subtle);
  border-radius: var(--northloop-radius-lg);
  background: var(--northloop-surface);
}
.site-document__toc-compact > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--northloop-space-3);
  min-height: 48px;
  padding: 0 var(--northloop-space-4);
  border-radius: var(--northloop-radius-lg);
  font-size: var(--northloop-font-size-label);
  font-weight: var(--northloop-weight-strong);
  cursor: pointer;
  list-style: none;
}
.site-document__toc-compact > summary::-webkit-details-marker {
  display: none;
}
.site-document__toc-compact > summary svg {
  flex: none;
  color: var(--northloop-text-muted);
  transition: transform var(--northloop-duration-fast) var(--northloop-easing);
}
.site-document__toc-compact[open] > summary svg {
  transform: rotate(180deg);
}
.site-document__toc-compact .site-document__toc-list {
  margin: 0 var(--northloop-space-4) var(--northloop-space-3);
}
/* Document body: the system's section-title, label and body sizes; a line of up to 40rem. */
.site-document-body {
  max-width: 40rem;
  color: var(--northloop-text);
}
.site-document-body > * + *,
.site-document-body section > * + * {
  margin-top: var(--northloop-space-4);
}
.site-document-body > section {
  margin-top: var(--northloop-space-8);
  padding-top: var(--northloop-space-7);
  border-top: 1px solid var(--northloop-border-subtle);
}
.site-document-body > section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.site-document-body :is(h2, h3) {
  scroll-margin-top: calc(var(--site-header-height) + var(--northloop-space-6));
  display: flex;
  align-items: baseline;
  gap: var(--northloop-space-2);
  line-height: var(--northloop-line-tight);
  text-wrap: balance;
}
.site-document-body h2 .site-document__n {
  min-width: 1.75em;
}
.site-document-body h3 {
  font-size: var(--northloop-font-size-body);
}
.site-document-body section > :not(h2) + h3 {
  margin-top: var(--northloop-space-7);
}
.site-document__n {
  flex: none;
  color: var(--northloop-text-muted);
  font-variant-numeric: tabular-nums;
}
.site-document-body p,
.site-document-body li {
  text-wrap: pretty;
}
.site-document-body strong {
  font-weight: var(--northloop-weight-strong);
}
.site-document-body :is(ul, ol) {
  padding-left: var(--northloop-space-6);
}
.site-document-body li + li {
  margin-top: var(--northloop-space-2);
}
.site-document-body li::marker {
  color: var(--northloop-text-muted);
}
.site-document-body ol > li {
  padding-left: var(--northloop-space-1);
}
.site-document-body a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  border-radius: var(--northloop-radius-sm);
}
.site-document-body code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--northloop-border-subtle);
  border-radius: var(--northloop-radius-sm);
  background: var(--northloop-surface-subtle);
  font-family: var(--northloop-font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.site-document__toc-compact > summary:focus-visible,
.site-document__toc-list a:focus-visible {
  outline-offset: 0;
}
@media (prefers-reduced-motion: reduce) {
  .site-document__toc-list a,
  .site-document__toc-compact > summary svg {
    transition: none;
  }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-echo,
  .site-mark-art,
  .site-mark-art path,
  .site-fragment {
    transition: none;
  }
  .site-run {
    display: none;
  }
  .js:not(.is-drawn) .site-echo,
  .js:not(.is-drawn) .site-mark-art path {
    stroke-dashoffset: 0;
  }
  .js:not(.is-drawn) .site-mark-art {
    opacity: 0.18;
  }
  .js:not(.is-drawn) .site-fragment {
    opacity: 1;
    transform: none;
  }
}
