/* sales-and-crm-agents.css
   New sections for sales-and-crm-agents.html.
   Hero (agh), FAQ (agf) and the .agh-btn / .agc-btn buttons come from agent.css.
   Prefixes: sci intro record · scp pipeline · scs lead score · scf flip cards · sct timeline · scx CTA */

.sc-page {
  --sc-orange: #E75C23;
  --sc-orange-dark: #C44A18;
  --sc-amber: #FFA213;
  --sc-pale: #FFF3EB;
  --sc-ink: #1A1A1A;
  --sc-ink-2: #2D2D2D;
  --sc-muted: #7A6F68;
  --sc-bg: #FFFFFF;
  --sc-bg-2: #F8F6F4;
  --sc-line: #E8E2DC;
  --sc-line-2: #D4CCC4;
  --sc-ok: #1F8A5B;
  --sc-warn: #B45309;
  --sc-radius: 14px;
  --sc-ease: cubic-bezier(.22, .8, .3, 1);
  --sc-dark: radial-gradient(at 8% 8%,#0a000f,transparent 42%),radial-gradient(at 88% 15%,rgba(72,0,88,.75),transparent 50%),radial-gradient(at 90% 82%,rgba(231,92,35,.5),transparent 48%),linear-gradient(148deg,#0d000f 0%,#1a0025 35%,#2a0830 60%,#12001a);
}

/* ───────── shared ───────── */
.sc-sec { padding: clamp(56px, 8vw, 104px) 0; background: var(--sc-bg); color: var(--sc-ink); }
.sc-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sc-head { margin: 0 0 40px; }
.sc-head-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.sc-eyebrow { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--sc-orange-dark); }
.sc-title { margin: 0 0 16px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; max-width: 22ch; }
.sc-lead { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--sc-ink-2); max-width: 60ch; }
.sc-page a:focus-visible, .sc-page button:focus-visible, .sc-page input:focus-visible { outline: 3px solid var(--sc-amber); outline-offset: 3px; }
@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,91,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31,138,91,0); } }

/* ───────── 2. intro + CRM record that fills itself ───────── */
.sci-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.sci-text { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.75; color: var(--sc-ink-2); max-width: 60ch; }
.sci-muted { color: var(--sc-muted); font-size: 1rem; margin: 0; }
.sci-record { position: relative; background: #fff; border: 1px solid var(--sc-line); border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(26,26,26,.45); overflow: hidden; }
.sci-record::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--sc-amber), var(--sc-orange)); }
.sci-rec-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--sc-line); }
.sci-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sc-pale); color: var(--sc-orange-dark); font-weight: 700; font-size: .9rem; }
.sci-rec-head b { display: block; font-size: 1rem; font-weight: 600; }
.sci-rec-head small { font-size: .82rem; color: var(--sc-muted); }
.sci-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: #F1FAF5; color: var(--sc-ok); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sci-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-ok); animation: sc-pulse 2s infinite; }
.sci-fields { margin: 0; padding: 8px 22px; }
.sci-fields div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; min-height: 46px; border-bottom: 1px dashed var(--sc-line); }
.sci-fields div:last-child { border-bottom: 0; }
.sci-fields dt { font-size: .82rem; color: var(--sc-muted); }
.sci-fields dd { position: relative; margin: 0; min-height: 22px; font-size: .95rem; font-weight: 600; }
.sci-fields dd:empty::before { content: ""; position: absolute; left: 0; top: 50%; width: 70%; height: 10px; margin-top: -5px; border-radius: 6px; background: linear-gradient(90deg, var(--sc-bg-2) 25%, #EEE8E2 50%, var(--sc-bg-2) 75%); background-size: 200% 100%; animation: sci-shimmer 1.4s linear infinite; }
@keyframes sci-shimmer { to { background-position: -200% 0; } }
.sci-fields dd.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--sc-orange); animation: sci-caret .7s steps(1) infinite; }
@keyframes sci-caret { 50% { opacity: 0; } }
.sci-fields dd.is-hot { display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--sc-pale); color: var(--sc-orange-dark); }
.sci-fields div.is-flash { animation: sci-flash .8s ease; }
@keyframes sci-flash { 0% { background: var(--sc-pale); } 100% { background: transparent; } }
.sci-rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: var(--sc-bg-2); border-top: 1px solid var(--sc-line); }
.sci-done { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--sc-ok); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.sci-done.is-on { opacity: 1; transform: none; }
.sci-replay, .scp-replay { padding: 6px 14px; border: 1px solid var(--sc-line); border-radius: 999px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--sc-ink-2); cursor: pointer; transition: background .2s; }
.sci-replay i, .scp-replay i { margin-right: 6px; color: var(--sc-orange); }
.sci-replay:hover, .scp-replay:hover { background: var(--sc-pale); }

/* ───────── 3. pipeline board ───────── */
.scp { background: var(--sc-bg-2); }
.scp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: stretch; }
.scp-board { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.scp-col { display: flex; flex-direction: column; min-height: 420px; padding: 14px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); }
.scp-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--sc-ink-2); }
.scp-col h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-line-2); }
.scp-col[data-c="1"] h3::before { background: #2F7BF0; }
.scp-col[data-c="2"] h3::before { background: var(--sc-amber); }
.scp-col[data-c="3"] h3::before { background: var(--sc-ok); }
.scp-col h3 b { margin-left: auto; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--sc-bg-2); font-size: .8rem; text-align: center; font-variant-numeric: tabular-nums; }
.scp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; flex: 1; }
.scp-card { position: relative; padding: 12px; background: #fff; border: 1px solid var(--sc-line); border-radius: 10px; box-shadow: 0 6px 16px -12px rgba(26,26,26,.4); will-change: transform; }
.scp-card b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.scp-card small { display: block; margin-top: 4px; font-size: .76rem; color: var(--sc-muted); }
.scp-card.is-moving { z-index: 5; border-color: var(--sc-orange); box-shadow: 0 16px 30px -14px rgba(231,92,35,.55); }
.scp-card.is-human { background: #FFFBEB; border-color: #F5DFA0; }
.scp-card.is-human::after { content: "Rep took over"; display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: #FEF3C7; color: var(--sc-warn); font-size: .72rem; font-weight: 600; }
.scp-card.is-merging { opacity: 0; transform: scale(.85); transition: opacity .5s, transform .5s; }
.scp-log { display: flex; flex-direction: column; background: var(--sc-dark); color: #fff; border-radius: var(--sc-radius); overflow: hidden; }
.scp-log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; font-weight: 600; }
.scp-log-head i.fa-bolt { color: var(--sc-amber); margin-right: 6px; }
.scp-log .scp-replay { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.scp-log .scp-replay:hover { background: rgba(255,255,255,.1); }
.scp-log ol { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 10px; align-content: start; flex: 1; max-height: 420px; overflow-y: auto; }
.scp-log li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: .86rem; line-height: 1.45; color: rgba(255,255,255,.9); animation: sc-in .35s var(--sc-ease) both; }
.scp-log li time { font-size: .75rem; font-weight: 600; color: var(--sc-amber); font-variant-numeric: tabular-nums; }
.scp-log li.is-human { background: rgba(255,162,19,.16); }
.scp-log li.is-final { background: rgba(31,138,91,.25); font-weight: 600; }

/* ───────── 4. lead score playground (dark) ───────── */
.scs { background: var(--sc-dark); color: #fff; }
.scs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.scs-eyebrow { color: var(--sc-amber); }
.scs-lead { color: rgba(255,255,255,.78); }
.scs-tiers { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.scs-tiers li { display: grid; grid-template-columns: 78px 130px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: rgba(255,255,255,.6); transition: background .3s, border-color .3s, color .3s, transform .3s; }
.scs-tiers span { font-size: .78rem; font-variant-numeric: tabular-nums; }
.scs-tiers b { font-size: .95rem; font-weight: 600; }
.scs-tiers small { font-size: .85rem; }
.scs-tiers li.is-on { background: rgba(231,92,35,.18); border-color: var(--sc-orange); color: #fff; transform: translateX(6px); }
.scs-panel { padding: clamp(22px, 3vw, 32px); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; backdrop-filter: blur(6px); }
.scs-gauge { position: relative; width: min(320px, 100%); margin: 0 auto; }
.scs-gauge svg { display: block; width: 100%; overflow: visible; }
.scs-track, .scs-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.scs-track { stroke: rgba(255,255,255,.12); }
.scs-fill { stroke: url(#scsGrad); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s var(--sc-ease); filter: drop-shadow(0 0 8px rgba(231,92,35,.5)); }
.scs-num { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.scs-num strong { display: block; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.scs-num small { font-size: .82rem; color: rgba(255,255,255,.6); }
.scs-decision { min-height: 3em; margin: 18px 0 22px; text-align: center; font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--sc-amber); }
.scs-sliders { display: grid; gap: 18px; }
.scs-sliders label { display: grid; gap: 8px; cursor: pointer; }
.scs-sliders label > span { display: flex; align-items: baseline; gap: 8px; font-size: .95rem; font-weight: 600; }
.scs-sliders em { font-style: normal; font-weight: 400; font-size: .8rem; color: rgba(255,255,255,.55); }
.scs-sliders output { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--sc-amber); }
.scs-sliders input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--sc-orange) var(--v, 50%), rgba(255,255,255,.15) var(--v, 50%)); cursor: pointer; }
.scs-sliders input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--sc-orange); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.scs-sliders input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sc-orange); }

/* ───────── 5. flip cards ───────── */
.scf-head { text-align: center; }
.scf-head .sc-title, .scf-head .sc-lead { margin-inline: auto; }
.scf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scf-card { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; perspective: 1100px; }
.scf-inner { position: relative; display: block; min-height: 250px; transform-style: preserve-3d; transition: transform .7s var(--sc-ease); }
.scf-card.is-flipped .scf-inner { transform: rotateY(180deg); }
@media (hover: hover) { .scf-card:hover .scf-inner { transform: rotateY(180deg); } }
.scf-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 24px; border-radius: var(--sc-radius); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.scf-front { background: #fff; border: 1px solid var(--sc-line); box-shadow: 0 12px 30px -24px rgba(26,26,26,.4); }
.scf-front::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--tint); opacity: .7; }
.scf-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--tint); color: var(--sc-ink); font-size: 1.05rem; }
.scf-front b { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.scf-desc { font-size: .92rem; line-height: 1.55; color: var(--sc-muted); }
.scf-hint { margin-top: auto; padding-top: 14px; font-size: .82rem; font-weight: 600; color: var(--sc-orange-dark); }
.scf-hint i { margin-left: 4px; }
.scf-back { transform: rotateY(180deg); justify-content: center; gap: 12px; background: var(--sc-dark); color: #fff; }
.scf-row { display: block; padding: 14px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: .95rem; font-weight: 500; line-height: 1.45; }
.scf-row small { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #7FE0B0; }
.scf-rep { background: rgba(255,162,19,.14); }
.scf-rep small { color: var(--sc-amber); }

/* ───────── 6. scroll timeline ───────── */
.sct { background: var(--sc-bg-2); }
.sct-head { text-align: center; }
.sct-head .sc-title { margin-inline: auto; }
.sct-line { position: relative; max-width: 900px; margin: 0 auto; }
.sct-rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--sc-line); }
.sct-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); border-radius: 3px; background: linear-gradient(var(--sc-amber), var(--sc-orange)); }
.sct-line ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.sct-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sct-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--sc-line-2); transition: border-color .3s, background .3s, box-shadow .3s; }
.sct-item time { justify-self: end; font-size: 1.6rem; font-weight: 700; color: var(--sc-line-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.sct-item > div { padding: 18px 20px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); opacity: .45; transform: translateX(16px); transition: opacity .45s, transform .45s var(--sc-ease), border-color .3s; }
.sct-item b { display: block; margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; }
.sct-item p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--sc-muted); }
.sct-item:nth-child(even) time { order: 2; justify-self: start; }
.sct-item:nth-child(even) > div { order: 1; transform: translateX(-16px); }
.sct-item.is-on::before { border-color: var(--sc-orange); background: var(--sc-orange); box-shadow: 0 0 0 6px rgba(231,92,35,.18); }
.sct-item.is-on time { color: var(--sc-orange); }
.sct-item.is-on > div { opacity: 1; transform: none; border-color: var(--sc-line-2); }
.sct-rep.is-on::before { border-color: var(--sc-warn); background: var(--sc-warn); box-shadow: 0 0 0 6px rgba(180,83,9,.18); }
.sct-rep.is-on time { color: var(--sc-warn); }
.sct-rep > div { background: #FFFBEB; }

/* ───────── 7. CTA ───────── */
.scx { padding: 40px; background: var(--sc-dark); color: #fff; }
.scx-wrap { width: min(820px, 100% - 40px); margin-inline: auto; text-align: center; }
.scx-eyebrow { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: var(--sc-amber); }
.scx-title { margin: 0 auto 16px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; max-width: 20ch; }
.scx-lead { margin: 0 auto 28px; font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 56ch; }
.scx-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 28px; }
.scx-btns .agc-btn { margin-top: 0; }
.scx-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.scx-checks li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.9); font-size: .95rem; text-align: left; }
.scx-checks a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sc-orange); }
.scx-i { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--sc-amber); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .scp-grid { grid-template-columns: 1fr; }
  .scp-log ol { max-height: 280px; }
}
@media (max-width: 960px) {
  .sci-grid, .scs-grid, .sc-head-row { grid-template-columns: 1fr; }
  .scf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sct-rail { left: 18px; }
  .sct-item, .sct-item:nth-child(even) { grid-template-columns: 1fr; gap: 6px; padding-left: 48px; }
  .sct-item::before { left: 18px; top: 12px; margin-top: 0; }
  .sct-item time, .sct-item:nth-child(even) time { order: 0; justify-self: start; font-size: 1.1rem; }
  .sct-item > div, .sct-item:nth-child(even) > div { order: 1; transform: translateY(10px); }
  .scs-tiers li { grid-template-columns: 70px 1fr; }
  .scs-tiers small { grid-column: 2; }
}
@media (max-width: 600px) {
  .scf-grid { grid-template-columns: 1fr; }
  .sci-fields div { grid-template-columns: 96px 1fr; }
  .sci-live { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-page *, .sc-page *::before, .sc-page *::after { animation: none !important; transition: none !important; }
  .sct-item > div { opacity: 1; transform: none; }
}