/* ============================================================
   WFAN — Signal White design system (V8 build-out)
   Shared across all preview pages in site-preview2.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper:      #fbfbfa;
  --surface:    #f3f4f2;
  --ink:        #101214;
  --grey:       #5d6470;
  --line:       #e4e5e3;
  --line-hi:    #d2d4d1;
  --signal:     #00a8c6;
  --signal2:    #007e95;
  --signal-mid: rgba(0,168,198,0.10);
  --B: 'Schibsted Grotesk', sans-serif;
  --M: 'IBM Plex Mono', monospace;
  --pad: 52px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--B);
  min-height: 100vh;
  overflow-x: hidden;
}

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

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes dashflow { to { stroke-dashoffset: -28; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--pad);
  background: rgba(251,251,250,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand {
  font-family: var(--B); font-size: 19px; font-weight: 800;
  letter-spacing: 0.04em; color: var(--ink); text-decoration: none;
}
.nav-brand i { font-style: normal; color: var(--signal); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--M); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--signal);
}
.nav-cta {
  font-family: var(--M); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 22px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-menu-btn {
  display: none; font-family: var(--M); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  background: none; border: none; padding: 10px 14px; margin-left: auto; cursor: pointer;
}

/* ─── SHARED LAYOUT PRIMITIVES ─── */
.page { position: relative; z-index: 1; padding-top: 64px; }

/* Offer bar (New FY Exclusive) */
.offer-bar {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 13px var(--pad); background: var(--signal-mid);
  border-bottom: 1px solid var(--line); text-decoration: none; flex-wrap: wrap;
  transition: background 0.2s;
}
.offer-bar:hover { background: rgba(0,168,198,0.16); }
.offer-bar .tag {
  font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper); background: var(--signal2);
  border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.offer-bar p { font-family: var(--M); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.offer-bar .offer-cta { font-family: var(--M); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal2); white-space: nowrap; }

.eyebrow-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); border-bottom: 1px solid var(--line);
  opacity: 0; animation: fadeIn 0.6s ease 0.15s forwards;
}
.eyebrow-text {
  font-family: var(--M); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
}
.eyebrow-accent {
  font-family: var(--M); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal2);
  display: flex; align-items: center; gap: 8px;
}
.eyebrow-accent::before { content: '●'; font-size: 8px; color: var(--signal); }

/* section scaffolding */
.section { border-bottom: 1px solid var(--line); }
.section-head { padding: 56px var(--pad) 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-kicker {
  font-family: var(--M); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal2);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--B); font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em; font-size: clamp(32px, 4.6vw, 58px);
}
.section-title em { font-style: normal; color: var(--signal2); }
.section-lead {
  font-family: var(--B); font-weight: 400; font-size: 15px; line-height: 1.7;
  color: var(--grey); max-width: 38ch;
}
.section-index {
  font-family: var(--M); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); white-space: nowrap;
}

/* big headline (page heroes) */
.headline {
  font-family: var(--B); font-weight: 800; line-height: 0.96;
  letter-spacing: -0.035em; color: var(--ink);
  font-size: clamp(54px, 8.2vw, 120px);
}
.headline .line { overflow: hidden; display: block; }
.headline .line-inner { display: block; transform: translateY(110%); animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.headline .line:nth-child(1) .line-inner { animation-delay: 0.3s; }
.headline .line:nth-child(2) .line-inner { animation-delay: 0.42s; }
.headline .line:nth-child(3) .line-inner { animation-delay: 0.54s; }
.headline .stop { color: var(--signal); }
.headline .accent-line { color: var(--signal2); }

.headline-block { padding: 48px var(--pad) 40px; border-bottom: 1px solid var(--line); position: relative; }

/* hero lede */
.lede {
  font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--grey); max-width: 44ch;
}
.lede strong { color: var(--ink); font-weight: 700; }

/* buttons */
.btn-fill, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--M); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; padding: 15px 28px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-fill { color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); }
.btn-fill:hover { background: var(--signal2); border-color: var(--signal2); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--line-hi); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal2); }
.btn-fill .arrow, .btn-ghost .arrow { font-size: 14px; }

/* stats */
.stat-val { font-family: var(--B); font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1; color: var(--signal2); letter-spacing: -0.03em; }
.stat-val .unit { font-size: 0.55em; font-weight: 700; }
.stat-desc { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-top: 10px; line-height: 1.5; }

/* bordered grid of cards */
.grid-3, .grid-4, .grid-2 { display: grid; border-top: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 40px var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background 0.3s;
}
.grid-3 .card:nth-child(3n), .grid-2 .card:nth-child(2n), .grid-4 .card:nth-child(4n) { border-right: none; }
.card:hover { background: var(--signal-mid); }
.card-num { font-family: var(--M); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal2); }
.card-title { font-family: var(--B); font-size: 23px; font-weight: 800; line-height: 1.15; margin: 18px 0 12px; letter-spacing: -0.02em; }
.card-body { font-family: var(--B); font-size: 14px; font-weight: 400; line-height: 1.7; color: var(--grey); }
.card-body strong { color: var(--ink); font-weight: 700; }
.card-meta {
  font-family: var(--M); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--signal2); margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.card ul { list-style: none; margin-top: 18px; }
.card ul li { font-family: var(--B); font-size: 13px; line-height: 1.5; color: var(--grey); padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.card ul li:first-child { border-top: none; }
.card ul li::before { content: '—'; position: absolute; left: 0; color: var(--signal); }

/* testimonial strip */
.testimonial-strip { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.testimonial-label {
  padding: 28px var(--pad); border-right: 1px solid var(--line);
  font-family: var(--M); font-size: 9px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey); display: flex; align-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.testimonial-content { padding: 36px var(--pad); flex: 1; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.testimonial-quote { font-family: var(--B); font-size: 21px; font-weight: 500; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; max-width: 640px; }
.testimonial-quote::before { content: '\201C'; color: var(--signal); }
.testimonial-quote::after { content: '\201D'; color: var(--signal); }
.testimonial-attribution { flex-shrink: 0; }
.testimonial-name { font-family: var(--B); font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; margin-bottom: 4px; }
.testimonial-role { font-family: var(--M); font-size: 10px; font-weight: 500; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; }

/* marquee strip (integrations / logos) */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--M); font-size: 13px; font-weight: 500; color: var(--grey); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* FAQ — CSS-only accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 28px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--B); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal2); }
.faq-item summary .plus { font-family: var(--M); font-size: 20px; font-weight: 400; color: var(--signal); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 var(--pad) 30px; font-family: var(--B); font-size: 15px; font-weight: 400; line-height: 1.75; color: var(--grey); max-width: 70ch; }

/* CTA band */
.cta-band { padding: 96px var(--pad); text-align: center; background: var(--ink); color: var(--paper); position: relative; z-index: 1; overflow: hidden; }
.cta-band .section-kicker { color: var(--signal); }
.cta-band h2 { font-family: var(--B); font-weight: 800; font-size: clamp(38px, 5.6vw, 78px); line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-band h2 em { font-style: normal; color: var(--signal); }
.cta-band p { font-family: var(--B); font-weight: 400; font-size: 16px; line-height: 1.7; color: rgba(251,251,250,0.65); max-width: 46ch; margin: 0 auto 36px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-fill { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 600; }
.cta-band .btn-fill:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.cta-band .btn-ghost { color: var(--paper); border-color: rgba(251,251,250,0.3); }
.cta-band .btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* ─── SITE FOOTER ─── */
.site-footer { position: relative; z-index: 1; background: var(--paper); border-top: 1px solid var(--line-hi); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-cell { padding: 48px var(--pad); border-right: 1px solid var(--line); }
.footer-cell:last-child { border-right: none; }
.footer-brand { font-family: var(--B); font-size: 26px; font-weight: 800; letter-spacing: 0.03em; margin-bottom: 16px; }
.footer-brand i { font-style: normal; color: var(--signal); }
.footer-blurb { font-family: var(--B); font-size: 14px; font-weight: 400; line-height: 1.7; color: var(--grey); max-width: 38ch; }
.footer-h { font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px; }
.footer-cell ul { list-style: none; }
.footer-cell ul li { margin-bottom: 12px; }
.footer-cell ul a { font-family: var(--B); font-size: 13px; color: var(--ink); opacity: 0.8; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
.footer-cell ul a:hover { color: var(--signal2); opacity: 1; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.footer-bottom span, .footer-bottom a { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); text-decoration: none; }
.footer-bottom a:hover { color: var(--signal2); }
.footer-legal { display: flex; gap: 28px; }

/* ─── NETWORK GRAPHIC (hero) ─── */
.net {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; pointer-events: none;
  opacity: 0; animation: fadeIn 1.4s ease 0.7s forwards;
}
.net line { stroke: var(--ink); stroke-opacity: 0.14; stroke-width: 1; }
.net line.hot { stroke: var(--signal); stroke-opacity: 0.55; stroke-dasharray: 6 8; animation: dashflow 2.6s linear infinite; }
.net circle { fill: var(--paper); stroke: var(--ink); stroke-opacity: 0.35; stroke-width: 1.2; }
.net circle.node-hot { stroke: var(--signal); stroke-opacity: 1; fill: var(--signal); animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.net circle.node-hot:nth-of-type(odd) { animation-delay: 1.1s; }

/* ─── FORMS ─── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label { font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea, .field select {
  font-family: var(--B); font-size: 15px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--line-hi);
  padding: 10px 0; transition: border-color 0.2s;
  width: 100%; min-width: 0; box-sizing: border-box;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(93,100,112,0.5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--signal); }
.field textarea { resize: vertical; min-height: 120px; }

/* utility */
.accent { color: var(--signal2); }
.mono { font-family: var(--M); }
.lead-xl { font-family: var(--B); font-weight: 700; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.lead-xl em { font-style: normal; color: var(--signal2); }
.reveal { opacity: 0; animation: fadeIn 0.7s ease forwards; }
.d1 { animation-delay: 0.2s; } .d2 { animation-delay: 0.35s; } .d3 { animation-delay: 0.5s; } .d4 { animation-delay: 0.65s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1060px) {
  .net { opacity: 0.3 !important; right: -180px; }
}
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cell:nth-child(2n) { border-right: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4 .card:nth-child(2n) { border-right: none; }
}
@media (max-width: 760px) {
  :root { --pad: 22px; }
  .nav-menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px var(--pad); font-size: 12px; }
  .nav-links a.active::after { display: none; }
  .net { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* inline-styled column layouts collapse too (stylesheet !important outranks inline styles) */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .card { border-right: none !important; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-index { display: none; }
  .testimonial-label { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cell { border-right: none; }
  .headline { font-size: clamp(42px, 12vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .headline .line-inner { transform: none; }
  .reveal, .eyebrow-bar, .net { opacity: 1; }
}

/* ============ PAGE-SPECIFIC (moved from inline <style> blocks for CSP) ============ */

/* --- about --- */
  .portrait { width: 100%; aspect-ratio: 4/5; background: linear-gradient(155deg, #eef0ef, var(--surface)); display: flex; align-items: flex-end; justify-content: center; position: relative; overflow: hidden; }
  .portrait .initials { font-family: var(--B); font-size: clamp(120px, 18vw, 240px); font-weight: 800; letter-spacing: -0.05em; color: var(--signal); opacity: 0.18; line-height: 0.8; margin-bottom: -12px; }
  .portrait .ptag { position: absolute; top: 20px; left: 20px; font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
  .timeline-row { display: grid; grid-template-columns: 180px 1fr; gap: 0; border-top: 1px solid var(--line); padding: 28px var(--pad); }
  .timeline-year { font-family: var(--M); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--signal2); padding-top: 4px; }
  .timeline-body h4 { font-family: var(--B); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
  .timeline-body p { font-family: var(--B); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--grey); max-width: 60ch; }
  @media (max-width:760px){ .timeline-row { grid-template-columns: 1fr; gap: 8px; } }

/* --- contact --- */
  .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 1px solid var(--line); }
  .contact-grid > * { min-width: 0; }
  .contact-form-cell { padding: 48px var(--pad); border-right: 1px solid var(--line); }
  .contact-info-cell { padding: 48px var(--pad); }
  .info-block { padding: 26px 0; border-top: 1px solid var(--line); }
  .info-block:first-of-type { border-top: none; padding-top: 0; }
  .info-label { font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
  .info-value { font-family: var(--B); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
  .info-value a { text-decoration: none; transition: color 0.2s; }
  .info-value a:hover { color: var(--signal2); }
  .info-sub { font-family: var(--B); font-size: 13px; font-weight: 400; color: var(--grey); margin-top: 6px; line-height: 1.6; }
  .form-note { font-family: var(--M); font-size: 11px; color: var(--grey); margin-top: 10px; }
  .toast { display: none; margin-top: 20px; padding: 16px 20px; background: var(--signal-mid); border-left: 3px solid var(--signal); font-family: var(--B); font-size: 14px; color: var(--signal2); }
  .toast.show { display: block; animation: fadeIn 0.4s ease; }
  @media (max-width:760px){ .contact-grid { grid-template-columns: 1fr; } .contact-form-cell { border-right: none; border-bottom: 1px solid var(--line); } }

/* --- method --- */
  .attack-strip {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 20px var(--pad); border-bottom: 1px solid var(--line);
    font-family: var(--M); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey);
  }
  .attack-strip b { color: var(--signal2); font-weight: 600; }
  .attack-strip .sep { color: var(--signal); }
  .phase-letter {
    font-family: var(--B); font-size: 56px; font-weight: 800; line-height: 1;
    letter-spacing: -0.04em; color: var(--signal); opacity: 0.85;
  }

/* --- privacy + terms --- */
  .legal { max-width: 900px; padding: 24px var(--pad) 96px; }
  .legal h2 { font-family: var(--B); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 44px 0 12px; }
  .legal h3 { font-family: var(--M); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal2); margin: 22px 0 8px; }
  .legal p { font-size: 15px; line-height: 1.75; color: var(--grey); margin-bottom: 12px; }
  .legal ul { margin: 8px 0 16px 20px; }
  .legal li { font-size: 14px; line-height: 1.7; color: var(--grey); margin-bottom: 6px; }
  .legal strong { color: var(--ink); }
  .legal-updated { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); padding: 20px var(--pad) 0; }

/* --- services --- */
  /* pricing-specific */
  .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .price-col { padding: 44px var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
  .price-col:last-child { border-right: none; }
  .price-col.featured { background: var(--surface); box-shadow: inset 0 3px 0 var(--signal); }
  .price-tag-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .price-name { font-family: var(--B); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
  .price-badge { font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); background: var(--signal2); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
  .price-amount { font-family: var(--B); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; color: var(--signal2); margin: 20px 0 4px; }
  .price-amount .from { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); display: block; margin-bottom: 6px; }
  .price-amount .unit { font-size: 20px; font-weight: 700; }
  .price-desc { font-family: var(--B); font-size: 13px; font-weight: 400; line-height: 1.65; color: var(--grey); margin: 14px 0 24px; }
  .price-features { list-style: none; margin-bottom: 32px; flex: 1; }
  .price-features li { font-family: var(--B); font-size: 13px; line-height: 1.5; color: var(--grey); padding: 11px 0 11px 24px; border-top: 1px solid var(--line); position: relative; }
  .price-features li::before { content: '→'; position: absolute; left: 0; color: var(--signal); }
  @media (max-width: 760px){ .price-grid { grid-template-columns: 1fr; } .price-col { border-right: none; } }

/* --- insights index --- */
  .post-card-date { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-top: 18px; }
  .post-card a.card-link { text-decoration: none; color: inherit; display: block; }

/* --- insights: automated-business-reporting-case-study --- */
  .post-wrap { max-width: 820px; padding: 8px var(--pad) 72px; }
  .post-meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 22px var(--pad) 0; font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
  .post-meta b { color: var(--signal2); font-weight: 600; }
  .post-lede { font-size: 19px; font-weight: 500; line-height: 1.6; color: var(--ink); letter-spacing: -0.01em; margin: 26px 0 8px; }
  .post-body h2 { font-family: var(--B); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; }
  .post-body h3 { font-family: var(--B); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 30px 0 10px; }
  .post-body p { font-size: 15.5px; line-height: 1.75; color: var(--grey); margin-bottom: 14px; }
  .post-body strong { color: var(--ink); }
  .post-body ul, .post-body ol { margin: 12px 0 18px 22px; }
  .post-body li { font-size: 15px; line-height: 1.7; color: var(--grey); margin-bottom: 8px; }
  .post-body a { color: var(--signal2); }
  .post-quote { border-left: 3px solid var(--signal); background: var(--signal-mid); padding: 20px 24px; margin: 28px 0; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--ink); }
  .post-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
  .post-stats { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; margin: 30px 0; }
  .post-diagram { border: 1px solid var(--line-hi); padding: 26px 28px 22px; margin: 30px 0; }
  .post-diagram-title { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px; }
  .pd-flow { display: flex; align-items: center; gap: 16px; }
  .pd-stack { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
  .pd-node { border: 1px solid var(--line-hi); padding: 12px 14px; }
  .pd-node b { display: block; font-family: var(--M); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
  .pd-node span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--grey); margin-top: 3px; }
  .pd-core { border-color: var(--signal); background: var(--signal-mid); }
  .pd-arrow { font-size: 20px; color: var(--signal2); flex: 0 0 auto; }
  .post-diagram-caption { font-family: var(--M); font-size: 10.5px; letter-spacing: 0.04em; color: var(--grey); margin-top: 18px; }
  @media (max-width: 640px) { .pd-flow { flex-direction: column; align-items: stretch; } .pd-arrow { transform: rotate(90deg); text-align: center; } }

/* ============ UTILITIES (moved from inline style="" attrs for CSP) ============
   Kept last in the file so they override earlier rules, matching the old
   inline-style precedence. */
.u-mt0 { margin-top: 0; }
.u-mt14 { margin-top: 14px; }
.u-mt18 { margin-top: 18px; }
.u-mt26 { margin-top: 26px; }
.u-mb24 { margin-bottom: 24px; }
.u-pt0 { padding-top: 0; }
.u-pl0 { padding-left: 0; }
.u-px0 { padding-left: 0; padding-right: 0; }
.u-pad-2844 { padding: 28px var(--pad) 44px; }
.u-bg-none { background: transparent; }
.u-bg-surface { background: var(--surface); }
.u-bb0 { border-bottom: none; }
.u-br0 { border-right: none; }
.u-bt0 { border-top: none; }
.u-bt-line { border-top: 1px solid var(--line); }
.u-bt-hi { border-top: 1px solid var(--line-hi); }
.u-fs20 { font-size: 20px; }
.u-max64 { max-width: 64ch; }
.u-mt24-fs15 { margin-top: 24px; font-size: 15px; }
.u-lede-sm { margin: 14px 0 32px; font-size: 15px; }
.u-fs16-mt14 { font-size: 16px; margin-top: 14px; }
.u-fs16-row { font-size: 16px; display: flex; gap: 20px; }
.u-display-lg { font-size: clamp(44px, 6vw, 88px); }
.u-display-md { font-size: clamp(34px, 4.6vw, 64px); max-width: 22ch; }
.u-grid-15-1 { display: grid; grid-template-columns: 1.5fr 1fr; }
.u-grid-14-1 { display: grid; grid-template-columns: 1.4fr 1fr; }
.u-grid-14-1-1 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.u-cell-col-g30 { border-right: none; border-bottom: none; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.u-cell-col-g14 { border-right: none; border-bottom: none; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.u-cell-row-c { border-right: none; border-bottom: none; display: flex; align-items: center; }
.u-cell-flex-p0 { border-right: none; border-bottom: none; padding: 0; display: flex; }
.u-fill-col-c { flex: 1; display: flex; flex-direction: column; justify-content: center; border-bottom: none; }
.u-viewport-col { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.u-cta-row-36 { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.u-cta-row-30 { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.u-btn-block { width: 100%; cursor: pointer; }
.u-z2 { position: relative; z-index: 2; }
.u-display-post { font-size: clamp(38px, 5.2vw, 72px); max-width: 20ch; }

/* --- scorecard --- */
  .sc-badge {
    display: block; text-decoration: none;
    border: 1px solid var(--line-hi); padding: 20px 22px;
    transition: border-color 0.2s, background 0.2s;
  }
  .sc-badge:hover { border-color: var(--signal); background: var(--signal-mid); }
  .sc-badge-tag { display: block; font-family: var(--M); font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal2); }
  .sc-badge-title { display: block; font-family: var(--B); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 8px 0 6px; }
  .sc-badge-sub { display: block; font-family: var(--B); font-size: 13px; line-height: 1.55; color: var(--grey); }
  .sc-badge-cta { display: inline-block; font-family: var(--M); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal2); margin-top: 12px; }
  .sc-hidden { display: none; }
  .sc-intro-grid { border-bottom: none; }
  .sc-intro-cell { padding: 56px var(--pad); border-right: 1px solid var(--line); }
  .sc-intro-side { padding: 56px var(--pad); display: flex; flex-direction: column; gap: 36px; justify-content: center; }
  .sc-side-item { border-top: 1px solid var(--line); padding-top: 20px; }
  .sc-side-item:first-child { border-top: none; padding-top: 0; }
  .sc-side-list { list-style: none; }
  .sc-side-list li { font-family: var(--B); font-size: 13px; line-height: 1.5; color: var(--grey); padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
  .sc-side-list li:first-child { border-top: none; padding-top: 0; }
  .sc-side-list li::before { content: '—'; position: absolute; left: 0; color: var(--signal); }
  .sc-progress-row { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad) 14px; }
  .sc-qcount { font-family: var(--M); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal2); }
  .sc-qdim { font-family: var(--M); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
  .sc-progress { height: 3px; background: var(--line); margin: 0 var(--pad); }
  .sc-progress-fill { height: 100%; width: 0; background: var(--signal); transition: width 0.35s cubic-bezier(0.16,1,0.3,1); }
  .sc-quiz-body { padding: 40px var(--pad) 64px; max-width: 860px; }
  .sc-question { font-family: var(--B); font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
  .sc-qsub { font-family: var(--B); font-size: 14px; line-height: 1.6; color: var(--grey); margin-top: 12px; max-width: 60ch; }
  .sc-options { margin-top: 32px; border-top: 1px solid var(--line); }
  .sc-option {
    display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
    background: transparent; border: none; border-bottom: 1px solid var(--line);
    padding: 18px 8px; cursor: pointer;
    font-family: var(--B); font-size: 16px; font-weight: 500; color: var(--ink);
    transition: background 0.15s, padding-left 0.15s;
  }
  .sc-option:hover { background: var(--signal-mid); padding-left: 16px; }
  .sc-option .sc-key {
    font-family: var(--M); font-size: 10px; font-weight: 600; color: var(--signal2);
    border: 1px solid var(--line-hi); border-radius: 999px;
    width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sc-option.selected { background: var(--signal-mid); }
  .sc-option.selected .sc-key { background: var(--signal2); border-color: var(--signal2); color: var(--paper); }
  .sc-back {
    margin-top: 28px; background: none; border: none; cursor: pointer;
    font-family: var(--M); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--grey); padding: 0; transition: color 0.2s;
  }
  .sc-back:hover { color: var(--signal2); }
  .sc-back[disabled] { visibility: hidden; }
  .sc-gate-form { margin-top: 36px; max-width: 480px; }
  .sc-optional { text-transform: none; letter-spacing: 0.04em; color: var(--grey); font-weight: 400; }
  .sc-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
  .sc-score-strip { display: grid; grid-template-columns: 1fr 1.4fr; }
  .sc-score-cell { padding: 64px var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
  .sc-score-val { font-family: var(--B); font-weight: 800; font-size: clamp(80px, 11vw, 160px); line-height: 0.95; letter-spacing: -0.04em; color: var(--signal2); }
  .sc-score-denom { font-size: 0.3em; font-weight: 700; color: var(--grey); letter-spacing: -0.01em; }
  .sc-band-cell { padding: 64px var(--pad); display: flex; flex-direction: column; justify-content: center; }
  .sc-band-title { font-family: var(--B); font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
  .sc-hours { font-family: var(--B); font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--ink); margin-top: 18px; padding: 16px 20px; background: var(--signal-mid); border-left: 3px solid var(--signal); max-width: 56ch; }
  .sc-email-note { font-family: var(--M); font-size: 10.5px; letter-spacing: 0.06em; color: var(--grey); margin-top: 18px; }
  @media (max-width: 900px) {
    .sc-intro-grid { grid-template-columns: 1fr !important; }
    .sc-intro-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .sc-score-strip { grid-template-columns: 1fr; }
    .sc-score-cell { border-right: none; border-bottom: 1px solid var(--line); padding: 44px var(--pad); }
    .sc-band-cell { padding: 44px var(--pad); }
  }

/* Vibe-Check badge — hidden until the badge image actually loads, so the
   footer shows nothing (not a broken icon) while the badge API is offline */
.footer-badge { display: none; line-height: 0; }
.footer-badge.loaded { display: block; }
.footer-badge img { display: block; height: 34px; width: auto; }

/* /ai-audit — partner referral badge (shown only when ?ref matches a known partner) */
.audit-ref { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audit-ref-logo { height: 46px; width: auto; border-radius: 8px; display: block; }
.audit-ref-text { font-family: var(--M); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.audit-ref-text strong { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
