/* ============================================================
   invoice44 — content & landing pages stylesheet
   Lightweight, shares palette/fonts with main app
   ============================================================ */

:root {
  --bg:         #fdfcf7;
  --bg-soft:    #f4f1e8;
  --bg-elev:    #ffffff;
  --ink:        #0d0d0c;
  --ink-soft:   #3a3a37;
  --ink-mute:   #6a6a62;
  --line:       #e4e0d2;
  --line-soft:  #edeae0;
  --accent:     #c9a227;
  --accent-dk:  #a8841d;
  --accent-txt: #1a1305;
  --success:    #1e5a3a;
  --danger:     #b8341e;
  --r:    12px;
  --r-sm: 8px;
  --r-lg: 20px;
  --sh-sm: 0 1px 3px rgba(20,18,10,.07);
  --sh:    0 6px 20px -6px rgba(20,18,10,.13), 0 2px 6px rgba(20,18,10,.05);
  --f-head: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--f-head); letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); margin: 0 0 0.5rem; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); margin: 2.5rem 0 1rem; font-weight: 700; }
h3 { font-size: 1.25rem; margin: 2rem 0 0.5rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
ul, ol { margin: 0 0 1rem; padding-left: 1.5rem; color: var(--ink-soft); }
li { margin-bottom: 0.4rem; }
strong { color: var(--ink); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 247, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0.75rem 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.04em; color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-accent { color: var(--accent); }
.brand-logo {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 800;
}
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .cta {
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 0.95rem; border-radius: 8px;
  font-weight: 600;
}
.nav .cta:hover { background: var(--accent); color: var(--accent-txt); }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } }

/* Hero */
.hero { padding: 3.5rem 0 2.5rem; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dk);
  background: var(--bg-soft);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 720px; margin: 1rem 0 1.75rem; }
.hero-cta { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-txt); transform: translateY(-1px); text-decoration: none; }
.btn-secondary { background: var(--bg-elev); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }

/* Sections */
section { padding: 2.5rem 0; }
section.alt { background: var(--bg-soft); }

/* Breadcrumbs */
.crumbs { font-size: 0.875rem; color: var(--ink-mute); margin: 1rem 0 0; }
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current="page"] { color: var(--ink); }

/* Feature / use-case grids */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Comparison tables */
table.cmp {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  background: var(--bg-elev); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-sm);
}
table.cmp th, table.cmp td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
table.cmp th { background: var(--bg-soft); font-family: var(--f-head); font-weight: 700; color: var(--ink); }
table.cmp tr:last-child td { border-bottom: none; }

/* FAQ */
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--sh-sm);
}
.faq summary {
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem;
  cursor: pointer; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent-dk); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { margin-bottom: 0.6rem; }

/* CTA banner */
.cta-banner {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-lg); padding: 2.5rem;
  text-align: center; margin: 3rem 0;
}
.cta-banner h2 { color: var(--bg); margin-top: 0; }
.cta-banner p { color: rgba(245, 243, 232, 0.78); max-width: 600px; margin: 0.5rem auto 1.5rem; }
.cta-banner .btn-primary {
  background: var(--accent); color: var(--accent-txt);
}
.cta-banner .btn-primary:hover { background: var(--bg); color: var(--ink); }

/* HowTo / numbered steps */
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 0.85rem;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-txt);
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800;
}
ol.steps li h3 { margin: 0 0 0.35rem; }
ol.steps li p { margin: 0; }

/* Trust strip */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
  padding: 1rem 0; color: var(--ink-mute); font-size: 0.9rem;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto; padding: 0 1.25rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 0.75rem; }
.footer-grid a { display: block; color: var(--ink-soft); font-size: 0.92rem; padding: 0.15rem 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 1.75rem auto 0; padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-mute);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
}

/* Article (blog) */
article.post { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
article.post .post-meta { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1.5rem; }
article.post h2, article.post h3 { margin-top: 2.25rem; }
article.post blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-soft); font-style: italic;
}
article.post hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Blog index list */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem;
  box-shadow: var(--sh-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.post-card h3 { margin: 0 0 0.5rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-dk); text-decoration: none; }
.post-card .post-meta { color: var(--ink-mute); font-size: 0.85rem; margin-bottom: 0.6rem; }
.post-card p { margin: 0; }

/* Ad slots — Adsterra banner containers (min-height prevents layout shift) */
.ad-slot {
  position: relative;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: center;
  padding: 22px 12px 12px;
}
.ad-slot iframe, .ad-slot ins, .ad-slot > div { max-width: 100%; }
.ad-slot-top, .ad-slot-bottom { min-height: 124px; max-width: 760px; }
.ad-slot-inline { min-height: 284px; max-width: 360px; }
.ad-label {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-mute); pointer-events: none; z-index: 1; opacity: 0.55;
}
body.adblocked .ad-slot { display: none !important; }

/* Utilities */
.muted { color: var(--ink-mute); }
.small { font-size: 0.875rem; }
.tag {
  display: inline-block;
  background: var(--bg-soft); color: var(--ink-soft);
  font-size: 0.78rem; font-weight: 500;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  margin-right: 0.35rem;
}
