/* Loaded by home.html only. Documentation keeps the standard Material layout. */
.pert-home {
  --pert-ink: #132447;
  --pert-muted: #56657e;
  --pert-blue: #245bdf;
  --pert-line: #dce3ef;
  --pert-surface: #f3f6fc;
  --pert-card: #fff;
  min-width: 0;
  color: var(--pert-ink);
}

[data-md-color-scheme="slate"] .pert-home {
  --pert-ink: #edf2ff;
  --pert-muted: #adbcd4;
  --pert-blue: #96b6ff;
  --pert-line: #33425c;
  --pert-surface: #202c41;
  --pert-card: #1b2538;
}

.md-main__inner:has(.pert-home) {
  margin-top: 0;
}

.pert-home .md-content__inner {
  margin: 0 1.2rem 3rem;
  padding-top: 0;
}

.pert-home .md-content__inner::before {
  display: none;
}

.pert-home .md-typeset {
  font-size: 16px;
  line-height: 1.65;
}

.pert-home p {
  margin: 0;
}

.pert-home a {
  color: var(--pert-blue);
}

.pert-home a:focus-visible,
.pert-home summary:focus-visible {
  outline: 3px solid var(--pert-blue);
  outline-offset: 5px;
}

.pert-home .pert-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--pert-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pert-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.pert-home .pert-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: 72px 0 60px;
}

.pert-home h1 {
  margin: 0 0 24px;
  color: var(--pert-ink);
  font-size: clamp(36px, 4.1vw, 60px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.pert-home h1 span {
  color: var(--pert-blue);
}

.pert-home .pert-lead {
  max-width: 510px;
  color: var(--pert-muted);
  font-size: 17px;
  line-height: 1.75;
}

.pert-home .pert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.pert-home .pert-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--pert-line);
  border-radius: 8px;
  background: var(--pert-card);
  color: var(--pert-ink);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms, border-color 160ms, transform 160ms;
}

.pert-home .pert-button--primary {
  border-color: #245bdf;
  background: #245bdf;
  color: #fff;
}

.pert-home .pert-button:hover {
  border-color: var(--pert-blue);
  background: var(--pert-surface);
  transform: translateY(-2px);
}

.pert-home .pert-button--primary:hover {
  border-color: #1747bc;
  background: #1747bc;
}

.pert-home .pert-hero-note {
  margin-top: 18px;
  color: var(--pert-muted);
  font-size: 12px;
}

/* The product illustration is semantic HTML: legible, selectable and responsive. */
.pert-home .pert-map {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #344b76;
  border-radius: 20px;
  background-color: #112344;
  background-image: radial-gradient(circle at 100% 0, #245bdf40, transparent 65%),
    radial-gradient(#91afe92e 1px, transparent 1px);
  background-size: auto, 18px 18px;
  box-shadow: 0 24px 55px -30px #122f7970;
  color: #eff5ff;
}

.pert-home .pert-map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #c4d2ed;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pert-map-heading img {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
  background: #fff;
}

.pert-home .md-typeset .pert-map-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pert-home .md-typeset .pert-map-flow > li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #435776;
  border-radius: 9px;
  background: #192e50;
}

.pert-home .md-typeset .pert-map-flow > li + li {
  margin-top: 22px;
}

.pert-map-flow > li + li::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 32px;
  height: 22px;
  border-left: 1px dashed #7b9bd3;
}

.pert-home .md-typeset .pert-map-flow > .pert-map-core {
  border-color: #729cff;
  background: #244d9b;
}

.pert-map-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  color: #a8c4ff;
  font-size: 23px;
}

.pert-map-core .pert-map-icon {
  color: #fff;
}

.pert-map strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.pert-map small {
  display: block;
  margin-top: 2px;
  color: #c4d2ed;
  font-size: 12px;
  opacity: 1;
}

.pert-home .pert-map-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #9de5d0;
  font-size: 11px;
}

.pert-home .pert-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 25px 0;
  border-top: 1px solid var(--pert-line);
  border-bottom: 1px solid var(--pert-line);
}

.pert-pillars > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pert-pillars .twemoji {
  color: var(--pert-blue);
  font-size: 25px;
}

.pert-pillars strong,
.pert-pillars small {
  display: block;
}

.pert-pillars strong {
  font-size: 14px;
}

.pert-pillars small {
  color: var(--pert-muted);
  font-size: 12px;
  opacity: 1;
}

.pert-home .pert-section {
  margin-top: 64px;
}

.pert-home .pert-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.pert-home h2 {
  margin: 0 0 8px;
  color: var(--pert-ink);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.pert-section-head p,
.pert-card > p,
.pert-feature p {
  color: var(--pert-muted);
  font-size: 14px;
}

.pert-home .pert-section-label {
  flex-shrink: 0;
  color: var(--pert-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pert-home .pert-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pert-home .pert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--pert-line);
  border-radius: 12px;
  background: var(--pert-card);
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}

.pert-home .pert-card:hover,
.pert-home .pert-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--pert-blue);
  box-shadow: 0 12px 25px -18px #245bdf66;
}

.pert-home .pert-card--featured {
  background: var(--pert-surface);
}

.pert-home .pert-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border: 1px solid var(--pert-line);
  border-radius: 10px;
  background: var(--pert-card);
  color: var(--pert-blue);
  font-size: 23px;
}

.pert-home h3 {
  margin: 0 0 10px;
  color: var(--pert-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pert-home .pert-card-link {
  margin-top: auto;
  padding-top: 26px;
  color: var(--pert-blue);
  font-size: 13px;
  font-weight: 700;
}

.pert-card-link a::after {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  content: "";
}

.pert-home .pert-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--pert-line);
}

.pert-home .pert-feature-number {
  margin-bottom: 18px;
  color: var(--pert-blue);
  font-family: var(--md-code-font-family);
  font-size: 12px;
}

.pert-home .pert-feature h3 {
  font-size: 17px;
}

.pert-home .pert-feature a {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.pert-home .pert-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--pert-line);
  border-radius: 12px;
  background: var(--pert-surface);
}

.pert-bottom h2 {
  font-size: 24px;
}

.pert-bottom p {
  color: var(--pert-muted);
  font-size: 14px;
}

.pert-bottom .pert-button {
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .pert-home .pert-hero {
    gap: 30px;
    padding-top: 45px;
  }

  .pert-home .pert-map {
    padding: 20px;
  }

  .pert-home .pert-card {
    padding: 22px;
  }
}

@media (max-width: 719px) {
  .pert-home .md-content__inner {
    margin-inline: 20px;
  }

  .pert-home .pert-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }

  .pert-home h1 {
    font-size: clamp(36px, 7.5vw, 52px);
  }

  .pert-home .pert-lead {
    font-size: 16px;
  }

  .pert-home .pert-cards,
  .pert-home .pert-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pert-home .pert-pillars {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pert-home .pert-section {
    margin-top: 42px;
  }

  .pert-home .pert-section-head,
  .pert-home .pert-bottom {
    align-items: start;
    flex-direction: column;
  }

  .pert-home .pert-section-label {
    display: none;
  }

  .pert-home .pert-feature {
    padding-bottom: 18px;
  }

  .pert-home .pert-bottom {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pert-home .pert-card,
  .pert-home .pert-button {
    transition: none;
    transform: none;
  }
}

@media print {
  .pert-home .pert-hero {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .pert-home .pert-map {
    display: none;
  }

  .pert-home .pert-card,
  .pert-home .pert-bottom {
    break-inside: avoid;
    box-shadow: none;
  }
}
