/* TAC CREDIT — landing page.
   Editorial, credit-memo style: serif headings, ruled index lists, numbered sections, in the
   logo's navy with its crimson as the accent. The only image is the logo; the other
   illustrations (ledger, "Trusted since 1987" seal) are SVG. */

:root {
  --navy: #243864;            /* logo navy */
  --navy-deep: #172a52;
  --navy-ink: #1a2a55;
  --accent: #8c2438;           /* logo crimson, 8.3:1 on paper */
  --accent-ink: #8c2438;
  --accent-soft: #e7a1ae;      /* crimson for text on the deep navy (6.8:1) */
  --paper: #fbfaf6;
  --paper-2: #f3f0e6;
  --ink: #1d2530;
  --ink-2: #4a5462;             /* 7.4:1 on paper */
  --rule: #d9d3c2;
  --rule-strong: #b9b09a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy-ink); margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; }

.lp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.lp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.lp-skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 4px; text-decoration: none;
  transition: top .15s var(--ease);
}
.lp-skip:focus { top: 12px; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Links: an underline that draws in */
.lp-link {
  text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .25s var(--ease), color .15s;
  padding-bottom: 2px;
}
.lp-link:hover, .lp-link:focus-visible, .lp-link.is-current { color: var(--navy); background-size: 100% 1px; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 4px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-solid { background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(23,42,82,.25); }
.lp-btn-solid:hover { background: var(--navy-deep); }
.lp-btn-ghost { color: var(--navy); border-color: var(--rule-strong); background: transparent; }
.lp-btn-ghost:hover { border-color: var(--navy); background: rgba(36,56,100,.04); }
.lp-btn-ghost span { transition: transform .2s var(--ease); }
.lp-btn-ghost:hover span { transform: translateY(2px); }
.lp-btn-sm { padding: 9px 16px; font-size: 14px; }

/* Wordmark */
.lp-mark { font: 700 18px/1 var(--sans); letter-spacing: .14em; color: var(--navy); text-decoration: none; }
.lp-mark span { color: var(--accent-ink); }
.lp-mark-sm { font-size: 14px; }

/* Logo (the TAC CREDIT logo image, transparent background) */
.lp-logo { display: inline-flex; align-items: center; line-height: 0; border-radius: 2px; }
.lp-logo img { display: block; height: 32px; width: auto; }
.lp-foot-logo { display: block; height: 24px; width: auto; }

/* Top bar */
.lp-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,250,246,.94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.lp-top.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 1px 12px rgba(23,42,82,.06); }
.lp-top-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.lp-nav { display: flex; gap: 28px; margin-left: auto; }

/* Hero */
.lp-hero { padding: 72px 0 88px; border-bottom: 1px solid var(--rule); }
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.lp-eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.lp-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.lp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; max-width: 15ch; }
.lp-lede { margin-top: 24px; font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 52ch; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Ledger illustration */
.lp-ledger { margin: 0; }
.lp-ledger-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(23,42,82,.08)); }
.lg-sheet { fill: #fff; stroke: var(--rule); }
.lg-rule-strong { stroke: var(--navy); stroke-width: 1.4; }
.lg-rule { stroke: var(--rule-strong); stroke-width: 1; }
.lg-head rect { fill: var(--navy); opacity: .85; }
.lg-rows rect { fill: #c8cfd9; }
.lg-rows g { opacity: 0; transform: translateX(-6px); animation: lgIn .5s var(--ease) forwards; }
.lg-rows g:nth-child(1) { animation-delay: .15s; }
.lg-rows g:nth-child(2) { animation-delay: .25s; }
.lg-rows g:nth-child(3) { animation-delay: .35s; }
.lg-rows g:nth-child(4) { animation-delay: .45s; }
.lg-total rect { fill: var(--navy-ink); }
.lg-trend { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: lgDraw 1.4s .6s var(--ease) forwards; }
.lg-threshold { stroke: var(--navy); stroke-width: 1; stroke-dasharray: 4 5; opacity: .45; }
.lg-dots circle { fill: var(--navy); opacity: 0; animation: lgFade .3s 1.8s forwards; }
@keyframes lgIn { to { opacity: 1; transform: none; } }
@keyframes lgDraw { to { stroke-dashoffset: 0; } }
@keyframes lgFade { to { opacity: 1; } }

/* Sections */
.lp-section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.lp-num {
  display: inline-block; font: 600 13px/1 var(--sans); letter-spacing: .14em; color: var(--accent-ink);
  padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--accent);
}
.lp-section-head { max-width: 640px; }
.lp-section-head h2, .lp-cap-head h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.lp-section-head p, .lp-cap-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* Workflow: a rule that draws across, then the numbered stops appear in turn */
.lp-flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.lp-flow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--rule-strong);
  transform-origin: left; transition: transform 1.1s var(--ease);
}
.lp-flow li { padding: 30px 24px 0 0; position: relative; counter-increment: step; }
.lp-flow li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: -12px; left: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--navy);
  font: 600 11px/23px var(--sans); text-align: center; color: var(--navy);
  transition: transform .35s var(--ease), opacity .35s, background .2s, color .2s;
}
.js .lp-flow::before { transform: scaleX(0); }
.js .lp-flow.is-drawn::before { transform: none; }
.js .lp-flow li::before { transform: scale(.6); opacity: 0; }
.js .lp-flow.is-drawn li::before { transform: none; opacity: 1; }
.lp-flow.is-drawn li:nth-child(2)::before { transition-delay: .25s; }
.lp-flow.is-drawn li:nth-child(3)::before { transition-delay: .5s; }
.lp-flow.is-drawn li:nth-child(4)::before { transition-delay: .75s; }
.lp-flow li:hover::before { background: var(--navy); color: #fff; transition-delay: 0s; }
.lp-flow-step { display: block; font: 600 20px/1.2 var(--serif); color: var(--navy-ink); margin: 6px 0 8px; }
.lp-flow p { color: var(--ink-2); font-size: 15px; max-width: 30ch; }

/* Capability sections: heading left, ruled index right */
.lp-cap-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.lp-cap-head { position: sticky; top: 100px; }
.lp-cap:nth-child(even) { background: var(--paper-2); }

.lp-index { margin: 0; border-top: 1px solid var(--rule-strong); }
.lp-index > div {
  display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--rule); position: relative;
  transition: background .2s;
}
.lp-index > div::before {
  content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform .25s var(--ease);
}
.lp-index > div:hover::before { transform: scaleY(1); }
.lp-index dt { font-weight: 600; color: var(--navy-ink); font-size: 15.5px; }
.lp-index dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Specimen: measure names with placeholder dashes (no figures) */
.lp-specimen { list-style: none; margin: 32px 0 0; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.lp-specimen li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); }
.lp-specimen li span:first-child { white-space: nowrap; }
.lp-dash { flex: 1; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-3px); }

/* Governance band */
.lp-gov { background: var(--navy-deep); color: #e8edf3; border-bottom: 0; }
.lp-gov .lp-cap-head h2 { color: #fff; }
.lp-gov .lp-cap-head p { color: #b8c4d3; }
.lp-gov .lp-num { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.lp-index-dark { border-top-color: rgba(255,255,255,.28); }
.lp-index-dark > div { border-bottom-color: rgba(255,255,255,.14); }
.lp-index-dark dt { color: #fff; }
.lp-index-dark dd { color: #c3cedb; }

/* Close */
.lp-close { padding: 80px 0; }
.lp-close-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.lp-close h2 { font-size: clamp(26px, 3vw, 34px); }
.lp-close-actions { margin-top: 0; }

/* Footer */
.lp-foot { border-top: 1px solid var(--rule); padding: 28px 0 36px; color: var(--ink-2); font-size: 13px; }
.lp-foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lp-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-foot small { margin-left: auto; font-size: 13px; }

/* "Trusted since 1987" seal on the hero illustration */
.lp-hero-art { position: relative; }
.lp-seal { position: absolute; right: -18px; bottom: -26px; width: 118px; height: 118px;
  filter: drop-shadow(0 10px 18px rgba(23,42,82,.18)); }
.lp-seal svg { width: 100%; height: 100%; display: block; }
.sl-disc { fill: var(--navy); }
.sl-ring { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .55; }
.sl-band { fill: none; stroke: var(--accent); stroke-width: 9; }
.sl-arc { font: 700 9.5px/1 var(--sans); letter-spacing: .28em; fill: #fff; }
.sl-year { font: 700 25px/1 var(--serif); fill: #fff; letter-spacing: .02em; }
.sl-dot { fill: var(--accent-soft); }
.lp-trust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lp-trust::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Questions (native details/summary: works without JS) */
.lp-faq { border-top: 1.5px solid var(--navy-ink); }
.lp-faq details { border-bottom: 1px solid var(--rule); }
.lp-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; font: 600 17px/1.4 var(--serif); color: var(--navy-ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.lp-faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.lp-faq summary:hover { color: var(--navy); }
.lp-faq .lp-faq-a { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
.lp-faq .lp-faq-a p + p { margin-top: 10px; }

/* Reveal on scroll (only when JS is on and motion is allowed) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Small screens */
@media (max-width: 960px) {
  .lp-hero-grid, .lp-cap-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-cap-head { position: static; }
  .lp-ledger, .lp-hero-art { max-width: 440px; }
  .lp-flow { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .lp-flow::before { display: none; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav { display: none; }
  .lp-top-row { justify-content: space-between; }
  .lp-hero { padding: 44px 0 56px; }
  .lp-section { padding: 56px 0; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-index > div { grid-template-columns: 1fr; gap: 4px; }
  .lp-index > div::before { display: none; }
  .lp-specimen { grid-template-columns: 1fr; }
  .lp-foot small { margin-left: 0; }
  .lp-logo img { height: 28px; }
  .lp-seal { right: 8px; bottom: -20px; width: 92px; height: 92px; }
}

/* Reduced motion: everything appears at once */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lg-rows g, .lg-dots circle { opacity: 1; transform: none; }
  .lg-trend { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .lp-flow li::before, .js .lp-flow::before { transform: none; opacity: 1; }
}
