/* Paperwork Max design system
   Navy for trust, green for safe/go, generous white space. One stylesheet across
   every page so the browser caches it once and the whole site stays consistent. */

:root {
  /* Trust */
  --navy-900: #0B1B33;
  --navy-800: #10254A;
  --navy-700: #17335F;
  --navy-600: #1E4276;
  --navy: #17335F;
  --navy-ink: #0B1B33;

  /* Go / safe / money */
  --green-700: #10693F;
  --green-600: #14804C;
  --green-500: #1D9A5F;
  --green-100: #E6F4EC;
  --green-50: #F2FAF6;

  /* Saturated icon fills — the pastel set read as washed out. */
  --ico-green-bg: #C9EBD8;
  --ico-navy-bg:  #CFDDF2;
  --ico-amber-bg: #F8E4B8;
  --ico-red-bg:   #F8D3CB;

  /* Accent for warnings and seals */
  --amber-600: #8A5A08;
  --amber-100: #FDF3DF;
  --red-600: #B23320;
  --red-100: #FDECE8;

  /* Neutrals */
  --ink: #0B1B33;
  --text: #1F2937;
  --muted: #3F4C5F;
  --faint: #5A6980;
  --line: #E2E8F1;
  --line-soft: #EFF3F8;
  --paper: #FFFFFF;
  --bg: #F7F9FC;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.05);
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.05), 0 10px 26px rgba(11, 27, 51, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, 0.05), 0 24px 56px rgba(11, 27, 51, 0.12);

  --wrap: 1080px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.center { text-align: center; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 14px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(32px, 5.4vw, 56px); }
h2 { font-size: clamp(25px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2.2vw, 21px); letter-spacing: -0.015em; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); line-height: 1.65; }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-600); font-weight: 500; margin-bottom: 14px; display: block;
}
.eyebrow-light { color: #7FD3A6; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--radius); font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font); line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(20, 128, 76, 0.28); }
.btn-primary:hover { background: var(--green-700); box-shadow: 0 14px 30px rgba(20, 128, 76, 0.34); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 10px 24px rgba(16, 37, 74, 0.25); }
.btn-navy:hover { background: var(--navy-900); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #C9D4E4; }
.btn-on-dark { background: #fff; color: var(--navy-900); }
.btn-outline-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: var(--radius-sm); }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
  /* Set explicitly: a white card sitting inside .dark-section used to inherit the
     section's pale text colour and render at roughly 1.5:1 — invisible. */
  color: var(--text);
}
/* These must out-specify .dark-section's white headings, or a white card inside a
   dark band renders white-on-white. Equal specificity would lose on source order. */
.card h1, .card h2, .card h3, .card h4,
.dark-section .card h1, .dark-section .card h2,
.dark-section .card h3, .dark-section .card h4 { color: var(--ink); }
.card p, .card li, .card td, .card dd,
.dark-section .card p, .dark-section .card li,
.dark-section .card td, .dark-section .card dd { color: var(--text); }
.card .muted, .card p.muted, .dark-section .card .muted { color: var(--muted); }
/* …unless the card is deliberately dark itself. */
.card[style*="navy"] h2, .card[style*="navy"] h3 { color: #fff; }
.small { font-size: 13.5px; }
.card-hover { transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D3DEEC; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ----------------------------------------------------------------- badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-navy { background: #E8EEF7; color: var(--navy-700); }
.badge-free { background: var(--green-600); color: #fff; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 100; background: rgba(247, 249, 252, 0.86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--navy-800); text-decoration: none; }
/* A button in the nav is a button first — don't let the nav link colour win. */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-navy, .nav-links a.btn-navy:hover { color: #fff; }
.nav-cta { margin-left: 4px; }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } .nav-links { margin-left: auto; } }

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(29, 154, 95, 0.16), transparent 60%),
    radial-gradient(900px 500px at 8% 0%, rgba(23, 51, 95, 0.28), transparent 62%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 60%, #0E2140 100%);
  background-color: var(--navy-900);
  color: #fff; padding: 76px 0 84px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { color: #4ADE93; }
.hero .lede { color: #C2D0E4; max-width: 52ch; font-size: clamp(16px, 2.2vw, 19.5px); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 52px 0 60px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { color: #8FA3BF; font-size: 13.5px; margin-top: 16px; }
.hero-note strong { color: #D9E4F2; font-weight: 600; }

.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.26);
  color: #FFFFFF; font-size: 13px; font-weight: 600;
}
.trust-chip svg { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------------- product mockups */
.mock {
  background: #fff; border-radius: var(--radius-xl); padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34); border: 1px solid rgba(255,255,255,0.1);
}
.mock-head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #DDE4EE; }
.mock-title { font-size: 12px; color: var(--faint); font-family: var(--mono); margin-left: 6px; letter-spacing: 0.06em; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.mock-row:last-child { border-bottom: 0; }
.mock-k { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.mock-v { color: var(--ink); font-weight: 600; text-align: right; }
.mock-score { display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; }
.mock-ring {
  width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
}
.mock-bar { height: 7px; border-radius: 4px; background: #EDF1F7; overflow: hidden; margin-top: 6px; }
.mock-bar i { display: block; height: 100%; border-radius: 4px; }

/* --------------------------------------------------------------- section */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text); font-size: 17px; margin-bottom: 0; line-height: 1.6; }

/* ------------------------------------------------------------- steps 1-3 */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text); font-size: 15.5px; margin-bottom: 0; line-height: 1.65; }

/* ---------------------------------------------------------- feature card */
.feat-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
}
.feat-ico svg { width: 27px; height: 27px; stroke-width: 2.3; }
.ico-green { background: var(--ico-green-bg); color: #0B5733; }
.ico-navy { background: var(--ico-navy-bg); color: #12294D; }
.ico-amber { background: var(--ico-amber-bg); color: #7A4E06; }
.ico-red { background: var(--ico-red-bg); color: #97281A; }
.feat h3 { font-size: 18.5px; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.feat p { color: var(--text); font-size: 15px; margin-bottom: 0; line-height: 1.65; }

.card-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--green-600); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: 0 6px 16px rgba(20,128,76,0.26);
  transition: background 0.18s ease, transform 0.12s ease;
}
.card-cta:hover { background: var(--green-700); text-decoration: none; transform: translateY(-1px); }
.card-cta.on-navy { background: var(--navy-800); box-shadow: 0 6px 16px rgba(16,37,74,0.24); }
.card-cta.on-navy:hover { background: var(--navy-900); }

/* --------------------------------------------------------------- pricing */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--green-500); box-shadow: 0 2px 4px rgba(11,27,51,0.05), 0 26px 60px rgba(20,128,76,0.18); }
.price-tag {
  position: absolute; top: -13px; left: 26px; background: var(--green-600); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px; letter-spacing: 0.03em;
}
.price-amt { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.price-amt small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-list { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.price-list li { position: relative; padding: 8px 0 8px 28px; font-size: 14.5px; border-top: 1px solid var(--line-soft); }
.price-list li:first-child { border-top: 0; }
.price-list li::before {
  content: ''; position: absolute; left: 2px; top: 14px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314804C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.price-list li.off { color: var(--faint); }
.price-list li.off::before { background: #F0F3F8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238A97AC' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4.5 8.5h7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ------------------------------------------------------------------- faq */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #F0F3F8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235C6B84' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 4v8M4 8h8'/%3E%3C/svg%3E");
  background-position: center; background-size: 12px; background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--green-100); }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.68; }
.faq .a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- callouts */
.note { border-radius: var(--radius); padding: 16px 18px; font-size: 14px; line-height: 1.65; border: 1px solid; }
.note-green { background: var(--green-50); border-color: #C6E6D4; color: #17553A; }
.note-amber { background: var(--amber-100); border-color: #EBD9AE; color: #6D4A0A; }
.note-red { background: var(--red-100); border-color: #F1C9C0; color: #8A2A19; }
.note-navy { background: #EEF3FA; border-color: #D3E0F0; color: var(--navy-700); }
.note strong { font-weight: 700; }
.note p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--navy-900); color: #94A6C0; padding: 56px 0 30px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 14px; font-weight: 700; }
.footer a { color: #B6C6DC; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 38px; padding-top: 22px;
  font-size: 12.5px; color: #7B8DA8; line-height: 1.75;
}

/* ------------------------------------------------------------ state grid */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.state-grid a {
  display: block; padding: 10px 13px; border-radius: var(--radius-sm); background: #fff;
  border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.state-grid a:hover { border-color: var(--green-500); color: var(--green-700); text-decoration: none; transform: translateY(-1px); }

/* ------------------------------------------------------------- utilities */
.mono { font-family: var(--mono); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.dark-section { background: var(--navy-900); color: #CBD8E9; }
.dark-section > .wrap > .section-head p { color: #CBD8E9; }
.dark-section h2, .dark-section h3 { color: #fff; }

/* article body */
.prose { max-width: 760px; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose td { color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose li { margin-bottom: 9px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.prose td, .prose th { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose th { color: var(--ink); font-weight: 700; }
.prose td.k { width: 42%; padding-right: 16px; color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--green-500);
  background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* scroll reveal — opt-in, and disabled outright for reduced-motion users */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card-hover:hover { transform: none; }
}
