/* StableBill marketing site — hand-authored, no build step.
   Modern SaaS marketing look, warm barn identity. System fonts only. */

:root {
  --bg: #faf6ee;
  --bg-warm: #f4ecdc;
  --card: #ffffff;
  --ink: #2b2119;
  --ink-soft: #453729;
  --muted: #6e6156;
  --line: #e6dcc9;
  --accent: #9e3b28;      /* barn red */
  --accent-dark: #7c2c1e;
  --accent-soft: rgba(158, 59, 40, 0.08);
  --sage: #5f6f52;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 25, 0.05), 0 2px 8px rgba(43, 33, 25, 0.06);
  --shadow-md: 0 2px 4px rgba(43, 33, 25, 0.06), 0 12px 32px rgba(43, 33, 25, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.5vw + 1rem, 3.4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.1rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

/* Eyebrow labels */

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Header — sticky, frosted */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--ink); }

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(158, 59, 40, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(158, 59, 40, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-small { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.75rem 0 0.5rem; align-items: center; }

/* Sections */

main section { padding: 4.5rem 0; }
main section + section { border-top: 1px solid var(--line); }

.prose-narrow .wrap { max-width: 44rem; }

/* Hero */

.hero { padding: 5rem 0 4.5rem; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 38rem; }

.hero-split .hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .hero-split .hero-inner { grid-template-columns: 1.05fr 1fr; }
}

.hero-media { margin: 0; }
.hero-media img,
.section-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.section-media { margin: 2.5rem 0 0; }
.section-media img { max-height: 30rem; object-fit: cover; }
.section-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Steps */

.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.75rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.05rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(158, 59, 40, 0.3);
}
.steps li p { margin-bottom: 0; color: var(--ink-soft); }

/* Invoice example */

.invoice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}
.invoice figcaption { margin-bottom: 1rem; font-size: 1.1rem; }
.invoice dl { margin: 0; }
.invoice dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line);
}
.invoice dl > div:last-child { border-bottom: none; }
.invoice dt { margin: 0; }
.invoice dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invoice .total { font-weight: 700; font-size: 1.15rem; }

/* Testimonials */

.testimonials {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}
@media (min-width: 44rem) {
  .testimonials { grid-template-columns: 1fr 1fr; }
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 0.9rem; font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; line-height: 1.5; }
.testimonial figcaption { color: var(--muted); font-size: 0.9rem; }

.placeholder-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px dashed var(--sage);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.9rem;
}

.fineprint { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* Pricing */

.plans {
  display: grid;
  gap: 1.5rem;
  margin: 2.25rem 0 1.5rem;
}
@media (min-width: 44rem) {
  .plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan h3 { font-size: 1.45rem; }
.plan .price { font-family: Georgia, serif; font-size: 2.4rem; margin: 0.25rem 0 0.1rem; letter-spacing: -0.02em; }
.plan .price span { font-size: 1rem; font-family: inherit; color: var(--muted); }
.plan .plan-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.plan ul { margin: 0; padding-left: 1.25rem; color: var(--ink-soft); }
.plan li { margin-bottom: 0.5rem; }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 60%, #b04a32 100%);
  color: #fff8f0;
  border-top: none;
  border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #ffd9c9; }
.cta-band p { color: rgba(255, 248, 240, 0.88); }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn {
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.cta-band .btn:hover {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--accent-dark);
}
.cta-band .fineprint { color: rgba(255, 248, 240, 0.7); }

/* FAQ */

.faq-item { margin-bottom: 2rem; }
.faq-item h2 { font-size: 1.3rem; font-family: inherit; font-weight: 700; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-warm);
}
.site-footer p { margin: 0 0 0.25rem; }

/* 404 */

.not-found { text-align: center; padding: 6rem 0; }
.not-found h1 { font-size: 4rem; }

/* Small screens */

@media (max-width: 36rem) {
  main section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .header-inner { gap: 0.9rem; }
  .site-nav { gap: 1rem; order: 3; width: 100%; }
  .lede { font-size: 1.15rem; }
}
