/* ============================================================
   Free resources — document sheet on dark site + print styles
============================================================ */
.rsc-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.rsc-print { padding: 10px 20px; font-size: 14px; }
.rsc-wrap { padding: 48px 0 70px; }
.rsc-paper {
  /* the docs were authored light — give them their light-theme variables back */
  --text: #3a3960;
  --text-light: #6b6b8d;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  background: #fafafa;
  color: var(--navy);
  max-width: 860px;
  margin: 0 auto;
  border-radius: 18px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.rsc-paper a { color: #0d8385; }
.rsc-paper .btn { text-decoration: none; }
.rsc-note {
  text-align: center; font-size: 13.5px; color: var(--text-dim);
  margin: 22px auto 0; max-width: 860px;
}

/* hub cards */
.rsc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rsc-card {
  display: block; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative; overflow: hidden;
}
.rsc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s ease;
}
.rsc-card:hover { transform: translateY(-5px); border-color: var(--line); }
.rsc-card:hover::before { opacity: 1; }
.rsc-card .tag {
  display: inline-block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.rsc-card h3 { font-size: 20px; margin-bottom: 10px; }
.rsc-card p { font-size: 14.5px; color: var(--text-dim); }
.rsc-card .kick { font-size: 12.5px; color: var(--light-lav); display: block; margin-bottom: 6px; }

@media (max-width: 720px) {
  .rsc-grid { grid-template-columns: 1fr; }
}

/* print: just the sheet, as a clean document */
@media print {
  html, body { background: #fff !important; }
  nav.ea-nav, .ea-hero, .ea-footer, .rsc-note, .ea-overlay, .ea-mobile-menu { display: none !important; }
  body { background: #fff !important; }
  .rsc-wrap { padding: 0; }
  .rsc-paper { box-shadow: none; border-radius: 0; max-width: none; padding: 0; background: #fff; }
  .rsc-paper .cta { page-break-inside: avoid; }
  a { color: inherit; }
}

/* v2.css forces headings white (dark theme) — restore document colors on the sheet */
.rsc-paper h1, .rsc-paper h2, .rsc-paper h3, .rsc-paper h4 { color: var(--navy); }
.rsc-paper h2 .n, .rsc-paper .num { color: #fff; }

/* ============ ROI calculator ============ */
.roi-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.roi-inputs { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; }
.roi-row { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.roi-row:last-of-type { border-bottom: 0; }
.roi-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.roi-row-head label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--white); }
.roi-row-head .val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: var(--teal); white-space: nowrap; }
.roi-row .hint { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; }
.roi-row input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--teal) 0%, var(--teal) var(--pct, 0%), rgba(40,205,207,0.15) var(--pct, 0%));
  outline: none; cursor: pointer;
}
.roi-row input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; border: 3px solid var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,0.4); cursor: grab;
}
.roi-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); cursor: grab;
}
.roi-rate { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.roi-rate label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: var(--white); flex: 1; }
.roi-rate input {
  width: 110px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  color: var(--white); background: rgba(13,12,34,0.6); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; outline: none; text-align: right;
}
.roi-rate input:focus { border-color: var(--teal); }
.roi-results { position: sticky; top: calc(var(--nav-h) + 20px); }
.roi-card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 130% at 85% 0%, rgba(189,83,253,0.2), transparent 55%),
              radial-gradient(120% 130% at 10% 100%, rgba(40,205,207,0.15), transparent 55%), var(--navy);
  padding: 34px;
}
.roi-hero-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-teal); margin-bottom: 6px; }
.roi-hero { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(40px, 4.5vw, 56px); color: var(--white); line-height: 1.05; }
.roi-hero-sub { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }
.roi-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.roi-tile { background: rgba(13,12,34,0.45); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.roi-tile .l { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.roi-tile .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 21px; color: var(--white); }
.roi-save .v { color: var(--teal); }
.roi-meters { margin-top: 6px; }
.roi-meter { margin-bottom: 12px; }
.roi-meter .m-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--light-lav); margin-bottom: 5px; }
.roi-meter .m-track { height: 8px; border-radius: 4px; background: rgba(40,205,207,0.14); overflow: hidden; }
.roi-meter .m-fill { height: 100%; border-radius: 4px; background: var(--teal); transition: width 0.35s ease; min-width: 0; }
.roi-note { font-size: 12px; color: var(--text-dim); margin-top: 18px; }
.roi-cta { margin-top: 22px; }
.roi-cta .ea-btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-results { position: static; }
}

/* mobile refinements */
.roi-cta .ea-btn { white-space: normal; text-align: center; line-height: 1.35; }
@media (max-width: 640px) {
  .rsc-paper .mins { flex-direction: column; }         /* discovery-call timeline stacks */
  .rsc-paper .flow { grid-template-columns: 1fr 1fr; } /* get-paid-faster flow: 5-across -> 2-col */
  .rsc-paper .cta { flex-wrap: wrap; }
  .rsc-paper .cta .btn { width: 100%; text-align: center; }
  .roi-tiles { grid-template-columns: 1fr; }
}

/* ============ document-sheet corrections (contrast + mobile) ============ */
/* v2.css dark-theme accents leak into the white sheet — restore document ink */
.rsc-paper p strong, .rsc-paper li strong { color: var(--navy); font-weight: 600; }
.rsc-paper { overflow-wrap: break-word; }
.rsc-paper table { width: 100%; }
/* cover header: logo and badge never collide */
.rsc-paper .cover-head { flex-wrap: wrap; gap: 12px 18px; }
.rsc-paper .cover-head span { white-space: nowrap; }
/* topbar action group (download + print) */
.rsc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rsc-actions .ea-btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 640px) {
  .rsc-paper .score .rows { grid-template-columns: 1fr; }  /* audit tier cards stack */
  .rsc-paper table { display: block; overflow-x: auto; font-size: 12.5px; }
  .rsc-paper h1 { font-size: 27px; letter-spacing: -0.8px; }
  .rsc-paper .cover-head { margin-bottom: 26px; }
  .rsc-paper .cover-head img { height: 26px; }
  .rsc-topbar { justify-content: flex-start; }
}
@media print {
  .rsc-actions { display: none !important; }
}
