/* PMC Solutions website.
   Colours are the PMC brand: red, charcoal, light grey, white. The one recurring motif is the
   banner from the logo artwork: a charcoal field crossed by a red band from the left and a grey
   band from the right (.bands). Type is Archivo throughout; headings use its wider cut. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --red: #d3202a;
  --red-deep: #a51a22;
  --charcoal: #323232;
  --charcoal-2: #3d3d3f;
  --grey: #e8e9ea;
  --paper: #ffffff;
  --ink: #232427;
  --muted: #5c6068;
  --line: #d4d5d8;
  --on-dark: #f3f3f4;
  --on-dark-muted: #b6b7bb;
  --focus: #1f6feb;
  --radius: 6px;
  --wrap: 1180px;
  --measure: 64ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--red-deep);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--red);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  font-stretch: 110%;
  letter-spacing: 0;
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-deep);
  color: #fff;
}
.btn-line {
  border-color: currentColor;
  color: var(--charcoal);
  background: transparent;
}
.btn-line:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}
.on-dark .btn-line {
  color: #fff;
}
.on-dark .btn-line:hover {
  background: #fff;
  border-color: #fff;
  color: var(--charcoal);
}
.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------------------------------------------------------------- header */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.logo img {
  height: 46px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.site-nav a:hover {
  background: var(--grey);
  color: var(--ink);
}
.site-nav a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 var(--red);
  border-radius: 0;
}
.site-nav .nav-cta {
  background: var(--red);
  color: #fff;
  margin-left: 10px;
  padding: 10px 16px;
}
.site-nav .nav-cta:hover {
  background: var(--red-deep);
  color: #fff;
}
.site-nav .nav-cta[aria-current='page'] {
  box-shadow: none;
  border-radius: var(--radius);
}
.menu-toggle {
  display: none;
  font: inherit;
  font-weight: 700;
  background: var(--charcoal);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 9px 14px;
}

/* ---------------------------------------------------------------- the banner motif */
.bands {
  position: relative;
  height: 0;
}
.bands span {
  position: absolute;
  height: 54px;
  top: -27px;
}
.band-red {
  left: 0;
  width: 18%;
  background: var(--red);
}
.band-grey {
  right: 0;
  width: 18%;
  background: var(--grey);
}

/* ---------------------------------------------------------------- hero */
.hero {
  background: var(--charcoal);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  bottom: 56px;
  height: 64px;
  width: 22%;
}
.hero::before {
  left: 0;
  background: var(--red);
}
.hero::after {
  right: 0;
  background: var(--grey);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 48px;
  align-items: end;
}
.hero-copy {
  padding-bottom: 168px;
}
.hero h1 {
  color: #fff;
  font-stretch: 116%;
  font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.5rem);
}
.hero .lede {
  color: var(--on-dark-muted);
}
.hero-shot {
  align-self: end;
  margin-bottom: -2px;
}
.screen {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: var(--charcoal-2);
}
.screen-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #2a2a2b;
}
.screen-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4a4d;
}
.page-hero {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 72px 0 64px;
  position: relative;
}
.page-hero h1 {
  color: #fff;
}
.page-hero .lede {
  color: var(--on-dark-muted);
}
.page-hero + .bands span {
  top: -27px;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: 96px 0;
}
.section-tight {
  padding-top: 0;
}
.section-grey {
  background: var(--grey);
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

/* a product, told as text beside its screen; the second one mirrors the first */
.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.product + .product {
  margin-top: 112px;
}
.product.mirror .product-copy {
  order: 2;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.product-name img {
  width: 40px;
  height: 40px;
}
.product-name h2 {
  margin: 0;
}
.product-shot img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(35, 36, 39, 0.16);
}
.does {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.does li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.does li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 3px;
  background: var(--red);
}

/* how buying works: a real sequence, so it is numbered */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 3px solid var(--charcoal);
}
.steps li {
  counter-increment: step;
  padding: 22px 24px 8px 0;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 14px;
}
.steps h3 {
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* why self-hosted: claims and their reasons, as a definition list */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
}
.reasons div {
  padding: 24px 0;
  border-top: 1px solid #c9cacd;
}
.reasons dt {
  font-weight: 800;
  font-stretch: 112%;
  font-size: var(--step-1);
  margin-bottom: 6px;
}
.reasons dd {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.callout {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 72px 0;
}
.callout h2 {
  color: #fff;
}
.callout p {
  color: var(--on-dark-muted);
}
.callout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.callout .actions {
  margin-top: 0;
}

/* product pages: features grouped under plain headings */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 48px;
}
.features h3 {
  border-top: 3px solid var(--red);
  padding-top: 14px;
}
.features p {
  color: var(--muted);
  font-size: 0.98rem;
}
.wide-shot {
  margin-top: -48px;
  position: relative;
}
.wide-shot img {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.pair figure {
  margin: 0;
}
.pair figcaption,
.caption {
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 10px;
}

/* demos */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.demo:first-child {
  border-top: 0;
  padding-top: 0;
}
table.accounts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.accounts th,
.accounts td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.accounts th {
  font-weight: 700;
  color: var(--muted);
  font-size: var(--step--1);
}
code,
.mono {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.92em;
  background: var(--grey);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- forms */
.form-page {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 64px;
  align-items: start;
}
.form {
  display: grid;
  gap: 20px;
}
.form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}
.field label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.98rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: -2px;
  margin-bottom: 6px;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='number'],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid #b9bbc0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--charcoal);
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 0;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.field .choice {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #b9bbc0;
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
.choice:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.choice input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin: 0;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  background: #fbeaea;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.ok {
  border-left-color: #2e7d4f;
  background: #e8f4ec;
}
.aside {
  background: var(--grey);
  padding: 28px;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}
.aside h2 {
  font-size: var(--step-1);
}
.aside p,
.aside li {
  font-size: 0.97rem;
}
.aside ul {
  padding-left: 18px;
  margin: 0 0 1em;
}
.amount {
  display: flex;
  align-items: stretch;
}
.amount span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--grey);
  border: 1.5px solid #b9bbc0;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-weight: 700;
}
.amount input {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}
.notice {
  border-left: 4px solid var(--charcoal);
  background: var(--grey);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 70ch;
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 1.6em;
}
.prose li {
  margin-bottom: 0.4em;
}

/* ---------------------------------------------------------------- footer */
.site-foot {
  background: var(--charcoal);
  color: var(--on-dark-muted);
  padding: 80px 0 28px;
  margin-top: 0;
  position: relative;
}
.site-foot .bands {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.site-foot .bands span {
  top: 0;
  height: 10px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.foot-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 16px;
}
.site-foot h2 {
  font-size: 0.95rem;
  color: #fff;
  font-stretch: 110%;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.foot-links,
.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-foot a {
  color: var(--on-dark);
  text-decoration: none;
}
.site-foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-legal {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--step--1);
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .hero-grid,
  .product,
  .demo,
  .form-page {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .hero::before,
  .hero::after {
    bottom: auto;
    top: auto;
    display: none;
  }
  .product.mirror .product-copy {
    order: 0;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .aside {
    position: static;
  }
}
@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
  .site-nav a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--red);
  }
  .logo img {
    height: 38px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 56px;
  }
  .section {
    padding: 64px 0;
  }
  .steps,
  .features,
  .reasons,
  .pair,
  .form .row,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .accounts th:nth-child(3),
  .accounts td:nth-child(3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .masthead,
  .site-foot,
  .hero::before,
  .hero::after {
    display: none;
  }
}
