/*
 * Shared styling for the long-form pages: the case studies and the
 * definitional guides.
 *
 * The older article pages (sales-director, the six blog posts) inline these
 * same rules in a <style> block. That was fine for a handful of pages, but the
 * site now has enough of them that duplicating ~6KB of identical CSS into every
 * file costs more than one cached request. /assets/* already carries a long
 * edge TTL in netlify.toml, so this is fetched once and reused site-wide.
 *
 * Visual output is deliberately identical to the inlined version, so a reader
 * cannot tell which generation of page they are on.
 */
:root{--black:#0A0A0A;--teal:#2563EB;--orange:#FF4500;--grey:#F4F4F4;--grey-mid:#777}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans',-apple-system,sans-serif;background:var(--grey);color:var(--black);line-height:1.7;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:0.03em;line-height:1.05}

.header{background:var(--black);padding:48px 40px;color:white}
.header-inner{max-width:720px;margin:0 auto}
.eyebrow{font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--teal);font-weight:500;margin-bottom:12px}
.header h1{font-size:clamp(36px,5vw,60px);color:white;margin-bottom:16px}
.header h1 em{color:var(--teal);font-style:normal}
.header p{font-size:16px;color:#aaa;max-width:580px;line-height:1.6}
.meta{font-size:12px;letter-spacing:0.08em;text-transform:uppercase;color:#666;margin-top:20px}

.body{max-width:720px;margin:0 auto;padding:48px 40px}
.intro{background:white;padding:32px;margin-bottom:32px;border-left:3px solid var(--teal)}
.intro p{font-size:16px;color:#444;line-height:1.7;margin-bottom:12px}
.intro p:last-child{margin-bottom:0}

.section{background:white;padding:40px;margin-bottom:24px}
.section-num{font-family:'Barlow Condensed',sans-serif;font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--teal);font-weight:500;margin-bottom:10px}
.section h2{font-size:32px;margin-bottom:20px}
.section h3{font-size:22px;margin:26px 0 12px}
.section h4{font-family:'Barlow Condensed',sans-serif;font-size:20px;text-transform:uppercase;letter-spacing:0.03em;margin:24px 0 10px}
.section p{font-size:15px;color:#444;line-height:1.7;margin-bottom:14px}
.section p:last-child{margin-bottom:0}
.section ul,.section ol{padding-left:18px;margin-bottom:16px}
.section li{font-size:15px;color:#444;line-height:1.6;margin-bottom:8px}

.callout{background:var(--grey);padding:20px 24px;margin:20px 0;border-left:3px solid var(--teal)}
.callout p{font-size:15px;color:#444;font-style:italic;line-height:1.6;margin:0}
.warning{background:#fff8f0;border-left:3px solid var(--orange);padding:20px 24px;margin:20px 0}
.warning p{font-size:15px;color:#555;line-height:1.6;margin:0}
.warning strong{color:var(--orange)}

.result{background:var(--black);color:white;padding:24px;margin:20px 0;text-align:center}
.result strong{display:block;font-family:'Barlow Condensed',sans-serif;font-size:44px;color:var(--teal);line-height:1;margin-bottom:6px}
.result span{font-size:14px;color:#aaa;letter-spacing:0.05em;text-transform:uppercase}

/* Answer-first summary block. Front-loads the direct answer to the page's
   question, which is the part an answer engine is most likely to quote. */
.answer{background:var(--black);color:white;padding:28px 32px;margin-bottom:32px;border-left:3px solid var(--teal)}
.answer p.answer-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--teal);font-weight:500;margin-bottom:10px}
.answer p{font-size:16px;color:#ddd;line-height:1.7;margin-bottom:12px}
.answer p:last-child{margin-bottom:0}
.answer strong{color:white}

.comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.comp-col{padding:24px;background:var(--grey)}
.comp-col.highlight{background:var(--black);color:white}
.comp-col h3{font-size:18px;margin:0 0 14px}
.comp-col.highlight h3{color:var(--teal)}
.comp-col ul{padding-left:18px;margin:0}
.comp-col li{font-size:14px;line-height:1.6;margin-bottom:6px;color:#444}
.comp-col.highlight li{color:#aaa}

.signal{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #eee;align-items:flex-start}
.signal:last-child{border-bottom:none}
.signal-icon{width:28px;height:28px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;font-weight:700;color:var(--black);margin-top:2px;font-family:'Barlow Condensed',sans-serif}
.signal-text h3{font-size:16px;font-family:'DM Sans',sans-serif;text-transform:none;letter-spacing:0;font-weight:500;margin:0 0 4px}
.signal-text p{font-size:14px;color:#666;line-height:1.6;margin:0}

/* Comparison tables. Kept as real tables so the relationships survive being
   stripped to plain text by an extraction pipeline. */
.ctable{width:100%;border-collapse:collapse;margin:24px 0;font-size:14px}
.ctable caption{text-align:left;font-size:12px;letter-spacing:0.08em;text-transform:uppercase;color:var(--grey-mid);padding-bottom:10px}
.ctable th,.ctable td{text-align:left;padding:12px 14px;border-bottom:1px solid #eee;vertical-align:top;line-height:1.55}
.ctable thead th{font-family:'Barlow Condensed',sans-serif;font-size:14px;text-transform:uppercase;letter-spacing:0.06em;background:var(--grey);color:var(--black);border-bottom:2px solid #e0e0e0}
.ctable tbody th{font-weight:500;color:var(--black);width:26%}
.ctable td{color:#444}
.ctable .hl{background:#F5F8FF}

.faq-item{padding:18px 0;border-bottom:1px solid #eee}
.faq-item:last-child{border-bottom:none;padding-bottom:0}
.faq-item h3{font-size:17px;font-family:'DM Sans',sans-serif;text-transform:none;letter-spacing:0;font-weight:500;margin:0 0 8px}
.faq-item p{font-size:15px;color:#666;line-height:1.6;margin:0 0 10px}
.faq-item p:last-child{margin-bottom:0}

/* Case study index cards */
.cs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;margin-bottom:24px}
.cs-card{background:white;padding:28px;display:flex;flex-direction:column}
.cs-card .cs-sector{font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--teal);font-weight:500;margin-bottom:8px}
.cs-card h2{font-size:24px;margin-bottom:12px}
.cs-card h2 a{color:var(--black);text-decoration:none}
.cs-card h2 a:hover{color:var(--teal)}
.cs-card .cs-key{font-size:15px;color:#444;line-height:1.6;margin-bottom:16px;flex:1}
.cs-card .cs-more{font-size:13px;letter-spacing:0.06em;text-transform:uppercase;color:var(--teal);text-decoration:none;font-weight:500}
.cs-divider{border-top:1px solid #e0e0e0;padding-top:28px;margin-bottom:20px}
.cs-divider p{font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--grey-mid);font-weight:500;margin:0}

.quote{background:var(--black);color:white;padding:32px;margin:24px 0}
.quote p{font-size:18px;line-height:1.6;font-style:italic;color:white;margin-bottom:14px}
.quote cite{font-size:13px;letter-spacing:0.06em;text-transform:uppercase;color:var(--teal);font-style:normal}

.related{max-width:720px;margin:0 auto;padding:0 40px 8px}
.related h2{font-size:22px;margin-bottom:16px}
.related ul{list-style:none;padding:0}
.related li{border-top:1px solid #e0e0e0;padding:14px 0}
.related li:last-child{border-bottom:1px solid #e0e0e0}
.related .r-tag{display:block;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--teal);margin-bottom:4px}
.related a{color:var(--black);text-decoration:none;font-size:16px;line-height:1.4;font-weight:500}
.related a:hover{color:var(--teal)}

.cta-section{background:var(--teal);padding:48px 40px;text-align:center}
.cta-section h2{font-size:36px;margin-bottom:12px}
.cta-section p{font-size:16px;margin-bottom:24px;max-width:480px;margin-left:auto;margin-right:auto}
.btn{display:inline-block;background:var(--black);color:white;padding:14px 32px;font-weight:500;font-size:14px;letter-spacing:0.05em;text-transform:uppercase;border-radius:2px;cursor:pointer;text-decoration:none}
.cta-note{font-size:13px;margin-top:16px;margin-bottom:0;color:rgba(255,255,255,0.85)}

.back-link{max-width:720px;margin:0 auto;padding:0 40px 40px}
.back-link a{font-size:14px;color:var(--grey-mid);text-decoration:none;letter-spacing:0.05em;text-transform:uppercase}
.back-link a:hover{color:var(--teal)}
.attribution{text-align:center;padding:24px;font-size:13px;color:var(--grey-mid)}
.attribution a{color:var(--teal)}

@media(max-width:820px){.cs-wide{max-width:720px}}
@media(max-width:600px){
  .body,.header,.cta-section,.back-link,.related{padding-left:20px;padding-right:20px}
  .body,.header,.cta-section{padding-top:32px;padding-bottom:32px}
  .section{padding:28px 24px}
  .comparison{grid-template-columns:1fr}
  .ctable{font-size:13px}
  .ctable th,.ctable td{padding:10px}
}
