/* MyCivilHelp — bond paper / ink navy / stamp red / torch gold.
   Zilla Slab (display) · Public Sans (body) · IBM Plex Mono (case data). */

:root {
  --paper: #FAFAF7;
  --paper-deep: #F1F0EA;
  --ink: #1B2A41;
  --ink-soft: #4A5A72;
  --stamp: #B3261E;
  --gold: #C9A227;
  --line: #D9D9D2;
  --white: #FFFFFF;
  --measure: 62ch;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Zilla Slab", Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 600; margin-bottom: 0.75rem; }
h3 { font-size: 1.1875rem; font-weight: 600; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); text-decoration-color: var(--stamp); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem; gap: 1rem;
}
.brand {
  font-family: "Zilla Slab", Georgia, serif; font-weight: 600; font-size: 1.25rem;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.brand .torch { color: var(--gold); font-size: 1.1rem; }
nav.main { display: flex; gap: 1.25rem; align-items: center; font-size: 0.95rem; }
nav.main a { text-decoration: none; color: var(--ink-soft); }
nav.main a:hover { color: var(--stamp); }
nav.main a.cta {
  background: var(--ink); color: var(--white); padding: 0.5rem 0.95rem;
  border-radius: var(--radius); font-weight: 600;
}
nav.main a.cta:hover { background: var(--stamp); color: var(--white); }
@media (max-width: 700px) { nav.main a.hide-m { display: none; } }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 2.25rem; } }
.hero .eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--stamp); margin-bottom: 0.9rem;
}
.hero p.lead { font-size: 1.1875rem; color: var(--ink-soft); margin: 1.1rem 0 1.6rem; max-width: 34rem; }
.hero .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid var(--ink);
}
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: var(--stamp); border-color: var(--stamp); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--stamp); color: var(--stamp); }
.trust-row { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; color: var(--ink-soft); }
.trust-row span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

/* The pleading-paper artifact */
.paper-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(27,42,65,0.08), 0 12px 32px rgba(27,42,65,0.10);
  padding: 1.75rem 1.5rem 2.25rem; position: relative; max-width: 380px; margin: 0 auto;
  font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5;
}
.paper-card .court-caption {
  text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.04em; border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; margin-bottom: 0.9rem;
}
.paper-card .cause { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; margin-bottom: 1rem; gap: 0.5rem; flex-wrap: wrap;}
.paper-card h3.doc-title {
  text-align: center; font-family: "Zilla Slab", serif; letter-spacing: 0.12em;
  font-size: 1.05rem; color: var(--ink); margin-bottom: 0.9rem;
}
.paper-card .doc-line { border-bottom: 1px solid var(--paper-deep); height: 1.15rem; }
.paper-card .doc-line.short { width: 70%; }
.stamp {
  position: absolute; right: 0.9rem; bottom: 1.1rem; transform: rotate(-8deg);
  border: 3px solid var(--stamp); color: var(--stamp); border-radius: 4px;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; padding: 0.35rem 0.6rem; text-transform: uppercase;
  opacity: 0.92; background: rgba(255,255,255,0.6);
  animation: stampIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.55s backwards;
}
@keyframes stampIn {
  from { transform: rotate(-8deg) scale(2.4); opacity: 0; }
  to   { transform: rotate(-8deg) scale(1); opacity: 0.92; }
}

/* Sections */
section { padding: 3.25rem 0; }
section.alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section .wrap > p { max-width: var(--measure); }
.section-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem;
}

/* Verify strip */
.verify-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 1.5rem; max-width: 46rem;
}
.casenum {
  font-family: "IBM Plex Mono", monospace; background: var(--paper-deep);
  padding: 0.15rem 0.45rem; border-radius: 3px; font-size: 0.9rem; white-space: nowrap;
}

/* Day timeline — the 20-day clock */
.clock { list-style: none; margin-top: 2rem; display: grid; gap: 0; max-width: 46rem; }
.clock li { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.clock li:last-child { border-bottom: 1px solid var(--line); }
.clock .day {
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.2rem;
}
.clock .day strong { display: block; font-size: 1.35rem; color: var(--ink); font-weight: 700; letter-spacing: 0; }
.clock li.deadline .day strong, .clock li.deadline .day { color: var(--stamp); }
.clock h3 { margin-bottom: 0.25rem; }
.clock p { color: var(--ink-soft); font-size: 0.97rem; max-width: 34rem; }

/* Package manifest */
.manifest { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); max-width: 46rem; margin-top: 1.75rem; overflow: hidden; }
.manifest .m-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper-deep);
}
.manifest .m-head .price { font-family: "Zilla Slab", serif; font-size: 1.9rem; font-weight: 700; }
.manifest .m-head .price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); font-family: "Public Sans", sans-serif; }
.manifest ul { list-style: none; padding: 0.9rem 1.5rem 1.2rem; }
.manifest li { padding: 0.55rem 0; border-bottom: 1px dashed var(--paper-deep); display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.98rem; }
.manifest li:last-child { border-bottom: none; }
.manifest li::before { content: "▪"; color: var(--gold); }
.manifest .m-foot { padding: 1rem 1.5rem 1.4rem; border-top: 1px solid var(--line); }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; margin-top: 1.75rem; background: var(--white); border: 1px solid var(--line); font-size: 0.95rem; }
.compare th, .compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--paper-deep); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--white); font-family: "Zilla Slab", serif; font-size: 1rem; }
.compare td:first-child { color: var(--ink-soft); width: 34%; }
.compare-scroll { overflow-x: auto; }

/* FAQ */
details { border-top: 1px solid var(--line); max-width: var(--measure); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::after { content: "+"; color: var(--gold); font-weight: 700; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 1.1rem; color: var(--ink-soft); max-width: 56ch; }

/* Final CTA */
.final-cta { text-align: center; padding: 4rem 0; position: relative; }
.final-cta .stamp-inline {
  display: inline-block; transform: rotate(-4deg); border: 3px solid var(--stamp); color: var(--stamp);
  font-family: "IBM Plex Mono", monospace; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.85rem; margin-bottom: 1.4rem;
}
.final-cta p { max-width: 40rem; margin: 0.9rem auto 1.6rem; color: var(--ink-soft); }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--paper-deep); padding: 2.5rem 0 3rem; font-size: 0.88rem; color: var(--ink-soft); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--ink); }
footer.site a { color: var(--ink-soft); }
footer.site .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8rem; line-height: 1.7; }

/* Verify page steps */
.steps { counter-reset: step; max-width: var(--measure); margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Zilla Slab", serif; font-weight: 700; font-size: 1.3rem; color: var(--gold);
  border: 2px solid var(--gold); border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

.note-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--stamp);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.75rem 0; max-width: 46rem; font-size: 0.95rem;
}
