/* ===================================================================
   My Trusted Share — Landing Page
   Production stylesheet (responsive: mobile + desktop in one file)
   Desktop layout applies at >= 1024px; mobile layout below.
   Font: Plus Jakarta Sans
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* surfaces */
  --bg: #FCFAF7;
  --bg-merge: #EDEAE3;       /* neutral band behind mobile sections */
  --card: #ffffff;
  --card-border: #EFEDE6;

  /* text */
  --ink: #191A17;           /* primary headings */
  --ink-2: #22241D;
  --body: #5C605A;          /* body copy / descriptions (weight 500) */
  --label: #8A8F88;         /* field labels / small captions */
  --eyebrow: #9AA098;       /* eyebrow labels, dividers */

  /* greens */
  --green: #2E9E4F;         /* primary accent */
  --green-deep: #0E5B2F;    /* CTA buttons */
  --green-text: #1C7A3A;    /* dark text-green */
  --green-mid: #2E8B4E;     /* accent text / partner label */
  --green-soft: #E7F1E9;    /* soft green chip bg */
  --green-soft-border: #D6E7DA;

  /* other accents used in mock UI */
  --orange: #EE5A1E;
  --blue: #2563EB;
  --purple: #7C3AED;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 14px 34px rgba(22,60,35,0.10), 0 4px 10px rgba(22,60,35,0.05);
  --shadow-float: 0 16px 36px rgba(20,40,25,0.10);

  --maxw: 1448px;           /* max content width on desktop */
  --gutter: 44px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 44px;
}
.section { width: 100%; }

/* Self-contained illustration that scales fluidly to its container width.
   The inner .stage is authored at a fixed pixel size; script.js (fitStages)
   transform-scales it to the wrapper width. data-w = design width in px. */
.fluid-stage { width: 100%; overflow: hidden; }
.fluid-stage > .stage { transform-origin: top left; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: none; border-radius: 12px; line-height: 1.1;
}
.btn-primary {
  background: var(--green-deep); color: #fff;
  box-shadow: 0 12px 26px rgba(14,91,47,0.22);
}
.btn-secondary {
  background: #fff; color: #1E2620; border: 1.5px solid #E2E0D7;
}

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header { background: var(--bg); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 28px; padding-bottom: 8px;
}
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--green-mid);
  height: 80px; min-width: 200px;
}
.brand-logo img { height: 100%; width: auto; }

.nav-cluster { display: flex; align-items: center; gap: 36px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #3A3D38; font-weight: 600; font-size: 15px; text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green-deep); }
.header-cta { font-size: 15px; padding: 13px 21px; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 11px;
  background: #fff; border: 1px solid #E7E5DD; color: #33372F;
  align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.mobile-menu {
  display: none;
  position: absolute; right: 22px; top: 70px; z-index: 60;
  background: #fff; border: 1px solid #E7E5DD; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(22,60,35,0.16), 0 4px 10px rgba(22,60,35,0.07);
  padding: 8px; min-width: 220px; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px;
  padding: 12px 14px; border-radius: 9px;
}
.mobile-menu a:hover { background: #F2F8F3; color: var(--green-deep); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero .container { padding-top: 36px; padding-bottom: 16px; }
.hero { overflow-x: clip; }
.hero-grid {
  display: flex; align-items: center; gap: var(--gutter);
}
.hero-copy { flex: 1 1 0; min-width: 0; }
.hero-visual-col { flex: none; width: 790px; max-width: 52%; }

.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green-soft); border: 1px solid var(--green-soft-border);
  color: var(--green-mid); font-weight: 600; font-size: 14px;
  padding: 8px 15px; border-radius: 999px; margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(34px, 3.4vw, 52px); line-height: 1.12; margin-bottom: 26px;
}
.hero h1 .u-green { position: relative; color: var(--green-mid); white-space: nowrap; }
.hero h1 .u-green svg { position: absolute; left: -3px; bottom: -8px; width: 104%; height: 15px; overflow: visible; }
.hero h1 .u-orange { color: var(--orange); }
.hero-lede {
  font-size: 18px; line-height: 1.62; color: var(--body); font-weight: 500;
  max-width: 470px; margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 17px; padding: 18px 26px; }

.hero-trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 9px; }
.trust-item .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 29px; height: 29px; flex: none; border-radius: 50%;
  background: var(--green-soft); color: var(--green-mid);
}
.trust-item span:last-child { font-size: 14px; font-weight: 600; color: #3A3D38; white-space: nowrap; }

/* Hero network stage (desktop comp authored at 790x665).
   Unlike the other scaled illustrations, the hero's floating cards have
   soft drop-shadows and a radial glow that intentionally bleed past the
   790x665 box — so this stage must NOT clip (the global .fluid-stage
   overflow:hidden would chop them at all four edges). The hero section
   clips on the X axis only (below) to prevent horizontal page scroll. */
.hero-stage-desktop { overflow: visible; }
.hero-stage-desktop > .stage { width: 790px; height: 665px; overflow: visible; }
.hero-stage-mobile { display: none; overflow: visible; }

/* mobile chip-style trust badges + activity feed (hidden on desktop) */
.hero-trust-badges, .hero-activity { display: none; }

/* =====================================================================
   TRUSTED-BY STRIP
   ===================================================================== */
.trusted {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid #F3F1EA;
  box-shadow: 0 18px 48px rgba(20,40,25,0.045); padding: 34px 56px; margin-top: 40px;
}
.trusted-title { text-align: center; color: var(--green-mid); font-weight: 700; font-size: 17px; margin-bottom: 26px; }
.trusted-logos { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #A6ADA3; flex-wrap: wrap; }
.trusted-logos .logo { display: flex; align-items: center; gap: 11px; }
.trusted-logos .logo span { font-weight: 700; font-size: 15px; letter-spacing: 0.8px; line-height: 1.15; }

/* =====================================================================
   RESPONSIVE — MOBILE (< 1024px)
   ===================================================================== */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }

  /* header: hide desktop nav + cta, show hamburger */
  .nav-cluster { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { position: relative; padding-top: 20px; }
  .brand-logo { height: 64px; min-width: 0; }

  /* hero: single column, centered */
  .hero .container { padding-top: 8px; }
  .hero-grid { flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { text-align: center; }
  .eyebrow-chip { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .hero-lede { font-size: 15.5px; line-height: 1.6; margin: 0 auto 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; font-size: 16px; padding: 16px; }

  /* swap trust row for centered chip badges */
  .hero-trust-row { display: none; }
  .hero-trust-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    max-width: 340px; margin: 0 auto;
  }
  .hero-trust-badges .badge {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid #E6EDE3; border-radius: 999px; padding: 8px 15px 8px 9px;
    box-shadow: 0 2px 8px rgba(20,40,25,0.04);
  }
  .hero-trust-badges .badge .tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex: none; border-radius: 50%;
    background: var(--green-soft); color: var(--green-mid);
  }
  .hero-trust-badges .badge span:last-child { font-size: 14px; font-weight: 600; color: #3A3D38; white-space: nowrap; }

  /* hero visual: hide desktop comp, show mobile comp */
  .hero-visual-col { width: 100%; max-width: none; margin-top: 20px; }
  .hero-stage-desktop { display: none; }
  .hero-stage-mobile { display: block; overflow: visible; }
  .hero-stage-mobile { max-width: 360px; margin: 0 auto; }
  .hero-stage-mobile > .stage { width: 360px; height: 384px; overflow: visible; }

  /* activity feed (mobile only) */
  .hero-activity { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 6px; }
  .hero-activity .feed-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 2px; }
  .hero-activity .feed-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-mid); box-shadow: 0 0 0 4px rgba(46,139,78,0.14); }
  .hero-activity .feed-head span:last-child { font-size: 13px; font-weight: 700; color: var(--green-text); letter-spacing: 0.2px; }
  .hero-activity .feed-card { background: #fff; border-radius: 17px; box-shadow: 0 10px 26px rgba(20,40,25,0.07); border: 1px solid var(--card-border); padding: 16px; }

  /* trusted strip: wrap logos */
  .trusted { padding: 26px 22px; }
  .trusted-logos { justify-content: center; gap: 20px 28px; }
}

/* =====================================================================
   BEFORE vs AFTER  (#why)
   Desktop = scaled 1640px canvas; mobile = stacked column.
   ===================================================================== */
.bva { background: var(--bg); }
.bva .container { padding-top: 64px; padding-bottom: 24px; }
.bva-desktop > .stage { width: 1640px; }
.bva-mobile { display: none; }

@media (max-width: 1023px) {
  .bva .container { padding-top: 40px; }
  .bva-desktop { display: none; }
  .bva-mobile { display: block; max-width: 402px; margin: 0 auto; }
}

/* tablet sweet-spot: keep desktop hero readable as it narrows */
@media (min-width: 1024px) and (max-width: 1320px) {
  .hero-visual-col { width: 46%; }
  .hero h1 { font-size: clamp(34px, 3.2vw, 46px); }
}


/* =====================================================================
   ASSEMBLED SECTIONS (How It Works, Benefits, Pricing, FAQ, Footer)
   Desktop = scaled fixed-px canvas; mobile = stacked column.
   ===================================================================== */
.secblock { background: var(--bg); }
.sec-desktop { display: block; }
.sec-mobile { display: none; }
@media (max-width: 1023px) {
  .secblock .container { padding-left: 0; padding-right: 0; }
  .sec-desktop { display: none; }
  .sec-mobile { display: block; }
}

/* =====================================================================
   FAQ accordion (single-open; script.js toggles .open on .faq-item)
   ===================================================================== */
/* =====================================================================
   FAQ accordion (single-open) — smooth slide + fade, mirroring the
   original DC: the answer is a grid whose single row animates from
   0fr (collapsed) to 1fr (open); the inner wrapper fades + lifts.
   script.js toggles .open on .faq-item.
   ===================================================================== */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .32s ease, transform .42s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer > div { opacity: 1; transform: translateY(0); }
.faq-chev { transition: transform .25s ease; }
.faq-item.open .faq-chev { transform: rotate(180deg); }

/* =====================================================================
   FULL-BLEED canvas sections — the scaled illustration fills the viewport
   edge-to-edge. These sections were authored full-bleed; the max-width
   container was exposing the page background (--bg) as beige side strips.
   Desktop only; mobile keeps its stacked layout.
   ===================================================================== */
@media (min-width: 1024px) {
  .bva .container,
  .secblock .container { max-width: none; padding-left: 0; padding-right: 0; }

  /* Match each section bg to its canvas edge color so any residual gap on
     ultra-wide screens (where zoom is capped) blends instead of showing beige. */
  #why.bva           { background: #FCFAF7; }
  #how.secblock      { background: #FCFAF7; }
  /* Warm-vs-Cold canvas is transparent; the section paints the full-bleed
     radial gradient so ultra-wide screens have no color seam. */
  #benefits.secblock {
    background: radial-gradient(125% 90% at 50% -6%, #FCFAF7 0%, #FCF8F1 38%, #F4F8EE 72%, #E9F3E5 100%);
  }
  /* Pricing canvas is transparent; the section paints the full-bleed
     image + gradients so ultra-wide screens have no color seam. */
  #pricing.secblock {
    background:
      linear-gradient(to bottom, #E9F3E5 0%, rgba(237,241,230,0) 12%),
      linear-gradient(to top, #F6F8F1 0%, rgba(246,248,241,0) 16%),
      #EDF1E6 url('assets/images/vendor-offer/pricing-bg.png') center/cover no-repeat;
  }
  #faq.secblock      { background: #F6F8F1; }
  #footer.secblock   { background: #F4F6EC; }
}
