/* =========================================================
   One Scribe Bookkeeping — Design System
   Ink & Ledger-Gold palette. Custom build, no framework.
   ========================================================= */

:root {
  --ink-900: #0f2436;
  --ink-800: #16324a;
  --ink-700: #1f4260;
  --ink-600: #2c5878;
  --gold-500: #c8992e;
  --gold-400: #d9ae4d;
  --gold-100: #f7ecd3;
  --cream-50: #faf7f1;
  --cream-100: #f3ede1;
  --paper: #ffffff;
  --ink-text: #1c2b36;
  --muted: #56697a;
  --line: #e4dfd2;
  --success-bg: #eef6ee;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 54, 0.06), 0 1px 1px rgba(15, 36, 54, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 36, 54, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 36, 54, 0.16);
  --max-w: 1160px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-text);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.15em; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink-900); line-height: 1.18; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-text); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-500);
  margin-bottom: 0.75em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-500); display: inline-block; }
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink-900); color: #eef2f5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #c7d3dc; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85em 1.6em; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: inherit; }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-700); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 36, 54, 0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(150deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { display: flex; margin-bottom: 1.1rem; }
.footer-logo .brand-logo { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #d7e0e7; font-weight: 500; font-size: 0.95rem; transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-400); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
  width: 42px; height: 38px; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--ink-900); flex-direction: column; align-items: flex-start;
    padding: 2rem 24px; gap: 1.5rem; overflow-y: auto; z-index: 200;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.1rem; width: 100%; display: block; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 210; }
  .nav-actions .btn-primary { padding: 0.7em 1.2em; font-size: 0.9rem; }
}

/* Hero */
.hero { padding: 4.5rem 0 5rem; background: linear-gradient(180deg, var(--ink-900), var(--ink-800)); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,153,46,0.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lede { color: #c7d3dc; }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: #cdd8e0; font-size: 0.92rem; font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-art { background: var(--paper); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); color: var(--ink-text); }
.hero-art .stat-row { display: flex; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.hero-art .stat-row:last-child { border-bottom: none; }
.hero-art .stat-label { color: var(--muted); font-size: 0.92rem; }
.hero-art .stat-value { font-weight: 700; color: var(--ink-900); font-family: var(--font-serif); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }

/* Icon tile */
.icon-tile { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-100); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-tile svg { width: 26px; height: 26px; color: var(--gold-500); }
.icon-tile--ink { background: rgba(200,153,46,0.15); }

/* Card grids */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--font-serif); color: var(--gold-500); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; display: block; }

/* Process / service rows */
.service-row { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 2.5rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-row-media { order: 2; }
.service-row-media { background: linear-gradient(150deg, var(--ink-800), var(--ink-700)); border-radius: var(--radius-lg); padding: 2.5rem; color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.service-row-media svg { width: 46px; height: 46px; color: var(--gold-400); margin-bottom: 1rem; }
@media (max-width: 820px) { .service-row, .service-row.reverse { grid-template-columns: 1fr; } .service-row.reverse .service-row-media { order: 0; } }

/* Why us */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }

/* Testimonials */
.testimonial { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.testimonial-quote { flex: 1; font-style: italic; color: var(--ink-text); }
.testimonial-author { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial-author strong { display: block; color: var(--ink-900); font-family: var(--font-serif); }
.testimonial-author span { color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 0.75rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.price-card--featured { border-color: var(--gold-500); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.price-badge { position: absolute; top: -13px; right: 24px; background: var(--gold-500); color: var(--ink-900); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.price-name { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 0.25rem; }
.price-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.price-amount { font-family: var(--font-serif); font-size: 2.6rem; color: var(--ink-900); font-weight: 700; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 500; font-family: var(--font-sans); }
.price-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.75rem; flex: 1; }
.price-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.price-list svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }

.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { background: var(--ink-900); color: #fff; font-family: var(--font-serif); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .yes { color: #2f8f4e; font-weight: 700; }
.compare-table .no { color: var(--muted); }

/* FAQ (native details/summary — accessible, no JS needed) */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 600; font-family: var(--font-serif);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-500); font-family: var(--font-sans); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 1.5rem 1.5rem; color: var(--muted); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-media { height: 150px; background: linear-gradient(150deg, var(--ink-800), var(--ink-700)); display: flex; align-items: center; justify-content: center; }
.blog-card-media svg { width: 40px; height: 40px; color: var(--gold-400); }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-500); font-weight: 700; margin-bottom: 0.6rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.blog-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.blog-card-link { margin-top: 1rem; font-weight: 600; color: var(--ink-900); font-size: 0.92rem; }

.article-header { background: var(--ink-900); color: #fff; padding: 3.5rem 0 3rem; }
.article-meta { color: #b7c3cc; font-size: 0.9rem; margin-bottom: 1rem; }
.article-header h1 { color: #fff; max-width: 780px; }
.article-body { max-width: 720px; margin: 0 auto; padding: 3.5rem 24px; }
.article-body h2 { margin-top: 2em; font-size: 1.4rem; }
.article-body h3 { margin-top: 1.6em; font-size: 1.15rem; }
.article-body ul, .article-body ol { color: var(--ink-text); }
.article-body blockquote { border-left: 3px solid var(--gold-500); margin: 1.5em 0; padding: 0.5em 0 0.5em 1.25em; color: var(--muted); font-style: italic; }
.article-cta { background: var(--gold-100); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2.5rem; text-align: center; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; flex-wrap: wrap; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--gold-500), var(--gold-400)); border-radius: var(--radius-lg); padding: 3rem; text-align: center; color: var(--ink-900); }
.cta-band h2 { color: var(--ink-900); }
.cta-band .btn-dark { margin-top: 0.5rem; }

/* Footer */
.site-footer { background: var(--ink-900); color: #b7c3cc; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-grid a { color: #b7c3cc; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand p { color: #9aa8b3; font-size: 0.92rem; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.75rem; font-size: 0.85rem; color: #8b98a3; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom a { color: #8b98a3; }
.footer-bottom a:hover { color: var(--gold-400); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-500); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.tag-pill { display: inline-block; background: var(--gold-100); color: var(--gold-500); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 1rem; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: var(--ink-900); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
