/* ============================================================
   RankFlow v6.5 dark layer
   Black page (#0a0a0a), white body text, green #4ade80 accents
   (11.6:1 on black), forest green nav #1f4d2b with white links
   (10.4:1). Loads after main.css on every front end page.
   ============================================================ */
:root{
  --rd-bg:#0a0a0a; --rd-bg2:#0f1110; --rd-card:#141715; --rd-line:#2a302c;
  --rd-txt:#ffffff; --rd-txt2:#e4e9e6; --rd-mut:#a9b2ad;
  --rd-green:#4ade80; --rd-green-h:#86efac; --rd-forest:#1f4d2b; --rd-forest-2:#173d22;
}
html,body{background:var(--rd-bg)!important;color:var(--rd-txt2);}
body.home{color:var(--rd-txt2)!important;}
::selection{background:#1f4d2b;color:#fff;}

/* Headings: white display, green section titles */
h1,.x-hero__h1{color:#fff!important;}
h2,.x-h2,.section-title{color:var(--rd-green)!important;}
h3,h4,.x-h3{color:#fff!important;}
.x-label,.section-label,.eyebrow{color:var(--rd-green)!important;}
p,li,dd,td{color:inherit;}
a{color:inherit;}
.x-link,.x-more a{color:var(--rd-green)!important;}
.x-link:hover{color:var(--rd-green-h)!important;}
main a:not([class]){color:var(--rd-green);}
strong,b{color:#fff;}

/* ── Nav: forest green, white links ── */
.nav,body.home .nav{background:var(--rd-forest)!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:0 1px 0 rgba(0,0,0,.4)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
.nav__link,body.home .nav__link{color:#fff!important;background:transparent;}
.nav__link:hover,.nav__link:focus-visible,body.home .nav__link:hover,.nav__link[aria-current="page"]{color:#fff!important;background:rgba(255,255,255,.12)!important;}
.nav__link:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.nav__link--cta,body.home .nav__link--cta,.nav__mcta{background:#fff!important;color:var(--rd-forest)!important;box-shadow:none!important;font-weight:650;}
.nav__link--cta:hover,body.home .nav__link--cta:hover,.nav__mcta:hover{background:#e8f5ec!important;color:var(--rd-forest-2)!important;}
.nav__hamburger span{background:#fff!important;}
@media (max-width:768px){
  .nav__links{background:var(--rd-forest-2)!important;border-top:1px solid rgba(255,255,255,.1)!important;}
  .nav__link{color:#fff!important;}
  .nav__link:hover,.nav__link:active{background:rgba(255,255,255,.1)!important;color:#fff!important;}
  .nav__link--cta{background:#fff!important;color:var(--rd-forest)!important;box-shadow:none!important;}
}

/* ── Buttons: crisp green with near black text (11:1) ── */
.x-btn,.btn--primary,.btn:not(.btn--ghost),.rfl-scan__btn,.form-submit,.cf-next,.rfl-book-submit,.rfl-unsub-submit,
.hero__bridge-submit,.rfl-thanks .rfl-thanks__btn,.rfl-mbar__btn--scan,body.home .x-final__form .form-submit,.x-nosite__cta .x-btn{
  background:var(--rd-green)!important;color:#06140b!important;border-color:var(--rd-green)!important;box-shadow:none!important;}
.x-btn:hover,.btn--primary:hover,.btn:not(.btn--ghost):hover,.rfl-scan__btn:hover,.form-submit:hover,.cf-next:hover,.rfl-book-submit:hover,.hero__bridge-submit:hover{
  background:var(--rd-green-h)!important;color:#06140b!important;}
.btn--ghost{color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;background:transparent!important;}
.btn--ghost:hover{border-color:var(--rd-green)!important;color:var(--rd-green)!important;}
.rfl-mbar{background:rgba(10,10,10,.96)!important;border-top:1px solid var(--rd-line)!important;}
.rfl-mbar__btn--call{background:var(--rd-forest)!important;color:#fff!important;}

/* ── Forms ── */
input,textarea,select,.form-input,.rfl-scan__input{color:#fff!important;}
.form-input,.rfl-scan__row,input[type="text"],input[type="email"],input[type="tel"],input[type="url"],textarea,select{background-color:#0f1211!important;border-color:#343b37!important;}
.rfl-scan__row{border:1px solid #343b37!important;}
input::placeholder,textarea::placeholder{color:#7f8984!important;opacity:1;}
input:focus,textarea:focus,select:focus,.form-input:focus{border-color:var(--rd-green)!important;outline:2px solid rgba(74,222,128,.35)!important;outline-offset:1px;}
label,.form-label{color:var(--rd-txt2)!important;}
select option{background:#0f1211;color:#fff;}

/* ── Surfaces ── */
.x-sec--gray{background:var(--rd-bg2)!important;}
.x-sec--tint{background:#0c1410!important;}
.x-sec--dark{background:#050605!important;border-top:1px solid var(--rd-line);border-bottom:1px solid var(--rd-line);}
.x-sec{border-top-color:var(--rd-line)!important;}
.x-service,.x-quote,.x-card,.x-report,.x-nosite__panel,.x-final__form,.faq-item,.card,.service-card{background:var(--rd-card)!important;border-color:var(--rd-line)!important;}
.footer{background:#060706!important;border-top:1px solid var(--rd-line)!important;}
.footer__brand-img{max-width:190px;height:auto;}
.footer__link,.footer a{color:var(--rd-mut)!important;}
.footer__link:hover,.footer a:hover{color:var(--rd-green)!important;}
.footer__social-link{background:#141715!important;border-color:var(--rd-line)!important;color:#fff!important;}
.footer h4,.footer__heading,.footer__col-title{color:#fff!important;}
.nav__logo-img{filter:none!important;}

/* ── Home: hero and platforms ── */
.x-hero{background:var(--rd-bg)!important;}
.x-hero__sub,.x-hero__free,.x-hero__trust{color:var(--rd-mut)!important;}
.x-hero__openai{border-left-color:var(--rd-green)!important;}
.x-report__ring{color:var(--rd-green)!important;}
.x-platforms{background:var(--rd-bg2)!important;border-color:var(--rd-line)!important;}
.x-platform--badge img{filter:brightness(0) invert(1);opacity:.85;}
.x-platforms__h{color:var(--rd-mut)!important;}

/* Facts strip */
.xd-facts{background:var(--rd-bg);border-bottom:1px solid var(--rd-line);padding:44px 0;}
.xd-facts__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.xd-fact{display:flex;flex-direction:column;gap:6px;padding:6px 24px;border-left:1px solid rgba(74,222,128,.35);}
.xd-fact:first-child{border-left:0;padding-left:0;}
.xd-fact__big{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;letter-spacing:-.03em;color:var(--rd-green);line-height:1.1;}
.xd-fact__txt{font-size:.92rem;color:var(--rd-mut);line-height:1.4;}
@media (max-width:800px){.xd-facts__grid{grid-template-columns:1fr 1fr;row-gap:22px;}.xd-fact:nth-child(3){border-left:0;padding-left:0;}}

/* Small inline graphics */
.xd-g{margin:0 0 18px;border-radius:12px;overflow:hidden;border:1px solid var(--rd-line);}
.xd-g svg{display:block;width:100%;height:auto;}
.xd-g--ba,.xd-g--card{margin-bottom:20px;}
.x-col p{color:var(--rd-txt2)!important;}

/* Who we work with: photo tiles + plain list */
.x-who__rows,.x-who__item{display:none!important;}
.xd-tiles{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.xd-tile figure{margin:0;}
.xd-tile img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:12px;display:block;filter:saturate(.9);}
.xd-tile figcaption{margin-top:12px;font-size:1rem;font-weight:600;color:#fff;letter-spacing:-.01em;}
.xd-list{list-style:none;margin:44px 0 8px;padding:0;columns:3;column-gap:48px;}
.xd-list li{break-inside:avoid;padding:13px 0;border-bottom:1px solid rgba(74,222,128,.28);color:#fff;font-size:1.02rem;}
@media (max-width:700px){.xd-tiles{grid-template-columns:1fr 1fr;gap:12px;}.xd-list{columns:2;column-gap:24px;}}

/* Wide figure in the how band */
.xd-wide{margin:40px 0 0;}
.xd-wide img{width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;border-radius:14px;display:block;border:1px solid var(--rd-line);}
.xd-wide figcaption{margin-top:12px;color:var(--rd-mut);font-size:.92rem;}
@media (max-width:700px){.xd-wide img{aspect-ratio:3/2;}}

/* Media blocks */
.xd-media{margin:0 0 20px;border-radius:12px;overflow:hidden;border:1px solid var(--rd-line);}
.xd-media img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;}
.x-service .xd-media img{aspect-ratio:320/150;}
.xd-media--nosite{max-width:440px;margin:22px 0;}
.xd-media--nosite img{aspect-ratio:3/2;object-position:50% 40%;}
.xd-media--faq{margin-top:28px;max-width:460px;}
.x-service__ico{display:none!important;}

/* Services in detail */
.xd-rows{display:flex;flex-direction:column;gap:56px;margin-top:8px;}
.xd-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:center;}
.xd-row--flip .xd-row__media{order:2;}
.xd-row__media img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px;display:block;border:1px solid var(--rd-line);}
.xd-row__h{font-size:clamp(1.35rem,2.4vw,1.75rem);font-weight:700;letter-spacing:-.02em;line-height:1.2;margin:0 0 14px;color:#fff!important;}
.xd-row__body p{color:var(--rd-txt2);font-size:1.03rem;line-height:1.7;margin:0 0 16px;}
.xd-row__body{border-top:1px solid rgba(74,222,128,.35);padding-top:22px;}
@media (max-width:860px){.xd-row{grid-template-columns:1fr;gap:20px;}.xd-row--flip .xd-row__media{order:0;}}

/* Reviews, blog rail, FAQ */
.x-quote__text p{color:var(--rd-txt2)!important;}
.x-quote__by strong{color:#fff!important;}
.x-quote__by span{color:var(--rd-mut)!important;}
.x-card{position:relative;overflow:hidden;padding-top:86px!important;}
.x-card::before{content:"";position:absolute;left:0;right:0;top:0;height:64px;border-bottom:1px solid var(--rd-line);
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 64' preserveAspectRatio='none'><path d='M0 52 L40 46 L80 48 L120 36 L160 38 L200 26 L240 28 L300 12' fill='none' stroke='%234ade80' stroke-width='2'/><path d='M0 52 L40 46 L80 48 L120 36 L160 38 L200 26 L240 28 L300 12 L300 64 L0 64Z' fill='%234ade80' fill-opacity='.08'/></svg>") center/100% 100% no-repeat,#101411;}
.x-card__title{color:#fff!important;}
.x-card__cat{color:var(--rd-green)!important;}
.faq-q,.faq-q span{color:#fff!important;}
.faq-a__inner{color:var(--rd-txt2)!important;}
.faq-q__icon{border-color:var(--rd-line)!important;color:var(--rd-green)!important;}
.x-end{border-top-color:var(--rd-line)!important;}
.x-end__lead{color:var(--rd-txt2)!important;}

/* Founder card image sits on black cleanly */
.x-founder__photo img{border-radius:14px;}

/* Inner pages: generic content on black */
.entry-content,.prose,.article-body,.page-content{color:var(--rd-txt2);}
.entry-content a,.prose a,.article-body a{color:var(--rd-green);}
.entry-content h2,.prose h2,.article-body h2{color:var(--rd-green)!important;}
table{border-color:var(--rd-line);}
th{color:#fff;background:#141715;}
td{border-color:var(--rd-line)!important;}
blockquote{border-left-color:var(--rd-green)!important;color:var(--rd-txt2);}
hr{border-color:var(--rd-line);}
code{background:#141715;color:var(--rd-green-h);}

/* Inner page visual band (added in templates) */
.xd-band{margin:0 auto;max-width:var(--max-w,1200px);padding:0 var(--sp4,32px);}
.xd-band img{width:100%;height:auto;aspect-ratio:3/1;object-fit:cover;border-radius:14px;border:1px solid var(--rd-line);display:block;}
@media (max-width:700px){.xd-band{padding:0 18px;}.xd-band img{aspect-ratio:3/2;}}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;}}

/* Stacy chat window on black */
#rf-stacy{color:#e4e9e6;}
#rf-stacy .rs-win{background:#141715!important;border-color:#2a302c!important;box-shadow:0 18px 48px rgba(0,0,0,.6)!important;}
#rf-stacy .rs-hd{background:#1f4d2b!important;}
#rf-stacy .rs-log{background:#0f1211!important;}
#rf-stacy .rs-a{background:#1a1f1c!important;border-color:#2a302c!important;color:#e4e9e6!important;}
#rf-stacy .rs-u{background:#1f4d2b!important;color:#fff!important;}
#rf-stacy .rs-ft{border-top-color:#2a302c!important;}
#rf-stacy .rs-chip{border-radius:8px!important;background:transparent!important;color:#4ade80!important;border-color:rgba(74,222,128,.5)!important;}
#rf-stacy .rs-talk{border-radius:10px!important;background:#4ade80!important;color:#06140b!important;}
#rf-stacy .rs-talk:hover{background:#86efac!important;}
#rf-stacy .rs-in{background:#0f1211!important;color:#fff!important;border-color:#343b37!important;border-radius:10px!important;}
#rf-stacy .rs-send{background:#4ade80!important;color:#06140b!important;border-radius:10px!important;}
#rf-stacy .rs-note,#rf-stacy .rs-lbl{color:#a9b2ad!important;}
#rf-stacy .rs-bub{background:#1f4d2b!important;border:1px solid rgba(255,255,255,.18)!important;}
#rf-stacy .rs-av{color:#1f4d2b!important;}
.x-platform--badge img{opacity:1;}

/* Brand band: forest green, white text, green button */
.section--brand{background:#1f4d2b!important;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);}
.section--brand h2,.section--brand .section__h2{color:#fff!important;}
.section--brand p{color:#e4e9e6!important;}
.section--brand .btn,.section--brand .btn--primary,.section--brand a.btn{background:#4ade80!important;color:#06140b!important;}
.rfa-toplogo{background:#1f4d2b!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
