:root {
  --pp-ink: #05063e;
  --pp-body: #4f5275;
  --pp-accent: #7b61ff;
  --pp-border: #d9d7e8;
  --pp-muted: #c3c4e5;
  --pp-dark-body: #a9aac8;
  --pp-bg: #fffefd;
  --pp-font: "IBM Plex Sans", system-ui, sans-serif;
  --pp-content: 1280px;
  --pp-gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
}

body.pp-page {
  margin: 0;
  max-width: 100%;
  font-family: var(--pp-font);
  background: var(--pp-bg);
  color: var(--pp-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.pp-page a {
  color: inherit;
}

.pp-shell,
.pp-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-inline: var(--pp-gutter);
  box-sizing: border-box;
}

/* Header */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 255, 0.85);
  border-bottom: 1px solid #f0eff8;
}

.pp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pp-logo {
  flex-shrink: 0;
  z-index: 2;
  justify-self: start;
}

.pp-logo img {
  display: block;
  width: clamp(100px, 28vw, 124px);
  height: auto;
}

.pp-nav {
  display: none;
  align-items: center;
  gap: 18px;
}

.pp-nav > a:not(.pp-cta) {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--pp-body);
}

.pp-nav > a:not(.pp-cta).is-active,
.pp-nav > a:not(.pp-cta):hover {
  color: var(--pp-accent);
}

.pp-nav__dropdown {
  position: relative;
}

.pp-nav__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--pp-body);
  cursor: pointer;
}

.pp-nav__drop-btn:hover,
.pp-nav__dropdown.is-open .pp-nav__drop-btn {
  color: var(--pp-accent);
}

.pp-nav__chevron {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.pp-nav__dropdown.is-open .pp-nav__chevron {
  transform: rotate(180deg);
}

.pp-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  margin: 0;
  padding: 16px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(5, 6, 62, 0.12);
}

.pp-nav__menu[hidden] {
  display: none;
}

.pp-nav__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  border-bottom: 1px solid #f3f0fc;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: var(--pp-ink);
  white-space: nowrap;
}

.pp-nav__menu li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.pp-nav__menu a:hover {
  color: var(--pp-accent);
}

.pp-nav__menu img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--pp-accent);
  border-radius: 28px;
  background: #fff;
  color: var(--pp-ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
  box-shadow: 0 2px 1px rgba(33, 33, 33, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.pp-cta img {
  width: 18px;
  height: 18px;
}

.pp-cta--mobile {
  display: none;
}

.pp-cta--desktop .pp-cta__label {
  display: none;
}

.pp-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
}

.pp-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--pp-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pp-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pp-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.pp-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pp-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(5, 6, 62, 0.35);
}

.pp-nav-scrim[hidden] {
  display: none;
}

body.pp-nav-open {
  overflow: hidden;
}

/* Hero */
.pp-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 64px 16px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #05063e 0%, #9d7bff 70%, #d8d8ff 100%);
}

.pp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.pp-hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding-inline: 8px;
}

.pp-hero__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.pp-hero__copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  color: var(--pp-muted);
}

/* Layout */
.pp-main {
  padding: 32px 0 56px;
  overflow-x: hidden;
}

.pp-layout {
  display: grid;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}

.pp-toc {
  min-width: 0;
  max-width: 100%;
}

.pp-toc__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pp-ink);
}

.pp-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  max-width: 100%;
}

.pp-toc__list li {
  min-width: 0;
  max-width: 100%;
}

.pp-toc__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--pp-body);
  white-space: normal;
  background: #fff;
}

.pp-toc__list a:hover,
.pp-toc__list a.is-active {
  color: var(--pp-accent);
  border-color: var(--pp-accent);
  background: #f7f5ff;
}

.pp-toc__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.pp-toc__icon img,
.pp-toc__list > li > a > img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pp-toc__icon-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pp-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.pp-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--pp-ink);
}

.pp-intro p,
.pp-section p {
  margin: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 26px;
  color: var(--pp-body);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.pp-section {
  scroll-margin-top: 96px;
}

.pp-section h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--pp-ink);
}

.pp-section p + p {
  margin-top: 12px;
}

.pp-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.pp-section li {
  font-size: 16px;
  line-height: 26px;
  color: var(--pp-body);
}

.pp-section a {
  /* color: var(--pp-accent); */
  word-break: break-word;
}

.pp-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 88px;
  background: linear-gradient(180deg, #05063e 0%, #05063e 31%, #9d7bff 89%, #d8d8ff 126%);
  color: #fff;
}

.pp-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.pp-footer__watermark {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  margin: 0;
  font-size: clamp(48px, 13vw, 196px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 254, 253, 0.22);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  max-width: none;
  transform: translate(-50%, 100%);
  opacity: 0.2;
  transition:
    transform 0.8s ease-in-out,
    opacity 0.8s ease-in-out;
  will-change: transform, opacity;
}

.pp-footer.is-watermark-in .pp-footer__watermark {
  transform: translate(-50%, 8%);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pp-footer__watermark {
    transform: translate(-50%, 8%);
    opacity: 1;
    transition: none;
  }
}

.pp-footer__top {
  display: grid;
  gap: 32px;
  align-items: start;
}

.pp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pp-footer__logo {
  display: inline-flex;
  width: 124px;
  height: 55px;
}

.pp-footer__logo img {
  display: block;
  width: 124px;
  height: 55px;
  object-fit: contain;
}

.pp-footer__brand p {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--pp-dark-body);
}

.pp-footer__menus {
  display: grid;
  gap: 28px;
}

.pp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pp-footer__col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-transform: uppercase;
  color: #fffefd;
}

.pp-footer__col h4 > img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pp-footer__heading-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.pp-footer__heading-icon img {
  width: 24px;
  height: 24px;
}

.pp-footer__heading-icon-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pp-footer__col a {
  display: block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: var(--pp-dark-body);
  overflow-wrap: anywhere;
}

.pp-footer__col a:hover {
  color: #fffefd;
}

.pp-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pp-footer__social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.pp-footer__social a img {
  display: block;
  width: 24px;
  height: 24px;
}

.pp-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #fffefd;
}

.pp-footer__bottom p {
  margin: 0;
}

.pp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.pp-footer__links a,
.pp-footer__links span {
  text-decoration: none;
  color: #fffefd;
}

.pp-footer__links a.is-current {
  color: #f8f7ff;
}

/* Mobile — same 16px gutters as dental.html */
@media (max-width: 767px) {
  :root {
    --pp-gutter: 16px;
  }

  .pp-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 84px 20px 28px;
    background: #fffefd;
    border-left: 1px solid #f0eff8;
    box-shadow: -12px 0 32px rgba(5, 6, 62, 0.12);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pp-nav.is-open {
    transform: translateX(0);
  }

  .pp-nav > a:not(.pp-cta),
  .pp-nav__drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 17px;
    line-height: 28px;
    text-align: left;
  }

  .pp-nav__dropdown {
    width: 100%;
  }

  .pp-nav__menu {
    position: static;
    min-width: 0;
    margin: 0 0 8px;
    box-shadow: none;
    border: 1px solid #f0eff8;
  }

  .pp-cta--mobile {
    display: inline-flex;
    margin-top: 16px;
    width: 100%;
  }

  .pp-cta--desktop {
    display: none;
  }

  .pp-hero {
    min-height: 220px;
    padding: 48px 16px;
  }

  .pp-hero__copy h1 {
    font-size: 32px;
  }

  .pp-hero__copy p {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Tablet — dental.html 768–1023 uses 32px side padding */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --pp-gutter: 32px;
  }

  .pp-burger,
  .pp-nav-scrim,
  .pp-cta--mobile {
    display: none !important;
  }

  .pp-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .pp-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    justify-self: center;
  }

  .pp-cta--desktop {
    display: inline-flex;
    justify-self: end;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 24px;
  }

  .pp-cta--desktop .pp-cta__label {
    display: inline;
  }

  .pp-hero {
    min-height: 320px;
  }

  .pp-hero__copy p {
    font-size: 20px;
  }

  .pp-main {
    padding: 40px 0 72px;
  }

  .pp-toc__title {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .pp-footer {
    padding: 72px 0 96px;
  }

  .pp-footer__brand p {
    font-size: 18px;
    line-height: 28px;
  }

  .pp-footer__menus {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pp-footer__col h4 {
    font-size: 20px;
  }

  .pp-footer__col a {
    font-size: 18px;
  }

  .pp-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
  }
}

/* Desktop — dental.html 1280px content cap */
@media (min-width: 1024px) {
  :root {
    --pp-gutter: max(32px, calc((100vw - var(--pp-content)) / 2));
  }

  .pp-burger,
  .pp-nav-scrim,
  .pp-cta--mobile {
    display: none !important;
  }

  .pp-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 80px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pp-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    justify-self: center;
  }

  .pp-cta--desktop {
    display: inline-flex;
    justify-self: end;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 26px;
  }

  .pp-cta--desktop .pp-cta__label {
    display: inline;
  }

  .pp-hero {
    min-height: 420px;
  }

  .pp-hero__copy p {
    font-size: 20px;
  }

  .pp-main {
    padding: 48px 0 80px;
  }

  .pp-layout {
    grid-template-columns: minmax(240px, 339px) minmax(0, 1fr);
    justify-content: start;
    align-items: start;
    gap: 42px;
  }

  /* .pp-toc {
    position: sticky;
    top: 100px;
  } */

  .pp-toc__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .pp-toc__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .pp-toc__list li {
    flex: none;
    max-width: none;
  }

  .pp-toc__list a {
    gap: 10px;
    padding: 10px 6px;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    font-size: 18px;
    line-height: 30px;
    background: transparent;
    white-space: normal;
  }

  .pp-toc__list a:hover,
  .pp-toc__list a.is-active {
    border-color: transparent;
    border-bottom-color: var(--pp-border);
    background: transparent;
  }

  .pp-toc__icon,
  .pp-toc__icon img,
  .pp-toc__list > li > a > img {
    width: 24px;
    height: 24px;
  }

  .pp-section {
    scroll-margin-top: 110px;
  }

  .pp-section h3 {
    font-size: 28px;
  }

  .pp-footer {
    padding: 80px 0 108px;
  }

  .pp-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .pp-footer__brand p,
  .pp-footer__col a {
    font-size: 20px;
    line-height: 30px;
  }

  .pp-footer__col h4 {
    font-size: 22px;
    line-height: 32px;
  }

  .pp-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    line-height: 26px;
  }

  .pp-footer__links {
    gap: 24px;
  }
}
