/* v10 — evidence-led X education, editorial eyecatches, and a stronger conversion frame */

.p10-site {
  --p10-porcelain: #fbfbfa;
  --p10-ink: #202124;
  --p10-navy: #102331;
  --p10-navy-soft: #183547;
  --p10-mist: #ddecef;
  --p10-coral: #d75f55;
  --p10-coral-soft: #f0dad6;
  --p10-line: rgba(32, 33, 36, 0.13);
}

/* Hero: one composed visual, rather than disconnected floating cards. */

.p10-site .p10-hero {
  padding: clamp(7.4rem, 9vw, 8.8rem) 0 clamp(4.5rem, 7vw, 6.7rem);
  background:
    linear-gradient(180deg, #f6f8f7 0, var(--p10-porcelain) 68%, #fff 100%);
}

.p10-hero-stage {
  position: relative;
  min-height: clamp(37rem, 54vw, 45rem);
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(32, 33, 36, 0.09);
  border-radius: clamp(1.6rem, 3vw, 2.8rem);
  background: #f7f8f6;
  box-shadow: 0 2.4rem 7rem rgba(20, 41, 52, 0.11);
  isolation: isolate;
}

.p10-hero-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 57%;
  background: linear-gradient(90deg, rgba(251, 251, 250, 0.99) 0%, rgba(251, 251, 250, 0.97) 73%, rgba(251, 251, 250, 0) 100%);
  content: "";
  pointer-events: none;
}

.p10-site .p10-hero-copy {
  z-index: 2;
  grid-area: 1 / 1;
  width: 54%;
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 6vw, 5.7rem) 0 clamp(3.2rem, 5vw, 5rem) clamp(2rem, 5vw, 4.7rem);
  align-self: center;
  text-align: left;
}

.p10-site .p10-hero-copy .p7-hero-overline {
  justify-content: flex-start;
  color: #61666a;
}

.p10-site .p10-hero-copy h1 {
  max-width: 39rem;
  margin-top: 1.25rem;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.07;
}

.p10-site .p10-hero-copy h1 small {
  margin-bottom: 0.55rem;
  color: #6c7074;
  font-size: 0.21em;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.p10-site .p10-hero-copy > p:last-of-type {
  max-width: 36rem;
  margin: 1.45rem 0 0;
  color: #575d61;
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 1.95;
}

.p10-hero-facts {
  max-width: 34rem;
  margin-top: 1.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--p10-line);
  border-bottom: 1px solid var(--p10-line);
}

.p10-hero-facts div {
  padding: 0.95rem 1.15rem 1rem 0;
}

.p10-hero-facts div + div {
  padding-left: 1.15rem;
  border-left: 1px solid var(--p10-line);
}

.p10-hero-facts dt {
  color: #777b7f;
  font-size: 0.72rem;
  font-weight: 500;
}

.p10-hero-facts dd {
  margin-top: 0.18rem;
  color: var(--p10-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.p10-site .p10-hero-copy .p7-hero-actions {
  margin-top: 1.65rem;
  justify-content: flex-start;
}

.p10-hero-visual {
  --p5-parallax-y: 0px;
  z-index: 0;
  grid-area: 1 / 1;
  min-width: 0;
  transform: translate3d(0, var(--p5-parallax-y), 0) scale(1.018);
}

.p10-hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.p10-site .p7-hero-deck {
  margin-top: clamp(3.4rem, 6vw, 5.2rem);
}

.p10-deck-label {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #686d71;
  font-size: 0.76rem;
  font-weight: 500;
}

.p10-deck-label span {
  color: var(--p10-coral);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

/* Recommendation evidence */

.p10-site .p6-x {
  color: #fff;
  background: var(--p10-navy);
}

.p10-site .p6-x-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 68% 42%, #000, transparent 74%);
}

.p10-site .p6-section-head-dark .p6-section-label,
.p10-site .p6-section-head-dark > p {
  color: rgba(255, 255, 255, 0.67);
}

.p10-site .p6-section-head-dark h2 {
  color: #fff;
}

.p10-algorithm {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--p10-ink);
  background: var(--p10-porcelain);
  box-shadow: 0 2.2rem 6rem rgba(0, 0, 0, 0.2);
}

.p10-algorithm-intro {
  min-height: 20rem;
  padding: clamp(2.2rem, 4.2vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.4fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 20%, rgba(255, 255, 255, 0.85), transparent 17rem),
    var(--p10-mist);
}

.p10-algorithm-intro > div {
  position: relative;
  z-index: 1;
  max-width: 43rem;
}

.p10-algorithm-intro > div > p:first-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #687176;
  font-size: 0.74rem;
  font-weight: 600;
}

.p10-algorithm-intro > div > p:first-child span {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--p10-coral);
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.p10-algorithm-intro h3 {
  max-width: 40rem;
  margin-top: 1.2rem;
  font-size: clamp(2rem, 3.65vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.3;
  text-wrap: balance;
}

.p10-algorithm-intro > div > p:last-child {
  max-width: 39rem;
  margin-top: 1.1rem;
  color: #5b6266;
  font-size: 0.92rem;
  line-height: 1.9;
}

.p10-algorithm-intro figure {
  --p5-parallax-y: 0px;
  width: min(100%, 18rem);
  margin: 0 auto -4.5rem;
  transform: translate3d(0, var(--p5-parallax-y), 0) rotate(1.5deg);
}

.p10-algorithm-intro figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1.25rem 1.5rem rgba(16, 35, 49, 0.15));
}

.p10-algorithm-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p10-algorithm-flow::before {
  position: absolute;
  z-index: 1;
  top: 2.2rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--p10-coral), rgba(215, 95, 85, 0.18));
  content: "";
}

.p10-algorithm-flow > li {
  position: relative;
  z-index: 2;
  min-height: 25rem;
  padding: clamp(2.2rem, 3.5vw, 3.4rem) clamp(1.5rem, 2.8vw, 2.6rem) 2.7rem;
}

.p10-algorithm-flow > li + li {
  border-left: 1px solid var(--p10-line);
}

.p10-algorithm-flow > li > div {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.p10-algorithm-flow > li > div > span {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--p10-coral);
  border-radius: 50%;
  color: var(--p10-coral);
  background: var(--p10-porcelain);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.p10-algorithm-flow small {
  color: #7b8185;
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.p10-algorithm-flow h3 {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.p10-algorithm-flow > li > p {
  margin-top: 0.85rem;
  color: #62686c;
  font-size: 0.84rem;
  line-height: 1.9;
}

.p10-algorithm-flow .p10-algorithm-note {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--p10-line);
  color: #868b8e;
  font-family: "Manrope", "Hiragino Sans", sans-serif;
  font-size: 0.7rem;
}

.p10-algorithm-conclusion {
  padding: clamp(2.2rem, 4.2vw, 3.8rem);
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.85fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  color: var(--p10-ink);
  background: var(--p10-coral-soft);
}

.p10-algorithm-conclusion > p:first-child {
  padding-top: 0.35rem;
  color: #a9433b;
  font-size: 0.75rem;
  font-weight: 700;
}

.p10-algorithm-conclusion h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.p10-algorithm-conclusion > p:last-child {
  color: #655c5b;
  font-size: 0.82rem;
  line-height: 1.9;
}

.p10-site .p10-x-actions {
  border-color: rgba(255, 255, 255, 0.17);
}

.p10-site .p10-x-actions article + article {
  border-color: rgba(255, 255, 255, 0.17);
}

.p10-site .p10-x-actions h3 {
  color: #fff;
}

.p10-site .p10-x-actions p,
.p10-site .p6-x-source,
.p10-site .p6-x-source a {
  color: rgba(255, 255, 255, 0.64);
}

.p10-site .p6-x-source {
  max-width: 66rem;
  font-size: 0.75rem;
  line-height: 2;
}

.p10-site .p6-x-source a {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Editorial thumbnails: generated scene plus reliable HTML typography. */

.p10-site .p6-journal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3.2rem, 5vw, 4.8rem) clamp(1.5rem, 3vw, 2.5rem);
}

.p10-site .p6-journal-grid article,
.p10-site .p6-journal-grid article.is-feature {
  grid-row: auto;
  display: block;
  padding-top: 0;
  border-top: 0;
}

.p10-site .p6-journal-grid figure,
.p10-site .p6-journal-grid .is-feature figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--p10-navy);
  box-shadow: 0 1.35rem 3.4rem rgba(17, 37, 50, 0.13);
}

.p10-site .p6-journal-grid figure::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, rgba(8, 25, 39, 0.48), rgba(8, 25, 39, 0.04) 62%, transparent);
  content: "";
  pointer-events: none;
}

.p10-site .p6-journal-grid figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.p10-site .p6-journal-grid article:hover figure img {
  transform: scale(1.025);
}

.p10-journal-eyecatch figcaption {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(1.25rem, 3vw, 2.4rem);
  width: 47%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  transform: translateY(-50%);
  color: #fff;
}

.p10-journal-eyecatch figcaption small {
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
}

.p10-journal-eyecatch figcaption strong {
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
  text-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.2);
}

.p10-journal-eyecatch figcaption b {
  margin-top: 0.35rem;
  color: #ff8e84;
  font-size: clamp(1.1rem, 1.9vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.p10-site .p6-journal-grid article > div,
.p10-site .p6-journal-grid .is-feature > div {
  margin-top: 1.35rem;
}

.p10-site .p6-journal-grid h3,
.p10-site .p6-journal-grid .is-feature h3 {
  max-width: 38rem;
  margin-top: 0.7rem;
  font-size: clamp(1.22rem, 1.75vw, 1.55rem);
  line-height: 1.58;
}

.p10-site .p6-journal-grid article > div > p:nth-of-type(2) {
  max-width: 40rem;
  font-size: 0.8rem;
}

/* Footer conversion panel */

.p10-footer-cta {
  --p10-ink: #202124;
  --p10-navy: #102331;
  --p10-mist: #ddecef;
  --p10-coral: #d75f55;
  position: relative;
  padding: clamp(2.2rem, 4.5vw, 4.4rem) clamp(1.6rem, 5vw, 4.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.34fr);
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border-radius: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--p10-ink);
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.88), transparent 17rem),
    var(--p10-mist);
}

.p10-footer-cta > div {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.p10-footer-cta > div > p:first-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #657075;
  font-size: 0.74rem;
  font-weight: 600;
}

.p10-footer-cta > div > p:first-child span {
  color: var(--p10-coral);
  font-family: "Manrope", sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p10-footer-cta h2 {
  margin-top: 0.95rem;
  color: var(--p10-ink);
  font-size: clamp(2rem, 3.7vw, 3.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.p10-footer-cta > div > p:nth-child(3) {
  max-width: 39rem;
  margin-top: 0.9rem;
  color: #5e676b;
  font-size: 0.9rem;
  line-height: 1.9;
}

.p10-footer-cta > div > div {
  margin-top: 1.55rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.p10-footer-primary,
.p10-footer-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.p5-site .p10-footer-primary {
  min-height: 3.45rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  color: #fff;
  background: var(--p10-navy);
  transition: transform 180ms ease, background 180ms ease;
}

.p5-site .p10-footer-primary:hover,
.p5-site .p10-footer-primary:focus-visible,
.p5-site .p10-footer-primary:active {
  color: #fff;
  background: #1b3d51;
}

.p5-site .p10-footer-primary:hover {
  transform: translateY(-2px);
}

.p10-footer-secondary {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(32, 33, 36, 0.35);
  color: var(--p10-ink);
}

.p10-footer-cta figure {
  position: absolute;
  z-index: 1;
  right: clamp(0.5rem, 3vw, 2.5rem);
  bottom: -5.2rem;
  width: min(29%, 20rem);
  transform: rotate(2deg);
}

.p10-footer-cta figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1rem 1.5rem rgba(16, 35, 49, 0.15));
}

.p5-footer:has(.p10-footer-cta) .p5-footer-main {
  padding-top: clamp(4rem, 6vw, 5.5rem);
}

.p5-footer:has(.p10-footer-cta) {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

@media (max-width: 980px) {
  .p10-hero-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .p10-hero-stage::after {
    display: none;
  }

  .p10-site .p10-hero-copy {
    width: 100%;
    max-width: 47rem;
    padding: 0;
  }

  .p10-hero-visual {
    width: 100%;
    margin-top: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--p10-line);
    border-radius: 1.8rem;
    background: #f6f8f7;
    box-shadow: 0 1.5rem 4rem rgba(20, 41, 52, 0.1);
    transform: none !important;
  }

  .p10-hero-visual img {
    height: auto;
  }

  .p10-algorithm-conclusion {
    grid-template-columns: 0.35fr 1fr;
  }

  .p10-algorithm-conclusion > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .p10-site .p10-hero {
    padding: 7rem 0 3.8rem;
  }

  .p10-site .p10-hero-copy .p7-hero-overline {
    align-items: flex-start;
  }

  .p10-site .p10-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.65rem);
    line-height: 1.1;
  }

  .p10-site .p10-hero-copy > p:last-of-type {
    font-size: 0.9rem;
    line-height: 1.85;
  }

  .p10-hero-facts {
    max-width: none;
  }

  .p10-hero-facts div {
    padding-right: 0.75rem;
  }

  .p10-hero-facts div + div {
    padding-left: 0.75rem;
  }

  .p10-site .p10-hero-copy .p7-hero-actions .p5-text-link {
    margin-inline: 0;
  }

  .p10-hero-visual {
    margin-top: 2rem;
    border-radius: 1.2rem;
  }

  .p10-site .p7-hero-deck {
    margin-top: 3.2rem;
  }

  .p10-algorithm-intro {
    min-height: auto;
    padding: 2rem 1.4rem 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .p10-algorithm-intro h3 {
    font-size: clamp(1.85rem, 8.8vw, 2.6rem);
  }

  .p10-algorithm-intro > div > p:last-child {
    font-size: 0.86rem;
  }

  .p10-algorithm-intro figure {
    width: min(62%, 15rem);
    margin: 1rem auto -2.2rem;
    transform: none !important;
  }

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

  .p10-algorithm-flow::before {
    top: 3rem;
    right: auto;
    bottom: 3rem;
    left: 2.45rem;
    width: 2px;
    height: auto;
    background: linear-gradient(var(--p10-coral), rgba(215, 95, 85, 0.15));
  }

  .p10-algorithm-flow > li {
    min-height: auto;
    padding: 2rem 1.4rem 2.2rem;
  }

  .p10-algorithm-flow > li + li {
    border-top: 1px solid var(--p10-line);
    border-left: 0;
  }

  .p10-algorithm-flow h3,
  .p10-algorithm-flow > li > p {
    margin-left: 3.25rem;
  }

  .p10-algorithm-flow h3 {
    margin-top: 1.15rem;
    font-size: 1.35rem;
  }

  .p10-algorithm-flow .p10-algorithm-note {
    margin-left: 3.25rem;
  }

  .p10-algorithm-conclusion {
    padding: 2rem 1.4rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .p10-algorithm-conclusion > p:last-child {
    grid-column: auto;
  }

  .p10-algorithm-conclusion h3 {
    font-size: 1.55rem;
  }

  .p10-site .p6-journal-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .p10-site .p6-journal-grid article,
  .p10-site .p6-journal-grid article.is-feature {
    display: block;
    padding-top: 0;
    border-top: 0;
  }

  .p10-site .p6-journal-grid figure,
  .p10-site .p6-journal-grid .is-feature figure {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
  }

  .p10-journal-eyecatch figcaption {
    left: 1.15rem;
    width: 49%;
  }

  .p10-journal-eyecatch figcaption small {
    margin-bottom: 0.45rem;
    font-size: 0.57rem;
  }

  .p10-journal-eyecatch figcaption strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .p10-journal-eyecatch figcaption b {
    font-size: clamp(1rem, 5.4vw, 1.4rem);
  }

  .p10-site .p6-journal-grid article > div > p:nth-of-type(2) {
    display: block;
  }

  .p10-footer-cta {
    padding: 2.3rem 1.4rem 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .p10-footer-cta h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .p10-footer-cta > div > div {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .p10-footer-primary {
    width: 100%;
  }

  .p10-footer-secondary {
    width: max-content;
  }

  .p10-footer-cta figure {
    position: relative;
    right: auto;
    bottom: -2.8rem;
    width: min(68%, 16rem);
    margin: -1rem auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p10-hero-visual,
  .p10-algorithm-intro figure {
    transform: none !important;
  }

  .p10-site .p6-journal-grid figure img,
  .p10-footer-primary {
    transition: none;
  }
}
