/* Shared styling for the Softwaresystemer and Marketing pages */

.software-hero {
  padding-top: clamp(7rem, 12vw, 9rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.software-hero-title {
  max-width: 20ch;
  margin-top: 0.5rem;
}

.software-hero-title .font-script {
  color: var(--ember-bright);
}

.software-hero + .module-section {
  padding-top: 0;
}

.module-section-alt {
  background: var(--ink-soft);
}

.module-section-title {
  max-width: 26ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.module-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-md);
  border: none;
  background: var(--ink);
  box-shadow: var(--shadow-card), var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.35s var(--ease-physical);
}

.module-section-alt .module-card {
  background: var(--ink-softer);
}

.module-card:hover {
  box-shadow: inset 0 0 0 1.5px var(--ember), 0 20px 40px -20px rgba(209, 228, 250, 0.45);
  transform: translateY(-4px);
}

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, rgba(209, 228, 250, 0.2), rgba(209, 228, 250, 0.06));
  color: var(--ember-bright);
  margin-bottom: 1.1rem;
}

.module-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.module-card p {
  color: var(--bone-dim);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: clamp(3.5rem, 7vw, 5.5rem) 1fr;
  align-items: baseline;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--ink-softer);
}

.feature-list li:first-child { border-top: 1px solid var(--ink-softer); }

.feature-num {
  font-family: var(--font-display);
  color: var(--ember);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}

.feature-list h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.feature-list p {
  color: var(--bone-dim);
  font-size: 0.95rem;
  max-width: 46ch;
}

/* Closing CTA now uses the shared .closing-cta component (css/editorial.css) */

@media (max-width: 560px) {
  .feature-list li { grid-template-columns: 1fr; row-gap: 0.5rem; }
}

/* ============================================================
   Flat fintech reskin — same system as marketing.css, scoped to
   body.fg-page. Second module section becomes a solid black band
   (echoing the reference's black cards/bars) so the page keeps the
   orange/black/white/grey rhythm without needing new components.
   ============================================================ */
body.fg-page .module-section-title { color: var(--fg-ink); }

body.fg-page .module-card {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--fg-white);
  transition: transform 0.35s var(--ease-physical), box-shadow 0.35s;
}
body.fg-page .module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(13, 13, 13, 0.3);
}
body.fg-page .module-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg-ink);
}
body.fg-page .module-card p { color: var(--fg-ink-dim); }
body.fg-page .module-icon {
  background: var(--fg-orange);
  color: var(--fg-white);
}

body.fg-page .module-section-alt {
  background: var(--fg-black);
}
body.fg-page .module-section-alt .module-section-title,
body.fg-page .module-section-alt .eyebrow { color: var(--fg-white); }
body.fg-page .module-section-alt .eyebrow { color: var(--fg-orange); }
body.fg-page .module-section-alt .module-card {
  background: #1A1A1A;
}
body.fg-page .module-section-alt .module-card h3 { color: var(--fg-white); }
body.fg-page .module-section-alt .module-card p { color: #B8B5AC; }
body.fg-page .module-section-alt .module-icon {
  background: var(--fg-orange);
  color: var(--fg-white);
}

/* Closing CTA: black band, orange arrow */
body.fg-page .closing-cta {
  background: var(--fg-black);
  border-top: none;
}
body.fg-page .closing-cta-eyebrow { color: var(--fg-orange); }
body.fg-page .closing-cta h2 {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--fg-white);
}
body.fg-page .closing-cta p { color: #B8B5AC; }
body.fg-page .closing-cta-arrow {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--fg-white);
}
body.fg-page .closing-cta:hover .closing-cta-arrow {
  border-color: var(--fg-orange);
  background: var(--fg-orange);
  color: var(--fg-white);
}
body.fg-page .closing-cta:hover h2 { color: var(--fg-orange); }
