/* ============================================================
   Frameflow Creatives — Homepage color harmonization
   Balanced palette: soft neutrals + mid-tone purple accents
   (not too dark, not too bright). Load last on index.html.
   ============================================================ */

.frameflow-light.home-page {
  /* Core tokens */
  --ff-ink: #13072d;
  --ff-ink-muted: #5a5568;
  --ff-ink-soft: #76718a;
  --ff-surface: #fcfbfe;
  --ff-surface-alt: #f3f1f7;
  --ff-surface-card: #ffffff;
  --ff-surface-muted: #eeecf4;
  --ff-brand: #432691;
  --ff-brand-light: #4d2c9e;
  --ff-brand-vivid: #432691;
  --ff-brand-accent: #432691;
  --ff-brand-soft: #5a3a9e;
  --ff-band-start: #211247;
  --ff-band-mid: #342060;
  --ff-band-end: #432691;
  --ff-band-gradient: linear-gradient(180deg, #211247 0%, #432691 100%);
  --ff-band-gradient-h: linear-gradient(90deg, #211247 0%, #342060 50%, #432691 100%);
  --ff-marquee-dark: linear-gradient(90deg, #211247 0%, #342060 50%, #432691 100%);
  --ff-marquee-light: linear-gradient(90deg, #eeebf5 0%, #e6e2f0 50%, #eeebf5 100%);
  --ff-border: rgba(90, 72, 140, 0.1);
  --ff-border-strong: rgba(90, 72, 140, 0.16);
  --ff-shadow: rgba(44, 38, 72, 0.07);
  --ff-shadow-lg: rgba(44, 38, 72, 0.11);
  --ff-on-band: rgba(255, 255, 255, 0.96);
  --ff-on-band-muted: rgba(255, 255, 255, 0.78);

  /* Map to global theme vars */
  --heading: var(--ff-ink);
  --primary: var(--ff-ink);
  --text-body: #4a4658;
  --secondary: var(--ff-ink-muted);
  --brand: var(--ff-brand-vivid);
  --brand-accent: var(--ff-brand-accent);
  --body: var(--ff-surface-alt);

  background-color: var(--ff-surface);
  color: var(--text-body);
}

/* ── Typography & links ─────────────────────────────────────── */
.frameflow-light.home-page .heading-title,
.frameflow-light.home-page h1,
.frameflow-light.home-page h2:not(.ff-home-motto__title):not(.ff-contact-visual__title):not(.ff-cta-department__title):not(.ff-services-pricing-teaser__title):not(.ff-cp-brief__title):not(.ff-about-talent__title),
.frameflow-light.home-page h3:not(.ff-pricing-custom__title):not(.ff-cp-brief__form-title) {
  color: var(--ff-ink);
}

.frameflow-light.home-page .heading-sub {
  color: var(--ff-brand);
}

.frameflow-light.home-page .text-secondary,
.frameflow-light.home-page .text-body-3.text-secondary {
  color: var(--ff-ink-muted) !important;
}

/* Solid heading ink on light backgrounds (no purple clip gradients) */
.frameflow-light.home-page .text-gradient-1,
.frameflow-light.home-page .text-gradient-2,
.frameflow-light.home-page .text-gradient-3,
.frameflow-light.home-page .heading-title.text-gradient-1,
.frameflow-light.home-page .heading-title.text-gradient-2,
.frameflow-light.home-page .heading-title.text-gradient-3,
.frameflow-light.home-page .text-gradient-1 .ff-rev-char,
.frameflow-light.home-page .text-gradient-1 .ff-rev-word,
.frameflow-light.home-page .text-gradient-2 .ff-rev-char,
.frameflow-light.home-page .text-gradient-2 .ff-rev-word,
.frameflow-light.home-page .text-gradient-3 .ff-rev-char,
.frameflow-light.home-page .text-gradient-3 .ff-rev-word {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--heading, #13072d) !important;
  -webkit-text-fill-color: var(--heading, #13072d) !important;
}

.frameflow-light.home-page .link-underline.link1,
.frameflow-light.home-page a.link1 {
  color: var(--ff-brand);
}

/* ── Section rhythm (soft alternation) ───────────────────── */
.frameflow-light.home-page .section-about-us,
.frameflow-light.home-page .ff-ref-partner,
.frameflow-light.home-page .ff-tools-strip,
.frameflow-light.home-page .ff-ref-projects,
.frameflow-light.home-page .ff-blog-journal {
  background: var(--ff-surface-card) !important;
}

.frameflow-light.home-page .ff-value-strip,
.frameflow-light.home-page #services.section-services,
.frameflow-light.home-page .section-testimonials.ff-tes-carousel,
.frameflow-light.home-page .section-faqs {
  background: var(--ff-surface-alt) !important;
}

.frameflow-light.home-page .ff-pricing-dark.section-pricing {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(142, 118, 210, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--ff-surface) 0%, var(--ff-surface-muted) 100%) !important;
}

.frameflow-light.home-page .ff-pricing-dark .heading-title.text-gradient-3 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--heading, #13072d) !important;
  -webkit-text-fill-color: var(--heading, #13072d) !important;
}

/* ── Trust band ───────────────────────────────────────────── */
.frameflow-light.home-page .ff-trust-band__inner,
.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__inner {
  background: var(--ff-band-gradient-h) !important;
  box-shadow: 0 12px 32px -14px var(--ff-shadow-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.frameflow-light.home-page .ff-trust-band__label,
.frameflow-light.home-page .section-hero--frameflow .hero-trust-wrap .ff-trust-band__label {
  color: var(--ff-on-band) !important;
}

.frameflow-light.home-page .ff-trust-band__list li {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: var(--ff-on-band-muted) !important;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Working process — brand gradient ─────────────────────── */
.frameflow-light.home-page .ff-working-process {
  background: linear-gradient(180deg, #211247 0%, #432691 100%) !important;
}

.frameflow-light.home-page .ff-working-process__eyebrow {
  color: rgba(255, 255, 255, 0.88) !important;
}

.frameflow-light.home-page .ff-working-process__eyebrow span {
  color: rgba(255, 255, 255, 0.65) !important;
}

.frameflow-light.home-page .ff-working-process__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  filter: none !important;
}

.frameflow-light.home-page .ff-working-process__lead,
.frameflow-light.home-page .ff-working-process__stat-label,
.frameflow-light.home-page .ff-working-process__step-text {
  color: rgba(255, 255, 255, 0.82) !important;
}

.frameflow-light.home-page .ff-working-process__stat-num,
.frameflow-light.home-page .ff-working-process__step-title {
  color: #fff !important;
}

.frameflow-light.home-page .ff-working-process__step-num {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  border: none !important;
}

.frameflow-light.home-page .ff-working-process__step {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* ── Value strip ──────────────────────────────────────────── */
.frameflow-light.home-page .ff-value-strip {
  background: var(--ff-surface-alt) !important;
  border-block-color: var(--ff-border) !important;
}

.frameflow-light.home-page .ff-value-strip__item {
  background: var(--ff-surface-card) !important;
  border: 1px solid var(--ff-border) !important;
  box-shadow: 0 8px 24px -12px var(--ff-shadow) !important;
}

.frameflow-light.home-page .ff-value-strip__title {
  color: var(--ff-ink) !important;
}

.frameflow-light.home-page .ff-value-strip__text {
  color: var(--ff-ink-muted) !important;
}

/* ── Tools strip ──────────────────────────────────────────── */
.frameflow-light.home-page .ff-tools-strip {
  background: var(--ff-surface-card) !important;
}

.frameflow-light.home-page .ff-tools-strip__badge {
  background: var(--ff-surface-alt) !important;
  border-color: var(--ff-border) !important;
  color: var(--ff-ink-muted) !important;
}

.frameflow-light.home-page .ff-tools-strip__chip {
  background: var(--ff-surface-card) !important;
  border-color: var(--ff-border) !important;
  color: var(--ff-ink) !important;
}

/* ── Services marquees ────────────────────────────────────── */
.frameflow-light.home-page .ff-services-marquee__row--dark {
  background: var(--ff-marquee-dark) !important;
  box-shadow: 0 4px 20px -8px var(--ff-shadow-lg) !important;
}

.frameflow-light.home-page .ff-services-marquee__row--light {
  background: var(--ff-marquee-light) !important;
  border-block-color: var(--ff-border) !important;
}

.frameflow-light.home-page .ff-services-marquee__row--light .ff-services-marquee__item,
.frameflow-light.home-page .ff-services-marquee__row--light .ff-services-marquee__text {
  color: var(--ff-ink) !important;
}

/* ── Services accordion & cards ───────────────────────────── */
.frameflow-light.home-page .accordion-faq_item.style-1 {
  background: var(--ff-surface-card) !important;
  border-color: var(--ff-border) !important;
  box-shadow: 0 8px 28px -14px var(--ff-shadow) !important;
}

.frameflow-light.home-page .ff-services-banner {
  background: var(--ff-surface-card) !important;
  border: 1px solid var(--ff-border) !important;
}

.frameflow-light.home-page .ff-ref-project-card {
  border-color: var(--ff-border) !important;
  box-shadow: 0 8px 28px -14px var(--ff-shadow) !important;
}

/* ── Team stats band ──────────────────────────────────────── */
.frameflow-light.home-page .ff-team-ref__stats-bar {
  background:
    radial-gradient(ellipse 90% 80% at 50% -20%, rgba(170, 150, 230, 0.22) 0%, transparent 55%),
    linear-gradient(160deg, #5a4d96 0%, #6556a6 48%, #5e5198 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px -14px var(--ff-shadow-lg) !important;
}

.frameflow-light.home-page .ff-team-ref__stat__icon {
  background-image:
    radial-gradient(100% 100% at 30% 8%, rgba(255, 255, 255, 0.22) 0%, transparent 52%),
    linear-gradient(168deg, #9a88e8 0%, #8672d4 28%, #7568c4 55%, #6658b8 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(44, 38, 72, 0.18) !important;
}

.frameflow-light.home-page .ff-team-card {
  background: var(--ff-surface-card) !important;
  border-color: var(--ff-border) !important;
}

/* ── Testimonials ─────────────────────────────────────────── */
.frameflow-light.home-page .ff-tes-carousel .tes-item {
  background: var(--ff-surface-card) !important;
  border-color: var(--ff-border) !important;
  box-shadow: 0 10px 32px -16px var(--ff-shadow) !important;
}

/* ── Pricing cards ────────────────────────────────────────── */
.frameflow-light.home-page .ff-pricing-plan:not(.ff-pricing-plan--featured) {
  background:
    radial-gradient(70% 70% at 0% 0%, rgba(142, 118, 210, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--ff-surface-alt) 100%) !important;
  border-color: var(--ff-border) !important;
  box-shadow: 0 10px 32px -16px var(--ff-shadow) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured {
  background-color: #5a4d96 !important;
  background-image:
    radial-gradient(80% 60% at 50% -12%, rgba(142, 118, 210, 0.32) 0%, transparent 60%),
    radial-gradient(60% 55% at 100% 105%, rgba(110, 88, 200, 0.28) 0%, transparent 62%),
    linear-gradient(168deg, #6a5cb0 0%, #5a4d96 52%, #524386 100%) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 34px 80px -26px rgba(90, 72, 140, 0.35),
    0 16px 40px -14px rgba(90, 72, 140, 0.28) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured::before,
.frameflow-light.home-page .ff-pricing-plan--featured::after {
  display: none !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__name,
.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__price-amount {
  color: #fff !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__price-from {
  color: rgba(255, 255, 255, 0.78) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__price {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__desc,
.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__label,
.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__list li {
  color: rgba(255, 255, 255, 0.88) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__list li .icon {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__list li.is-or {
  color: rgba(255, 255, 255, 0.65) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__icon {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__cta,
.frameflow-light.home-page .ff-pricing-plan--featured a.tf-btn.ff-pricing-plan__cta {
  background: #fff !important;
  background-image: none !important;
  color: #211247 !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__cta:hover,
.frameflow-light.home-page .ff-pricing-plan--featured a.tf-btn.ff-pricing-plan__cta:hover {
  background: #f8f7fc !important;
  background-image: none !important;
  color: #211247 !important;
}

.frameflow-light.home-page .ff-pricing-plan:not(.ff-pricing-plan--featured) .ff-pricing-plan__badge {
  background: rgba(117, 85, 245, 0.12) !important;
  color: var(--ff-brand) !important;
}

.frameflow-light.home-page .ff-pricing-plan--featured .ff-pricing-plan__badge {
  color: #5a3d00 !important;
  background: linear-gradient(180deg, #ffe7a0 0%, #f6c552 55%, #e9a92f 100%) !important;
  border: 1px solid rgba(180, 130, 20, 0.35) !important;
  box-shadow:
    0 10px 22px -6px rgba(233, 169, 47, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.frameflow-light.home-page .accordion-asked-item {
  background: var(--ff-surface-muted) !important;
  border-color: var(--ff-border) !important;
}

/* ── CTA bands (unified mid-purple, less magenta flash) ───── */
.frameflow-light.home-page .ff-cta-department,
.frameflow-light.home-page .ff-site-footer__cta-card {
  background:
    radial-gradient(68% 52% at 100% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 52%),
    radial-gradient(62% 62% at 72% 100%, rgba(180, 160, 240, 0.2) 0%, transparent 100%),
    linear-gradient(205deg, #5e5198 0%, #7568c0 48%, #8070c8 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 44px -18px var(--ff-shadow-lg) !important;
}

/* ── Footer body ──────────────────────────────────────────── */
.frameflow-light.home-page .ff-site-footer__body {
  background: linear-gradient(180deg, #211247 0%, #432691 100%) !important;
  color: var(--ff-on-band-muted) !important;
}

.frameflow-light.home-page .ff-site-footer__col-title,
.frameflow-light.home-page .ff-site-footer__links a,
.frameflow-light.home-page .ff-site-footer__contact a,
.frameflow-light.home-page .ff-site-footer__contact span,
.frameflow-light.home-page .ff-site-footer__about {
  color: rgba(255, 255, 255, 0.86) !important;
}

.frameflow-light.home-page .ff-site-footer__copy,
.frameflow-light.home-page .ff-site-footer__legal a {
  color: rgba(255, 255, 255, 0.58) !important;
}

/* ── Buttons & mobile CTA ─────────────────────────────────── */
.frameflow-light.home-page .tf-btn:not(.tf-btn-2):not(.style-outline):not(.ff-pricing-plan__cta):not(.ff-pricing-custom__btn):not(.ff-btn-white):not(.ff-btn-on-dark),
.frameflow-light.home-page .ff-mobile-cta .tf-btn {
  background: linear-gradient(180deg, #211247 0%, #432691 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px -8px rgba(33, 18, 71, 0.35) !important;
}

.frameflow-light.home-page .tf-btn-2,
.frameflow-light.home-page .tf-btn.style-outline {
  border-color: var(--ff-border-strong) !important;
  color: var(--ff-ink) !important;
}

.frameflow-light.home-page .tf-btn-2:hover,
.frameflow-light.home-page .tf-btn.style-outline:hover {
  border-color: rgba(117, 85, 245, 0.35) !important;
  color: var(--ff-brand) !important;
}

/* ── Header (match inner-page chrome sizing) ──────────────── */
.frameflow-light.home-page .tf-header--cl .header-inner {
  border-radius: 18px !important;
}

.frameflow-light.home-page .tf-header--cl.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.96) !important;
}

@media (min-width: 992px) {
  .frameflow-light.home-page .tf-header--cl .header-inner {
    padding: 12px 24px !important;
    min-height: 60px;
  }

  .frameflow-light.home-page .tf-header--cl .header-cta {
    padding: 12px 18px !important;
    font-size: 15px !important;
    line-height: 22px !important;
  }
}

/* ── Hero form & pills ────────────────────────────────────── */
.frameflow-light.home-page .hero-contact-form {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--ff-border) !important;
}

.frameflow-light.home-page .hero-contact-form input,
.frameflow-light.home-page .hero-contact-form textarea {
  border-color: var(--ff-border) !important;
  background: var(--ff-surface-card) !important;
}

.frameflow-light.home-page .ff-home-motto {
  background: linear-gradient(180deg, #211247 0%, #432691 100%) !important;
  border-block: none !important;
}

.frameflow-light.home-page .ff-home-motto__eyebrow {
  color: #fff !important;
}

.frameflow-light.home-page .ff-home-motto__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}

.frameflow-light.home-page .ff-home-motto__desc {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Services section — Explore All Services (brand primary, no skeuomorphic secondary) */
.frameflow-light.home-page .section-services .ff-services-explore {
  margin-top: clamp(36px, 4vw, 48px);
}

.frameflow-light.home-page .section-services .ff-services-explore__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 32px !important;
  border-radius: var(--ff-btn-radius, 5px) !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  background: var(--ff-brand-gradient) !important;
  background-color: #432691 !important;
  background-image: var(--ff-brand-gradient) !important;
  border: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 22px -8px rgba(33, 18, 71, 0.38) !important;
  transform: none !important;
}

.frameflow-light.home-page .section-services .ff-services-explore__btn:hover {
  background: var(--ff-brand-gradient-hover) !important;
  background-color: #4d2c9e !important;
  background-image: var(--ff-brand-gradient-hover) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 12px 28px -8px rgba(67, 38, 146, 0.42) !important;
  transform: translateY(-1px) !important;
}

.frameflow-light.home-page .section-services .ff-services-explore__btn:active {
  transform: translateY(0) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 4px 12px -4px rgba(33, 18, 71, 0.32) !important;
}

@media (max-width: 767px) {
  .frameflow-light.home-page .section-services .ff-services-explore__btn {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
  }
}

/* Dark brand surfaces — white headings (override global ink typography) */
.frameflow-light.home-page .ff-cta-department__title,
.frameflow-light.home-page .ff-services-pricing-teaser__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  background-image: none !important;
}
