/*
 * AMP x BYQ — shared section system
 * Layout logic adapted from BYQ Supply PRO. Visual language stays native to AMP.
 */

:root {
  --amp-ease-out: cubic-bezier(.23, 1, .32, 1);
  --amp-ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --amp-rule: color-mix(in srgb, var(--theme-text) 18%, transparent);
}

.button,
.header-cta,
.closing-team-primary,
.card,
.faq-list summary {
  transition-timing-function: var(--amp-ease-out);
}

.button:active,
.header-cta:active,
.closing-team-primary:active {
  transform: scale(.97);
  transition-duration: 140ms;
}

/* Nimbus-derived split hero: calmer spacing and a clearer visual hierarchy. */
.subpage-hero.byq-hero {
  padding-block: clamp(52px, 6vw, 88px);
}

.byq-hero .subpage-hero-inner {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
}

.byq-hero .subpage-hero-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.byq-hero .hero-kicker {
  margin-bottom: clamp(22px, 2.5vw, 34px);
}

.byq-hero .hero-lead {
  max-width: 620px;
}

.byq-hero .subpage-visual {
  aspect-ratio: 4 / 5;
  min-height: 570px;
}

/* Resintoi-derived service composition: three-column rhythm plus a fact rail. */
.byq-section-head {
  align-items: end;
  display: grid;
  gap: clamp(28px, 5vw, 84px);
  grid-template-columns: minmax(260px, .78fr) minmax(300px, 1.22fr);
}

.byq-section-head > div > .eyebrow {
  color: var(--theme-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.byq-section-head h2 {
  color: var(--theme-text);
  font-family: var(--serif);
  font-size: clamp(38px, 4.7vw, 64px);
  letter-spacing: -.045em;
  line-height: .98;
  margin: 16px 0 0;
  text-wrap: balance;
}

.byq-section-head > p {
  color: var(--theme-text-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  margin: 0;
  max-width: 650px;
}

.byq-scope-grid {
  counter-reset: amp-scope;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 78px);
}

.byq-scope-grid .byq-scope-card {
  counter-increment: amp-scope;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  padding: 30px;
}

.byq-scope-card::after {
  color: color-mix(in srgb, var(--theme-accent) 58%, transparent);
  content: counter(amp-scope, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  left: 30px;
  letter-spacing: .12em;
  position: absolute;
  top: 28px;
}

.byq-scope-card .card-title {
  font-size: clamp(23px, 2vw, 30px);
  margin-top: auto;
  padding-top: 72px;
}

.byq-scope-card .card-copy {
  margin-bottom: 0;
  max-width: 34ch;
}

.byq-scope-card:nth-child(2),
.byq-scope-card:nth-child(5) {
  margin-top: 26px;
}











/* Explicit fit block — a reusable bridge between scope and process. */
















/* Kelvin-derived connected process on an AMP deep-green canvas. */














.byq-process .steps-grid article::after { display: none; }







/* Pricing becomes one calm comparison surface, not three unrelated cards. */










/* Baseframe-derived split FAQ, retaining native details/summary semantics. */
























.byq-related .grid {
  border-bottom: 1px solid var(--theme-border);
  border-top: 1px solid var(--theme-border);
  gap: 0;
}

.byq-related .card {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 150px;
  padding: 28px 24px;
}

.byq-related .card + .card { border-left: 1px solid var(--theme-border); }
.byq-related .card::before { display: none; }
.byq-related .card-title { margin: auto 0 0; }

/* Shared data-flow module for industry and situational landing pages. */
.byq-flow .byq-section-head { align-items: start; }

.byq-flow-grid {
  border-bottom: 1px solid var(--theme-border);
  border-top: 1px solid var(--theme-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(50px, 7vw, 84px);
}

.byq-flow-step {
  min-height: 230px;
  padding: 28px 28px 30px;
  position: relative;
}

.byq-flow-step + .byq-flow-step { border-left: 1px solid var(--theme-border); }

.byq-flow-step > span {
  color: var(--theme-accent);
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.byq-flow-step h3 {
  color: var(--theme-text);
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 30px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 70px 0 12px;
}

.byq-flow-step p {
  color: var(--theme-text-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.byq-flow-step:not(:last-child)::after {
  align-items: center;
  background: var(--theme-highlight);
  border-radius: 50%;
  color: var(--theme-text);
  content: "→";
  display: flex;
  font-size: 13px;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: -14px;
  top: 24px;
  width: 28px;
  z-index: 2;
}





























/* Transfer-page before/after: one narrative, two deliberately contrasted states. */
.transfer-comparison {
  overflow: hidden;
  position: relative;
}

.transfer-comparison::after {
  background: radial-gradient(circle, rgba(255,255,255,.68) 0, rgba(255,255,255,0) 70%);
  content: "";
  height: 480px;
  pointer-events: none;
  position: absolute;
  right: -190px;
  top: -210px;
  width: 480px;
}

.transfer-comparison .section-shell {
  position: relative;
  z-index: 1;
}

.transfer-comparison-lead {
  max-width: 710px;
}

.transfer-comparison-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(42px, 4.5vw, 58px);
  position: relative;
}

.transfer-state {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(30px, 3vw, 42px);
  position: relative;
}

.transfer-state::before {
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -88px;
  transform: rotate(18deg);
  width: 180px;
}

.transfer-state-before {
  background: color-mix(in srgb, var(--theme-surface) 91%, var(--theme-page));
  border: 1px solid color-mix(in srgb, var(--theme-border) 88%, transparent);
  color: var(--theme-text);
  grid-column: 1;
}

.transfer-state-before::before {
  background: color-mix(in srgb, var(--theme-page) 74%, transparent);
  border-radius: 40px;
}

.transfer-state-after {
  background: linear-gradient(145deg, #173f43 0%, #123438 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px -42px var(--theme-shadow-dark);
  color: #fff;
  grid-column: 2;
  transition: border-color 180ms ease, box-shadow 220ms var(--amp-ease-out), transform 220ms var(--amp-ease-out);
}

.transfer-state-after::before {
  background: color-mix(in srgb, var(--theme-highlight) 22%, transparent);
  border-radius: 50%;
  filter: blur(2px);
}

.transfer-state-label {
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  min-height: 34px;
  padding: 0 14px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.transfer-state-before .transfer-state-label {
  background: var(--theme-page);
  border: 1px solid var(--theme-border);
  color: var(--theme-muted);
}

.transfer-state-after .transfer-state-label {
  background: color-mix(in srgb, var(--theme-highlight) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-highlight) 38%, transparent);
  color: var(--theme-highlight);
}

.transfer-state h3 {
  font-family: var(--sans);
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.13;
  margin: 24px 0 0;
  max-width: 460px;
  position: relative;
  text-wrap: balance;
  z-index: 1;
}

.transfer-state-intro {
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 0;
  position: relative;
  z-index: 1;
}

.transfer-comparison .check-list {
  gap: 0;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.transfer-comparison .check-list li {
  align-items: flex-start;
  border-top: 1px solid color-mix(in srgb, var(--theme-border) 78%, transparent);
  font-size: 16px;
  font-weight: 600;
  gap: 14px;
  line-height: 1.45;
  padding: 15px 0;
}

.transfer-comparison .check-list-light li {
  border-color: rgba(255,255,255,.13);
  color: rgba(255,255,255,.9);
}

.transfer-comparison .check-list li > span {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  height: 28px;
  line-height: 1;
  margin-top: -2px;
  width: 28px;
}

.transfer-comparison .check-list-muted li > span {
  background: var(--theme-page);
  border-color: var(--theme-border);
}

.transfer-comparison .check-list-light li > span {
  background: color-mix(in srgb, var(--theme-highlight) 14%, rgba(255,255,255,.13));
  color: var(--theme-highlight);
  transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--amp-ease-out);
}

.transfer-comparison-arrow {
  align-items: center;
  background: var(--theme-highlight);
  border: 7px solid var(--theme-accent-soft);
  border-radius: 50%;
  box-shadow: 0 12px 28px -16px var(--theme-shadow-dark);
  color: var(--theme-text);
  display: flex;
  font-size: 23px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  .transfer-state-after:hover {
    border-color: color-mix(in srgb, var(--theme-highlight) 58%, transparent);
    box-shadow: 0 30px 58px -34px color-mix(in srgb, var(--theme-highlight) 42%, var(--theme-shadow-dark));
    transform: translateY(-4px);
  }

  .transfer-state-after:hover .check-list-light li > span {
    background: color-mix(in srgb, var(--theme-highlight) 30%, rgba(255,255,255,.16));
    color: #fff;
    transform: scale(1.08);
  }

  .transfer-state-after:hover .check-list-light li:nth-child(2) > span { transition-delay: 30ms; }
  .transfer-state-after:hover .check-list-light li:nth-child(3) > span { transition-delay: 60ms; }
  .transfer-state-after:hover .check-list-light li:nth-child(4) > span { transition-delay: 90ms; }
}

@media (max-width: 760px) {
  .transfer-comparison-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .transfer-state {
    min-height: 0;
    padding: 28px 22px;
  }

  .transfer-state-before {
    grid-column: 1;
    grid-row: 1;
  }

  .transfer-comparison-arrow {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    left: auto;
    position: relative;
    top: auto;
    transform: rotate(90deg);
  }

  .transfer-state-after {
    grid-column: 1;
    grid-row: 3;
  }

  .transfer-state h3 {
    font-size: clamp(25px, 7.2vw, 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .transfer-state-after,
  .transfer-comparison .check-list-light li > span {
    transition: none;
  }

  .transfer-state-after:hover,
  .transfer-state-after:hover .check-list-light li > span {
    transform: none;
  }
}

.transfer-steps .steps-grid p {
  font-size: 14px;
  line-height: 1.55;
}

/* Homepage spacing rules are shared by the static subpages and otherwise
   collapse this editorial proof section to 0px at the top. */
body:not([data-page="index"]) .section.proof-section.proof-editorial {
  padding-top: clamp(76px, 7vw, 94px);
}

/* CMS-grid-derived knowledge controls: useful discovery without turning the
   editorial page into an app dashboard. */
.knowledge-controls {
  align-items: center;
  border-top: 1px solid var(--theme-border);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 38px;
  padding-top: 22px;
}

.knowledge-search {
  display: block;
  position: relative;
}

.knowledge-search > span {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.knowledge-search input {
  appearance: none;
  background: color-mix(in srgb, var(--theme-surface) 82%, transparent);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  color: var(--theme-text);
  font: 650 13px/1 var(--sans);
  min-height: 48px;
  outline: none;
  padding: 0 20px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.knowledge-search input::placeholder { color: var(--theme-text-soft); }



.knowledge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.knowledge-filters button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  color: var(--theme-text-soft);
  cursor: pointer;
  display: inline-flex;
  font: 750 12px/1 var(--sans);
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms var(--amp-ease-out);
}

.knowledge-filters button span {
  align-items: center;
  background: color-mix(in srgb, var(--theme-text) 8%, transparent);
  border-radius: 50%;
  display: inline-flex;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
}

.knowledge-filters button[aria-pressed="true"] {
  background: var(--theme-text);
  border-color: var(--theme-text);
  color: #fff;
}

.knowledge-filters button[aria-pressed="true"] span {
  background: var(--theme-highlight);
  color: var(--theme-text);
}

.knowledge-filters button:active { transform: scale(.97); }

.knowledge-starters {
  background: var(--theme-text);
  color: #fff;
  padding: clamp(72px, 8vw, 112px) clamp(22px, 6vw, 96px);
}

.knowledge-starters .knowledge-index-shell { width: 100%; }

.knowledge-section-heading {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(180px, .42fr) minmax(360px, 1.58fr);
  margin-bottom: 38px;
}

.knowledge-section-heading .eyebrow {
  color: rgba(255,255,255,.58);
  font: 820 10px/1.25 var(--sans);
  letter-spacing: .15em;
  margin: 0;
  text-transform: uppercase;
}

.knowledge-section-heading h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 560;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 0;
}

.knowledge-starters-grid {
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.knowledge-starter {
  border-left: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 250px;
  padding: 28px;
  text-decoration: none;
  transition: background 200ms ease;
}

.knowledge-starter:first-child { border-left: 0; }

.knowledge-starter > span {
  color: var(--theme-highlight);
  font-size: 9px;
  font-weight: 850;
  grid-column: 1 / -1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.knowledge-starter > strong {
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 560;
  grid-column: 1 / -1;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-top: 52px;
}

.knowledge-starter > small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  grid-column: 1;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 30ch;
}

.knowledge-starter > b {
  align-items: center;
  align-self: end;
  background: var(--theme-highlight);
  border-radius: 50%;
  color: var(--theme-text);
  display: inline-flex;
  flex: 0 0 34px;
  font: 700 14px/1 var(--sans);
  grid-column: 2;
  grid-row: 3;
  height: 34px;
  justify-content: center;
}

.knowledge-service-callout {
  align-items: center;
  background: var(--theme-text);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
  min-height: 118px;
  padding: 24px 28px;
}

.knowledge-service-callout > div > span {
  color: var(--theme-highlight);
  display: block;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.knowledge-service-callout h3,
.knowledge-service-callout p { margin: 0; }

.knowledge-service-callout h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.knowledge-service-callout p {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 7px;
}

.knowledge-service-callout .knowledge-service-links a {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  color: #fff;
  display: block;
  font-size: 12px;
  font-weight: 780;
  min-height: 50px;
  padding: 13px 42px 13px 15px;
  position: relative;
  text-decoration: none;
}

.knowledge-service-callout .knowledge-service-links a > strong,
.knowledge-service-callout .knowledge-service-links a > span { display: block; }

.knowledge-service-callout .knowledge-service-links a > strong {
  font-size: 12px;
  line-height: 1.35;
}

.knowledge-service-callout .knowledge-service-links a > span {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 4px;
}

.knowledge-service-callout .knowledge-service-links a > b {
  position: absolute;
  right: 15px;
  top: 15px;
}

.knowledge-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 560px;
}

.knowledge-empty {
  color: var(--theme-text-soft);
  font-size: 16px;
  margin: 0;
  padding: 72px 0 24px;
  text-align: center;
}

.knowledge-card[hidden],
.knowledge-cluster[hidden],
.knowledge-empty[hidden] { display: none !important; }

.knowledge-index .knowledge-card {
  min-height: 300px;
  transition-duration: 220ms;
  transition-timing-function: var(--amp-ease-out);
}

.knowledge-index .knowledge-grid-duo .knowledge-card { min-height: 320px; }

.knowledge-index .knowledge-card-meta span:last-child {
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
  .byq-scope-card:hover {
    transform: translateY(-5px);
    transition: border-color 180ms ease, box-shadow 220ms var(--amp-ease-out), transform 220ms var(--amp-ease-out);
  }

  .byq-related .card:hover {
    background: var(--theme-accent-soft);
    box-shadow: none;
    transform: none;
  }

  .knowledge-starter:hover { background: rgba(255,255,255,.07); }

  .knowledge-service-callout .knowledge-service-links a:hover {
    background: var(--theme-highlight);
    border-color: var(--theme-highlight);
    color: var(--theme-text);
  }

  .knowledge-index .knowledge-card:hover { transform: translateY(-3px); }
}

@media (max-width: 991px) {
  .byq-hero .subpage-hero-inner,
.byq-section-head {
    grid-template-columns: 1fr;
  }

  .byq-hero .subpage-visual {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .byq-scope-card:nth-child(2),
  .byq-scope-card:nth-child(5) { margin-top: 0; }

  
  
  
  
  
  
  .knowledge-controls { grid-template-columns: 1fr; }
  .knowledge-filters { justify-content: flex-start; }
  .knowledge-section-heading { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .byq-scope-grid { grid-template-columns: 1fr; }

  
  
  

  

  

  .byq-process .steps-grid article::before { display: none; }
  

  
  

  

  .byq-related .grid {
    grid-template-columns: 1fr;
  }

  .byq-related .card + .card {
    border-left: 0;
    border-top: 1px solid var(--theme-border);
  }

  .byq-flow-grid { grid-template-columns: 1fr; }
  .byq-flow-step { min-height: 170px; padding-inline: 0; }
  .byq-flow-step + .byq-flow-step { border-left: 0; border-top: 1px solid var(--theme-border); }
  .byq-flow-step h3 { margin-top: 36px; }
  .byq-flow-step:not(:last-child)::after { bottom: -14px; left: 0; right: auto; top: auto; transform: rotate(90deg); }

  
  
  
  
  body:not([data-page="index"]) .section.proof-section.proof-editorial { padding-top: 64px; }
  .knowledge-starters { padding: 64px 17px; }
  .knowledge-starters-grid { grid-template-columns: 1fr; }
  .knowledge-starter {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    min-height: 210px;
    padding: 24px 0;
  }
  .knowledge-starter:first-child { border-top: 0; }
  .knowledge-starter > strong { margin-top: 38px; }
  .knowledge-service-callout { grid-template-columns: 1fr; }
  .knowledge-service-links { justify-content: flex-start; }
}

@media (max-width: 479px) {
  
  
  
  .byq-hero .hero-ksef-pill { left: 14px; right: 14px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .byq-scope-card,
.button,
.header-cta,
.closing-team-primary {
    transition-duration: 1ms !important;
  }

  .byq-scope-card:hover,
.button:active,
.header-cta:active {
    transform: none;
  }

  .knowledge-filters button,
  .knowledge-starter,
  .knowledge-index .knowledge-card { transition-duration: 1ms !important; }
}
