/* ============================================================
   DQIntegrity — Unified Stylesheet
   From-scratch CSS matching the original desktop design.
   Responsive breakpoints: 1100px, 880px, 640px

   Layer 1 — Base reset, tokens, homepage
   Layer 2 — Article / Insight pages (.article-page)
   Layer 3 — Page-specific scopes
   Layer 4 — Arabic (RTL)
   ============================================================ */

/* -- Reset & Base -- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

:root{
  --bg:        #0b1220;
  --bg-alt:    #0f1729;
  --surface:   rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border:    rgba(255,255,255,.08);
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --heading:   #f1f5f9;
  --cyan:      #22d3ee;
  --blue:      #60a5fa;
  --purple:    #a855f7;
  --orange:    #f59e0b;
  --red:       #ef4444;
  --green:     #34d399;
  --font:      'Inter',system-ui,-apple-system,sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1140px;
}

body{
  font-family:var(--font);
  font-size:1rem;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:var(--cyan);text-decoration:none;transition:color .2s}
a:hover{color:var(--blue)}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
h1,h2,h3,h4{color:var(--heading);line-height:1.25}
ul{list-style:none}

.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:0 24px}
.muted{color:var(--text-muted)}
.fineprint{font-size:.85rem;color:var(--text-muted)}

/* -- Top Banner -- */
.top-banner{
  background:linear-gradient(90deg,rgba(34,211,238,.12),rgba(96,165,250,.08));
  border-bottom:1px solid var(--border);
  font-size:.85rem;
  padding:10px 0;
}
.banner-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.banner-link{color:var(--cyan);font-weight:600;white-space:nowrap}

/* -- Header -- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(11,18,32,.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  padding:14px 0;
}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.logo{
  width:38px;
  height:38px;
  display:block;
  flex:0 0 38px;
  opacity:0.9;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.brand:hover .logo{
  transform: translateY(-1px);
  filter: brightness(1.18);
  opacity:1;
}

.brand-word{
  font-weight:600;
  font-size:1.05rem;
  line-height:1;
  color:#f3f7fb;
  letter-spacing:-0.02em;
}

.site-nav{display:flex;align-items:center;gap:6px}
.site-nav a{
  color:var(--text-muted);font-size:.88rem;font-weight:500;
  padding:6px 12px;border-radius:6px;transition:color .2s,background .2s;
}
.site-nav a:hover{color:var(--heading);background:var(--surface)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 22px;font-size:.9rem;font-weight:600;
  border-radius:999px;border:1.5px solid var(--cyan);
  background:var(--cyan);color:#000;
  cursor:pointer;transition:all .25s;text-decoration:none;white-space:nowrap;
}
.btn:hover{background:#06b6d4;border-color:#06b6d4;color:var(--bg)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}
.btn-ghost:hover{border-color:var(--text-muted);color:var(--heading);background:var(--surface)}
.btn-sm{padding:6px 16px;font-size:.82rem}

.nav-toggle{
  display:none;background:none;border:none;cursor:pointer;
  width:32px;height:24px;position:relative;flex-direction:column;justify-content:space-between;
}
.nav-toggle span{display:block;width:100%;height:2px;background:var(--text);border-radius:2px;transition:all .3s}

/* -- Home Hero -- */
.home-hero{
  padding:80px 0 60px;
  background:radial-gradient(ellipse at 30% 50%,rgba(34,211,238,.06) 0%,transparent 60%),
             radial-gradient(ellipse at 80% 30%,rgba(96,165,250,.05) 0%,transparent 50%),
             var(--bg);
}
.home-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}

.hero-copy .kicker{
  display:flex;align-items:center;gap:8px;
  font-size:.82rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--text-muted);margin-bottom:20px;
}
.hero-copy .kicker::before{
  content:'';width:8px;height:8px;border-radius:50%;background:var(--green);
  box-shadow:0 0 8px var(--green);
}
.hero-copy h1{font-size:clamp(2rem,4vw,3rem);font-weight:800;margin-bottom:20px;letter-spacing:-.03em}
.hero-copy .lead{font-size:1.05rem;margin-bottom:28px;max-width:520px}

.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}

.trust-strip{display:flex;flex-wrap:wrap;gap:8px}
.pill{
  padding:6px 16px;font-size:.8rem;font-weight:500;
  border:1px solid var(--border);border-radius:999px;color:var(--text-muted);
  background:var(--surface);
}

/* Hero Panel (curve viz) */
.hero-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  position:relative;
  overflow:visible;
}
.hero-panel-top{display:flex;gap:8px;margin-bottom:16px}
.hero-mini{
  padding:6px 14px;font-size:.78rem;font-weight:500;
  border:1px solid var(--border);border-radius:999px;
  color:var(--text-muted);background:var(--surface);
}
.hero-curve{position:relative;overflow:visible}
.hero-curve svg{width:100%;height:auto}
.curve-label{
  position:absolute;
  background:rgba(11,18,32,.55);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:8px 12px;
  font-size:.72rem;font-weight:600;color:var(--heading);
  line-height:1.35;
  pointer-events:none;
  backdrop-filter:blur(6px);
  white-space:nowrap;
}
.curve-label small{display:block;font-weight:400;color:var(--text-muted);font-size:.65rem;margin-top:2px}

/* -- Sections -- */
.section{padding:72px 0}
.section-alt{background:var(--bg-alt)}
.section-head{max-width:680px;margin-bottom:48px}
.section-head h2{font-size:clamp(1.4rem,3vw,1.9rem);font-weight:700;margin-bottom:12px}
.section-head h2::before{
  content:'|';margin-right:12px;color:var(--cyan);font-weight:800;
}
.section-head .muted{font-size:1rem;line-height:1.6}

/* -- Cards -- */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.signal-grid{grid-template-columns:repeat(3,1fr)}
.service-grid{grid-template-columns:repeat(3,1fr)}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  transition:border-color .25s,transform .25s;
}
.card:hover{border-color:rgba(255,255,255,.15);transform:translateY(-2px)}
.card h3{font-size:1.05rem;font-weight:600;margin-bottom:8px}
.card p{font-size:.92rem;color:var(--text-muted);margin-bottom:6px}
.card a{color:var(--cyan);font-weight:500;font-size:.88rem}

/* Icons (shared across all pages) */
.icon{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.icon svg{width:20px;height:20px}
.icon-orange{background:rgba(245,158,11,.15);color:var(--orange)}
.icon-purple{background:rgba(168,85,247,.15);color:var(--purple)}
.icon-blue{background:rgba(96,165,250,.15);color:var(--blue)}
.icon-red{background:rgba(239,68,68,.15);color:var(--red)}
.icon-green{background:rgba(52,211,153,.15);color:var(--green)}
.icon-cyan{background:rgba(34,211,238,.15);color:var(--cyan)}

/* Featured Grid */
.featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.featured-card{padding:32px}
.featured-card h3{font-size:1.15rem;margin-bottom:12px}
.featured-card h3 a{color:var(--heading)}
.featured-card h3 a:hover{color:var(--cyan)}
.featured-card .check{margin-top:16px;display:flex;flex-direction:column;gap:6px}
.featured-card .check li{
  font-size:.88rem;color:var(--text-muted);
  padding-left:20px;position:relative;
}
.featured-card .check li::before{
  content:'\2713';position:absolute;left:0;color:var(--green);font-weight:700;
}

/* -- Integrity Journey -- */
.integrity-journey{
  display:grid;grid-template-columns:repeat(5,1fr);gap:0;
  position:relative;padding:40px 0 24px;
}
.journey-line{
  position:absolute;top:52px;left:8%;right:8%;height:2px;
  background:linear-gradient(90deg,var(--border),var(--cyan) 25%,var(--orange) 50%,var(--border));
}
.journey-step{text-align:center;position:relative;z-index:1}
.journey-dot{
  width:14px;height:14px;border-radius:50%;
  margin:0 auto 16px;border:2px solid var(--border);
  background:var(--bg-alt);
}
.journey-dot.completeness{background:var(--orange);border-color:var(--orange);box-shadow:0 0 10px rgba(245,158,11,.4)}
.journey-dot.correctness{background:var(--purple);border-color:var(--purple);box-shadow:0 0 10px rgba(168,85,247,.4)}
.journey-dot.normal{background:var(--surface-2);border-color:var(--border)}
.journey-step h3{font-size:.9rem;font-weight:600;margin-bottom:6px}
.journey-step p{font-size:.82rem;color:var(--text-muted);padding:0 4px}

.journey-legend{
  display:flex;gap:24px;margin-top:28px;
  font-size:.85rem;color:var(--text-muted);
}
.legend-dot{
  display:inline-block;width:10px;height:10px;border-radius:50%;
  margin-right:6px;vertical-align:middle;
}
.legend-dot.completeness{background:var(--orange)}
.legend-dot.correctness{background:var(--purple)}

/* -- CTA Band -- */
.cta-band{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:40px 48px;
}
.cta-band h2{font-size:1.4rem;font-weight:700}
.cta-band h2::before{content:'';margin:0}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap}

/* -- Footer -- */
.site-footer{
  border-top:1px solid var(--border);
  padding:56px 0 0;
  background:var(--bg);
}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;
  padding-bottom:40px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}

.logo.small{
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.footer-grid h3{font-size:.9rem;font-weight:600;margin-bottom:16px;color:var(--heading)}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-links a{color:var(--text-muted);font-size:.88rem}
.footer-links a:hover{color:var(--cyan)}

.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding:20px 0;border-top:1px solid var(--border);
  font-size:.82rem;color:var(--text-muted);
}


/* ============================================================
   Layer 1 — Responsive (Homepage)
   ============================================================ */

@media(max-width:1100px){
  .home-hero-grid{grid-template-columns:1fr;gap:40px}
  .hero-panel{max-width:560px}
  .featured-grid{grid-template-columns:1fr}
}

@media(max-width:880px){
  .nav-toggle{display:flex}
  .site-nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;
    background:rgba(11,18,32,.97);backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
    padding:16px 24px;gap:4px;
  }
  .site-nav.open{display:flex}
  .site-nav a{padding:12px 16px;border-radius:8px}
  .site-header{position:relative}

  .signal-grid,.service-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  .footer-grid > div:first-child{grid-column:1 / -1}

  .integrity-journey{
    grid-template-columns:1fr;gap:24px;padding:20px 0;
  }
  .journey-line{display:none}
  .journey-step{
    text-align:left;display:grid;grid-template-columns:auto 1fr;gap:0 16px;
    align-items:start;
  }
  .journey-dot{grid-row:1/3;margin:4px 0 0;align-self:start}
  .journey-step h3{grid-column:2}
  .journey-step p{grid-column:2}
}

@media(max-width:640px){
  .home-hero{padding:48px 0 40px}
  .hero-copy h1{font-size:1.75rem}
  .hero-copy .lead{font-size:.95rem}
  .hero-cta{flex-direction:column}
  .hero-cta .btn{width:100%;text-align:center}

  .section{padding:48px 0}
  .section-head{margin-bottom:32px}

  .signal-grid,.service-grid,.cards{grid-template-columns:1fr}
  .featured-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .footer-bottom{flex-direction:column;gap:8px;text-align:center}

  .cta-band{flex-direction:column;text-align:center;padding:32px 24px}
  .cta-actions{justify-content:center}

  .trust-strip{gap:6px}
  .pill{font-size:.75rem;padding:5px 12px}

  .hero-panel{padding:16px}
  .curve-label{font-size:.62rem;padding:6px 8px;background:rgba(11,18,32,.45)}
}


/* ============================================================
   Layer 2 — Article / Insight pages (.article-page)
   Shared glass-card mixin + typography for all article pages.
   ============================================================ */

/* -- Glass card base (shared across stat, intro, case, aside, closing, step) -- */
.article-page .glass-card,
.article-page .stat-card,
.article-page .intro-card,
.article-page .case-card,
.article-page .aside-card,
.article-page .closing-card,
.article-page .step-block{
  position:relative;
  background:linear-gradient(180deg,rgba(15,23,42,.90),rgba(2,6,23,.88));
  border:1px solid rgba(148,163,184,.14);
  border-radius:24px;
  box-shadow:0 22px 60px rgba(0,0,0,.24);
  overflow:hidden;
}

/* Gradient border shimmer */
.article-page .glass-card::before,
.article-page .stat-card::before,
.article-page .intro-card::before,
.article-page .case-card::before,
.article-page .aside-card::before,
.article-page .closing-card::before,
.article-page .step-block::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  padding:1px;
  background:linear-gradient(130deg,rgba(59,130,246,.28),rgba(148,163,184,.04),rgba(239,68,68,.16));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}

/* -- Article hero -- */
.article-page .article-hero{
  padding:5rem 0 2.75rem;
  background:
    radial-gradient(circle at top left,rgba(239,68,68,.10),transparent 26%),
    radial-gradient(circle at top right,rgba(6,182,212,.10),transparent 28%),
    radial-gradient(circle at 70% 20%,rgba(168,85,247,.10),transparent 22%);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.article-page .article-shell{
  max-width:1180px;
  margin:0 auto;
  padding:0 1.25rem;
}

.article-page .article-head{max-width:920px}

.article-page .back-link{
  display:inline-flex;align-items:center;gap:.45rem;
  color:rgba(226,232,240,.82);text-decoration:none;
  margin-bottom:1.1rem;font-weight:500;
}
.article-page .back-link:hover{color:#fff}

.article-page .eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.35rem .7rem;border-radius:999px;
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.22);
  color:#f87171;
  font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;margin-bottom:1rem;
}

.article-page .article-head h1{
  font-size:clamp(2.7rem,5vw,4.8rem);
  line-height:1.02;
  margin:0 0 1.1rem;
  letter-spacing:-.045em;
}

.article-page .article-subtitle{
  font-size:1.28rem;line-height:1.62;
  color:rgba(226,232,240,.92);
  max-width:820px;margin:0 0 1.35rem;
}

.article-page .article-subnote{
  color:rgba(148,163,184,.95);
  max-width:820px;font-size:1rem;line-height:1.7;
}

/* -- Hero stat strip -- */
.article-page .hero-strip{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1rem;margin-top:2rem;
}

.article-page .stat-card{padding:1.1rem 1.1rem 1rem}

.article-page .stat-card .label{
  display:block;font-size:.76rem;text-transform:uppercase;
  letter-spacing:.08em;color:#67e8f9;font-weight:700;margin-bottom:.55rem;
}

.article-page .stat-card strong{
  display:block;font-size:1.7rem;line-height:1.05;margin-bottom:.4rem;
}
.article-page .stat-card.negative strong{color:#f87171}
.article-page .stat-card.neutral strong{color:var(--text)}

.article-page .stat-card p{
  margin:0;color:rgba(226,232,240,.82);line-height:1.45;font-size:.95rem;
}

/* -- Article layout (two-column with sticky sidebar) -- */
.article-page .article-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 330px;
  gap:2.25rem;align-items:start;margin-top:2.5rem;
}

.article-page .article-body{max-width:790px}

.article-page .article-body section{
  padding:2rem 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.article-page .article-body section:last-child{border-bottom:none}

.article-page .article-body h2{
  font-size:clamp(1.72rem,2.45vw,2.35rem);
  line-height:1.14;margin:0 0 1rem;
  letter-spacing:-.025em;position:relative;padding-left:1rem;
}
.article-page .article-body h2::before{
  content:"";position:absolute;left:0;top:.28rem;
  width:4px;height:1.45rem;border-radius:999px;
  background:linear-gradient(180deg,#22d3ee,#3b82f6);
}

.article-page .article-body p,
.article-page .article-body li{
  font-size:1.04rem;line-height:1.78;color:rgba(226,232,240,.88);
}

.article-page .section-intro{
  font-size:1.14rem;color:rgba(241,245,249,.94);
}

/* -- Intro card -- */
.article-page .intro-card{padding:1.5rem}

/* -- Article icon overrides -- */
.article-page .icon{
  width:38px;height:38px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  margin-bottom:.9rem;border:1px solid transparent;
}
.article-page .icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.9;fill:none}

.article-page .icon-red{
  background:rgba(239,68,68,.10);color:#f87171;
  border-color:rgba(239,68,68,.24);box-shadow:0 0 16px rgba(239,68,68,.16);
}
.article-page .icon-blue{
  background:rgba(59,130,246,.12);color:#60a5fa;
  border-color:rgba(59,130,246,.22);box-shadow:0 0 14px rgba(59,130,246,.14);
}
.article-page .icon-purple{
  background:rgba(168,85,247,.12);color:#c084fc;
  border-color:rgba(168,85,247,.22);box-shadow:0 0 14px rgba(168,85,247,.14);
}
.article-page .icon-orange{
  background:rgba(245,158,11,.12);color:#fbbf24;
  border-color:rgba(245,158,11,.22);box-shadow:0 0 14px rgba(245,158,11,.14);
}
.article-page .icon-green{
  background:rgba(34,197,94,.12);color:#4ade80;
  border-color:rgba(34,197,94,.22);box-shadow:0 0 14px rgba(34,197,94,.14);
}

/* -- Case cards -- */
.article-page .case-list{display:grid;gap:1.15rem}

.article-page .case-card{
  padding:1.35rem 1.4rem 1.2rem;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.article-page .case-card:hover{
  transform:translateY(-3px);
  border-color:rgba(248,113,113,.26);
  box-shadow:0 18px 34px rgba(127,29,29,.14);
}

.article-page .case-top{
  display:grid;grid-template-columns:auto 1fr;
  gap:.95rem;align-items:start;margin-bottom:.5rem;
}

.article-page .case-meta{
  display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.7rem;
}

.article-page .case-badge{
  display:inline-flex;align-items:center;
  border:1px solid rgba(103,232,249,.18);
  background:rgba(8,47,73,.24);
  color:#93c5fd;
  padding:.26rem .55rem;border-radius:999px;
  font-size:.76rem;font-weight:700;letter-spacing:.02em;
}
.article-page .case-badge.regulator{color:#67e8f9}
.article-page .case-badge.region{color:#93c5fd}
.article-page .case-badge.year{color:#c084fc}

.article-page .case-card h3{
  margin:0 0 .55rem;font-size:1.52rem;line-height:1.23;letter-spacing:-.02em;
}
.article-page .metric-negative{color:#f87171;font-weight:800}
.article-page .metric-neutral{color:var(--text);font-weight:800}

.article-page .case-card p{margin:0 0 .85rem}

.article-page .case-card .why{
  margin-top:1rem;padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.08);
}
.article-page .case-card .why strong{color:#f8fafc}

.article-page .source-link{
  display:inline-flex;align-items:center;gap:.35rem;
  margin-top:.25rem;color:#67e8f9;text-decoration:none;font-weight:600;
}
.article-page .source-link:hover{text-decoration:underline}

/* -- Sticky sidebar -- */
.article-page .article-aside{
  position:sticky;top:110px;display:grid;gap:1rem;
}

.article-page .aside-card{padding:1.3rem 1.3rem 1.1rem}

.article-page .aside-card h3{
  margin-top:0;margin-bottom:.8rem;
  display:flex;align-items:center;gap:.65rem;font-size:1.18rem;
}

.article-page .aside-card ul{margin:0;padding-left:0;list-style:none}

.article-page .aside-card li{
  margin-bottom:.6rem;color:rgba(226,232,240,.88);
  line-height:1.55;position:relative;padding-left:1.05rem;
}
.article-page .aside-card li::before{
  content:"•";position:absolute;left:0;color:#f59e0b;
}

/* -- Step blocks -- */
.article-page .step-stack{display:grid;gap:.9rem;margin-top:1rem}

.article-page .step-block{
  display:grid;grid-template-columns:auto 1fr;
  gap:.9rem;padding:1rem 1.05rem;align-items:start;
}

.article-page .step-number{
  width:32px;height:32px;border-radius:10px;
  background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.24);
  color:#22d3ee;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:1rem;
  box-shadow:0 0 14px rgba(34,211,238,.12);flex-shrink:0;
}

.article-page .step-block h3{margin:.1rem 0 .35rem;font-size:1.04rem}
.article-page .step-block p{margin:0;color:rgba(226,232,240,.84);font-size:.97rem;line-height:1.58}

/* -- Closing card -- */
.article-page .closing-wrap{margin-top:2rem}

.article-page .closing-card{
  display:grid;grid-template-columns:1fr auto;
  gap:1.5rem;padding:1.8rem 1.9rem;align-items:center;
}
.article-page .closing-card h2{
  font-size:clamp(1.72rem,2.45vw,2.35rem);
  padding-left:1rem;position:relative;
}
.article-page .closing-card h2::before{
  content:"";position:absolute;left:0;top:.28rem;
  width:4px;height:1.45rem;border-radius:999px;
  background:linear-gradient(180deg,#22d3ee,#3b82f6);
}

.article-page .closing-card p{
  margin:0 0 .95rem;color:rgba(226,232,240,.9);line-height:1.72;
}

.article-page .closing-actions{
  display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end;
}

.article-page .muted-note{color:rgba(148,163,184,.92);font-size:.95rem}

/* -- Generic article grids (services, approach, etc.) -- */
.article-page .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.article-page .grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0}

.article-page .trigger-card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:24px;
}
.article-page .trigger-card h3{font-size:1rem;margin-bottom:8px}
.article-page .trigger-card p{font-size:.9rem;color:var(--text-muted);margin:0}

.article-page .arrow-list{margin:16px 0;padding:0}
.article-page .arrow-list li{
  padding:8px 0 8px 24px;position:relative;
  font-size:.92rem;color:var(--text-muted);border-bottom:1px solid var(--border);
}
.article-page .arrow-list li:last-child{border:0}
.article-page .arrow-list li::before{
  content:'\2192';position:absolute;left:0;color:var(--cyan);font-weight:700;
}

.article-page .hero-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:32px}
.article-page .panel{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:28px;
}
.article-page .panel h3{font-size:1.1rem;margin-bottom:16px}

.article-page .service-list{display:flex;flex-direction:column;gap:16px}
.article-page .service-card{
  background:var(--surface-2);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:20px;
}
.article-page .service-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.article-page .service-head .icon{margin-bottom:0;width:32px;height:32px}
.article-page .service-head .icon svg{width:16px;height:16px}
.article-page .service-head h4{font-size:.95rem;font-weight:600;color:var(--heading)}
.article-page .service-card p{font-size:.88rem;color:var(--text-muted);margin:0}

.article-page .related-articles{margin-top:48px;padding-top:32px;border-top:1px solid var(--border)}
.article-page .related-articles h2::before{content:''}
.article-page .related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:20px}
.article-page .related-grid .card{padding:20px}

/* -- Generic article hero (non-evidence pages) -- */
.article-page .page-hero{
  padding:64px 0 48px;
  background:radial-gradient(ellipse at 20% 50%,rgba(34,211,238,.06),transparent 60%),
             radial-gradient(ellipse at 80% 30%,rgba(96,165,250,.04),transparent 50%),
             var(--bg);
}
.article-page .hero-shell{max-width:var(--max-w);margin:0 auto;padding:0 24px}
.article-page .hero-head{max-width:720px}
.article-page .hero-head .kicker{
  display:flex;align-items:center;gap:8px;
  font-size:.82rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--text-muted);margin-bottom:16px;
}
.article-page .hero-head h1{font-size:clamp(1.6rem,3.5vw,2.4rem);font-weight:800;margin-bottom:16px}
.article-page .hero-subtitle{font-size:1.05rem;color:var(--text-muted);margin-bottom:8px}
.article-page .hero-subnote{font-size:.92rem;color:var(--text-muted)}


/* ============================================================
   Layer 2 — Responsive (Article pages)
   ============================================================ */

@media(max-width:1100px){
  .article-page .hero-strip{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:980px){
  .article-page .article-layout,
  .article-page .closing-card{grid-template-columns:1fr}

  .article-page .article-aside{position:static}
  .article-page .closing-actions{justify-content:flex-start}
}

@media(max-width:880px){
  .article-page .grid-2{grid-template-columns:1fr}
  .article-page .grid-3{grid-template-columns:1fr}
  .article-page .hero-grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  .article-page .hero-strip{grid-template-columns:1fr}
  .article-page .article-hero{padding-top:3.75rem}

  .article-page .stat-card,
  .article-page .intro-card,
  .article-page .case-card,
  .article-page .aside-card,
  .article-page .closing-card,
  .article-page .step-block{border-radius:20px}

  .article-page .glass-card::before,
  .article-page .stat-card::before,
  .article-page .intro-card::before,
  .article-page .case-card::before,
  .article-page .aside-card::before,
  .article-page .closing-card::before,
  .article-page .step-block::before{border-radius:20px}

  .article-page .case-top,
  .article-page .step-block{grid-template-columns:1fr}

  .article-page .article-shell{padding:0 1rem}
  .article-page .article-head h1{font-size:2rem}
  .article-page .article-subtitle{font-size:1.05rem}
  .article-page .page-hero{padding:40px 0 32px}
}


/* ============================================================
   Layer 3 — Page-specific scopes
   ============================================================ */

.services-page .page-hero{
  padding:64px 0 48px;
  background:radial-gradient(ellipse at 30% 40%,rgba(168,85,247,.06),transparent 60%),var(--bg);
}

.industries-page .card{background:rgba(15,23,42,.90);border-color:rgba(255,255,255,.08)}

.about-page .page-hero{
  padding:64px 0 48px;
  background:radial-gradient(ellipse at 25% 50%,rgba(96,165,250,.06),transparent 60%),var(--bg);
}

.approach-page .page-hero{
  padding:64px 0 48px;
  background:radial-gradient(ellipse at 50% 30%,rgba(52,211,153,.05),transparent 60%),var(--bg);
}

.contact-page .page-hero{
  padding:64px 0 48px;
  background:radial-gradient(ellipse at 40% 40%,rgba(34,211,238,.06),transparent 60%),var(--bg);
}

/* ---------- Insights page (.insights-page) ---------- */

.insights-page .insights-hero{
  padding:5rem 0 3rem;
  background:
    radial-gradient(circle at top left,rgba(37,99,235,.16),transparent 36%),
    radial-gradient(circle at top right,rgba(6,182,212,.10),transparent 28%);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.insights-page .insights-shell{max-width:1180px;margin:0 auto;padding:0 1.25rem}
.insights-page .insights-head{max-width:900px}

.insights-page .insights-head h1{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:800;
  line-height:1.08;
  margin:.5rem 0 1rem;
  letter-spacing:-.03em;
  max-width:20ch;
}

.insights-page .insights-subtitle{
  font-size:1.05rem;line-height:1.65;
  color:rgba(226,232,240,.92);max-width:60ch;margin:0 0 1.6rem;
}

.insights-page .insights-body{padding:2.25rem 0 5rem}
.insights-page .section-stack{display:grid;gap:1.5rem}

.insights-page .start-here,
.insights-page .library-card,
.insights-page .use-card,
.insights-page .closing-card,
.insights-page .journey-card{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(15,23,42,.90),rgba(2,6,23,.88));
  border:1px solid rgba(148,163,184,.14);
  border-radius:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.24);
}

.insights-page .start-here::before,
.insights-page .library-card::before,
.insights-page .use-card::before,
.insights-page .closing-card::before,
.insights-page .journey-card::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:linear-gradient(130deg,rgba(59,130,246,.20),rgba(148,163,184,.04),rgba(37,214,230,.16));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;
}

/* Insights page uses article-layout wrapper but has NO sidebar —
   force single-column so children aren't squeezed into 330px col */
.insights-page .article-layout{
  display:block;          /* kill the 2-col grid */
}

.insights-page .article-layout > section{
  margin-bottom:2.5rem;
}

/* Align content indent with the hero-shell above */
.insights-page .article-shell{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 24px;
}

.insights-page .start-here{
  padding:1.8rem 1.9rem;
  display:grid;grid-template-columns:1fr auto;gap:1.5rem;align-items:center;
}

.insights-page .start-here p,
.insights-page .use-card p,
.insights-page .library-intro,
.insights-page .journey-card p{color:rgba(226,232,240,.9);line-height:1.7}

.insights-page .start-actions,
.insights-page .closing-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}

.insights-page .section-label{
  display:inline-block;margin-bottom:.65rem;
  font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;
  color:#67e8f9;font-weight:700;
}

.insights-page .section-title{
  margin:0 0 .8rem;
  font-size:clamp(1.7rem,2.2vw,2.3rem);
  line-height:1.12;letter-spacing:-.02em;
}

.insights-page .journey-card{padding:1.65rem}

.insights-page .journey-flow{
  position:relative;display:grid;grid-template-columns:repeat(5,1fr);
  gap:.9rem;margin-top:1.35rem;align-items:start;
}
.insights-page .journey-flow::before{
  content:"";position:absolute;left:8%;right:8%;top:26px;height:2px;
  background:linear-gradient(90deg,rgba(103,232,249,.35),rgba(148,163,184,.18),rgba(103,232,249,.35));
  z-index:0;
}

.insights-page .journey-step{position:relative;z-index:1;padding-top:.2rem}
.insights-page .journey-dot{
  width:16px;height:16px;border-radius:50%;background:#67e8f9;
  border:4px solid rgba(8,47,73,.95);box-shadow:0 0 0 4px rgba(103,232,249,.14);
  margin-bottom:.9rem;
}
.insights-page .journey-step.break .journey-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.16)}
.insights-page .journey-step.mutation .journey-dot{background:#a855f7;box-shadow:0 0 0 4px rgba(168,85,247,.18)}
.insights-page .journey-step h3{margin:0 0 .35rem;font-size:1rem;line-height:1.2}
.insights-page .journey-step p{margin:0;font-size:.94rem;line-height:1.55;color:rgba(226,232,240,.82)}
.insights-page .journey-note{margin-top:1rem;font-size:.95rem;color:rgba(148,163,184,.92)}

.insights-page .featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.insights-page .featured-grid .card,
.insights-page .library-grid .card{grid-column:auto}
.insights-page .featured-grid .card h3,
.insights-page .library-grid .card h3{line-height:1.2}

.insights-page .library-header{
  display:grid;grid-template-columns:1fr auto;gap:1.25rem;
  align-items:end;margin-bottom:1.25rem;
}

.insights-page .library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.insights-page .library-card{padding:1.35rem 1.2rem;min-height:220px}

.insights-page .use-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1.25rem}
.insights-page .use-card{padding:1.55rem}

.insights-page .sequence-links p{margin:0 0 .9rem}

.insights-page .closing-card{
  padding:1.8rem 1.9rem;
  display:grid;grid-template-columns:1fr auto;gap:1.5rem;align-items:center;
}
.insights-page .closing-card p{margin:0;color:rgba(226,232,240,.9);line-height:1.7}

/* Insights responsive */
@media(max-width:1100px){
  .insights-page .library-grid,
  .insights-page .journey-flow{grid-template-columns:repeat(2,1fr)}
  .insights-page .journey-flow::before{display:none}
}

@media(max-width:980px){
  .insights-page .start-here,
  .insights-page .featured-grid,
  .insights-page .use-grid,
  .insights-page .closing-card,
  .insights-page .library-header{grid-template-columns:1fr}
  .insights-page .start-actions,
  .insights-page .closing-actions{justify-content:flex-start}
}

@media(max-width:640px){
  .insights-page .library-grid,
  .insights-page .journey-flow{grid-template-columns:1fr}
  .insights-page .journey-flow::before{display:none}
  .insights-page .insights-hero{padding-top:4rem}
}


/* ============================================================
   Layer 4 — Arabic (RTL)
   ============================================================ */
[dir="rtl"]{direction:rtl;text-align:right}
[dir="rtl"] .site-nav{flex-direction:row-reverse}
[dir="rtl"] .header-inner{flex-direction:row-reverse}
[dir="rtl"] .footer-grid{direction:rtl}
[dir="rtl"] .hero-copy .kicker{flex-direction:row-reverse}
[dir="rtl"] .section-head h2::before{content:'|';margin-right:0;margin-left:12px}
[dir="rtl"] .arrow-list li{padding-left:0;padding-right:24px}
[dir="rtl"] .arrow-list li::before{left:auto;right:0;content:'\2190'}
[dir="rtl"] .featured-card .check li{padding-left:0;padding-right:20px}
[dir="rtl"] .featured-card .check li::before{left:auto;right:0}

@media(max-width:880px){
  [dir="rtl"] .site-nav{flex-direction:column}
  [dir="rtl"] .header-inner{flex-direction:row-reverse}
}

/* ============================================================
   Fix: Icon + heading inline alignment
   Icons should sit on the same line as their adjacent heading,
   not on a separate line above. Applies to panels, feature cards,
   focus cards, principle cards, featured cards, and library cards.
   ============================================================ */

/* Panel-level icon + heading (approach, case-studies, contact, about) */
.article-page .panel > .icon,
.article-page .feature-card > .icon,
.article-page .focus-card > .icon,
.article-page .principle-card > .icon {
  display:inline-flex;
  margin-bottom:0;
  vertical-align:middle;
  margin-right:12px;
}
.article-page .panel > .icon + h3,
.article-page .feature-card > .icon + h4,
.article-page .focus-card > .icon + h4,
.article-page .principle-card > .icon + h3 {
  display:inline;
  vertical-align:middle;
}

/* Insights page: featured cards and library cards */
.featured-card > .icon,
.card > .icon {
  display:inline-flex;
  margin-bottom:0;
  vertical-align:middle;
  margin-right:12px;
}
.featured-card > .icon + h3,
.card > .icon + h3,
.card > .icon + h4 {
  display:inline;
  vertical-align:middle;
}

/* Stat-strip: 4-column grid for approach/industries stat cards */
.stat-strip,
.article-page .stat-strip {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  margin-top:1.5rem;
}
@media(max-width:880px){
  .stat-strip,
  .article-page .stat-strip {
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .stat-strip,
  .article-page .stat-strip {
    grid-template-columns:1fr;
  }
}

/* Industries consequence grid — 4-column layout */
.industries-page .consequence-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  margin-top:1.5rem;
}
@media(max-width:880px){
  .industries-page .consequence-grid {
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .industries-page .consequence-grid {
    grid-template-columns:1fr;
  }
}


/* Stage cards — approach page (icon + heading inline) */
.article-page .stage-list{display:grid;gap:.75rem;margin-top:1rem}
.article-page .stage-card{
  background:var(--surface-2);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:16px 20px;
}
.article-page .stage-head{
  display:flex;align-items:center;gap:12px;margin-bottom:6px;
}
.article-page .stage-head .icon{margin-bottom:0;flex-shrink:0}
.article-page .stage-head h4{margin:0;font-size:.95rem;font-weight:600;color:var(--heading)}
.article-page .stage-card p{font-size:.9rem;color:var(--text-muted);margin:0}


/* ============================================================
   DQ03 Supplement — classes missing from uploaded base
   Covers: when-data-fails, why-data-quality-fails, and
   all article-page components used across the full site.
   All tokens reference existing :root variables.
   ============================================================ */

/* -- Page-type scope -- */
.consequences-page .article-hero {
  background:
    radial-gradient(circle at top left,rgba(239,68,68,.12),transparent 28%),
    radial-gradient(circle at top right,rgba(96,165,250,.08),transparent 30%);
}

/* -- Trust panel block (homepage + article pages) -- */
.trust-section { padding: 0 }
.trust-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.trust-intro { max-width: 72ch; margin-bottom: 20px }
.trust-intro h2 { font-size: clamp(1.4rem,2.4vw,1.9rem); font-weight: 700; margin-bottom: 10px }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.trust-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.trust-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; color: var(--heading) }
.trust-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55 }

@media(max-width:880px) {
  .trust-grid { grid-template-columns: 1fr 1fr }
}
@media(max-width:640px) {
  .trust-grid { grid-template-columns: 1fr }
}

/* -- Callout (highlighted note block used in article bodies) -- */
.article-page .callout {
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.20);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.article-page .callout h3 {
  font-size: 1rem; font-weight: 600; color: var(--heading); margin: 0 0 8px;
}
.article-page .callout p {
  margin: 0 0 8px; font-size: .95rem; color: rgba(226,232,240,.9); line-height: 1.7;
}
.article-page .callout p:last-child { margin-bottom: 0 }

/* -- Feature list + feature card (about, approach, industries) -- */
.article-page .feature-list { display: grid; gap: 10px; margin: 16px 0 }
.article-page .feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.article-page .feature .icon { margin-bottom: 0; flex-shrink: 0 }
.article-page .feature h3 { font-size: .95rem; font-weight: 600; color: var(--heading); margin: 0 0 4px }
.article-page .feature p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55 }

/* -- Split two-column layout (about, approach detail) -- */
.article-page .split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
  margin: 16px 0;
}
@media(max-width:880px) {
  .article-page .split { grid-template-columns: 1fr }
}

/* -- Prose pages (terms, privacy, disclaimer) -- */
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 24px 0 10px; color: var(--heading) }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; color: var(--heading) }
.prose p  { font-size: .95rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.7 }
.prose ul, .prose ol { padding-left: 20px; color: var(--text-muted); font-size: .95rem; margin: 0 0 12px }
.prose li { margin: 6px 0; line-height: 1.65 }
.prose strong { color: var(--heading) }
.prose a { color: var(--cyan) }

/* -- Note block (inline callout used on contact / approach) -- */
.article-page .note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 16px 0;
}
.article-page .note h3 { font-size: .92rem; font-weight: 600; color: var(--heading); margin: 0 0 6px }
.article-page .note p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.6 }

/* -- Tag row (taxonomy chips on insight / control pages) -- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }
.tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.tag.compl  { border-color: rgba(245,158,11,.35);  color: var(--orange); background: rgba(245,158,11,.08) }
.tag.corr   { border-color: rgba(168,85,247,.35);  color: var(--purple); background: rgba(168,85,247,.08) }
.tag.ctrl   { border-color: rgba(34,211,238,.30);  color: var(--cyan);   background: rgba(34,211,238,.07) }
.tag.time   { border-color: rgba(52,211,153,.30);  color: var(--green);  background: rgba(52,211,153,.07) }
.tag.exec   { border-color: rgba(96,165,250,.30);  color: var(--blue);   background: rgba(96,165,250,.07) }
/* contact page variants */
.tag.context, .tag.journey, .tag.pattern, .tag.ownership {
  border-color: rgba(34,211,238,.25); color: var(--cyan); background: rgba(34,211,238,.06);
}

/* -- Industry tag badges (industries page) -- */
.industry-tag {
  display: inline-block;
  font-size: .74rem; font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.industry-tag.banking    { color: var(--blue);   border-color: rgba(96,165,250,.30);   background: rgba(96,165,250,.07) }
.industry-tag.regulatory { color: var(--purple); border-color: rgba(168,85,247,.30);   background: rgba(168,85,247,.07) }
.industry-tag.infra      { color: var(--green);  border-color: rgba(52,211,153,.30);   background: rgba(52,211,153,.07) }
.industry-tag.controls   { color: var(--orange); border-color: rgba(245,158,11,.30);   background: rgba(245,158,11,.07) }

/* -- Case grid and case pills (case-studies page) -- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.case-pill {
  display: inline-block;
  font-size: .74rem; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(103,232,249,.20);
  color: #67e8f9;
  background: rgba(8,47,73,.24);
}

/* -- Compare grid (completeness vs correctness) -- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px }
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.compare-card h3 { font-size: .95rem; font-weight: 600; color: var(--heading); margin: 0 0 6px }
.compare-card h4 { font-size: .9rem; font-weight: 600; color: var(--heading); margin: 0 0 5px }
.compare-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55 }

/* Split compare variant */
.split-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px }
.mini-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); display: block; margin-bottom: 5px;
}

/* -- Problem flow (step diagram) -- */
.problem-flow { display: grid; gap: 0; margin-top: 12px }
.flow-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.flow-step:last-child { border-bottom: none }
.flow-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.flow-dot.blue   { background: var(--blue) }
.flow-dot.orange { background: var(--orange) }
.flow-dot.purple { background: var(--purple) }
.flow-dot.red    { background: var(--red) }
.flow-step h4 { font-size: .9rem; font-weight: 600; color: var(--heading); margin: 0 0 3px }
.flow-step p  { font-size: .86rem; color: var(--text-muted); margin: 0; line-height: 1.5 }

/* -- Pull quote (aside cards) -- */
.pull {
  font-size: .95rem; font-style: italic; line-height: 1.65;
  color: rgba(226,232,240,.9);
  padding: 10px 14px;
  border-left: 3px solid var(--cyan);
  background: rgba(34,211,238,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}
.core-idea-note{
  margin-top:10px;
  font-size:.78rem;
  line-height:1.45;
  color:rgba(148,163,184,0.7);
}

/* -- Form elements extended (contact page) -- */
.article-page .form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.article-page .form-card h3 { font-size: 1rem; font-weight: 600; color: var(--heading); margin: 0 0 16px }
.article-page .form-grid { display: grid; gap: 12px }
.article-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.article-page label { font-size: .88rem; font-weight: 600; color: var(--heading); display: block; margin-bottom: 4px }
.article-page input,
.article-page textarea,
.article-page select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 13px;
  font: inherit;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.article-page input::placeholder,
.article-page textarea::placeholder { color: var(--text-muted) }
.article-page textarea { min-height: 120px; resize: vertical }
.article-page input:focus,
.article-page textarea:focus,
.article-page select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.article-page .hp { display: none !important }
.article-page .small-note { font-size: .82rem; color: var(--text-muted); margin-top: 6px; line-height: 1.55 }

/* Callout success/error feedback */
.article-page .callout.success {
  background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.30); color: var(--green);
}
.article-page .callout.error {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.30); color: var(--red);
}

/* -- Focus card (contact page) -- */
.article-page .focus-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.article-page .focus-card h4 { font-size: .9rem; font-weight: 600; color: var(--heading); margin: 0 0 4px }
.article-page .focus-card p  { font-size: .84rem; color: var(--text-muted); margin: 0; line-height: 1.5 }

/* -- Fit / principle / problem / pattern cards (about, approach pages) -- */
.article-page .fit-card,
.article-page .principle-card,
.article-page .problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.article-page .fit-card h3,
.article-page .principle-card h3,
.article-page .problem-card h3 { font-size: .95rem; font-weight: 600; color: var(--heading); margin: 0 0 6px }
.article-page .fit-card p,
.article-page .principle-card p,
.article-page .problem-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55 }

.pattern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.feature-card h4 { font-size: .9rem; font-weight: 600; color: var(--heading); margin: 0 0 5px }
.feature-card p  { font-size: .86rem; color: var(--text-muted); margin: 0; line-height: 1.5 }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px }

/* -- Layer card + framework stack (controls framework page) -- */
.framework-stack { display: grid; gap: 10px; margin-top: 14px }
.layer-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.layer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px }
.layer-head h4 { font-size: .93rem; font-weight: 600; color: var(--heading); margin: 0 }
.layer-card p { font-size: .87rem; color: var(--text-muted); margin: 0; line-height: 1.55 }

/* -- Step card (article body, smaller than step-block) -- */
.step-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.step-card h3 { font-size: .92rem; font-weight: 600; color: var(--heading); margin: 0 0 5px }
.step-card h4 { font-size: .88rem; font-weight: 600; color: var(--heading); margin: 0 0 4px }
.step-card p  { font-size: .86rem; color: var(--text-muted); margin: 0; line-height: 1.5 }

/* -- Note ref -- */
.note-ref {
  font-size: .86rem; color: var(--text-muted); font-style: italic;
  padding: 6px 12px; margin-top: 8px;
  border-left: 2px solid var(--border);
}

/* -- Journey delay dot variant -- */
.journey-dot.delay {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 10px rgba(96,165,250,.4);
}

/* -- Inline colour utility (text colour classes used in stat-cards) -- */
.orange { color: var(--orange) }
.purple { color: var(--purple) }
.blue   { color: var(--blue) }
.green  { color: var(--green) }
.red    { color: var(--red) }
.cyan   { color: var(--cyan) }

/* Metric spans in case-cards */
.metric-positive { color: var(--green); font-weight: 700 }

/* -- Pattern grid responsive -- */
@media(max-width:880px) {
  .pattern-grid,
  .feature-grid,
  .compare-grid,
  .split-compare,
  .case-grid,
  .article-page .form-row,
  .article-page .split { grid-template-columns: 1fr }
}

/* -- Consequence grid (industries page) — extended breakpoints -- */
@media(max-width:880px) {
  .trust-grid { grid-template-columns: 1fr 1fr }
}

/* -- Prose sections -- */
.section .prose { max-width: 740px }

/* -- Remaining edge classes -- */
.home-cta-band {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 48px;
}
.home-cta-band h2 { font-size: 1.4rem; font-weight: 700; color: var(--heading) }
.home-cta-band p  { color: var(--text-muted); font-size: .95rem; margin: 0 }
@media(max-width:640px) {
  .home-cta-band { flex-direction: column; text-align: center; padding: 32px 24px }
}

/* Insights page specifics (used in insights.html rebuild) */
.insights-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #67e8f9;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.insights-start-here {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.insights-start-here h2 { margin: 0 0 8px; color: var(--heading) }
.insights-start-here p  { color: var(--text-muted); margin: 0; font-size: .95rem }
@media(max-width:880px) {
  .insights-start-here { flex-direction: column; align-items: flex-start }
}
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px }
.insights-journey-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
}
@media(max-width:880px) {
  .insights-grid { grid-template-columns: 1fr 1fr }
}
@media(max-width:640px) {
  .insights-grid { grid-template-columns: 1fr }
}

/* =====================================================
   Podcast Homepage Card
   ===================================================== */

.podcast-home-card{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:32px;
    align-items:center;

    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);

    padding:36px;
}

.podcast-home-image img{
    width:100%;
    display:block;
    border-radius:12px;
    border:1px solid var(--border);

    transition:transform .25s ease;
}

.podcast-home-image img:hover{
    transform:scale(1.02);
}

.podcast-home-content h2{
    margin-bottom:14px;
}

.podcast-home-content p{
    margin-bottom:16px;
}

.podcast-home-content .cta-actions{
    margin-top:20px;
}

@media(max-width:880px){

    .podcast-home-card{
        grid-template-columns:1fr;
    }

    .podcast-home-image{
        max-width:500px;
        margin:0 auto;
    }
}
/* Strong homepage podcast card override */
section .podcast-home-card {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: center !important;
}

section .podcast-home-image {
  max-width: 340px !important;
}

section .podcast-home-image img {
  width: 100% !important;
  max-width: 340px !important;
  height: auto !important;
  display: block !important;
}

section .podcast-home-content {
  min-width: 0 !important;
}

@media(max-width:880px) {
  section .podcast-home-card {
    grid-template-columns: 1fr !important;
  }

  section .podcast-home-image {
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  section .podcast-home-image img {
    max-width: 520px !important;
  }
}
/* Podcast alternative versions */

.podcast-alternatives{
    margin-top:36px;
    padding-top:28px;
    border-top:1px solid var(--border);
    text-align:center;
}

.podcast-alternatives h3{
    margin-bottom:12px;
}

.podcast-alternatives p{
    max-width:760px;
    margin:0 auto 24px;
}

.podcast-alt-links{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

@media(max-width:760px){

    .podcast-alt-links{
        flex-direction:column;
        align-items:center;
    }

    .podcast-alt-links .btn{
        width:280px;
    }

}


/* Curve monitoring label colour variant */
.curve-label.monitoring { color: var(--cyan) }
