/* ============================================================
   Pragmatismo 2026 — Editorial Design System
   Loaded last (after part1-6). Layered, additive, theme-aware.
   Goals: bold type, generous whitespace, glassmorphism, motion,
   unified light/dark, premium "beat-big-tech" feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- 2026 Design Tokens ---------- */
:root {
  /* Display font stack — Inter Display via Inter high weights */
  --p2026-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --p2026-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Brand palette — vibrant, confident */
  --p2026-indigo: #6366f1;
  --p2026-violet: #8b5cf6;
  --p2026-fuchsia: #d946ef;
  --p2026-cyan: #06b6d4;
  --p2026-emerald: #10b981;
  --p2026-amber: #f59e0b;
  --p2026-rose: #f43f5e;

  /* Gradient brand line */
  --p2026-grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 42%, #d946ef 100%);
  --p2026-grad-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --p2026-grad-text: linear-gradient(120deg, #818cf8 0%, #c4b5fd 40%, #f0abfc 100%);

  /* Light theme fills */
  --p2026-bg: #fbfbfd;
  --p2026-bg-soft: #f4f5f9;
  --p2026-bg-elev: #ffffff;
  --p2026-fg: #0a0a14;
  --p2026-fg-muted: #4a4a5e;
  --p2026-fg-subtle: #79798c;
  --p2026-border: rgba(10, 10, 20, 0.08);
  --p2026-border-strong: rgba(10, 10, 20, 0.16);
  --p2026-glass: rgba(255, 255, 255, 0.72);
  --p2026-glass-border: rgba(255, 255, 255, 0.9);
  --p2026-shadow-sm: 0 1px 2px rgba(10,10,20,0.04), 0 1px 3px rgba(10,10,20,0.06);
  --p2026-shadow-md: 0 4px 12px rgba(10,10,20,0.06), 0 12px 28px rgba(10,10,20,0.08);
  --p2026-shadow-lg: 0 24px 48px -12px rgba(10,10,20,0.18), 0 60px 120px -30px rgba(99,102,241,0.18);
  --p2026-grid-line: rgba(10, 10, 20, 0.04);
  --p2026-mesh-1: rgba(99, 102, 241, 0.18);
  --p2026-mesh-2: rgba(217, 70, 239, 0.12);
  --p2026-mesh-3: rgba(6, 182, 212, 0.14);
  --p2026-ring: rgba(99, 102, 241, 0.36);
}

[data-theme="dark"] {
  --p2026-bg: #07070c;
  --p2026-bg-soft: #0c0c14;
  --p2026-bg-elev: #11111b;
  --p2026-fg: #f4f4fb;
  --p2026-fg-muted: #b4b4c6;
  --p2026-fg-subtle: #82828f;
  --p2026-border: rgba(255, 255, 255, 0.07);
  --p2026-border-strong: rgba(255, 255, 255, 0.14);
  --p2026-glass: rgba(20, 20, 32, 0.66);
  --p2026-glass-border: rgba(255, 255, 255, 0.10);
  --p2026-shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --p2026-shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --p2026-shadow-lg: 0 24px 64px -8px rgba(0,0,0,0.7), 0 60px 140px -40px rgba(139,92,246,0.32);
  --p2026-grid-line: rgba(255, 255, 255, 0.045);
  --p2026-mesh-1: rgba(99, 102, 241, 0.30);
  --p2026-mesh-2: rgba(217, 70, 239, 0.20);
  --p2026-mesh-3: rgba(6, 182, 212, 0.22);
  --p2026-ring: rgba(139, 92, 246, 0.50);
}

/* ---------- Global typographic refresh ---------- */
body {
  font-family: var(--p2026-font-display);
  background: var(--p2026-bg);
  color: var(--p2026-fg);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .hero-title, .section-title {
  font-family: var(--p2026-font-display);
  letter-spacing: -0.028em;
}

::selection {
  background: var(--p2026-violet);
  color: #fff;
}

/* ---------- 2026 container & rhythm ---------- */
.p2026-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.p2026-wrap-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.p2026-section {
  padding: 7rem 0;
  position: relative;
}
.p2026-section-alt { background: var(--p2026-bg-soft); }

@media (max-width: 768px) {
  .p2026-section { padding: 4.5rem 0; }
}

/* ---------- Eyebrow / pill / section label ---------- */
.p2026-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--p2026-glass);
  border: 1px solid var(--p2026-border);
  border-radius: 999px;
  color: var(--p2026-fg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.p2026-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p2026-grad-brand);
  box-shadow: 0 0 12px var(--p2026-violet);
}

.p2026-eyebrow.is-new::after {
  content: "New";
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--p2026-grad-brand);
  color: #fff;
  border-radius: 999px;
}

/* ---------- Display headings ---------- */
.p2026-display {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1.5rem;
  color: var(--p2026-fg);
}
.p2026-display .p2026-grad {
  background: var(--p2026-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 200%;
  animation: p2026-grad-pan 8s ease-in-out infinite;
}
@keyframes p2026-grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.p2026-lead {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--p2026-fg-muted);
  max-width: 38em;
  letter-spacing: -0.005em;
}

.p2026-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-align: center;
}
.p2026-section-sub {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: var(--p2026-fg-muted);
  max-width: 44em;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Buttons — premium, scalable ---------- */
.p2026-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.p2026-btn svg { width: 1rem; height: 1rem; }

.p2026-btn-primary {
  background: var(--p2026-grad-brand);
  color: #fff;
  background-size: 200% 200%;
  box-shadow: 0 8px 22px -6px rgba(99,102,241,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.p2026-btn-primary:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 14px 36px -8px rgba(139,92,246,0.65), inset 0 1px 0 rgba(255,255,255,0.3);
}
.p2026-btn-primary:active { transform: translateY(0); }

.p2026-btn-ghost {
  background: var(--p2026-glass);
  color: var(--p2026-fg);
  border: 1px solid var(--p2026-border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.p2026-btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--p2026-violet);
  box-shadow: 0 8px 22px -10px var(--p2026-ring);
}

.p2026-btn-lg { padding: 1.1rem 1.85rem; font-size: 1.0625rem; }
.p2026-btn-sm { padding: 0.55rem 0.95rem; font-size: 0.8125rem; }

.p2026-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.p2026-btn-row.is-center { justify-content: center; }

/* Arrow nudge on hover */
.p2026-btn-arrow { transition: transform 0.2s ease; }
.p2026-btn:hover .p2026-btn-arrow { transform: translateX(3px); }

/* ---------- Glass card — the hero of the system ---------- */
.p2026-glass {
  background: var(--p2026-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--p2026-glass-border);
  border-radius: 22px;
  box-shadow: var(--p2026-shadow-md);
  position: relative;
  overflow: hidden;
}
.p2026-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 40%);
  pointer-events: none;
  border-radius: inherit;
}
[data-theme="dark"] .p2026-glass::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 40%);
}

/* ---------- Product / feature card ---------- */
.p2026-card {
  display: block;
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 18px;
  background: var(--p2026-bg-elev);
  border: 1px solid var(--p2026-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s, border-color 0.22s;
  isolation: isolate;
}
.p2026-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--p2026-card-glow, var(--p2026-grad-brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.p2026-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--p2026-shadow-lg);
  border-color: transparent;
}
.p2026-card:hover::after { opacity: 1; }

.p2026-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--p2026-card-glow, var(--p2026-grad-brand));
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px -4px var(--p2026-card-glow, rgba(99,102,241,0.6));
  position: relative;
}
.p2026-card-ico svg, .p2026-card-ico img { width: 22px; height: 22px; }
.p2026-card-ico img { filter: brightness(0) invert(1); }

.p2026-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.p2026-card p {
  font-size: 0.875rem;
  color: var(--p2026-fg-muted);
  line-height: 1.55;
  margin: 0;
}
.p2026-card .p2026-card-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--p2026-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--p2026-fg-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}
.p2026-card:hover .p2026-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
  background: var(--p2026-grad-brand);
}

/* ---------- Grids ---------- */
.p2026-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.p2026-grid-wide {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.p2026-grid-feat {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---------- Stat block ---------- */
.p2026-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  align-items: flex-end;
}
.p2026-stat { text-align: center; }
.p2026-stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--p2026-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}
.p2026-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--p2026-fg-subtle);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Mesh background (used in hero and CTA) ---------- */
.p2026-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.p2026-mesh::before, .p2026-mesh::after, .p2026-mesh > span {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  will-change: transform;
}
.p2026-mesh::before {
  width: 40rem; height: 40rem;
  background: radial-gradient(circle, var(--p2026-mesh-1) 0%, transparent 65%);
  top: -10rem; left: -8rem;
  animation: p2026-mesh-float 18s ease-in-out infinite;
}
.p2026-mesh::after {
  width: 36rem; height: 36rem;
  background: radial-gradient(circle, var(--p2026-mesh-2) 0%, transparent 65%);
  bottom: -12rem; right: -6rem;
  animation: p2026-mesh-float 22s ease-in-out infinite reverse;
}
.p2026-mesh > span {
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, var(--p2026-mesh-3) 0%, transparent 65%);
  top: 40%; left: 50%;
  animation: p2026-mesh-float 26s ease-in-out infinite;
}
@keyframes p2026-mesh-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(2rem, -2rem) scale(1.08); }
}

/* ---------- Subtle grid line texture ---------- */
.p2026-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--p2026-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--p2026-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Marquee / logo strip ---------- */
.p2026-marquee {
  display: flex;
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.p2026-marquee-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-shrink: 0;
  animation: p2026-marquee 30s linear infinite;
}
@keyframes p2026-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.p2026-marquee:hover .p2026-marquee-track { animation-play-state: paused; }
.p2026-marquee-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--p2026-fg-subtle);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.p2026-marquee-item svg { width: 18px; height: 18px; }

/* ---------- Reveal-on-scroll ---------- */
.p2026-reveal {
  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(--p2026-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.p2026-reveal.p2026-in { opacity: 1; transform: translateY(0); }

/* ---------- Hero — modernized split layout ---------- */
.p2026-hero {
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.p2026-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.p2026-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.p2026-hero-text .p2026-display { margin: 0.5rem 0 0; }
.p2026-hero-text .p2026-lead { margin: 0; }
.p2026-hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.p2026-hero-fineprint {
  font-size: 0.8125rem;
  color: var(--p2026-fg-subtle);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.p2026-hero-fineprint svg { width: 14px; height: 14px; color: var(--p2026-emerald); }

.p2026-hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .p2026-hero { padding: 6.5rem 0 3rem; }
  .p2026-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .p2026-hero-text { align-items: center; text-align: center; }
  .p2026-hero-visual { min-height: 380px; order: 2; }
}

/* ---------- Hero chat panel (kept; restyled) ---------- */
.p2026-chat {
  width: 100%;
  max-width: 440px;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 22px;
}
.p2026-chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--p2026-border);
}
.p2026-chat-head-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--p2026-grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -3px rgba(139,92,246,0.55);
}
.p2026-chat-head-title { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.p2026-chat-head-sub { font-size: 0.75rem; color: var(--p2026-fg-subtle); display: flex; align-items: center; gap: 0.3rem; }
.p2026-chat-head-sub::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--p2026-emerald);
  box-shadow: 0 0 8px var(--p2026-emerald);
  animation: p2026-pulse 1.8s ease-in-out infinite;
}
@keyframes p2026-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.p2026-chat-msg {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.p2026-chat-avatar {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--p2026-grad-cool);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.p2026-chat-avatar svg { width: 16px; height: 16px; }
.p2026-chat-bubble {
  background: var(--p2026-bg-soft);
  border: 1px solid var(--p2026-border);
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--p2026-fg);
}
.p2026-chat-bubble p { margin: 0; }
.p2026-chat-time {
  display: block;
  font-size: 0.65rem;
  color: var(--p2026-fg-subtle);
  margin-top: 0.35rem;
}

.p2026-chat-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  background: var(--p2026-bg-soft);
  border: 1px solid var(--p2026-border);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.p2026-chat-form:focus-within {
  border-color: var(--p2026-violet);
  box-shadow: 0 0 0 4px var(--p2026-ring);
}
.p2026-chat-icon { color: var(--p2026-fg-subtle); width: 18px; height: 18px; flex-shrink: 0; }
.p2026-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--p2026-fg);
  padding: 0.5rem 0;
}
.p2026-chat-input::placeholder { color: var(--p2026-fg-subtle); }
.p2026-chat-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background: var(--p2026-grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 14px -4px rgba(139,92,246,0.6);
}
.p2026-chat-send:hover { transform: scale(1.06); box-shadow: 0 8px 18px -4px rgba(139,92,246,0.75); }
.p2026-chat-send svg { width: 17px; height: 17px; }

.p2026-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.p2026-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--p2026-fg);
  background: var(--p2026-glass);
  border: 1px solid var(--p2026-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.p2026-chip:hover {
  border-color: var(--p2026-violet);
  transform: translateY(-1px);
}
.p2026-chip svg { width: 13px; height: 13px; color: var(--p2026-violet); }

/* ---------- Logos / channels row ---------- */
.p2026-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.p2026-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--p2026-fg-muted);
  background: var(--p2026-bg-elev);
  border: 1px solid var(--p2026-border);
  border-radius: 999px;
}
.p2026-channel svg { width: 14px; height: 14px; }

/* ---------- Pricing calculator wrapper (kept, but restyled container) ---------- */
.p2026-calc-frame {
  border-radius: 22px;
  padding: 1px;
  background: var(--p2026-grad-brand);
  box-shadow: var(--p2026-shadow-lg);
}
.p2026-calc-inner {
  border-radius: 21px;
  background: var(--p2026-bg-elev);
  padding: 2rem;
}

/* ---------- Infra "Under the hood" tile ---------- */
.p2026-tile {
  background: var(--p2026-bg-elev);
  border: 1px solid var(--p2026-border);
  border-radius: 18px;
  padding: 1.6rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  overflow: hidden;
}
.p2026-tile::after {
  content: "";
  position: absolute;
  width: 6rem; height: 6rem;
  top: -2rem; right: -2rem;
  background: radial-gradient(circle, var(--p2026-violet) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.p2026-tile:hover {
  transform: translateY(-3px);
  border-color: var(--p2026-border-strong);
  box-shadow: var(--p2026-shadow-md);
}
.p2026-tile:hover::after { opacity: 0.18; }
.p2026-tile-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--p2026-bg-soft);
  border: 1px solid var(--p2026-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--p2026-violet);
  margin-bottom: 1rem;
}
.p2026-tile-ico svg { width: 22px; height: 22px; }
.p2026-tile h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.p2026-tile p {
  font-size: 0.875rem;
  color: var(--p2026-fg-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Big CTA band ---------- */
.p2026-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}
.p2026-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.p2026-cta-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  max-width: 18ch;
}
.p2026-cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--p2026-fg-muted);
  max-width: 38em;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Related posts (blog teaser) ---------- */
.p2026-posts {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.p2026-post {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--p2026-bg-elev);
  border: 1px solid var(--p2026-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.p2026-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--p2026-shadow-md);
  border-color: var(--p2026-border-strong);
}
.p2026-post-date {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p2026-fg-subtle);
}
.p2026-post h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
  line-height: 1.3;
}
.p2026-post p {
  font-size: 0.875rem;
  color: var(--p2026-fg-muted);
  line-height: 1.55;
  margin: 0;
}
.p2026-post-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--p2026-violet);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.p2026-post:hover .p2026-post-more { color: var(--p2026-fuchsia); }

/* ---------- Ticker (kept semantics, refreshed look) ---------- */
.p2026-ticker {
  background: var(--p2026-bg-soft);
  border-top: 1px solid var(--p2026-border);
  border-bottom: 1px solid var(--p2026-border);
  padding: 0.65rem 0;
  overflow: hidden;
}
.p2026-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p2026-violet);
}
.p2026-ticker-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p2026-violet);
  box-shadow: 0 0 10px var(--p2026-violet);
  animation: p2026-pulse 1.8s ease-in-out infinite;
}

/* ---------- Footer polish ---------- */
.p2026-footer {
  background: var(--p2026-bg-soft);
  border-top: 1px solid var(--p2026-border);
  padding: 4rem 0 2.5rem;
}
.p2026-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .p2026-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Apply to existing footer markup (sitewide, additive, low-risk) */
.site-footer {
  background: var(--p2026-bg-soft) !important;
  border-top: 1px solid var(--p2026-border) !important;
  padding: 4rem 0 2.5rem !important;
}
.site-footer .footer-grid { gap: 2.5rem !important; }
.site-footer .footer-brand .footer-logo {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.02em !important;
}
.site-footer .footer-brand p {
  color: var(--p2026-fg-muted) !important;
  line-height: 1.65 !important;
  max-width: 320px !important;
}
.site-footer .footer-col h5 {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--p2026-fg-subtle) !important;
  margin-bottom: 1.1rem !important;
}
.site-footer .footer-col a {
  color: var(--p2026-fg-muted) !important;
  font-size: 0.875rem !important;
  transition: color 0.2s, padding-left 0.2s !important;
  padding: 0.3rem 0 !important;
}
.site-footer .footer-col a:hover {
  color: var(--p2026-fg) !important;
  padding-left: 0.25rem !important;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--p2026-border) !important;
  padding-top: 2rem !important;
  font-size: 0.8125rem !important;
  color: var(--p2026-fg-subtle) !important;
}

/* ---------- Badge alignment fixes (badge-alpha etc. exist) ---------- */
.p2026-card h3 .badge-alpha,
.p2026-tile h3 .badge-alpha {
  margin-left: 0;
  font-size: 0.55rem !important;
  vertical-align: middle;
  padding: 0.12rem 0.4rem !important;
  border-radius: 0.25rem !important;
}

/* ---------- Spec line ---------- */
.p2026-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--p2026-border);
  border: 1px solid var(--p2026-border);
  border-radius: 16px;
  overflow: hidden;
}
.p2026-spec-cell {
  background: var(--p2026-bg-elev);
  padding: 1.1rem 1.25rem;
}
.p2026-spec-key {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--p2026-fg-subtle);
  margin-bottom: 0.3rem;
}
.p2026-spec-val {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--p2026-fg);
}
.p2026-spec-val.mono { font-family: var(--p2026-font-mono); font-weight: 500; font-size: 0.95rem; }

/* ---------- Sticky header hairline + scrolled state ---------- */
.site-header { transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; }
.site-header.scrolled {
  background: var(--p2026-glass) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--p2026-border) !important;
}

/* ---------- Theme-aware nav links — override hardcoded rgba(241,245,249,0.65) from part2.css/premium.css ---------- */
.nav-desktop a {
  color: var(--p2026-fg-muted) !important;
}
.nav-desktop a:hover {
  color: var(--p2026-fg) !important;
  background: var(--p2026-border) !important;
}

/* ---------- Accessibility: sr-only + skip-link (site.min.css not loaded on all pages) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  clip: auto;
  margin: 0;
  overflow: visible;
  text-decoration: none;
}

/* ---------- Dark mode: fix hardcoded background:#fff sections (white-on-white text) ---------- */
[data-theme="dark"] section[style*="background:#fff"],
[data-theme="dark"] section[style*="background: #fff"],
[data-theme="dark"] section[style*="background:#ffffff"],
[data-theme="dark"] section[style*="background: #ffffff"] {
  background: var(--p2026-bg-elev) !important;
}
[data-theme="dark"] div[style*="background:#fff"],
[data-theme="dark"] div[style*="background: #fff"],
[data-theme="dark"] div[style*="background:#ffffff"],
[data-theme="dark"] div[style*="background: #ffffff"] {
  background: var(--p2026-bg-elev) !important;
}

/* ── Newsletter / email-html dark mode overrides ── */
[data-theme="dark"] #newsletter-body table[style*="background-color:#FFFFFF"],
[data-theme="dark"] #newsletter-body table[style*="background-color: #FFFFFF"],
[data-theme="dark"] #newsletter-body td[style*="background-color:#FFFFFF"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #FFFFFF"] {
  background: var(--p2026-bg-elev) !important;
}
[data-theme="dark"] #newsletter-body table[style*="background-color:#EAEAEA"],
[data-theme="dark"] #newsletter-body table[style*="background-color: #EAEAEA"],
[data-theme="dark"] #newsletter-body td[style*="background-color:#EAEAEA"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #EAEAEA"] {
  background: var(--p2026-bg-soft) !important;
}
[data-theme="dark"] #newsletter-body td[style*="background-color:#F8F8FA"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #F8F8FA"],
[data-theme="dark"] #newsletter-body td[style*="background-color:#F0F0F2"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #F0F0F2"] {
  background: var(--p2026-bg) !important;
}
[data-theme="dark"] #newsletter-body td[style*="background-color:#DDDDDD"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #DDDDDD"],
[data-theme="dark"] #newsletter-body td[style*="background-color:#E6E6EA"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #E6E6EA"] {
  background: var(--p2026-bg-soft) !important;
}
[data-theme="dark"] #newsletter-body td[style*="background-color:#FFF5F0"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #FFF5F0"] {
  background: rgba(255, 68, 68, 0.06) !important;
}
[data-theme="dark"] #newsletter-body td[style*="background-color:#F0FFF0"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #F0FFF0"],
[data-theme="dark"] #newsletter-body td[style*="background-color:#F8FFF8"],
[data-theme="dark"] #newsletter-body td[style*="background-color: #F8FFF8"] {
  background: rgba(16, 185, 129, 0.06) !important;
}
[data-theme="dark"] #newsletter-body table[style*="background:#FFFFFF"],
[data-theme="dark"] #newsletter-body table[style*="background: #FFFFFF"] {
  background: var(--p2026-bg-elev) !important;
}

/* Neutralize all link hover effects inside newsletter body */
#newsletter-body a:hover,
#newsletter-body a:focus {
  text-decoration: none !important;
  color: inherit !important;
  background: none !important;
  opacity: 1 !important;
}

/* Neutralize tr:hover td inside newsletter body (global CSS adds background change) */
#newsletter-body tr:hover td {
  background: inherit !important;
}

/* Fix hero link contrast — #C8FF00 invisible on light backgrounds */
.page-hero a[href="source.html"],
.page-hero a[href*="source.html"] {
  color: var(--p2026-fg-muted) !important;
}

/* Remove card hover lift on blog detail pages */
.related-post-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .p2026-reveal { opacity: 1; transform: none; }
}
