/* Public marketing site (Views/Shared/_MarketingLayout.cshtml). Same layout and components as the
   TrueNCOA site (testing.truencoa.com, which took them from TruePyramids.Web). Product colors are
   the --brand-* tokens below; the navy, ink and line tokens are shared across the products.
   TrueAppend: magenta #d23de1 from the WordPress theme, darkened for text and buttons (AA contrast).
   To reuse for another product, change only the --brand-* block. */
:root {
  --brand-900: #5B1466;      /* button hover, strong text on brand-50 */
  --brand-700: #9C27AC;      /* links, primary buttons, stat values (5.9:1 on white) */
  --brand-600: #B430C3;      /* kicker */
  --brand-500: #D23DE1;      /* the logo color: accents only, never body text */
  --brand-300: #E7A3EE;
  --brand-100: #F5D9F8;
  --brand-50:  #FBF0FC;

  --navy-950: #03263B;
  --navy-900: #0B3954;
  --navy-300: #8FB9DA;
  --navy-100: #BDDAE6;
  --teal-400: #62D7DB;
  --teal-50: #E6F8F9;
  --ink: #202223;
  --ink-2: #4B5563;
  --ink-3: #5B6472;
  --line: #DDE1E7;
  --line-strong: #C9CFD8;
  --line-soft: #E8EBEF;
  --page: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 26px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
img, video { max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 24px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brand-700); }
.nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-900); font-weight: 600; }
.nav .btn { margin-left: 6px; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.lede { font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grid-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--brand-300); color: inherit; }
.card__icon { width: 40px; height: 40px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--brand-700); border-bottom: 2px solid var(--brand-700); transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); border-color: #A3ABB8; }
.btn--primary { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { border-color: #fff; color: #fff; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 17px; }
.btn--link { border-color: transparent; background: transparent; padding: 0 12px; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero__title { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lede { font-size: 19px; max-width: 34em; }
.stats { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 48px -24px rgba(11, 57, 84, 0.3); }
.stats__item { display: flex; gap: 16px; align-items: flex-start; }
.stats__item + .stats__item { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.stats__item img { width: 40px; height: 40px; flex: none; }
.stats__value { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.badge-free { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-900); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

/* Price table */
.price { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 16px; }
.price th, .price td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line-soft); }
.price thead th { border-top: 0; background: var(--surface-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.price td { font-variant-numeric: tabular-nums; }
.price__amount { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--brand-700); }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.faq details[open] summary { margin-bottom: 10px; }
.faq details > * + * { margin-top: 10px; }

/* Closing call to action */
.cta { background: var(--navy-900); color: #fff; }
.cta h2 { color: #fff; }
.cta .lede { color: var(--navy-100); }

/* Article pages */
.page { max-width: 820px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 24px) 80px; display: flex; flex-direction: column; gap: 28px; }
.page__head { display: flex; flex-direction: column; gap: 10px; }
.prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: 0.35em; }
.notice { padding: 14px 18px; border-radius: 10px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--navy-950); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.contact-grid .card h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.contact-email { font-size: 20px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--navy-100); font-size: 15px; }
.site-footer__inner { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.site-footer h2 { font-size: 15px; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--navy-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { border-top: 1px solid rgba(189, 218, 230, 0.2); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--navy-300); }
/* the logo is dark artwork; render it white on the navy footer */
.site-footer__logo { height: 40px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .nav { width: 100%; }
  .nav a:not(.btn) { padding: 0 8px; }
}

@media print {
  .skip, nav, .site-footer, .cta, .btn { display: none !important; }
  html, body { background: #fff !important; }
}

/* Data dictionary */
.dictionary td { vertical-align: top; font-variant-numeric: normal; }
.dictionary__values { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; columns: 2 220px; }

/* WordPress pages and posts (Views/Content) */
.wp img { max-width: 100%; height: auto; border-radius: 8px; }
.wp figure { margin: 1.4em 0; }
.wp figcaption { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.wp table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.wp th, .wp td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.wp th { background: var(--surface-2); }
.wp hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wp blockquote { border-left: 3px solid var(--brand-300); padding-left: 16px; color: var(--ink-2); }
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 1.2em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.post__date { font-size: 14px; color: var(--ink-3); }
.post__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.post__nav-label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card h2 { font-size: 20px; margin: 0; }
.post-card p { margin: 0; color: var(--ink-2); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.guide-toc { columns: 2 220px; padding-left: 1.2em; }
.error-table td:first-child { font-weight: 600; }
