/* landing-v1.css: landing system v1 (DESIGN-dev U12, U13a). Spec: docs/design/system/landing-v1.md (D1-D12),
   tokens: tokens.css. Loaded last (after style.css, fixes-p0.css, tokens.css). No !important.

   Scope (DS17): section inset, rhythm, head pattern, card language, FAQ, stat bar and post-list cards apply to
   the landing family only: services, industries, technologies, home and our-values. _layouts/default.html puts
   `landing-page` on <body> for those pages. Every such rule is prefixed `:where(.landing-page)`, which adds no
   specificity, so the cascade on a landing is the same as before and every other template (collaboration, team,
   search, demos, case studies, LBAI) keeps its pre-v1 look. Extending the look to another template is a design
   decision, not a side effect. Unscoped on purpose: the brand buttons (D8), the footer social set (D4, footer is
   in the layout), the image scrim (D7), mono weights. */

/* D1: one container, one left axis. Every top-level section takes the same inset and block padding. */
:where(.landing-page) main > section.site-section,
:where(.landing-page) .link-section,
:where(.landing-page) .why-choose-section,
:where(.landing-page) .testimonials-section,
:where(.landing-page) .faq-section,
:where(.landing-page) .kpi-section,
:where(.landing-page) .site-section.blog-section,
:where(.landing-page) .ccu-keystones-section,
:where(.landing-page) .hub-siblings-section,
:where(.landing-page) .landing-need,
:where(.landing-page) .landing-crosslinks {
  padding-inline: var(--section-inset);
  padding-block: var(--section-pad);
  box-sizing: border-box;
}

/* the section owns the inset: inner containers no longer inset themselves again */
:where(.landing-page) .ccu-keystones-section .container,
:where(.landing-page) .hub-siblings-section .container {
  width: 100%;
  margin-inline: 0;
}

/* consecutive need sections share one gap (the rule between them lives inside the container) */
:where(.landing-page) .landing-need + .landing-need {
  padding-top: 0;
}

:where(.landing-page) .section-wrapper {
  justify-content: flex-start;
}

/* D2: section head, eyebrow / H2 / intro on one axis, intro at the measure */
:where(.landing-page) .section-title-main {
  font-size: var(--type-h2);
  text-align: left;
  text-wrap: balance;
  max-width: 30ch;
}

:where(.landing-page) .landing-need .section-title-main {
  max-width: 34ch;
}

:where(.landing-page) .image-section-eyebrow {
  font-size: var(--type-eyebrow);
}

:where(.landing-page) .section-title-main + p,
:where(.landing-page) .site-section .highlight-box-text-block p,
:where(.landing-page) .landing-need p:not(.image-section-eyebrow),
:where(.landing-page) .landing-crosslinks .container > p {
  margin: var(--head-gap) 0 0;
  max-width: var(--measure);
  color: var(--color-text-muted);
  text-align: left;
}

:where(.landing-page) .why-choose-section .section-box-inner-block,
:where(.landing-page) .why-choose-section .why-choose-text {
  align-items: flex-start;
  text-align: left;
  max-width: none;
}

:where(.landing-page) .why-choose-section .why-choose-text > * {
  text-align: left;
}

:where(.landing-page) .link-section .link-collection {
  max-width: none;
}

:where(.landing-page) .link-section {
  gap: var(--space-m);
}

:where(.landing-page) .testimonials-section {
  align-items: stretch;
}

:where(.landing-page) .landing-need .landing-need-label,
:where(.landing-page) .landing-need .landing-need-offer {
  margin-top: var(--head-to-body);
}

/* D3: card grids sit on the axis and fill it; 3-5 capability cards spread across the container */
:where(.landing-page) .why-choose-section .why-choose-cards {
  justify-content: flex-start;
  margin-inline: 0;
  padding-inline: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--grid-gap);
}

:where(.landing-page) .why-choose-section .why-choose-cards .card {
  max-width: none;
  min-width: 0;
}

:where(.landing-page) .usp-section {
  padding-inline: 0;
  width: 100%;
}

:where(.landing-page) .landing-usp-container,
:where(.landing-page) .landing-usp-container-four {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--grid-gap);
  justify-content: flex-start;
  margin-inline: 0;
  max-width: none;
}

:where(.landing-page) .landing-usp-container > .landing-usp-box {
  max-width: none;
  width: auto;
}

/* D5: one tile for link lists (need links, keystones, cross-links band, hub siblings) */
:where(.landing-page) .ccu-keystone-item a,
:where(.landing-page) .hub-sibling-item a {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  padding: var(--space-s);
  box-sizing: border-box;
  transition: border-color var(--dur-fast) ease;
}

:where(.landing-page) .ccu-keystone-item a:hover,
:where(.landing-page) .ccu-keystone-item a:focus-visible,
:where(.landing-page) .hub-sibling-item a:hover,
:where(.landing-page) .hub-sibling-item a:focus-visible {
  border-color: var(--color-accent);
  transform: none;
}

:where(.landing-page) .ccu-keystone-bd a {
  border-color: var(--color-line);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

:where(.landing-page) .ccu-keystone-bd a:hover,
:where(.landing-page) .ccu-keystone-bd a:focus-visible {
  border-color: var(--color-accent);
}

:where(.landing-page) .ccu-keystones-list,
:where(.landing-page) .hub-siblings-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  grid-auto-rows: 1fr;
  gap: var(--grid-gap);
}

:where(.landing-page) .landing-need .ccu-keystones-list {
  margin-top: var(--space-s);
}

:where(.landing-page) .landing-crosslinks-title {
  font-weight: 500;
  font-size: var(--type-body);
}

:where(.landing-page) .landing-crosslinks-blurb,
:where(.landing-page) .hub-sibling-blurb {
  font-size: var(--type-small);
  color: var(--color-text-muted);
}

:where(.landing-page) .hub-sibling-title {
  font-weight: 500;
}

/* disclosure row ("Show all N deep dives"): reads as a control, not a tile */
:where(.landing-page) .ccu-keystones-more-toggle {
  justify-content: flex-start;
  gap: var(--space-s);
  background: transparent;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-s);
  min-height: 44px;
}

:where(.landing-page) .ccu-keystones-more-count {
  margin-left: auto;
}

/* D5/D6: article card (highlight-row and legacy post grids), image flush to the card top */
:where(.landing-page) .site-section.blog-section .article-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--grid-gap);
  margin: var(--head-to-body) 0 0;
  padding: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

:where(.landing-page) .site-section.blog-section .article-highlight-grid .article-card {
  max-width: none;
  padding: 0 0 var(--space-s);
  gap: var(--space-s);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  overflow: hidden;
}

:where(.landing-page) .site-section.blog-section .article-highlight-grid .article-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-accent);
}

:where(.landing-page) .article-card-media {
  height: auto;
  aspect-ratio: 16 / 9;
}

:where(.landing-page) .article-card-media img {
  border-radius: 0;
  height: 100%;
}

:where(.landing-page) .article-card-media::after {
  background: var(--scrim-card);
}

:where(.landing-page) .article-card-body {
  padding-inline: var(--space-s);
}

:where(.landing-page) .article-card-body .blog-preview-date {
  font-size: var(--type-small);
  color: var(--color-text-muted);
  margin: 0;
}

:where(.landing-page) .article-card-body .blog-preview-description {
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

:where(.landing-page) .article-card-body .blog-preview-title {
  font-size: var(--type-body);
  font-weight: 500;
  margin: 0;
}

/* highlight row head and CTA: left axis, no centring, no extra inset */
:where(.landing-page) .site-section.blog-section .highlight-box-text-block,
:where(.landing-page) .site-section.blog-section .highlight-box-cta-block {
  display: block;
  max-width: none;
  margin-inline: 0;
  width: 100%;
}

:where(.landing-page) .site-section.blog-section .highlight-box-cta-block {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  margin-top: var(--head-to-body);
}

/* head parts of the highlight row and the keystone-family blocks: style.css centred these with
   higher-specificity selectors (.blog-section .highlight-box-text-block ...); one axis, one gap. */
:where(.landing-page) .blog-section .highlight-box-text-block .image-section-eyebrow,
:where(.landing-page) .ccu-keystones-section .image-section-eyebrow {
  margin-block-end: var(--space-2xs);
  text-align: left;
}

:where(.landing-page) .blog-section .highlight-box-text-block .section-title-main {
  margin: 0;
  text-align: left;
  width: auto;
}

:where(.landing-page) .blog-section .highlight-box-text-block p:last-of-type {
  margin: var(--head-gap) 0 0;
  text-align: left;
  width: auto;
}

/* D5/D6: the post-list grid (home "Featured Insights" and "News", hub "Related Posts") uses the same article
   card as the highlight row: surface, 1px line, image flush on top, left on the axis, auto-fill tracks
   (N=1 stays in the first track, never stretched or centred). /blog and /case-studies keep their own look. */
:where(.landing-page) .site-section.blog-section .post-list-header {
  justify-content: flex-start;
  font-family: var(--font-sans);
  font-size: var(--type-h2);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
  text-align: left;
  text-wrap: balance;
  max-width: 30ch;
}

:where(.landing-page) .site-section.blog-section .blog-posts {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--grid-gap);
  justify-content: start;
  margin: var(--head-to-body) 0 0;
  padding: 0;
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-post-item {
  min-width: 0;
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-preview-container {
  height: 100%;
  box-sizing: border-box;
  padding: 0 0 var(--space-s);
  gap: var(--space-s);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  overflow: hidden;
  transition: border-color var(--dur-fast) ease;
}

:where(.landing-page) .site-section.blog-section .blog-posts a:hover .blog-preview-container,
:where(.landing-page) .site-section.blog-section .blog-posts a:focus-visible .blog-preview-container {
  border-color: var(--color-accent);
  transform: none;
  box-shadow: none;
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-preview-container img {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-preview-container > :not(img) {
  margin: 0;
  padding-inline: var(--space-s);
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-preview-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--type-body);
}

:where(.landing-page) .site-section.blog-section .blog-posts .blog-preview-container p {
  font-size: var(--type-small);
  color: var(--color-text-muted);
}

/* D10: FAQ on the axis, 44px rows, answer on the question's axis */
:where(.landing-page) .faq-section .faq-questions {
  max-width: none;
}

:where(.landing-page) .faq {
  border-bottom-color: var(--color-line-strong);
}

:where(.landing-page) .faq-question {
  min-height: 44px;
}

:where(.landing-page) .faq-icon {
  padding: 0 0 0 var(--space-s);
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
}

:where(.landing-page) .faq-answer,
:where(.landing-page) .faq.open .faq-answer {
  padding-inline: 0 var(--space-xl);
  max-width: var(--measure);
  color: var(--color-text-muted);
}

/* link list (home "Five Packs", "Pick by Industry"): rule colour from the token */
:where(.landing-page) .link {
  border-bottom-color: var(--color-line-strong);
}

/* D11: stat bar spans the container; figures in the sans face */
:where(.landing-page) .kpi-section {
  justify-items: stretch;
}

:where(.landing-page) .kpi-section .kpi-bar {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
  background: var(--color-surface);
  border-color: var(--color-line);
  border-radius: var(--radius-s);
}

:where(.landing-page) .kpi-value {
  font-size: var(--type-h2);
  font-family: var(--font-sans);
}

/* D12 mobile: heads run the width below 600px */
@media (max-width: 600px) {
  :where(.landing-page) .section-title-main,
  :where(.landing-page) .landing-need .section-title-main {
    max-width: none;
  }
}

/* D7: image-backed text sits behind one scrim layer, never on the bare photo. The page or its stylesheet
   declares the photo once as --hero-image; this rule adds the scrim above it. */
.image-backed {
  background-color: transparent;
  background-blend-mode: normal;
  background-image: var(--scrim-image-text), var(--hero-image);
  background-size: cover;
}

.tech-gradient {
  background: var(--scrim-card);
}

/* D8: brand buttons at WCAG AA in every state */
.lead-button {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.lead-button .text-default,
.lead-button .text-hover,
.lead-button .label {
  color: var(--color-on-accent);
}

.lead-button .arrow-box {
  border-color: var(--color-on-accent);
}

.lead-button .arrow-box img {
  filter: brightness(0);
}

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

.lead-button:hover .arrow-box,
.lead-button:focus-visible .arrow-box {
  border-color: var(--color-on-accent);
  background-color: transparent;
}

.lead-button:hover .arrow-box img,
.lead-button:focus-visible .arrow-box img {
  filter: brightness(0);
}

/* outline buttons: keyboard focus gets the same background and border as hover (the arrow box drops the
   grey fill and blur that style.css puts on .hero-button:hover .arrow-box) */
.primary-button:hover,
.primary-button:focus-visible,
.hero-button:hover,
.hero-button:focus-visible {
  background-color: rgba(247, 246, 243, .08);
  border-color: var(--color-accent);
  backdrop-filter: none;
}

.hero-button:hover .arrow-box,
.hero-button:focus-visible .arrow-box {
  background-color: transparent;
  backdrop-filter: none;
}

.primary-button:focus-visible,
.hero-button:focus-visible,
.lead-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* D4: social icons, one monochrome set (_includes/icons/*.svg, filled Simple Icons, currentColor), 44px targets */
.footer-social {
  gap: 0;
  align-items: center;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 0;
  color: var(--color-text);
}

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

.footer-social .icon-social {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

/* DS16 / U10: mono weights are 400 and 500 (tokens.md). LBAI score values and the LBAI CTA were bold (700);
   500 keeps them dominant without the heavy 700 draw, and ships one real file. */
.benchmark-container .score-value,
.lbai-cta {
  font-weight: 500;
}
