/* Charter marketing site, "The Ledger" on the web.
   Warm paper, oxblood accent, Source Serif 4 display, the Member Seal.
   A static multi-page site: open index.html, or host the folder anywhere. */

/* Fonts are loaded via <link rel="preconnect"> + a stylesheet <link> in each
   page head (faster than @import, no render-blocking serialization). */

:root {
  --paper: #faf6f0;
  --surface: #ffffff;
  --sunk: #f2eadf;
  --ink: #20140f;
  --ink2: #6a5b52;
  --ink3: #7c6a5f;
  --rule: #e8ddcf;
  --rule2: #d6c7b4;
  --accent: #8c1f1a;
  --accent-deep: #6f1714;
  --tint: #f4e6e4;
  --seal: #8c4a38;
  --ok: #2e7d5b;
  --warn: #b07a1f;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* prevent rogue horizontal scroll without breaking the sticky header */
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 16px; }
.eyebrow { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink2); }
.muted { color: var(--ink2); }
.faint { color: var(--ink3); }
.center { text-align: center; }
.serif { font-family: var(--serif); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.seal { width: 30px; height: 30px; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { color: var(--ink2); font-size: 15px; font-weight: 500; }
.nav > a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav > a.active { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 9px; border: 1px solid var(--accent);
  cursor: pointer; transition: background .15s ease, transform .05s ease; white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--rule2); }
.btn-ghost:hover { background: var(--tint); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 76px 0 64px; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 56ch; margin-bottom: 26px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.screen { max-width: 100%; }
.srow > div { min-width: 0; }
.srow .t, .srow .s, .srow .meta { overflow-wrap: break-word; }
.hero-note { font-size: 14px; color: var(--ink3); margin-top: 16px; }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: var(--sunk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 24px; box-shadow: 0 1px 0 rgba(32,20,15,.03);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink2); margin: 0; }
.card.bordered { background: transparent; }
.lead-card { border-color: var(--rule2); box-shadow: 0 6px 24px rgba(140,31,26,.07); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--tint); padding: 4px 10px; border-radius: 7px; margin-bottom: 12px; }

/* Pill / badges in mocks */
.pill { display: inline-block; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 8px; }
.pill-seal { background: #efe3dd; color: var(--seal); }

/* Browser-frame mock */
.screen { background: var(--surface); border: 1px solid var(--rule2); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(32,20,15,.10); }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--rule); }
.screen-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule2); display: inline-block; }
.screen-title { font-size: 12px; color: var(--ink3); margin-left: 8px; }
.screen-body { padding: 0; }
.srow { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srow:last-child { border-bottom: 0; }
.srow .t { font-weight: 600; font-size: 15px; }
.srow .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.srow .meta { font-size: 12.5px; color: var(--ink3); margin-top: 5px; }
.mbadge { font-size: 10.5px; background: var(--tint); color: var(--accent); padding: 2px 8px; border-radius: 5px; font-weight: 700; }
.mbtn { font-size: 12px; background: var(--accent); color: #fff; padding: 5px 12px; border-radius: 7px; white-space: nowrap; }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 10px 28px; color: var(--ink2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; }
.price-card.feature { border-color: var(--accent); box-shadow: 0 8px 28px rgba(140,31,26,.10); }
.price-card .amt { font-family: var(--serif); font-size: 34px; font-weight: 600; margin: 6px 0 2px; }
.price-card .amt small { font-family: var(--sans); font-size: 14px; color: var(--ink3); font-weight: 400; }
.price-card .who { font-size: 13.5px; color: var(--ink2); min-height: 40px; margin-bottom: 12px; }
.price-card .checks { flex: 1; margin-bottom: 18px; }
.price-card .checks li { font-size: 14.5px; padding-bottom: 8px; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 15px; vertical-align: top; }
.cmp thead th { background: var(--sunk); font-family: var(--serif); font-weight: 600; }
.cmp td.col-charter { background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--ok); font-weight: 600; }
.cmp .no { color: var(--ink3); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--paper); margin: 0; max-width: 22ch; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); }
.cta-band .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250,246,240,.4); }
.cta-band .btn-ghost:hover { background: rgba(250,246,240,.12); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 20px; padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-col h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); font-weight: 700; margin: 0 0 12px; }
.foot-col a { display: block; color: var(--ink2); font-size: 15px; margin-bottom: 8px; }
.foot-col a:hover { color: var(--ink); text-decoration: none; }
.foot-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink3); }

/* Utility */
.mt-0 { margin-top: 0; }
.stack-lg > * + * { margin-top: 22px; }
.hide-mobile { }

/* Responsive */
@media (max-width: 880px) {
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .hero { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cols-3, .cols-4, .price-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* Swap the inline links and the header CTA for the disclosure menu. */
  .nav > a:not(.btn) { display: none; }
  .nav > a.btn { display: none; }
  .nav { gap: 10px; }
  .site-head .nav-menu { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-head .btn { padding: 9px 13px; font-size: 13.5px; }
  .wordmark { font-size: 19px; }
  h1 { font-size: 31px; }
  .lede { font-size: 18px; }
  .cols-2, .cols-3, .cols-4, .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 24px; }
  .section { padding: 44px 0; }
}

/* Skip link: keyboard and screen-reader users jump past the header. */
.skip {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; font-size: 14px; transition: top .12s ease;
}
.skip:focus { top: 8px; }

/* Visible keyboard focus on every interactive element. */
a:focus-visible, .btn:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}
.btn:focus-visible { outline-color: var(--ink); }
.cta-band .btn:focus-visible { outline-color: var(--paper); }

/* Mobile disclosure menu (no JS; revealed under 880px by the media query). */
.nav-menu { display: none; position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  color: var(--ink); padding: 6px; border-radius: 8px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--sunk); }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; box-shadow: 0 14px 36px rgba(32,20,15,.14);
}
.nav-menu-panel a { padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-menu-panel a:hover { background: var(--sunk); text-decoration: none; }
.nav-menu-panel .menu-cta { margin-top: 6px; background: var(--accent); color: #fff; font-weight: 600; text-align: center; }
.nav-menu-panel .menu-cta:hover { background: var(--accent-deep); }
.nav-menu-panel .menu-sep { border-top: 1px solid var(--rule); margin: 6px 6px 2px; }

/* Lead-capture form (Netlify Forms). */
.lead-form { max-width: 680px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.lead-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.lead-grid input {
  font: inherit; font-size: 16px; text-transform: none; letter-spacing: normal; font-weight: 400;
  padding: 11px 13px; border: 1px solid var(--rule2); border-radius: 9px; background: var(--surface); color: var(--ink);
}
.lead-grid input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.lead-form .hidden-field { display: none; }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } }

/* Testimonial. */
.quote-band { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-band blockquote {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px;
  line-height: 1.4; color: var(--ink); letter-spacing: -.01em;
}
.quote-band .cite { margin-top: 18px; font-size: 15px; color: var(--ink2); font-style: normal; }
.quote-band .cite strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .quote-band blockquote { font-size: 22px; } }
