/* =================================================================
   VERATTIA — Services & pricing
   Palette: deep navy + ivory + restrained gold
   Type:    Instrument Serif (display) + Inter (body)
   ================================================================= */

/* Force the page to render in its intended light palette regardless of
   user-agent dark-mode heuristics (e.g. Chrome/Comet auto-darkening on
   mobile). The site is not designed to invert; this prevents browsers
   from desaturating brand text. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

:root {
  color-scheme: light;
  /* Brand palette — carried through from the print menu */
  --ink:        #0E1A2B;
  --ink-soft:   #1A2A3F;
  --ink-deep:   #08111E;
  --ivory:      #F6F1E7;
  --ivory-alt:  #EFE8D8;
  --paper:      #FBF8F1;
  --paper-warm: #FDFAF4;
  --line:       #D9CFB8;
  --line-soft:  #E6DFCE;
  --line-faint: #EFEADA;
  --gold:       #A8884B;
  --gold-soft:  #BFA269;
  --gold-dim:   #7E6738;
  --text:       #1B2638;
  --text-muted: #5A6478;
  --text-faint: #8A92A2;

  /* Grade colours — carried through from the audit table */
  --grade-black: #0E1A2B;
  --grade-red:   #9B3340;
  --grade-amber: #B8842A;
  --grade-green: #3F6B3D;

  /* Typography */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-lg:   1.125rem;   /* 18 */
  --text-xl:   1.375rem;   /* 22 */
  --text-2xl:  1.75rem;    /* 28 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  3rem;       /* 48 */
  --text-hero: clamp(3rem, 6vw + 1rem, 5.75rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 6.5rem;
  --space-20: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 7vw, 6.5rem);

  /* Radii + shadow */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(14,26,43,0.04), 0 8px 24px -12px rgba(14,26,43,0.10);
  --shadow-elev: 0 1px 3px rgba(14,26,43,0.06), 0 24px 48px -20px rgba(14,26,43,0.18);
}

/* ============================================================ */
/* RESET                                                         */
/* ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  background-color: #FBF8F1;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  forced-color-adjust: none;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--ink); color: var(--ivory); }

/* ============================================================ */
/* LAYOUT PRIMITIVES                                             */
/* ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line-faint);
}

/* ============================================================ */
/* SECTION HEAD                                                  */
/* ============================================================ */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-head--compact { margin-bottom: var(--space-7); }
.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.section-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: var(--space-3);
  max-width: 65ch;
  line-height: 1.55;
}

/* ============================================================ */
/* BUTTONS                                                       */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn--lg {
  font-size: var(--text-base);
  padding: 0.95rem 1.5rem;
}
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Ghost variant for use on dark/ink surfaces (entry-point card) */
.btn--ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246,241,231,0.32);
}
.btn--ghost-light:hover {
  background: rgba(246,241,231,0.08);
  border-color: rgba(246,241,231,0.55);
  color: var(--ivory);
}

/* ============================================================ */
/* HEADER                                                        */
/* ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(251, 248, 241, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
}
.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
}
.site-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-left: auto;
}
.site-nav a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: var(--space-4); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 92% -20%, rgba(168,136,75,0.08), transparent 55%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-faint) 1px, transparent 1px);
  background-size: 100% 96px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* If mask-image is unsupported (older or non-standard mobile engines),
   the rule grid would otherwise paint full-strength edge-to-edge.
   Suppress it on small viewports where it adds no value. */
@media (max-width: 720px) {
  .hero::before { display: none; }
}

/* Defensive: also hide if mask-image is genuinely unsupported. */
@supports not ((mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000))) {
  .hero::before { display: none; }
}

.hero-inner > * { position: relative; z-index: 1; }
.hero-inner {
  position: relative;
  max-width: 980px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 2px;
}
.badge--gold {
  background: var(--ink);
  color: var(--ivory);
}
.eyebrow-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-text {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 18ch;
}
.hero-title-display { display: block; }

.hero-lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-soft);
  max-width: 720px;
}
.hero-meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}
.hero-meta dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero-meta { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ============================================================ */
/* PACKAGES                                                      */
/* ============================================================ */
.section--packages {
  background: var(--paper);
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: stretch;
}
@media (max-width: 1024px) {
  .package-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.pkg {
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pkg:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.pkg-flag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Entry-point flag — gold band, ink text (the recommended starting point) */
.pkg-flag--entry {
  background: var(--gold);
  color: var(--ink);
}

/* Flagship flag — ink band, gold text (weightier, more consequential) */
.pkg-flag--flagship {
  background: var(--ink);
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(168,136,75,0.35);
}

.pkg-flag--placeholder {
  background: transparent;
  color: transparent;
  border-bottom: 1px solid transparent;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .pkg-flag--placeholder { display: none; }
}

/* ENTRY-POINT CARD — navy elevated, ivory text (Rapid Triage) */
.pkg--entry {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  box-shadow: var(--shadow-elev);
}
.pkg--entry:hover { border-color: var(--ink); box-shadow: 0 1px 3px rgba(14,26,43,0.08), 0 28px 56px -22px rgba(14,26,43,0.28); }
.pkg--entry .pkg-name,
.pkg--entry .price-num,
.pkg--entry .pkg-blurb { color: var(--ivory); }
.pkg--entry .pkg-eyebrow { color: var(--gold-soft); }
.pkg--entry .pkg-list li { color: rgba(246,241,231,0.85); }
.pkg--entry .pkg-list li::before { background: var(--gold); }
.pkg--entry .pkg-credit {
  background: rgba(168,136,75,0.16);
  color: var(--ivory);
  border-color: rgba(168,136,75,0.32);
}
.pkg--entry .pkg-credit strong { color: var(--gold-soft); }
.pkg--entry .price-unit { color: rgba(246,241,231,0.6); }

/* FLAGSHIP CARD — paper surface with gold accent border, weightier shadow */
.pkg--flagship {
  background: var(--paper-warm);
  border-color: var(--gold);
  border-top-width: 1px;
  box-shadow: 0 1px 3px rgba(168,136,75,0.10), 0 28px 60px -22px rgba(14,26,43,0.22);
  transform: translateY(-8px);
  position: relative;
}
.pkg--flagship::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(168,136,75,0.18);
}
.pkg--flagship:hover {
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 1px 3px rgba(168,136,75,0.14), 0 32px 68px -22px rgba(14,26,43,0.28);
}
.pkg--flagship .pkg-name {
  font-size: 1.5rem;
}
.pkg--flagship .price-num {
  font-size: 1.875rem;
}
@media (max-width: 1024px) {
  .pkg--flagship { transform: none; }
  .pkg--flagship:hover { transform: none; }
}

.pkg-body {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.875rem;
}
.pkg-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.pkg-name {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}
.pkg-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.25rem 0 0.5rem;
}
.price-num {
  font-family: var(--font-sans);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.price-unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.pkg-blurb {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pkg-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}
.pkg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.pkg-credit {
  font-size: 0.8125rem;
  color: var(--text);
  background: rgba(168,136,75,0.10);
  border: 1px solid rgba(168,136,75,0.22);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
  margin-top: auto;
}
.pkg-credit--muted {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text-muted);
}
.pkg-credit strong { color: var(--gold-dim); font-weight: 700; }

/* Flagship credit — ink panel, ivory text, gold accent on strong */
.pkg-credit--flagship {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  font-weight: 500;
}
.pkg-credit--flagship strong { color: var(--gold-soft); }

.pkg .btn { margin-top: 0.75rem; }

.package-foot {
  text-align: center;
  margin-top: clamp(2rem, 3vw, 2.5rem);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.package-foot a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.package-foot a:hover { color: var(--gold-dim); }

/* ============================================================ */
/* SECTORS                                                       */
/* ============================================================ */
.section--sectors { background: var(--paper-warm); }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 900px) {
  .sector-grid { grid-template-columns: 1fr; }
}

.sector {
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: border-color 0.2s ease;
}
.sector:hover { border-color: var(--line); border-top-color: var(--gold); }
.sector-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.sector-name {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.sector-desc {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.sector-frameworks {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-feature-settings: "ss01";
  border-top: 1px solid var(--line-faint);
  padding-top: 0.875rem;
}

/* ============================================================ */
/* DELIVERABLE GRID                                              */
/* ============================================================ */
.section--deliverable { background: var(--paper); }

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFDF7;
}
@media (max-width: 900px) {
  .deliverable-grid { grid-template-columns: 1fr; }
}
.deliv {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-right: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.deliv:nth-child(3n) { border-right: none; }
.deliv:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 900px) {
  .deliv { border-right: none; border-bottom: 1px solid var(--line-faint); }
  .deliv:last-child { border-bottom: none; }
}
.deliv-num {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.deliv-name {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.deliv p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}
.deliv--highlight {
  background: var(--ivory);
}
.deliv--highlight .deliv-name { color: var(--ink); }

/* ============================================================ */
/* FINDINGS / SAMPLE TABLE                                       */
/* ============================================================ */
.section--findings { background: var(--paper-warm); }
.findings-card {
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-card);
}
.findings-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-faint);
}
.findings-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.findings-legend {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.grade-key {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  color: #fff;
}
.grade-key--black { background: var(--grade-black); }
.grade-key--red   { background: var(--grade-red); }
.grade-key--amber { background: var(--grade-amber); }
.grade-key--green { background: var(--grade-green); }

.findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.findings-table th,
.findings-table td {
  padding: 0.875rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-faint);
}
.findings-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}
.findings-table tbody tr:last-child th,
.findings-table tbody tr:last-child td { border-bottom: none; }
.findings-table tbody tr:hover { background: var(--paper-warm); }
.findings-table .col-id { width: 7.5rem; }
.findings-table .col-sector {
  width: 9rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.findings-table .col-grade { width: 6.5rem; text-align: center; }
.findings-table .col-action { color: var(--text); }
.findings-table .col-claim { color: var(--ink); font-weight: 500; }

.action-line {
  display: block;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}
.action-rule {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  font-feature-settings: "ss01";
}

.id-pill {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.grade-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  min-width: 4.5rem;
  text-align: center;
}
.grade-pill--black { background: var(--grade-black); }
.grade-pill--red   { background: var(--grade-red); }
.grade-pill--amber { background: var(--grade-amber); }
.grade-pill--green { background: var(--grade-green); }

.findings-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-faint);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .findings-table thead { display: none; }
  .findings-table, .findings-table tbody, .findings-table tr, .findings-table td {
    display: block;
    width: 100%;
  }
  .findings-table tr {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line-faint);
  }
  .findings-table tbody tr:last-child { border-bottom: none; }
  .findings-table td {
    padding: 0.25rem 0;
    border-bottom: none;
  }
  .findings-table .col-id { width: auto; margin-bottom: 0.25rem; }
  .findings-table .col-grade { width: auto; text-align: left; margin: 0.5rem 0; }
}

/* ============================================================ */
/* PRICING DETAIL                                                */
/* ============================================================ */
.section--pricing { background: var(--paper); }
.pricing-card {
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.pricing-table thead th {
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 1rem 1.125rem;
  white-space: nowrap;
}
.pricing-table tbody th,
.pricing-table tbody td {
  padding: 1.25rem 1.125rem;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: middle;
  text-align: left;
}
.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:nth-child(even) { background: var(--ivory); }
.pricing-table tbody th {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--text-base);
}
.pricing-table .price {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.pricing-table .buyer {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .pricing-table { display: block; overflow-x: auto; white-space: nowrap; }
  .pricing-table .buyer { white-space: normal; }
}

/* ============================================================ */
/* ONGOING                                                       */
/* ============================================================ */
.section--ongoing { background: var(--paper-warm); }
.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
@media (max-width: 900px) {
  .ongoing-grid { grid-template-columns: 1fr; }
}
.ongoing {
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.2vw, 1.875rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ongoing-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.ongoing-name {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ongoing-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.ongoing-price span {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.ongoing-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.ongoing-list li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.ongoing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

/* ============================================================ */
/* COMMERCIAL TERMS                                              */
/* ============================================================ */
.section--terms { background: var(--paper); }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.term {
  grid-column: span 2;
  background: #FFFDF7;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.term--turnaround {
  grid-column: 1 / -1;
}
.term--caveat {
  grid-column: 1 / -1;
  background: var(--ivory);
  border-top-color: var(--gold-dim);
}
.term-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.term-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}
.term-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
.term-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--line-faint);
}
.term-list li span:first-child {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.term-list li span:last-child {
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
@media (max-width: 900px) {
  .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term { grid-column: span 2; }
  .term--turnaround { grid-column: span 2; }
  .term-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .terms-grid { grid-template-columns: 1fr; }
  .term, .term--turnaround, .term--caveat { grid-column: 1 / -1; }
  .term-list { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ */
/* FINAL CTA                                                     */
/* ============================================================ */
.section--cta {
  background: var(--ink);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(168,136,75,0.18), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(168,136,75,0.10), transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 880px;
}
.cta-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--gold-soft);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cta-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ivory);
  margin-bottom: 0.875rem;
  max-width: 26ch;
}
.cta-sub {
  font-size: var(--text-base);
  color: rgba(246,241,231,0.75);
  line-height: 1.55;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

/* CTA head wrapper */
.cta-head { margin-bottom: clamp(2rem, 3vw, 2.5rem); }

/* Engagement-path tablist */
.cta-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 3vw, 2.75rem);
}
.cta-path {
  appearance: none;
  text-align: left;
  font-family: var(--font-sans);
  background: rgba(246,241,231,0.03);
  border: 1px solid rgba(246,241,231,0.14);
  border-radius: var(--radius);
  padding: 1.625rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--ivory);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.cta-path:hover {
  border-color: rgba(168,136,75,0.45);
  background: rgba(246,241,231,0.06);
}
.cta-path.is-active {
  border-color: var(--gold);
  background: rgba(168,136,75,0.12);
  box-shadow: inset 0 0 0 1px rgba(168,136,75,0.35);
}
.cta-path-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.cta-path-name {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ivory);
}
.cta-path-desc {
  font-size: 0.875rem;
  color: rgba(246,241,231,0.72);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .cta-paths { grid-template-columns: 1fr; }
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  background: rgba(246,241,231,0.04);
  border: 1px solid rgba(246,241,231,0.12);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  backdrop-filter: blur(2px);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--brief, .field--submit { grid-column: 1 / -1; }
.field--submit { margin-top: 0.75rem; }

.field label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ivory);
  background: rgba(8,17,30,0.6);
  border: 1px solid rgba(246,241,231,0.18);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8,17,30,0.85);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.field select option { color: var(--ink); background: var(--ivory); }

.cta-fineprint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: rgba(246,241,231,0.6);
  text-align: center;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
.cta-fineprint a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(168,136,75,0.4);
}
.cta-fineprint a:hover { color: var(--ivory); border-bottom-color: var(--gold); }

.cta-form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gold-soft);
  min-height: 1.25rem;
}

@media (max-width: 720px) {
  .cta-form { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: rgba(246,241,231,0.7);
  padding: 3rem 0 2.5rem;
  font-size: var(--text-sm);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}
.footer-brand .brand-name { color: var(--ivory); display: block; margin-bottom: 0.25rem; }
.footer-brand p { font-size: 0.8125rem; color: rgba(246,241,231,0.55); }
.footer-nav {
  display: flex;
  gap: clamp(0.875rem, 1.5vw, 1.5rem);
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(246,241,231,0.6);
  font-size: 0.8125rem;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--ivory); }
.footer-meta {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(246,241,231,0.5);
  letter-spacing: 0.02em;
}
.footer-meta a { color: rgba(246,241,231,0.7); }
.footer-meta a:hover { color: var(--ivory); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 1.5rem; }
  .footer-nav { justify-content: flex-start; }
  .footer-meta { text-align: left; }
}

/* ============================================================ */
/* MOTION                                                        */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
