/* verumclad.com. Colours come only from the Verumclad brand pack (ink navy, mist, jade):
   Ink Navy #11263A and Mist #EDF5F4 are the primaries; Jade #28C7A4 is the accent for calls to
   action and highlighted text, with Ink Navy text on Jade. #536472 and #ABB7BC are the brand's
   blends of the primaries, for secondary text on light and dark backgrounds. Jade is never used
   as text on a light background (too little contrast). */

:root {
  --ink-navy: #11263a;
  --mist: #edf5f4;
  --jade: #28c7a4;
  --slate: #536472;
  --silver: #abb7bc;
  --white: #ffffff;
  --line: rgb(17 38 58 / 0.12);
  --line-dark: rgb(237 245 244 / 0.14);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --gutter: 16px;
  --max: 1120px;

  color-scheme: light;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-navy);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

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

body {
  margin: 0;
  background: var(--white);
}

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

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

a:hover {
  text-decoration-color: var(--jade);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(34px, 5.2vw, 54px);
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

h3 {
  font-size: 19px;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--jade);
  color: var(--ink-navy);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
}

/* Buttons. Jade carries Ink Navy text, as the brand requires. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--jade);
  color: var(--ink-navy);
}

.button-primary:hover {
  background: var(--mist);
  color: var(--ink-navy);
}

.button-secondary {
  background: transparent;
  color: var(--ink-navy);
  border-color: var(--ink-navy);
}

.button-secondary:hover {
  background: var(--ink-navy);
  color: var(--mist);
}

.on-dark .button-secondary {
  color: var(--mist);
  border-color: var(--silver);
}

.on-dark .button-secondary:hover {
  background: var(--mist);
  color: var(--ink-navy);
  border-color: var(--mist);
}

/* Header */

.site-header {
  background: var(--ink-navy);
  color: var(--mist);
  position: relative;
  z-index: 5;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

/* Clear space around the logo: at least a quarter of the monogram height (38px tall at 160px
   wide), so 10px; the header's padding and gaps give more. */
.logo-link {
  display: inline-flex;
  padding: 10px 0;
  flex: 0 0 auto;
}

.logo-link img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 26px 12px 24px;
  color: var(--silver);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--mist);
}

.nav-links a[aria-current='page'] {
  color: var(--mist);
  border-bottom-color: var(--jade);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.sign-in {
  color: var(--silver);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
}

.sign-in:hover {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--jade);
}

.menu-button {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-button[aria-expanded='true'] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded='true'] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button[aria-expanded='true'] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  .header-bar {
    flex-wrap: wrap;
    gap: 0 16px;
    min-height: 68px;
  }

  .logo-link img {
    width: 160px;
  }

  /* Without JavaScript the links simply wrap below the logo. With it, a menu button opens them. */
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 4px 0 20px;
  }

  .js .menu-button {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-header[data-menu-open] .site-nav {
    display: flex;
    border-top: 1px solid var(--line-dark);
    padding-top: 12px;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-links a {
    padding: 12px 4px;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 12px;
  }

  .nav-links a[aria-current='page'] {
    border-left-color: var(--jade);
  }

  .nav-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }

  .nav-actions .button {
    width: 100%;
  }

  .sign-in {
    padding: 12px 4px 12px 15px;
  }
}

/* Hero */

.on-dark {
  background: var(--ink-navy);
  color: var(--mist);
}

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.on-dark .eyebrow {
  color: var(--jade);
}

.hero h1 .highlight {
  color: var(--jade);
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 36em;
}

.on-dark .lede {
  color: var(--silver);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Illustrative payout trace (synthetic figures) */

.trace-card {
  background: var(--white);
  color: var(--ink-navy);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
  font-size: 15px;
}

.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.trace-title {
  font-weight: 600;
}

.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-navy);
  white-space: nowrap;
}

.chip-jade {
  background: var(--jade);
}

.trace-lines {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.trace-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.trace-lines li:last-child {
  border-bottom: none;
}

.trace-lines .amount {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

.trace-lines .changed {
  box-shadow: inset 3px 0 0 var(--jade);
  padding-left: 10px;
  margin-left: -10px;
  background: linear-gradient(90deg, rgb(40 199 164 / 0.12), transparent 70%);
}

.trace-lines .total {
  font-weight: 600;
  border-top: 1px solid var(--ink-navy);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 10px;
}

.trace-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--slate);
}

.trace-note strong {
  color: var(--ink-navy);
}

.figure-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--silver);
}

/* Sections */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 46em;
  margin-bottom: 40px;
}

.section-head p {
  margin-top: 16px;
  font-size: 19px;
  color: var(--slate);
}

.on-dark .section-head p {
  color: var(--silver);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1040px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.section-mist .card {
  border-color: transparent;
}

.card h3 + p,
.card h3 + ul {
  margin-top: 10px;
}

.card p,
.card li {
  color: var(--slate);
}

.card-rule {
  border-top: 3px solid var(--jade);
}

/* A card that ends with its own next step: the step sits at the foot of the card, so the steps
   line up across a row of cards of different lengths. */
.card-next {
  display: flex;
  flex-direction: column;
}

.next-step {
  margin-top: auto;
  padding-top: 16px;
}

.card .next-step a {
  color: var(--ink-navy);
  font-weight: 500;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-navy);
  color: var(--jade);
  font-family: var(--mono);
  font-weight: 500;
  margin-bottom: 16px;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ink-navy);
  border-bottom: 2px solid var(--ink-navy);
  transform: rotate(-45deg);
}

.on-dark .ticks li::before {
  border-color: var(--jade);
}

.crosses li::before {
  border: none;
  width: 12px;
  height: 2px;
  top: 0.75em;
  background: var(--slate);
  transform: none;
}

.split {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.prose p + p {
  margin-top: 16px;
}

.prose p {
  color: var(--slate);
  font-size: 18px;
}

.on-dark .prose p {
  color: var(--silver);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  background: var(--mist);
}

tr:last-child td {
  border-bottom: none;
}

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: var(--slate);
}

td:first-child {
  color: var(--ink-navy);
}

@media (max-width: 719px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  tr:last-child {
    border-bottom: none;
  }

  td {
    padding: 2px 0;
    border: none;
    white-space: normal;
  }

  td:first-child {
    white-space: normal;
    margin-bottom: 4px;
  }
}

.page-hero {
  padding: 56px 0 64px;
}

@media (min-width: 960px) {
  .page-hero {
    padding: 80px 0 88px;
  }
}

.page-hero .lede {
  max-width: 40em;
}

.callout {
  border-left: 3px solid var(--jade);
  padding: 4px 0 4px 20px;
}

.callout p {
  color: var(--slate);
}

/* The closing call to action sits on white as an Ink Navy panel, so it stands apart from both the
   Mist and the Ink Navy sections it can follow, and from the footer. */
.cta-panel {
  background: var(--ink-navy);
  color: var(--mist);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

@media (min-width: 720px) {
  .cta-panel {
    padding: 48px;
  }
}

.cta-panel h2 {
  max-width: 20em;
}

.cta-panel p {
  margin-top: 12px;
  color: var(--silver);
  max-width: 40em;
}

.offer {
  display: flex;
  flex-direction: column;
}

.offer .offer-basis {
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink-navy);
}

.offer .ticks {
  margin-top: 8px;
}

.offer .button {
  margin-top: auto;
  align-self: flex-start;
}

.offer .ticks:last-of-type {
  margin-bottom: 24px;
}

.fine-print {
  font-size: 15px;
  color: var(--slate);
  margin-top: 24px;
}

/* On Ink Navy, secondary text uses Silver, as docs/brand.md prescribes. */
.on-dark .fine-print {
  color: var(--silver);
}

/* Footer */

.site-footer {
  background: var(--ink-navy);
  color: var(--silver);
  padding: 56px 0 40px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-grid img {
  width: 168px;
  height: auto;
  margin-bottom: 16px;
}

.footer-grid h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--silver);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--jade);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-legal p {
  max-width: 52em;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .nav-links a,
  .sign-in {
    transition:
      background-color 120ms ease,
      color 120ms ease,
      border-color 120ms ease;
  }
}

/* Utilities (the site's Content-Security-Policy allows no inline styles) */

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trace-figure {
  margin: 0;
}

.section-head.flush {
  margin-bottom: 0;
}
