/* ============================================================
   WHY FRONTORA - Frontora AI V2-Pre
   Comparison page with cost calculator + 5-col table + uniqueness
   ============================================================ */

.wf-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

.wf-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--neutral-900);
}

.wf-h1-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wf-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--neutral-900);
}

.wf-section-sub {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0 auto;
  max-width: 620px;
}

.wf-section-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HERO ---------- */
.wf-hero {
  position: relative;
  padding: clamp(70px, 10vw, 110px) 0 clamp(40px, 6vw, 60px);
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
  overflow: hidden;
  text-align: center;
}

.wf-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.wf-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--neutral-700);
  margin: 0 auto 12px;
  max-width: 700px;
}

.wf-lede-bold {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--neutral-900);
  font-weight: 700;
  margin: 0 auto 32px;
}

/* Live counter */
.wf-hero-counter {
  background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(196,163,90,0.04));
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 0 auto 32px;
  max-width: 580px;
}

.wf-counter-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  position: relative;
}

.wf-counter-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #dc2626;
  border-radius: 50%;
  transform: translate(-110px, -22px);
  animation: wf-counter-blink 1.4s ease-in-out infinite;
}

@keyframes wf-counter-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

.wf-counter-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #dc2626;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wf-counter-label {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.wf-counter-label strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
}

.wf-counter-label span {
  font-size: 12px;
  color: var(--neutral-600);
  margin-top: 2px;
  max-width: 220px;
  line-height: 1.4;
}

.wf-counter-note {
  font-size: 12px;
  color: var(--neutral-500);
  margin: 0;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

.wf-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- COST OF DOING NOTHING ---------- */
.wf-cost {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.wf-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.wf-cost-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-cost-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.08);
}

.wf-cost-card-highlight {
  background: linear-gradient(180deg, white 0%, rgba(220,38,38,0.04) 100%);
  border-color: rgba(220,38,38,0.25);
}

.wf-cost-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.wf-cost-icon svg { width: 24px; height: 24px; }

.wf-cost-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.wf-cost-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wf-cost-card-highlight .wf-cost-num { color: #dc2626; }

.wf-cost-label {
  font-size: 14px;
  color: var(--neutral-700);
  font-weight: 500;
  line-height: 1.4;
  max-width: 240px;
  margin: 0 auto;
}

.wf-cost-detail {
  font-size: 13px;
  color: var(--neutral-600);
  line-height: 1.55;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-200);
}

/* ============================================================
   BASH 1554 - Professional spec-sheet comparison table
   CSS Grid based table (more flexible than HTML <table>)
   Frontora column has gold-emerald accent treatment
   ============================================================ */

.wf-compare {
  background: var(--neutral-0);
  padding: clamp(60px, 8vw, 100px) 0;
  scroll-margin-top: 80px;
}

.wf-spec-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* ===== The grid table ===== */
.wf-spec-table {
  display: grid;
  /* 6 columns: feature(2.4fr) + 4 alternatives(1fr each) + frontora(1.3fr) */
  grid-template-columns: 2.4fr repeat(4, 1fr) 1.3fr;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.06);
  position: relative;
}

/* ===== Header row ===== */
.wf-spec-head {
  display: contents; /* Pass children to grid */
}

.wf-spec-col-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 14px 22px;
  background: linear-gradient(180deg, var(--neutral-50, #fafafa) 0%, white 100%);
  border-bottom: 2px solid var(--neutral-200);
  text-align: center;
}

.wf-spec-feature-head {
  display: flex;
  align-items: flex-end;
  padding: 28px 22px 22px;
  background: var(--neutral-50, #fafafa);
  border-bottom: 2px solid var(--neutral-200);
}

.wf-spec-feature-label {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.wf-spec-col-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  color: var(--neutral-600);
}

.wf-spec-col-icon svg { width: 22px; height: 22px; }

.wf-icon-vm { background: rgba(115,115,115,0.10); color: var(--neutral-600); }
.wf-icon-trad { background: rgba(59,130,246,0.10); color: #3b82f6; }
.wf-icon-hybrid { background: rgba(139,92,246,0.10); color: #8b5cf6; }
.wf-icon-inhouse { background: rgba(245,158,11,0.10); color: #c4a35a; }

.wf-icon-frontora {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  box-shadow: 0 6px 18px -4px rgba(16,185,129,0.55);
}

.wf-spec-col-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.25;
  max-width: 140px;
}

/* ===== FRONTORA COLUMN - the visual emphasis ===== */
.wf-spec-col-frontora {
  background:
    linear-gradient(180deg,
      rgba(196,163,90,0.08) 0%,
      rgba(16,185,129,0.05) 40%,
      white 100%);
  position: relative;
  border-bottom-color: var(--brand-500);
}

/* Subtle gold accent line at top of Frontora header */
.wf-spec-col-frontora::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), #c4a35a, var(--brand-500));
  background-size: 200% 100%;
  animation: wf-spec-shimmer 6s linear infinite;
}

@keyframes wf-spec-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.wf-spec-recommended-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #c4a35a, #92753f);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 3px 10px -2px rgba(196,163,90,0.5);
  margin-bottom: 4px;
}

/* ===== Body rows ===== */
.wf-spec-row {
  display: contents;
}

.wf-spec-row .wf-spec-cell {
  padding: 18px 14px;
  border-top: 1px solid var(--neutral-150, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.15s ease;
  min-height: 70px;
}

/* Frontora column cells in body get subtle tint */
.wf-spec-row .wf-spec-mark-frontora {
  background: linear-gradient(180deg, rgba(16,185,129,0.025), rgba(196,163,90,0.025));
  border-left: 1px solid rgba(16,185,129,0.15);
  border-right: 1px solid rgba(16,185,129,0.15);
}

/* Feature column - left aligned with rich content */
.wf-spec-feature {
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 18px 22px !important;
  background: var(--neutral-50, #fafafa);
}

.wf-spec-feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.3;
  margin-bottom: 3px;
}

.wf-spec-feature span {
  display: block;
  font-size: 12.5px;
  color: var(--neutral-600);
  line-height: 1.4;
}

/* ===== Marks ===== */
.wf-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.wf-mark svg {
  width: 16px;
  height: 16px;
}

.wf-mark-check {
  background: rgba(16,185,129,0.12);
  color: var(--brand-600);
}

.wf-mark-check-frontora {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  box-shadow: 0 4px 12px -2px rgba(16,185,129,0.4);
  width: 32px;
  height: 32px;
}

.wf-mark-check-frontora svg {
  width: 18px;
  height: 18px;
}

.wf-mark-x {
  background: rgba(115,115,115,0.08);
  color: var(--neutral-400);
}

.wf-mark-x svg {
  opacity: 0.6;
}

/* ===== Text/pill cells ===== */
.wf-mark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.wf-pill-neutral {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.wf-pill-caution {
  background: rgba(245,158,11,0.12);
  color: #92753f;
}

.wf-pill-warn {
  background: rgba(220,38,38,0.10);
  color: #b91c1c;
}

.wf-pill-win {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(196,163,90,0.18));
  color: var(--brand-700);
  box-shadow: 0 2px 8px -2px rgba(16,185,129,0.25);
  border: 1px solid rgba(16,185,129,0.25);
}

.wf-text-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wf-text-sub {
  font-size: 10.5px;
  color: var(--neutral-500);
  font-weight: 500;
  font-style: italic;
}

/* Row hover - whole row gets subtle emerald tint */
.wf-spec-row:hover .wf-spec-cell {
  background: rgba(16,185,129,0.025);
}

.wf-spec-row:hover .wf-spec-mark-frontora {
  background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(196,163,90,0.04));
}

.wf-spec-row:hover .wf-spec-feature {
  background: rgba(16,185,129,0.04);
}

/* ===== Bottom CTA strip ===== */
.wf-spec-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--neutral-100) 0%, white 100%);
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  flex-wrap: wrap;
}

.wf-spec-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-spec-cta-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--neutral-900);
}

.wf-spec-cta-text span {
  font-size: 14px;
  color: var(--neutral-600);
}

/* ===== Animated row reveal on scroll =====
   NOTE: We do NOT gate visibility on .is-revealed class because
   .wf-spec-row uses display:contents (no box), which makes
   IntersectionObserver always return isIntersecting=false.
   So we just keep cells visible always - no animation gating.
   The shimmer on the Frontora column header gives enough motion. */
.wf-spec-row {
  opacity: 1;
}

.wf-spec-row .wf-spec-cell {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE - Mobile/tablet ===== */
@media (max-width: 1024px) {
  /* On smaller screens, table has too many columns - convert to focused mode */
  .wf-spec-table {
    /* Show: feature + Frontora + first 2 alternatives, scroll for rest */
    overflow-x: auto;
    grid-template-columns: 200px repeat(4, 130px) 160px;
    min-width: 100%;
    width: 100%;
  }

  .wf-spec-feature, .wf-spec-feature-head {
    padding-left: 16px !important;
    padding-right: 12px !important;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--neutral-50, #fafafa);
    border-right: 1px solid var(--neutral-200);
  }

  .wf-spec-row .wf-spec-feature {
    background: var(--neutral-50, #fafafa);
  }

  .wf-spec-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }

  /* Make wrap horizontally scrollable */
  .wf-spec-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16,185,129,0.3) transparent;
  }

  .wf-spec-wrap::-webkit-scrollbar { height: 8px; }
  .wf-spec-wrap::-webkit-scrollbar-track { background: transparent; }
  .wf-spec-wrap::-webkit-scrollbar-thumb {
    background: rgba(16,185,129,0.3);
    border-radius: 4px;
  }
}

@media (max-width: 600px) {
  /* Tighter mobile - reduce padding */
  .wf-spec-row .wf-spec-cell { padding: 14px 8px; min-height: 60px; }
  .wf-spec-feature { padding: 14px 14px !important; }
  .wf-spec-feature strong { font-size: 13px; }
  .wf-spec-feature span { font-size: 11.5px; }
  .wf-spec-col-name { font-size: 12px; }
  .wf-mark { width: 24px; height: 24px; }
  .wf-mark svg { width: 14px; height: 14px; }
  .wf-mark-check-frontora { width: 28px; height: 28px; }
  .wf-mark-check-frontora svg { width: 16px; height: 16px; }
  .wf-mark-pill { font-size: 11px; padding: 5px 9px; }

  .wf-spec-cta {
    padding: 20px 22px;
    flex-direction: column;
    text-align: center;
  }
  .wf-spec-cta .btn { width: 100%; }
}

/* ---------- DIFFERENCE - 3 cards ---------- */
.wf-difference {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.wf-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.wf-diff-card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18);
}

.wf-diff-card-highlight {
  border-color: var(--brand-500);
  background: linear-gradient(180deg, white 0%, rgba(16,185,129,0.03) 100%);
  box-shadow: 0 8px 20px -6px rgba(16,185,129,0.18);
}

.wf-diff-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.wf-diff-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -6px rgba(16,185,129,0.4);
}

.wf-diff-icon svg { width: 24px; height: 24px; }

.wf-diff-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--neutral-900);
  line-height: 1.25;
}

.wf-diff-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0 0 18px;
}

.wf-diff-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wf-diff-link:hover {
  color: var(--brand-500);
  text-decoration: underline;
}

/* ---------- FINAL CTA ---------- */
.wf-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.wf-final-cta .wf-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.wf-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.wf-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: white;
}

.wf-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.wf-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.wf-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .wf-cost-grid { grid-template-columns: 1fr; max-width: 480px; }
  .wf-diff-grid { grid-template-columns: 1fr; max-width: 480px; }
  .wf-final-inner { grid-template-columns: 1fr; text-align: center; }
  .wf-final-actions { align-items: center; }
}

@media (max-width: 600px) {
  .wf-h1 { font-size: 36px; }
  .wf-h2 { font-size: 26px; }
  .wf-counter-shell { flex-direction: column; gap: 12px; }
  .wf-counter-pulse { display: none; }
  .wf-counter-label { text-align: center; }
  .wf-counter-label span { max-width: 100%; }
  .wf-hero-actions { flex-direction: column; align-items: stretch; }

  /* Table - hint scrollability with side fade */
  .wf-table-wrap {
    background: linear-gradient(to right, white 0%, white 5%, transparent 12%, transparent 88%, white 95%, white 100%);
  }
  .wf-th-feature, .wf-td-feature {
    min-width: 180px;
  }
  .wf-th-option {
    min-width: 130px;
  }
}
