:root {
  --p1-navy: #172d48;
  --p1-navy-deep: #101f33;
  --p1-ink: #20252d;
  --p1-muted: #66707c;
  --p1-paper: #fbfaf7;
  --p1-stone: #f0ece5;
  --p1-line: rgba(23, 45, 72, 0.16);
  --p1-mauve: #8b4a5f;
  --p1-clay: #b0432c;
  --p1-gold: #c9a96e;
  --p1-radius: 10px;
  --p1-shadow: 0 24px 70px rgba(16, 31, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.p1-page {
  margin: 0;
  color: var(--p1-ink);
  background: var(--p1-paper);
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 1.62;
  --p1-accent: var(--p1-mauve);
  --p1-accent-soft: rgba(139, 74, 95, 0.1);
}

body.p1-page[data-hub="problems"] {
  --p1-accent: var(--p1-clay);
  --p1-accent-soft: rgba(176, 67, 44, 0.1);
}

.p1-skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--p1-navy);
  transform: translateY(-150%);
}

.p1-skip:focus {
  transform: translateY(0);
}

.p1-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--p1-line);
  background: rgba(251, 250, 247, 0.96);
}

.p1-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.p1-logo img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.p1-menu {
  justify-self: center;
  display: flex;
  gap: 30px;
}

.p1-menu a,
.p1-header__cta {
  color: var(--p1-ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.p1-header__cta {
  padding: 12px 17px;
  color: #fff;
  border-radius: 6px;
  background: var(--p1-navy);
}

.p1-menu a:hover,
.p1-menu a:focus-visible {
  color: var(--p1-accent);
}

.p1-wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.p1-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 7vw, 94px) 0 clamp(58px, 7vw, 88px);
  background:
    radial-gradient(circle at 12% 16%, var(--p1-accent-soft), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--p1-paper) 68%, var(--p1-stone) 100%);
}

.p1-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: var(--p1-accent);
}

.p1-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(44px, 6vw, 82px);
  align-items: center;
}

.p1-crumb,
.p1-kicker,
.p1-label,
.p1-step__num,
.p1-signal__label {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.p1-crumb {
  margin-bottom: 34px;
  color: var(--p1-muted);
}

.p1-crumb a {
  color: inherit;
  text-decoration-color: rgba(102, 112, 124, 0.45);
}

.p1-kicker,
.p1-label {
  color: var(--p1-accent);
}

.p1-h1 {
  max-width: 760px;
  margin: 14px 0 24px;
  color: var(--p1-navy-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.p1-dek {
  max-width: 690px;
  margin: 0;
  color: #4f5965;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.54;
}

.p1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.p1-btn,
.p1-btn--secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--p1-navy);
  border-radius: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.p1-btn {
  color: #fff;
  background: var(--p1-navy);
}

.p1-btn:hover,
.p1-btn:focus-visible {
  border-color: var(--p1-accent);
  background: var(--p1-accent);
}

.p1-btn--secondary {
  color: var(--p1-navy);
  background: transparent;
}

.p1-btn--secondary:hover,
.p1-btn--secondary:focus-visible {
  border-color: var(--p1-accent);
  color: var(--p1-accent);
}

.p1-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--p1-muted);
  font-size: 14px;
  list-style: none;
}

.p1-trustline li {
  position: relative;
  padding-left: 14px;
}

.p1-trustline li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p1-accent);
}

.p1-hero__visual {
  position: relative;
  margin: 0;
}

.p1-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--p1-radius);
  box-shadow: var(--p1-shadow);
}

.p1-hero__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 72%;
  height: 72%;
  border: 1px solid var(--p1-accent);
  border-radius: var(--p1-radius);
  opacity: 0.42;
}

.p1-visual-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 310px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  color: #fff;
  background: rgba(16, 31, 51, 0.88);
  backdrop-filter: blur(10px);
}

.p1-visual-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.p1-visual-note span {
  display: block;
  font-size: 14px;
  line-height: 1.42;
}

.p1-jump {
  position: sticky;
  z-index: 12;
  top: 0;
  border-top: 1px solid var(--p1-line);
  border-bottom: 1px solid var(--p1-line);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(12px);
}

.p1-jump__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.p1-jump__inner::-webkit-scrollbar {
  display: none;
}

.p1-jump strong,
.p1-jump a {
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.p1-jump strong {
  color: var(--p1-accent);
}

.p1-jump a {
  color: var(--p1-navy);
}

.p1-section {
  padding: clamp(68px, 8vw, 104px) 0;
}

.p1-section--stone {
  background: var(--p1-stone);
}

.p1-section--navy {
  color: #fff;
  background: var(--p1-navy-deep);
}

.p1-section__head {
  max-width: 800px;
  margin-bottom: 36px;
}

.p1-h2 {
  margin: 10px 0 18px;
  color: var(--p1-navy-deep);
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.08;
}

.p1-section--navy .p1-h2 {
  color: #fff;
}

.p1-section__head > p:last-child,
.p1-answer__copy {
  margin: 0;
  color: #525d69;
  font-size: 19px;
  line-height: 1.62;
}

.p1-section--navy .p1-section__head > p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.p1-answer {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 34px;
  align-items: start;
  padding: clamp(30px, 4vw, 48px);
  border-left: 5px solid var(--p1-accent);
  border-radius: 0 var(--p1-radius) var(--p1-radius) 0;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 31, 51, 0.08);
}

.p1-answer__mark {
  color: var(--p1-accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 54px;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.p1-answer__copy strong {
  color: var(--p1-navy-deep);
}

.p1-answer__copy ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.p1-answer__copy li {
  position: relative;
  margin-top: 9px;
  padding-left: 20px;
  color: #525d69;
  font-size: 17px;
}

.p1-answer__copy li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--p1-accent);
}

.p1-section[id] {
  scroll-margin-top: 72px;
}

.p1-signal-grid,
.p1-scope-grid,
.p1-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.p1-signal,
.p1-scope,
.p1-fit {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--p1-line);
  border-radius: var(--p1-radius);
  background: #fff;
}

.p1-signal::before,
.p1-scope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--p1-accent);
}

.p1-signal h3,
.p1-scope h3,
.p1-fit h3,
.p1-step h3 {
  margin: 10px 0 10px;
  color: var(--p1-navy-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.p1-signal p,
.p1-scope p,
.p1-fit p,
.p1-step p {
  margin: 0;
  color: #5b6570;
  font-size: 16px;
  line-height: 1.52;
}

.p1-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--p1-radius);
  overflow: hidden;
}

.p1-step {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.p1-step:last-child {
  border-right: 0;
}

.p1-step__num {
  color: var(--p1-gold);
}

.p1-step h3 {
  color: #fff;
}

.p1-step p {
  color: rgba(255, 255, 255, 0.72);
}

.p1-scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p1-scope {
  min-height: 0;
}

.p1-scope ul,
.p1-fit ul {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.p1-scope li,
.p1-fit li {
  position: relative;
  margin-top: 9px;
  padding-left: 17px;
  color: #4f5965;
  font-size: 16px;
}

.p1-scope li::before,
.p1-fit li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--p1-accent);
}

.p1-fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p1-fit {
  min-height: 0;
}

.p1-fit--muted {
  background: transparent;
}

.p1-prose {
  max-width: 780px;
}

.p1-prose p {
  margin: 0 0 20px;
}

.p1-prose a,
.p1-section a:not(.p1-btn):not(.p1-btn--secondary) {
  color: var(--p1-navy);
  text-decoration-color: var(--p1-accent);
  text-underline-offset: 3px;
}

.p1-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.p1-faq details {
  border: 1px solid var(--p1-line);
  border-radius: 8px;
  background: #fff;
}

.p1-faq summary {
  cursor: pointer;
  padding: 19px 48px 19px 20px;
  color: var(--p1-navy-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.p1-faq details p {
  margin: 0;
  padding: 0 20px 22px;
  color: #59636e;
  font-size: 16px;
}

.p1-final {
  padding: clamp(68px, 8vw, 96px) 0;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(139, 74, 95, 0.26), transparent 48%),
    var(--p1-navy-deep);
}

body[data-hub="problems"] .p1-final {
  background:
    linear-gradient(110deg, rgba(176, 67, 44, 0.28), transparent 48%),
    var(--p1-navy-deep);
}

.p1-final__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.p1-final h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: #fff;
  font-family: "DM Serif Display", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
}

.p1-final p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.p1-final .p1-btn {
  border-color: #fff;
  color: var(--p1-navy-deep);
  background: #fff;
}

.p1-footer {
  padding: 54px 0 26px;
  border-top: 1px solid var(--p1-line);
  background: #fff;
}

.p1-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 42px;
}

.p1-footer__brand img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.p1-footer__brand p {
  max-width: 270px;
  margin: 14px 0 0;
  color: var(--p1-muted);
  font-size: 15px;
}

.p1-footer h2 {
  margin: 0 0 14px;
  color: var(--p1-navy);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p1-footer nav a {
  display: block;
  margin: 9px 0;
  color: #57616c;
  font-size: 14px;
  text-decoration: none;
}

.p1-footer__base {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--p1-line);
  color: #707985;
  font-size: 13px;
}

@media (max-width: 960px) {
  .p1-hero__grid {
    grid-template-columns: 1fr;
  }

  .p1-hero__copy {
    max-width: 780px;
  }

  .p1-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-step:nth-child(2) {
    border-right: 0;
  }

  .p1-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .p1-signal-grid {
    grid-template-columns: 1fr;
  }

  .p1-signal {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  body.p1-page {
    font-size: 17px;
  }

  .p1-header__inner {
    width: min(100% - 28px, 1180px);
    min-height: 72px;
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .p1-menu {
    justify-self: end;
    gap: 15px;
  }

  .p1-menu a:nth-child(2),
  .p1-menu a:nth-child(3) {
    display: none;
  }

  .p1-header__cta {
    display: none;
  }

  .p1-wrap {
    width: min(100% - 34px, 1160px);
  }

  .p1-hero {
    padding: 48px 0 62px;
  }

  .p1-hero::before {
    width: 4px;
  }

  .p1-hero__grid {
    gap: 38px;
  }

  .p1-crumb {
    margin-bottom: 24px;
  }

  .p1-h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .p1-actions {
    display: grid;
  }

  .p1-actions .p1-btn--secondary,
  .p1-trustline {
    display: none;
  }

  .p1-btn,
  .p1-btn--secondary {
    width: 100%;
  }

  .p1-visual-note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -6px 10px 0;
    border-radius: 0 0 7px 7px;
  }

  .p1-hero__visual::after {
    display: none;
  }

  .p1-jump {
    top: 0;
  }

  .p1-answer {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .p1-answer__mark {
    font-size: 42px;
  }

  .p1-scope-grid,
  .p1-fit-grid,
  .p1-faq {
    grid-template-columns: 1fr;
  }

  .p1-flow {
    grid-template-columns: 1fr;
  }

  .p1-step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .p1-step:nth-child(2) {
    border-right: 0;
  }

  .p1-step:last-child {
    border-bottom: 0;
  }

  .p1-final__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .p1-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 440px) {
  .p1-menu a {
    display: none;
  }

  .p1-header__inner {
    grid-template-columns: 1fr;
  }

  .p1-logo {
    justify-self: center;
  }

  .p1-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
