/* ==========================================================================
   Cross-Border Influence Diagnostic — standalone landing page
   Self-contained. Reuses the Yingfluence :root design tokens and site idioms
   (Montserrat, teal/blue gradient, section-label/rule, .fi fade-ins).
   Light theme only — funnel page kept lean.
   ========================================================================== */

:root {
  --teal: #1EA382;
  --blue: #2437C3;
  --sky: #0071BC;
  --green: #31B466;
  --amber: #F5A321;
  --coral: #F15A24;
  --near-white: #F6F7FB;
  --border: #E1E4EA;
  --mid-grey: #4F555D;
  --dark: #1F2328;
  --white: #ffffff;
  --surface: #ffffff;
  --ink: #16191F;
  --grad: linear-gradient(135deg, #1EA382 0%, #0071BC 50%, #2437C3 100%);
  --grad-bright: linear-gradient(90deg, #1EA382 0%, #31B466 50%, #0071BC 100%);
  --font: 'Montserrat', sans-serif;
  --max: 1140px;
  --pad: clamp(1.5rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--near-white);
  color: var(--dark);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
p { font-weight: 500; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
main section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* Shared type idioms ------------------------------------------------------ */
.section-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.75rem; display: block;
}
.section-rule {
  width: 48px; height: 3px; background: var(--grad);
  margin: 1rem 0 2.5rem; border-radius: 2px;
}
.eyebrow {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; color: var(--dark);
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--dark);
}
h3 { font-weight: 700; letter-spacing: -0.01em; }

/* Buttons ----------------------------------------------------------------- */
.btn-grad {
  display: inline-block; background: var(--grad); color: var(--white);
  padding: 0.85rem 1.7rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s; font-family: var(--font);
}
.btn-grad:hover { opacity: 0.88; transform: translateY(-1px); }

/* Fade-in on scroll ------------------------------------------------------- */
.fi, .fi2, .fi3 {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fi2 { transition-delay: 0.1s; }
.fi3 { transition-delay: 0.2s; }
.fi.vis, .fi2.vis, .fi3.vis { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fi, .fi2, .fi3 { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Brand bar --------------------------------------------------------------- */
.brandbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brandbar-inner {
  height: 62px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.brand-name { font-size: 0.86rem; font-weight: 700; color: var(--dark); }
.brand-cn { font-weight: 500; color: var(--mid-grey); margin-left: 0.15rem; }
.brandbar-cta {
  font-size: 0.78rem; font-weight: 700; color: var(--teal);
  letter-spacing: 0.02em; border: 1.5px solid var(--teal);
  padding: 0.42rem 1rem; border-radius: 4px; transition: background 0.2s, color 0.2s;
}
.brandbar-cta:hover { background: var(--teal); color: var(--white); }
@media (max-width: 560px) { .brandbar-cta { display: none; } }

/* Hero -------------------------------------------------------------------- */
.hero { padding: clamp(3.4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: 1.3rem; }
.hero-sub {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem); font-weight: 500;
  color: var(--mid-grey); line-height: 1.65; max-width: 640px;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.microtrust {
  font-size: 0.78rem; font-weight: 600; color: var(--mid-grey);
  letter-spacing: 0.02em;
}

/* Pain -------------------------------------------------------------------- */
.pain { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.pain-item {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2.4rem);
  align-items: start; padding: 1.8rem 0; border-top: 1px solid var(--border);
}
.pain-item:first-child { border-top: none; }
.pain-num {
  font-size: 1.1rem; font-weight: 700; color: var(--teal);
  letter-spacing: 0.05em; padding-top: 0.15rem;
}
.pain-item p { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--dark); line-height: 1.65; max-width: 760px; }
.pain-item em { font-style: italic; color: var(--teal); font-weight: 600; }

/* Dimensions -------------------------------------------------------------- */
.dim-list { display: flex; flex-direction: column; }
.dim {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 3vw, 2.2rem);
  align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--border);
}
.dim:first-child { border-top: none; }
.dim-num {
  font-size: 1.6rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  min-width: 1.4rem;
}
.dim-body h3 { font-size: 1.14rem; color: var(--dark); margin-bottom: 0.35rem; }
.dim-body p { font-size: 0.95rem; color: var(--mid-grey); line-height: 1.6; max-width: 720px; }

/* Steps ------------------------------------------------------------------- */
.steps { background: var(--surface); border-top: 1px solid var(--border); }
.step-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.step { padding-top: 1.1rem; border-top: 3px solid var(--teal); }
.step-num {
  display: block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem;
}
.step p { font-size: 0.95rem; color: var(--dark); line-height: 1.65; font-weight: 500; }
@media (max-width: 760px) { .step-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Diagnostic embed -------------------------------------------------------- */
.diagnostic { scroll-margin-top: 72px; }
.diagnostic-lead {
  font-size: 1rem; color: var(--mid-grey); line-height: 1.7;
  max-width: 640px; margin-bottom: 2.2rem;
}
.embed-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(20,30,60,0.06);
}
#tally-embed { display: block; width: 100%; min-height: 720px; border: 0; }
.embed-fallback { padding: 2rem; font-size: 0.92rem; color: var(--mid-grey); }
.embed-fallback a { color: var(--teal); font-weight: 700; }

/* Paid offer -------------------------------------------------------------- */
.offer { background: var(--near-white); }
.offer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--teal); border-radius: 10px;
  padding: clamp(1.9rem, 4.5vw, 3.4rem); max-width: 780px; margin: 0 auto;
}
.offer-card h2 { margin-bottom: 0.4rem; }
.offer-price {
  font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 1.4rem;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.offer-copy { font-size: 0.98rem; color: var(--dark); line-height: 1.75; margin-bottom: 1.2rem; }
.offer-sub { font-size: 0.9rem; color: var(--mid-grey); line-height: 1.7; font-style: italic; margin-bottom: 1.9rem; }

/* About ------------------------------------------------------------------- */
.about { background: var(--surface); border-top: 1px solid var(--border); }
.about-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  aspect-ratio: 4 / 5; object-fit: cover; background: var(--near-white);
}
.about-photo-tag {
  position: absolute; left: 0.8rem; bottom: 0.8rem;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  background: var(--coral); padding: 0.3rem 0.6rem; border-radius: 4px;
}
.about-cn { font-weight: 500; color: var(--mid-grey); font-size: 0.7em; }
.about-body p { font-size: 0.98rem; color: var(--dark); line-height: 1.75; margin-bottom: 1rem; }
.about-placeholder-note {
  font-size: 0.82rem !important; color: var(--coral) !important;
  background: rgba(241,90,36,0.06); border: 1px dashed var(--coral);
  border-radius: 6px; padding: 0.7rem 0.9rem; line-height: 1.5;
}
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

/* FAQ --------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; max-width: 820px; }
.faq-item {
  border-top: 1px solid var(--border); padding: 0.3rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; font-size: 1.02rem; font-weight: 700;
  color: var(--dark); padding: 1.15rem 2.2rem 1.15rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%); font-size: 1.3rem; font-weight: 400;
  color: var(--teal); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  font-size: 0.94rem; color: var(--mid-grey); line-height: 1.7;
  padding-bottom: 1.2rem; max-width: 720px;
}

/* Footer ------------------------------------------------------------------ */
footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-brand { font-size: 0.9rem; font-weight: 700; color: var(--white); }
.footer-brand span { font-weight: 500; color: rgba(255,255,255,0.7); }
.footer-nav {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-size: 0.82rem; font-weight: 600;
}
.footer-nav a { color: rgba(255,255,255,0.72); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-privacy { font-size: 0.76rem; color: rgba(255,255,255,0.5); font-weight: 500; }
