/* ============================================================
   VividCharts — ReportFlow detail / landing page template
   Builds on styles.css tokens. Conversion-focused layout.
   ============================================================ */

/* ---- Breadcrumb ---- */
.rf-crumb { padding-top: 28px; }
.rf-crumb .wrap { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); flex-wrap: wrap; }
.rf-crumb a, .rf-crumb .cur, .rf-crumb .sep { white-space: nowrap; }
.rf-crumb a { color: var(--ink-3); }
.rf-crumb a:hover { color: var(--brand-strong); }
.rf-crumb .sep { color: var(--line-strong); }
.rf-crumb .cur { color: var(--ink); }

/* ---- Hero ---- */
.rf-hero { padding: 30px 0 64px; position: relative; overflow: hidden; }
.rf-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.rf-tag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-tint); padding: 5px 11px; border-radius: var(--r-sm);
}
.rf-hero h1 { font-size: clamp(30px, 3.7vw, 46px); margin-top: 18px; max-width: 16ch; line-height: 1.08; }
.rf-hero .rf-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.55; margin-top: 18px; max-width: 52ch; }
.rf-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
/* Hero email capture (See it live) */
.rf-hero-cta { margin-top: 30px; max-width: 480px; }
.rf-hero-cta .sbx-form .btn-brand { white-space: nowrap; }
.rf-hero-demo { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--ink-3); }
.rf-hero-demo:hover { color: var(--brand-strong); }
.rf-trust { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); font-weight: 500; flex-wrap: wrap; }
.rf-trust .stars { display: inline-flex; gap: 2px; color: var(--brand); }
.rf-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
@media (max-width: 920px) {
  .rf-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .rf-hero h1 { max-width: 20ch; }
}

/* ---- Report mock (reusable visual) ---- */
.rf-report {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.rf-rep-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--light-cream);
}
.rf-rep-top .dots { display: flex; gap: 6px; }
.rf-rep-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.rf-rep-top .ttl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rf-rep-top .now { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.rf-rep-top .now .snow { background: var(--dark-blue); color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 9px; }
.rf-rep-body { padding: 20px; }
/* real product screenshot inside the report window frame (VIV-2804) —
   keeps the .rf-report chrome/shadow so it still reads as a live product window;
   transparent NoBackground PNG sits on the white body */
.rf-shot-body { padding: 18px; display: grid; place-items: center; }
.rf-shot { display: block; width: 100%; max-width: 100%; height: auto; }
.rf-rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rf-rep-head h4 { font-size: 17px; }
.rf-rep-head .scope { font-size: 11.5px; color: var(--ink-3); display: block; margin-top: 3px; }
.rf-status { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.rf-status.ok { color: #1f8f7a; background: rgba(63,193,199,.16); }
.rf-rep-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.rf-mini-kpi { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; }
.rf-mini-kpi .l { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.rf-mini-kpi .v { font-size: 20px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rf-mini-kpi .v small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
/* gantt */
.rf-gantt { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; position: relative; }
.rf-gantt .gtitle { font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.rf-grow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin-bottom: 9px; }
.rf-grow:last-child { margin-bottom: 0; }
.rf-grow .glbl { font-size: 11px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-track { position: relative; height: 12px; background: var(--cream); border-radius: 6px; }
.rf-bar2 { position: absolute; top: 0; height: 12px; border-radius: 6px; width: 0; transition: width .9s var(--ease); }
.rf-bar2.teal { background: var(--brand); }
.rf-bar2.gray { background: var(--line-strong); }
.rf-report.in .rf-bar2 { width: var(--w); }
.rf-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--brand-strong); opacity: .5; }

/* ---- Outcome stat strip ---- */
.rf-stats { background: var(--dark-blue); }
.rf-stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.rf-stat { text-align: center; position: relative; }
.rf-stat + .rf-stat::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.14); }
.rf-stat .num { font-size: clamp(34px, 4vw, 50px); font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.rf-stat .num .u { color: var(--brand); }
.rf-stat .lbl { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 12px; line-height: 1.45; max-width: 26ch; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .rf-stats .wrap { grid-template-columns: 1fr; gap: 32px; } .rf-stat + .rf-stat::before { display: none; } }

/* ---- Problem ---- */
.rf-problem .wrap { max-width: 820px; }
.rf-problem h2 { font-size: clamp(26px, 3vw, 38px); }
.rf-lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); line-height: 1.5; margin-top: 20px; font-weight: 500; }
.rf-problem p { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin-top: 16px; }
.rf-problem .punch { color: var(--ink); font-weight: 600; }

/* ---- Features ---- */
.rf-features { background: var(--light-cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rf-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 880px) { .rf-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rf-feat-grid { grid-template-columns: 1fr; } }
.rf-feat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.rf-feat .fic { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 16px; }
.rf-feat .fic svg { width: 22px; height: 22px; }
.rf-feat h3 { font-size: 16px; }
.rf-feat p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }

/* ---- Benefits ---- */
.rf-ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
@media (max-width: 800px) { .rf-ben-grid { grid-template-columns: 1fr; gap: 24px; } }
.rf-ben { border-top: 3px solid var(--brand); padding-top: 20px; }
.rf-ben h3 { font-size: 19px; }
.rf-ben p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-top: 10px; }

/* ---- Mid CTA with visual ---- */
.rf-showcase .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .rf-showcase .wrap { grid-template-columns: 1fr; gap: 36px; } }
.rf-showcase h2 { font-size: clamp(24px, 2.6vw, 34px); max-width: 16ch; }
.rf-showcase p { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-top: 16px; max-width: 46ch; }
.rf-showcase .rf-actions { margin-top: 26px; }

/* ---- Social proof ---- */
.rf-proof { background: var(--dark-blue); color: #fff; }
.rf-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.rf-quote .stars { display: inline-flex; gap: 3px; color: var(--brand); margin-bottom: 22px; }
.rf-quote blockquote { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.rf-quote .who { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.66); font-weight: 600; }
.rf-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.rf-word { font-size: 13px; font-weight: 600; white-space: nowrap; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; }
.rf-word.hl { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }

/* ---- Resources ---- */
.rf-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 820px) { .rf-res-grid { grid-template-columns: 1fr; } }
.rf-res {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.rf-res:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.rf-res .rtype { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); padding: 18px 20px 0; }
.rf-res h4 { font-size: 16px; padding: 8px 20px 0; line-height: 1.3; }
.rf-res p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; padding: 8px 20px 22px; }

/* ---- Book a demo ---- */
.rf-demo { background: var(--light-cream); border-top: 1px solid var(--line); }
.rf-demo .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .rf-demo .wrap { grid-template-columns: 1fr; gap: 32px; } }
.rf-demo h2 { font-size: clamp(26px, 3vw, 38px); }
.rf-demo .rf-sub { font-size: 17px; color: var(--ink-2); margin-top: 16px; line-height: 1.55; }
.rf-demo ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.rf-demo li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.rf-demo li svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.rf-demo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 32px; }
.rf-demo-card h3 { font-size: 19px; }
.rf-card-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
.rf-demo-trigger { margin-top: 18px; width: 100%; justify-content: center; }
.rf-demo-alt { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--brand-strong); }
.rf-demo-alt:hover { text-decoration: underline; }
.rf-demo-card .rf-actions { margin-top: 20px; flex-direction: column; align-items: stretch; }
.rf-demo-card .btn { justify-content: center; }
.rf-demo-card .fine { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* ---- Sticky CTA bar ---- */
.rf-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(35,34,45,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.rf-sticky.show { transform: none; }
.rf-sticky .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.rf-sticky .st-name { color: #fff; font-weight: 700; font-size: 15px; }
.rf-sticky .st-name span { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
.rf-sticky .st-cta { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 600px) {
  .rf-sticky .st-name span { display: none; }
  .rf-sticky .st-cta .btn-ghost { display: none; }
  .rf-sticky .st-cta { flex: 1; }
  .rf-sticky .st-cta .btn { flex: 1; justify-content: center; }
}

.rf-section-narrow .wrap { max-width: 980px; }
