html:has(.journey-page) {
  scroll-padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
}

.journey-page {
  --header-offset: calc(4.75rem + env(safe-area-inset-top, 0px));
  --hero-title-max-h: clamp(140px, 36vw, 230px);
  background: #171412;
  color: #292524;
}

.journey-page main { background: #f7f4ef; }

.journey-hero {
  padding: calc(var(--header-offset) + 1.1rem) 0 2.2rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, .16), transparent 42%),
    #171412;
  color: #f5f5f4;
}

.journey-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.journey-hero .tools-breadcrumb {
  margin-bottom: 1.15rem;
  font-size: .9rem;
  color: #a8a29e;
}

.journey-hero .tools-breadcrumb a { color: #fed7aa; }

.journey-hero .growth-eyebrow { color: #fb923c; }

.journey-hero h1 {
  max-width: 13ch;
  margin: .35rem 0 .85rem;
  color: #fff;
  font: 700 clamp(2.15rem, 4.6vw, 3.7rem) / 1.02 'Space Grotesk', sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.journey-hero h1 span { color: #fb923c; }

.journey-hero p {
  max-width: 34rem;
  margin: 0;
  color: #d6d3d1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.journey-hero .tools-cta-row { margin-top: 1.25rem; }
.journey-hero .tools-btn--primary { background: #fb923c; color: #24140d; }
.journey-hero .tools-btn--ghost { background: transparent; border-color: #78716c; color: #fff; }

.journey-hero figure {
  margin: 0;
  width: 100%;
  max-width: none;
}
.journey-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1.9 / 1;
  max-height: none;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.journey-hero figcaption {
  margin-top: .55rem;
  color: #a8a29e;
  font-size: .76rem;
  line-height: 1.4;
}

.journey-figure {
  margin: .2rem 0 1.35rem;
}

.journey-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
}

.journey-figure figcaption {
  margin-top: .45rem;
  color: #78716c;
  font-size: .82rem;
  line-height: 1.4;
}

.journey-answer {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

.journey-answer p {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.15rem 0;
  color: #7c2d12;
  line-height: 1.65;
}

.journey-prose { max-width: 42rem; margin: 0 auto; }
.journey-prose > h2:first-child { margin-top: 0; }

.journey-page .tools-section { background: #f7f4ef; color: #292524; }
.journey-page .tools-section--alt { background: #eeeae3; border-color: #ddd6ce; }

.journey-page .tools-section h2 {
  margin: 0 0 .8rem;
  color: #1c1917;
  font: 700 clamp(1.45rem, 3vw, 2rem) / 1.2 'Space Grotesk', sans-serif;
}

.journey-page .tools-section h3 {
  margin: 1.2rem 0 .45rem;
  color: #1c1917;
  font: 700 1.05rem / 1.35 Inter, sans-serif;
}

.journey-page .tools-section p,
.journey-page .tools-section li { color: #44403c; line-height: 1.7; }
.journey-page .tools-section p { margin: 0 0 1rem; }
.journey-page .tools-section a { color: #b9380b; font-weight: 650; }
.journey-page .tools-section ul,
.journey-page .tools-section ol { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.journey-page .tools-section li + li { margin-top: .45rem; }
.journey-page .tools-section em { color: #57534e; }

.journey-page .article-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.3rem;
  border: 1px solid #d6d3d1;
  border-radius: 16px;
  background: #fff;
}

.journey-page .tools-section table,
.journey-page .tools-section table.comparison-table {
  width: 100%;
  margin: 0 0 1.3rem;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 14px;
  color: #292524;
}

.journey-page .article-compare-scroll table,
.journey-page .article-compare-scroll table.comparison-table {
  min-width: 32rem;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

.journey-page .tools-section th,
.journey-page .tools-section td,
.journey-page .tools-section table.comparison-table th,
.journey-page .tools-section table.comparison-table td {
  padding: .8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e7e5e4;
  color: #44403c;
  background: #fff;
}

.journey-page .tools-section th,
.journey-page .tools-section table.comparison-table th {
  background: #fff7ed;
  color: #7c2d12;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}

.journey-page .tools-section td:first-child,
.journey-page .tools-section th:first-child {
  font-weight: 650;
  color: #1c1917;
  white-space: nowrap;
}

.journey-page .tools-section tr:last-child td { border-bottom: 0; }
.journey-page .tools-section td.highlight {
  background: #fff7ed;
  color: #9a3412;
}

.compare-stack {
  display: grid;
  gap: .7rem;
  margin: 0 0 1.4rem;
}

.compare-stack__row {
  margin: 0;
  padding: .95rem 1.05rem;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  background: #fff;
}

.compare-stack__row h3 {
  margin: 0 0 .55rem;
  font-size: .95rem;
}

.compare-stack__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.compare-stack__cols p {
  margin: 0;
  padding: .55rem .65rem;
  border-radius: 10px;
  background: #f5f5f4;
  font-size: .92rem;
  line-height: 1.5;
}

.compare-stack__cols span {
  display: block;
  margin-bottom: .2rem;
  color: #78716c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.compare-stack__cols p.is-dp {
  background: #fff7ed;
  color: #7c2d12;
}

.split-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin: 0 0 1.4rem;
}

.split-callouts > div {
  padding: 1rem 1.05rem;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  background: #fff;
}

.split-callouts > div.is-dp {
  border-color: #fed7aa;
  background: #fff7ed;
}

.split-callouts h3 { margin: 0 0 .4rem; font-size: 1rem; }
.split-callouts p,
.split-callouts ul { margin: 0; }
.split-callouts ul { padding-left: 1.1rem; }

@media (max-width: 680px) {
  .compare-stack__cols,
  .split-callouts { grid-template-columns: 1fr; }
  .journey-page .tools-section td:first-child { white-space: normal; }
}

.journey-page .tools-section code {
  padding: .1rem .35rem;
  border-radius: 6px;
  background: #fff;
  color: #9a3412;
  font-size: .88em;
}

.journey-page .info-box {
  margin: 0 0 1.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.journey-page .info-box h2 {
  margin: 0 0 .4rem;
  color: #9a3412;
  font-size: 1.05rem;
}

.journey-page .info-box p { margin: 0; color: #7c2d12; }

.journey-template {
  white-space: pre-wrap;
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #d6d3d1;
  border-radius: 14px;
  background: #fff;
  color: #1c1917;
  font-size: .92rem;
  line-height: 1.55;
}

.journey-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.2rem;
}

.journey-copy-row .tools-btn { min-height: 42px; }

.journey-page .tools-faq { max-width: 42rem; }
.journey-page .tools-faq details { background: #fff; border-color: #d6d3d1; }
.journey-page .tools-faq summary { color: #1c1917; }
.journey-page .tools-faq details[open] summary { color: #c2410c; }
.journey-page .tools-faq details p { color: #57534e; }

.journey-page .tools-related a { background: #fff; border-color: #d6d3d1; color: #292524; }
.journey-page .tools-related a span { color: #c2410c; }
.journey-page .tools-related a:hover { border-color: #ea8a4a; color: #9a3412; }

.journey-cta { max-width: 42rem; margin: 0 auto; text-align: left; }
.journey-cta .tools-cta-row { margin-top: 1rem; }

.journey-page .tools-section .tools-btn--primary {
  background: #c2410c;
  color: #fff7ed;
  border-color: #c2410c;
}

.journey-page .tools-section .tools-btn--ghost {
  background: #fff;
  border-color: #c7bdb3;
  color: #7c2d12;
}

@media (max-width: 980px) {
  .journey-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .journey-hero h1 { max-width: none; }
  .journey-hero figure {
    max-width: none;
    justify-self: stretch;
  }
  .journey-hero img {
    aspect-ratio: 1.9 / 1;
    max-height: 200px;
  }
}

@media (max-width: 680px) {
  .journey-hero { padding: calc(var(--header-offset) + .75rem) 0 1.6rem; }
  .journey-hero .tools-btn,
  .journey-page .tools-section .tools-btn {
    width: 100%;
    justify-content: center;
  }
  .journey-page .tools-section th,
  .journey-page .tools-section td {
    font-size: .82rem;
    padding: .6rem .65rem;
  }
  .journey-figure img { max-height: 200px; }
}

@media (max-width: 680px) and (max-height: 740px) {
  :root { --hero-title-max-h: clamp(110px, 28vw, 170px); }
  .journey-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .journey-hero p { font-size: .98rem; }
  .journey-hero figcaption { display: none; }
}

@media (max-width: 380px) {
  .journey-hero .tools-breadcrumb { letter-spacing: 0; }
}

.journey-page .footer {
  padding: 40px 0 20px;
}

.journey-page .public-seo-hub {
  background: #171412;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
