﻿/* ==========================================================================
   Detective Caseboard Theme - SSRDOG 推广评测网站
   Colors:
     - Warm Grey:      #E8E4DE
     - Midnight Brown: #302B29
     - Muted Red:      #A84B48
     - Faded Blue:     #63849A
   ========================================================================== */

:root {
  --warm-grey: #E8E4DE;
  --warm-grey-light: #F2EFE9;
  --paper-sheet: #F9F7F2;
  --paper-card: #FFFFFF;
  --paper-tag: #EFECE6;
  --midnight-brown: #302B29;
  --midnight-brown-soft: #48413E;
  --muted-red: #A84B48;
  --muted-red-hover: #8D3A37;
  --muted-red-light: #F9EDED;
  --faded-blue: #63849A;
  --faded-blue-dark: #476274;
  --faded-blue-light: #EBF2F6;
  --border-color: #D3CDC5;
  --border-dark: #302B29;
  --border-light: #E2DDD5;
  --text-primary: #302B29;
  --text-secondary: #5C5551;
  --text-muted: #857D77;
  
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", "STSong", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;

  --shadow-sm: 0 2px 4px rgba(48, 43, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(48, 43, 41, 0.08);
  --shadow-lg: 0 8px 24px rgba(48, 43, 41, 0.12);
  --shadow-pin: 0 3px 6px rgba(48, 43, 41, 0.25);
  
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --container-max: 1240px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--warm-grey);
  background-image: 
    radial-gradient(#D3CDC5 1px, transparent 1px),
    linear-gradient(to right, rgba(232, 228, 222, 0.8), rgba(232, 228, 222, 0.8));
  background-size: 24px 24px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.68;
  word-wrap: break-word;
  overflow-x: hidden;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--muted-red);
  outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--midnight-brown);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.1rem;
}

a {
  color: var(--midnight-brown);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--warm-grey-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.2rem;
}

.case-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-red);
  background-color: var(--muted-red-light);
  border: 1px solid var(--muted-red);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.case-badge.blue {
  color: var(--faded-blue-dark);
  background-color: var(--faded-blue-light);
  border-color: var(--faded-blue);
}

.section-title {
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--muted-red);
  color: #FFFFFF !important;
  border-color: var(--muted-red);
  box-shadow: 0 2px 6px rgba(168, 75, 72, 0.35);
}

.btn-primary:hover {
  background-color: var(--muted-red-hover);
  border-color: var(--muted-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(168, 75, 72, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--midnight-brown) !important;
  border-color: var(--midnight-brown);
}

.btn-secondary:hover {
  background-color: var(--midnight-brown);
  color: var(--warm-grey) !important;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--faded-blue-dark) !important;
  border-color: var(--faded-blue);
}

.btn-outline-blue:hover {
  background-color: var(--faded-blue);
  color: #FFFFFF !important;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(232, 228, 222, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--muted-red);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--midnight-brown);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--midnight-brown);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--muted-red);
  border-bottom-color: var(--muted-red);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--midnight-brown);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Hero Section: Detective Editorial Sheet & Clue Board */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

/* Paper Sheet Styling */
.dossier-sheet {
  background: var(--paper-sheet);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  padding: 2.2rem;
  position: relative;
  border-radius: var(--radius-sm);
}

/* Pushpin simulation */
.dossier-sheet::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 32px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 35% 35%, #D46966, var(--muted-red) 70%, #682624 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-pin);
  z-index: 2;
}

.dossier-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.confidential-stamp {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted-red);
  border: 2px solid var(--muted-red);
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
  display: inline-block;
}

.hero-title {
  margin-bottom: 1.2rem;
  color: var(--midnight-brown);
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--midnight-brown-soft);
  margin-bottom: 1.8rem;
}

.hero-lead strong {
  color: var(--midnight-brown);
  border-bottom: 1px solid var(--muted-red);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--faded-blue-dark);
}

/* Original SVG Clue Board */
.clue-board-wrapper {
  background: #3B3431;
  background-image: 
    radial-gradient(#4D4541 1px, transparent 1px),
    linear-gradient(to right, #342E2B, #3D3633);
  background-size: 20px 20px;
  border: 8px solid #5A4E48;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), inset 0 0 15px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.clue-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

.clue-board-title {
  color: #EDE8E1;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #D4A373;
  border: 1px solid #D4A373;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

.svg-caseboard {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Puzzle Section */
.puzzle-section {
  background-color: var(--paper-sheet);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 4.5rem 0;
}

.puzzle-container {
  max-width: 960px;
  margin: 0 auto;
}

.puzzle-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.puzzle-instruction {
  background-color: var(--faded-blue-light);
  border-left: 4px solid var(--faded-blue);
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--midnight-brown);
}

.puzzle-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .puzzle-slots {
    grid-template-columns: 1fr;
  }
}

.puzzle-slot {
  background: var(--warm-grey-light);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.slot-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.slot-content {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--midnight-brown);
}

.slot-filled {
  background: #FFFFFF;
  border: 2px solid var(--midnight-brown);
  box-shadow: var(--shadow-sm);
}

.puzzle-clues-pool {
  margin-bottom: 2rem;
}

.pool-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.clue-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .clue-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.clue-btn {
  background: var(--paper-tag);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clue-btn:hover:not(:disabled) {
  border-color: var(--muted-red);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.clue-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--border-light);
  transform: none;
}

.clue-btn-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-red);
}

.clue-btn-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--midnight-brown);
  line-height: 1.4;
}

.clue-btn-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.puzzle-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.puzzle-btn-group {
  display: flex;
  gap: 0.8rem;
}

.puzzle-feedback {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.puzzle-feedback.show {
  display: block;
}

.puzzle-feedback.success {
  background-color: #EEF7EE;
  border: 1px solid #7EBA7D;
  color: #275626;
}

.puzzle-feedback.error {
  background-color: var(--muted-red-light);
  border: 1px solid var(--muted-red);
  color: var(--muted-red-hover);
}

.puzzle-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--font-mono);
}

/* Advantages Section: Evidence Notes */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.8rem;
}

.evidence-note {
  background: var(--paper-sheet);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.evidence-note:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.evidence-pin {
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, #D46966, var(--muted-red) 70%, #682624 100%);
  border-radius: 50%;
  box-shadow: var(--shadow-pin);
}

.evidence-pin.blue-pin {
  background: radial-gradient(circle at 35% 35%, #8BAEC5, var(--faded-blue) 70%, #354B59 100%);
}

.evidence-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evidence-status {
  color: var(--muted-red);
}

.evidence-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.evidence-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.evidence-features {
  list-style: none;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.85rem;
  font-size: 0.85rem;
}

.evidence-features li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--midnight-brown-soft);
}

.evidence-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--muted-red);
  font-weight: bold;
}

/* Network Section: Topology & Node Verification */
.topology-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.topology-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

.topology-svg-wrapper {
  overflow-x: auto;
  padding: 1rem 0;
  text-align: center;
}

.node-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.node-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.node-table th {
  background-color: var(--warm-grey-light);
  color: var(--midnight-brown);
  font-family: var(--font-serif);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.node-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.node-table tr:hover td {
  background-color: #FAF8F5;
}

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.status-pill.green {
  background-color: #EBF5EB;
  color: #2E6930;
  border: 1px solid #B0DBB3;
}

.status-pill.blue {
  background-color: var(--faded-blue-light);
  color: var(--faded-blue-dark);
  border: 1px solid var(--faded-blue);
}

/* Practical Case Studies: AI & Streaming */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.case-study-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.case-target-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--faded-blue-dark);
  background-color: var(--faded-blue-light);
  border: 1px solid var(--faded-blue);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.case-study-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.case-study-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.case-checklist {
  list-style: none;
  background-color: var(--warm-grey-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
}

.case-checklist li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--midnight-brown-soft);
}

.case-checklist li:last-child {
  margin-bottom: 0;
}

.case-checklist li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  color: var(--muted-red);
  font-weight: bold;
}

/* Pricing Section: Structured Case Comparison */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--muted-red);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--muted-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(168, 75, 72, 0.4);
}

.pricing-tier-name {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  text-align: center;
}

.pricing-tier-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.2rem;
}

.pricing-price-box {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border-color);
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--midnight-brown);
}

.price-val {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--midnight-brown);
}

.pricing-card.featured .price-val {
  color: var(--muted-red);
}

.price-unit {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-disclaimer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.pricing-features {
  list-style: none;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.65rem;
  color: var(--midnight-brown-soft);
}

.pricing-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--muted-red);
  font-size: 0.85rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: "✕";
  color: var(--text-muted);
}

.pricing-cta {
  width: 100%;
}

.pricing-recommendation-note {
  background-color: var(--paper-sheet);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--muted-red);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--midnight-brown);
  line-height: 1.7;
}

/* 3x3 Article Grid Section (Immediately after Pricing) */
.articles-section {
  padding: 4.5rem 0;
}

.articles-grid-3x3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

@media (min-width: 640px) {
  .articles-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--muted-red);
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.article-category {
  color: var(--muted-red);
  font-weight: 700;
  background-color: var(--muted-red-light);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}

.article-readtime {
  color: var(--text-muted);
}

.article-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.article-card-title a {
  color: var(--midnight-brown);
}

.article-card:hover .article-card-title a {
  color: var(--muted-red);
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.article-card-footer {
  border-top: 1px dashed var(--border-light);
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.article-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.article-link-arrow {
  color: var(--muted-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Reviews / Testimonials Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.review-card {
  background: var(--paper-sheet);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faded-blue-dark);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.review-text {
  font-size: 0.95rem;
  color: var(--midnight-brown-soft);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
  flex-grow: 1;
}

.review-author {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--midnight-brown);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Accordion FAQ Section */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--muted-red);
}

.faq-summary {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--midnight-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--muted-red);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* Footer Section */
.site-footer {
  background-color: var(--midnight-brown);
  color: #EDE8E1;
  border-top: 3px solid var(--muted-red);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-brand-title {
  color: #EDE8E1;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: #B5ACA5;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.footer-heading {
  color: #EDE8E1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #B5ACA5;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--muted-red-light);
  text-decoration: underline;
}

.footer-editorial-links {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  margin-bottom: 2.5rem;
}

.editorial-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #D4A373;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.editorial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
}

.editorial-list a {
  color: #EDE8E1;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-list a:hover {
  color: #FFB3BA;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #8C847E;
}

.footer-compliance-text {
  max-width: 750px;
  line-height: 1.5;
}

/* ==========================================================================
   Article Page & Substantive Page Styles
   ========================================================================== */

.page-header {
  background-color: var(--paper-sheet);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0 2.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.breadcrumbs a {
  color: var(--midnight-brown);
}

.breadcrumbs a:hover {
  color: var(--muted-red);
}

.breadcrumb-separator {
  color: var(--border-color);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-content-wrapper {
  padding: 3.5rem 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 320px;
  }
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--midnight-brown-soft);
}

.article-body h2 {
  margin-top: 2.8rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--midnight-brown);
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.8rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  background-color: var(--paper-sheet);
  border-left: 4px solid var(--muted-red);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--midnight-brown);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.article-body th {
  background: var(--warm-grey-light);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-body td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

.article-callout {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.article-callout.warning {
  border-left: 4px solid var(--muted-red);
  background: var(--muted-red-light);
}

.article-callout.tip {
  border-left: 4px solid var(--faded-blue);
  background: var(--faded-blue-light);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 0.75rem;
}

.sidebar-links a {
  font-size: 0.92rem;
  color: var(--midnight-brown-soft);
  display: block;
}

.sidebar-links a:hover {
  color: var(--muted-red);
}

.related-articles-section {
  background-color: var(--warm-grey-light);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0;
}

/* Mobile Nav Overlay */
@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--warm-grey);
    flex-direction: column;
    align-items: stretch;
    padding: 1.8rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow-y: auto;
    z-index: 999;
    border-bottom: 2px solid var(--muted-red);
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
  }
}
