/* ==========================================================================
   Ledgeward — site styles
   Brand tokens live here. Change a color once and it updates everywhere.
   ========================================================================== */

:root {
  --ink: #0F2A2E;          /* deep teal-black: text, dark sections, logo tile */
  --ink-2: #163A3F;        /* raised surface on dark */
  --line-dark: #2D5157;    /* borders on dark */
  --green: #1F7356;        /* primary action, links */
  --green-hover: #155A43;
  --green-mid: #2E8B6A;
  --mint: #6FD3AE;         /* accent on dark, logo arrow */
  --mint-wash: #E4F4EC;    /* light accent fill */
  --mist: #F3F7F5;         /* light section background */
  --line: #DCE5E2;         /* borders on light */
  --line-soft: #E3E9E7;
  --muted: #3A5357;        /* body copy on light */
  --muted-2: #4A6266;      /* small/secondary copy */
  --on-dark: #C5D6D3;      /* body copy on dark */
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); }
a:hover { color: var(--green-hover); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--mint); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--max); margin: 0 auto; }
.section { padding: 104px 24px; }
.section--tight-top { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--white); }

.eyebrow {
  margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
}
.section--dark .eyebrow { color: var(--mint); }

h1, h2, h3 { margin: 0; color: inherit; }
.h2 { font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.lede { margin: 16px 0 0; font-size: 19px; color: var(--muted); }
.section--dark .lede { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-hover); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1B4248; color: var(--white); }
.btn--outline { background: var(--white); border-color: #C9D6D2; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--mint { background: var(--mint); color: var(--ink); font-weight: 700; }
.btn--mint:hover { background: #8FE0C2; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-size: 15px; }
.btn--block { display: flex; width: 100%; min-height: 50px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-soft); padding: 0 24px;
}
.header-inner {
  max-width: var(--max); margin: 0 auto; min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word { font-size: 17px; font-weight: 700; letter-spacing: 0.16em; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--green); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(15,42,46,0.06);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav .btn { margin-top: 16px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 24px 96px; background: var(--mist); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: 64px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.hero__sub { margin: 24px 0 0; font-size: 20px; color: var(--muted); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin: 24px 0 0; font-size: 15px; color: var(--muted-2); }
.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }

.preview-card {
  width: 100%; max-width: 480px; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 24px 48px -24px rgba(15,42,46,0.18);
}
.preview-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-card__title { font-size: 15px; font-weight: 700; }
.pill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.pill--green { color: var(--green); background: var(--mint-wash); }
.pill--grey { color: var(--ink); background: #EEF2F1; padding: 3px 11px; }
.chart__label { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.chart__bars {
  display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 10px;
  border-bottom: 1.5px solid var(--line); padding-bottom: 2px;
}
.chart__bars span { flex: 1; border-radius: 6px 6px 0 0; }
.chart__axis { display: flex; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted-2); text-align: center; }
.chart__axis span { flex: 1; }
.checklist { border-top: 1px solid var(--line-soft); }
.checklist__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.checklist__row:last-child { border-bottom: 0; }
.checklist__row svg { width: 20px; height: 20px; flex: none; }
.preview-card__caption { margin: -8px 0 0; font-size: 12px; color: var(--muted-2); }

/* ---------- Feature cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 52px; }
.card { flex: 1 1 300px; min-width: 0; background: var(--mist); border-radius: 18px; padding: 32px; }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin: 22px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 220px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 22px; }
.step:last-child { border-top-color: var(--green-mid); }
.step__num { font-size: 14px; font-weight: 700; color: var(--green); letter-spacing: 0.08em; }
.step h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Who we serve ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: var(--ink-2); font-weight: 600;
}

/* ---------- Pricing ---------- */
.center { text-align: center; max-width: 660px; margin: 0 auto; }
.plans { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 52px; align-items: stretch; }
.plan {
  flex: 1 1 300px; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; display: flex; flex-direction: column; background: var(--white);
}
.plan--featured { border: 2px solid var(--ink); background: var(--ink); color: var(--white); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan__tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--mint); border-radius: 999px; padding: 4px 11px;
}
.plan__desc { margin: 6px 0 0; color: var(--muted-2); font-size: 15px; }
.plan__from { margin: 24px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.plan__price { margin: 4px 0 24px; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan__price small { font-size: 16px; font-weight: 500; color: var(--muted-2); letter-spacing: 0; }
.plan--featured .plan__desc,
.plan--featured .plan__from,
.plan--featured .plan__price small { color: var(--on-dark); }
.plan__list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; flex: 1; }
.plan__list li { display: flex; gap: 10px; }
.plan__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan .btn--outline { border-color: var(--ink); }
.fine { margin: 28px 0 0; text-align: center; font-size: 15px; color: var(--muted-2); }

/* ---------- Catch-up banner ---------- */
.banner {
  background: var(--mint-wash); border-radius: 24px; padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.banner__copy { flex: 1 1 520px; min-width: 0; }
.banner h2 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.banner p { margin: 12px 0 0; font-size: 18px; color: #2C4549; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0 0 24px; color: var(--muted); }

/* ---------- Book CTA ---------- */
.book { padding: 96px 24px; background: var(--mist); text-align: center; }
.book__inner { max-width: 720px; margin: 0 auto; }
.book h2 { font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; }
.book p { margin: 18px 0 0; font-size: 19px; color: var(--muted); }
.book .btn { margin-top: 32px; min-height: 54px; padding: 0 30px; font-size: 17px; }
.book__alt { font-size: 16px !important; margin-top: 20px !important; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 24px 40px; background: var(--ink); color: var(--on-dark); font-size: 15px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand__mark { width: 36px; height: 36px; }
.site-footer .brand__word { font-size: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a, .footer-bottom a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px;
}
.footer-bottom p { margin: 0; max-width: 720px; }

/* ---------- Legal / prose pages ---------- */
.prose-page { padding: 72px 24px 104px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 48px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; }
.prose .meta { margin: 12px 0 40px; color: var(--muted-2); font-size: 15px; }
.prose h2 { margin: 48px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--mist); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 72px 20px; }
  .section--tight-top { padding-top: 0; }
  .hero { padding: 56px 20px 72px; }
  .hero h1 { font-size: 44px; }
  .hero__sub { font-size: 18px; }
  .h2 { font-size: 32px; }
  .lede { font-size: 17px; }
  .banner { padding: 32px 24px; }
  .banner h2 { font-size: 26px; }
  .book { padding: 72px 20px; }
  .book h2 { font-size: 34px; }
  .plan { padding: 28px; }
  .prose h1 { font-size: 36px; }
  .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
}
