/* Visual upgrade v1 — conversion polish, no SEO/meta changes */

/* ── Trust pills (homepage hero) ── */
body.magazine-home .hero-trust-pills {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.magazine-home .hero-trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 241, 233, 0.22);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 233, 0.88);
  background: rgba(14, 13, 11, 0.35);
  backdrop-filter: blur(6px);
}
body.magazine-home .hero-trust-pills .pill-gold {
  border-color: rgba(184, 146, 75, 0.55);
  color: var(--bronze);
}

/* ── Audience path cards ── */
body.magazine-home .audience-paths {
  padding: 0 var(--gut) 72px;
  background: var(--ink);
  color: var(--cream);
  margin-top: -1px;
}
body.magazine-home .audience-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
body.magazine-home .aud-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border: 1px solid rgba(244, 241, 233, 0.14);
  background: rgba(244, 241, 233, 0.04);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
body.magazine-home .aud-card:hover {
  border-color: rgba(184, 146, 75, 0.55);
  background: rgba(184, 146, 75, 0.08);
  transform: translateY(-2px);
}
body.magazine-home .aud-card b {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
}
body.magazine-home .aud-card span {
  font-size: 13px;
  color: rgba(244, 241, 233, 0.62);
  line-height: 1.45;
}
body.magazine-home .aud-card em {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-style: normal;
}

/* ── Pain strip ── */
body.magazine-home .pain-strip {
  background: var(--cream2);
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  padding: 56px var(--gut);
}
body.magazine-home .pain-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
body.magazine-home .pain-strip h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 28px;
  max-width: 720px;
}
body.magazine-home .pain-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
body.magazine-home .pain-item-v {
  padding: 22px 20px;
  background: var(--cream);
  border: 1px solid var(--ink-10);
  border-left: 3px solid #c0392b;
}
body.magazine-home .pain-item-v h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
body.magazine-home .pain-item-v p {
  font-size: 14.5px;
  color: var(--ink-70);
  line-height: 1.55;
}

/* ── Mid-page CTA band ── */
body.magazine-home .cta-band {
  background: linear-gradient(135deg, #1a1510 0%, var(--ink) 100%);
  color: var(--cream);
  padding: 64px var(--gut);
  text-align: center;
  border-top: 1px solid rgba(184, 146, 75, 0.25);
  border-bottom: 1px solid rgba(184, 146, 75, 0.25);
}
body.magazine-home .cta-band h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 12px;
}
body.magazine-home .cta-band p {
  color: rgba(244, 241, 233, 0.68);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* ── Work grid 6-col on large ── */
body.magazine-home .workgrid.six {
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 1100px) {
  body.magazine-home .workgrid.six {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ── Footer credentials strip ── */
.footer-creds {
  border-top: 1px solid var(--ink-10);
  padding: 22px 0 8px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.footer-creds span {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-creds .fc-gold {
  color: var(--bronze-d);
  font-weight: 600;
}

/* ── Primary CTA emphasis ── */
body.magazine-home .btn-b.btn-wa,
.cta-band .btn-b.btn-wa {
  background: #1a9e4a;
  color: #fff;
}
body.magazine-home .btn-b.btn-wa:hover,
.cta-band .btn-b.btn-wa:hover {
  background: #158a40;
  color: #fff;
}

/* ── Portfolio stats fallback ── */
.pf-stat-num[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ── Matrix LP: mobile comparison cards ── */
@media (max-width: 768px) {
  .compare-wrapper {
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    margin-bottom: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  .compare-table td {
    border: none;
    padding: 10px 14px;
    border-bottom: 1px solid #f0ece4;
  }
  .compare-table td:last-child {
    border-bottom: none;
  }
  .compare-table td.feature {
    background: var(--dark, #1a1a1a);
    color: #fff;
    font-size: 0.92rem;
    padding: 12px 14px;
  }
  .compare-table td:nth-child(2)::before {
    content: "First Unicorn: ";
    font-weight: 700;
    color: var(--bronze);
  }
  .compare-table td:nth-child(3)::before {
    content: "Typical provider: ";
    font-weight: 600;
    color: #888;
  }
}

/* ── Matrix: portfolio card polish ── */
.port-img img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.port-card:hover .port-img img,
.portfolio-card:hover .port-img img {
  transform: scale(1.03);
}

/* ── About founder card ── */
.founder-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
  background: var(--cream2, #ebe6db);
  border: 1px solid rgba(14, 13, 11, 0.1);
}
.founder-card img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
}
.founder-card h3 {
  font-family: var(--fd, "Cormorant Garamond", serif);
  font-size: 28px;
  margin-bottom: 8px;
}
.founder-card .fc-role {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze, #b8924b);
  margin-bottom: 12px;
}
.founder-card p {
  font-size: 15px;
  color: var(--ink-70, rgba(14, 13, 11, 0.7));
  line-height: 1.65;
}
@media (max-width: 700px) {
  body.magazine-home .audience-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  body.magazine-home .pain-grid-3 {
    grid-template-columns: 1fr;
  }
  .founder-card {
    grid-template-columns: 1fr;
  }
  .founder-card img {
    width: 100%;
    height: 220px;
  }
}
@media (max-width: 480px) {
  body.magazine-home .audience-inner {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-28 final FUI alignment + contrast guardrail.
   This file loads after the bridge/contrast sheets, so these rules settle the cascade. */
:root{
  --fui-ink:#0E0D0B;
  --fui-cream:#F4F1E9;
  --fui-copy:rgba(14,13,11,.76);
  --fui-bronze-aa:#6E501C;
  --fui-bronze-dark:#D7B66F;
  --fui-cream-soft:rgba(244,241,233,.84);
}

body :is(.label,.eyebrow,.badge,.badge-text,.section-kicker,.duration,.v3ws-label,.ai-answer-meta,dt,.ghc-type,.lb-tag,.tl-week,.stat-num,.stat-number,.v2-stat-number,.trust-check,.process-step .step-number,.step .no),
body [style*="color:#B8924B" i],
body [style*="color: #B8924B" i],
body [style*="color:#95773A" i],
body [style*="color: #95773A" i]{
  color:var(--fui-bronze-aa)!important;
}

body :is(.hero,.page-hero,.community-hero,.service-hero,.g-hero,.guide-hero,.article-hero,.appr,.cta,.cta-band,.final-cta,.cta-block,.lp-final-cta) :is(.label,.eyebrow,.section-kicker,.hero-kicker,h1 em,h1 span,h2 em,h2 span),
body.magazine-home :is(.hero,.appr,.cta,.cta-band) :is(.label,.eyebrow,.section-kicker,.hero-kicker,h1 em,h1 span,h2 em,h2 span){
  color:var(--fui-bronze-dark)!important;
}

body:not(.magazine-home) .hero:not(.hero-l):not(.hero-r) :is(h1,h2,h3,h4,.section-title),
body :is(.page-hero,.community-hero,.service-hero,.g-hero,.guide-hero,.article-hero,.appr,.cta,.cta-band,.final-cta,.cta-block,.lp-final-cta) :is(h1,h2,h3,h4,.section-title){
  color:var(--fui-cream)!important;
}

body:not(.magazine-home) .hero:not(.hero-l):not(.hero-r) :is(p,li,span,small,.hero-sub,.breadcrumb,.breadcrumb a),
body :is(.page-hero,.community-hero,.service-hero,.g-hero,.guide-hero,.article-hero,.appr,.cta,.cta-band,.final-cta,.cta-block,.lp-final-cta) :is(p,li,span,small,.micro,.final-phone,.breadcrumb,.breadcrumb a){
  color:var(--fui-cream-soft)!important;
}

body :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap){
  background:linear-gradient(to top,rgba(14,13,11,.88),rgba(14,13,11,.6) 58%,rgba(14,13,11,.24))!important;
  color:var(--fui-cream)!important;
  text-align:center!important;
}
body :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap) :is(h1,h2,h3,h4,p,span,b,strong){
  color:var(--fui-cream)!important;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap) p{
  color:var(--fui-cream-soft)!important;
}

main section p,
body.v3m main p,
body.v3m section p,
.article-body p,
.guide-body p,
.community-body p,
.g-body p,
.body p,
section:not(.footer):not(.seo-directory) :is(h3,h4),
.section-header,
.section-header p,
.hero-content,
.hero-content p,
.hero-text,
.hero-text p,
.page-hero-content,
.page-hero-content p,
.community-hero-content,
.community-hero-content p,
.service-hero-content,
.service-hero-content p,
.guide-hero-content,
.guide-hero-content p,
.article-hero-content,
.article-hero-content p,
.ai-rescue,
.ai-rescue-answer,
.ai-rescue-tldr,
.ai-summary,
.ai-quick-answers,
.v3m-ai-summary,
.v3m-facts,
.fui-testimonials,
.fui-testimonials p{
  text-align:center!important;
  text-justify:auto!important;
  hyphens:manual!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.ai-rescue,
.ai-rescue-answer,
.ai-rescue-tldr,
.ai-summary,
.ai-quick-answers,
.v3m-ai-summary,
.v3m-facts{
  max-width:820px!important;
}

body.magazine-home .hero .hero-l .hero-ctas,
body.magazine-home .hero .hero-l .hero-trust{
  justify-content:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

.footer,
.footer :is(.footer-brand,.footer-col,.footer-communities,.footer-bottom){
  text-align:center!important;
}
.footer-top,
.footer-communities-grid{
  justify-items:center!important;
}
.footer-brand,
.footer-col,
.footer-col a,
.footer-creds,
.footer-more,
.footer-bottom{
  align-items:center!important;
  justify-content:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.footer-brand p,
.footer-col a,
.footer-communities-grid a,
.footer-more a,
.footer-bottom{
  color:var(--fui-copy)!important;
}

body :is(.btn-primary,.nav-cta,.pkg-cta,.lp-cta,.ec-btn,.ep-btn,.g-btn,.qf-submit,.gf-submit){
  background:var(--fui-bronze-aa)!important;
  color:#fff!important;
}
body :is(.btn-primary,.nav-cta,.pkg-cta,.lp-cta,.ec-btn,.ep-btn,.g-btn,.qf-submit,.gf-submit):hover{
  background:#5E4316!important;
  color:#fff!important;
}
body.magazine-home .btn-b.btn-wa,
.cta-band .btn-b.btn-wa,
.btn-wa{
  background:#0E7F3A!important;
  color:#fff!important;
}

body.v3m:not(.portfolio-case) :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap){
  background:linear-gradient(to top,rgba(14,13,11,.88),rgba(14,13,11,.6) 58%,rgba(14,13,11,.24))!important;
  color:var(--fui-cream)!important;
}
body.v3m:not(.portfolio-case) :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap) :is(h1,h2,h3,h4,p,span,b,strong){
  color:var(--fui-cream)!important;
  text-align:center!important;
}
body.v3m:not(.portfolio-case) :is(.gallery-card-overlay,.community-card-overlay,.portfolio-item-overlay,.portfolio-card-overlay,.cap) p{
  color:var(--fui-cream-soft)!important;
}

body .nav .nav-cta,
body .nav-links .nav-cta{
  background:var(--fui-bronze-aa)!important;
  color:#fff!important;
}
body .nav .nav-cta:hover,
body .nav-links .nav-cta:hover{
  background:#5E4316!important;
  color:#fff!important;
}

.ai-rescue,
body.v3m .ai-rescue{
  display:grid!important;
  grid-template-columns:minmax(0,820px)!important;
  justify-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.ai-rescue-answer,
.ai-rescue-tldr{
  width:100%!important;
  justify-self:center!important;
}

.footer-top .footer-brand{
  grid-column:1/-1!important;
  justify-self:center!important;
  max-width:560px!important;
  width:100%!important;
}
.footer-brand .nav-brand-link{
  justify-content:center!important;
}

/* Final readability guardrails for image-backed articles and pale answer cards */
body .article-hero :is(h1,h2,p,.article-meta){
  color:#F4F1E9!important;
  text-shadow:0 2px 18px rgba(0,0,0,.55)!important;
}
body .article-hero .v3m-hm ~ * :is(h1,h2,p,.article-meta),
body.v3m .article-hero .v3m-hm ~ * :is(h1,h2,p,.article-meta){
  color:#F4F1E9!important;
  text-shadow:0 2px 18px rgba(0,0,0,.65)!important;
}
body .article-hero :is(.article-meta, [style*="letter-spacing"]){
  color:rgba(244,241,233,.78)!important;
}
body :is(.ai-answer,.ai-rescue-answer,.ai-rescue-tldr,.ai-summary,.ai-quick-answers){
  color:#1A1A1A!important;
}
body :is(.ai-answer,.ai-rescue-answer,.ai-rescue-tldr,.ai-summary,.ai-quick-answers) :is(p,li,dt,dd,span,strong,b){
  color:#1A1A1A!important;
}
