/* Focused commercial sector-page content only. Navigation, breadcrumbs,
   related links and footer are owned by standardise_chrome.py/patch_seo.py. */
body.ifx-landing { background: #0b0f19; }
body.ifx-landing main { max-width: none; margin: 0; padding: 0; overflow: clip; }
body.ifx-landing main > section { position: relative; padding: clamp(3.5rem, 7vw, 6rem) var(--shell-pad); }
body.ifx-landing main > section + section { border-top: 1px solid rgba(148, 163, 184, .12); }
body.ifx-landing main > section:nth-child(even) { background: #f1f5f9; color: #1e293b; border-top-color: rgba(11, 15, 25, .08); }
body.ifx-landing main p, body.ifx-landing main li { max-width: 75ch; color: #cbd5e1; }
body.ifx-landing main a:not(.landing-btn) { color: #4fd2d0; text-decoration: underline; text-underline-offset: 3px; }

.landing-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-top: 0 !important; }
.landing-tag { display: inline-block; margin-bottom: 1rem; padding: .35rem .8rem; border: 1px solid rgba(79, 210, 208, .28); border-radius: 999px; background: rgba(79, 210, 208, .1); color: #4fd2d0; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-hero h1 { margin: 0 0 1rem; color: #f8fafc; font-size: clamp(2.25rem, 5vw, 4.35rem); line-height: 1.04; letter-spacing: -.035em; }
.landing-deck { margin: 0 0 1.5rem; color: #cbd5e1; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.landing-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.2rem; border: 1px solid #4fd2d0; border-radius: 9px; background: #4fd2d0; color: #071219; font-weight: 750; text-decoration: none; }
.landing-btn.secondary { background: transparent; color: #d8f7f6; }

.landing-panel, .landing-card, .landing-example, .landing-cta { background: #141c2e; border: 1px solid rgba(148, 163, 184, .16); border-radius: 14px; }
.landing-panel { padding: 1.4rem; border-top: 3px solid #4fd2d0; }
.landing-panel h2 { margin: 0 0 1rem; color: #f1f5f9; font-size: 1.05rem; }
.landing-date { padding: .85rem 0; border-top: 1px solid rgba(148, 163, 184, .13); }
.landing-date:first-of-type { border-top: 0; padding-top: 0; }
.landing-date strong { display: block; color: #4fd2d0; font-size: 1.18rem; }
.landing-date span { color: #cbd5e1; font-size: .9rem; }
.landing-panel .landing-small { margin-top: 1rem; color: #94a3b8; font-size: .8rem; line-height: 1.6; }

.landing-heading { max-width: 760px; margin-bottom: 1.5rem; }
.landing-heading h2 { margin: 0 0 .65rem; color: #f1f5f9; font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.15; }
.landing-heading p { font-size: 1.02rem; line-height: 1.75; }
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.landing-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-card { padding: 1.25rem; }
.landing-card .landing-n { margin-bottom: .5rem; color: #4fd2d0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.landing-card h3 { margin: 0 0 .55rem; color: #f1f5f9; font-size: 1.02rem; line-height: 1.35; }
.landing-card p, .landing-card li { color: #aebbd0; font-size: .9rem; line-height: 1.65; }
.landing-card ul { margin: .65rem 0 0; padding-left: 1.15rem; }

.landing-example { padding: clamp(1.25rem, 4vw, 2rem); border-left: 3px solid #4fd2d0; }
.landing-example h3 { margin: 0 0 .8rem; color: #f1f5f9; }
.landing-example dl { display: grid; grid-template-columns: 9rem 1fr; gap: .65rem 1rem; }
.landing-example dt { color: #4fd2d0; font-size: .82rem; font-weight: 750; }
.landing-example dd { margin: 0; color: #cbd5e1; font-size: .92rem; }

.landing-check { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.landing-check li { position: relative; padding-left: 1.7rem; }
.landing-check li::before { content: "✓"; position: absolute; left: 0; color: #4fd2d0; font-weight: 800; }
.landing-warning { margin-top: 1.3rem; padding: 1rem 1.1rem; border: 1px solid rgba(79, 210, 208, .25); border-left: 3px solid #4fd2d0; border-radius: 10px; background: #101827; color: #cbd5e1; font-size: .9rem; line-height: 1.7; }
.landing-source { margin-top: 1.1rem; color: #94a3b8 !important; font-size: .82rem; line-height: 1.6; }

.landing-cta { padding: clamp(1.5rem, 5vw, 2.6rem); text-align: center; border-color: rgba(79, 210, 208, .28); }
.landing-cta h2 { margin: 0 0 .65rem; color: #f1f5f9; font-size: clamp(1.5rem, 3vw, 2rem); }
.landing-cta p { margin: 0 auto 1.25rem; }
.landing-cta .landing-actions { justify-content: center; }

@media (max-width: 900px) {
  .landing-hero, .landing-grid, .landing-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .landing-example dl { grid-template-columns: 1fr; }
  .landing-example dt { margin-top: .45rem; }
}

/* Conversion-led refresh -------------------------------------------------
   The homepage established the visual rule: dark for product and action,
   light for paper, process and evidence. Focused pages now follow it, with
   stronger hierarchy and a useful assurance strip before the detailed copy. */
.landing-hero {
  padding-top: clamp(3.5rem, 7vw, 6.5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem) !important;
  background:
    radial-gradient(circle at 83% 18%, rgba(79, 210, 208, .10), transparent 27%),
    linear-gradient(180deg, rgba(18, 24, 42, .34), rgba(11, 15, 25, 0));
}
.landing-hero > * { position: relative; z-index: 1; }
.landing-tag {
  margin-bottom: 1.15rem;
  padding: .4rem .85rem;
  border-color: rgba(79, 210, 208, .32);
  background: rgba(79, 210, 208, .09);
  color: #62ddda;
  font-size: .73rem;
  line-height: 1.45;
}
.landing-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.15rem;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.landing-deck { max-width: 64ch !important; line-height: 1.72; }
.landing-btn {
  min-height: 48px;
  padding: .78rem 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.landing-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79, 210, 208, .18);
  filter: brightness(1.04);
}
.landing-panel,
.landing-card,
.landing-example,
.landing-cta {
  background: linear-gradient(145deg, #172136, #121a2b);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, .16);
}
.landing-panel { padding: clamp(1.25rem, 3vw, 1.55rem); }
.landing-date strong { color: #55d7d4; font-size: 1.12rem; }
.landing-date span { line-height: 1.55; }
.landing-panel .landing-small { margin-bottom: 0; line-height: 1.65; }

.landing-assurance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(.2rem, 1.5vw, 1rem);
  overflow: hidden;
  background: rgba(20, 28, 46, .72);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.landing-assurance p {
  margin: 0;
  padding: 1rem 1.2rem;
  border-left: 1px solid rgba(148, 163, 184, .13);
}
.landing-assurance p:first-child { border-left: 0; }
.landing-assurance strong { display: block; margin-bottom: .18rem; color: #f8fafc; font-size: .86rem; }
.landing-assurance span { color: #94a3b8; font-size: .79rem; }

.landing-heading { max-width: 800px; margin-bottom: clamp(1.5rem, 3vw, 2.1rem); }
.landing-heading::before {
  content: "";
  display: block;
  width: 2.8rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 99px;
  background: #4fd2d0;
}
.landing-heading h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.landing-heading p { margin-top: 0; font-size: 1.03rem; }
.landing-card {
  padding: clamp(1.2rem, 2.5vw, 1.45rem);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 210, 208, .34);
  box-shadow: 0 18px 38px rgba(2, 6, 23, .22);
}
.landing-card .landing-n { margin-top: 0; color: #55d7d4; }
.landing-card h3 { font-size: 1.04rem; }
.landing-card p:last-child { margin-bottom: 0; }
.landing-card li + li { margin-top: .32rem; }
.landing-example { max-width: 1050px; padding: clamp(1.35rem, 4vw, 2.2rem); }
.landing-example h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.landing-example dl { grid-template-columns: 10rem minmax(0, 1fr); gap: .8rem 1.2rem; }
.landing-example dt { color: #55d7d4; font-size: .8rem; font-weight: 800; letter-spacing: .03em; }
.landing-example dd { line-height: 1.65; }
.landing-warning { max-width: 1050px; margin-top: 1.4rem; line-height: 1.72; }
.landing-source { line-height: 1.65; }

/* Light bands use the same paper surface and ink colours as .section-light
   on the homepage. Cards become white sheets rather than dark boxes. */
body.ifx-landing main > section:nth-child(even) .landing-heading h2,
body.ifx-landing main > section:nth-child(even) .landing-card h3,
body.ifx-landing main > section:nth-child(even) .landing-example h3 { color: #0b0f19; }
body.ifx-landing main > section:nth-child(even) p,
body.ifx-landing main > section:nth-child(even) li,
body.ifx-landing main > section:nth-child(even) dd { color: #475569; }
body.ifx-landing main > section:nth-child(even) a:not(.landing-btn) { color: #145f5d; }
body.ifx-landing main > section:nth-child(even) .landing-card,
body.ifx-landing main > section:nth-child(even) .landing-example {
  background: #ffffff;
  border-color: rgba(11, 15, 25, .09);
  box-shadow: 0 2px 5px rgba(15, 23, 42, .05), 0 16px 38px rgba(15, 23, 42, .06);
}
body.ifx-landing main > section:nth-child(even) .landing-card:hover {
  border-color: rgba(30, 110, 109, .42);
  box-shadow: 0 16px 35px rgba(15, 23, 42, .11);
}
body.ifx-landing main > section:nth-child(even) .landing-n,
body.ifx-landing main > section:nth-child(even) .landing-example dt { color: #176d6b; }
body.ifx-landing main > section:nth-child(even) .landing-warning {
  background: #e3f1f1;
  border-color: rgba(23, 109, 107, .24);
  border-left-color: #176d6b;
  color: #334155;
}
body.ifx-landing main > section:nth-child(even) .landing-source { color: #64748b !important; }

.landing-cta {
  padding: clamp(2rem, 5vw, 3.2rem);
  border-color: rgba(79, 210, 208, .34);
  background:
    radial-gradient(circle at 50% 0, rgba(79, 210, 208, .12), transparent 45%),
    linear-gradient(145deg, #152137, #0f1727);
  box-shadow: 0 24px 60px rgba(2, 6, 23, .22);
}
.landing-cta h2 {
  max-width: 24ch;
  margin-inline: auto;
  color: #f8fafc !important;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.18;
  text-wrap: balance;
}
.landing-cta p { color: #cbd5e1 !important; }
.landing-cta .landing-btn.secondary { color: #d8f7f6; }
section[aria-labelledby="faq-h"] .landing-card { border-left: 3px solid rgba(79, 210, 208, .48); }
section[aria-labelledby="faq-h"] .landing-card h3 { font-size: 1rem; }

@media (max-width: 900px) {
  .landing-hero h1 { max-width: 16ch; }
  .landing-panel { max-width: 680px; }
}
@media (max-width: 760px) {
  body.ifx-landing main > section { padding-block: 3.5rem; }
  .landing-hero { padding-top: 3rem !important; }
  .landing-assurance { grid-template-columns: 1fr; }
  .landing-assurance p { border-left: 0; border-top: 1px solid rgba(148, 163, 184, .13); }
  .landing-assurance p:first-child { border-top: 0; }
  .landing-example dl { grid-template-columns: 1fr; gap: .35rem; }
  .landing-example dt { margin-top: .55rem; }
}
@media (max-width: 480px) {
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-btn, .landing-card { transition: none; }
  .landing-btn:hover, .landing-card:hover { transform: none; }
}

/* Cross-link from a focused automation page into the build rung. Sits inside the
   closing CTA section rather than bare in <main>, so it inherits the shell padding
   and, critically, whichever link colour that section's nth-child polarity sets —
   the teal accent is 1.67:1 on the #f1f5f9 light band and unreadable there. */
body.ifx-landing main .landing-xlink { margin-top: 2rem; font-size: .92rem; }

/* Related workflows are navigation: the whole card is one accessible link. */
body.ifx-landing main > section[aria-labelledby="related-h"] a.landing-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 96px;
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  background: #121a2b;
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
body.ifx-landing main > section[aria-labelledby="related-h"] .landing-related-arrow {
  flex: 0 0 auto;
  color: #4fd2d0;
  font-size: 1.35rem;
  font-weight: 500;
}
body.ifx-landing main > section[aria-labelledby="related-h"] a.landing-related-card:hover {
  border-color: #4fd2d0;
  background: #172136;
}
body.ifx-landing main > section[aria-labelledby="related-h"] a.landing-related-card:focus-visible {
  outline: 3px solid #4fd2d0;
  outline-offset: 4px;
}
body.ifx-landing main > section[aria-labelledby="related-h"] > p {
  margin: 1.5rem 0 0;
  font-size: .92rem;
  line-height: 1.75;
}
body.ifx-landing main > section:nth-child(even)[aria-labelledby="related-h"] a.landing-related-card {
  border-color: rgba(11, 15, 25, .12);
  background: #fff;
  color: #172033;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .04);
}
body.ifx-landing main > section:nth-child(even)[aria-labelledby="related-h"] .landing-related-arrow { color: #147f7d; }
body.ifx-landing main > section:nth-child(even)[aria-labelledby="related-h"] a.landing-related-card:hover {
  border-color: #147f7d;
  background: #f5fbfa;
}
body.ifx-landing main > section:nth-child(even)[aria-labelledby="related-h"] a.landing-related-card:focus-visible { outline-color: #147f7d; }
@media (max-width: 600px) {
  body.ifx-landing main > section[aria-labelledby="related-h"] a.landing-related-card { min-height: 76px; padding: 1.1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.ifx-landing main > section[aria-labelledby="related-h"] a.landing-related-card { transition: none; }
}
