/* =========================================
   DOSSIER — SELF-CONTAINED STYLESHEET
   Light-theme standalone page.
   No dependency on style.css.
   ========================================= */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-variable.woff2') format('woff2');
}


/* =========================================
   RESET
   ========================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }


/* =========================================
   VARIABLES
   ========================================= */

:root {
  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;
  --space-24: 192px;

  /* Type scale */
  --type-display: 64px;
  --type-h1: 48px;
  --type-h2: 40px;
  --type-h3: 32px;
  --type-lead: 24px;
  --type-h4: 20px;
  --type-body: 16px;
  --type-eyebrow: 12px;

  /* Line heights */
  --lh-display: 1.125;
  --lh-h1: 1.167;
  --lh-h2: 1.2;
  --lh-h3: 1.25;
  --lh-lead: 1.333;
  --lh-h4: 1.6;
  --lh-body: 1.5;
  --lh-eyebrow: 1.333;

  /* Dossier palette */
  --bg-main: #FAFAF8;
  --text-main: #1A1E24;
  --text-muted: #6C757D;
  --border-subtle: rgba(26, 30, 36, 0.08);
  --accent-red: #8B1A1A;
}


/* =========================================
   BASE
   ========================================= */

html {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: Arial, sans-serif;
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--text-main);
  background: var(--bg-main);
  overflow: visible;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-muted);
  text-decoration: none;
}
a:hover {
  color: var(--accent-red);
}

strong {
  color: var(--text-main);
  font-weight: 700;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, .eyebrow {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
}

h1 {
  font-weight: 800;
  font-size: var(--type-display);
  line-height: var(--lh-display);
  letter-spacing: -1px;
  margin-bottom: var(--space-3);
}

h2 {
  font-weight: 700;
  font-size: var(--type-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-4);
}

h3 {
  font-weight: 700;
  font-size: var(--type-lead);
  line-height: var(--lh-lead);
  margin-bottom: var(--space-2);
}

h4 {
  font-weight: 700;
  font-size: var(--type-body);
  line-height: var(--lh-body);
  margin-bottom: var(--space-1);
  color: var(--text-main);
}

p {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: var(--lh-body);
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.eyebrow {
  color: var(--accent-red);
  font-weight: 700;
  font-size: var(--type-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-3);
}


/* =========================================
   LOGO
   ========================================= */

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--type-body);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
}
.logo:hover { color: var(--text-main); }
.logo span { color: var(--accent-red); }


/* =========================================
   BUTTON
   ========================================= */

.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--type-eyebrow);
  font-weight: 800;
  line-height: var(--lh-eyebrow);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  background: var(--accent-red);
  color: var(--bg-main);
  border: none;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  background: var(--accent-red);
  color: #232F3E;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: var(--space-8) var(--space-12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--type-eyebrow);
  line-height: var(--lh-eyebrow);
  color: rgba(108, 117, 125, 0.6);
  letter-spacing: 1px;
  border-top: 1px solid var(--border-subtle);
}
footer a { color: rgba(108, 117, 125, 0.6); text-decoration: none; }
footer a:hover { color: var(--accent-red); }


/* =========================================
   DOSSIER LAYOUT
   ========================================= */

.dossier-page {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 24px;
  box-sizing: border-box;
}
.dossier-page:last-of-type {
  border-bottom: none;
  /* Remove snap anchor on the last section so the footer is reachable.
     Proximity snap can't release when the footer (~90px) is closer to the
     last snap point than the proximity threshold, which traps the viewport
     against the section above the footer. */
  scroll-snap-align: none;
}

.dossier-container {
  max-width: 720px;
  width: 100%;
  position: relative;
}

.cover-container {
  max-width: 900px;
  width: 100%;
  position: relative;
}


/* =========================================
   DOSSIER COVER
   ========================================= */

.dossier-cover {
  text-align: left;
}

.dossier-logo {
  display: inline-block;
  margin-bottom: var(--space-8);
}

.dossier-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.dossier-title {
  font-size: 96px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -3px;
  margin-bottom: 40px;
}

.dossier-intro {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 640px;
}


/* =========================================
   DOSSIER ELEMENTS
   ========================================= */

.surgical-line {
  width: 120px;
  height: 3px;
  background: var(--accent-red);
  margin-bottom: 40px;
}

.highlight-pull {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  border-left: 2px solid var(--accent-red);
  padding-left: 32px;
  margin: 64px 0;
}
.highlight-pull.dark-border {
  border-left-color: var(--text-main);
}


/* =========================================
   DOSSIER LEXICON
   ========================================= */

.lexicon-block {
  margin-top: 64px;
  border-top: 2px solid var(--text-main);
  padding-top: 48px;
}
.lexicon-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.lexicon-term {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
}
.lexicon-def {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}


/* =========================================
   DOSSIER DATA GRID
   ========================================= */

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--text-main);
  border-bottom: 2px solid var(--text-main);
  margin: 64px 0;
}
.data-cell {
  padding: 32px 16px;
  border-right: 1px solid var(--border-subtle);
}
.data-cell:last-child {
  border-right: none;
}
.data-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 16px;
}
.data-desc {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Accommodate longer spelled-out values (e.g. "$10 trillion") */
.data-number.is-long {
  font-size: 36px;
  letter-spacing: -1px;
}


/* =========================================
   DOSSIER FOOTNOTES & REFERENCES
   ========================================= */

.footnote-ref {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--accent-red);
  text-decoration: none;
  vertical-align: super;
  line-height: 1;
}
.footnote-ref:hover {
  text-decoration: underline;
  color: var(--accent-red);
}

.dossier-references {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.references-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 16px;
}
.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ref-counter;
}
.references-list li {
  counter-increment: ref-counter;
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  scroll-margin-top: 80px;
}
.references-list li:last-child {
  margin-bottom: 0;
}
.references-list li::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-red);
}
.references-list li:target {
  color: var(--text-main);
}
.references-list cite {
  font-style: italic;
  color: var(--text-main);
}
.references-list a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
  text-underline-offset: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.references-list a:hover {
  color: var(--accent-red);
  text-decoration-color: var(--accent-red);
}


/* =========================================
   DOSSIER PATTERNS
   ========================================= */

.dossier-patterns-wrap {
  margin-top: 64px;
}

.pattern-item {
  border-left: 2px solid var(--text-main);
  padding-left: 32px;
  margin-bottom: 48px;
}
.pattern-item:first-child {
  border-left-color: var(--accent-red);
}
.pattern-item h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.pattern-item p {
  font-size: 16px;
  margin: 0;
}



/* =========================================
   DOSSIER CTA (final section)
   ========================================= */

.dossier-protocol-title {
  font-size: 20px;
  font-weight: 700;
}

.dossier-cta {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.dossier-cta-text {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
}

.dossier-cta-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent-red);
  color: var(--bg-main);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
}
.dossier-cta-btn:hover {
  background: #FAFAF8;
  color: #8B1A1A;
  border: 2px solid #8B1A1A;
}


/* =========================================
   DOSSIER SUBSCRIBE (subordinated CTA)
   ========================================= */

.dossier-subscribe {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  max-width: 560px;
}
.subscribe-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.subscribe-heading {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.25px;
}
.subscribe-copy {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Custom subscribe form — posts directly to HubSpot Forms API so we
   own every pixel. Deanonymization still works via the hubspotutk
   cookie sent in the request context. */
.dossier-subscribe .subscribe-form {
  width: 100%;
  margin: 0;
}
.dossier-subscribe .subscribe-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dossier-subscribe .subscribe-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.dossier-subscribe .subscribe-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--text-main);
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dossier-subscribe .subscribe-input::placeholder {
  color: var(--text-muted);
}
.dossier-subscribe .subscribe-input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: inset 0 0 0 1px var(--accent-red);
}
.dossier-subscribe .subscribe-submit {
  flex: 0 0 auto;
  padding: 14px 28px;
  background: var(--accent-red);
  color: #FAFAF8;
  border: 2px solid var(--accent-red);
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.dossier-subscribe .subscribe-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--accent-red);
}
.dossier-subscribe .subscribe-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.dossier-subscribe .subscribe-message {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.dossier-subscribe .subscribe-message.is-error {
  color: var(--accent-red);
}
.dossier-subscribe .subscribe-message.is-success {
  color: var(--text-main);
  font-weight: 600;
}


/* =========================================
   DOSSIER RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
  }
  .dossier-page {
    scroll-snap-stop: normal;
  }
  .lexicon-item {
    grid-template-columns: 1fr;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .dossier-subscribe form {
    flex-direction: column;
    align-items: stretch;
  }
  .dossier-subscribe .hs-form-field,
  .dossier-subscribe .hs_email {
    flex: 1 1 auto;
  }
  .dossier-title {
    font-size: 64px;
  }
  footer {
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-3);
    text-align: center;
  }
}
