:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1b1b1b;
  --border: rgba(255, 255, 255, 0.09);
  --border-mid: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.3);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.72);
  --dimmer: rgba(255, 255, 255, 0.48);
  --dimmest: rgba(255, 255, 255, 0.3);
  --accent: #0a84ff;
  --mandat-ink: #061b31;
  --mandat-accent: #533afd;
  --aktiebok-ink: #20242d;
  --aktiebok-accent: #254b38;
  --forening-ink: #0f172a;
  --forening-accent: #287a5d;
  --app-panel: #f2f3f6;
  --app-text: #0f1115;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 28px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.top h1 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.top h1 .wm {
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
}

.links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dim);
  font-size: 12px;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--border-mid);
  background: var(--surface2);
  color: var(--text);
  outline: none;
}

.links .material-icons {
  font-size: 14px;
  color: var(--dimmer);
}

/* wordmark */
.wm {
  display: inline-block;
  height: 12px;
  aspect-ratio: 1063 / 242;
  color: currentColor;
  vertical-align: -1px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.lockup .wm {
  height: 15px;
}

.lockup .divider {
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: currentColor;
  opacity: 0.4;
}

.lockup .descriptor {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---- the map grid: label | content | visibility gauge ---- */
.map {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  column-gap: 24px;
  row-gap: 0;
  align-items: stretch;
}

.lbl {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 4px 0;
}

.lbl .n {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--dimmest);
}

.lbl .t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lbl .s {
  font-size: 11px;
  color: var(--dimmer);
}

.band {
  padding: 6px 0;
}

.link {
  grid-column: 2;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 40px;
  font-size: 11px;
  color: var(--dimmer);
}

.link::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}

.link.dashed::before {
  border-left-style: dashed;
}

.link .material-icons {
  font-size: 14px;
  color: var(--dimmest);
  margin-right: 6px;
}

.link.two {
  justify-content: space-between;
  padding-right: 0;
}

.link.two span:last-child {
  position: relative;
  padding-left: 12px;
  margin-right: 30%;
}

.link.two span:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: -13px;
  bottom: -13px;
  border-left: 1px solid var(--line);
}

/* visibility gauge (right column) */
.gauge {
  grid-column: 3;
  grid-row: 1 / span 5;
  position: relative;
}

.gauge .bar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(255, 255, 255, 0.55) 80%,
    #ffffff 100%
  );
}

.gauge .cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimmest);
  white-space: nowrap;
}

.gauge .cap.top {
  top: -18px;
}

.gauge .cap.bottom {
  bottom: -18px;
  color: var(--dimmer);
}

/* rows of tiles */
.row {
  display: grid;
  gap: 12px;
}

.row.c3 {
  grid-template-columns: repeat(3, 1fr);
}

.row.c5 {
  grid-template-columns: repeat(5, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

/* white-label mini sites */
.site {
  border-radius: 10px;
  overflow: hidden;
  background: var(--pbg);
  color: var(--pink);
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 128px;
}

.site .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--pacc);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.site .hd .material-icons {
  font-size: 16px;
  opacity: 0.9;
}

.site .bd {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.site .ln {
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.14;
}

.site .ln.w60 {
  width: 60%;
}

.site .ln.w85 {
  width: 85%;
}

.site .ln.w40 {
  width: 40%;
}

.site .btn {
  margin-top: 4px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
}

.site .btn .wm {
  height: 8px;
}

.site .ft {
  padding: 6px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 9px;
  opacity: 0.6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.site .ft .wm {
  height: 7px;
}

/* own products */
.own {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.prod {
  border-radius: 10px;
  padding: 14px 14px 12px;
  background: #ffffff;
  color: var(--pink, var(--app-text));
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 92px;
}

.prod .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.6;
}

.prod .who .material-icons {
  font-size: 15px;
}

.prod .who i {
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--pacc);
}

.prod.app {
  background: var(--app-panel);
  color: var(--app-text);
}

.prod.app .lockup .wm {
  height: 17px;
}

/* third-party */
.third {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.tp {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pbg);
  color: var(--pink);
}

.tp .ic {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--pacc);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.tp .ic .material-icons {
  font-size: 20px;
}

.tp .nm {
  font-size: 13px;
  font-weight: 600;
}

.tp .nm small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.6;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.tp .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #0d0d0d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.tp .btn.quiet {
  background: transparent;
  color: var(--pink);
  border: 1px solid currentColor;
}

.tp .btn .wm {
  height: 8px;
}

/* platform */
.platform {
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: #000000;
  padding: 18px 20px;
  display: grid;
  gap: 14px;
}

.platform .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform .hd .wm {
  height: 24px;
}

.platform .hosts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 10.5px;
  color: var(--dimmer);
}

.platform .hosts span {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.prim {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.prim .material-icons {
  font-size: 24px;
  color: var(--text);
}

.prim .n {
  font-size: 12px;
  font-weight: 500;
}

.prim .m {
  font-size: 10px;
  color: var(--dimmer);
}

.prim .m .wm {
  height: 7px;
}

/* legend */
.legend {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 11px;
  color: var(--dimmer);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i.ln {
  width: 20px;
  border-top: 1px solid var(--line);
}

.legend i.ln.dashed {
  border-top-style: dashed;
}

.legend em {
  font-style: normal;
  font-size: 10px;
  padding: 1px 6px;
  border: 1px dashed var(--border-mid);
  border-radius: 4px;
  color: var(--dimmest);
}

@media (max-width: 900px) {
  .map {
    grid-template-columns: 1fr;
  }

  .gauge {
    display: none;
  }

  .lbl {
    padding-top: 18px;
  }

  .link {
    grid-column: 1;
  }

  .split,
  .row.c3,
  .own {
    grid-template-columns: 1fr;
  }

  .row.c5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .link.two span:last-child {
    display: none;
  }
}

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