/* stand-in fonts sized like the real ones, so text does not jump on load */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'SG Fallback'; src: local('Arial'); size-adjust: 101.5%; ascent-override: 96%; descent-override: 28%; line-gap-override: 0%; }
/* DocReviewIQ shared motion and demo styles */
#drqProgress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 300; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--teal), var(--blue), var(--violet)); pointer-events: none; }
#particles { opacity: 1; }
[hidden] { display: none !important; }
img, svg, canvas { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(14, 147, 168, 0.55); outline-offset: 2px; }

/* headline entrance */
.hl-w { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: hlIn 0.7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes hlIn { to { opacity: 1; transform: none; } }

/* cursor glow and tilt, extras on hover devices only */
@media (hover: hover) and (pointer: fine) {
  .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.11), transparent 70%); }
  .card:hover::after { opacity: 1; }
  .card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
}

/* shared demo frame */
.demo { position: relative; background: #ffffff; border: 1px solid var(--panel-border); border-radius: 20px; box-shadow: 0 18px 60px rgba(52, 58, 92, 0.14); min-width: 0; }
.example-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b4fc7; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.28); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.demo button { font-family: inherit; }
.tap { touch-action: manipulation; cursor: pointer; }
.quick-answer { max-width: 760px; margin: 18px auto 0; padding: 14px 18px; border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, 0.78); color: var(--text); font-size: 0.97rem; text-align: left; }
.lede, .card p, .glass-panel p, .cta-band p, .legal p { overflow-wrap: break-word; }

/* cookie notice waits for the fonts, so it does not jump as it appears */
html:not(.fonts-on) #cookieBar { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* readable small text */
.footer-note, .footer-note a { color: #626a82 !important; }
.sev-amber { color: #7f5509; }

/* touch screens */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; } /* below 16px, iPhones zoom the page when a field is tapped */
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .footer-links a { display: inline-block; padding: 8px 2px; }
}

/* phones: keep everything inside the screen */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .glass-panel { padding: 24px 18px; }
  .cta-band { padding: 46px 20px; }
  .btn { padding: 13px 22px; }
  .nav-inner { padding: 0 16px; }
  .data-table { display: block; overflow-x: auto; }
}
@media (max-width: 360px) {
  h1.hero-title { font-size: 2.05rem; }
  .card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .orb { animation: none !important; }
  .hl-w { animation: none !important; opacity: 1 !important; transform: none !important; }
  .card, .btn { transition: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
}
