/* SystemsLead TZ1: mobile-first architecture refinements */

:root {
  --sl-container: 1240px;
  --sl-mobile-gap: 14px;
  --sl-section-mobile: 68px;
}

html,
body {
  overflow-x: clip;
}

main > .section:not(.systems-hero) .container,
.footer .container {
  width: min(var(--sl-container), calc(100% - 28px));
}

main .section-head,
main .section-head.center {
  max-width: 790px;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

main .section-head .eyebrow {
  margin-bottom: 12px;
  text-transform: uppercase;
}

main .section-head .section-text {
  max-width: 690px;
}

/* Hero: a shorter, purposeful mobile opening */

.systems-hero .hero-content h1 {
  max-width: 620px;
}

/* Two connected niche sections */

.niche-family {
  background:
    radial-gradient(circle at 84% 4%, rgba(93, 242, 138, 0.1), transparent 23%),
    #eef4f0 !important;
}

.focus-niches {
  padding: var(--sl-section-mobile) 0 38px;
  border-bottom: 0 !important;
}

.niche-tags-section {
  padding: 32px 0 var(--sl-section-mobile);
  border-top: 1px solid rgba(11, 55, 39, 0.07) !important;
}

.focus-niches .niche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 12px;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.focus-niches .niche-grid article {
  min-width: 0;
  scroll-snap-align: none;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(8, 34, 27, 0.08);
}

.focus-niches .niche-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.focus-niches .niche-grid h3 {
  padding: 13px 34px 3px 12px;
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.12;
}

.focus-niches .niche-grid p {
  min-height: 47px;
  padding: 0 10px 13px 12px;
  font-size: 10px;
  line-height: 1.35;
}

.focus-niches .niche-grid article::after {
  right: 10px;
  bottom: 11px;
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.niche-tags-section .section-head {
  margin-bottom: 24px;
}

.niche-tags-section .section-head h2 {
  font-size: clamp(28px, 8.7vw, 40px);
}

.niche-tags-section .tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.niche-tags-section .tag-grid span {
  min-width: 0;
  padding: 10px 13px 10px 32px;
  font-size: 11px;
  white-space: normal;
}

.niche-tags-section .tag-grid span::before {
  left: 13px;
  width: 7px;
  height: 7px;
}

.niche-tags-section .section-note {
  margin-top: 22px;
  font-size: 14px;
}

.niche-tags-section .cta-row {
  justify-content: flex-start;
}

/* System: four steps plus a quiet handwritten result */

.system-showcase__result {
  min-height: 160px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 14px 6px;
}

.system-result-note {
  position: static;
  width: auto;
  margin: 0;
  color: #73f2a2;
  font-size: clamp(38px, 12vw, 54px);
  line-height: 0.82;
  text-align: center;
  transform: rotate(-4deg);
  text-shadow: 0 0 26px rgba(74, 239, 144, 0.22);
}

/* Six examples, no horizontal carousel */

.examples-section {
  padding: var(--sl-section-mobile) 0;
}

.examples-section .section-head .eyebrow {
  color: #1cad59;
  letter-spacing: 0.12em;
}

.examples-section .solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 16px;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.examples-section .solution-card {
  min-width: 0;
  scroll-snap-align: none;
}

.examples-section .solution-card .case-cover {
  aspect-ratio: 16 / 9;
}

.examples-section .solution-card h3 {
  padding: 16px 17px 5px;
  font-size: 18px;
}

.examples-section .solution-card p {
  padding: 0 17px 17px;
}

.examples-section .cta-row {
  justify-content: flex-start;
}

/* Compact editorial team */

.team-section {
  padding: var(--sl-section-mobile) 0;
}

.team-editorial {
  display: grid;
  gap: 34px;
}

.team-editorial__intro {
  margin-bottom: 0 !important;
}

.team-editorial__intro .btn {
  margin-top: 24px;
}

.team-editorial .team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.team-editorial .team-card {
  min-width: 0;
  border-radius: 17px;
}

.team-editorial .team-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.team-editorial .team-photo {
  height: 150px;
}

.team-editorial .team-card--lead .team-photo {
  height: 100%;
  min-height: 220px;
  border-right: 1px solid var(--systems-light-border);
  border-bottom: 0;
}

.team-editorial .team-body {
  padding: 16px 13px 18px;
}

.team-editorial .team-body h3 {
  font-size: 20px;
}

.team-editorial .team-body p {
  min-height: 51px;
  font-size: 11px;
  line-height: 1.45;
}

.team-editorial .team-list {
  margin-top: 13px;
  padding-top: 10px;
}

.team-editorial .team-list li {
  grid-template-columns: 22px 1fr;
  gap: 7px;
  padding: 5px 0;
  font-size: 10px;
}

.team-editorial .team-list li::before {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

/* Formats remain three normal-flow cards */

.formats-section {
  padding: var(--sl-section-mobile) 0;
}

.formats-section .systems-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 15px;
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.formats-section .systems-price-card {
  min-width: 0;
  min-height: 0;
  padding: 25px;
  scroll-snap-align: none;
}

.formats-section .systems-price-card.recommended {
  box-shadow: 0 22px 58px rgba(31, 196, 88, 0.22), 0 0 0 1px rgba(93, 242, 138, 0.24);
}

/* Process: a slim mobile timeline */

.process-section {
  padding: var(--sl-section-mobile) 0;
}

.process-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 38px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.process-steps article,
.systems-price-card.process-steps article {
  min-height: 118px;
  padding: 0 0 28px 77px;
  background: transparent;
  box-shadow: none;
}

.process-steps article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--systems-mint), rgba(93, 242, 138, 0.12));
}

.process-steps article:not(:last-child)::after,
.process-steps article:nth-child(2)::after {
  display: none;
}

.process-step-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 57px;
  height: 57px;
  margin: 0;
}

.process-step-icon svg {
  width: 29px;
  height: 29px;
}

.process-step-icon i {
  width: 14px;
  height: 14px;
  border-width: 3px;
}

.process-steps h3 {
  padding-top: 4px;
  margin-bottom: 7px;
  font-size: 18px;
}

.process-steps p {
  font-size: 14px;
}

/* FAQ, final CTA and footer */

.faq-section {
  padding: var(--sl-section-mobile) 0;
}

.faq-list {
  max-width: none;
}

.faq-section .cta-row {
  justify-content: flex-start;
}

.final {
  position: relative;
  padding: var(--sl-section-mobile) 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 20, 0.98), rgba(3, 16, 20, 0.86)),
    url("img/roofing-contractor-background.webp") center / cover no-repeat;
}

.final::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 34%, rgba(93, 242, 138, 0.13), transparent 34%);
}

.final .final-grid {
  position: relative;
  z-index: 2;
}

.footer {
  padding: 46px 0 28px;
  background: #020d11;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 22px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand .systems-logo {
  display: inline-flex;
  color: #fff;
}

.footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  color: rgba(225, 238, 235, 0.58);
  font-size: 13px;
  line-height: 1.65;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav strong,
.footer-contact strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(225, 238, 235, 0.64);
  font-size: 12px;
}

.footer-contact a:last-child {
  color: var(--systems-mint);
}

.footer-bottom--legal {
  margin-top: 38px;
  padding-top: 24px;
}

.footer-legal-info {
  align-items: flex-start;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .systems-hero {
    min-height: 0;
    padding-top: 110px;
    padding-bottom: 46px;
  }

  .systems-hero .hero-content {
    padding-bottom: 5px;
  }

  .systems-hero .hero-content h1 {
    margin-bottom: 20px;
    font-size: clamp(42px, 12.5vw, 54px);
    line-height: 0.96;
  }

  .systems-hero .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .systems-hero .hero-lead-note {
    font-size: 13px;
  }

  .systems-hero .actions {
    margin-top: 24px;
  }

  .systems-hero .hero-product-stage {
    margin-top: 10px;
  }

  .service-showcase-grid,
  .services-showcase .service-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
  }

  .service-showcase-card {
    min-width: 0;
  }

  .services-showcase__head {
    text-align: left;
  }

  .system-showcase__result {
    min-height: 180px;
  }

  .formats-section .section-head,
  .examples-section .section-head,
  .faq-section .section-head {
    margin-bottom: 28px;
  }
}

@media (min-width: 641px) {
  main > .section:not(.systems-hero) .container,
  .footer .container {
    width: min(var(--sl-container), calc(100% - 48px));
  }

  .focus-niches .niche-grid,
  .examples-section .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .focus-niches .niche-grid img {
    aspect-ratio: 4 / 3;
  }

  .focus-niches .niche-grid h3 {
    padding: 17px 48px 4px 17px;
    font-size: 18px;
  }

  .focus-niches .niche-grid p {
    min-height: 0;
    padding: 0 44px 19px 17px;
    font-size: 12px;
  }

  .team-editorial .team-grid {
    gap: 18px;
  }

  .team-editorial .team-photo {
    height: 245px;
  }

  .team-editorial .team-card--lead .team-photo {
    min-height: 280px;
  }

  .team-editorial .team-body {
    padding: 21px;
  }

  .team-editorial .team-body p {
    min-height: 0;
    font-size: 13px;
  }

  .team-editorial .team-list li {
    font-size: 12px;
  }

  .footer-main {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .focus-niches,
  .examples-section,
  .team-section,
  .formats-section,
  .process-section,
  .faq-section,
  .final {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .niche-tags-section {
    padding-top: 42px;
    padding-bottom: 92px;
  }

  .focus-niches .niche-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .examples-section .solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .formats-section .systems-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .team-editorial {
    grid-template-columns: minmax(275px, 0.68fr) minmax(0, 1.72fr);
    align-items: start;
    gap: clamp(42px, 5vw, 76px);
  }

  .team-editorial__intro {
    position: sticky;
    top: 110px;
  }

  .team-editorial .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-editorial .team-card--lead {
    grid-column: auto;
    display: block;
  }

  .team-editorial .team-photo,
  .team-editorial .team-card--lead .team-photo {
    height: 240px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--systems-light-border);
  }

  .team-editorial .team-body h3 {
    font-size: 23px;
  }

  .process-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.75fr);
    align-items: end;
    gap: 55px;
    margin-bottom: 42px;
  }

  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(35px, 4.4vw, 68px);
  }

  .process-steps article,
  .systems-price-card.process-steps article {
    min-height: 0;
    padding: 0;
  }

  .process-steps article:not(:last-child)::before {
    display: none;
  }

  .process-steps article:not(:last-child)::after,
  .process-steps article:nth-child(2)::after {
    display: block;
    top: 31px;
    right: clamp(-47px, -3.4vw, -31px);
    bottom: auto;
    left: auto;
    content: "→";
    color: rgba(149, 212, 170, 0.68);
    font-size: 28px;
  }

  .process-step-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 0 18px 0;
  }

  .process-step-icon svg {
    width: 36px;
    height: 36px;
  }

  .process-steps h3 {
    padding-top: 0;
    font-size: 18px;
  }

  .system-showcase__result {
    min-height: 120px;
    justify-content: flex-end;
    padding-right: 8%;
  }

  .system-result-note {
    font-size: 42px;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .systems-hero {
    min-height: 760px;
  }

  .systems-hero .hero-content h1 {
    font-size: clamp(56px, 4.25vw, 64px);
  }

  .system-showcase {
    min-height: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-editorial__intro {
    scroll-behavior: auto;
  }
}

/* SystemsLead mint hover states */

.site-header .nav a:hover,
.site-header .nav a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--systems-mint, #5df28a);
}

@media (hover: hover) {
  .formats-section .systems-price-card.recommended .btn-card:hover,
  .formats-section .systems-price-card.recommended .btn-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(137, 255, 168, 0.72);
    box-shadow: 0 18px 38px rgba(47, 217, 105, 0.34);
  }
}

.formats-section .systems-price-card.recommended .btn-card:active {
  transform: translateY(0);
}

/* SystemsLead TZ2: readable type and two intentional swipe galleries */

body {
  font-size: 17px;
}

main .section-head .eyebrow,
.services-showcase .eyebrow,
.process-intro .eyebrow {
  font-size: 13px;
  letter-spacing: 0.075em;
}

main .section-head .section-text,
.services-showcase__head .section-text,
.process-summary,
.final-copy > p {
  font-size: 17px;
  line-height: 1.62;
}

.swipe-status,
.team-cta-mobile {
  display: none;
}

.niche-tags-section .tag-grid {
  justify-content: flex-start;
  gap: 13px;
}

.niche-tags-section .tag-grid span {
  padding: 13px 20px 13px 43px;
  font-size: 16px;
}

.niche-tags-section .tag-grid span::before {
  left: 19px;
  width: 9px;
  height: 9px;
}

.niche-tags-section .section-note {
  font-size: 17px;
}

.focus-niches .niche-grid h3,
.examples-section .solution-card h3 {
  font-size: 20px;
}

.focus-niches .niche-grid p {
  font-size: 15px;
}

.service-card-body h3 {
  font-size: 24px;
}

.service-card-body p {
  font-size: 16px;
  line-height: 1.58;
}

.service-card-body > a {
  font-size: 15px;
}

.system-module p {
  font-size: 15px;
  line-height: 1.45;
}

.system-showcase__copy > p:last-child {
  font-size: 18px;
}

.team-editorial .team-body p,
.team-editorial .team-list li {
  font-size: 15px;
  line-height: 1.48;
}

.systems-price-card p,
.systems-price-card li {
  font-size: 16px;
  line-height: 1.55;
}

.systems-price-card h3 {
  font-size: 25px;
}

.recommend-badge {
  font-size: 13px;
}

.process-steps h3 {
  font-size: 19px;
}

.process-steps p {
  font-size: 16px;
  line-height: 1.48;
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.55;
}

.footer-brand p {
  font-size: 16px;
}

.footer-nav strong,
.footer-contact strong {
  font-size: 16px;
}

.footer-nav a,
.footer-contact a {
  font-size: 15px;
  line-height: 1.45;
}

.footer-legal-info,
.footer-legal-info strong,
.footer-legal-info a {
  font-size: 13px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  main .section-head .eyebrow,
  .services-showcase .eyebrow,
  .process-intro .eyebrow,
  .system-showcase__eyebrow {
    font-size: 13px !important;
    letter-spacing: 0.065em;
  }

  main .section-head .section-text,
  .services-showcase__head .section-text,
  .process-summary,
  .final-copy > p {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-eyebrow {
    padding: 10px 13px;
    font-size: 12px;
    letter-spacing: 0.035em;
    line-height: 1.25;
  }

  .systems-hero .lead {
    font-size: 17px;
    line-height: 1.5;
  }

  .systems-hero .hero-lead-note {
    font-size: 15px;
    line-height: 1.5;
  }

  .services-showcase__head .eyebrow {
    margin-bottom: 11px;
  }

  .service-card-body h3 {
    font-size: 24px;
    line-height: 1.12;
  }

  .service-card-body p {
    font-size: 16px;
    line-height: 1.55;
  }

  .service-card-body > a {
    font-size: 16px;
  }

  .focus-niches .niche-grid,
  .examples-section .solution-grid {
    width: calc(100% + 14px);
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    gap: 14px;
    margin-right: -14px;
    padding: 2px 14px 16px 0;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .focus-niches .niche-grid::-webkit-scrollbar,
  .examples-section .solution-grid::-webkit-scrollbar {
    display: none;
  }

  .focus-niches .niche-grid {
    grid-auto-columns: 85vw;
  }

  .examples-section .solution-grid {
    grid-auto-columns: 88vw;
  }

  .focus-niches .niche-grid article,
  .examples-section .solution-card {
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .focus-niches .niche-grid img {
    aspect-ratio: 4 / 3;
  }

  .focus-niches .niche-grid h3,
  .examples-section .solution-card h3 {
    padding: 18px 46px 6px 18px;
    font-size: 22px;
    line-height: 1.18;
  }

  .focus-niches .niche-grid p,
  .examples-section .solution-card p {
    min-height: 0;
    padding: 0 18px 19px;
    font-size: 15px;
    line-height: 1.45;
  }

  .examples-section .solution-card .case-cover {
    aspect-ratio: 16 / 10;
  }

  .swipe-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 3px;
    color: #50625d;
  }

  .swipe-status b {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .swipe-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .swipe-dots i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(20, 75, 53, 0.18);
    transition: width 0.2s ease, background 0.2s ease;
  }

  .swipe-dots i.is-active {
    width: 22px;
    background: #31c96b;
  }

  .niche-tags-section .tag-grid {
    gap: 10px;
  }

  .niche-tags-section .tag-grid span {
    padding: 12px 16px 12px 38px;
    font-size: 15px;
    line-height: 1.2;
  }

  .niche-tags-section .tag-grid span::before {
    left: 16px;
    width: 8px;
    height: 8px;
  }

  .niche-tags-section .section-note {
    font-size: 16px;
    line-height: 1.55;
  }

  .system-showcase .system-showcase__copy > p:last-child {
    font-size: 16px;
    line-height: 1.55;
  }

  .system-module h3 {
    font-size: 23px;
  }

  .system-module p {
    font-size: 16px;
    line-height: 1.48;
  }

  .system-showcase.is-visible .system-module--site {
    transform: translateX(-6px) rotate(-0.2deg);
  }

  .system-showcase.is-visible .system-module--ads {
    transform: translateX(6px) rotate(0.2deg);
  }

  .system-showcase.is-visible .system-module--tracking {
    transform: translateX(-5px) rotate(-0.15deg);
  }

  .system-showcase.is-visible .system-module--optimization {
    transform: translateX(5px) rotate(0.15deg);
  }

  .system-result-note {
    font-size: clamp(40px, 12vw, 53px);
    line-height: 0.86;
  }

  .team-cta--desktop {
    display: none;
  }

  .team-cta-mobile {
    grid-column: 1 / -1;
    display: block;
  }

  .team-cta-mobile .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .team-editorial .team-body h3 {
    font-size: 21px;
  }

  .team-editorial .team-body p {
    min-height: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .team-editorial .team-list li {
    grid-template-columns: 24px 1fr;
    gap: 8px;
    font-size: 15px;
    line-height: 1.4;
  }

  .team-editorial .team-list li::before {
    width: 22px;
    height: 22px;
  }

  .systems-price-card h3 {
    font-size: 24px;
    line-height: 1.18;
  }

  .systems-price-card p,
  .systems-price-card li {
    font-size: 16px;
    line-height: 1.55;
  }

  .recommend-badge {
    padding: 8px 11px;
    font-size: 13px;
  }

  .systems-price-card.recommended {
    border-width: 2px;
    box-shadow: 0 24px 64px rgba(31, 196, 88, 0.26), 0 0 34px rgba(93, 242, 138, 0.12);
  }

  .process-steps h3 {
    font-size: 19px;
    line-height: 1.3;
  }

  .process-steps p {
    font-size: 16px;
    line-height: 1.48;
  }

  .faq-question {
    padding: 21px 19px;
    font-size: 17px;
    line-height: 1.35;
  }

  .faq-answer {
    padding: 0 19px 21px;
  }

  .faq-answer p {
    font-size: 16px;
    line-height: 1.5;
  }

  .footer-main {
    gap: 40px 25px;
  }

  .footer-brand p {
    font-size: 16px;
    line-height: 1.6;
  }

  .footer-nav,
  .footer-contact {
    gap: 13px;
  }

  .footer-nav strong,
  .footer-contact strong {
    font-size: 16px;
  }

  .footer-nav a,
  .footer-contact a {
    font-size: 15px;
    line-height: 1.45;
  }

  .footer-legal-info,
  .footer-legal-info strong,
  .footer-legal-info a {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (min-width: 641px) {
  .team-cta-mobile {
    display: none;
  }
}

@media (min-width: 900px) {
  .system-showcase__result {
    transform: translateY(-105px);
  }

  .footer-main {
    gap: 48px;
  }
}

@media (max-width: 1199px) {
  .system-showcase__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "copy"
      "composition"
      "actions";
  }
}

@media (min-width: 1200px) {
  .system-showcase__layout {
    grid-template-rows: auto auto;
    grid-template-areas:
      "copy composition"
      "actions composition";
  }
}

/* SystemsLead TZ3: final visual polish */

main .section-head .eyebrow,
.services-showcase .eyebrow,
.process-intro .eyebrow,
.system-showcase__eyebrow,
.final-copy .eyebrow {
  font-size: 14px !important;
  letter-spacing: 0.075em;
}

main .section-head .eyebrow,
.services-showcase .eyebrow,
.final-copy .eyebrow {
  color: #1cad59;
}

.contact-popup__dialog .eyebrow {
  color: var(--systems-mint);
  font-size: 14px;
  letter-spacing: 0.075em;
}

.formats-section .systems-price-grid {
  align-items: stretch;
}

.formats-section .systems-price-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.formats-section .systems-price-card ul {
  margin-bottom: 26px;
}

.formats-section .systems-price-card .btn-card {
  min-height: 54px;
  margin-top: auto;
  transform: none;
}

.process-intro {
  align-items: start;
}

.process-summary {
  padding-top: 2px;
}

main .btn,
.contact-popup__links a {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 12px;
  font-size: 16px;
}

.site-header .btn-small {
  min-height: 44px;
  padding-inline: 19px;
  font-size: 14px;
}

main .btn:focus-visible,
.contact-popup__links a:focus-visible,
.footer a:focus-visible,
.nav a:focus-visible,
.menu-toggle:focus-visible,
.faq-question:focus-visible {
  outline: 3px solid rgba(93, 242, 138, 0.48);
  outline-offset: 3px;
}

main .btn:active,
.contact-popup__links a:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(47, 217, 105, 0.2);
}

.team-cta-mobile {
  margin-top: 8px;
}

.examples-section .solution-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.examples-section .solution-card h3 {
  flex: 1;
}

.examples-section .solution-card p {
  font-size: 14px;
  line-height: 1.45;
}

.footer {
  padding-bottom: 38px;
}

.footer-main {
  align-items: start;
}

.footer-nav a,
.footer-contact a {
  min-height: 24px;
}

@media (max-width: 640px) {
  main .section-head .eyebrow,
  .services-showcase .eyebrow,
  .process-intro .eyebrow,
  .system-showcase__eyebrow,
  .final-copy .eyebrow {
    font-size: 13.5px !important;
    letter-spacing: 0.065em;
  }

  .contact-popup__dialog .eyebrow {
    font-size: 13.5px;
  }

  .formats-section .systems-price-card {
    padding: 26px;
  }

  .formats-section .systems-price-card ul {
    margin-bottom: 24px;
  }

  .examples-section .solution-card p {
    font-size: 15px;
  }

  main .btn,
  .contact-popup__links a {
    min-height: 54px;
    padding-inline: 22px;
  }

  .team-cta-mobile {
    margin-top: 12px;
  }

  .footer {
    padding-top: 52px;
    padding-bottom: 40px;
  }
}

@media (min-width: 900px) {
  .services-showcase,
  .focus-niches,
  .examples-section,
  .team-section,
  .formats-section,
  .process-section,
  .faq-section,
  .final {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .niche-tags-section {
    padding-top: 44px;
    padding-bottom: 96px;
  }

  .process-summary {
    align-self: start;
    margin-top: 33px;
    padding-top: 0;
  }
}

/* Final approved image assets */

.systems-hero {
  background: #031014 url("img/systemslead-hero.webp") center center / cover no-repeat !important;
}

.systems-hero::before,
.systems-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.hero-product-stage > * {
  display: none !important;
}

.service-card-media {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.service-card-media::after {
  display: none;
}

.service-card-media > .service-final-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none !important;
}

@media (max-width: 1100px) {
  .systems-hero .hero-product-stage {
    position: relative;
    overflow: hidden;
  }
}

.hero-eyebrow-mobile {
  display: none;
}

.hero-title-mobile {
  display: none;
}

.systems-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 6px 11px;
  border: 1px solid rgba(93, 242, 138, 0.4);
  background: rgba(5, 20, 24, 0.52);
  color: #cdf8d9;
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.15;
  box-shadow: 0 8px 24px rgba(0, 12, 15, 0.16);
  backdrop-filter: blur(10px);
}

.systems-hero .hero-eyebrow-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.systems-hero .hero-eyebrow-mark {
  position: relative;
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  flex: 0 0 auto;
}

.systems-hero .hero-eyebrow-mark--site {
  border-radius: 0.2em;
  background: linear-gradient(145deg, #7bffad, #25d66f);
  box-shadow: 0 0 9px rgba(74, 239, 144, 0.36);
}

.systems-hero .hero-eyebrow-mark--ads {
  clip-path: polygon(50% 2%, 98% 94%, 2% 94%);
  background: conic-gradient(from 211deg at 50% 66%, #34a853 0 25%, #fbbc04 25% 57%, #4285f4 57% 100%);
  filter: drop-shadow(0 0 4px rgba(66, 133, 244, 0.26));
}

.systems-hero .hero-eyebrow-mark--analytics {
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #62a8ff, #347ad3);
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.28);
}

.systems-hero .hero-eyebrow-mark--analytics::after {
  position: absolute;
  right: 0.05em;
  bottom: 0.05em;
  width: 0.33em;
  height: 0.33em;
  border-radius: 50%;
  background: #54f19a;
  content: "";
}

.systems-hero .hero-title-desktop {
  width: min-content;
  max-width: 470px;
  font-size: clamp(50px, 4vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.systems-hero .hero-audience {
  max-width: 520px;
  margin: 0;
  color: rgba(236, 244, 243, 0.83);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.45;
}

@media (min-width: 1101px) {
  .systems-hero .hero-content {
    transform: translateY(-12px);
  }
}

@media (max-width: 700px) {
  .systems-hero {
    min-height: clamp(713px, calc(177.68vw + 47px), 783px);
    padding-top: 82px !important;
    background-color: #031014 !important;
    background-image: url("img/mobile-hero-bg.webp") !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
  }

  .systems-hero .hero-content {
    padding-top: 8px;
    padding-bottom: 0;
  }

  .systems-hero .hero-product-stage {
    min-height: 180px;
    margin-top: 0;
  }

  .systems-hero .hero-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 9px 12px;
    font-size: clamp(13.5px, 3.7vw, 15.5px);
    line-height: 1.1;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .systems-hero .hero-eyebrow-group {
    gap: 3px;
  }

  .systems-hero .hero-eyebrow-mark {
    width: 0.88em;
    height: 0.88em;
  }

  .systems-hero .hero-content h1 {
    margin-bottom: 0;
    font-size: clamp(36px, 9.5vw, 40.5px);
    line-height: 1;
    letter-spacing: -0.075em;
  }

  .systems-hero .hero-title-desktop {
    display: none;
  }

  .systems-hero .hero-title-mobile {
    display: block;
  }

  .systems-hero .actions {
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 30px;
  }

  .systems-hero .actions .btn {
    width: auto;
    min-width: 0;
    min-height: 56px;
    flex: 1 1 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: clamp(12px, 3.25vw, 14px);
    white-space: nowrap;
  }

  .systems-hero .lead {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .systems-hero {
    min-height: 177.6833vw;
  }
}

/* Portfolio demo viewer */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.examples-section .solution-card {
  position: relative;
  cursor: pointer;
}

.examples-section .solution-card h3 {
  order: 1;
}

.examples-section .solution-card p {
  order: 2;
}

.examples-section .solution-card .case-cover {
  position: relative;
  overflow: hidden;
}

.examples-section .solution-card .case-cover img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-view-label {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(93, 242, 138, 0.5);
  border-radius: 999px;
  background: rgba(3, 19, 22, 0.82);
  color: #effff4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-demo-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.portfolio-demo-trigger:focus-visible {
  outline: 3px solid rgba(74, 239, 144, 0.9);
  outline-offset: -4px;
}

.solution-card:hover .case-cover img,
.solution-card:focus-within .case-cover img {
  transform: scale(1.025);
  filter: brightness(0.88);
}

.solution-card:hover .portfolio-view-label,
.solution-card:focus-within .portfolio-view-label {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100dvh;
  background: #020b0d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.portfolio-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portfolio-viewer__dialog {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-viewer__scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 68px;
  background: #020b0d;
  scrollbar-gutter: stable;
}

.portfolio-viewer__image {
  width: min(100%, 1180px);
  height: auto;
  min-height: 1px;
  display: block;
  margin: 0 auto;
  background: #fff;
}

.portfolio-viewer__controls {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.portfolio-viewer__control {
  position: absolute;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(93, 242, 138, 0.34);
  border-radius: 50%;
  background: rgba(4, 22, 24, 0.9);
  color: #f3fff6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portfolio-viewer__control:hover {
  border-color: #4aef90;
  background: rgba(10, 51, 40, 0.96);
  transform: scale(1.04);
}

.portfolio-viewer__control:focus-visible {
  outline: 3px solid rgba(74, 239, 144, 0.74);
  outline-offset: 3px;
}

.portfolio-viewer__control span {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

.portfolio-viewer__previous {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.portfolio-viewer__previous:hover {
  transform: translateY(-50%) scale(1.04);
}

.portfolio-viewer__next {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.portfolio-viewer__next:hover {
  transform: translateY(-50%) scale(1.04);
}

.portfolio-viewer__close {
  top: 9px;
  right: 18px;
}

.portfolio-viewer__close span {
  font-size: 32px;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .portfolio-view-label {
    right: 12px;
    bottom: 12px;
    padding: 8px 11px;
    opacity: 1;
    transform: none;
  }

  .portfolio-viewer__scroll {
    padding-top: 60px;
    scrollbar-gutter: auto;
  }

  .portfolio-viewer__controls {
    top: 8px;
    right: 10px;
    bottom: auto;
    left: auto;
    display: flex;
    gap: 8px;
  }

  .portfolio-viewer__control,
  .portfolio-viewer__previous,
  .portfolio-viewer__next,
  .portfolio-viewer__close {
    position: static;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .portfolio-viewer__control:hover,
  .portfolio-viewer__previous:hover,
  .portfolio-viewer__next:hover {
    transform: none;
  }

  .portfolio-viewer__control span {
    font-size: 34px;
  }

  .portfolio-viewer__close span {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-viewer,
  .portfolio-view-label,
  .examples-section .solution-card .case-cover img,
  .portfolio-viewer__control {
    transition: none;
  }
}
