/* ==========================================================================
   KloudData — CodeForge (AI-Powered SAP Clean Core Platform)
   Dedicated, self-contained stylesheet for page-templates/tmpl-sap-codeforge.php
   Namespaced under .kd-cf — design system (colors, spacing, typography,
   buttons, section rhythm) taken directly from the sitewide service-page
   convention (Terra, Salesforce Agentforce, AI Transformation
   Consulting, Data Engineering): headings #0D1B2E, body copy #6B7A99,
   'Geist' font-family for every heading and content string (falling
   back to Plus Jakarta Sans / Inter, which is why those are still
   loaded — Geist itself loads sitewide via kd_enqueue_assets(), not
   from this file), 96.24deg blue→cyan accent gradient applied to every
   section heading. H1 60px / section H2 48px, both collapsing to 40px /
   30px at <=1024px and <=640px — the real sitewide responsive
   convention (see page-agentforce.css / data-engineering.css), not a
   one-off. Body/paragraph copy is 16 or 18px throughout. Does not read
   or extend main.css tokens, and is not shared with any other page's CSS.

   The one deliberate page-specific accent: a monospace ("code") type
   treatment on the hero's live-scan demo widget and the 3-point trust
   row — a dev-tool motif fitting the CodeForge product — scoped only to
   those two spots, never applied to real H1/H2/H3 headings.

   Sections (6): Hero (normal light background, no buttons) + Live
   Landscape Scan (its own bordered stat-card, sharing the hero's merged
   background like Terra's Hero+Stats-Bar), Trust row (3-col), Two
   Capabilities (Terra-style 2-column compare with icon+text point
   cards), Why It Matters (3 bordered cards with icons), FAQ (flat list,
   native <details>/<summary>, single-open), Final CTA — cloned 1:1 from
   page-agentforce.css's .af-cta2 (dark contained card, outline pill
   button with a separate circular arrow badge — the page's only button).
   ========================================================================== */

.kd-cf {
  --cf-white:       #ffffff;
  --cf-paper:       #fbfaf7;
  --cf-lav:         #F2F5FA;
  --cf-ink-950:     #0D1B2E;
  --cf-ink-400:     #6B7A99;
  --cf-line:        #E2E6F0;
  --cf-blue-600:    #004195;
  --cf-blue-500:    #01AEF0;
  --cf-navy-950:    #0B1733;
  --cf-low:         #16A34A;
  --cf-moderate:    #D97706;
  --cf-complex:     #DC2626;
  --cf-radius-lg:   22px;
  --cf-radius-md:   16px;
  --cf-radius-sm:   10px;
  --cf-max:         1280px;
  --cf-shadow:      0 8px 30px rgba(12,20,48,0.06);

  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--cf-ink-950);
  background: var(--cf-white);
  overflow-x: hidden;
}

.kd-cf h1, .kd-cf h2, .kd-cf h3, .kd-cf h4 {
  font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--cf-ink-950);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.kd-cf p { margin: 0; font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif; }
.kd-cf a { text-decoration: none; }
.kd-cf ul { margin: 0; padding: 0; list-style: none; }
.kd-cf svg { display: block; }

/* Each section heading gets its own gradient color pair — same
   96.24deg angle and text-clip technique throughout, just a
   different 2-stop palette per section so the four titles read as
   distinct while still feeling like one coherent system. Editors can
   swap which class wraps their <span> in the ACF field to reassign
   colors (see field instructions in wp-admin). */
.kd-cf-accent,
.kd-cf .kd-cf-accent,
.kd-cf-accent-cap,
.kd-cf .kd-cf-accent-cap,
.kd-cf-accent-why,
.kd-cf .kd-cf-accent-why,
.kd-cf-accent-faq,
.kd-cf .kd-cf-accent-faq {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kd-cf-accent,
.kd-cf-accent-cap,
.kd-cf-accent-why,
.kd-cf-accent-faq {
  background: linear-gradient(96.24deg, var(--cf-blue-600) 0%, var(--cf-blue-500) 100%);
}

/* Any manual line-break typed into a heading field (e.g. a <br>
   pasted straight into the ACF title text in wp-admin) is desktop
   layout polish only — hidden on tablet/mobile so those widths fall
   back to the browser's own natural wrap instead of repeating a break
   point chosen for a wider column. Covers every <br>, tagged or not,
   so editors don't have to remember a special class. */
@media (max-width: 1024px) {
  .kd-cf h1 br,
  .kd-cf h2 br,
  .kd-cf h3 br,
  .kd-cf-break {
    display: none;
  }
}

.kd-cf-wrap {
  max-width: var(--cf-max);
  margin: 0 auto;
  padding: 0 32px;
}

.kd-cf-section { padding: 88px 0; background-color: var(--cf-white); }
.kd-cf-section--white { background: var(--cf-white); }
.kd-cf-section--lav { background: var(--cf-lav); }

/* ── Section head ─────────────────────────────────────────── */
.kd-cf-head {
  margin: 0 auto 48px;
  text-align: center;
}
.kd-cf-head h2 { font-size: 48px; margin-bottom: 16px; line-height: 1.2; }
.kd-cf-head p { font-size: 18px; line-height: 28px; color: var(--cf-ink-400); }

/* ══════════════════════════════════════════════════════════════
   HERO — normal light page background (paper), like Terra. No
   buttons in the hero, text only.
   ══════════════════════════════════════════════════════════════ */
.kd-cf-hero-merged {
  position: relative;
  background-color: var(--cf-paper);
}
.kd-cf-hero-merged-has-bg {
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
}
.kd-cf-hero { position: relative; padding: 140px 0 72px; }
.kd-cf-hero-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
  max-width: 900px;
}
.kd-cf-hero h1 {
  font-size: 60px;
  line-height: 1.15;
  color: var(--cf-ink-950);
  margin-bottom: 22px;
}
.kd-cf-hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--cf-ink-400);
  margin: 0 auto;
}
.kd-cf-hero-lead strong { color: var(--cf-ink-950); font-weight: 700; }

/* ── Live Landscape Scan — its own section below the hero, not
   part of it. Bordered card on the shared paper background, with
   right-border column dividers like Terra's stat bar. Monospace
   "code" motif, deliberate page-specific accent. ── */
.kd-cf-scan { position: relative; z-index: 1; padding: 40px 0 96px; }
.kd-cf-scan-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 34px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-lg);
  box-shadow: var(--cf-shadow);
  text-align: left;
}
.kd-cf-scan-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kd-cf-widget-label,
.kd-cf-widget-score {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.kd-cf-widget-label {
  color: var(--cf-ink-400);
  padding-right: 20px;
  border-right: 1px solid var(--cf-line);
}
.kd-cf-widget-score { color: var(--cf-ink-950); font-weight: 700; }
.kd-cf-widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.kd-cf-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
}
.kd-cf-chip--low      { background: rgba(22,163,74,0.10);   color: var(--cf-low); }
.kd-cf-chip--moderate { background: rgba(217,119,6,0.10);   color: var(--cf-moderate); }
.kd-cf-chip--complex  { background: rgba(220,38,38,0.10);   color: var(--cf-complex); }
.kd-cf-widget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--cf-line);
}
.kd-cf-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--cf-ink-400);
  padding: 0 20px;
  border-right: 1px solid var(--cf-line);
}
.kd-cf-legend-item:first-child { padding-left: 0; }
.kd-cf-legend-item:last-child { border-right: none; }
.kd-cf-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kd-cf-legend-dot--low      { background: var(--cf-low); }
.kd-cf-legend-dot--moderate { background: var(--cf-moderate); }
.kd-cf-legend-dot--complex  { background: var(--cf-complex); }

/* ══════════════════════════════════════════════════════════════
   TRUST ROW — 3-column plain strip, monospace headings
   ══════════════════════════════════════════════════════════════ */
.kd-cf-trust { padding: 72px 0; }
.kd-cf-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.kd-cf-trust-item {
  padding: 0 28px;
  border-right: 1px solid var(--cf-line);
}
.kd-cf-trust-item:first-child { padding-left: 0; }
.kd-cf-trust-item:last-child { padding-right: 0; border-right: none; }
.kd-cf-trust-title {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cf-ink-950);
  margin-bottom: 10px;
}
.kd-cf-trust-item p { font-size: 16px; line-height: 1.6; color: var(--cf-ink-400); }

/* ══════════════════════════════════════════════════════════════
   TWO CAPABILITIES, ONE PLATFORM — Terra-style 2-column compare:
   a colhead per capability, then bordered icon+text point cards
   (kd-terra-compare structure, no buttons).
   ══════════════════════════════════════════════════════════════ */
.kd-cf-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.kd-cf-compare-col { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.kd-cf-compare-colhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--cf-blue-500);
  font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--cf-ink-950);
}
.kd-cf-compare-colicon { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--cf-blue-600); }
.kd-cf-compare-desc { font-size: 16px; line-height: 26px; color: var(--cf-ink-400); margin-bottom: 6px; }
.kd-cf-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-md);
  padding: 18px 20px;
}
.kd-cf-point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 9px;
  background: rgba(1,174,240,0.10);
  color: var(--cf-blue-600);
}
.kd-cf-point p { font-size: 16px; line-height: 1.6; color: var(--cf-ink-400); }

/* ══════════════════════════════════════════════════════════════
   WHY IT MATTERS — 3 bordered cards with icon
   ══════════════════════════════════════════════════════════════ */
.kd-cf-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kd-cf-why-card {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius-md);
  padding: 28px;
}
.kd-cf-why-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(230, 247, 254, 0.5) 0%, #E6F7FE 100%);
  color: var(--cf-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kd-cf-why-card h3 { font-size: 22px; margin-bottom: 12px; }
.kd-cf-why-card p { font-size: 16px; line-height: 26px; color: var(--cf-ink-400); }

/* ══════════════════════════════════════════════════════════════
   FAQ — flat list (no category grouping), bordered rounded card,
   native <details>/<summary>
   ══════════════════════════════════════════════════════════════ */
.kd-cf-faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.kd-cf-faq-item {
  border: 2px solid var(--cf-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.kd-cf-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Geist', 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--cf-ink-950);
  cursor: pointer;
  transition: background .18s ease;
}
.kd-cf-faq-q:hover { background: #F9FAFB; }
.kd-cf-faq-item[open] .kd-cf-faq-q { background: #F9FAFB; border-bottom: 2px solid var(--cf-line); }
.kd-cf-faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  color: var(--cf-ink-950);
  display: flex; align-items: center; justify-content: center;
}
.kd-cf-faq-icon svg { transition: transform .2s ease; }
.kd-cf-faq-item[open] .kd-cf-faq-icon svg { transform: rotate(180deg); }
.kd-cf-faq-a {
  padding: 20px 20px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cf-ink-400);
  background: #fff;
}
.kd-cf-faq-item > summary { list-style: none; }
.kd-cf-faq-item > summary::-webkit-details-marker { display: none; }

/* ══════════════════════════════════════════════════════════════
   FINAL CTA — cloned 1:1 from page-agentforce.css's .af-cta2 (also
   used by AI Transformation Consulting, Data Engineering, etc.):
   contained rounded dark card, outline pill button with a separate
   circular arrow badge. Extra top padding ("give some pace on cta
   upper side") separates it from the section above.
   ══════════════════════════════════════════════════════════════ */
.kd-cf-cta-wrap { padding-top: 70px; padding-bottom: 70px; }
.kd-cf-cta {
  background-color: var(--cf-navy-950);
  background-size: cover;
  background-position: center;
  border-radius: 26px;
  padding: 64px 32px;
  overflow: hidden;
}
.kd-cf-cta-inner {  margin: 0 auto; text-align: center; }
.kd-cf-cta-inner h2 { font-size: 40px; line-height: 1.25; color: #fff; margin-bottom: 16px; }
.kd-cf-cta-inner p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.kd-cf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 26px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: background .18s ease;
}
.kd-cf-cta-btn:hover { background: rgba(255,255,255,0.08); }
.kd-cf-cta-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--cf-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — sitewide convention: H1 60px and section H2 48px
   collapse to 40px / 30px at <=1024px and <=640px (see
   page-agentforce.css / data-engineering.css); layout also reflows
   to single columns at these widths.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .kd-cf-hero { padding-top: 115px; }
  .kd-cf-hero h1 { font-size: 40px; }
  .kd-cf-head h2 { font-size: 30px; }
  .kd-cf-cta-inner h2 { font-size: 30px; line-height: 1.3; }
  .kd-cf-trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .kd-cf-trust-item { border-right: none; }
  .kd-cf-compare { grid-template-columns: 1fr; gap: 40px; }
  .kd-cf-why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .kd-cf-wrap { padding: 0 20px; }
  .kd-cf-section { padding: 56px 0; }
  .kd-cf-hero { padding: 100px 0 64px; }
  .kd-cf-hero h1 { font-size: 40px; line-height: 1.2; }
  .kd-cf-head h2 { font-size: 30px; }
  .kd-cf-cta-inner h2 { font-size: 30px; line-height: 1.3; }
  .kd-cf-scan-card { padding: 22px 18px; }
  .kd-cf-scan-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kd-cf-widget-label { border-right: none; padding-right: 0; }
  .kd-cf-widget-legend { flex-direction: column; align-items: flex-start; gap: 10px; }
  .kd-cf-legend-item { border-right: none; padding: 0; }
}
