/* ============================================================
   CheckThenSend Homepage - Redactable-inspired conversion v4
   Keeps CheckThenSend branding/content while closely matching
   the reference site's layout rhythm, spacing and palette.
   ============================================================ */

body.cts-redactable-v4{
  --r4-purple:#3b1fae;
  --r4-purple-deep:#2c168f;
  --r4-purple-mid:#624bf4;
  --r4-blue:#6572f5;
  --r4-mint:#11d6a4;
  --r4-ink:#0d1530;
  --r4-copy:#5f6c86;
  --r4-line:#e3e8f1;
  --r4-soft:#f7f9fc;
  --r4-navy:#0a1222;
  background:#fff;
  color:var(--r4-ink);
}

body.cts-redactable-v4 .v49-wrap{width:min(1180px,calc(100% - 36px));margin-inline:auto}
body.cts-redactable-v4 .v49-brand-logo{width:32px;height:32px;object-fit:contain;display:block;flex:0 0 32px}
body.cts-redactable-v4 h1,body.cts-redactable-v4 h2,body.cts-redactable-v4 h3{letter-spacing:-.035em}

/* NAV - floating white bar over purple hero */
body.cts-redactable-v4 .v49-nav-shell{
  position:absolute!important;top:0;left:0;right:0;z-index:80!important;
  padding:0!important;background:transparent!important;
}
body.cts-redactable-v4 .v49-nav{
  width:min(1080px,calc(100% - 28px))!important;
  min-height:62px!important;margin:0 auto!important;padding:0 18px!important;
  border:1px solid rgba(225,229,238,.95)!important;border-top:0!important;
  border-radius:0 0 14px 14px!important;background:#fff!important;
  box-shadow:0 12px 32px rgba(24,27,60,.13)!important;
}
body.cts-redactable-v4 .v49-brand{gap:9px!important;color:#15203a!important;font-weight:900!important}
body.cts-redactable-v4 .v49-navlinks{gap:27px!important}
body.cts-redactable-v4 .v49-navlinks a,body.cts-redactable-v4 .v49-login{
  color:#1c2444!important;font-size:12px!important;font-weight:750!important
}
body.cts-redactable-v4 .v49-nav .v49-btn{padding:10px 15px!important;border-radius:7px!important;font-size:12px!important;font-weight:800!important}
body.cts-redactable-v4 .v49-nav .v49-btn-soft{background:#6972ef!important;border-color:#6972ef!important;color:#fff!important}
body.cts-redactable-v4 .v49-nav .v49-btn-green{background:#08d8a4!important;border-color:#08d8a4!important;color:#052b29!important;box-shadow:none!important}

/* HERO - reference-like deep purple */
body.cts-redactable-v4 .v49-hero{
  position:relative!important;overflow:hidden!important;
  padding-top:62px!important;color:#fff!important;
  background:
    radial-gradient(circle at 79% 36%,rgba(124,108,255,.32),transparent 27%),
    radial-gradient(circle at 56% 22%,rgba(28,221,176,.10),transparent 20%),
    linear-gradient(135deg,#4424bd 0%,#351b9e 58%,#3c20a9 100%)!important;
}
body.cts-redactable-v4 .v49-hero:before{
  content:"";position:absolute;left:-85px;bottom:70px;width:190px;height:72px;border-radius:0 36px 36px 0;
  background:rgba(139,129,255,.70);pointer-events:none
}
body.cts-redactable-v4 .v49-hero:after{
  content:"";position:absolute;right:-75px;bottom:118px;width:180px;height:72px;border-radius:36px 0 0 36px;
  background:rgba(110,100,244,.72);pointer-events:none
}
body.cts-redactable-v4 .v49-hero-grid{
  position:relative;z-index:2;grid-template-columns:minmax(0,.8fr) minmax(500px,1.2fr)!important;
  gap:56px!important;align-items:center!important;padding:74px 0 56px!important;
}
body.cts-redactable-v4 .v49-hero-copy{max-width:510px!important}
.cts-r4-compliance{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;padding:8px 10px;
  border:1px solid rgba(255,255,255,.16);border-radius:6px;background:rgba(8,20,84,.42);
  color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em
}
.cts-r4-compliance span{color:#14e1b0}
body.cts-redactable-v4 .v49-hero h1{
  margin:0!important;color:#fff!important;font-size:clamp(46px,4.5vw,66px)!important;
  line-height:.99!important;font-weight:900!important;letter-spacing:-.055em!important
}
body.cts-redactable-v4 .v49-hero h1 span{color:#14ddaa!important}
body.cts-redactable-v4 .v49-hero-copy>p{
  max-width:485px!important;margin:24px 0 0!important;color:#eeeaff!important;
  font-size:16px!important;line-height:1.65!important
}
body.cts-redactable-v4 .v49-hero-actions{display:flex!important;gap:12px!important;margin-top:30px!important}
body.cts-redactable-v4 .v49-hero .v49-btn-lg{
  min-height:48px!important;padding:0 22px!important;border-radius:6px!important;font-size:13px!important;font-weight:850!important
}
body.cts-redactable-v4 .v49-hero .v49-btn-green,
body.cts-redactable-v4 .v49-hero .v49-btn-purple:first-child{
  background:#0ad8a4!important;border-color:#0ad8a4!important;color:#06332f!important;box-shadow:none!important
}
body.cts-redactable-v4 .v49-hero .v49-btn-soft,
body.cts-redactable-v4 .v49-hero .v49-btn-purple:not(:first-child){
  background:#6872f2!important;border-color:#6872f2!important;color:#fff!important
}
body.cts-redactable-v4 .v49-no-card{margin-top:20px!important;color:#f5f3ff!important;font-size:11px!important;font-weight:700!important}

/* Product visual - large elevated white app card */
body.cts-redactable-v4 .v49-product-hero{position:relative!important;min-height:420px!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.cts-redactable-v4 .v49-app-window{
  width:min(100%,570px)!important;border:1px solid rgba(255,255,255,.62)!important;border-radius:12px!important;
  background:#fff!important;box-shadow:42px 38px 0 rgba(12,12,80,.14),26px 24px 0 rgba(16,16,90,.13),0 28px 60px rgba(15,13,74,.25)!important;
  transform:none!important
}
body.cts-redactable-v4 .v49-ai-chip{box-shadow:0 8px 20px rgba(23,20,80,.18)!important}
body.cts-redactable-v4 .v49-verify-chip{box-shadow:0 8px 20px rgba(23,20,80,.18)!important}

/* Hide the old proof pill row inside hero - logo proof immediately follows instead */
body.cts-redactable-v4 .v49-proof-ribbon{display:none!important}

/* LOGO STRIP */
body.cts-redactable-v4 .cts-logo-catalogue{
  padding:0 0 46px!important;background:#fff!important;border-bottom:1px solid #edf0f5!important
}
body.cts-redactable-v4 .cts-logo-title{
  display:table!important;position:relative!important;z-index:3!important;margin:-14px auto 28px!important;padding:7px 16px!important;
  border-radius:999px!important;background:#ccd4ff!important;color:#27356a!important;font-size:11px!important;font-weight:850!important
}
body.cts-redactable-v4 .cts-logo-window{min-height:72px!important}
body.cts-redactable-v4 .cts-logo-track{gap:26px!important;animation-duration:32s!important}
body.cts-redactable-v4 .cts-logo-item{width:145px!important;min-width:145px!important;height:58px!important;opacity:1!important}
body.cts-redactable-v4 .cts-logo-item img{
  width:132px!important;height:44px!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;opacity:.74!important;filter:grayscale(1) contrast(1.15) brightness(.78)!important
}

/* Common white sections */
body.cts-redactable-v4 .v49-section,
body.cts-redactable-v4 .v49-product-section,
body.cts-redactable-v4 .v49-industries,
body.cts-redactable-v4 .v49-integrations,
body.cts-redactable-v4 .v49-resources{padding:96px 0!important;background:#fff!important}
body.cts-redactable-v4 .v49-section-kicker,.cts-r4-kicker{
  color:#5d57ea!important;font-size:10px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important
}
body.cts-redactable-v4 .v49-section h2,
body.cts-redactable-v4 .v49-product-section h2,
body.cts-redactable-v4 .v49-industries h2,
body.cts-redactable-v4 .v49-integrations h2,
body.cts-redactable-v4 .v49-resources h2,
.cts-r4-proof-head h2,
.cts-r4-security h2{
  color:#111936!important;font-size:clamp(36px,4vw,50px)!important;line-height:1.05!important;font-weight:900!important
}
body.cts-redactable-v4 .v49-section-lead,
.cts-r4-proof-head p,
.cts-r4-security p{color:#68758f!important;font-size:14px!important;line-height:1.7!important}

/* DEMO */
body.cts-redactable-v4 .v49-product-section{text-align:center!important}
body.cts-redactable-v4 .v49-demo-frame{
  margin-top:34px!important;padding:7px!important;border:1px solid #dfe4ef!important;border-radius:13px!important;
  background:#aeb9ff!important;box-shadow:0 18px 44px rgba(37,50,105,.12)!important
}
body.cts-redactable-v4 .v49-demo-layout{min-height:430px!important}

/* FEATURES - 6 clean cards */
body.cts-redactable-v4 .cts-r4-features{padding-top:72px!important}
body.cts-redactable-v4 .v49-feature-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;text-align:left!important}
body.cts-redactable-v4 .v49-feature-grid article{
  min-height:218px!important;padding:26px!important;border:1px solid #dfe4ed!important;border-radius:13px!important;
  background:#fff!important;box-shadow:0 5px 18px rgba(15,23,42,.045)!important
}
body.cts-redactable-v4 .v49-feature-grid article:hover{transform:translateY(-3px)!important;box-shadow:0 14px 30px rgba(15,23,42,.08)!important}
body.cts-redactable-v4 .v49-feature-grid h3{color:#1c253d!important;font-size:17px!important}
body.cts-redactable-v4 .v49-feature-grid p{color:#6c7890!important;font-size:12px!important;line-height:1.65!important}

/* Added benefits band - mirrors reference's six capability rhythm */
.cts-r4-proof-band{padding:92px 0;background:#fff}
.cts-r4-proof-head{text-align:center;max-width:760px;margin:0 auto 44px}
.cts-r4-proof-head>span{color:#5a54e7;font-size:10px;font-weight:900;letter-spacing:.12em}
.cts-r4-proof-head p{max-width:640px;margin:15px auto 0}
.cts-r4-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cts-r4-proof-grid article{min-height:190px;padding:25px;border:1px solid #dfe4ed;border-radius:13px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.045)}
.cts-r4-proof-grid b{width:40px;height:40px;display:grid;place-items:center;margin-bottom:22px;border-radius:9px;background:#eef0ff;color:#5a52e5;font-size:13px}
.cts-r4-proof-grid h3{margin:0 0 8px;color:#1a223b;font-size:16px}
.cts-r4-proof-grid p{margin:0;color:#6c7891;font-size:12px;line-height:1.65}

/* INDUSTRIES */
body.cts-redactable-v4 .v49-industries{background:#f7f9fc!important;text-align:center!important}
body.cts-redactable-v4 .v49-industries .v49-section-lead{max-width:650px;margin-left:auto!important;margin-right:auto!important}
body.cts-redactable-v4 .v49-industry-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;text-align:left!important}
body.cts-redactable-v4 .v49-industry-grid article{
  min-height:176px!important;padding:24px!important;border:1px solid #dfe4ec!important;border-radius:12px!important;
  background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.035)!important
}
body.cts-redactable-v4 .v49-industry-grid b{width:38px!important;height:38px!important;border-radius:9px!important;background:#efedff!important;color:#5b54e7!important}
body.cts-redactable-v4 .v49-industry-grid h3{color:#1c253d!important;font-size:16px!important}
body.cts-redactable-v4 .v49-industry-grid p{color:#6c7890!important;font-size:12px!important;line-height:1.6!important}

/* 4 STEPS - dark section like the reference */
body.cts-redactable-v4 .v49-steps{padding:96px 0!important;background:#0b1426!important;color:#fff!important;text-align:center!important}
body.cts-redactable-v4 .v49-steps h2{color:#fff!important;font-size:clamp(36px,4vw,48px)!important}
body.cts-redactable-v4 .v49-step-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:42px!important}
body.cts-redactable-v4 .v49-step-grid article{
  min-height:210px!important;padding:22px 18px!important;border:1px solid #27344d!important;border-radius:12px!important;background:#111b2f!important
}
body.cts-redactable-v4 .v49-step-pic{width:58px!important;height:58px!important;border-radius:10px!important;background:#fff!important;color:#625cf4!important}
body.cts-redactable-v4 .v49-step-grid strong{color:#8d98b2!important;font-size:10px!important}
body.cts-redactable-v4 .v49-step-grid h3{color:#fff!important;font-size:13px!important;line-height:1.45!important}

/* INTEGRATIONS */
body.cts-redactable-v4 .v49-integrations{text-align:center!important}
body.cts-redactable-v4 .v49-integrations .v49-section-lead{max-width:670px;margin-left:auto!important;margin-right:auto!important}
body.cts-redactable-v4 .v49-integration-row{display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:12px!important;margin-top:38px!important}
body.cts-redactable-v4 .v49-integration-row>span{
  min-width:140px!important;min-height:auto!important;padding:13px 18px!important;border:1px solid #dfe4ec!important;border-radius:999px!important;
  background:#fff!important;color:#26334e!important;box-shadow:0 4px 12px rgba(15,23,42,.035)!important;font-size:12px!important;font-weight:750!important
}
body.cts-redactable-v4 .v49-integration-row>span i,
body.cts-redactable-v4 .v49-integration-row>span small{display:none!important}
body.cts-redactable-v4 .v49-integration-row>span strong{font-size:12px!important;font-weight:750!important}

/* SECURITY */
.cts-r4-security{padding:96px 0;background:#f7f9fc}
.cts-r4-security-inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center}
.cts-r4-security p{max-width:510px;margin-top:18px}
.cts-r4-security-list{display:grid;gap:12px}
.cts-r4-security-list>div{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border:1px solid #dfe4ed;border-radius:12px;background:#fff}
.cts-r4-security-list i{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:50%;background:#e5fbf4;color:#04946f;font-style:normal;font-weight:900}
.cts-r4-security-list span{display:grid;gap:3px}
.cts-r4-security-list b{color:#1c253d;font-size:14px}
.cts-r4-security-list small{color:#707c92;font-size:11px;line-height:1.5}

/* FINAL CTA */
body.cts-redactable-v4 .v49-final-cta{
  padding:86px 0!important;text-align:center!important;
  background:linear-gradient(135deg,#3d20b4,#4f2bd0 55%,#4323bb)!important
}
body.cts-redactable-v4 .v49-final-cta h2{color:#fff!important;font-size:clamp(38px,4vw,52px)!important}
body.cts-redactable-v4 .v49-final-cta p{max-width:660px!important;margin:16px auto 28px!important;color:#e9e4ff!important;font-size:14px!important;line-height:1.7!important}
body.cts-redactable-v4 .v49-final-cta .v49-btn-green{background:#0ad8a4!important;border-color:#0ad8a4!important;color:#06332f!important}
body.cts-redactable-v4 .v49-final-cta .v49-btn-purple{background:#6771f0!important;border-color:#6771f0!important;color:#fff!important}

/* RESOURCES + FOOTER */
body.cts-redactable-v4 .v49-resources{text-align:center!important}
body.cts-redactable-v4 .v49-resource-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important;text-align:left!important}
body.cts-redactable-v4 .v49-resource-grid article{padding:24px!important;border:1px solid #dfe4ec!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 16px rgba(15,23,42,.04)!important}
body.cts-redactable-v4 .v49-footer{padding-top:56px!important;background:#09111f!important}

/* Keep legacy injected strips from conflicting */
body.cts-redactable-v4 .cts-redundant-strip,
body.cts-redactable-v4 .cts-redundant-cta{display:none!important}

/* RESPONSIVE */
@media(max-width:1020px){
  body.cts-redactable-v4 .v49-hero-grid{grid-template-columns:1fr!important;gap:24px!important;padding-top:58px!important}
  body.cts-redactable-v4 .v49-hero-copy{max-width:720px!important;text-align:center!important;margin:auto!important}
  body.cts-redactable-v4 .v49-hero-copy>p{margin-left:auto!important;margin-right:auto!important}
  body.cts-redactable-v4 .v49-hero-actions{justify-content:center!important}
  body.cts-redactable-v4 .v49-product-hero{min-height:390px!important}
  .cts-r4-security-inner{grid-template-columns:1fr;gap:34px}
}

@media(max-width:760px){
  body.cts-redactable-v4 .v49-nav{width:calc(100% - 18px)!important;min-height:58px!important;border-radius:0 0 12px 12px!important}
  body.cts-redactable-v4 .v49-navlinks{display:none!important}
  body.cts-redactable-v4 .v49-hero{padding-top:58px!important}
  body.cts-redactable-v4 .v49-hero-grid{padding:52px 0 48px!important}
  body.cts-redactable-v4 .v49-hero h1{font-size:44px!important}
  body.cts-redactable-v4 .v49-hero-actions{display:grid!important}
  body.cts-redactable-v4 .v49-hero .v49-btn-lg{width:100%!important}
  body.cts-redactable-v4 .v49-app-window{box-shadow:18px 18px 0 rgba(12,12,80,.12),0 22px 45px rgba(15,13,74,.23)!important}
  body.cts-redactable-v4 .v49-feature-grid,
  .cts-r4-proof-grid,
  body.cts-redactable-v4 .v49-industry-grid,
  body.cts-redactable-v4 .v49-resource-grid{grid-template-columns:1fr!important}
  body.cts-redactable-v4 .v49-step-grid{grid-template-columns:1fr 1fr!important}
  body.cts-redactable-v4 .v49-section,
  body.cts-redactable-v4 .v49-product-section,
  body.cts-redactable-v4 .v49-industries,
  body.cts-redactable-v4 .v49-integrations,
  body.cts-redactable-v4 .v49-resources,
  .cts-r4-proof-band,
  .cts-r4-security{padding:70px 0!important}
}

@media(max-width:480px){
  body.cts-redactable-v4 .v49-wrap{width:calc(100% - 24px)!important}
  body.cts-redactable-v4 .v49-hero h1{font-size:38px!important}
  body.cts-redactable-v4 .v49-step-grid{grid-template-columns:1fr!important}
  body.cts-redactable-v4 .cts-logo-track{gap:12px!important}
  body.cts-redactable-v4 .cts-logo-item{width:120px!important;min-width:120px!important}
  body.cts-redactable-v4 .cts-logo-item img{width:108px!important;height:38px!important}
}

@media(prefers-reduced-motion:reduce){
  body.cts-redactable-v4 *{scroll-behavior:auto!important;transition:none!important}
}

/* ============================================================
   V4 FINAL POLISH
   ============================================================ */

/* Keep only one hero badge */
body.cts-redactable-v4 .v49-hero .v49-trust-pill{
  display:none!important;
}

/* Slightly stronger logo catalogue */
body.cts-redactable-v4 .cts-logo-track{
  gap:18px!important;
}

body.cts-redactable-v4 .cts-logo-item{
  width:132px!important;
  min-width:132px!important;
}

body.cts-redactable-v4 .cts-logo-item img{
  width:122px!important;
  height:44px!important;
  opacity:.92!important;
  filter:grayscale(1) contrast(1.32) brightness(.68)!important;
}

/* Tighten oversized section spacing */
body.cts-redactable-v4 .v49-section,
body.cts-redactable-v4 .v49-product-section,
body.cts-redactable-v4 .v49-industries,
body.cts-redactable-v4 .v49-integrations,
body.cts-redactable-v4 .v49-resources{
  padding-top:78px!important;
  padding-bottom:78px!important;
}

/* Product section */
body.cts-redactable-v4 .v49-demo-frame{
  margin-top:30px!important;
}

body.cts-redactable-v4 .v49-feature-grid{
  margin-top:34px!important;
}

body.cts-redactable-v4 .v49-feature-grid article{
  min-height:178px!important;
  padding:24px!important;
}

/* Industries */
body.cts-redactable-v4 .v49-industry-grid{
  margin-top:38px!important;
}

body.cts-redactable-v4 .v49-industry-grid article{
  min-height:158px!important;
}

/* Four steps */
body.cts-redactable-v4 .v49-steps{
  padding-top:78px!important;
  padding-bottom:78px!important;
}

body.cts-redactable-v4 .v49-step-grid article{
  min-height:190px!important;
}

/* Integrations */
body.cts-redactable-v4 .v49-integrations{
  padding-top:82px!important;
  padding-bottom:82px!important;
}

body.cts-redactable-v4 .v49-integration-row{
  margin-top:30px!important;
}

/* Security */
body.cts-redactable-v4 .cts-r4-security{
  padding-top:82px!important;
  padding-bottom:82px!important;
}

body.cts-redactable-v4 .cts-r4-security-list b,
body.cts-redactable-v4 .cts-r4-security-list small{
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
}

/* Final CTA */
body.cts-redactable-v4 .v49-final-cta{
  padding-top:78px!important;
  padding-bottom:78px!important;
}

/* Resource cards */
body.cts-redactable-v4 .v49-resource-grid{
  margin-top:38px!important;
}

body.cts-redactable-v4 .v49-resource-grid article{
  min-height:210px!important;
  transition:transform .18s ease,box-shadow .18s ease!important;
}

body.cts-redactable-v4 .v49-resource-grid article:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(15,23,42,.07)!important;
}

/* Fix dark footer branding */
body.cts-redactable-v4 .v49-footer .v49-brand,
body.cts-redactable-v4 .v49-footer .v49-brand span{
  color:#fff!important;
}

body.cts-redactable-v4 .v49-footer p,
body.cts-redactable-v4 .v49-footer small,
body.cts-redactable-v4 .v49-footer a{
  color:#aeb9cf!important;
}

body.cts-redactable-v4 .v49-footer h4{
  color:#fff!important;
}

/* Prevent old injected proof band from appearing */
body.cts-redactable-v4 #ctsR4ProofBand{
  display:none!important;
}

/* ============================================================
   END V4 FINAL POLISH
   ============================================================ */
