/*-----------------------------------------------------
  terms.umh.app in the style of www.umh.app

  Only components that exist on umh.app are used here. Each one
  names the umh.app (Webflow) class it copies, and each token
  names the umh.app variable it copies.
-----------------------------------------------------*/

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-serif-4-v14-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-v14-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-v19-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-code-pro-v31-latin-regular.woff2') format('woff2');
}

:root {
  /* Colour palette (--_colorpalette---*) */
  --blue-25: #f6fbff;
  --blue-50: #f2f8ff;
  --blue-100: #e6ebff;
  --blue-200: #b0c1ff;
  --blue-300: #8aa3ff;
  --blue-600: #0036ff;
  --navy-25: #f1f1f1;
  --navy-400: #676d7a;
  --navy-600: #394255;
  --navy-800: #0f192e;
  --black: #02060d;
  --white: #fff;

  /* Colour system (--_colorsystem---*) */
  --primary: var(--blue-600);              /* primary */
  --surface: var(--white);                 /* surface */
  --surface-1: var(--navy-25);             /* surface-1 */
  --surface-highlight: var(--blue-25);     /* surface-highlight */
  --on-surface: var(--black);              /* onsurface */
  --on-surface-soft: var(--navy-600);      /* onsurface-soft, legal text on /impressum */
  --on-surface-softer: #4f5767;            /* onsurface-softer, body copy on /pricing */
  --on-surface-weak: var(--navy-400);      /* contents links on articles */
  --stroke: var(--blue-200);               /* specific--stroke */

  /* Type (--_typeset---*) */
  --font-serif: 'Source Serif 4', Georgia, serif;     /* fontfamily--primary */
  --font-sans: 'Source Sans 3', system-ui, sans-serif; /* fontfamily--secondary */
  --font-mono: 'Source Code Pro', monospace;          /* fontfamily--tertiary */
  --text-h1: 3.5rem;    /* fontsize--h1 */
  --text-h3: 2rem;      /* fontsize--h3, c-title-3 */
  --text-h5: 1.5rem;    /* fontsize--h5 */
  --text-t3: 1.125rem;
  --text-t4: 1rem;
  --text-t5: 0.875rem;
  --text-t6: 0.75rem;

  /* Layout (--_layout---*) */
  --radius-s: 0.25rem;           /* cornerradius--s */
  --site-width: 90rem;           /* sitegrid--width */
  --site-margin: 5rem;           /* sitegrid--margin */
  --gutter-base: 1.25rem;        /* sitegrid--gutter */
  --space-section: 5rem;         /* sectionpadding--m */
  --header-height: 4rem;

  /* umh.app link and button animations */
  --ease-umh: cubic-bezier(0.17, 0.33, 0.3, 1);
}

@media (max-width: 991px) {
  :root {
    --site-margin: 1.25rem;
    --space-section: 3.75rem;
  }
}

@media (max-width: 767px) {
  :root {
    --text-h1: 2.75rem;
    --text-h3: 1.75rem;
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: var(--text-t4);
  line-height: 1.48;
}

main {
  flex: auto;
}

:where(h1, h2, h3, p, dl, dd) {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  text-wrap: balance;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* umh.app draws the focus ring in the text colour */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

:where(ul, ol)[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrapper {
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--site-margin);
}

.region {
  padding-block: var(--space-section);
}

.flow > * + * {
  margin-block-start: var(--flow-space, 1em);
}

.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4rem;
}

.sidebar > :first-child {
  flex-basis: 19rem;
  flex-grow: 1;
}

.sidebar > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-width: 60%;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  z-index: 30;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: none;
}

/*-----------------------------------------------------
  Text styles
-----------------------------------------------------*/

/* c-text-6: mono, small, upper case */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-t6);
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--on-surface);
}

/* c-text-6.cc-primary */
.label--primary {
  color: var(--primary);
}

/* c-tag_wrapper with c-text-6 inside */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  width: fit-content;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-s);
  background: var(--surface-1);
  font-family: var(--font-mono);
  font-size: var(--text-t6);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--on-surface);
}

/* c-link_underline: a 1px line grows under the link on hover */
.underline-link {
  position: relative;
  text-decoration: none;
}

.underline-link::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-umh);
}

.underline-link:hover::after {
  width: 100%;
}

/* c-rich-text-legal: text and links of /impressum and /legal */
.legal-text,
.item__text {
  color: var(--on-surface-soft);
}

.legal-content a:not(.button, .item__title) {
  color: var(--on-surface-soft);
  font-weight: 600;
  text-decoration: underline;
}

/*-----------------------------------------------------
  Button (c-button): blue fill, serif label, a white strip
  grows in at the bottom on hover (c-button_mask)
-----------------------------------------------------*/
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: clip;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-s);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: var(--text-t4);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.button::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--white);
  opacity: 0.4;
  transition: height 0.833s var(--ease-umh);
}

.button:hover::after {
  height: 0.25rem;
}

/*-----------------------------------------------------
  Header (c-navigation): logo and the call to action. umh.app's
  product menus are in the footer, as on umh.app
-----------------------------------------------------*/
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: var(--blue-50);
  border-block-end: 1px solid var(--stroke);
}

.site-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: var(--site-width);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 0.75rem var(--site-margin);
}

.site-header__logo {
  display: block;
  flex: none;
  width: 6.25rem;
  color: var(--on-surface);
}

.site-header__logo .logo {
  display: block;
  width: 100%;
  height: auto;
}

/*-----------------------------------------------------
  Page title
-----------------------------------------------------*/
.headline {
  --flow-space: 1.5rem;

  padding-block-end: 3.5rem;
}

/* c-title-1 */
.headline__heading {
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* c-text-3 in onsurface-softer, as under the umh.app page titles */
.headline p:not(.tag) {
  max-width: 60ch;
  color: var(--on-surface-softer);
  font-size: var(--text-t3);
  line-height: 1.45;
}

/*-----------------------------------------------------
  Contents (c-blog_toc, the "On this page" list on umh.app articles)
-----------------------------------------------------*/
.legal-toc .label {
  margin-block-end: 1rem;
}

.legal-toc__list {
  border-inline-start: 1px solid var(--stroke);
}

.legal-toc li + li,
.legal-toc ol ol {
  margin-block-start: 0.25rem;
}

.legal-toc a {
  display: block;
  margin-inline-start: -2px;
  padding-block: 0.125rem;
  padding-inline-start: 1.875rem;
  border-inline-start: 3px solid transparent;
  color: var(--on-surface-weak);
  text-decoration: none;
}

.legal-toc ol ol a {
  padding-inline-start: 3.125rem;
}

.legal-toc a:hover {
  color: var(--on-surface);
}

.legal-toc a[aria-current='true'] {
  border-inline-start-color: var(--primary);
  color: var(--on-surface);
}

@media (min-width: 992px) {
  .legal-toc {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 2rem);
  }
}

/* The list is too long for a phone; the sections follow right below */
@media (max-width: 991px) {
  .legal-toc {
    display: none;
  }
}

/*-----------------------------------------------------
  Sections
-----------------------------------------------------*/
.legal-section + .legal-section {
  margin-block-start: 4.5rem;
}

/* c-title-3 */
.section-title {
  margin-block-end: 1.5rem;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: var(--gutter-base);
}

.grid--thirds {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

/* c-solutions_item-wrapper: light blue, small radius, no border */
.item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--radius-s);
  background: var(--surface-highlight);
}

.item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* c-title-5 */
.item__title {
  font-family: var(--font-serif);
  font-size: var(--text-h5);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.item__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.previous {
  display: grid;
  gap: 0.5rem;
}

.previous__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.previous__none {
  color: var(--on-surface-softer);
}

/* A card that is one link: the title is the link and covers the card */
.item--link {
  position: relative;
}

.item--link .item__title {
  text-decoration: none;
}

.item--link .item__title::after {
  content: '';
  position: absolute;
  inset: 0;
}

.item--link:hover .item__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.item--link .item__body {
  gap: 0.5rem;
}

/* Version history: rows between c-line-divider rules */
.history__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.5rem 1.25rem;
  padding-block: 1.25rem;
  border-block-start: 1px solid var(--stroke);
}

.history__row:last-child {
  border-block-end: 1px solid var(--stroke);
}

.history__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.history__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

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

/*-----------------------------------------------------
  Footer (c-footer): four link columns, then the large logo
  next to the legal and social links (c-footer_legal-menu)
-----------------------------------------------------*/
.site-footer {
  padding-block: var(--space-section);
  background: var(--surface-highlight);
}

/* c-footer_menu-wrapper: Platform, Solutions (wide), Insights, Company */
.site-footer__menu {
  display: grid;
  grid-template-columns: 19fr 65fr 19fr 19fr;
  gap: 1.25rem;
}

/* c-footer_menu-item: a blue-300 rule above each column */
.site-footer__col {
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--blue-300);
}

/* c-title-6 */
.site-footer__heading {
  margin-block-end: 1.25rem;
  font-size: var(--text-t3);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.site-footer__links {
  display: grid;
  gap: 0.75rem;
}

/* c-footer_list-wrapper.cc-separator */
.site-footer__links--separated {
  margin-block-start: 1.25rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid rgb(51 94 255 / 10%);
}

.site-footer__link,
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-surface);
  text-decoration: none;
}

.site-footer__ext {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* c-footer_col-item: the three Solutions lists, split by faint rules */
.site-footer__subcols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.site-footer__subcol {
  padding-inline: 1.875rem;
  border-inline-end: 1px solid rgb(51 94 255 / 10%);
}

.site-footer__subcol:first-child {
  padding-inline-start: 0;
}

.site-footer__subcol:last-child {
  padding-inline-end: 0;
  border-inline-end: 0;
}

.site-footer__subcol .label {
  margin-block-end: 1.25rem;
}

/* c-footer_menu-wrapper.cc-bottom */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-block-start: 4rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--blue-300);
}

.site-footer__logo {
  display: block;
  width: 20rem;
  max-width: 100%;
  color: var(--primary);
}

.site-footer__logo .logo {
  display: block;
  width: 100%;
  height: auto;
}

/* c-footer_legal-menu */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.25rem;
  background: var(--blue-50);
}

.site-footer__legal-links {
  display: grid;
  gap: 0.75rem;
}

.site-footer__social {
  display: grid;
  gap: 0.625rem;
}

.site-footer__social-link {
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
}

.site-footer__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0.1875rem;
  border-radius: var(--radius-s);
  background: var(--blue-100);
  color: var(--primary);
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .site-footer__menu {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--xl {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 767px) {
  .site-footer__menu,
  .site-footer__subcols {
    grid-template-columns: 1fr;
  }

  .site-footer__subcol {
    padding-inline: 0;
    border-inline-end: 0;
  }

  .site-footer__subcol + .site-footer__subcol {
    margin-block-start: 1.5rem;
  }

  .site-footer__logo {
    width: 12rem;
  }
}

/*-----------------------------------------------------
  Print
-----------------------------------------------------*/
@media print {
  .site-header,
  .skip-link,
  .legal-toc,
  .item .button,
  .site-footer__menu,
  .site-footer__logo,
  .site-footer__social {
    display: none;
  }

  .sidebar > :last-child {
    min-width: 100%;
  }

  .item,
  .site-footer {
    background: none;
  }

  .item {
    break-inside: avoid;
    border: 1px solid var(--stroke);
  }

  .legal-content a[href]::after {
    content: ' (' attr(href) ')';
    font-size: var(--text-t6);
    font-weight: 400;
  }

  .item--link .item__title::after {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
