/* onlinepdfs.com — redesign v10 */
:root {
  --ink: #0D1B2A;
  --teal: #0F766E;
  --teal-dark: #0c5f59;
  --teal-soft: #e6f4f2;
  --paper: #ffffff;
  --mist: #F6F8F7;
  --muted: #5b6b7a;
  --border: #e3e9ec;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --amber: #b45309;
  --red: #dc2626;
  --info-bg: #eff6ff;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.flow-lock { overflow: hidden; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 12px; }

h1, h2 { letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.lede { font-size: clamp(1.05rem, 2.5vw, 1.28rem); color: var(--muted); max-width: 34em; margin: 0 auto 36px; }
.lede-light { color: #b8c4cf; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow-light { background: rgba(255,255,255,.12); color: #fff; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; font-family: inherit;
  padding: 15px 32px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-lg { font-size: 1.08rem; padding: 17px 38px; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--teal); }
.logo-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: var(--mist); padding: clamp(60px, 9vw, 110px) 0 clamp(52px, 7vw, 90px); scroll-margin-top: 70px; }
#scan-form { max-width: 640px; margin: 0 auto; }
.dropzone {
  display: block; border: 2px dashed var(--teal); border-radius: 18px;
  background: var(--paper); padding: clamp(34px, 6vw, 54px) 24px;
  text-align: center; cursor: pointer;
  box-shadow: 0 12px 40px rgba(15,118,110,.10);
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 18px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--teal-dark); box-shadow: 0 16px 48px rgba(15,118,110,.18); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.dropzone strong { display: block; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.dz-hint { color: var(--muted); font-size: .93rem; }
#scan-submit { width: 100%; max-width: 640px; }
.status { margin-top: 14px; }
.trust-row {
  display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px; font-size: .9rem; color: var(--muted); font-weight: 500;
}
.trust-row span::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; scroll-margin-top: 70px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 44px; }
.step {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Proof */
.proof { padding-top: 0; }
.big-numbers { display: flex; align-items: baseline; justify-content: center; gap: 18px; margin: 10px 0 4px; }
.big-numbers .before { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 800; color: var(--red); letter-spacing: -0.04em; }
.big-numbers .after { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 800; color: var(--green); letter-spacing: -0.04em; }
.big-numbers .arrow { font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--muted); font-weight: 300; }
.proof-cap { color: var(--muted); margin: 0 0 38px; }
.sample-issue {
  max-width: 640px; margin: 0 auto; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; background: var(--mist);
}
.sample-issue .kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sample-issue h4 { margin: 0 0 6px; font-size: 1.06rem; }
.sample-issue p { margin: 0 0 6px; color: var(--muted); font-size: .94rem; }
.sample-issue .action { color: var(--ink); font-size: .94rem; }
.sample-issue .action strong { color: var(--teal-dark); }

/* Dark band */
.dark { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin: 44px 0; text-align: center; }
.stat b { display: block; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: #b8c4cf; font-size: .95rem; }

/* Pricing */
.pricing { background: var(--mist); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 44px; }
.tier {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.tier.hot { border: 2px solid var(--teal); box-shadow: 0 12px 32px rgba(15,118,110,.12); }
.tier .tname { font-weight: 700; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tier .tprice { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.tier .tper { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; font-size: .93rem; color: var(--muted); }
.tier ul li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; padding: 13px 20px; width: 100%; }

/* Learn / FAQ */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.lcard { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--paper); }
.lcard .pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.lcard h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -0.01em; }
.lcard p { margin: 0; color: var(--muted); font-size: .94rem; }
.faq-section { background: var(--mist); }
.faq { max-width: 720px; margin: 40px auto 0; }
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 22px; background: var(--paper); scroll-margin-top: 90px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 17px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #b8c4cf; padding: 52px 0 36px; font-size: .92rem; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: #b8c4cf; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer .fine-print { margin: 0; font-size: .82rem; color: #7d8fa0; }

/* ---------- guided flow overlay ---------- */
.flow { position: fixed; inset: 0; z-index: 200; display: flex; }
.flow[hidden] { display: none; }
.flow-backdrop { position: absolute; inset: 0; background: rgba(13, 27, 42, 0.6); }
.flow-shell {
  position: relative; margin: auto;
  width: min(880px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 24px 80px rgba(13, 27, 42, 0.35);
  overflow: hidden;
}
.flow-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--mist); flex-shrink: 0;
}
.flow-crumb { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.flow-crumb li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.crumb-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--border); color: var(--muted); font-size: 0.8rem; font-weight: 700;
}
.flow-crumb li.active { color: var(--ink); }
.flow-crumb li.active .crumb-num { background: var(--teal); color: #fff; }
.flow-crumb li.done { color: var(--muted); }
.flow-crumb li.done .crumb-num { background: var(--green); color: #fff; }
.flow-x {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 2.25rem; height: 2.25rem; font-size: 1.4rem; line-height: 1;
  color: var(--muted); cursor: pointer; flex-shrink: 0;
}
.flow-x:hover { color: var(--ink); border-color: var(--muted); }
.flow-main { overflow-y: auto; padding: 0; }
.flow-main > div { padding: 1.5rem; }

/* Staged progress */
.scan-progress { max-width: 640px; margin: 0 auto; }
.scan-progress-title { margin: 0 0 0.9rem; font-size: 1.15rem; font-weight: 600; }
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.scan-steps li { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.scan-step-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.scan-steps li.active { color: var(--ink); font-weight: 600; }
.scan-steps li.active .scan-step-dot { border-color: var(--teal); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.scan-steps li.done { color: var(--muted); }
.scan-steps li.done .scan-step-dot { border-color: var(--green); background: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 1em; height: 1em; margin-right: .5em;
  border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%;
  animation: spin .8s linear infinite; vertical-align: -0.15em;
}
.fix-tip {
  margin: 1.1rem 0 0; padding: 0.85rem 1rem;
  background: var(--info-bg); border: 1px solid #bfdbfe; border-radius: 10px;
  font-size: 0.92rem;
}
.fix-tip strong { color: var(--teal-dark); }
.section-note { color: var(--muted); font-size: .92rem; }

/* Audit report */
.report-doc {
  max-width: 800px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 36px rgba(13,27,42,.09); overflow: hidden;
}
.report-head {
  padding: 28px 32px; border-bottom: 3px solid var(--ink);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.report-head .doc-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.report-head h3 { margin: 4px 0 6px; font-size: clamp(1.35rem, 4vw, 1.8rem); letter-spacing: -0.02em; }
.report-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.report-sec { padding: 26px 32px; border-bottom: 1px solid var(--border); }
.report-sec:last-child { border-bottom: none; }
.report-sec > h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.exec-sum { font-size: 1.04rem; margin: 0; max-width: 36em; }
.result-sec { text-align: center; }
.result-sec .exec-sum { margin: 14px auto 0; }
.result-sec .reveal-label { margin-bottom: 0; }
.finding { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.finding:last-child { border-bottom: none; padding-bottom: 0; }
.finding .fno {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff; background: var(--amber);
}
.finding.err .fno { background: var(--red); }
.finding.fixed .fno { background: var(--green); }
.finding h5 { margin: 2px 0 4px; font-size: 1rem; }
.finding p { margin: 0 0 4px; color: var(--muted); font-size: .92rem; overflow-wrap: break-word; }
.finding .act { color: var(--ink); font-size: .92rem; }
.finding .act strong { color: var(--teal-dark); }
.tech-detail { margin-top: 0.6rem; }
.tech-detail summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.tech-detail .issue-rule { margin-top: 0.5rem; overflow-wrap: anywhere; font-size: .85rem; color: var(--muted); }
.report-foot { padding: 22px 32px; background: var(--mist); font-size: .82rem; color: var(--muted); }
.report-foot p { margin: 0 0 6px; }
.report-foot p:last-child { margin-bottom: 0; }

/* Promise card + reveal */
.promise {
  background: var(--green-soft); border: 2px solid var(--green); border-radius: var(--radius);
  padding: 22px 24px; text-align: center;
}
.promise h3 { margin: 0 0 6px; color: #14532d; font-size: 1.2rem; }
.promise p { margin: 0; font-size: .96rem; }
.reveal-hero { text-align: center; padding: 1.5rem 1rem 1rem; max-width: 640px; margin: 0 auto; }
.reveal-hero h3 { font-size: 1.7rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.reveal-hero .sub { color: var(--muted); margin: 0 0 1.1rem; }
.reveal-numbers { display: flex; align-items: baseline; justify-content: center; gap: 1rem; }
.reveal-before, .reveal-after { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.reveal-before { color: var(--red); }
.reveal-after { color: var(--green); }
.reveal-arrow { font-size: 2rem; color: var(--muted); font-weight: 300; }
.reveal-label { font-size: 0.9rem; color: var(--muted); margin-top: .3rem; }
.gate-note {
  background: var(--green-soft); border: 1px solid var(--green); border-radius: 10px;
  padding: 1rem 1.2rem; font-size: .94rem; max-width: 640px; margin: 1.2rem auto 0;
}
.download-row { text-align: center; max-width: 560px; margin: 1.6rem auto 0; }
.download-row .btn { width: 100%; }
.download-row .disclaimer-text { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }

/* Paywall in flow */
.flow-paywall {
  border: 2px solid var(--teal); border-radius: var(--radius);
  padding: 1.6rem; margin: 1.4rem auto 0; max-width: 560px;
  background: var(--teal-soft); text-align: center;
}
.flow-paywall h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.flow-paywall p { margin: 0 0 1rem; }
.flow-paywall .fine-print { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
.beta-flag { margin-top: 1rem; padding: 1rem 1.25rem; background: var(--info-bg); border: 1px solid #bfdbfe; border-radius: var(--radius); text-align: left; }
.beta-flag p { margin: 0 0 0.75rem; }
.retention-row { margin: 1.4rem auto 0; max-width: 560px; padding: 1.25rem; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.retention-row p { margin: 0 0 0.75rem; color: var(--muted); }
.retention-row .btn { margin: 0 0.35rem 0.5rem; }

/* Sticky CTA in flow */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 5;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  text-align: center; margin: 1.5rem -1.5rem -1.5rem;
}
.sticky-cta .btn { width: min(560px, 100%); }
.sticky-cta small { display: block; margin-top: 8px; color: var(--muted); }

/* Alerts */
.alert { border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1rem auto; max-width: 640px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; }
.alert-error h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.alert-error p { margin: 0 0 .8rem; color: var(--muted); font-size: .94rem; }
.alert[role="status"] { background: var(--info-bg); border: 1px solid #bfdbfe; }

/* Print: ONLY the report prints — never the homepage behind the overlay. */
@media print {
  .site-header, main, .site-footer,
  .flow-backdrop, .flow-top, .sticky-cta, .no-print { display: none !important; }
  .flow { position: static; display: block; }
  .flow-shell { box-shadow: none; border-radius: 0; max-height: none; width: 100%; margin: 0; }
  .flow-main { overflow: visible; }
  .flow-main > div { padding: 0; }
  .report-doc { box-shadow: none; border: none; max-width: 100%; }
  body { font-size: 11pt; background: #fff; }
}

@media (max-width: 760px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 10px; text-align: center; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}
@media (max-width: 640px) {
  .flow-shell { width: 100%; max-height: 100dvh; margin: 0; border-radius: 0; }
  .flow-main > div { padding: 1.1rem; }
  .crumb-label { display: none; }
  .reveal-before, .reveal-after { font-size: 2.6rem; }
  .report-head, .report-sec { padding-left: 20px; padding-right: 20px; }
  .sticky-cta { margin: 1.2rem -1.1rem -1.1rem; }
}
