/* ProperlyPaid design system — v2 "modern professional" */
:root {
  --brand: #0C7C59;
  --brand-600: #0A6B4C;
  --brand-700: #085A40;
  --brand-050: #EAF5F0;
  --brand-100: #DCEFE6;
  --ink: #0C1524;
  --ink-soft: #3D4B5C;
  --muted: #6B7A8D;
  --line: #E6EAEF;
  --line-soft: #EFF2F5;
  --bg: #FFFFFF;
  --bg-soft: #F6F8F7;
  --bg-card: #FFFFFF;
  --dark: #0A1F16;
  --dark-2: #0E2A1E;
  --gold: #E8B44A;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 21, 36, .05);
  --shadow: 0 1px 2px rgba(12, 21, 36, .06), 0 8px 24px -8px rgba(12, 21, 36, .12);
  --shadow-lg: 0 2px 4px rgba(12, 21, 36, .06), 0 20px 48px -12px rgba(12, 21, 36, .22);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .55em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 2em 0 .6em; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
img, svg { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Eyebrow labels */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: 1em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-word em { font-style: normal; color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; transition: color .15s ease; }
.site-nav a:hover { color: var(--brand-700); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; cursor: pointer; font-family: var(--font-body);
  border-radius: 12px; padding: 14px 28px; font-size: 1rem; border: 2px solid transparent;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(12, 124, 89, .35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%); color: #fff; box-shadow: 0 6px 20px rgba(12, 124, 89, .42); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-700); box-shadow: var(--shadow); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-sm { padding: 10px 20px; font-size: .9rem; border-radius: 10px; }
.btn:active { transform: translateY(1px); }

/* Breadcrumbs */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 11px 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-700); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* Hero — dark premium */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(28, 160, 110, .35), transparent 60%),
              radial-gradient(900px 420px at 10% 110%, rgba(232, 180, 74, .14), transparent 55%),
              linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 70%);
  padding: 88px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(700px 380px at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 380px at 70% 20%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: #D9F2E6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 1.4em;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 10px #3DDC97; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin-bottom: .45em; }
.hero h1 .accent { background: linear-gradient(120deg, #7DE3B4, #3DDC97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: #C4D4C9; max-width: 560px; margin: 0 0 1.8em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2em; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; font-size: .92rem; color: #A9BFAE; font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; }
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 2.6em; padding-top: 1.8em; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.hero-stats .stat span { font-size: .82rem; color: #9DB3A4; }

/* Hero invoice mockup */
.mockup {
  position: relative; background: #fff; color: var(--ink); border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.15);
  padding: 28px; transform: rotate(1.5deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
.mockup-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.mockup-head .m-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; color: var(--brand-700); }
.mockup-head .m-num { text-align: right; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.mockup-head .m-num b { color: var(--ink); font-size: .85rem; }
.mockup-bar { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #3DDC97); margin-bottom: 18px; }
.mockup-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.mockup-row span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.mockup-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 800; font-size: 1.05rem; }
.mockup-total .m-amount { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-700); }
.mockup-stamp {
  position: absolute; top: 30px; left: 47%; right: auto; transform: translateX(-50%) rotate(-12deg);
  border: 2.5px solid #3DDC97; color: var(--brand-700); font-weight: 800; font-size: .8rem; letter-spacing: .14em;
  padding: 6px 14px; border-radius: 8px; background: rgba(61, 220, 151, .08);
}
.mockup-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .8rem; color: var(--muted); }
.mockup-note .m-check { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-050); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 2.6em; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }
.section-title { margin-bottom: .35em; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.center .section-sub { margin: 0 auto; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #3DDC97);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #D5E5DB; }
.card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 .45em; font-size: 1.12rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand-700); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .card-link { font-weight: 700; text-decoration: none; margin-top: .8em; display: inline-flex; align-items: center; gap: 6px; }
.card .card-link::after { content: "→"; transition: transform .2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-050), var(--brand-100));
  border: 1px solid #CFE7D8;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-700);
}

/* Tool app shell */
.tool-shell {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; margin: 2em 0;
}
.tool-shell::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--brand), #3DDC97); }
.tool-body { padding: 34px; }
.tool-intro { max-width: 780px; }
.tool-intro .lead { color: var(--ink-soft); font-size: 1.1rem; }

/* Shared tool form polish (applies inside tool apps) */
.tool-body input[type="text"], .tool-body input[type="number"], .tool-body input[type="email"],
.tool-body input[type="date"], .tool-body select, .tool-body textarea {
  font-family: var(--font-body);
}
.tool-body button { font-family: var(--font-body); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 66px; position: relative; font-size: .96rem; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem;
  box-shadow: 0 3px 8px rgba(12, 124, 89, .35);
}
.steps li strong { font-family: var(--font-display); }

/* Article */
.article { max-width: 800px; margin: 0 auto; padding: 48px 24px 72px; }
.article > h1 { margin-bottom: .3em; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 2em; padding-bottom: 1.4em; border-bottom: 1px solid var(--line-soft); }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--brand); }
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.article th, .article td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article th { background: var(--dark); color: #fff; font-weight: 700; border-color: var(--dark); }
.article tr:nth-child(even) td { background: var(--bg-soft); }
.article blockquote { border-left: 4px solid var(--brand); margin: 1.6em 0; padding: .8em 1.4em; background: var(--brand-050); border-radius: 0 12px 12px 0; }
.faq { margin-top: 2.4em; }
.faq > h2 { margin-bottom: 1em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: #CFE7D8; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none; font-family: var(--font-display); font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.3em; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--ink-soft); }
.disclaimer-box { background: #FFFAEB; border: 1px solid #FEDF89; border-radius: var(--radius); padding: 18px 22px; font-size: .92rem; margin: 2.4em 0; }
.disclaimer-box strong { display: block; margin-bottom: .3em; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 60px 40px; text-align: center; margin: 72px 0;
  background: radial-gradient(600px 260px at 80% 0%, rgba(61, 220, 151, .25), transparent 60%),
              linear-gradient(150deg, var(--dark-2), var(--dark));
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: radial-gradient(500px 220px at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(500px 220px at 50% 0%, #000, transparent 75%);
}
.cta-band h2 { position: relative; color: #fff; margin-top: 0; }
.cta-band p { position: relative; color: #C4D4C9; max-width: 580px; margin: 0 auto 1.8em; }
.cta-band .btn { position: relative; }

/* Footer — dark premium */
.site-footer { background: var(--dark); color: #B9C9BE; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 24px 32px; }
.footer-grid h3 { font-size: .82rem; margin: 0 0 1.1em; text-transform: uppercase; letter-spacing: .1em; color: #8FA398; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .65em; }
.footer-grid ul a { text-decoration: none; color: #C4D4C9; font-size: .94rem; transition: color .15s ease; }
.footer-grid ul a:hover { color: #fff; }
.footer-brand .brand-word { color: #fff; }
.footer-brand p { color: #8FA398; font-size: .93rem; max-width: 320px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 24px; font-size: .82rem; color: #7E9384; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 1.4em; }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; }
.trust-strip .container { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.trust-item svg { flex: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mockup { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 24px 22px; border-bottom: 1px solid var(--line); gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { flex-direction: column; }
  .tool-body { padding: 22px 18px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 44px 24px; border-radius: 20px; }
  .hero-cta .btn { width: 100%; }
}
@media print {
  .site-header, .site-footer, .breadcrumbs, .cta-band, .no-print { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mockup { animation: none; }
  html { scroll-behavior: auto; }
}
