/* Pipeline Weekly — site.css
   Corporate B2B content-marketing blog, HubSpot-adjacent structure.
   Indigo + white palette, system sans-serif, soft-shadow cards. */

:root{
  --indigo-50:  #eef1ff;
  --indigo-100: #e0e4ff;
  --indigo-200: #c7cdfd;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-900: #1e1b4b;
  --ink:        #111827;
  --ink-soft:   #374151;
  --gray-500:   #6b7280;
  --gray-200:   #e5e7eb;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.06), 0 1px 3px rgba(17,24,39,0.08);
  --shadow-md: 0 4px 10px rgba(30,27,75,0.08), 0 2px 4px rgba(30,27,75,0.06);
  --shadow-lg: 0 12px 28px rgba(30,27,75,0.12), 0 4px 8px rgba(30,27,75,0.06);
  --radius: 10px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--indigo-600);text-decoration:none;}
a:hover{color:var(--indigo-700);text-decoration:underline;}

img{max-width:100%;display:block;}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px;}

/* ---------- Top utility bar ---------- */
.topbar{
  background:var(--indigo-900);
  color:#c7cdfd;
  font-size:13px;
}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:8px 24px;}
.topbar a{color:#e0e4ff;}
.topbar nav ul{display:flex;gap:18px;margin:0;padding:0;list-style:none;}

/* ---------- Header ---------- */
.site-header{
  border-bottom:1px solid var(--gray-200);
  background:var(--white);
  position:sticky;top:0;z-index:20;
}
.site-header .wrap{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 24px;
}
.site-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;color:var(--ink);}
.site-logo .mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:7px;
  background:linear-gradient(135deg,var(--indigo-600),var(--indigo-900));
  color:#fff;font-size:14px;font-weight:800;
}
.site-logo small{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--gray-500);text-transform:uppercase;}
.primary-nav ul{display:flex;gap:28px;margin:0;padding:0;list-style:none;font-weight:600;font-size:14.5px;}
.primary-nav a{color:var(--ink-soft);}
.primary-nav a:hover{color:var(--indigo-700);text-decoration:none;}
.header-cta{
  display:inline-block;background:var(--indigo-600);color:#fff;
  padding:9px 18px;border-radius:7px;font-weight:700;font-size:14px;
  box-shadow:var(--shadow-sm);
}
.header-cta:hover{background:var(--indigo-700);color:#fff;text-decoration:none;}

/* ---------- Ad containers ---------- */
.ad-container{
  display:flex;align-items:center;justify-content:center;
  background:var(--gray-100);
  border:1px dashed var(--gray-200);
  color:var(--gray-500);
  font-size:12px;letter-spacing:.04em;text-transform:uppercase;
  margin:28px auto;border-radius:8px;
}
#ad-leaderboard{max-width:970px;min-height:90px;}
#ad-inline{min-height:120px;margin:36px 0;}
#ad-sidebar{min-height:250px;}
.ad-container::before{content:"Advertisement";}

/* ---------- Hero / home ---------- */
.hero{
  background:linear-gradient(180deg,var(--indigo-50) 0%, var(--white) 100%);
  border-bottom:1px solid var(--gray-200);
  padding:48px 0 36px;
}
.hero h1{
  font-size:38px;line-height:1.15;margin:0 0 12px;color:var(--ink);
  letter-spacing:-0.01em;
}
.hero p.lede{font-size:18px;color:var(--ink-soft);max-width:640px;margin:0 0 4px;}
.hero-img{
  margin-top:28px;border-radius:14px;overflow:hidden;box-shadow:var(--shadow-lg);
  max-height:360px;
}
.hero-img img{width:100%;height:100%;object-fit:cover;}

/* ---------- Layout: main + sidebar ---------- */
.layout{display:grid;grid-template-columns:1fr 320px;gap:48px;max-width:var(--maxw);margin:0 auto;padding:40px 24px 60px;}
@media (max-width:860px){.layout{grid-template-columns:1fr;}}

/* ---------- Post cards (index listing) ---------- */
.post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
@media (max-width:700px){.post-grid{grid-template-columns:1fr;}}
.post-card{
  background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);transition:box-shadow .15s ease,transform .15s ease;
  display:flex;flex-direction:column;
}
.post-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);}
.post-card .thumb{height:170px;overflow:hidden;background:var(--gray-100);}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;}
.post-card .card-body{padding:18px 20px 22px;flex:1;display:flex;flex-direction:column;}
.post-card .kicker{
  font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--indigo-600);margin-bottom:8px;
}
.post-card h2{font-size:18.5px;line-height:1.35;margin:0 0 10px;}
.post-card h2 a{color:var(--ink);}
.post-card h2 a:hover{color:var(--indigo-600);text-decoration:none;}
.post-card .excerpt{color:var(--gray-500);font-size:14.5px;margin:0 0 14px;flex:1;}
.post-card .meta{font-size:12.5px;color:var(--gray-500);border-top:1px solid var(--gray-100);padding-top:12px;}

/* ---------- Article ---------- */
.blog-post{background:var(--white);}
.breadcrumbs{
  font-size:13px;color:var(--gray-500);padding:16px 24px 0;max-width:var(--maxw);margin:0 auto;
}
.breadcrumbs a{color:var(--gray-500);}
.breadcrumbs a:hover{color:var(--indigo-600);}

.post-header{max-width:800px;margin:0 auto;padding:28px 24px 0;}
.post-header .kicker{
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--indigo-600);
  margin-bottom:10px;display:inline-block;
}
.post-header h1{font-size:34px;line-height:1.22;margin:0 0 16px;letter-spacing:-0.01em;}
.byline{display:flex;align-items:center;gap:10px;color:var(--gray-500);font-size:14px;margin-bottom:24px;}
.byline img{width:38px;height:38px;border-radius:50%;object-fit:cover;}
.byline .by-name{color:var(--ink);font-weight:700;}
.byline .by-title{display:block;font-size:12.5px;color:var(--gray-500);font-weight:400;}

.post-hero-img{max-width:var(--maxw);margin:0 auto 8px;padding:0 24px;}
.post-hero-img figure{margin:0;border-radius:14px;overflow:hidden;box-shadow:var(--shadow-lg);}
.post-hero-img img{width:100%;max-height:460px;object-fit:cover;}
.post-hero-img figcaption{
  font-size:12.5px;color:var(--gray-500);text-align:right;margin-top:8px;padding-right:2px;
}

.post-body{max-width:800px;margin:0 auto;padding:32px 24px 0;}
.post-body h2{
  font-size:25px;margin:40px 0 14px;color:var(--ink);letter-spacing:-0.01em;
  padding-top:4px;
}
.post-body h3{font-size:19px;margin:28px 0 10px;color:var(--ink);}
.post-body p{color:var(--ink-soft);margin:0 0 18px;}
.post-body ul,.post-body ol{color:var(--ink-soft);margin:0 0 18px;padding-left:22px;}
.post-body li{margin-bottom:8px;}
.post-body figure{margin:28px 0;}
.post-body figure img{border-radius:10px;}
.post-body figcaption{font-size:13px;color:var(--gray-500);margin-top:8px;}
.post-body blockquote{
  margin:28px 0;padding:4px 0 4px 20px;border-left:3px solid var(--indigo-500);
  color:var(--ink-soft);font-style:italic;font-size:18px;
}
.post-body strong{color:var(--ink);}

/* Key takeaways box */
.key-takeaways{
  background:var(--indigo-50);border:1px solid var(--indigo-100);border-radius:var(--radius);
  padding:22px 24px 22px;margin:28px 0 34px;
}
.key-takeaways h3{
  margin:0 0 12px;font-size:15px;text-transform:uppercase;letter-spacing:.05em;
  color:var(--indigo-700);display:flex;align-items:center;gap:8px;
}
.key-takeaways h3::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;background:var(--indigo-600);color:#fff;font-size:12px;}
.key-takeaways ul{margin:0;padding-left:20px;color:var(--ink-soft);}
.key-takeaways li{margin-bottom:8px;font-size:15.5px;}
.key-takeaways li:last-child{margin-bottom:0;}

/* CTA / template download box */
.cta-box{
  background:linear-gradient(135deg,var(--indigo-700),var(--indigo-900));
  color:#fff;border-radius:var(--radius);padding:28px 30px;margin:32px 0;
  box-shadow:var(--shadow-md);
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.cta-box .cta-text h4{margin:0 0 6px;font-size:19px;}
.cta-box .cta-text p{margin:0;color:#c7cdfd;font-size:14.5px;max-width:420px;}
.cta-box .cta-download{
  display:inline-flex;align-items:center;gap:8px;background:#fff;color:var(--indigo-700);
  padding:11px 22px;border-radius:7px;font-weight:700;font-size:14.5px;white-space:nowrap;
}
.cta-box .cta-download:hover{background:var(--indigo-50);text-decoration:none;}

/* Vendor comparison table */
.table-scroll{overflow-x:auto;margin:24px 0 32px;border-radius:var(--radius);box-shadow:var(--shadow-sm);}
table.comparison{
  width:100%;border-collapse:collapse;background:#fff;font-size:14.5px;min-width:620px;
}
table.comparison caption{
  text-align:left;padding:14px 18px;font-weight:700;font-size:13px;color:var(--indigo-700);
  background:var(--indigo-50);text-transform:uppercase;letter-spacing:.04em;
}
table.comparison th,table.comparison td{
  padding:13px 18px;text-align:left;border-bottom:1px solid var(--gray-200);
}
table.comparison thead th{
  background:var(--ink);color:#fff;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.03em;
}
table.comparison tbody tr:nth-child(even){background:var(--gray-100);}
table.comparison tbody tr:hover{background:var(--indigo-50);}
table.comparison td.price{font-weight:700;color:var(--indigo-700);}
table.comparison td.na{color:var(--gray-500);}

/* Process diagram */
.process-diagram{
  background:var(--gray-100);border-radius:var(--radius);padding:20px;margin:28px 0;
  overflow-x:auto;
}
.process-diagram img{width:100%;min-width:620px;}
.process-diagram figcaption{text-align:center;color:var(--gray-500);font-size:13px;margin-top:10px;}

/* Author box, footer of article */
.author-box{
  display:flex;gap:16px;padding:26px;background:var(--gray-100);border-radius:var(--radius);margin:40px 0 0;
}
.author-box img{width:60px;height:60px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.author-box h4{margin:0 0 2px;font-size:16px;}
.author-box .author-title{font-size:13px;color:var(--indigo-600);font-weight:600;margin:0 0 8px;}
.author-box p.bio{margin:0;color:var(--gray-500);font-size:14px;}

.post-tags{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 0;}
.post-tags a{
  background:var(--indigo-50);color:var(--indigo-700);font-size:12.5px;font-weight:600;
  padding:5px 12px;border-radius:20px;
}
.post-tags a:hover{background:var(--indigo-100);text-decoration:none;}

/* Related resources */
.related-resources{max-width:800px;margin:48px auto 0;padding:0 24px 20px;}
.related-resources h2{font-size:20px;margin:0 0 18px;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
@media (max-width:700px){.related-grid{grid-template-columns:1fr;}}
.related-grid a{
  display:block;background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);
  padding:16px 18px;box-shadow:var(--shadow-sm);color:var(--ink);
}
.related-grid a:hover{box-shadow:var(--shadow-md);text-decoration:none;}
.related-grid .rel-kicker{display:block;font-size:11px;font-weight:700;color:var(--indigo-600);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;}
.related-grid .rel-title{font-size:14.5px;font-weight:700;line-height:1.35;}

/* ---------- Sidebar ---------- */
.sidebar{display:flex;flex-direction:column;gap:24px;}
.widget{
  background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);
  padding:22px;box-shadow:var(--shadow-sm);
}
.widget h3{margin:0 0 14px;font-size:14px;text-transform:uppercase;letter-spacing:.05em;color:var(--gray-500);}

/* Demo / sidebar product card */
.demo-card{
  background:linear-gradient(160deg,var(--indigo-600),var(--indigo-900));
  color:#fff;border-radius:var(--radius);padding:26px 22px;box-shadow:var(--shadow-md);
  text-align:left;
}
.demo-card .demo-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#c7cdfd;font-weight:700;}
.demo-card h3{color:#fff;font-size:19px;margin:8px 0 10px;text-transform:none;letter-spacing:normal;}
.demo-card p{color:#dfe2fd;font-size:14px;margin:0 0 18px;}
.demo-card .demo-btn{
  display:block;text-align:center;background:#fff;color:var(--indigo-700);font-weight:700;
  padding:11px 0;border-radius:7px;font-size:14.5px;
}
.demo-card .demo-btn:hover{background:var(--indigo-50);text-decoration:none;}
.demo-card .demo-alt{display:block;text-align:center;margin-top:10px;font-size:13px;color:#c7cdfd;}

.widget-popular ol{margin:0;padding-left:20px;font-size:14px;}
.widget-popular li{margin-bottom:10px;}
.widget-newsletter form{display:flex;flex-direction:column;gap:10px;}
.widget-newsletter input{
  padding:10px 12px;border:1px solid var(--gray-200);border-radius:6px;font-size:14px;font-family:var(--font);
}
.widget-newsletter button{
  background:var(--indigo-600);color:#fff;border:none;padding:10px 0;border-radius:6px;
  font-weight:700;font-size:14px;cursor:pointer;
}
.widget-newsletter button:hover{background:var(--indigo-700);}
.widget-newsletter .fine-print{font-size:11.5px;color:var(--gray-500);margin:0;}

/* ---------- About page ---------- */
.page-content{max-width:760px;margin:0 auto;padding:40px 24px 60px;}
.page-content h1{font-size:32px;margin:0 0 18px;}
.page-content h2{font-size:21px;margin:32px 0 12px;}
.page-content p{color:var(--ink-soft);margin:0 0 16px;}
.page-content figure{margin:24px 0;border-radius:12px;overflow:hidden;box-shadow:var(--shadow-md);}
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:24px 0;}
@media (max-width:700px){.team-grid{grid-template-columns:1fr;}}
.team-card{text-align:center;background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm);}
.team-card img{width:72px;height:72px;border-radius:50%;object-fit:cover;margin:0 auto 12px;}
.team-card h4{margin:0 0 4px;font-size:15px;}
.team-card .role{font-size:12.5px;color:var(--indigo-600);font-weight:600;}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--ink-900,#0f0d2e);background:var(--indigo-900);color:#c7cdfd;padding:48px 0 24px;margin-top:40px;
}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;max-width:var(--maxw);margin:0 auto;padding:0 24px 32px;}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr 1fr;}}
.footer-grid h5{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.05em;margin:0 0 14px;}
.footer-grid ul{list-style:none;margin:0;padding:0;}
.footer-grid li{margin-bottom:9px;font-size:14px;}
.footer-grid a{color:#c7cdfd;}
.footer-grid a:hover{color:#fff;}
.footer-brand{font-weight:800;font-size:19px;color:#fff;margin-bottom:10px;}
.footer-brand-desc{font-size:13.5px;color:#9ca3e8;max-width:280px;line-height:1.6;}
.footer-bottom{
  border-top:1px solid #312e81;max-width:var(--maxw);margin:0 auto;padding:20px 24px 0;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12.5px;color:#9ca3e8;
}
.footer-bottom a{color:#9ca3e8;}

/* ---------- Comparison legend / small helpers ---------- */
.lede-note{
  background:var(--gray-100);border-left:3px solid var(--indigo-500);padding:14px 18px;
  font-size:14.5px;color:var(--ink-soft);margin:0 0 24px;border-radius:0 6px 6px 0;
}
