/* Shared styles for the static SEO pages (solution pages + blog).
   Brand tokens match the React landing: Poppins, primary #00a33a. */
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/poppins/Poppins-Regular.woff2) format('woff2');
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/poppins/Poppins-Medium.woff2) format('woff2');
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins/Poppins-SemiBold.woff2) format('woff2');
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/poppins/Poppins-Bold.woff2) format('woff2');
}

:root {
  --n: #101b2c;
  --g: #00a33a;
  --link: #007a2b;
  --bg: #fff;
  --alt: #f3f6f8;
  --ink: #101b2c;
  --m: #5b6b80;
  --l: #e2e8f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --alt: #121d30;
    --ink: #f1f5f9;
    --m: #a3b1c4;
    --l: #24324a;
    --link: #3dd07a;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    Poppins,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.w {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: var(--link);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--g);
  outline-offset: 2px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--l);
}
header .w {
  display: flex;
  gap: 22px;
  align-items: center;
  height: 64px;
  max-width: 1080px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.logo img {
  width: 28px;
  height: 28px;
}
header a.t {
  color: var(--m);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
header a.t:hover {
  color: var(--ink);
}
header .btn {
  padding: 9px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 700px) {
  header a.t {
    display: none;
  }
  header .w {
    gap: 12px;
  }
}
@media (max-width: 380px) {
  header .btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--g);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(0, 163, 58, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 163, 58, 0.6);
}
.btn:active {
  transform: translateY(0);
}

/* Content */
main {
  padding-bottom: 16px;
}
.bc {
  font-size: 0.85rem;
  color: var(--m);
  padding: 20px 0 0;
}
.bc a {
  color: var(--m);
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0.45em 0;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  line-height: 1.3;
  margin: 1.8em 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h3 {
  font-weight: 600;
}
.lead {
  font-size: 1.12rem;
  color: var(--m);
}
.meta {
  color: var(--m);
  font-size: 0.9rem;
}
.shot {
  margin: 28px 0 8px;
  border: 1px solid var(--l);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(16, 27, 44, 0.35);
}
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  margin: 20px 0;
}
.card {
  border: 1px solid var(--l);
  border-radius: 14px;
  padding: 20px;
  background: var(--bg);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.4;
}
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card h3 a:hover {
  color: var(--link);
}
.card p {
  margin: 0;
  color: var(--m);
  font-size: 0.93rem;
}
details {
  border-bottom: 1px solid var(--l);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 0.6em 0 0;
  color: var(--m);
}
.band {
  background: var(--n);
  color: #fff;
  border-radius: 18px;
  padding: 36px 24px;
  margin: 48px 0;
  text-align: center;
}
.band h2 {
  color: #fff;
}
.band p {
  color: #cbd5e1;
  margin: 0 auto 20px;
  max-width: 52ch;
}
@media (prefers-color-scheme: dark) {
  .band {
    background: #132339;
    border: 1px solid var(--l);
  }
}
.rel {
  background: var(--alt);
  padding: 20px 22px;
  border-radius: 14px;
  margin: 32px 0;
}
.rel a {
  display: block;
  margin-top: 6px;
}

/* Positioning strip, steps, CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.pillars {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pillars li {
  border-left: 3px solid var(--g);
  background: var(--alt);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
}
.pillars strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.4;
}
.pillars span {
  display: block;
  color: var(--m);
  font-size: 0.9rem;
  margin-top: 4px;
  line-height: 1.55;
}
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 14px 16px 14px 60px;
  border: 1px solid var(--l);
  border-radius: 14px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong {
  display: block;
  line-height: 1.5;
}
.steps span {
  display: block;
  color: var(--m);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--l);
  padding: 28px 0 32px;
  font-size: 0.88rem;
  color: var(--m);
  background: var(--alt);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer a {
  color: var(--m);
}
footer p {
  margin: 14px 0 0;
}

/* ---------- Interaction & motion ---------- */

/* Header gains a soft shadow once the page scrolls (seo.js toggles .scrolled) */
header {
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
header.scrolled {
  box-shadow: 0 8px 24px -16px rgba(16, 27, 44, 0.35);
}

/* Cards: hover lift; cards with a title link are fully clickable */
.card,
.steps li,
.pillars li {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card:hover,
.steps li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(16, 27, 44, 0.4);
  border-color: color-mix(in srgb, var(--g) 45%, var(--l));
}
.card:has(h3 a) {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card h3 a::after {
  /* stretched link: the whole card becomes the click target */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* "Read article" cue with an SVG arrow (blog index cards) */
.card .more {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--link);
}
.more svg,
.back svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.card:hover .more svg {
  transform: translateX(4px);
}

/* "All articles" back link on blog posts */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.back:hover svg {
  transform: translateX(-3px);
}
.card:has(h3 a):hover h3 a {
  color: var(--link);
}
.card:has(h3 a:focus-visible) {
  outline: 3px solid var(--g);
  outline-offset: 2px;
}
.card h3 a:focus-visible {
  outline: none;
}

.shot img {
  transition: transform 0.6s ease;
}
.shot:hover img {
  transform: scale(1.015);
}
.rel a {
  transition: transform 0.2s ease;
}
.rel a:hover {
  transform: translateX(3px);
}
summary {
  transition: color 0.2s ease;
}
summary:hover {
  color: var(--link);
}
details[open] p {
  animation: gbFade 0.35s ease both;
}

/* Page entrance: CSS only, so content never depends on JS */
@keyframes gbUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes gbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
main > .bc,
main > h1,
main > .lead,
main > .meta,
main > .cta-row,
main > p:has(.btn) {
  animation: gbUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
main > h1 {
  animation-delay: 0.06s;
}
main > .meta,
main > .lead {
  animation-delay: 0.14s;
}
main > .cta-row,
main > p:has(.btn) {
  animation-delay: 0.22s;
}

/* Scroll reveal: seo.js adds .rv only to elements below the fold */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.rv.rv-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .steps li:hover,
  .btn:hover {
    transform: none;
  }
}

/* Cookie banner (shares gb_cookie_consent with the homepage) */
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #111827;
  color: #e5e7eb;
  padding: 16px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}
.cc .in {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.cc p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.cc a {
  color: #4ade80;
}
.cc .acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cc button {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.cc .rej {
  background: transparent;
  color: #fff;
  border: 1.5px solid #4b5563;
}
.cc .acc {
  background: var(--g);
  color: #fff;
  border: 0;
}
@media (max-width: 520px) {
  .cc .acts {
    width: 100%;
  }
  .cc button {
    flex: 1;
  }
}
