:root {
    --kraft: #C9A876;
    --kraft-dark: #B08F5E;
    --paper: #F5F1E4;
    --paper-white: #FBF9F2;
    --ink: #211D18;
    --ink-soft: #3A3428;
    --stamp-red: #A6382F;
    --stamp-teal: #2B4C4A;
    --text-muted: #6B6250;
    --rule: #D9CFB4;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    line-height: 1.6;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(33,29,24,0.05) 1px, transparent 0);
    background-size: 22px 22px;
  }

  .mono {
    font-family: 'Courier Prime', 'Courier New', monospace;
  }

  h1, h2, h3 {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  a { color: inherit; }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- Folder tab nav ---------- */
  .nav-shell {
    background: var(--paper);
    padding-top: 24px;
  }
  .folder-tabs {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
  }
  .tab {
    background: var(--kraft);
    padding: 10px 20px 12px;
    border-radius: 8px 8px 0 0;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-bottom: none;
    position: relative;
    top: 2px;
  }
  .tab.active {
    background: var(--ink);
    color: var(--paper-white);
  }
  .tab-spacer { flex: 1; }
  .case-number {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--ink-soft);
    padding-bottom: 10px;
    letter-spacing: 0.05em;
  }
  nav.folder-body {
    border: 2px solid var(--ink);
    background: var(--paper-white);
    padding: 14px 32px;
  }
  .folder-body .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  .logo .accent { color: var(--stamp-red); }
  .btn {
    display: inline-block;
    padding: 11px 20px;
    text-decoration: none;
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid var(--ink);
    border-radius: 3px;
    cursor: pointer;
  }
  .btn-stamp {
    background: var(--ink);
    color: var(--paper-white);
  }
  .btn-stamp:hover { background: var(--ink-soft); }
  .btn-outline {
    background: transparent;
    color: var(--ink);
  }
  .btn-outline:hover { background: var(--kraft); }

  /* ---------- Hero ---------- */
  .hero {
    border: 2px solid var(--ink);
    border-top: none;
    background: var(--paper-white);
    padding: 72px 0 64px;
  }
  .file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier Prime', monospace;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: var(--stamp-red);
    border: 1.5px dashed var(--stamp-red);
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 28px;
  }

  .redact-line {
    display: block;
    margin-bottom: 6px;
  }
  .redact-bar {
    display: inline-block;
    background: var(--ink);
    color: var(--ink);
    border-radius: 2px;
    animation: declass 0.6s ease forwards;
    animation-delay: var(--d, 0s);
  }
  .redact-bar .reveal {
    opacity: 0;
    animation: showtext 0.1s ease forwards;
    animation-delay: calc(var(--d, 0s) + 0.6s);
  }
  @keyframes declass {
    0% { background: var(--ink); }
    99% { background: var(--ink); }
    100% { background: transparent; }
  }
  @keyframes showtext {
    to { opacity: 1; }
  }

  .hero h1 {
    font-size: 44px;
    max-width: 620px;
  }
  .hero p.lede {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 500px;
    margin: 28px 0 32px;
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .hero-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Courier Prime', monospace;
  }

  /* Stamp badge */
  .stamp {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 3px solid var(--stamp-teal);
    border-radius: 50%;
    color: var(--stamp-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transform: rotate(-14deg);
    opacity: 0.85;
    right: 60px;
    top: 40px;
  }
  .stamp::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid var(--stamp-teal);
    border-radius: 50%;
  }
  .hero-inner { position: relative; }

  /* ---------- Exhibit A: problem ---------- */
  .exhibit-a {
    background: var(--kraft);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 64px 0;
  }
  .exhibit-label {
    font-family: 'Courier Prime', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .exhibit-a h2 { font-size: 26px; max-width: 480px; margin-bottom: 40px; }

  .sticky-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .sticky {
    background: var(--paper-white);
    border: 2px solid var(--ink);
    padding: 22px 20px 26px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .sticky:nth-child(1) { transform: rotate(-1.5deg); }
  .sticky:nth-child(2) { transform: rotate(0.8deg); }
  .sticky:nth-child(3) { transform: rotate(-0.5deg); }
  .sticky .pin {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--stamp-red);
    font-weight: 700;
    margin-bottom: 10px;
  }
  .sticky p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
  .sticky strong { display: block; font-family: 'Courier Prime', monospace; font-size: 15px; margin-bottom: 8px; }

  /* ---------- Exhibit B: features ---------- */
  .exhibit-b {
    background: var(--paper-white);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 72px 0;
  }
  .section-head { max-width: 600px; margin-bottom: 48px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { color: var(--text-muted); font-size: 15.5px; margin-top: 12px; font-family: 'IBM Plex Sans', sans-serif; }

  .index-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .index-card {
    border: 2px solid var(--ink);
    background: var(--paper-white);
    padding: 24px 22px;
    position: relative;
  }
  .index-card::before {
    content: attr(data-tag);
    position: absolute;
    top: -13px;
    left: 20px;
    background: var(--stamp-teal);
    color: var(--paper-white);
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 2px;
  }
  .index-card h3 {
    font-size: 18px;
    margin: 10px 0 10px;
  }
  .index-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
  }

  /* ---------- Exhibit C: how it works ---------- */
  .exhibit-c {
    background: var(--kraft);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 72px 0;
  }
  .docket {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
  }
  .docket-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1.5px dotted var(--ink);
    align-items: baseline;
  }
  .docket-row:last-child { border-bottom: none; }
  .docket-num {
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--stamp-red);
  }
  .docket-row h3 {
    font-size: 17px;
    margin-bottom: 6px;
    display: inline;
  }
  .docket-row p {
    margin: 6px 0 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Sans', sans-serif;
  }

  /* ---------- Scope note ---------- */
  .scope-box {
    background: var(--paper-white);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 32px 0;
  }
  .scope-inner {
    border: 1.5px dashed var(--stamp-red);
    padding: 18px 22px;
    border-radius: 3px;
    display: flex;
    gap: 16px;
  }
  .scope-inner .tag {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--stamp-red);
    white-space: nowrap;
    letter-spacing: 0.05em;
  }
  .scope-inner p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .scope-inner strong { color: var(--ink); }

  /* ---------- Pricing ---------- */
  .pricing {
    background: var(--paper-white);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 72px 0 80px;
  }
  .folders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 44px;
  }
  .folder {
    position: relative;
    padding-top: 32px;
  }
  .folder-flap {
    position: absolute;
    top: 0; left: 24px;
    background: var(--ink);
    color: var(--paper-white);
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 4px 4px 0 0;
  }
  .folder-body-card {
    border: 2px solid var(--ink);
    background: var(--kraft);
    padding: 32px 28px;
  }
  .folder-body-card.dark {
    background: var(--ink);
    color: var(--paper-white);
  }
  .folder-body-card h3 { font-size: 24px; margin-bottom: 6px; }
  .folder-body-card .sub {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 24px;
  }
  .folder-body-card.dark .sub { color: #C9C2AF; }
  .folder-body-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  .folder-body-card li {
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    padding-left: 22px;
    position: relative;
  }
  .folder-body-card li::before {
    content: "×";
    position: absolute;
    left: 0;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    color: var(--stamp-red);
  }

  /* ---------- CTA / footer ---------- */
  .cta-strip {
    background: var(--ink);
    color: var(--paper-white);
    border: 2px solid var(--ink);
    border-top: none;
    padding: 56px 0;
  }
  .cta-strip .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
  }
  .cta-strip h2 { font-size: 24px; color: var(--paper-white); max-width: 440px; }
  .btn-stamp.on-dark {
    background: var(--paper-white);
    color: var(--ink);
    border-color: var(--paper-white);
  }

  footer {
    padding: 36px 0 60px;
    text-align: center;
  }
  .filed-stamp {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1.5px solid var(--text-muted);
    padding: 6px 16px;
    border-radius: 3px;
    transform: rotate(-2deg);
  }
  .footer-links-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
  }
  .footer-links-row a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13.5px;
    color: var(--text-muted);
    text-decoration: none;
  }
  .footer-links-row a:hover { color: var(--ink); }

  @media (max-width: 860px) {
    .hero h1 { font-size: 32px; }
    .sticky-row, .index-cards, .folders { grid-template-columns: 1fr; }
    .stamp { display: none; }
    .tab { font-size: 11px; padding: 8px 12px 10px; }
    .case-number { display: none; }
    .folder-body .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
    .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  }

  @media (prefers-reduced-motion: reduce) {
    .redact-bar, .redact-bar .reveal { animation: none; background: transparent; opacity: 1; }
  }

  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--stamp-red);
    outline-offset: 2px;
  }
/* ---------- Legal / doc pages ---------- */
.doc-page {
  background: var(--paper-white);
  border: 2px solid var(--ink);
  border-top: none;
  padding: 56px 0 80px;
}
.doc-header { margin-bottom: 40px; }
.doc-header h1 { font-size: 32px; margin-bottom: 10px; }
.doc-header .doc-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.doc-disclaimer {
  border: 1.5px dashed var(--stamp-red);
  padding: 16px 20px;
  border-radius: 3px;
  margin: 28px 0 40px;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: 'IBM Plex Sans', sans-serif;
}
.doc-disclaimer strong { color: var(--stamp-red); font-family: 'Courier Prime', monospace; }
.doc-section {
  padding: 26px 0;
  border-bottom: 1.5px dotted var(--rule);
}
.doc-section:last-child { border-bottom: none; }
.doc-section h2 {
  font-size: 17px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.doc-section .sec-num { color: var(--stamp-red); font-size: 15px; }
.doc-section p, .doc-section li {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.doc-section ul { padding-left: 20px; margin: 10px 0; }
.doc-section a.inline-link { color: var(--stamp-teal); text-decoration: underline; }

.doc-section code {
  font-family: 'Courier Prime', monospace;
  background: var(--kraft);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13.5px;
}
