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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: #0b2233;
}

/* Body copy. The design canvas uses line-height 1.6; paragraphs sit a little more open so wrapped lines and stacked paragraphs are easier to read. */
main p,
.legal p,
.legal li {
  line-height: 1.75;
}

main p[style*="text-transform: uppercase"],
main p[style*="font-size: 12px"],
main p[style*="font-size: 13px"],
main p[style*="font-size: 14px"],
.pl-pkg p,
.pl-price-note,
.pl-price-badge,
.pl-work-meta p {
  line-height: 1.45;
}

.pl-pkg p[style*="font-size: 15px"] {
  line-height: 1.65;
}

/* Space between stacked body paragraphs, without opening card, price, or label gaps. */
#problem p[style*="font-size: 18px"] {
  margin-top: 44px !important;
}

main p[style*="font-size: 18px"][style*="margin: 16px 0 0"],
main p[style*="font-size: 19px"][style*="margin: 14px auto 0"] {
  margin-top: 28px !important;
}

details p + p {
  margin-top: 22px !important;
}

.legal p + p {
  margin-top: 1.25em;
}

img { max-width: 100%; }

.pl-plus {
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease;
}

.pl-price-badge {
  margin: 10px 0 0;
  display: inline-block;
  background: #fff4d6;
  color: #5c4300;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.pl-price-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #4a5b66;
}

.pl-pkg > div:nth-of-type(2) { text-align: center; }

.ai-s { animation: ai-scene 33s infinite; }
.ai-s2 { animation-delay: -22s; }
.ai-s3 { animation-delay: -11s; }
.ai-plain { box-shadow: none !important; }
.ai-c3 { animation: ai-c3 11s ease-out infinite; }

@keyframes ai-scene {
  0%, 33.2% { visibility: visible; }
  33.3%, 100% { visibility: hidden; }
}

@keyframes ai-c3 {
  0%, 50% { opacity: 0; transform: translateY(10px); box-shadow: 0 0 0 0 rgba(10, 110, 106, 0); }
  55% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(10, 110, 106, 0.35); }
  62% { box-shadow: 0 0 0 8px rgba(10, 110, 106, 0); }
  90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-s { animation: none; }
  .ai-s2, .ai-s3 { display: none; }
  .ai-c3 { animation: none; }
}

.pl-incl-wrap td {
  padding: 12px 16px;
}

.pl-incl-wrap th:nth-child(n+2),
.pl-incl-wrap td:nth-child(n+2) {
  width: auto !important;
  white-space: nowrap;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#fit ul {
  gap: 24px !important;
}

#fit li span {
  line-height: 1.75;
}

.pl-pkg p:has(span[style*="font-size: 48px"]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}

.pl-pkg span[style*="font-size: 48px"] {
  line-height: 1;
}

.pl-incl-wrap table {
  border-spacing: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: #0b2233;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid #dde5e8;
  border-radius: 12px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #0b2233;
  border-radius: 2px;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #0a6e6a;
  outline-offset: 3px;
}

.nav-links a:hover { text-decoration: underline; }

@media (min-width: 980px) {
  .pl-pkgs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto 1fr auto;
  }

  .pl-pkg {
    display: grid !important;
    grid-template-rows: subgrid !important;
    grid-row: span 5 !important;
    height: auto;
  }
}

@media (max-width: 979px) {
  .pl-pkg {
    display: flex !important;
    flex-direction: column !important;
    grid-row: auto !important;
    grid-template-rows: none !important;
    height: 100%;
  }
}

@media (max-width: 860px) {
  .site-nav { position: relative; flex-wrap: nowrap !important; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #e3e9ec;
    padding: 8px 20px 20px;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    box-shadow: 0 16px 40px rgba(11, 34, 51, 0.08);
  }

  .nav-links.is-open { display: flex !important; }

  .nav-links a {
    padding: 12px 4px;
    min-height: 44px;
  }

  .nav-links a[style*="border-radius: 999px"] {
    justify-content: center;
    margin-top: 8px;
  }
}

section[aria-label="Highlights"] ul {
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  gap: 8px !important;
  font-size: 14px !important;
}

section[aria-label="Highlights"] li {
  white-space: nowrap;
}

@media (max-width: 1040px) {
  section[aria-label="Highlights"] ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    justify-content: start !important;
    justify-items: start;
    font-size: 15px !important;
    gap: 10px 16px !important;
  }
}

@media (max-width: 800px) {
  #top { min-height: 0 !important; }
  #top > div { padding: 72px 20px 80px !important; }

  h1 { font-size: 36px !important; }
  h2 { font-size: 32px !important; }

  p[style*="font-size: 30px"] { font-size: 22px !important; }

  section[style*="padding: 104px 24px"],
  section[style*="padding: 112px 24px"] {
    padding: 64px 20px !important;
  }

  #book { padding: 72px 20px !important; }
  footer { padding: 40px 20px 24px !important; }

  [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  [style*="border-left: 1px solid #DDE5E8"] {
    border-left: none !important;
    border-top: 1px solid #dde5e8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pl-plus { transition: none; }
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.legal p,
.legal li { font-size: 17px; color: #3c4e5a; }

.legal h2 {
  margin: 36px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal a { color: #0a6e6a; }

.legal ul { margin: 8px 0 16px; padding-left: 22px; }

.pl-audit-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pl-audit-btn { cursor: pointer; }

.pl-audit-toggle:focus-visible + .pl-audit-btn {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.pl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body:has(#pl-audit-toggle:checked) .pl-modal-audit { display: flex; }
body:has(#pl-audit-toggle:checked) { overflow: hidden; }

.pl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 28, 0.72);
  cursor: pointer;
}

.pl-modal-box {
  position: relative;
  width: min(960px, 100%);
  height: min(86vh, 900px);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.pl-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 22px;
  border-bottom: 1px solid #e3e9ec;
  color: #0b2233;
  font-weight: 700;
  font-size: 16px;
}

.pl-modal-head a {
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  color: #0a6e6a;
}

.pl-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f6f5;
  color: #0b2233;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pl-modal iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}

.pl-modal.is-open { display: flex; }

.pl-modal-legal .pl-modal-box {
  width: min(760px, 100%);
  height: min(86vh, 820px);
}

.pl-modal-legal .pl-modal-close {
  border: 0;
  margin-left: auto;
  font-family: inherit;
}

html.legal-embed .site-header,
html.legal-embed footer { display: none !important; }

html.legal-embed .legal {
  padding-top: 12px;
  padding-bottom: 32px;
}
