/* ==========================================================================
   ServiceScout — feature / Sales Plays / performance / case-study pages
   Loads AFTER styles.css and only adds what those pages need. Buttons
   (.btn), eyebrows (.eyebrow), cards (.card), badges (.badge), stats
   (.stat-num/.stat-label), the hero shell (.hero/.doorframe-bg/.wrap) and
   all colour + type tokens come from styles.css. Every selector here is
   namespaced .fx- so the header, footer and existing pages are untouched.
   ========================================================================== */

/* ---- page frame ------------------------------------------------------- */
.fx-page { overflow-x: clip; }
.fx-page :focus-visible { outline: 2px solid var(--signal-teal); outline-offset: 3px; border-radius: 4px; }

/* ---- type -------------------------------------------------------------- */
.fx-h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; margin: 0 0 20px; }
.fx-h2 { font-size: clamp(26px, 3.1vw, 38px); line-height: 1.12; margin: 0 0 14px; }
.fx-h3 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; margin: 0 0 8px; }
.hero .fx-lead { margin: 0 0 30px; }
.fx-intro { font-size: clamp(17px, 1.3vw, 19px); color: var(--slate-700); max-width: 68ch; margin: 0; }
.dark .fx-intro { color: #B7C4D2; }
.fx-prose p { max-width: 70ch; }
.fx-prose ul, .fx-prose ol { padding-left: 22px; margin: 0 0 18px; max-width: 70ch; }
.fx-prose li { margin: 0 0 8px; }
.fx-prose strong { color: var(--scout-navy); font-weight: 600; }
.dark .fx-prose strong { color: #fff; }
.fx-muted { color: var(--slate-500); }
.fx-small { font-size: 14px; }
.fx-mono { font-family: var(--font-mono); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- hero -------------------------------------------------------------- */
.fx-hero-inner { position: relative; z-index: 1; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(56px, 7vw, 96px); }
.fx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fx-hero-grid > * { min-width: 0; }
.fx-hero-solo { max-width: 780px; }
@media (max-width: 900px) { .fx-hero-grid { grid-template-columns: 1fr; } }

/* breadcrumbs */
.fx-crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #8895A4; margin: 0 0 22px; }
.fx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.fx-crumbs li + li::before { content: "›"; margin-right: 10px; opacity: .6; }
.fx-crumbs a { color: #B7C4D2; }
.fx-crumbs a:hover { color: var(--signal-teal); text-decoration: none; }
.fx-crumbs [aria-current] { color: #fff; }

/* ---- the artifact: same look as the home-page brief mock ---------------- */
.fx-artifact {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--slate-900);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 500px;
  margin-left: auto;
  animation: fx-rise .6s ease both;
}
@media (max-width: 900px) { .fx-artifact { margin: 0 auto; max-width: 520px; } }
@media (max-width: 640px) { .fx-artifact { box-shadow: 0 20px 40px -10px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05); padding: 20px; } }
.fx-art-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--slate-200); margin-bottom: 14px; }
.fx-art-head h5 { font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 6px; font-weight: 600; }
.fx-art-head strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--scout-navy); letter-spacing: -0.01em; }
.fx-art-sub { font-size: 12px; color: var(--slate-500); margin-top: 3px; }
.fx-art-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-teal); background: var(--scout-navy); padding: 6px 10px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.fx-art-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fx-art-chips .badge { font-size: 10px; padding: 5px 10px; }
.fx-art-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--slate-200); }
.fx-art-row:last-child { border-bottom: 0; }
.fx-art-key { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #0B8B7C; padding-top: 3px; }
.fx-art-orange .fx-art-key { color: #B85A1F; }
.fx-art-val { color: var(--slate-700); overflow-wrap: anywhere; }
.fx-art-val strong { color: var(--scout-navy); }
.fx-art-val ol { margin: 0; padding-left: 18px; }
.fx-art-val li { margin: 0 0 3px; }
.fx-art-val code { font-family: var(--font-mono); font-size: 12px; background: var(--slate-100); padding: 1px 5px; border-radius: 4px; }
.fx-art-foot { font-family: var(--font-mono); font-size: 10.5px; color: var(--slate-500); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--slate-200); letter-spacing: .02em; }
@media (max-width: 480px) { .fx-art-row { grid-template-columns: 1fr; gap: 3px; } }

/* sent / opened / listened stamps */
.fx-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; background: var(--scout-navy); border-radius: 12px; padding: 10px 12px; }
.fx-stamp { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.fx-stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-teal); box-shadow: 0 0 10px var(--signal-teal); }
.fx-stamp.off { color: rgba(255,255,255,.5); }
.fx-stamp.off::before { background: rgba(255,255,255,.25); box-shadow: none; }

/* ---- sections ------------------------------------------------------------ */
.fx-section { padding: clamp(60px, 8vw, 104px) 0; }
.fx-section-tint { background: var(--slate-100); }
.fx-section-navy { position: relative; }
.fx-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.fx-head .eyebrow { margin-bottom: 14px; }
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.fx-split > * { min-width: 0; }
@media (max-width: 860px) { .fx-split { grid-template-columns: 1fr; } }

/* ---- grids & cards (extends .card from styles.css) ---------------------- */
.fx-grid { display: grid; gap: 20px; }
.fx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .fx-grid-4, .fx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fx-grid-2, .fx-grid-3, .fx-grid-4 { grid-template-columns: 1fr; } }
.fx-card { min-width: 0; transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
.fx-card p { margin: 0; color: var(--slate-700); font-size: 15.5px; }
.fx-card p + p { margin-top: 10px; }
.fx-card-label { margin: 0 0 10px; display: block; }
a.fx-card { color: inherit; display: block; }
a.fx-card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(22,214,195,.7); box-shadow: 0 16px 34px -22px rgba(7,27,44,.35); }
a.fx-card .fx-card-go { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #0B8B7C; margin-top: 14px; display: inline-block; font-weight: 600; }
.dark .fx-card p { color: #B7C4D2; }
.dark a.fx-card .fx-card-go { color: var(--signal-teal); }

/* definition rows: WHAT / WHEN / WHERE ... */
.fx-rows { border-top: 1px solid var(--slate-200); margin: 0; }
.fx-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 28px; padding: 18px 0; border-bottom: 1px solid var(--slate-200); }
.fx-row dt { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--scout-navy); margin: 0; }
.fx-row dt small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); margin-top: 4px; }
.fx-row dd { margin: 0; color: var(--slate-700); font-size: 16px; }
@media (max-width: 640px) { .fx-row { grid-template-columns: 1fr; gap: 6px; } }

/* numbered sequence (only where order is real) */
.fx-steps { list-style: none; margin: 0; padding: 0; counter-reset: fxstep; display: grid; gap: 14px; }
.fx-steps li { counter-increment: fxstep; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 18px 20px; }
.fx-steps li::before { content: counter(fxstep, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--scout-navy); background: var(--slate-100); border-radius: 10px; width: 52px; height: 52px; display: grid; place-items: center; }
.fx-steps h4 { font-size: 17px; margin: 4px 0 6px; }
.fx-steps p { margin: 0; color: var(--slate-700); font-size: 15.5px; }
.dark .fx-steps li { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.dark .fx-steps li::before { background: rgba(22,214,195,.12); color: var(--signal-teal); }
.dark .fx-steps p { color: #B7C4D2; }

/* ---- callouts: same vocabulary as the Operating & User Manual ----------- */
.fx-callout { border-left: 4px solid var(--signal-teal); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 26px 0; max-width: 760px; box-shadow: 0 1px 0 var(--slate-200), 0 10px 24px -20px rgba(7,27,44,.25); }
.fx-callout-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #0B8B7C; display: flex; gap: 10px; align-items: center; margin: 0 0 6px; font-weight: 600; }
.fx-callout-k span { color: var(--slate-500); letter-spacing: .06em; text-transform: none; font-size: 12px; font-weight: 500; }
.fx-callout p { margin: 0; color: var(--slate-700); font-size: 15.5px; }
.fx-callout p + p { margin-top: 8px; }
.fx-callout-watch { border-color: var(--advantage-orange); } .fx-callout-watch .fx-callout-k { color: #B85A1F; }
.fx-callout-rule { border-color: var(--scout-navy); } .fx-callout-rule .fx-callout-k { color: var(--scout-navy); }
.fx-callout-say { border-color: var(--trust-blue); } .fx-callout-say .fx-callout-k { color: var(--trust-blue); }
.fx-callout-say p { font-style: italic; color: var(--slate-900); }
.fx-callout-example { border-color: var(--slate-700); } .fx-callout-example .fx-callout-k { color: var(--slate-700); }
.fx-callout-where { border-color: #0B8B7C; background: var(--slate-50); }
.dark .fx-callout { background: rgba(255,255,255,.05); box-shadow: none; }
.dark .fx-callout p { color: #DCE5EE; }
.dark .fx-callout-rule .fx-callout-k { color: var(--signal-teal); }

/* ---- who it's for -------------------------------------------------------- */
.fx-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .fx-roles { grid-template-columns: 1fr; } }
.fx-role { border-top: 3px solid var(--signal-teal); background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 18px 20px 20px; border-left: 1px solid var(--slate-200); border-right: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.fx-role:nth-child(2) { border-top-color: var(--trust-blue); }
.fx-role:nth-child(3) { border-top-color: var(--advantage-orange); }
.fx-role .fx-card-label { margin-bottom: 6px; }
.fx-role h4 { font-size: 17px; margin: 0 0 8px; }
.fx-role p { margin: 0; font-size: 15px; color: var(--slate-700); }

/* ---- tables (wrapper reuses .table-scroll from styles.css) --------------- */
.fx-table-wrap { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: #fff; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.fx-table th { text-align: left; font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); padding: 12px 14px; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); }
.fx-table td { padding: 12px 14px; border-bottom: 1px solid var(--slate-200); color: var(--slate-700); vertical-align: top; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table td:first-child { font-weight: 600; color: var(--scout-navy); }
.fx-table .fx-num { font-family: var(--font-mono); white-space: nowrap; }
.fx-table .fx-good { color: #0B8B7C; font-weight: 600; }
.fx-table .fx-bad { color: #B85A1F; font-weight: 600; }
.fx-table .fx-dim { color: var(--slate-500); }
.dark .fx-table-wrap { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.dark .fx-table th { background: rgba(255,255,255,.04); color: rgba(183,196,210,.8); border-color: rgba(255,255,255,.1); }
.dark .fx-table td { color: #DCE5EE; border-color: rgba(255,255,255,.08); }
.dark .fx-table td:first-child { color: #fff; }
.dark .fx-table .fx-good { color: var(--signal-teal); }
.dark .fx-table .fx-bad { color: var(--advantage-orange); }

/* ---- stat strip (numbers use .stat-num / .stat-label from styles.css) --- */
.fx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.fx-stat { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 20px 22px; }
.fx-stat .stat-num { font-size: clamp(30px, 3.2vw, 44px); }
.fx-stat .stat-label { margin-top: 8px; }
.dark .fx-stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }

/* ---- FAQ ----------------------------------------------------------------- */
.fx-faq { max-width: 820px; }
.fx-faq details { border-top: 1px solid var(--slate-200); padding: 6px 0; }
.fx-faq details:last-child { border-bottom: 1px solid var(--slate-200); }
.fx-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--scout-navy); }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: #0B8B7C; flex: 0 0 auto; transition: transform .18s ease; }
.fx-faq details[open] summary::after { transform: rotate(45deg); }
.fx-faq details p { margin: 0 0 16px; color: var(--slate-700); font-size: 16px; max-width: 70ch; }

/* ---- related ------------------------------------------------------------- */
.fx-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fx-related a { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 18px 20px; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.fx-related a:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(22,214,195,.7); }
.fx-related b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--scout-navy); margin-bottom: 4px; }
.fx-related span { font-size: 14px; color: var(--slate-700); }

/* ---- CTA band (uses .dark + .doorframe-bg from styles.css) --------------- */
.fx-cta { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 104px) 0; }
.fx-cta .wrap { position: relative; z-index: 1; }
.fx-cta .fx-h2 { max-width: 640px; }
.fx-cta p { max-width: 60ch; margin: 0 0 28px; font-size: 17px; }
.fx-cta .footer-tag { margin-top: 26px; color: var(--advantage-orange); }

/* ---- calculator ---------------------------------------------------------- */
.fx-calc { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.fx-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 800px) { .fx-calc-grid { grid-template-columns: 1fr; } }
.fx-field { display: block; margin-bottom: 16px; }
.fx-field span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 6px; }
.fx-field input { width: 100%; font: 500 18px var(--font-body); color: var(--scout-navy); padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: #fff; }
.fx-field input:focus { border-color: var(--signal-teal); outline: none; box-shadow: 0 0 0 3px rgba(22,214,195,.18); }
.fx-field input[type=range] { padding: 0; background: transparent; border: 0; accent-color: #0B8B7C; }
.fx-calc-out { background: var(--scout-navy); color: #fff; border-radius: var(--radius-sm); padding: 22px 24px; }
.fx-calc-out .label { color: var(--signal-teal); }
.fx-calc-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; color: var(--advantage-orange); margin: 4px 0; }
.fx-calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: #DCE5EE; }
.fx-calc-line b { font-family: var(--font-mono); font-weight: 500; color: #fff; white-space: nowrap; }
.fx-calc-note { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 12px; }

/* ---- Sales Plays index cards --------------------------------------------- */
.fx-play-card .fx-card-label { color: #0B8B7C; }

/* ---- case study ---------------------------------------------------------- */
.fx-placeholder { background: repeating-linear-gradient(-45deg, #FFF4EA 0 10px, #FFEAD6 10px 20px); border: 1.5px dashed var(--advantage-orange); color: #8A3F05; border-radius: 8px; padding: 2px 8px; font-family: var(--font-mono); font-size: .92em; }
.fx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fx-fact { border: 1px solid var(--slate-200); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; }
.fx-fact span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 4px; }
.fx-fact b { font-family: var(--font-display); font-size: 16px; color: var(--scout-navy); }

/* ---- misc ---------------------------------------------------------------- */
.fx-pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fx-pill-list li { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-700); }
.fx-pill-list li a { color: inherit; }
.dark .fx-pill-list li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); color: #DCE5EE; }

@keyframes fx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fx-artifact { animation: none; }
  a.fx-card, .fx-related a { transition: none; }
}
