/* FilingsIntel - full replacement stylesheet
   Goal: clean forensic look, strong link affordance, mobile-first.
*/

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Base ---------- */
:root{
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  --link: #0b57d0;
  --link-hover: #083e99;

  --action-bg: #f0f6ff;
  --action-bg-hover: #e2efff;
  --action-border: #0b57d0;

  --cta-bg: #111827;
  --cta-bg-hover: #0b1220;
  --cta-text: #ffffff;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.wrap{
  max-width: 900px;
  margin: 18px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 18px;
}

@media (min-width: 720px){
  .wrap{
    margin: 26px auto;
    padding: 44px 44px;
  }
}

/* ---------- Typography ---------- */
.muted{
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

h1{
  margin: 0 0 14px 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 720px){
  h1{ font-size: 36px; }
}

.subhead{
  margin: 0 0 22px 0;
  color: #374151;
  font-size: 16px;
}

@media (min-width: 720px){
  .subhead{ font-size: 17px; }
}

h2{
  margin: 28px 0 10px 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p{
  margin: 0 0 12px 0;
  color: #1f2937;
}

/* ---------- Pricing ---------- */
.price-list{
  margin: 6px 0 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}

.price-list p{
  margin: 0 0 8px 0;
  font-weight: 700;
}

.price-list p:last-child{ margin-bottom: 0; }

/* ---------- Links: default ---------- */
.wrap a{
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap a:hover{
  color: var(--link-hover);
}

/* ---------- Links: action links (sample + pdf + scope) ---------- */
/* These should be obvious and tappable on mobile and desktop */
.wrap a[href^="/sample/"],
.wrap a[href$=".pdf"],
.wrap a[href="/scope.html"],
.wrap a[href$="/scope.html"]{
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0;
  padding: 11px 14px;
  border: 2px solid var(--action-border);
  border-radius: 10px;
  background: var(--action-bg);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.wrap a[href^="/sample/"]:hover,
.wrap a[href$=".pdf"]:hover,
.wrap a[href="/scope.html"]:hover,
.wrap a[href$="/scope.html"]:hover{
  background: var(--action-bg-hover);
}

/* If the action link wraps, keep it readable */
.wrap a[href^="/sample/"],
.wrap a[href$=".pdf"],
.wrap a[href="/scope.html"],
.wrap a[href$="/scope.html"]{
  white-space: normal;
  word-break: break-word;
}

/* ---------- CTA button ---------- */
.cta{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--cta-text) !important;
  text-decoration: none !important;
  font-weight: 900;
  border: 2px solid var(--cta-bg);
}

.cta:hover{
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
}

/* ---------- Footer ---------- */
footer{
  max-width: 900px;
  margin: 0 auto 22px auto;
  padding: 0 18px 20px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

footer .links{
  margin-top: 8px;
  line-height: 1.8;
}

footer .links a{
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

footer .links a:hover{
  color: #374151;
}

/* ---------- Small UX polish ---------- */
::selection{
  background: #dbeafe;
}
