/* ============================================================
   Richards Six - Design System
   Single stylesheet for all 9 pages.
   Cold, clinical, intelligence-dossier aesthetic. Dark-only.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Source+Sans+3:wght@400;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #1e1e1e;
  --text: #e0e0e0;
  --text-dim: #888888;
  --accent: #c0392b;
  --white: #ffffff;
  --font-heading: 'IBM Plex Mono', monospace;
  --font-body: 'Source Sans 3', sans-serif;
  --max-width: 820px;
}

/* --- 1. Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* --- 2. Body --- */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px; /* 7. Account for fixed nav */
}

/* --- 3. Container --- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* --- 4. Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
  margin: 0 0 24px 0;
}

h2 {
  font-size: 24px;
  margin: 0 0 20px 0;
}

h3 {
  font-size: 20px;
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 20px 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 600;
}

dl {
  margin: 0 0 20px 0;
}

dt {
  font-family: var(--font-heading);
  font-size: 15px;
  margin: 20px 0 6px 0;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0 0 0 0;
  padding-left: 0;
  color: var(--text);
  line-height: 1.7;
}

/* --- 5. Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  height: 64px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-cta {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
}

.nav-cta:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
}

/* --- 6. Nav Drawer (mobile) --- */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 16px 24px;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:last-child {
  border-bottom: none;
}

.nav-drawer a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --- 8. Hero Section --- */
.hero {
  padding: 80px 0 60px 0;
}

.hero h1 {
  font-size: 36px;
  max-width: 640px;
}

.hero p {
  color: var(--text-dim);
  font-size: 19px;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- 9. Buttons --- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--surface);
  color: var(--white);
  text-decoration: none;
}

/* --- 10. Content Sections --- */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 24px;
}

.section-alt {
  background-color: var(--surface);
}

/* --- 11. Report-specific styles (sample.html) --- */
.report-doc {
  padding: 40px 0 60px 0;
}

.report-intro {
  margin-bottom: 40px;
}

.report-inner {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px;
}

.report-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.report-block:last-child {
  border-bottom: none;
}

.report-head {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.report-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.report-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 20px 0;
}

.val {
  margin: 0 0 16px 0;
  line-height: 1.7;
}

.verdict-box {
  background-color: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
}

.verdict-box p {
  margin: 0;
}

.dt-callout {
  background-color: var(--bg);
  border-left: 3px solid var(--text-dim);
  padding: 20px 24px;
  margin: 24px 0;
}

.dt-callout p {
  margin: 0;
}

.methodology-note {
  font-style: italic;
  color: var(--text-dim);
  font-size: 14px;
}

.report-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.report-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.report-table-wrap th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  background-color: var(--surface);
  color: var(--text-dim);
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.report-table-wrap td {
  color: var(--text);
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}

.report-end {
  text-align: center;
  color: var(--text-dim);
  padding: 32px 0 16px 0;
}

.report-notice {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

/* --- 12. Utility Classes --- */
.dim {
  color: var(--text-dim);
}

.wht {
  color: var(--white);
}

.red {
  color: var(--accent);
}

/* --- 13. Pricing Table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.pricing-table th {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-dim);
}

.pricing-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}

.pricing-table .price {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* --- 14. FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  content: '\2212'; /* minus sign */
}

.faq-answer {
  padding: 0 0 24px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin: 0 0 12px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- 15. Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-signup {
  margin-bottom: 32px;
}

.footer-signup p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-signup form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.footer-signup input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
}

.footer-signup input[type="email"]::placeholder {
  color: var(--text-dim);
}

.footer-signup input[type="email"]:focus {
  border-color: var(--accent);
}

.footer-signup .btn-primary {
  font-size: 13px;
  padding: 10px 20px;
  white-space: nowrap;
}

.footer-bottom {
  color: var(--text-dim);
  font-size: 14px;
}

/* --- 16. White Page Variant (Richards page) --- */
body.page-white {
  background-color: #f5f4f0;
}

body.page-white .hero,
body.page-white .section {
  color: #1a1a1a;
}

body.page-white .hero h1,
body.page-white .section h1,
body.page-white .section h2,
body.page-white .section h3 {
  color: #0a0a0a;
}

body.page-white .hero p,
body.page-white .section p,
body.page-white .section li {
  color: #1a1a1a;
}

body.page-white .hero .dim,
body.page-white .richards-caption {
  color: #555555;
}

body.page-white .section {
  border-top-color: #d0cec9;
}

body.page-white .section-alt {
  background-color: #eae8e3;
}

body.page-white .section em {
  color: #1a1a1a;
}

/* Force footer back to dark on white pages */
body.page-white .footer {
  background-color: #0a0a0a;
  border-top-color: #1e1e1e;
}

body.page-white .footer-brand {
  color: #ffffff;
}

body.page-white .footer-links a {
  color: #e0e0e0;
}

body.page-white .footer-links a:hover {
  color: #c0392b;
}

body.page-white .footer-signup p {
  color: #888888;
}

body.page-white .footer-signup input[type="email"] {
  background-color: #141414;
  border-color: #1e1e1e;
  color: #e0e0e0;
}

body.page-white .footer-signup input[type="email"]::placeholder {
  color: #888888;
}

body.page-white .footer-bottom {
  color: #888888;
}

.richards-figure {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.richards-portrait {
  width: 100%;
  display: block;
}

.richards-caption {
  font-family: var(--font-body);
  font-size: 13px;
  color: #555555;
  font-style: italic;
  text-align: center;
  margin-top: 12px;
}

.works-list {
  list-style: none;
  padding-left: 0;
}

.works-list li {
  margin-bottom: 12px;
}

/* --- 17. Responsive Breakpoints --- */

/* Tablet and below */
@media (max-width: 768px) {
  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 17px;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }

  /* Report */
  .report-inner {
    padding: 24px 20px;
  }

  /* Footer stacks */
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-signup form {
    flex-direction: column;
    max-width: 100%;
  }

  .footer-signup input[type="email"] {
    width: 100%;
  }

  /* Typography adjustments */
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    text-align: center;
  }

  .report-inner {
    padding: 20px 16px;
  }

  .report-table-wrap td,
  .report-table-wrap th {
    padding: 10px 12px;
    font-size: 13px;
  }

  .pricing-table td,
  .pricing-table th {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* --- 18. Print Styles --- */
@media print {
  .nav,
  .nav-drawer,
  .footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    padding-top: 0;
    font-size: 12pt;
  }

  h1, h2, h3 {
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  .report-inner {
    background: #ffffff;
    border: 1px solid #cccccc;
  }

  .report-table-wrap th {
    background: #f0f0f0;
    color: #000000;
  }

  .report-table-wrap td {
    color: #000000;
  }

  .verdict-box,
  .dt-callout {
    background: #f5f5f5;
    border-left-color: #333333;
  }

  .report-label {
    color: #333333;
  }

  .report-title {
    color: #000000;
  }
}
