/* ════════════════════════════════════════════════════════════════════
   SIW — Professional Visual Overhaul (modern.css)
   PURELY ADDITIVE. Adds visual polish on top of styles.css / cardforge.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── Inter font from Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ── Cross-system variable bridge ─── */
:root {
  --m-bg:       var(--bg-card, var(--bg, #0f172a));
  --m-line:     var(--border, var(--line, rgba(255,255,255,0.08)));
  --m-primary:  var(--primary-light, var(--primary, #3b82f6));
  --m-radius:   var(--radius, 14px);
  --m-radius-lg: var(--radius-xl, var(--radius-lg, 20px));
  --m-trans:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Override the original font var so everything uses loaded Inter */
body, .button, .btn, h1, h2, h3, h4, h5, h6, p, a, li, span, input, textarea, select, label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ════════════════════════════════════════════════════════════════════
   CARDS — Subtle, Elevated
   ════════════════════════════════════════════════════════════════════ */

.catalog-card, .product-card, .approach-card,
.ecosystem-node, .team-card, .contact-method {
  border-radius: var(--m-radius-lg);
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid transparent;
  box-shadow: 0 0 0 1px var(--m-line, rgba(0,0,0,0.08)),
              0 1px 2px rgba(0,0,0,0.04),
              0 8px 24px -12px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover, .product-card:hover, .approach-card:hover,
.ecosystem-node:hover, .team-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-primary) 50%, transparent),
              0 4px 8px -2px rgba(0,0,0,0.08),
              0 12px 28px -8px rgba(0,0,0,0.15),
              0 24px 48px -16px color-mix(in srgb, var(--m-primary) 15%, transparent);
}

.catalog-card:has(.best-value-badge) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-primary) 30%, transparent),
              0 0 0 2px color-mix(in srgb, var(--m-primary) 8%, transparent),
              0 1px 2px rgba(0,0,0,0.04),
              0 8px 24px -12px rgba(0,0,0,0.12),
              0 0 30px -10px color-mix(in srgb, var(--m-primary) 20%, transparent);
}

.catalog-card .catalog-body > p,
.product-card .product-card-top > p,
.catalog-card p, .product-card p {
  font-weight: 350;
}

/* Card text centering */
.catalog-card .catalog-body,
.product-card .product-card-top {
  text-align: center;
}
.catalog-card .catalog-body > .eyebrow,
.product-card .product-card-top > .eyebrow,
.catalog-card h3, .product-card h3,
.catalog-card .price-row, .product-card .price-row {
  text-align: center;
}
.catalog-card .price, .product-card .price {
  justify-content: center;
}
.catalog-card .catalog-body > p,
.product-card .product-card-top > p,
.catalog-features, .product-features {
  text-align: left;
}
.catalog-card .catalog-features, .product-card .product-features {
  align-items: flex-start;
}

/* ════════════════════════════════════════════════════════════════════
   BUTTONS — Unified Pill Style with Blue Gradient
   ════════════════════════════════════════════════════════════════════ */

.button, .btn,
.button.primary, .btn.primary,
.button.outline, .btn.outline,
.button.large, .btn.large,
.main-nav .button.primary,
.form-submit, #formSubmit,
[class*="button"], [class*="btn"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary buttons */
.button.primary, .btn.primary,
.main-nav .button.primary,
.form-submit, #formSubmit {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  border: none !important;
}
.button.primary:hover, .btn.primary:hover,
.main-nav .button.primary:hover,
.form-submit:hover, #formSubmit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
}

/* Outline buttons */
.button.outline, .btn.outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1.5px solid var(--line-strong, rgba(0,0,0,0.12)) !important;
}
.button.outline:hover, .btn.outline:hover {
  border-color: var(--primary, #3b82f6) !important;
  color: var(--primary, #3b82f6) !important;
  background: color-mix(in srgb, var(--primary, #3b82f6) 6%, transparent) !important;
}

.button:active, .btn:active, .form-submit:active {
  transform: translateY(0) scale(0.97) !important;
}

/* Arrow animation on buttons */
.button .arrow, .btn .arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover .arrow, .btn:hover .arrow,
.button:focus-visible .arrow, .btn:focus-visible .arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════════════
   COOKIE BANNER — Styled
   ════════════════════════════════════════════════════════════════════ */

#siw-cookie-banner button,
#siw-accept-cookies {
  border-radius: 999px !important;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}
#siw-cookie-banner button:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════════════════════════════ */

@supports (animation-timeline: view()) {
  .catalog-card, .product-card, .approach-card,
  .team-card, .contact-method {
    animation: m-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes m-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════
   FEATURES LIST CHIPS
   ════════════════════════════════════════════════════════════════════ */

.catalog-features li, .product-features li {
  border-radius: 8px;
  background: color-mix(in srgb, var(--m-primary) 6%, transparent);
  padding: 6px 10px;
}
.catalog-features li::before, .product-features li::before {
  color: var(--success, #34d399);
}

/* ════════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════════ */

.hero-section h1 {
  font-weight: 750 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

.hero-badge {
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.hero-section .button {
  padding: 14px 32px !important;
  font-size: 16px !important;
}

/* ════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ════════════════════════════════════════════════════════════════════ */

.comparison-grid {
  max-width: 860px !important;
}

.comparison-row {
  border-radius: 12px !important;
  padding: 16px 24px !important;
  transition: all 0.2s ease;
}

.comparison-row:first-child {
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  padding: 0 24px 12px !important;
}

.comparison-row .siw-value {
  font-weight: 600 !important;
  color: #059669 !important;
}

.comparison-row .siw-value .badge {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.comparison-row .competitor .badge {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */

footer {
  padding: 64px 0 32px !important;
}

.footer-inner h4 {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.footer-inner a {
  font-size: 14px !important;
  transition: color 0.2s ease;
}
.footer-inner a:hover {
  color: var(--primary-light, #60a5fa) !important;
}

.footer-bottom {
  padding-top: 24px !important;
  margin-top: 24px !important;
  border-top: 1px solid var(--line, rgba(255,255,255,0.06));
  font-size: 13px !important;
  color: var(--text-muted, #64748b);
}

/* ════════════════════════════════════════════════════════════════════
   SECTION SPACING
   ════════════════════════════════════════════════════════════════════ */

.section {
  padding: 72px 0 !important;
}

.section-head {
  margin-bottom: 48px !important;
}

.section-head h2 {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.section-head p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-section {
  padding: 72px 0 !important;
}

.cta-section h2 {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ════════════════════════════════════════════════════════════════════ */

/* Mobile nav: glass effect */
@media (max-width: 768px) {
  .main-nav.open {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(15, 23, 42, 0.92) !important;
    border-left: 1px solid rgba(255,255,255,0.06);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .main-nav.open a {
    border-radius: 12px;
    transition: background 0.2s ease;
  }
  .main-nav.open a:hover,
  .main-nav.open a:active {
    background: rgba(59,130,246,0.1);
  }
  [data-theme="light"] .main-nav.open {
    background: rgba(248, 250, 252, 0.95) !important;
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-left: 1px solid rgba(0,0,0,0.06);
  }
}

/* Hero: smaller glows on mobile */
@media (max-width: 768px) {
  .hero-section::after {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -120px;
    opacity: 0.5;
  }
  .hero-glow-left {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
    opacity: 0.5;
  }
  .hero-section::before {
    background-size: 30px 30px;
    opacity: 0.3;
  }
  .hero-section h1 {
    font-size: clamp(24px, 6vw, 28px) !important;
  }
}

/* Cards mobile */
@media (max-width: 768px) {
  .catalog-card, .product-card, .approach-card,
  .team-card, .contact-method {
    border-radius: 18px;
  }
  .catalog-card .catalog-body {
    padding: 24px 20px 28px;
  }
  .catalog-card h3 {
    font-size: clamp(17px, 4.5vw, 20px);
  }
  .catalog-card .eyebrow {
    font-size: 11px;
    letter-spacing: 0.4px;
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 600;
  }
}

/* Section alt: full-width on mobile */
.section.alt { width: 100%; }
@media (max-width: 768px) {
  .section.alt {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    box-sizing: border-box;
  }
  .section.alt > .wrap {
    width: calc(100% - 40px);
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Mobile spacing */
@media (max-width: 768px) {
  .section {
    padding: 48px 0 !important;
  }
  .section-head {
    margin-bottom: 28px !important;
  }
  .section-head h2 {
    font-size: clamp(22px, 6vw, 28px);
  }
  .section-head p {
    font-size: 14px;
  }
  .hero-section p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
  .hero-badge {
    font-size: 11px !important;
    padding: 4px 14px !important;
  }
  .cta-section h2 {
    font-size: clamp(20px, 5.5vw, 26px);
  }
  .cta-section p {
    font-size: 14px;
  }
  .cta-section .button {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }
  footer {
    padding: 48px 0 24px !important;
  }
  .footer-inner {
    gap: 24px !important;
  }
  .footer-inner h4 {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }
  .footer-inner a {
    font-size: 13px !important;
    padding: 6px 0;
  }
  footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
  }
}

/* Comparison table mobile */
@media (max-width: 920px) {
  .comparison-grid, .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .comparison-row {
    padding: 12px 18px !important;
    font-size: 13px;
  }
  .comparison-row .feature-name {
    font-size: 13px;
  }
  .comparison-row .competitor,
  .comparison-row .siw-value {
    font-size: 12px;
  }
  .comparison-row .competitor .badge,
  .comparison-row .siw-value .badge {
    font-size: 10px;
    padding: 1px 6px;
  }
}

/* Contact form mobile */
@media (max-width: 480px) {
  .contact-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
  }
  .contact-wrap > div {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .contact-wrap h3 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }
  .contact-wrap > div > p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .contact-methods {
    margin-top: 16px !important;
    width: 100%;
    max-width: 100%;
  }
  .contact-method {
    padding: 12px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-method-icon {
    font-size: 20px;
  }
  .contact-method h4 {
    font-size: 13px;
  }
  .contact-method p {
    font-size: 12px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    max-width: 100%;
  }
  .form-submit {
    width: 100%;
    box-sizing: border-box;
  }
  .hero-section h1 {
    font-size: 22px !important;
  }
}

/* ─── Contact Page ─── */
.page-hero {
  padding: 80px 24px 40px;
  text-align: center;
  max-width: var(--max-width, 1140px);
  margin: 0 auto;
}
.page-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width, 1140px);
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
  overflow: hidden;
}
.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.contact-method:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.contact-method-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.contact-method h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
}
.contact-method p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-form h3 {
  margin-top: 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-card);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px 60px;
  }
  .contact-wrap > div {
    max-width: 100%;
    overflow: hidden;
  }
  .page-hero h1 {
    font-size: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .page-hero p {
    font-size: 15px;
    overflow-wrap: break-word;
  }
  .contact-wrap h3 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .contact-wrap > div > p {
    overflow-wrap: break-word;
  }
  .contact-method {
    padding: 16px;
  }
  .contact-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-submit {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 50px 16px 24px;
  }
  .page-hero h1 {
    font-size: 20px;
  }
  .page-hero p {
    font-size: 14px;
  }
  .contact-wrap {
    padding: 0 12px 40px;
    gap: 24px;
  }
  .contact-method {
    padding: 12px;
    gap: 10px;
  }
  .contact-method-icon {
    font-size: 20px;
  }
  .contact-method h4 {
    font-size: 13px;
  }
  .contact-method p {
    font-size: 12px;
  }
  .contact-wrap h3 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }
  .contact-wrap > div > p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}


/* Touch targets */
@media (pointer: coarse) {
  .main-nav a,
  .footer-inner a,
  .button, .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .catalog-card, .product-card, .approach-card,
  .ecosystem-node, .team-card, .contact-method {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}/* ─── NAV ANIMATED UNDERLINES ──────────────────────────────────────────── */

.nav-links a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary, #1a56db);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* ─── BUTTON MICRO-INTERACTIONS ───────────────────────────────────────── */

.button {
  transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28),
              box-shadow 0.2s ease,
              background 0.2s ease,
              color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

/* ─── INLINE CONTENT LINK UNDERLINES ──────────────────────────────────── */

.content a,
.hero-content a:not(.button):not(.nav-links a),
.page-hero a:not(.button) {
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
}

.content a::after,
.hero-content a:not(.button)::after,
.page-hero a:not(.button)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.content a:hover::after,
.hero-content a:not(.button):hover::after,
.page-hero a:not(.button):hover::after {
  opacity: 1;
  height: 2px;
}
/* ─── GET IN TOUCH — MOBILE ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .contact-wrap h3[style*=font-size:20px] {
    font-size: 17px !important;
  }
  .contact-wrap > div > p[style*=line-height] {
    font-size: 14px;
    line-height: 1.5 !important;
  }
  .contact-method {
    padding: 14px;
    gap: 12px;
  }
  .contact-method-icon {
    font-size: 22px;
  }
  .contact-method h4 {
    font-size: 14px;
  }
  .contact-method p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contact-method {
    padding: 12px;
    gap: 10px;
  }
  .contact-method-icon {
    font-size: 20px;
  }
  .contact-method h4 {
    font-size: 13px;
  }
  .contact-method p {
    font-size: 12px;
  }
}

/* ─── CONTACT SECTION — 768px OVERFLOW FIX ───────────────────────────── */

@media (max-width: 768px) {
  .section.alt#contact,
  .section.alt#contact > .wrap,
  .section.alt#contact .contact-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .section.alt#contact .contact-wrap {
    gap: 24px;
  }
  .section.alt#contact .contact-wrap h3 {
    font-size: 17px !important;
    margin-bottom: 10px !important;
  }
  .section.alt#contact .contact-wrap > div > p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .section.alt#contact .contact-methods {
    margin-top: 16px !important;
    width: 100%;
  }
  .section.alt#contact .contact-method {
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .section.alt#contact .contact-method-icon {
    font-size: 22px;
  }
  .section.alt#contact .contact-method h4 {
    font-size: 14px;
  }
  .section.alt#contact .contact-method p {
    font-size: 13px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   v25 — SOLUTIONS PAGE FIXES
   Mobile: approach-card and product-card sizing
   Theme: consistent colors across cardforge and styles.css pages
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Theme color consistency ── */
/* Override cardforge.css hardcoded #1a56db with theme primary (#3b82f6) */
.comparison-table .winner {
  background: color-mix(in srgb, var(--primary, #3b82f6) 6%, transparent) !important;
}
.product-card.featured {
  border-color: var(--primary-light, #3b82f6) !important;
}
.product-card.featured::before {
  background: var(--primary, #3b82f6) !important;
}
.step-number {
  background: linear-gradient(135deg, var(--primary, #3b82f6), var(--primary-dark, #1a56db)) !important;
}
/* Ecosystem center circle uses theme primary */
.ecosystem-center .ecosystem-node {
  background: linear-gradient(135deg, var(--primary, #3b82f6), var(--accent, #f59e0b)) !important;
}
/* Approach icon hover border on card hover uses theme primary */
.approach-card:hover {
  border-color: var(--primary-light, #3b82f6) !important;
}
.product-card:hover {
  border-color: var(--primary-light, #3b82f6) !important;
}
/* Nav underline uses theme primary */
.nav-links a::after {
  background: var(--primary, #3b82f6) !important;
}

/* ── Mobile: approach cards sizing ── */
@media (max-width: 768px) {
  .approach-card {
    padding: 20px !important;
  }
  .approach-card h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
  .approach-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .approach-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    margin-bottom: 14px !important;
  }
}

/* ── Mobile: product cards sizing ── */
@media (max-width: 768px) {
  .product-card {
    padding: 20px !important;
  }
  .product-card h3 {
    font-size: 15px !important;
  }
  .product-card .product-price {
    font-size: 13px !important;
  }
  .product-card p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  .product-card .product-card-top {
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  .product-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    font-size: 18px !important;
  }
  .product-features {
    margin-bottom: 12px !important;
  }
  .product-features li {
    font-size: 12px !important;
    padding: 3px 0 !important;
  }
  .product-link {
    font-size: 13px !important;
  }
}

/* ── Section background consistency ── */
/* cardforge's section-dark uses var(--bg-card) which differs from homepage's var(--bg-alt) */
/* On cardforge pages (solutions, pricing, etc.) align with the v2 system */
.section-wide.section-dark {
  background: var(--bg-alt, var(--bg-card)) !important;
}
/* ══════════════════════════════════════════════════════════════════════════
   v26 — PRICING PAGE MOBILE FIXES
   Smaller card sizing on mobile for pricing cards and service cards
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Pricing cards mobile sizing ── */
@media (max-width: 768px) {
  .pricing-card {
    padding: 20px !important;
  }
  .pricing-card h3 {
    font-size: 1.2rem !important;
  }
  .pricing-card .price {
    font-size: 2rem !important;
  }
  .pricing-card .price span {
    font-size: 0.9rem !important;
  }
  .pricing-card .p-desc {
    font-size: 0.85rem !important;
    margin: 8px 0 14px !important;
  }
  .pricing-card ul li {
    font-size: 0.85rem !important;
    padding: 4px 0 !important;
  }
  .pricing-card.featured .badge {
    font-size: 12px !important;
    padding: 4px 14px !important;
    top: -12px !important;
  }
}

/* ── Service cards (locked/gated services) mobile sizing ── */
@media (max-width: 768px) {
  .service-card-full {
    padding: 16px !important;
  }
  .service-card-full h3 {
    font-size: 0.95rem !important;
  }
  .service-card-full .price-tag {
    font-size: 1.1rem !important;
  }
  .service-card-full .desc {
    font-size: 0.82rem !important;
  }
  .service-card-full .service-features span {
    font-size: 0.75rem !important;
    padding: 2px 8px !important;
  }
  .service-card-full .icon-emoji {
    font-size: 1.5rem !important;
    margin-bottom: 6px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   v27 — SOLUTIONS BOTTOM CARDS FIXES
   Tool cards, value cards, ecosystem nodes, tech items — mobile sizing
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Include bottom cards in visual effects ── */
.tool-card, .value-card,
.tool-card:hover, .value-card:hover {
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--m-line, rgba(0,0,0,0.08)),
              0 1px 2px rgba(0,0,0,0.04),
              0 8px 24px -12px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-card:hover, .value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-primary) 50%, transparent),
              0 4px 8px -2px rgba(0,0,0,0.08),
              0 12px 28px -8px rgba(0,0,0,0.15),
              0 24px 48px -16px color-mix(in srgb, var(--m-primary) 15%, transparent);
}

/* Scroll reveal for bottom cards */
@supports (animation-timeline: view()) {
  .tool-card, .value-card, .ecosystem-node,
  .tech-item, .testimonial {
    animation: m-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* ── Mobile: tool cards sizing ── */
@media (max-width: 768px) {
  .tool-card {
    padding: 20px !important;
  }
  .tool-card h3 {
    font-size: 17px !important;
    margin-bottom: 6px !important;
  }
  .tool-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .tool-card .tool-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }
  .tool-card .tool-role {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .tool-stack span {
    font-size: 11px !important;
    padding: 3px 10px !important;
  }
}

/* ── Mobile: value cards sizing ── */
@media (max-width: 768px) {
  .value-card {
    padding: 20px !important;
  }
  .value-card h3 {
    font-size: 16px !important;
  }
  .value-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .value-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }
}

/* ── Mobile: ecosystem nodes sizing ── */
@media (max-width: 768px) {
  .ecosystem-node {
    padding: 16px !important;
  }
  .ecosystem-node h4 {
    font-size: 13px !important;
  }
  .ecosystem-node .node-icon {
    font-size: 24px !important;
    margin-bottom: 6px !important;
  }
  .ecosystem-node p {
    font-size: 11px !important;
  }
}

/* ── Mobile: tech items sizing ── */
@media (max-width: 768px) {
  .tech-item {
    padding: 12px !important;
  }
  .tech-item .tech-label {
    font-size: 10px !important;
  }
  .tech-item .tech-value {
    font-size: 13px !important;
  }
}

/* ── Mobile: testimonial sizing ── */
@media (max-width: 768px) {
  .testimonial {
    padding: 24px !important;
  }
  .testimonial blockquote {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .testimonial cite {
    font-size: 12px !important;
  }
  .testimonial::before {
    font-size: 50px !important;
    top: 8px !important;
    left: 12px !important;
  }
}
